From bc23b3d478555749445bc57f4ef1cc2693bc65a0 Mon Sep 17 00:00:00 2001 From: TheRealKaamy Date: Tue, 19 May 2026 21:52:58 +0330 Subject: [PATCH] ws support for gql subscriptions --- .env.example | 3 ++- dist/graphiql.js | 2 +- main.jsx | 34 +++++++++++++++++++++++----------- package-lock.json | 30 ++++++++++++++++++++++++++++++ package.json | 3 +++ 5 files changed, 59 insertions(+), 13 deletions(-) diff --git a/.env.example b/.env.example index 144e6f7..1e4dfad 100644 --- a/.env.example +++ b/.env.example @@ -1 +1,2 @@ -VITE_GRAPHQL_ENDPOINT=http://localhost:8080/query \ No newline at end of file +VITE_GRAPHQL_ENDPOINT=http://localhost:8080/query +VITE_GRAPHQL_WS_ENDPOINT=ws://localhost:8080/query \ No newline at end of file diff --git a/dist/graphiql.js b/dist/graphiql.js index 2f8a419..9ecaec2 100644 --- a/dist/graphiql.js +++ b/dist/graphiql.js @@ -1 +1 @@ -var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,a=(e,t)=>()=>(e&&(t=e(e=0)),t),s=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),l=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:"Module"}),r},u=(e,i,a,s)=>{if(i&&"object"==typeof i||"function"==typeof i)for(var l,u=r(i),c=0,d=u.length;ci[e]).bind(null,l),enumerable:!(s=n(i,l))||s.enumerable});return e},c=(n,r,o)=>(o=null!=n?e(i(n)):{},u(!r&&n&&n.__esModule?o:t(o,"default",{value:n,enumerable:!0}),n));!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver(e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)}).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();var d=s(e=>{var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),p=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var w=b.prototype=new y;w.constructor=b,m(w,v.prototype),w.isPureReactComponent=!0;var x=Array.isArray;function E(){}var k={H:null,A:null,T:null,S:null},C=Object.prototype.hasOwnProperty;function S(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:void 0!==i?i:null,props:r}}function T(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}var _=/\/+/g;function N(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var n,r}function A(e,r,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l,u,c=!1;if(null===e)c=!0;else switch(s){case"bigint":case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case t:case n:c=!0;break;case d:return A((c=e._init)(e._payload),r,i,o,a)}}if(c)return a=a(e),c=""===o?"."+N(e,0):o,x(a)?(i="",null!=c&&(i=c.replace(_,"$&/")+"/"),A(a,r,i,"",function(e){return e})):null!=a&&(T(a)&&(l=a,u=i+(null==a.key||e&&e.key===a.key?"":(""+a.key).replace(_,"$&/")+"/")+c,a=S(l.type,u,l.props)),r.push(a)),1;c=0;var f,h=""===o?".":o+":";if(x(e))for(var m=0;m{t.exports=d()}),p=s(e=>{function t(e,t){var n=e.length;e.push(t);e:for(;0>>1,o=e[r];if(!(0>>1;ri(l,n))ui(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(ui(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(e.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,d=null,f=3,p=!1,h=!1,m=!1,g=!1,v="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var i=n(u);null!==i;){if(null===i.callback)r(u);else{if(!(i.startTime<=e))break;r(u),i.sortIndex=i.expirationTime,t(l,i)}i=n(u)}}function x(e){if(m=!1,w(e),!h)if(null!==n(l))h=!0,k||(k=!0,E());else{var t=n(u);null!==t&&O(x,t.startTime-e)}}var E,k=!1,C=-1,S=5,T=-1;function _(){return!(!g&&e.unstable_now()-Tt&&_());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var s=a(d.expirationTime<=t);if(t=e.unstable_now(),"function"==typeof s){d.callback=s,w(t),i=!0;break t}d===n(l)&&r(l),w(t)}else r(l);d=n(l)}if(null!==d)i=!0;else{var c=n(u);null!==c&&O(x,c.startTime-t),i=!1}}break e}finally{d=null,f=o,p=!1}i=void 0}}finally{i?E():k=!1}}}if("function"==typeof b)E=function(){b(N)};else if("undefined"!=typeof MessageChannel){var A=new MessageChannel,D=A.port2;A.port1.onmessage=N,E=function(){D.postMessage(null)}}else E=function(){v(N,0)};function O(t,n){C=v(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125a?(r.sortIndex=o,t(u,r),null===n(l)&&r===n(u)&&(m?(y(C),C=-1):m=!0,O(x,o-a))):(r.sortIndex=s,t(l,r),h||p||(h=!0,k||(k=!0,E()))),r},e.unstable_shouldYield=_,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}),h=s((e,t)=>{t.exports=p()}),m=s(e=>{var t=f();function n(e){var t="https://react.dev/errors/"+e;if(1{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){}}(),t.exports=m()}),v=s(e=>{var t=h(),n=f(),r=g();function i(e){var t="https://react.dev/errors/"+e;if(1j||(e.current=R[j],R[j]=null,j--)}function z(e,t){j++,R[j]=e.current,e.current=t}var $,U,H=V(null),W=V(null),q=V(null),G=V(null);function K(e,t){switch(z(q,t),z(W,e),z(H,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=yd(t=vd(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}B(H),z(H,e)}function Y(){B(H),B(W),B(q)}function Q(e){null!==e.memoizedState&&z(G,e);var t=H.current,n=yd(t,e.type);t!==n&&(z(W,e),z(H,n))}function X(e){W.current===e&&(B(H),B(W)),G.current===e&&(B(G),df._currentValue=P)}function Z(e){if(void 0===$)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);$=t&&t[1]||"",U=-1)":-1--i||l[r]!==u[i]){var c="\n"+l[r].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}}while(1<=r&&0<=i);break}}}finally{J=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Z(n):""}function te(e,t){switch(e.tag){case 26:case 27:case 5:return Z(e.type);case 16:return Z("Lazy");case 13:return e.child!==t&&null!==t?Z("Suspense Fallback"):Z("Suspense");case 19:return Z("SuspenseList");case 0:case 15:return ee(e.type,!1);case 11:return ee(e.type.render,!1);case 1:return ee(e.type,!0);case 31:return Z("Activity");default:return""}}function ne(e){try{var t="",n=null;do{t+=te(e,n),n=e,e=e.return}while(e);return t}catch(r){return"\nError generating stack: "+r.message+"\n"+r.stack}}var re=Object.prototype.hasOwnProperty,ie=t.unstable_scheduleCallback,oe=t.unstable_cancelCallback,ae=t.unstable_shouldYield,se=t.unstable_requestPaint,le=t.unstable_now,ue=t.unstable_getCurrentPriorityLevel,ce=t.unstable_ImmediatePriority,de=t.unstable_UserBlockingPriority,fe=t.unstable_NormalPriority,pe=t.unstable_LowPriority,he=t.unstable_IdlePriority,me=t.log,ge=t.unstable_setDisableYieldValue,ve=null,ye=null;function be(e){if("function"==typeof me&&ge(e),ye&&"function"==typeof ye.setStrictMode)try{ye.setStrictMode(ve,e)}catch(t){}}var we=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(xe(e)/Ee|0)|0},xe=Math.log,Ee=Math.LN2,ke=256,Ce=262144,Se=4194304;function Te(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return 261888&e;case 262144:case 524288:case 1048576:case 2097152:return 3932160&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function _e(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var i=0,o=e.suspendedLanes,a=e.pingedLanes;e=e.warmLanes;var s=134217727&r;return 0!==s?0!==(r=s&~o)?i=Te(r):0!==(a&=s)?i=Te(a):n||0!==(n=s&~e)&&(i=Te(n)):0!==(s=r&~o)?i=Te(s):0!==a?i=Te(a):n||0!==(n=r&~e)&&(i=Te(n)),0===i?0:0!==t&&t!==i&&0===(t&o)&&((o=i&-i)>=(n=t&-t)||32===o&&4194048&n)?t:i}function Ne(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Ae(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function De(){var e=Se;return!(62914560&(Se<<=1))&&(Se=4194304),e}function Oe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Le(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ie(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-we(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|261930&n}function Me(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-we(n),i=1<=Tn),An=String.fromCharCode(32),Dn=!1;function On(e,t){switch(e){case"keyup":return-1!==Cn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ln(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var In=!1,Mn={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 Fn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Mn[e.type]:"textarea"===t}function Pn(e,t,n,r){Ft?Pt?Pt.push(r):Pt=[r]:Ft=r,0<(t=rd(t,"onChange")).length&&(n=new nn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Rn=null,jn=null;function Vn(e){Yc(e,0)}function Bn(e){if(ht(Ze(e)))return e}function zn(e,t){if("change"===e)return t}var $n=!1;if(zt){var Un;if(zt){var Hn="oninput"in document;if(!Hn){var Wn=document.createElement("div");Wn.setAttribute("oninput","return;"),Hn="function"==typeof Wn.oninput}Un=Hn}else Un=!1;$n=Un&&(!document.documentMode||9=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=er(r)}}function nr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?nr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function rr(e){for(var t=mt((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=mt((e=t.contentWindow).document)}return t}function ir(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var or=zt&&"documentMode"in document&&11>=document.documentMode,ar=null,sr=null,lr=null,ur=!1;function cr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;ur||null==ar||ar!==mt(r)||(r="selectionStart"in(r=ar)&&ir(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},lr&&Jn(lr,r)||(lr=r,0<(r=rd(sr,"onSelect")).length&&(t=new nn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ar)))}function dr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var fr={animationend:dr("Animation","AnimationEnd"),animationiteration:dr("Animation","AnimationIteration"),animationstart:dr("Animation","AnimationStart"),transitionrun:dr("Transition","TransitionRun"),transitionstart:dr("Transition","TransitionStart"),transitioncancel:dr("Transition","TransitionCancel"),transitionend:dr("Transition","TransitionEnd")},pr={},hr={};function mr(e){if(pr[e])return pr[e];if(!fr[e])return e;var t,n=fr[e];for(t in n)if(n.hasOwnProperty(t)&&t in hr)return pr[e]=n[t];return e}zt&&(hr=document.createElement("div").style,"AnimationEvent"in window||(delete fr.animationend.animation,delete fr.animationiteration.animation,delete fr.animationstart.animation),"TransitionEvent"in window||delete fr.transitionend.transition);var gr=mr("animationend"),vr=mr("animationiteration"),yr=mr("animationstart"),br=mr("transitionrun"),wr=mr("transitionstart"),xr=mr("transitioncancel"),Er=mr("transitionend"),kr=new Map,Cr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Sr(e,t){kr.set(e,t),rt(t,[e])}Cr.push("scrollEnd");var Tr="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e)},_r=[],Nr=0,Ar=0;function Dr(){for(var e=Nr,t=Ar=Nr=0;t>=a,i-=a,ni=1<<32-we(t)+i|n<p?(m=d,d=null):m=d.sibling;var v=h(i,d,s[p],l);if(null===v){null===d&&(d=m);break}e&&d&&null===v.alternate&&t(i,d),o=a(v,o,p),null===c?u=v:c.sibling=v,c=v,d=m}if(p===s.length)return n(i,d),di&&ii(i,p),u;if(null===d){for(;pm?(v=p,p=null):v=p.sibling;var b=h(o,p,y.value,u);if(null===b){null===p&&(p=v);break}e&&p&&null===b.alternate&&t(o,p),s=a(b,s,m),null===d?c=b:d.sibling=b,d=b,p=v}if(y.done)return n(o,p),di&&ii(o,m),c;if(null===p){for(;!y.done;m++,y=l.next())null!==(y=f(o,y.value,u))&&(s=a(y,s,m),null===d?c=y:d.sibling=y,d=y);return di&&ii(o,m),c}for(p=r(p);!y.done;m++,y=l.next())null!==(y=g(p,o,m,y.value,u))&&(e&&null!==y.alternate&&p.delete(null===y.key?m:y.key),s=a(y,s,m),null===d?c=y:d.sibling=y,d=y);return e&&p.forEach(function(e){return t(o,e)}),di&&ii(o,m),c}(l,u,c=b.call(c),d)}if("function"==typeof c.then)return y(l,u,uo(c),d);if(c.$$typeof===x)return y(l,u,Ii(l,c),d);fo(l,c)}return"string"==typeof c&&""!==c||"number"==typeof c||"bigint"==typeof c?(c=""+c,null!==u&&6===u.tag?(n(l,u.sibling),(d=o(u,c)).return=l,l=d):(n(l,u),(d=Hr(c,l.mode,d)).return=l,l=d),s(l)):n(l,u)}return function(e,t,n,r){try{lo=0;var i=y(e,t,n,r);return so=null,i}catch(a){if(a===Xi||a===Ji)throw a;var o=jr(29,a,null,e.mode);return o.lanes=r,o.return=e,o}}}var ho=po(!0),mo=po(!1),go=!1;function vo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function yo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function bo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function wo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&pu){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Fr(e),Mr(e,null,n),t}return Or(e,r,t,n),Fr(e)}function xo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Me(e,n)}}function Eo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var ko=!1;function Co(){if(ko&&null!==Hi)throw Hi}function So(e,t,n,r){ko=!1;var i=e.updateQueue;go=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?o=u:a.next=u,a=l;var d=e.alternate;null!==d&&(s=(d=d.updateQueue).lastBaseUpdate)!==a&&(null===s?d.firstBaseUpdate=u:s.next=u,d.lastBaseUpdate=l)}if(null!==o){var f=i.baseState;for(a=0,d=u=l=null,s=o;;){var p=-536870913&s.lane,h=p!==s.lane;if(h?(gu&p)===p:(r&p)===p){0!==p&&p===Ui&&(ko=!0),null!==d&&(d=d.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var m=e,g=s;p=t;var v=n;switch(g.tag){case 1:if("function"==typeof(m=g.payload)){f=m.call(v,f,p);break e}f=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(p="function"==typeof(m=g.payload)?m.call(v,f,p):m))break e;f=c({},f,p);break e;case 2:go=!0}}null!==(p=s.callback)&&(e.flags|=64,h&&(e.flags|=8192),null===(h=i.callbacks)?i.callbacks=[p]:h.push(p))}else h={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===d?(u=d=h,l=f):d=d.next=h,a|=p;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(h=s).next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}null===d&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=d,null===o&&(i.shared.lanes=0),Cu|=a,e.lanes=a,e.memoizedState=f}}function To(e,t){if("function"!=typeof e)throw Error(i(191,e));e.call(t)}function _o(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;eo?o:8;var a,s,l,u=M.T,c={};M.T=c,ds(e,!1,t,n);try{var d=i(),f=M.S;null!==f&&f(c,d),null!==d&&"object"==typeof d&&"function"==typeof d.then?cs(e,t,(a=r,s=[],l={status:"pending",value:null,reason:null,then:function(e){s.push(e)}},d.then(function(){l.status="fulfilled",l.value=a;for(var e=0;e<\/script>",a=a.removeChild(a.firstChild);break;case"select":a="string"==typeof r.is?s.createElement("select",{is:r.is}):s.createElement("select"),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a="string"==typeof r.is?s.createElement(o,{is:r.is}):s.createElement(o)}}a[ze]=t,a[$e]=r;e:for(s=t.child;null!==s;){if(5===s.tag||6===s.tag)a.appendChild(s.stateNode);else if(4!==s.tag&&27!==s.tag&&null!==s.child){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;null===s.sibling;){if(null===s.return||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=a;e:switch(fd(a,o,r),o){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&sl(t)}}return fl(t),ll(t,t.type,null===e||e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&sl(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(e=q.current,yi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(o=ui))switch(o.tag){case 27:case 5:r=o.memoizedProps}e[ze]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||ud(e.nodeValue,n)))||mi(t,!0)}else(e=gd(e).createTextNode(r))[ze]=t,t.stateNode=e}return fl(t),null;case 31:if(n=t.memoizedState,null===e||null!==e.memoizedState){if(r=yi(t),null!==n){if(null===e){if(!r)throw Error(i(318));if(!(e=null!==(e=t.memoizedState)?e.dehydrated:null))throw Error(i(557));e[ze]=t}else bi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;fl(t),e=!1}else n=wi(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return 256&t.flags?(Vo(t),t):(Vo(t),null);if(128&t.flags)throw Error(i(558))}return fl(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(o=yi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(i(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(i(317));o[ze]=t}else bi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;fl(t),o=!1}else o=wi(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return 256&t.flags?(Vo(t),t):(Vo(t),null)}return Vo(t),128&t.flags?(t.lanes=n,t):(n=null!==r,e=null!==e&&null!==e.memoizedState,n&&(o=null,null!==(r=t.child).alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(o=r.alternate.memoizedState.cachePool.pool),a=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(a=r.memoizedState.cachePool.pool),a!==o&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),cl(t,t.updateQueue),fl(t),null);case 4:return Y(),null===e&&Jc(t.stateNode.containerInfo),fl(t),null;case 10:return Ti(t.type),fl(t),null;case 19:if(B(Bo),null===(r=t.memoizedState))return fl(t),null;if(o=!!(128&t.flags),null===(a=r.rendering))if(o)dl(r,!1);else{if(0!==ku||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(a=zo(e))){for(t.flags|=128,dl(r,!1),e=a.updateQueue,t.updateQueue=e,cl(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)zr(n,e),n=n.sibling;return z(Bo,1&Bo.current|2),di&&ii(t,r.treeForkCount),t.child}e=e.sibling}null!==r.tail&&le()>Mu&&(t.flags|=128,o=!0,dl(r,!1),t.lanes=4194304)}else{if(!o)if(null!==(e=zo(a))){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,cl(t,e),dl(r,!0),null===r.tail&&"hidden"===r.tailMode&&!a.alternate&&!di)return fl(t),null}else 2*le()-r.renderingStartTime>Mu&&536870912!==n&&(t.flags|=128,o=!0,dl(r,!1),t.lanes=4194304);r.isBackwards?(a.sibling=t.child,t.child=a):(null!==(e=r.last)?e.sibling=a:t.child=a,r.last=a)}return null!==r.tail?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=le(),e.sibling=null,n=Bo.current,z(Bo,o?1&n|2:1&n),di&&ii(t,r.treeForkCount),e):(fl(t),null);case 22:case 23:return Vo(t),Lo(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?!!(536870912&n)&&!(128&t.flags)&&(fl(t),6&t.subtreeFlags&&(t.flags|=8192)):fl(t),null!==(n=t.updateQueue)&&cl(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&B(Gi),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ti(ji),fl(t),null;case 25:case 30:return null}throw Error(i(156,t.tag))}function hl(e,t){switch(si(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ti(ji),Y(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return X(t),null;case 31:if(null!==t.memoizedState){if(Vo(t),null===t.alternate)throw Error(i(340));bi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 13:if(Vo(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));bi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return B(Bo),null;case 4:return Y(),null;case 10:return Ti(t.type),null;case 22:case 23:return Vo(t),Lo(),null!==e&&B(Gi),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return Ti(ji),null;default:return null}}function ml(e,t){switch(si(t),t.tag){case 3:Ti(ji),Y();break;case 26:case 27:case 5:X(t);break;case 4:Y();break;case 31:null!==t.memoizedState&&Vo(t);break;case 13:Vo(t);break;case 19:B(Bo);break;case 10:Ti(t.type);break;case 22:case 23:Vo(t),Lo(),null!==e&&B(Gi);break;case 24:Ti(ji)}}function gl(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var o=n.create,a=n.inst;r=o(),a.destroy=r}n=n.next}while(n!==i)}}catch(tp){kc(t,t.return,tp)}}function vl(e,t,n){try{var r=t.updateQueue,i=null!==r?r.lastEffect:null;if(null!==i){var o=i.next;r=o;do{if((r.tag&e)===e){var a=r.inst,s=a.destroy;if(void 0!==s){a.destroy=void 0,i=t;var l=n,u=s;try{u()}catch(tp){kc(i,l,tp)}}}r=r.next}while(r!==o)}}catch(tp){kc(t,t.return,tp)}}function yl(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{_o(t,n)}catch(tp){kc(e,e.return,tp)}}}function bl(e,t,n){n.props=ks(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(tp){kc(e,t,tp)}}function wl(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof n?e.refCleanup=n(r):n.current=r}}catch(tp){kc(e,t,tp)}}function xl(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(tp){kc(e,t,tp)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(i){kc(e,t,i)}else n.current=null}function El(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(tp){kc(e,e.return,tp)}}function kl(e,t,n){try{var r=e.stateNode;!function(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,a=null,s=null,l=null,u=null,c=null,d=null;for(h in n){var f=n[h];if(n.hasOwnProperty(h)&&null!=f)switch(h){case"checked":case"value":break;case"defaultValue":u=f;default:r.hasOwnProperty(h)||cd(e,t,h,null,r,f)}}for(var p in r){var h=r[p];if(f=n[p],r.hasOwnProperty(p)&&(null!=h||null!=f))switch(p){case"type":a=h;break;case"name":o=h;break;case"checked":c=h;break;case"defaultChecked":d=h;break;case"value":s=h;break;case"defaultValue":l=h;break;case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(i(137,t));break;default:h!==f&&cd(e,t,p,h,r,f)}}return void yt(e,s,l,u,c,d,a,o);case"select":for(a in h=s=l=p=null,n)if(u=n[a],n.hasOwnProperty(a)&&null!=u)switch(a){case"value":break;case"multiple":h=u;default:r.hasOwnProperty(a)||cd(e,t,a,null,r,u)}for(o in r)if(a=r[o],u=n[o],r.hasOwnProperty(o)&&(null!=a||null!=u))switch(o){case"value":p=a;break;case"defaultValue":l=a;break;case"multiple":s=a;default:a!==u&&cd(e,t,o,a,r,u)}return t=l,n=s,r=h,void(null!=p?xt(e,!!n,p,!1):!!r!=!!n&&(null!=t?xt(e,!!n,t,!0):xt(e,!!n,n?[]:"",!1)));case"textarea":for(l in h=p=null,n)if(o=n[l],n.hasOwnProperty(l)&&null!=o&&!r.hasOwnProperty(l))switch(l){case"value":case"children":break;default:cd(e,t,l,null,r,o)}for(s in r)if(o=r[s],a=n[s],r.hasOwnProperty(s)&&(null!=o||null!=a))switch(s){case"value":p=o;break;case"defaultValue":h=o;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=o)throw Error(i(91));break;default:o!==a&&cd(e,t,s,o,r,a)}return void Et(e,p,h);case"option":for(var m in n)p=n[m],n.hasOwnProperty(m)&&null!=p&&!r.hasOwnProperty(m)&&("selected"===m?e.selected=!1:cd(e,t,m,null,r,p));for(u in r)p=r[u],h=n[u],!r.hasOwnProperty(u)||p===h||null==p&&null==h||("selected"===u?e.selected=p&&"function"!=typeof p&&"symbol"!=typeof p:cd(e,t,u,p,r,h));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var g in n)p=n[g],n.hasOwnProperty(g)&&null!=p&&!r.hasOwnProperty(g)&&cd(e,t,g,null,r,p);for(c in r)if(p=r[c],h=n[c],r.hasOwnProperty(c)&&p!==h&&(null!=p||null!=h))switch(c){case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(i(137,t));break;default:cd(e,t,c,p,r,h)}return;default:if(Nt(t)){for(var v in n)p=n[v],n.hasOwnProperty(v)&&void 0!==p&&!r.hasOwnProperty(v)&&dd(e,t,v,void 0,r,p);for(d in r)p=r[d],h=n[d],!r.hasOwnProperty(d)||p===h||void 0===p&&void 0===h||dd(e,t,d,p,r,h);return}}for(var y in n)p=n[y],n.hasOwnProperty(y)&&null!=p&&!r.hasOwnProperty(y)&&cd(e,t,y,null,r,p);for(f in r)p=r[f],h=n[f],!r.hasOwnProperty(f)||p===h||null==p&&null==h||cd(e,t,f,p,r,h)}(r,e.type,n,t),r[$e]=t}catch(tp){kc(e,e.return,tp)}}function Cl(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&Td(e.type)||4===e.tag}function Sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Cl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&Td(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Tl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Lt));else if(4!==r&&(27===r&&Td(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(Tl(e,t,n),e=e.sibling;null!==e;)Tl(e,t,n),e=e.sibling}function _l(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&Td(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(_l(e,t,n),e=e.sibling;null!==e;)_l(e,t,n),e=e.sibling}function Nl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);fd(t,r,n),t[ze]=e,t[$e]=n}catch(tp){kc(e,e.return,tp)}}var Al=!1,Dl=!1,Ol=!1,Ll="function"==typeof WeakSet?WeakSet:Set,Il=null;function Ml(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Kl(e,n),4&r&&gl(5,n);break;case 1:if(Kl(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(tp){kc(n,n.return,tp)}else{var i=ks(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(a){kc(n,n.return,a)}}64&r&&yl(n),512&r&&wl(n,n.return);break;case 3:if(Kl(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{_o(e,t)}catch(tp){kc(n,n.return,tp)}}break;case 27:null===t&&4&r&&Nl(n);case 26:case 5:Kl(e,n),null===t&&4&r&&El(n),512&r&&wl(n,n.return);break;case 12:Kl(e,n);break;case 31:Kl(e,n),4&r&&Bl(e,n);break;case 13:Kl(e,n),4&r&&zl(e,n),64&r&&null!==(e=n.memoizedState)&&null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$~"===e.data)e._reactRetry=t;else if("$?"!==e.data||"loading"!==n.readyState)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=_c.bind(null,n));break;case 22:if(!(r=null!==n.memoizedState||Al)){t=null!==t&&null!==t.memoizedState||Dl,i=Al;var o=Dl;Al=r,(Dl=t)&&!o?Ql(e,n,!!(8772&n.subtreeFlags)):Kl(e,n),Al=i,Dl=o}break;case 30:break;default:Kl(e,n)}}function Fl(e){var t=e.alternate;null!==t&&(e.alternate=null,Fl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&Ye(t),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Pl=null,Rl=!1;function jl(e,t,n){for(n=n.child;null!==n;)Vl(e,t,n),n=n.sibling}function Vl(e,t,n){if(ye&&"function"==typeof ye.onCommitFiberUnmount)try{ye.onCommitFiberUnmount(ve,n)}catch(o){}switch(n.tag){case 26:Dl||xl(n,t),jl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Dl||xl(n,t);var r=Pl,i=Rl;Td(n.type)&&(Pl=n.stateNode,Rl=!1),jl(e,t,n),jd(n.stateNode),Pl=r,Rl=i;break;case 5:Dl||xl(n,t);case 6:if(r=Pl,i=Rl,Pl=null,jl(e,t,n),Rl=i,null!==(Pl=r))if(Rl)try{(9===Pl.nodeType?Pl.body:"HTML"===Pl.nodeName?Pl.ownerDocument.body:Pl).removeChild(n.stateNode)}catch(tp){kc(n,t,tp)}else try{Pl.removeChild(n.stateNode)}catch(tp){kc(n,t,tp)}break;case 18:null!==Pl&&(Rl?(_d(9===(e=Pl).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),Uf(e)):_d(Pl,n.stateNode));break;case 4:r=Pl,i=Rl,Pl=n.stateNode.containerInfo,Rl=!0,jl(e,t,n),Pl=r,Rl=i;break;case 0:case 11:case 14:case 15:vl(2,n,t),Dl||vl(4,n,t),jl(e,t,n);break;case 1:Dl||(xl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&bl(n,t,r)),jl(e,t,n);break;case 21:jl(e,t,n);break;case 22:Dl=(r=Dl)||null!==n.memoizedState,jl(e,t,n),Dl=r;break;default:jl(e,t,n)}}function Bl(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)){e=e.dehydrated;try{Uf(e)}catch(tp){kc(t,t.return,tp)}}}function zl(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))try{Uf(e)}catch(tp){kc(t,t.return,tp)}}function $l(e,t){var n=function(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new Ll),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new Ll),t;default:throw Error(i(435,e.tag))}}(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Nc.bind(null,e,t);t.then(r,r)}})}function Ul(e,t){var n=t.deletions;if(null!==n)for(var r=0;r title"))),fd(a,r,n),a[ze]=e,et(a),r=a;break e;case"link":var s=nf("link","href",o).get(r+(n.href||""));if(s)for(var l=0;ls)break;var c=l.transferSize,d=l.initiatorType;c&&pd(d)&&(a+=c*((l=l.responseEnd)af?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}(d,h),null!==h)return Bu=o,e.cancelPendingCommit=h(mc.bind(null,e,t,o,n,r,i,a,s,l,c,d,null,f,p)),void Zu(e,o,a,!u)}mc(e,t,o,n,r,i,a,s,l)}function Xu(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&null!==(n=t.updateQueue)&&null!==(n=n.stores))for(var r=0;rg&&(a=g,g=m,m=a);var v=tr(s,m),y=tr(s,g);if(v&&y&&(1!==p.rangeCount||p.anchorNode!==v.node||p.anchorOffset!==v.offset||p.focusNode!==y.node||p.focusOffset!==y.offset)){var b=d.createRange();b.setStart(v.node,v.offset),p.removeAllRanges(),m>g?(p.addRange(b),p.extend(y.node,y.offset)):(b.setEnd(y.node,y.offset),p.addRange(b))}}}}for(d=[],p=s;p=p.parentNode;)1===p.nodeType&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof s.focus&&s.focus(),s=0;sn?32:n,M.T=null,n=$u,$u=null;var a=ju,s=Bu;if(Ru=0,Vu=ju=null,Bu=0,6&pu)throw Error(i(331));var l=pu;if(pu|=4,lu(a.current),eu(a,a.current,s,n),pu=l,Pc(0,!1),ye&&"function"==typeof ye.onPostCommitFiberRoot)try{ye.onPostCommitFiberRoot(ve,a)}catch(u){}return!0}finally{F.p=o,M.T=r,bc(e,t)}}function Ec(e,t,n){t=Kr(n,t),null!==(e=wo(e,t=As(e.stateNode,t,2),2))&&(Le(e,2),Fc(e))}function kc(e,t,n){if(3===e.tag)Ec(e,e,n);else for(;null!==t;){if(3===t.tag){Ec(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Pu||!Pu.has(r))){e=Kr(n,e),null!==(r=wo(t,n=Ds(2),2))&&(Os(n,r,t,e),Le(r,2),Fc(r));break}}t=t.return}}function Cc(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fu;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(xu=!0,i.add(n),e=Sc.bind(null,e,t,n),t.then(e,e))}function Sc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,hu===e&&(gu&n)===n&&(4===ku||3===ku&&(62914560&gu)===gu&&300>le()-Lu?!(2&pu)&&tc(e,0):Tu|=n,Nu===gu&&(Nu=0)),Fc(e)}function Tc(e,t){0===t&&(t=De()),null!==(e=Ir(e,t))&&(Le(e,t),Fc(e))}function _c(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Tc(e,n)}function Nc(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}null!==r&&r.delete(t),Tc(e,n)}var Ac=null,Dc=null,Oc=!1,Lc=!1,Ic=!1,Mc=0;function Fc(e){e!==Dc&&null===e.next&&(null===Dc?Ac=Dc=e:Dc=Dc.next=e),Lc=!0,Oc||(Oc=!0,Cd(function(){6&pu?ie(ce,Rc):jc()}))}function Pc(e,t){if(!Ic&&Lc){Ic=!0;do{for(var n=!1,r=Ac;null!==r;){if(!t)if(0!==e){var i=r.pendingLanes;if(0===i)var o=0;else{var a=r.suspendedLanes,s=r.pingedLanes;o=(1<<31-we(42|e)+1)-1,o=201326741&(o&=i&~(a&~s))?201326741&o|1:o?2|o:0}0!==o&&(n=!0,zc(r,o))}else o=gu,!(3&(o=_e(r,r===hu?o:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||Ne(r,o)||(n=!0,zc(r,o));r=r.next}}while(n);Ic=!1}}function Rc(){jc()}function jc(){Lc=Oc=!1;var e,t=0;0!==Mc&&((e=window.event)&&"popstate"===e.type?e!==wd&&(wd=e,1):(wd=null,0))&&(t=Mc);for(var n=le(),r=null,i=Ac;null!==i;){var o=i.next,a=Vc(i,n);0===a?(i.next=null,null===r?Ac=o:r.next=o,null===o&&(Dc=r)):(r=i,(0!==t||3&a)&&(Lc=!0)),i=o}0!==Ru&&5!==Ru||Pc(t,!1),0!==Mc&&(Mc=0)}function Vc(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=-62914561&e.pendingLanes;0 title"):null)}function of(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var af=0;function sf(){if(this.count--,0===this.count&&(0===this.imgCount||!this.waitingForImages))if(this.stylesheets)uf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var lf=null;function uf(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,lf=new Map,t.forEach(cf,e),lf=null,sf.call(e))}function cf(e,t){if(!(4&t.state.loading)){var n=lf.get(e);if(n)var r=n.get(null);else{n=new Map,lf.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){}}(),t.exports=v()}),b=s(e=>{var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(e,n,r){var i=null;if(void 0!==r&&(i=""+r),void 0!==n.key&&(i=""+n.key),"key"in n)for(var o in r={},n)"key"!==o&&(r[o]=n[o]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:void 0!==n?n:null,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r}),w=s((e,t)=>{t.exports=b()}),x=s((e,t)=>{var n,r=Object.create,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of a(t))l.call(e,s)||s===n||i(e,s,{get:()=>t[s],enumerable:!(r=o(t,s))||r.enumerable});return e},c={};((e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})})(c,{$dispatcherGuard:()=>S,$makeReadOnly:()=>_,$reset:()=>T,$structuralCheck:()=>L,c:()=>w,clearRenderCounterRegistry:()=>A,renderCounterRegistry:()=>N,useRenderCounter:()=>D}),t.exports=(n=c,u(i({},"__esModule",{value:!0}),n));var d,p,h=((e,t,n)=>(n=null!=e?r(s(e)):{},u(e&&e.__esModule?n:i(n,"default",{value:e,enumerable:!0}),e)))(f()),{useRef:m,useEffect:g,isValidElement:v}=h,y=null!=(d=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)?d:h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,b=Symbol.for("react.memo_cache_sentinel"),w="function"==typeof(null==(p=h.__COMPILER_RUNTIME)?void 0:p.c)?h.__COMPILER_RUNTIME.c:function(e){return h.useMemo(()=>{const t=new Array(e);for(let n=0;n{x[e]=()=>{throw new Error(`[React] Unexpected React hook call (${e}) from a React compiled function. Check that all hooks are called directly and named according to convention ('use[A-Z]') `)}});var E=null;function k(e){return y.ReactCurrentDispatcher.current=e,y.ReactCurrentDispatcher.current}x.useMemoCache=e=>{if(null==E)throw new Error("React Compiler internal invariant violation: unexpected null dispatcher");return E.useMemoCache(e)};var C=[];function S(e){const t=y.ReactCurrentDispatcher.current;if(0===e){if(C.push(t),1===C.length&&(E=t),t===x)throw new Error("[React] Unexpected call to custom hook or component from a React compiled function. Check that (1) all hooks are called directly and named according to convention ('use[A-Z]') and (2) components are returned as JSX instead of being directly invoked.");k(x)}else if(1===e){const e=C.pop();if(null==e)throw new Error("React Compiler internal error: unexpected null in guard stack");0===C.length&&(E=null),k(e)}else if(2===e)C.push(t),k(E);else{if(3!==e)throw new Error("React Compiler internal error: unreachable block"+e);{const e=C.pop();if(null==e)throw new Error("React Compiler internal error: unexpected null in guard stack");k(e)}}}function T(e){for(let t=0;t{e.count=0})}function D(e){const t=m(null);null!=t.current&&(t.current.count+=1),g(()=>{if(null==t.current){const n={count:0};!function(e,t){let n=N.get(e);null==n&&(n=new Set,N.set(e,n)),n.add(t)}(e,n),t.current=n}return()=>{null!==t.current&&function(e,t){const n=N.get(e);null!=n&&n.delete(t)}(e,t.current)}})}var O=new Set;function L(e,t,n,r,i,o){function a(e,t,a,s){const l=`${r}:${o} [${i}] ${n}${a} changed from ${e} to ${t} at depth ${s}`;O.has(l)||O.add(l)}!function e(t,n,r,i){if(!(i>2)&&t!==n)if(typeof t!=typeof n)a("type "+typeof t,"type "+typeof n,r,i);else if("object"==typeof t){const o=Array.isArray(t),s=Array.isArray(n);if(null===t&&null!==n)a("null","type "+typeof n,r,i);else if(null===n)a("type "+typeof t,"null",r,i);else if(t instanceof Map)if(n instanceof Map)if(t.size!==n.size)a(`Map instance with size ${t.size}`,`Map instance with size ${n.size}`,r,i);else for(const[l,u]of t)n.has(l)?e(u,n.get(l),`${r}.get(${l})`,i+1):a(`Map instance with key ${l}`,`Map instance without key ${l}`,r,i);else a("Map instance","other value",r,i);else if(n instanceof Map)a("other value","Map instance",r,i);else if(t instanceof Set)if(n instanceof Set)if(t.size!==n.size)a(`Set instance with size ${t.size}`,`Set instance with size ${n.size}`,r,i);else for(const e of n)t.has(e)||a(`Set instance without element ${e}`,`Set instance with element ${e}`,r,i);else a("Set instance","other value",r,i);else if(n instanceof Set)a("other value","Set instance",r,i);else if(o||s)if(o!==s)a("type "+(o?"array":"object"),"type "+(s?"array":"object"),r,i);else if(t.length!==n.length)a(`array with length ${t.length}`,`array with length ${n.length}`,r,i);else for(let a=0;at in e?E(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,A=(e,t)=>{for(var n in t||(t={}))T.call(t,n)&&N(e,n,t[n]);if(S)for(var n of S(t))_.call(t,n)&&N(e,n,t[n]);return e},D=(e,t)=>k(e,C(t));function O(e){return"object"==typeof e&&null!==e&&"function"==typeof e.then}function L(e){return"object"==typeof e&&null!==e&&"subscribe"in e&&"function"==typeof e.subscribe}function I(e){return"object"==typeof e&&null!==e&&("AsyncGenerator"===e[Symbol.toStringTag]||Symbol.asyncIterator in e)}async function M(e){const t=await e;return I(t)?async function(e){var t;const n=null==(t=("return"in e?e:e[Symbol.asyncIterator]()).return)?void 0:t.bind(e),r=await("next"in e?e:e[Symbol.asyncIterator]()).next.bind(e)();return null==n||n(),r.value}(t):L(t)?(n=t,new Promise((e,t)=>{const r=n.subscribe({next(t){e(t),r.unsubscribe()},error:t,complete(){t(new Error("no value resolved"))}})})):t;var n}function F(e,t){if(!Boolean(e))throw new Error(t)}var P=a(()=>{});function R(e){return"object"==typeof e&&null!==e}var j=a(()=>{});function V(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}var B,z=a(()=>{});function $(e,t){let n=0,r=1;for(const i of e.body.matchAll(B)){if("number"==typeof i.index||V(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}var U=a(()=>{z(),B=/\r\n|[\n\r]/g});function H(e){return W(e.source,$(e.source,e.start))}function W(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?n:0,l=t.column+s,u=`${e.name}:${a}:${l}\n`,c=r.split(/\r\n|[\n\r]/g),d=c[i];if(d.length>120){const e=Math.floor(l/80),t=l%80,n=[];for(let r=0;r["|",e]),["|","^".padStart(t)],["|",n[e+1]]])}return u+q([[a-1+" |",c[i-1]],[`${a} |`,d],["|","^".padStart(l)],[`${a+1} |`,c[i+1]]])}function q(e){const t=e.filter(([e,t])=>void 0!==t),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?" "+t:"")).join("\n")}var G,K=a(()=>{U()});function Y(e){return void 0===e||0===e.length?void 0:e}var Q=a(()=>{j(),U(),K(),G=class e extends Error{constructor(t,...n){var r,i,o;const{nodes:a,source:s,positions:l,path:u,originalError:c,extensions:d}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(n);super(t),this.name="GraphQLError",this.path=null!=u?u:void 0,this.originalError=null!=c?c:void 0,this.nodes=Y(Array.isArray(a)?a:a?[a]:void 0);const f=Y(null===(r=this.nodes)||void 0===r?void 0:r.map(e=>e.loc).filter(e=>null!=e));this.source=null!=s?s:null==f||null===(i=f[0])||void 0===i?void 0:i.source,this.positions=null!=l?l:null==f?void 0:f.map(e=>e.start),this.locations=l&&s?l.map(e=>$(s,e)):null==f?void 0:f.map(e=>$(e.source,e.start));const p=R(null==c?void 0:c.extensions)?null==c?void 0:c.extensions:void 0;this.extensions=null!==(o=null!=d?d:p)&&void 0!==o?o:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=c&&c.stack?Object.defineProperty(this,"stack",{value:c.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+H(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+W(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}});function X(e,t,n){return new G(`Syntax Error: ${n}`,{source:e,positions:[t]})}var Z,J,ee,te,ne,re=a(()=>{Q()});function ie(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&te.has(t)}var oe,ae,se=a(()=>{Z=class{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},J=class{constructor(e,t,n,r,i,o){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},ee={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","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:["description","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"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},te=new Set(Object.keys(ee)),function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(ne||(ne={}))}),le=a(()=>{!function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(oe||(oe={}))}),ue=a(()=>{!function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",e.TYPE_COORDINATE="TypeCoordinate",e.MEMBER_COORDINATE="MemberCoordinate",e.ARGUMENT_COORDINATE="ArgumentCoordinate",e.DIRECTIVE_COORDINATE="DirectiveCoordinate",e.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"}(ae||(ae={}))});function ce(e){return 9===e||32===e}function de(e){return e>=48&&e<=57}function fe(e){return e>=97&&e<=122||e>=65&&e<=90}function pe(e){return fe(e)||95===e}function he(e){return fe(e)||de(e)||95===e}var me=a(()=>{});function ge(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let a=0;a0===t?e:e.slice(n)).slice(null!==(t=r)&&void 0!==t?t:0,i+1)}function ve(e){let t=0;for(;t{me()}),xe=a(()=>{!function(e){e.SOF="",e.EOF="",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.DOT=".",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(ye||(ye={}))});function Ee(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function ke(e,t){return Ce(e.charCodeAt(t))&&Se(e.charCodeAt(t+1))}function Ce(e){return e>=55296&&e<=56319}function Se(e){return e>=56320&&e<=57343}function Te(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return ye.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function _e(e,t,n,r,i){const o=e.line;return new J(t,n,r,o,1+n-e.lineStart,i)}function Ne(e,t){const n=e.source.body,r=n.length;let i=t;for(;i=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Re(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw X(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function je(e,t){const n=e.source.body,r=n.length;let i=e.lineStart,o=t+3,a=o,s="";const l=[];for(;o{re(),se(),we(),me(),xe(),be=class{constructor(e){const t=new J(ye.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==ye.EOF)do{if(e.next)e=e.next;else{const t=Ne(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===ye.COMMENT);return e}}});function Ue(e){return He(e,[])}function He(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:He(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>ze)return"[Array]";const n=Math.min(Be,e.length),r=e.length-n,i=[];for(let o=0;o1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}(e,n);return function(e,t){const n=Object.entries(e);return 0===n.length?"{}":t.length>ze?"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]":"{ "+n.map(([e,n])=>e+": "+He(n,t)).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}var We,qe,Ge,Ke,Ye=a(()=>{Be=10,ze=2}),Qe=a(()=>{Ye(),We=globalThis.process&&!0,qe=We?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var n;const r=t.prototype[Symbol.toStringTag];if(r===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){const t=Ue(e);throw new Error(`Cannot use ${r} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1}}),Xe=a(()=>{P(),Ye(),Qe(),Ge=class{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||F(!1,`Body must be a string. Received: ${Ue(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||F(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||F(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}});function Ze(e,t){const n=new Ke(e,t),r=n.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:n.tokenCount}),r}function Je(e){const t=e.value;return et(e.kind)+(null!=t?` "${t}"`:"")}function et(e){return function(e){return e===ye.BANG||e===ye.DOLLAR||e===ye.AMP||e===ye.PAREN_L||e===ye.PAREN_R||e===ye.DOT||e===ye.SPREAD||e===ye.COLON||e===ye.EQUALS||e===ye.AT||e===ye.BRACKET_L||e===ye.BRACKET_R||e===ye.BRACE_L||e===ye.PIPE||e===ye.BRACE_R}(e)?`"${e}"`:e}var tt,nt=a(()=>{re(),se(),le(),ue(),$e(),Xe(),xe(),Ke=class{constructor(e,t={}){const{lexer:n,...r}=t;this._lexer=n||new be(function(e){return qe(e,Ge)}(e)?e:new Ge(e)),this._options=r,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const e=this.expectToken(ye.NAME);return this.node(e,{kind:ae.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:ae.DOCUMENT,definitions:this.many(ye.SOF,this.parseDefinition,ye.EOF)})}parseDefinition(){if(this.peek(ye.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===ye.BRACE_L)throw X(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(t.kind===ye.NAME){switch(t.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()}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(e)throw X(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if("extend"===t.value)return this.parseTypeSystemExtension()}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(ye.BRACE_L))return this.node(e,{kind:ae.OPERATION_DEFINITION,operation:ne.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseDescription(),n=this.parseOperationType();let r;return this.peek(ye.NAME)&&(r=this.parseName()),this.node(e,{kind:ae.OPERATION_DEFINITION,operation:n,description:t,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(ye.NAME);switch(e.value){case"query":return ne.QUERY;case"mutation":return ne.MUTATION;case"subscription":return ne.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(ye.PAREN_L,this.parseVariableDefinition,ye.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:ae.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(ye.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(ye.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(ye.DOLLAR),this.node(e,{kind:ae.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:ae.SELECTION_SET,selections:this.many(ye.BRACE_L,this.parseSelection,ye.BRACE_R)})}parseSelection(){return this.peek(ye.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,r;return this.expectOptionalToken(ye.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:ae.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(ye.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(ye.PAREN_L,t,ye.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(ye.COLON),this.node(t,{kind:ae.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(ye.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(ye.NAME)?this.node(e,{kind:ae.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:ae.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token,t=this.parseDescription();return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:ae.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:ae.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case ye.BRACKET_L:return this.parseList(e);case ye.BRACE_L:return this.parseObject(e);case ye.INT:return this.advanceLexer(),this.node(t,{kind:ae.INT,value:t.value});case ye.FLOAT:return this.advanceLexer(),this.node(t,{kind:ae.FLOAT,value:t.value});case ye.STRING:case ye.BLOCK_STRING:return this.parseStringLiteral();case ye.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:ae.BOOLEAN,value:!0});case"false":return this.node(t,{kind:ae.BOOLEAN,value:!1});case"null":return this.node(t,{kind:ae.NULL});default:return this.node(t,{kind:ae.ENUM,value:t.value})}case ye.DOLLAR:if(e){if(this.expectToken(ye.DOLLAR),this._lexer.token.kind===ye.NAME){const e=this._lexer.token.value;throw X(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:ae.STRING,value:e.value,block:e.kind===ye.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:ae.LIST,values:this.any(ye.BRACKET_L,()=>this.parseValueLiteral(e),ye.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:ae.OBJECT,fields:this.any(ye.BRACE_L,()=>this.parseObjectField(e),ye.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(ye.COLON),this.node(t,{kind:ae.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(ye.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(ye.AT),this.node(t,{kind:ae.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(ye.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(ye.BRACKET_R),t=this.node(e,{kind:ae.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(ye.BANG)?this.node(e,{kind:ae.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:ae.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(ye.STRING)||this.peek(ye.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(ye.BRACE_L,this.parseOperationTypeDefinition,ye.BRACE_R);return this.node(e,{kind:ae.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(ye.COLON);const n=this.parseNamedType();return this.node(e,{kind:ae.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:ae.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:ae.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(ye.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(ye.BRACE_L,this.parseFieldDefinition,ye.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(ye.COLON);const i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:ae.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(ye.PAREN_L,this.parseInputValueDef,ye.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(ye.COLON);const r=this.parseTypeReference();let i;this.expectOptionalToken(ye.EQUALS)&&(i=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(e,{kind:ae.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:ae.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:ae.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(ye.EQUALS)?this.delimitedMany(ye.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:ae.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(ye.BRACE_L,this.parseEnumValueDefinition,ye.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:ae.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw X(this._lexer.source,this._lexer.token.start,`${Je(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:ae.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(ye.BRACE_L,this.parseInputValueDef,ye.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===ye.NAME)switch(e.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(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(ye.BRACE_L,this.parseOperationTypeDefinition,ye.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:ae.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:ae.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:ae.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:ae.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:ae.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:ae.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:ae.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(ye.AT);const n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:ae.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(ye.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(oe,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){const e=this._lexer.token,t=this.expectOptionalToken(ye.AT),n=this.parseName();let r,i;return!t&&this.expectOptionalToken(ye.DOT)&&(r=this.parseName()),(t||r)&&this.expectOptionalToken(ye.PAREN_L)&&(i=this.parseName(),this.expectToken(ye.COLON),this.expectToken(ye.PAREN_R)),t?i?this.node(e,{kind:ae.DIRECTIVE_ARGUMENT_COORDINATE,name:n,argumentName:i}):this.node(e,{kind:ae.DIRECTIVE_COORDINATE,name:n}):r?i?this.node(e,{kind:ae.ARGUMENT_COORDINATE,name:n,fieldName:r,argumentName:i}):this.node(e,{kind:ae.MEMBER_COORDINATE,name:n,memberName:r}):this.node(e,{kind:ae.TYPE_COORDINATE,name:n})}node(e,t){return!0!==this._options.noLocation&&(t.loc=new Z(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw X(this._lexer.source,t.start,`Expected ${et(e)}, found ${Je(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==ye.NAME||t.value!==e)throw X(this._lexer.source,t.start,`Expected "${e}", found ${Je(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===ye.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return X(this._lexer.source,t.start,`Unexpected ${Je(t)}.`)}any(e,t,n){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==ye.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw X(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}});function rt(e,t){const[n,r]=t?[e,t]:[void 0,e];let i=" Did you mean ";n&&(i+=n+" ");const o=r.map(e=>`"${e}"`);switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}const a=o.slice(0,tt),s=a.pop();return i+a.join(", ")+", or "+s+"?"}var it=a(()=>{tt=5});function ot(e){return e}var at=a(()=>{});function st(e,t){const n=Object.create(null);for(const r of e)n[t(r)]=r;return n}var lt=a(()=>{});function ut(e,t,n){const r=Object.create(null);for(const i of e)r[t(i)]=n(i);return r}var ct=a(()=>{});function dt(e,t){const n=Object.create(null);for(const r of Object.keys(e))n[r]=t(e[r],r);return n}var ft,pt,ht=a(()=>{});function mt(e,t){let n=0,r=0;for(;n0);let s=0;do{++r,s=10*s+o-ft,o=t.charCodeAt(r)}while(gt(o)&&s>0);if(as)return 1}else{if(io)return 1;++n,++r}}return e.length-t.length}function gt(e){return!isNaN(e)&&ft<=e&&e<=pt}var vt,yt=a(()=>{ft=48,pt=57});function bt(e,t){const n=Object.create(null),r=new vt(e),i=Math.floor(.4*e.length)+1;for(const o of t){const e=r.measure(o,i);void 0!==e&&(n[o]=e)}return Object.keys(n).sort((e,t)=>{const r=n[e]-n[t];return 0!==r?r:mt(e,t)})}function wt(e){const t=e.length,n=new Array(t);for(let r=0;r{yt(),vt=class{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=wt(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;const n=e.toLowerCase();if(this._inputLowerCase===n)return 1;let r=wt(n),i=this._inputArray;if(r.lengtht)return;const s=this._rows;for(let u=0;u<=a;u++)s[0][u]=u;for(let u=1;u<=o;u++){const e=s[(u-1)%3],n=s[u%3];let o=n[0]=u;for(let t=1;t<=a;t++){const a=r[u-1]===i[t-1]?0:1;let l=Math.min(e[t]+1,n[t-1]+1,e[t-1]+a);if(u>1&&t>1&&r[u-1]===i[t-2]&&r[u-2]===i[t-1]){const e=s[(u-2)%3][t-2];l=Math.min(l,e+1)}lt)return}const l=s[o%3][a];return l<=t?l:void 0}}});function Et(e){if(null==e)return Object.create(null);if(null===Object.getPrototypeOf(e))return e;const t=Object.create(null);for(const[n,r]of Object.entries(e))t[n]=r;return t}var kt,Ct,St=a(()=>{});function Tt(e){return Ct[e.charCodeAt(0)]}var _t,Nt=a(()=>{kt=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g,Ct=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]});function At(e,t,n=ee){const r=new Map;for(const v of Object.values(ae))r.set(v,Dt(t,v));let i,o,a,s=Array.isArray(e),l=[e],u=-1,c=[],d=e;const f=[],p=[];do{u++;const e=u===l.length,v=e&&0!==c.length;if(e){if(o=0===p.length?void 0:f[f.length-1],d=a,a=p.pop(),v)if(s){d=d.slice();let e=0;for(const[t,n]of c){const r=t-e;null===n?(d.splice(r,1),e++):d[r]=n}}else{d={...d};for(const[e,t]of c)d[e]=t}u=i.index,l=i.keys,c=i.edits,s=i.inArray,i=i.prev}else if(a){if(o=s?u:l[u],d=a[o],null==d)continue;f.push(o)}let y;if(!Array.isArray(d)){var h,m;ie(d)||F(!1,`Invalid AST Node: ${Ue(d)}.`);const n=e?null===(h=r.get(d.kind))||void 0===h?void 0:h.leave:null===(m=r.get(d.kind))||void 0===m?void 0:m.enter;if(y=null==n?void 0:n.call(t,d,o,a,f,p),y===_t)break;if(!1===y){if(!e){f.pop();continue}}else if(void 0!==y&&(c.push([o,y]),!e)){if(!ie(y)){f.pop();continue}d=y}}var g;void 0===y&&v&&c.push([o,d]),e?f.pop():(i={inArray:s,index:u,keys:l,edits:c,prev:i},s=Array.isArray(d),l=s?d:null!==(g=n[d.kind])&&void 0!==g?g:[],u=-1,c=[],a&&p.push(a),a=d)}while(void 0!==i);return 0!==c.length?c[c.length-1][1]:e}function Dt(e,t){const n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}var Ot,Lt=a(()=>{P(),Ye(),se(),ue(),_t=Object.freeze({})});function It(e){return At(e,Ot)}function Mt(e,t=""){var n;return null!==(n=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==n?n:""}function Ft(e){return Pt("{\n",Rt(Mt(e,"\n")),"\n}")}function Pt(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function Rt(e){return Pt(" ",e.replace(/\n/g,"\n "))}function jt(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}var Vt=a(()=>{we(),Nt(),Lt(),Ot={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Mt(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=jt(e.variableDefinitions)?Pt("(\n",Mt(e.variableDefinitions,"\n"),"\n)"):Pt("(",Mt(e.variableDefinitions,", "),")"),n=Pt("",e.description,"\n")+Mt([e.operation,Mt([e.name,t]),Mt(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r,description:i})=>Pt("",i,"\n")+e+": "+t+Pt(" = ",n)+Pt(" ",Mt(r," "))},SelectionSet:{leave:({selections:e})=>Ft(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=Pt("",e,": ")+t;let a=o+Pt("(",Mt(n,", "),")");return a.length>80&&(a=o+Pt("(\n",Rt(Mt(n,"\n")),"\n)")),Mt([a,Mt(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Pt(" ",Mt(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Mt(["...",Pt("on ",e),Mt(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i,description:o})=>Pt("",o,"\n")+`fragment ${e}${Pt("(",Mt(n,", "),")")} on ${t} ${Pt("",Mt(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?function(e){const t=e.replace(/"""/g,'\\"""'),n=t.split(/\r\n|[\n\r]/g),r=1===n.length,i=n.length>1&&n.slice(1).every(e=>0===e.length||ce(e.charCodeAt(0))),o=t.endsWith('\\"""'),a=e.endsWith('"')&&!o,s=e.endsWith("\\"),l=a||s,u=!r||e.length>70||l||i||o;let c="";const d=r&&ce(e.charCodeAt(0));return(u&&!d||i)&&(c+="\n"),c+=t,(u||l)&&(c+="\n"),'"""'+c+'"""'}(e):`"${e.replace(kt,Tt)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Mt(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Mt(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Pt("(",Mt(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Pt("",e,"\n")+Mt(["schema",Mt(t," "),Ft(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Pt("",e,"\n")+Mt(["scalar",t,Mt(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Pt("",e,"\n")+Mt(["type",t,Pt("implements ",Mt(n," & ")),Mt(r," "),Ft(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>Pt("",e,"\n")+t+(jt(n)?Pt("(\n",Rt(Mt(n,"\n")),"\n)"):Pt("(",Mt(n,", "),")"))+": "+r+Pt(" ",Mt(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>Pt("",e,"\n")+Mt([t+": "+n,Pt("= ",r),Mt(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Pt("",e,"\n")+Mt(["interface",t,Pt("implements ",Mt(n," & ")),Mt(r," "),Ft(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>Pt("",e,"\n")+Mt(["union",t,Mt(n," "),Pt("= ",Mt(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>Pt("",e,"\n")+Mt(["enum",t,Mt(n," "),Ft(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>Pt("",e,"\n")+Mt([t,Mt(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>Pt("",e,"\n")+Mt(["input",t,Mt(n," "),Ft(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>Pt("",e,"\n")+"directive @"+t+(jt(n)?Pt("(\n",Rt(Mt(n,"\n")),"\n)"):Pt("(",Mt(n,", "),")"))+(r?" repeatable":"")+" on "+Mt(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Mt(["extend schema",Mt(e," "),Ft(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Mt(["extend scalar",e,Mt(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Mt(["extend type",e,Pt("implements ",Mt(t," & ")),Mt(n," "),Ft(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Mt(["extend interface",e,Pt("implements ",Mt(t," & ")),Mt(n," "),Ft(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Mt(["extend union",e,Mt(t," "),Pt("= ",Mt(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Mt(["extend enum",e,Mt(t," "),Ft(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Mt(["extend input",e,Mt(t," "),Ft(n)]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>Mt([e,Pt(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:n})=>Mt([e,Pt(".",t),Pt("(",n,":)")])},DirectiveCoordinate:{leave:({name:e})=>Mt(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>Mt(["@",e,Pt("(",t,":)")])}}});function Bt(e,t){switch(e.kind){case ae.NULL:return null;case ae.INT:return parseInt(e.value,10);case ae.FLOAT:return parseFloat(e.value);case ae.STRING:case ae.ENUM:case ae.BOOLEAN:return e.value;case ae.LIST:return e.values.map(e=>Bt(e,t));case ae.OBJECT:return ut(e.fields,e=>e.name.value,e=>Bt(e.value,t));case ae.VARIABLE:return null==t?void 0:t[e.name.value]}}var zt=a(()=>{ct(),ue()});function $t(e){if(null!=e||F(!1,"Must provide name."),"string"==typeof e||F(!1,"Expected name to be a string."),0===e.length)throw new G("Expected name to be a non-empty string.");for(let t=1;t{P(),Q(),me()});function Jt(e){return en(e)||tn(e)||nn(e)||rn(e)||on(e)||an(e)||sn(e)||ln(e)}function en(e){return qe(e,qt)}function tn(e){return qe(e,Gt)}function nn(e){return qe(e,Kt)}function rn(e){return qe(e,Yt)}function on(e){return qe(e,Qt)}function an(e){return qe(e,Xt)}function sn(e){return qe(e,Ht)}function ln(e){return qe(e,Wt)}function un(e){return en(e)||on(e)||an(e)||hn(e)&&un(e.ofType)}function cn(e){return en(e)||tn(e)||nn(e)||rn(e)||on(e)||hn(e)&&cn(e.ofType)}function dn(e){return en(e)||on(e)}function fn(e){return tn(e)||nn(e)||rn(e)}function pn(e){return nn(e)||rn(e)}function hn(e){return sn(e)||ln(e)}function mn(e){return Jt(e)&&!ln(e)}function gn(e){if(e)return ln(e)?e.ofType:e}function vn(e){return en(e)||tn(e)||nn(e)||rn(e)||on(e)||an(e)}function yn(e){if(e){let t=e;for(;hn(t);)t=t.ofType;return t}}function bn(e){return"function"==typeof e?e():e}function wn(e){return"function"==typeof e?e():e}function xn(e){var t;const n=bn(null!==(t=e.interfaces)&&void 0!==t?t:[]);return Array.isArray(n)||F(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function En(e){const t=wn(e.fields);return Cn(t)||F(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),dt(t,(t,n)=>{var r;Cn(t)||F(!1,`${e.name}.${n} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||F(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${Ue(t.resolve)}.`);const i=null!==(r=t.args)&&void 0!==r?r:{};return Cn(i)||F(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:$t(n),description:t.description,type:t.type,args:kn(i),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:Et(t.extensions),astNode:t.astNode}})}function kn(e){return Object.entries(e).map(([e,t])=>({name:$t(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:Et(t.extensions),astNode:t.astNode}))}function Cn(e){return R(e)&&!Array.isArray(e)}function Sn(e){return dt(e,e=>({description:e.description,type:e.type,args:Tn(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function Tn(e){return ut(e,e=>e.name,e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function _n(e){return ln(e.type)&&void 0===e.defaultValue}function Nn(e){const t=bn(e.types);return Array.isArray(t)||F(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}function An(e,t){return rt("the enum value",bt(t,e.getValues().map(e=>e.name)))}function Dn(e,t){return Cn(t)||F(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([t,n])=>(Cn(n)||F(!1,`${e}.${t} must refer to an object with a "value" key representing an internal value but got: ${Ue(n)}.`),{name:Ut(t),description:n.description,value:void 0!==n.value?n.value:t,deprecationReason:n.deprecationReason,extensions:Et(n.extensions),astNode:n.astNode}))}function On(e){const t=wn(e.fields);return Cn(t)||F(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),dt(t,(t,n)=>(!("resolve"in t)||F(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:$t(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:Et(t.extensions),astNode:t.astNode}))}function Ln(e){return ln(e.type)&&void 0===e.defaultValue}var In=a(()=>{P(),it(),at(),Ye(),Qe(),j(),lt(),ct(),ht(),xt(),St(),Q(),ue(),Vt(),zt(),Zt(),Ht=class{constructor(e){Jt(e)||F(!1,`Expected ${Ue(e)} to be a GraphQL type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}},Wt=class{constructor(e){mn(e)||F(!1,`Expected ${Ue(e)} to be a GraphQL nullable type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}},qt=class{constructor(e){var t,n,r,i;const o=null!==(t=e.parseValue)&&void 0!==t?t:ot;this.name=$t(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:ot,this.parseValue=o,this.parseLiteral=null!==(r=e.parseLiteral)&&void 0!==r?r:(e,t)=>o(Bt(e,t)),this.extensions=Et(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(i=e.extensionASTNodes)&&void 0!==i?i:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||F(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${Ue(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||F(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||F(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){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:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}},Gt=class{constructor(e){var t;this.name=$t(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=Et(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=()=>En(e),this._interfaces=()=>xn(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||F(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${Ue(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Sn(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}},Kt=class{constructor(e){var t;this.name=$t(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=Et(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=En.bind(void 0,e),this._interfaces=xn.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||F(!1,`${this.name} must provide "resolveType" as a function, but got: ${Ue(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Sn(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}},Yt=class{constructor(e){var t;this.name=$t(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=Et(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._types=Nn.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||F(!1,`${this.name} must provide "resolveType" as a function, but got: ${Ue(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}},Qt=class{constructor(e){var t;this.name=$t(e.name),this.description=e.description,this.extensions=Et(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._values="function"==typeof e.values?e.values:Dn(this.name,e.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return"function"==typeof this._values&&(this._values=Dn(this.name,this._values())),this._values}getValue(e){return null===this._nameLookup&&(this._nameLookup=st(this.getValues(),e=>e.name)),this._nameLookup[e]}serialize(e){null===this._valueLookup&&(this._valueLookup=new Map(this.getValues().map(e=>[e.value,e])));const t=this._valueLookup.get(e);if(void 0===t)throw new G(`Enum "${this.name}" cannot represent value: ${Ue(e)}`);return t.name}parseValue(e){if("string"!=typeof e){const t=Ue(e);throw new G(`Enum "${this.name}" cannot represent non-string value: ${t}.`+An(this,t))}const t=this.getValue(e);if(null==t)throw new G(`Value "${e}" does not exist in "${this.name}" enum.`+An(this,e));return t.value}parseLiteral(e,t){if(e.kind!==ae.ENUM){const t=It(e);throw new G(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+An(this,t),{nodes:e})}const n=this.getValue(e.value);if(null==n){const t=It(e);throw new G(`Value "${t}" does not exist in "${this.name}" enum.`+An(this,t),{nodes:e})}return n.value}toConfig(){const e=ut(this.getValues(),e=>e.name,e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}},Xt=class{constructor(e){var t,n;this.name=$t(e.name),this.description=e.description,this.extensions=Et(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this.isOneOf=null!==(n=e.isOneOf)&&void 0!==n&&n,this._fields=On.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){const e=dt(this.getFields(),e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}});function Mn(e,t){return e===t||(ln(e)&&ln(t)||!(!sn(e)||!sn(t)))&&Mn(e.ofType,t.ofType)}function Fn(e,t,n){return t===n||(ln(n)?!!ln(t)&&Fn(e,t.ofType,n.ofType):ln(t)?Fn(e,t.ofType,n):sn(n)?!!sn(t)&&Fn(e,t.ofType,n.ofType):!sn(t)&&pn(n)&&(nn(t)||tn(t))&&e.isSubType(n,t))}function Pn(e,t,n){return t===n||(pn(t)?pn(n)?e.getPossibleTypes(t).some(t=>e.isSubType(n,t)):e.isSubType(t,n):!!pn(n)&&e.isSubType(n,t))}var Rn,jn,Vn,Bn,zn,$n,Un=a(()=>{In()});function Hn(e){if(R(e)){if("function"==typeof e.valueOf){const t=e.valueOf();if(!R(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}var Wn,qn,Gn,Kn,Yn,Qn,Xn,Zn=a(()=>{Ye(),j(),Q(),ue(),Vt(),In(),Rn=new qt({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(e){const t=Hn(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isInteger(n))throw new G(`Int cannot represent non-integer value: ${Ue(t)}`);if(n>2147483647||n<-2147483648)throw new G("Int cannot represent non 32-bit signed integer value: "+Ue(t));return n},parseValue(e){if("number"!=typeof e||!Number.isInteger(e))throw new G(`Int cannot represent non-integer value: ${Ue(e)}`);if(e>2147483647||e<-2147483648)throw new G(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==ae.INT)throw new G(`Int cannot represent non-integer value: ${It(e)}`,{nodes:e});const t=parseInt(e.value,10);if(t>2147483647||t<-2147483648)throw new G(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),jn=new qt({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(e){const t=Hn(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isFinite(n))throw new G(`Float cannot represent non numeric value: ${Ue(t)}`);return n},parseValue(e){if("number"!=typeof e||!Number.isFinite(e))throw new G(`Float cannot represent non numeric value: ${Ue(e)}`);return e},parseLiteral(e){if(e.kind!==ae.FLOAT&&e.kind!==ae.INT)throw new G(`Float cannot represent non numeric value: ${It(e)}`,e);return parseFloat(e.value)}}),Vn=new qt({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(e){const t=Hn(e);if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if("number"==typeof t&&Number.isFinite(t))return t.toString();throw new G(`String cannot represent value: ${Ue(e)}`)},parseValue(e){if("string"!=typeof e)throw new G(`String cannot represent a non string value: ${Ue(e)}`);return e},parseLiteral(e){if(e.kind!==ae.STRING)throw new G(`String cannot represent a non string value: ${It(e)}`,{nodes:e});return e.value}}),Bn=new qt({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const t=Hn(e);if("boolean"==typeof t)return t;if(Number.isFinite(t))return 0!==t;throw new G(`Boolean cannot represent a non boolean value: ${Ue(t)}`)},parseValue(e){if("boolean"!=typeof e)throw new G(`Boolean cannot represent a non boolean value: ${Ue(e)}`);return e},parseLiteral(e){if(e.kind!==ae.BOOLEAN)throw new G(`Boolean cannot represent a non boolean value: ${It(e)}`,{nodes:e});return e.value}}),zn=new qt({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(e){const t=Hn(e);if("string"==typeof t)return t;if(Number.isInteger(t))return String(t);throw new G(`ID cannot represent value: ${Ue(e)}`)},parseValue(e){if("string"==typeof e)return e;if("number"==typeof e&&Number.isInteger(e))return e.toString();throw new G(`ID cannot represent value: ${Ue(e)}`)},parseLiteral(e){if(e.kind!==ae.STRING&&e.kind!==ae.INT)throw new G("ID cannot represent a non-string and non-integer value: "+It(e),{nodes:e});return e.value}}),$n=Object.freeze([Vn,Rn,jn,Bn,zn])});function Jn(e){return qe(e,Wn)}var er,tr=a(()=>{P(),Qe(),j(),St(),le(),Zt(),In(),Zn(),Wn=class{constructor(e){var t,n;this.name=$t(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(t=e.isRepeatable)&&void 0!==t&&t,this.extensions=Et(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||F(!1,`@${e.name} locations must be an Array.`);const r=null!==(n=e.args)&&void 0!==n?n:{};R(r)&&!Array.isArray(r)||F(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=kn(r)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:Tn(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}},qn=new Wn({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[oe.FIELD,oe.FRAGMENT_SPREAD,oe.INLINE_FRAGMENT],args:{if:{type:new Wt(Bn),description:"Included when true."}}}),Gn=new Wn({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[oe.FIELD,oe.FRAGMENT_SPREAD,oe.INLINE_FRAGMENT],args:{if:{type:new Wt(Bn),description:"Skipped when true."}}}),Kn=new Wn({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[oe.FIELD_DEFINITION,oe.ARGUMENT_DEFINITION,oe.INPUT_FIELD_DEFINITION,oe.ENUM_VALUE],args:{reason:{type:Vn,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:"No longer supported"}}}),Yn=new Wn({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[oe.SCALAR],args:{url:{type:new Wt(Vn),description:"The URL that specifies the behavior of this scalar."}}}),Qn=new Wn({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[oe.INPUT_OBJECT],args:{}}),Xn=Object.freeze([qn,Gn,Kn,Yn,Qn])}),nr=a(()=>{});function rr(e,t){if(ln(t)){const n=rr(e,t.ofType);return(null==n?void 0:n.kind)===ae.NULL?null:n}if(null===e)return{kind:ae.NULL};if(void 0===e)return null;if(sn(t)){const r=t.ofType;if("object"==typeof(n=e)&&"function"==typeof(null==n?void 0:n[Symbol.iterator])){const t=[];for(const n of e){const e=rr(n,r);null!=e&&t.push(e)}return{kind:ae.LIST,values:t}}return rr(e,r)}var n;if(an(t)){if(!R(e))return null;const n=[];for(const r of Object.values(t.getFields())){const t=rr(e[r.name],r.type);t&&n.push({kind:ae.OBJECT_FIELD,name:{kind:ae.NAME,value:r.name},value:t})}return{kind:ae.OBJECT,fields:n}}if(dn(t)){const n=t.serialize(e);if(null==n)return null;if("boolean"==typeof n)return{kind:ae.BOOLEAN,value:n};if("number"==typeof n&&Number.isFinite(n)){const e=String(n);return er.test(e)?{kind:ae.INT,value:e}:{kind:ae.FLOAT,value:e}}if("string"==typeof n)return on(t)?{kind:ae.ENUM,value:n}:t===zn&&er.test(n)?{kind:ae.INT,value:n}:{kind:ae.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${Ue(n)}.`)}V(!1,"Unexpected input type: "+Ue(t))}var ir,or,ar,sr,lr,ur,cr,dr,fr,pr,hr,mr,gr,vr=a(()=>{Ye(),z(),nr(),j(),ue(),In(),Zn(),er=/^-?(?:0|[1-9][0-9]*)$/});function yr(e){return gr.some(({name:t})=>e.name===t)}var br,wr=a(()=>{Ye(),z(),le(),Vt(),vr(),In(),Zn(),ir=new Gt({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:()=>({description:{type:Vn,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new Wt(new Ht(new Wt(sr))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new Wt(sr),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:sr,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:sr,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new Wt(new Ht(new Wt(or))),resolve:e=>e.getDirectives()}})}),or=new Gt({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new Wt(Vn),resolve:e=>e.name},description:{type:Vn,resolve:e=>e.description},isRepeatable:{type:new Wt(Bn),resolve:e=>e.isRepeatable},locations:{type:new Wt(new Ht(new Wt(ar))),resolve:e=>e.locations},args:{type:new Wt(new Ht(new Wt(ur))),args:{includeDeprecated:{type:Bn,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)}})}),ar=new Qt({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:oe.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:oe.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:oe.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:oe.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:oe.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:oe.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:oe.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:oe.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:oe.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:oe.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:oe.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:oe.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:oe.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:oe.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:oe.UNION,description:"Location adjacent to a union definition."},ENUM:{value:oe.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:oe.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:oe.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:oe.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),sr=new Gt({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:()=>({kind:{type:new Wt(fr),resolve:e=>en(e)?dr.SCALAR:tn(e)?dr.OBJECT:nn(e)?dr.INTERFACE:rn(e)?dr.UNION:on(e)?dr.ENUM:an(e)?dr.INPUT_OBJECT:sn(e)?dr.LIST:ln(e)?dr.NON_NULL:void V(!1,`Unexpected type: "${Ue(e)}".`)},name:{type:Vn,resolve:e=>"name"in e?e.name:void 0},description:{type:Vn,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:Vn,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new Ht(new Wt(lr)),args:{includeDeprecated:{type:Bn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(tn(e)||nn(e)){const n=Object.values(e.getFields());return t?n:n.filter(e=>null==e.deprecationReason)}}},interfaces:{type:new Ht(new Wt(sr)),resolve(e){if(tn(e)||nn(e))return e.getInterfaces()}},possibleTypes:{type:new Ht(new Wt(sr)),resolve(e,t,n,{schema:r}){if(pn(e))return r.getPossibleTypes(e)}},enumValues:{type:new Ht(new Wt(cr)),args:{includeDeprecated:{type:Bn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(on(e)){const n=e.getValues();return t?n:n.filter(e=>null==e.deprecationReason)}}},inputFields:{type:new Ht(new Wt(ur)),args:{includeDeprecated:{type:Bn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(an(e)){const n=Object.values(e.getFields());return t?n:n.filter(e=>null==e.deprecationReason)}}},ofType:{type:sr,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:Bn,resolve:e=>{if(an(e))return e.isOneOf}}})}),lr=new Gt({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:()=>({name:{type:new Wt(Vn),resolve:e=>e.name},description:{type:Vn,resolve:e=>e.description},args:{type:new Wt(new Ht(new Wt(ur))),args:{includeDeprecated:{type:Bn,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)},type:{type:new Wt(sr),resolve:e=>e.type},isDeprecated:{type:new Wt(Bn),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:Vn,resolve:e=>e.deprecationReason}})}),ur=new Gt({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:()=>({name:{type:new Wt(Vn),resolve:e=>e.name},description:{type:Vn,resolve:e=>e.description},type:{type:new Wt(sr),resolve:e=>e.type},defaultValue:{type:Vn,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:n}=e,r=rr(n,t);return r?It(r):null}},isDeprecated:{type:new Wt(Bn),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:Vn,resolve:e=>e.deprecationReason}})}),cr=new Gt({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:()=>({name:{type:new Wt(Vn),resolve:e=>e.name},description:{type:Vn,resolve:e=>e.description},isDeprecated:{type:new Wt(Bn),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:Vn,resolve:e=>e.deprecationReason}})}),function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"}(dr||(dr={})),fr=new Qt({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:dr.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:dr.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:dr.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:dr.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:dr.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:dr.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:dr.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:dr.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),pr={name:"__schema",type:new Wt(ir),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},hr={name:"__type",type:sr,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new Wt(Vn),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},mr={name:"__typename",type:new Wt(Vn),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},gr=Object.freeze([ir,or,ar,sr,lr,ur,cr,fr])});function xr(e){return qe(e,br)}function Er(e,t){const n=yn(e);if(!t.has(n))if(t.add(n),rn(n))for(const r of n.getTypes())Er(r,t);else if(tn(n)||nn(n)){for(const e of n.getInterfaces())Er(e,t);for(const e of Object.values(n.getFields())){Er(e.type,t);for(const n of e.args)Er(n.type,t)}}else if(an(n))for(const r of Object.values(n.getFields()))Er(r.type,t);return t}var kr,Cr=a(()=>{P(),Ye(),Qe(),j(),St(),se(),In(),tr(),wr(),br=class{constructor(e){var t,n;this.__validationErrors=!0===e.assumeValid?[]:void 0,R(e)||F(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||F(!1,`"types" must be Array if provided but got: ${Ue(e.types)}.`),!e.directives||Array.isArray(e.directives)||F(!1,`"directives" must be Array if provided but got: ${Ue(e.directives)}.`),this.description=e.description,this.extensions=Et(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!==(n=e.directives)&&void 0!==n?n:Xn;const r=new Set(e.types);if(null!=e.types)for(const i of e.types)r.delete(i),Er(i,r);null!=this._queryType&&Er(this._queryType,r),null!=this._mutationType&&Er(this._mutationType,r),null!=this._subscriptionType&&Er(this._subscriptionType,r);for(const i of this._directives)if(Jn(i))for(const e of i.args)Er(e.type,r);Er(ir,r),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const i of r){if(null==i)continue;const e=i.name;if(e||F(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[e])throw new Error(`Schema must contain uniquely named types but contains multiple types named "${e}".`);if(this._typeMap[e]=i,nn(i)){for(const t of i.getInterfaces())if(nn(t)){let e=this._implementationsMap[t.name];void 0===e&&(e=this._implementationsMap[t.name]={objects:[],interfaces:[]}),e.interfaces.push(i)}}else if(tn(i))for(const t of i.getInterfaces())if(nn(t)){let e=this._implementationsMap[t.name];void 0===e&&(e=this._implementationsMap[t.name]={objects:[],interfaces:[]}),e.objects.push(i)}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case ne.QUERY:return this.getQueryType();case ne.MUTATION:return this.getMutationType();case ne.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return rn(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){const t=this._implementationsMap[e.name];return null!=t?t:{objects:[],interfaces:[]}}isSubType(e,t){let n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),rn(e))for(const t of e.getTypes())n[t.name]=!0;else{const t=this.getImplementations(e);for(const e of t.objects)n[e.name]=!0;for(const e of t.interfaces)n[e.name]=!0}this._subTypeMap[e.name]=n}return void 0!==n[t.name]}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find(t=>t.name===e)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:void 0!==this.__validationErrors}}}});function Sr(e){if(function(e){if(!xr(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL schema.`)}(e),e.__validationErrors)return e.__validationErrors;const t=new kr(e);!function(e){const t=e.schema,n=t.getQueryType();if(n){if(!tn(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${Ue(n)}.`,null!==(r=Tr(t,ne.QUERY))&&void 0!==r?r:n.astNode)}}else e.reportError("Query root type must be provided.",t.astNode);const i=t.getMutationType();var o;i&&!tn(i)&&e.reportError(`Mutation root type must be Object type if provided, it cannot be ${Ue(i)}.`,null!==(o=Tr(t,ne.MUTATION))&&void 0!==o?o:i.astNode);const a=t.getSubscriptionType();var s;a&&!tn(a)&&e.reportError(`Subscription root type must be Object type if provided, it cannot be ${Ue(a)}.`,null!==(s=Tr(t,ne.SUBSCRIPTION))&&void 0!==s?s:a.astNode)}(t),function(e){for(const n of e.schema.getDirectives())if(Jn(n)){_r(e,n),0===n.locations.length&&e.reportError(`Directive @${n.name} must include 1 or more locations.`,n.astNode);for(const r of n.args){var t;_r(e,r),un(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${Ue(r.type)}.`,r.astNode),_n(r)&&null!=r.deprecationReason&&e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[jr(r.astNode),null===(t=r.astNode)||void 0===t?void 0:t.type])}}else e.reportError(`Expected directive but got: ${Ue(n)}.`,null==n?void 0:n.astNode)}(t),function(e){const t=function(e){const t=Object.create(null),n=[],r=Object.create(null);return function i(o){if(t[o.name])return;t[o.name]=!0,r[o.name]=n.length;const a=Object.values(o.getFields());for(const t of a)if(ln(t.type)&&an(t.type.ofType)){const o=t.type.ofType,a=r[o.name];if(n.push(t),void 0===a)i(o);else{const t=n.slice(a),r=t.map(e=>e.name).join(".");e.reportError(`Cannot reference Input Object "${o.name}" within itself through a series of non-null fields: "${r}".`,t.map(e=>e.astNode))}n.pop()}r[o.name]=void 0}}(e),n=e.schema.getTypeMap();for(const r of Object.values(n))vn(r)?(yr(r)||_r(e,r),tn(r)||nn(r)?(Nr(e,r),Ar(e,r)):rn(r)?Lr(e,r):on(r)?Ir(e,r):an(r)&&(Mr(e,r),t(r))):e.reportError(`Expected GraphQL named type but got: ${Ue(r)}.`,r.astNode)}(t);const n=t.getErrors();return e.__validationErrors=n,n}function Tr(e,t){var n;return null===(n=[e.astNode,...e.extensionASTNodes].flatMap(e=>{var t;return null!==(t=null==e?void 0:e.operationTypes)&&void 0!==t?t:[]}).find(e=>e.operation===t))||void 0===n?void 0:n.type}function _r(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function Nr(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const a of n){var r;_r(e,a),cn(a.type)||e.reportError(`The type of ${t.name}.${a.name} must be Output Type but got: ${Ue(a.type)}.`,null===(r=a.astNode)||void 0===r?void 0:r.type);for(const n of a.args){const r=n.name;var i,o;_r(e,n),un(n.type)||e.reportError(`The type of ${t.name}.${a.name}(${r}:) must be Input Type but got: ${Ue(n.type)}.`,null===(i=n.astNode)||void 0===i?void 0:i.type),_n(n)&&null!=n.deprecationReason&&e.reportError(`Required argument ${t.name}.${a.name}(${r}:) cannot be deprecated.`,[jr(n.astNode),null===(o=n.astNode)||void 0===o?void 0:o.type])}}}function Ar(e,t){const n=Object.create(null);for(const r of t.getInterfaces())nn(r)?t!==r?n[r.name]?e.reportError(`Type ${t.name} can only implement ${r.name} once.`,Pr(t,r)):(n[r.name]=!0,Or(e,t,r),Dr(e,t,r)):e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,Pr(t,r)):e.reportError(`Type ${Ue(t)} must only implement Interface types, it cannot implement ${Ue(r)}.`,Pr(t,r))}function Dr(e,t,n){const r=t.getFields();for(const l of Object.values(n.getFields())){const u=l.name,c=r[u];if(c){var i,o;Fn(e.schema,c.type,l.type)||e.reportError(`Interface field ${n.name}.${u} expects type ${Ue(l.type)} but ${t.name}.${u} is type ${Ue(c.type)}.`,[null===(i=l.astNode)||void 0===i?void 0:i.type,null===(o=c.astNode)||void 0===o?void 0:o.type]);for(const r of l.args){const i=r.name,o=c.args.find(e=>e.name===i);var a,s;o?Mn(r.type,o.type)||e.reportError(`Interface field argument ${n.name}.${u}(${i}:) expects type ${Ue(r.type)} but ${t.name}.${u}(${i}:) is type ${Ue(o.type)}.`,[null===(a=r.astNode)||void 0===a?void 0:a.type,null===(s=o.astNode)||void 0===s?void 0:s.type]):e.reportError(`Interface field argument ${n.name}.${u}(${i}:) expected but ${t.name}.${u} does not provide it.`,[r.astNode,c.astNode])}for(const r of c.args){const i=r.name;!l.args.find(e=>e.name===i)&&_n(r)&&e.reportError(`Object field ${t.name}.${u} includes required argument ${i} that is missing from the Interface field ${n.name}.${u}.`,[r.astNode,l.astNode])}}else e.reportError(`Interface field ${n.name}.${u} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes])}}function Or(e,t,n){const r=t.getInterfaces();for(const i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...Pr(n,i),...Pr(t,n)])}function Lr(e,t){const n=t.getTypes();0===n.length&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);const r=Object.create(null);for(const i of n)r[i.name]?e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,Rr(t,i.name)):(r[i.name]=!0,tn(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${Ue(i)}.`,Rr(t,String(i))))}function Ir(e,t){const n=t.getValues();0===n.length&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(const r of n)_r(e,r)}function Mr(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const o of n){var r,i;_r(e,o),un(o.type)||e.reportError(`The type of ${t.name}.${o.name} must be Input Type but got: ${Ue(o.type)}.`,null===(r=o.astNode)||void 0===r?void 0:r.type),Ln(o)&&null!=o.deprecationReason&&e.reportError(`Required input field ${t.name}.${o.name} cannot be deprecated.`,[jr(o.astNode),null===(i=o.astNode)||void 0===i?void 0:i.type]),t.isOneOf&&Fr(t,o,e)}}function Fr(e,t,n){var r;ln(t.type)&&n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,null===(r=t.astNode)||void 0===r?void 0:r.type),void 0!==t.defaultValue&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function Pr(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap(e=>{var t;return null!==(t=e.interfaces)&&void 0!==t?t:[]}).filter(e=>e.name.value===t.name)}function Rr(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap(e=>{var t;return null!==(t=e.types)&&void 0!==t?t:[]}).filter(e=>e.name.value===t)}function jr(e){var t;return null==e||null===(t=e.directives)||void 0===t?void 0:t.find(e=>e.name.value===Kn.name)}var Vr=a(()=>{Ye(),Q(),se(),Un(),In(),tr(),wr(),Cr(),kr=class{constructor(e){this._errors=[],this.schema=e}reportError(e,t){const n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new G(e,{nodes:n}))}getErrors(){return this._errors}}});function Br(e,t){switch(t.kind){case ae.LIST_TYPE:{const n=Br(e,t.type);return n&&new Ht(n)}case ae.NON_NULL_TYPE:{const n=Br(e,t.type);return n&&new Wt(n)}case ae.NAMED_TYPE:return e.getType(t.name.value)}}var zr,$r=a(()=>{ue(),In()});function Ur(e,t,n){const r=n.name.value;return r===pr.name&&e.getQueryType()===t?pr:r===hr.name&&e.getQueryType()===t?hr:r===mr.name&&fn(t)?mr:tn(t)||nn(t)?t.getFields()[r]:void 0}function Hr(e,t){return{enter(...n){const r=n[0];e.enter(r);const i=Dt(t,r.kind).enter;if(i){const o=i.apply(t,n);return void 0!==o&&(e.leave(r),ie(o)&&e.enter(o)),o}},leave(...n){const r=n[0],i=Dt(t,r.kind).leave;let o;return i&&(o=i.apply(t,n)),e.leave(r),o}}}var Wr=a(()=>{se(),ue(),Lt(),In(),wr(),$r(),zr=class{constructor(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!=n?n:Ur,t&&(un(t)&&this._inputTypeStack.push(t),fn(t)&&this._parentTypeStack.push(t),cn(t)&&this._typeStack.push(t))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){const t=this._schema;switch(e.kind){case ae.SELECTION_SET:{const e=yn(this.getType());this._parentTypeStack.push(fn(e)?e:void 0);break}case ae.FIELD:{const n=this.getParentType();let r,i;n&&(r=this._getFieldDef(t,n,e),r&&(i=r.type)),this._fieldDefStack.push(r),this._typeStack.push(cn(i)?i:void 0);break}case ae.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case ae.OPERATION_DEFINITION:{const n=t.getRootType(e.operation);this._typeStack.push(tn(n)?n:void 0);break}case ae.INLINE_FRAGMENT:case ae.FRAGMENT_DEFINITION:{const n=e.typeCondition,r=n?Br(t,n):yn(this.getType());this._typeStack.push(cn(r)?r:void 0);break}case ae.VARIABLE_DEFINITION:{const n=Br(t,e.type);this._inputTypeStack.push(un(n)?n:void 0);break}case ae.ARGUMENT:{var n;let t,r;const i=null!==(n=this.getDirective())&&void 0!==n?n:this.getFieldDef();i&&(t=i.args.find(t=>t.name===e.name.value),t&&(r=t.type)),this._argument=t,this._defaultValueStack.push(t?t.defaultValue:void 0),this._inputTypeStack.push(un(r)?r:void 0);break}case ae.LIST:{const e=gn(this.getInputType()),t=sn(e)?e.ofType:e;this._defaultValueStack.push(void 0),this._inputTypeStack.push(un(t)?t:void 0);break}case ae.OBJECT_FIELD:{const t=yn(this.getInputType());let n,r;an(t)&&(r=t.getFields()[e.name.value],r&&(n=r.type)),this._defaultValueStack.push(r?r.defaultValue:void 0),this._inputTypeStack.push(un(n)?n:void 0);break}case ae.ENUM:{const t=yn(this.getInputType());let n;on(t)&&(n=t.getValue(e.value)),this._enumValue=n;break}}}leave(e){switch(e.kind){case ae.SELECTION_SET:this._parentTypeStack.pop();break;case ae.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case ae.DIRECTIVE:this._directive=null;break;case ae.OPERATION_DEFINITION:case ae.INLINE_FRAGMENT:case ae.FRAGMENT_DEFINITION:this._typeStack.pop();break;case ae.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case ae.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case ae.LIST:case ae.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case ae.ENUM:this._enumValue=null}}}});function qr(e){return e.kind===ae.OPERATION_DEFINITION||e.kind===ae.FRAGMENT_DEFINITION}function Gr(e){return e.kind===ae.SCALAR_TYPE_DEFINITION||e.kind===ae.OBJECT_TYPE_DEFINITION||e.kind===ae.INTERFACE_TYPE_DEFINITION||e.kind===ae.UNION_TYPE_DEFINITION||e.kind===ae.ENUM_TYPE_DEFINITION||e.kind===ae.INPUT_OBJECT_TYPE_DEFINITION}function Kr(e){return e.kind===ae.SCALAR_TYPE_EXTENSION||e.kind===ae.OBJECT_TYPE_EXTENSION||e.kind===ae.INTERFACE_TYPE_EXTENSION||e.kind===ae.UNION_TYPE_EXTENSION||e.kind===ae.ENUM_TYPE_EXTENSION||e.kind===ae.INPUT_OBJECT_TYPE_EXTENSION}var Yr=a(()=>{ue()});function Qr(e){return{Document(t){for(const n of t.definitions)if(!qr(n)){const t=n.kind===ae.SCHEMA_DEFINITION||n.kind===ae.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new G(`The ${t} definition is not executable.`,{nodes:n}))}return!1}}}var Xr=a(()=>{Q(),ue(),Yr()});function Zr(e){return{Field(t){const n=e.getParentType();if(n&&!e.getFieldDef()){const r=e.getSchema(),i=t.name.value;let o=rt("to use an inline fragment on",function(e,t,n){if(!pn(t))return[];const r=new Set,i=Object.create(null);for(const a of e.getPossibleTypes(t))if(a.getFields()[n]){r.add(a),i[a.name]=1;for(const e of a.getInterfaces()){var o;e.getFields()[n]&&(r.add(e),i[e.name]=(null!==(o=i[e.name])&&void 0!==o?o:0)+1)}}return[...r].sort((t,n)=>{const r=i[n.name]-i[t.name];return 0!==r?r:nn(t)&&e.isSubType(t,n)?-1:nn(n)&&e.isSubType(n,t)?1:mt(t.name,n.name)}).map(e=>e.name)}(r,n,i));""===o&&(o=rt(function(e,t){return tn(e)||nn(e)?bt(t,Object.keys(e.getFields())):[]}(n,i))),e.reportError(new G(`Cannot query field "${i}" on type "${n.name}".`+o,{nodes:t}))}}}}var Jr=a(()=>{it(),yt(),xt(),Q(),In()});function ei(e){return{InlineFragment(t){const n=t.typeCondition;if(n){const t=Br(e.getSchema(),n);if(t&&!fn(t)){const t=It(n);e.reportError(new G(`Fragment cannot condition on non composite type "${t}".`,{nodes:n}))}}},FragmentDefinition(t){const n=Br(e.getSchema(),t.typeCondition);if(n&&!fn(n)){const n=It(t.typeCondition);e.reportError(new G(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,{nodes:t.typeCondition}))}}}}var ti=a(()=>{Q(),Vt(),In(),$r()});function ni(e){return{...ri(e),Argument(t){const n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){const n=t.name.value,o=bt(n,r.args.map(e=>e.name));e.reportError(new G(`Unknown argument "${n}" on field "${i.name}.${r.name}".`+rt(o),{nodes:t}))}}}}function ri(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Xn;for(const a of r)t[a.name]=a.args.map(e=>e.name);const i=e.getDocument().definitions;for(const a of i)if(a.kind===ae.DIRECTIVE_DEFINITION){var o;const e=null!==(o=a.arguments)&&void 0!==o?o:[];t[a.name.value]=e.map(e=>e.name.value)}return{Directive(n){const r=n.name.value,i=t[r];if(n.arguments&&i)for(const t of n.arguments){const n=t.name.value;if(!i.includes(n)){const o=bt(n,i);e.reportError(new G(`Unknown argument "${n}" on directive "@${r}".`+rt(o),{nodes:t}))}}return!1}}}var ii=a(()=>{it(),xt(),Q(),ue(),tr()});function oi(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Xn;for(const o of r)t[o.name]=o.locations;const i=e.getDocument().definitions;for(const o of i)o.kind===ae.DIRECTIVE_DEFINITION&&(t[o.name.value]=o.locations.map(e=>e.value));return{Directive(n,r,i,o,a){const s=n.name.value,l=t[s];if(!l)return void e.reportError(new G(`Unknown directive "@${s}".`,{nodes:n}));const u=function(e){const t=e[e.length-1];switch("kind"in t||V(!1),t.kind){case ae.OPERATION_DEFINITION:return function(e){switch(e){case ne.QUERY:return oe.QUERY;case ne.MUTATION:return oe.MUTATION;case ne.SUBSCRIPTION:return oe.SUBSCRIPTION}}(t.operation);case ae.FIELD:return oe.FIELD;case ae.FRAGMENT_SPREAD:return oe.FRAGMENT_SPREAD;case ae.INLINE_FRAGMENT:return oe.INLINE_FRAGMENT;case ae.FRAGMENT_DEFINITION:return oe.FRAGMENT_DEFINITION;case ae.VARIABLE_DEFINITION:return oe.VARIABLE_DEFINITION;case ae.SCHEMA_DEFINITION:case ae.SCHEMA_EXTENSION:return oe.SCHEMA;case ae.SCALAR_TYPE_DEFINITION:case ae.SCALAR_TYPE_EXTENSION:return oe.SCALAR;case ae.OBJECT_TYPE_DEFINITION:case ae.OBJECT_TYPE_EXTENSION:return oe.OBJECT;case ae.FIELD_DEFINITION:return oe.FIELD_DEFINITION;case ae.INTERFACE_TYPE_DEFINITION:case ae.INTERFACE_TYPE_EXTENSION:return oe.INTERFACE;case ae.UNION_TYPE_DEFINITION:case ae.UNION_TYPE_EXTENSION:return oe.UNION;case ae.ENUM_TYPE_DEFINITION:case ae.ENUM_TYPE_EXTENSION:return oe.ENUM;case ae.ENUM_VALUE_DEFINITION:return oe.ENUM_VALUE;case ae.INPUT_OBJECT_TYPE_DEFINITION:case ae.INPUT_OBJECT_TYPE_EXTENSION:return oe.INPUT_OBJECT;case ae.INPUT_VALUE_DEFINITION:{const t=e[e.length-3];return"kind"in t||V(!1),t.kind===ae.INPUT_OBJECT_TYPE_DEFINITION?oe.INPUT_FIELD_DEFINITION:oe.ARGUMENT_DEFINITION}default:V(!1,"Unexpected kind: "+Ue(t.kind))}}(a);u&&!l.includes(u)&&e.reportError(new G(`Directive "@${s}" may not be used on ${u}.`,{nodes:n}))}}}var ai=a(()=>{Ye(),z(),Q(),se(),le(),ue(),tr()});function si(e){return{FragmentSpread(t){const n=t.name.value;e.getFragment(n)||e.reportError(new G(`Unknown fragment "${n}".`,{nodes:t.name}))}}}var li,ui=a(()=>{Q()});function ci(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(const o of e.getDocument().definitions)Gr(o)&&(r[o.name.value]=!0);const i=[...Object.keys(n),...Object.keys(r)];return{NamedType(t,o,a,s,l){const u=t.name.value;if(!n[u]&&!r[u]){var c;const n=null!==(c=l[2])&&void 0!==c?c:a,r=null!=n&&"kind"in(d=n)&&(function(e){return e.kind===ae.SCHEMA_DEFINITION||Gr(e)||e.kind===ae.DIRECTIVE_DEFINITION}(d)||function(e){return e.kind===ae.SCHEMA_EXTENSION||Kr(e)}(d));if(r&&li.includes(u))return;const o=bt(u,r?li.concat(i):i);e.reportError(new G(`Unknown type "${u}".`+rt(o),{nodes:t}))}var d}}}var di=a(()=>{it(),xt(),Q(),Yr(),wr(),Zn(),li=[...$n,...gr].map(e=>e.name)});function fi(e){let t=0;return{Document(e){t=e.definitions.filter(e=>e.kind===ae.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new G("This anonymous operation must be the only defined operation.",{nodes:n}))}}}var pi=a(()=>{Q(),ue()});function hi(e){var t,n,r;const i=e.getSchema(),o=null!==(t=null!==(n=null!==(r=null==i?void 0:i.astNode)&&void 0!==r?r:null==i?void 0:i.getQueryType())&&void 0!==n?n:null==i?void 0:i.getMutationType())&&void 0!==t?t:null==i?void 0:i.getSubscriptionType();let a=0;return{SchemaDefinition(t){o?e.reportError(new G("Cannot define a new schema within a schema extension.",{nodes:t})):(a>0&&e.reportError(new G("Must provide only one schema definition.",{nodes:t})),++a)}}}var mi,gi=a(()=>{Q()});function vi(e){function t(n,r=Object.create(null),i=0){if(n.kind===ae.FRAGMENT_SPREAD){const o=n.name.value;if(!0===r[o])return!1;const a=e.getFragment(o);if(!a)return!1;try{return r[o]=!0,t(a,r,i)}finally{r[o]=void 0}}if(n.kind===ae.FIELD&&("fields"===n.name.value||"interfaces"===n.name.value||"possibleTypes"===n.name.value||"inputFields"===n.name.value)&&++i>=mi)return!0;if("selectionSet"in n&&n.selectionSet)for(const e of n.selectionSet.selections)if(t(e,r,i))return!0;return!1}return{Field(n){if(("__schema"===n.name.value||"__type"===n.name.value)&&t(n))return e.reportError(new G("Maximum introspection depth exceeded",{nodes:[n]})),!1}}}var yi=a(()=>{Q(),ue(),mi=3});function bi(e){const t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:e=>(i(e),!1)};function i(o){if(t[o.name.value])return;const a=o.name.value;t[a]=!0;const s=e.getFragmentSpreads(o.selectionSet);if(0!==s.length){r[a]=n.length;for(const t of s){const o=t.name.value,a=r[o];if(n.push(t),void 0===a){const t=e.getFragment(o);t&&i(t)}else{const t=n.slice(a),r=t.slice(0,-1).map(e=>'"'+e.name.value+'"').join(", ");e.reportError(new G(`Cannot spread fragment "${o}" within itself`+(""!==r?` via ${r}.`:"."),{nodes:t}))}n.pop()}r[a]=void 0}}}var wi=a(()=>{Q()});function xi(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const r=e.getRecursiveVariableUsages(n);for(const{node:i}of r){const r=i.name.value;!0!==t[r]&&e.reportError(new G(n.name?`Variable "$${r}" is not defined by operation "${n.name.value}".`:`Variable "$${r}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(e){t[e.variable.name.value]=!0}}}var Ei=a(()=>{Q()});function ki(e){const t=[],n=[];return{OperationDefinition:e=>(t.push(e),!1),FragmentDefinition:e=>(n.push(e),!1),Document:{leave(){const r=Object.create(null);for(const n of t)for(const t of e.getRecursivelyReferencedFragments(n))r[t.name.value]=!0;for(const t of n){const n=t.name.value;!0!==r[n]&&e.reportError(new G(`Fragment "${n}" is never used.`,{nodes:t}))}}}}}var Ci=a(()=>{Q()});function Si(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){const r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(const{node:e}of i)r[e.name.value]=!0;for(const o of t){const t=o.variable.name.value;!0!==r[t]&&e.reportError(new G(n.name?`Variable "$${t}" is never used in operation "${n.name.value}".`:`Variable "$${t}" is never used.`,{nodes:o}))}}},VariableDefinition(e){t.push(e)}}}var Ti=a(()=>{Q()});function _i(e){switch(e.kind){case ae.OBJECT:return{...e,fields:(t=e.fields,t.map(e=>({...e,value:_i(e.value)})).sort((e,t)=>mt(e.name.value,t.name.value)))};case ae.LIST:return{...e,values:e.values.map(_i)};case ae.INT:case ae.FLOAT:case ae.STRING:case ae.BOOLEAN:case ae.NULL:case ae.ENUM:case ae.VARIABLE:return e}var t}var Ni,Ai,Di=a(()=>{yt(),ue()});function Oi(e){return Array.isArray(e)?e.map(([e,t])=>`subfields "${e}" conflict because `+Oi(t)).join(" and "):e}function Li(e){const t=new Ni,n=new Ai,r=new Map;return{SelectionSet(i){const o=function(e,t,n,r,i,o){const a=[],[s,l]=Vi(e,t,i,o);if(function(e,t,n,r,i,o){for(const[a,s]of Object.entries(o))if(s.length>1)for(let o=0;o[e.value,t]));return n.every(e=>{const t=e.value,n=i.get(e.name.value);return void 0!==n&&Ri(t)===Ri(n)})}(u,f))return[[o,"they have differing arguments"],[u],[f]]}const m=null==c?void 0:c.type,g=null==p?void 0:p.type;if(m&&g&&ji(m,g))return[[o,`they return conflicting types "${Ue(m)}" and "${Ue(g)}"`],[u],[f]];const v=u.selectionSet,y=f.selectionSet;return v&&y?function(e,t,n,r){if(e.length>0)return[[t,e.map(([e])=>e)],[n,...e.map(([,e])=>e).flat()],[r,...e.map(([,,e])=>e).flat()]]}(function(e,t,n,r,i,o,a,s,l){const u=[],[c,d]=Vi(e,t,o,a),[f,p]=Vi(e,t,s,l);Fi(e,u,t,n,r,i,c,f);for(const h of p)Ii(e,u,t,n,r,i,c,h);for(const h of d)Ii(e,u,t,n,r,i,f,h);for(const h of d)for(const o of p)Mi(e,u,t,n,r,i,h,o);return u}(e,t,n,r,h,yn(m),v,yn(g),y),o,u,f):void 0}function Ri(e){return It(_i(e))}function ji(e,t){return sn(e)?!sn(t)||ji(e.ofType,t.ofType):!!sn(t)||(ln(e)?!ln(t)||ji(e.ofType,t.ofType):!!ln(t)||!(!dn(e)&&!dn(t))&&e!==t)}function Vi(e,t,n,r){const i=t.get(r);if(i)return i;const o=Object.create(null),a=Object.create(null);zi(e,n,r,o,a);const s=[o,Object.keys(a)];return t.set(r,s),s}function Bi(e,t,n){return t.get(n.selectionSet)||Vi(e,t,Br(e.getSchema(),n.typeCondition),n.selectionSet)}function zi(e,t,n,r,i){for(const o of n.selections)switch(o.kind){case ae.FIELD:{const e=o.name.value;let n;(tn(t)||nn(t))&&(n=t.getFields()[e]);const i=o.alias?o.alias.value:e;r[i]||(r[i]=[]),r[i].push([t,o,n]);break}case ae.FRAGMENT_SPREAD:i[o.name.value]=!0;break;case ae.INLINE_FRAGMENT:{const n=o.typeCondition;zi(e,n?Br(e.getSchema(),n):t,o.selectionSet,r,i);break}}}var $i=a(()=>{Ye(),Q(),ue(),Vt(),In(),Di(),$r(),Ni=class{constructor(){this._data=new Map}has(e,t,n){var r;const i=null===(r=this._data.get(e))||void 0===r?void 0:r.get(t);return void 0!==i&&(!!n||n===i)}add(e,t,n){const r=this._data.get(e);void 0===r?this._data.set(e,new Map([[t,n]])):r.set(t,n)}},Ai=class{constructor(){this._orderedPairSet=new Ni}has(e,t,n){return e{Ye(),Q(),In(),Un(),$r()});function qi(e){const t=e.getSchema(),n=Object.create(null);for(const i of e.getDocument().definitions)Gr(i)&&(n[i.name.value]=i);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(r){const i=r.name.value,o=n[i],a=null==t?void 0:t.getType(i);let s;if(o?s=Hi[o.kind]:a&&(s=en(l=a)?ae.SCALAR_TYPE_EXTENSION:tn(l)?ae.OBJECT_TYPE_EXTENSION:nn(l)?ae.INTERFACE_TYPE_EXTENSION:rn(l)?ae.UNION_TYPE_EXTENSION:on(l)?ae.ENUM_TYPE_EXTENSION:an(l)?ae.INPUT_OBJECT_TYPE_EXTENSION:void V(!1,"Unexpected type: "+Ue(l))),s){if(s!==r.kind){const t=function(e){switch(e){case ae.SCALAR_TYPE_EXTENSION:return"scalar";case ae.OBJECT_TYPE_EXTENSION:return"object";case ae.INTERFACE_TYPE_EXTENSION:return"interface";case ae.UNION_TYPE_EXTENSION:return"union";case ae.ENUM_TYPE_EXTENSION:return"enum";case ae.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:V(!1,"Unexpected kind: "+Ue(e))}}(r.kind);e.reportError(new G(`Cannot extend non-${t} type "${i}".`,{nodes:o?[o,r]:r}))}}else{const o=bt(i,Object.keys({...n,...null==t?void 0:t.getTypeMap()}));e.reportError(new G(`Cannot extend type "${i}" because it is not defined.`+rt(o),{nodes:r.name}))}var l}}var Gi=a(()=>{it(),Ye(),z(),xt(),Q(),ue(),Yr(),In(),Hi={[ae.SCALAR_TYPE_DEFINITION]:ae.SCALAR_TYPE_EXTENSION,[ae.OBJECT_TYPE_DEFINITION]:ae.OBJECT_TYPE_EXTENSION,[ae.INTERFACE_TYPE_DEFINITION]:ae.INTERFACE_TYPE_EXTENSION,[ae.UNION_TYPE_DEFINITION]:ae.UNION_TYPE_EXTENSION,[ae.ENUM_TYPE_DEFINITION]:ae.ENUM_TYPE_EXTENSION,[ae.INPUT_OBJECT_TYPE_DEFINITION]:ae.INPUT_OBJECT_TYPE_EXTENSION}});function Ki(e){return{...Yi(e),Field:{leave(t){var n;const r=e.getFieldDef();if(!r)return!1;const i=new Set(null===(n=t.arguments)||void 0===n?void 0:n.map(e=>e.name.value));for(const o of r.args)if(!i.has(o.name)&&_n(o)){const n=Ue(o.type);e.reportError(new G(`Field "${r.name}" argument "${o.name}" of type "${n}" is required, but it was not provided.`,{nodes:t}))}}}}}function Yi(e){var t;const n=Object.create(null),r=e.getSchema(),i=null!==(t=null==r?void 0:r.getDirectives())&&void 0!==t?t:Xn;for(const s of i)n[s.name]=st(s.args.filter(_n),e=>e.name);const o=e.getDocument().definitions;for(const s of o)if(s.kind===ae.DIRECTIVE_DEFINITION){var a;const e=null!==(a=s.arguments)&&void 0!==a?a:[];n[s.name.value]=st(e.filter(Qi),e=>e.name.value)}return{Directive:{leave(t){const r=t.name.value,i=n[r];if(i){var o;const n=null!==(o=t.arguments)&&void 0!==o?o:[],a=new Set(n.map(e=>e.name.value));for(const[o,s]of Object.entries(i))if(!a.has(o)){const n=Jt(s.type)?Ue(s.type):It(s.type);e.reportError(new G(`Directive "@${r}" argument "${o}" of type "${n}" is required, but it was not provided.`,{nodes:t}))}}}}}}function Qi(e){return e.type.kind===ae.NON_NULL_TYPE&&null==e.defaultValue}var Xi=a(()=>{Ye(),lt(),Q(),ue(),Vt(),In(),tr()});function Zi(e){return{Field(t){const n=e.getType(),r=t.selectionSet;if(n)if(dn(yn(n))){if(r){const i=t.name.value,o=Ue(n);e.reportError(new G(`Field "${i}" must not have a selection since type "${o}" has no subfields.`,{nodes:r}))}}else if(r){if(0===r.selections.length){const r=t.name.value,i=Ue(n);e.reportError(new G(`Field "${r}" of type "${i}" must have at least one field selected.`,{nodes:t}))}}else{const r=t.name.value,i=Ue(n);e.reportError(new G(`Field "${r}" of type "${i}" must have a selection of subfields. Did you mean "${r} { ... }"?`,{nodes:t}))}}}}var Ji=a(()=>{Ye(),Q(),In()});function eo(e,t,n){if(e){if(e.kind===ae.VARIABLE){const r=e.name.value;if(null==n||void 0===n[r])return;const i=n[r];if(null===i&&ln(t))return;return i}if(ln(t)){if(e.kind===ae.NULL)return;return eo(e,t.ofType,n)}if(e.kind===ae.NULL)return null;if(sn(t)){const r=t.ofType;if(e.kind===ae.LIST){const t=[];for(const i of e.values)if(to(i,n)){if(ln(r))return;t.push(null)}else{const e=eo(i,r,n);if(void 0===e)return;t.push(e)}return t}const i=eo(e,r,n);if(void 0===i)return;return[i]}if(an(t)){if(e.kind!==ae.OBJECT)return;const r=Object.create(null),i=st(e.fields,e=>e.name.value);for(const e of Object.values(t.getFields())){const t=i[e.name];if(!t||to(t.value,n)){if(void 0!==e.defaultValue)r[e.name]=e.defaultValue;else if(ln(e.type))return;continue}const o=eo(t.value,e.type,n);if(void 0===o)return;r[e.name]=o}if(t.isOneOf){const e=Object.keys(r);if(1!==e.length)return;if(null===r[e[0]])return}return r}if(dn(t)){let i;try{i=t.parseLiteral(e,n)}catch(r){return}if(void 0===i)return;return i}V(!1,"Unexpected input type: "+Ue(t))}}function to(e,t){return e.kind===ae.VARIABLE&&(null==t||void 0===t[e.name.value])}var no=a(()=>{Ye(),z(),lt(),ue(),In()});function ro(e,t,n){var r;const i=null===(r=t.directives)||void 0===r?void 0:r.find(t=>t.name.value===e.name);if(i)return function(e,t,n){var r;const i=Object.create(null),o=st(null!==(r=t.arguments)&&void 0!==r?r:[],e=>e.name.value);for(const a of e.args){const e=a.name,r=a.type,s=o[e];if(!s){if(void 0!==a.defaultValue)i[e]=a.defaultValue;else if(ln(r))throw new G(`Argument "${e}" of required type "${Ue(r)}" was not provided.`,{nodes:t});continue}const l=s.value;let u=l.kind===ae.NULL;if(l.kind===ae.VARIABLE){const t=l.name.value;if(null==n||!io(n,t)){if(void 0!==a.defaultValue)i[e]=a.defaultValue;else if(ln(r))throw new G(`Argument "${e}" of required type "${Ue(r)}" was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:l});continue}u=null==n[t]}if(u&&ln(r))throw new G(`Argument "${e}" of non-null type "${Ue(r)}" must not be null.`,{nodes:l});const c=eo(l,r,n);if(void 0===c)throw new G(`Argument "${e}" has invalid value ${It(l)}.`,{nodes:l});i[e]=c}return{...i}}(e,i,n)}function io(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var oo=a(()=>{Ye(),lt(),Q(),ue(),Vt(),In(),no()});function ao(e,t,n,r,i){const o=new Map;return so(e,t,n,r,i,o,new Set),o}function so(e,t,n,r,i,o,a){for(const s of i.selections)switch(s.kind){case ae.FIELD:{if(!lo(n,s))continue;const e=co(s),t=o.get(e);void 0!==t?t.push(s):o.set(e,[s]);break}case ae.INLINE_FRAGMENT:if(!lo(n,s)||!uo(e,s,r))continue;so(e,t,n,r,s.selectionSet,o,a);break;case ae.FRAGMENT_SPREAD:{const i=s.name.value;if(a.has(i)||!lo(n,s))continue;a.add(i);const l=t[i];if(!l||!uo(e,l,r))continue;so(e,t,n,r,l.selectionSet,o,a);break}}}function lo(e,t){const n=ro(Gn,t,e);if(!0===(null==n?void 0:n.if))return!1;const r=ro(qn,t,e);return!1!==(null==r?void 0:r.if)}function uo(e,t,n){const r=t.typeCondition;if(!r)return!0;const i=Br(e,r);return i===n||!!pn(i)&&e.isSubType(i,n)}function co(e){return e.alias?e.alias.value:e.name.value}var fo=a(()=>{ue(),In(),tr(),$r(),oo()});function po(e){return{OperationDefinition(t){if("subscription"===t.operation){const n=e.getSchema(),r=n.getSubscriptionType();if(r){const i=t.name?t.name.value:null,o=Object.create(null),a=e.getDocument(),s=Object.create(null);for(const e of a.definitions)e.kind===ae.FRAGMENT_DEFINITION&&(s[e.name.value]=e);const l=ao(n,s,o,r,t.selectionSet);if(l.size>1){const t=[...l.values()].slice(1).flat();e.reportError(new G(null!=i?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:t}))}for(const t of l.values())t[0].name.value.startsWith("__")&&e.reportError(new G(null!=i?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}}var ho=a(()=>{Q(),ue(),fo()});function mo(e,t){const n=new Map;for(const r of e){const e=t(r),i=n.get(e);void 0===i?n.set(e,[r]):i.push(r)}return n}var go=a(()=>{});function vo(e){return{DirectiveDefinition(e){var t;const r=null!==(t=e.arguments)&&void 0!==t?t:[];return n(`@${e.name.value}`,r)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(e){var t;const r=e.name.value,i=null!==(t=e.fields)&&void 0!==t?t:[];for(const a of i){var o;n(`${r}.${a.name.value}`,null!==(o=a.arguments)&&void 0!==o?o:[])}return!1}function n(t,n){const r=mo(n,e=>e.name.value);for(const[i,o]of r)o.length>1&&e.reportError(new G(`Argument "${t}(${i}:)" can only be defined once.`,{nodes:o.map(e=>e.name)}));return!1}}var yo=a(()=>{go(),Q()});function bo(e){return{Field:t,Directive:t};function t(t){var n;const r=mo(null!==(n=t.arguments)&&void 0!==n?n:[],e=>e.name.value);for(const[i,o]of r)o.length>1&&e.reportError(new G(`There can be only one argument named "${i}".`,{nodes:o.map(e=>e.name)}))}}var wo=a(()=>{go(),Q()});function xo(e){const t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){const i=r.name.value;if(null==n||!n.getDirective(i))return t[i]?e.reportError(new G(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1;e.reportError(new G(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}))}}}var Eo=a(()=>{Q()});function ko(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Xn;for(const s of r)t[s.name]=!s.isRepeatable;const i=e.getDocument().definitions;for(const s of i)s.kind===ae.DIRECTIVE_DEFINITION&&(t[s.name.value]=!s.repeatable);const o=Object.create(null),a=Object.create(null);return{enter(n){if(!("directives"in n)||!n.directives)return;let r;if(n.kind===ae.SCHEMA_DEFINITION||n.kind===ae.SCHEMA_EXTENSION)r=o;else if(Gr(n)||Kr(n)){const e=n.name.value;r=a[e],void 0===r&&(a[e]=r=Object.create(null))}else r=Object.create(null);for(const i of n.directives){const n=i.name.value;t[n]&&(r[n]?e.reportError(new G(`The directive "@${n}" can only be used once at this location.`,{nodes:[r[n],i]})):r[n]=i)}}}}var Co=a(()=>{Q(),ue(),Yr(),tr()});function So(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(t){var i;const o=t.name.value;r[o]||(r[o]=Object.create(null));const a=null!==(i=t.values)&&void 0!==i?i:[],s=r[o];for(const r of a){const t=r.name.value,i=n[o];on(i)&&i.getValue(t)?e.reportError(new G(`Enum value "${o}.${t}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:r.name})):s[t]?e.reportError(new G(`Enum value "${o}.${t}" can only be defined once.`,{nodes:[s[t],r.name]})):s[t]=r.name}return!1}}var To=a(()=>{Q(),In()});function _o(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(t){var i;const o=t.name.value;r[o]||(r[o]=Object.create(null));const a=null!==(i=t.fields)&&void 0!==i?i:[],s=r[o];for(const r of a){const t=r.name.value;No(n[o],t)?e.reportError(new G(`Field "${o}.${t}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:r.name})):s[t]?e.reportError(new G(`Field "${o}.${t}" can only be defined once.`,{nodes:[s[t],r.name]})):s[t]=r.name}return!1}}function No(e,t){return!!(tn(e)||nn(e)||an(e))&&null!=e.getFields()[t]}var Ao=a(()=>{Q(),In()});function Do(e){const t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){const r=n.name.value;return t[r]?e.reportError(new G(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}var Oo=a(()=>{Q()});function Lo(e){const t=[];let n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){const e=t.pop();e||V(!1),n=e}},ObjectField(t){const r=t.name.value;n[r]?e.reportError(new G(`There can be only one input field named "${r}".`,{nodes:[n[r],t.name]})):n[r]=t.name}}}var Io=a(()=>{z(),Q()});function Mo(e){const t=Object.create(null);return{OperationDefinition(n){const r=n.name;return r&&(t[r.value]?e.reportError(new G(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}var Fo=a(()=>{Q()});function Po(e){const t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(t){var i;const o=null!==(i=t.operationTypes)&&void 0!==i?i:[];for(const a of o){const t=a.operation,i=n[t];r[t]?e.reportError(new G(`Type for ${t} already defined in the schema. It cannot be redefined.`,{nodes:a})):i?e.reportError(new G(`There can be only one ${t} type in schema.`,{nodes:[i,a]})):n[t]=a}return!1}}var Ro=a(()=>{Q()});function jo(e){const t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(r){const i=r.name.value;if(null==n||!n.getType(i))return t[i]?e.reportError(new G(`There can be only one type named "${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1;e.reportError(new G(`Type "${i}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:r.name}))}}var Vo=a(()=>{Q()});function Bo(e){return{OperationDefinition(t){var n;const r=mo(null!==(n=t.variableDefinitions)&&void 0!==n?n:[],e=>e.variable.name.value);for(const[i,o]of r)o.length>1&&e.reportError(new G(`There can be only one variable named "$${i}".`,{nodes:o.map(e=>e.variable.name)}))}}}var zo=a(()=>{go(),Q()});function $o(e){return{ListValue(t){if(!sn(gn(e.getParentInputType())))return Uo(e,t),!1},ObjectValue(t){const n=yn(e.getInputType());if(!an(n))return Uo(e,t),!1;const r=st(t.fields,e=>e.name.value);for(const i of Object.values(n.getFields()))if(!r[i.name]&&Ln(i)){const r=Ue(i.type);e.reportError(new G(`Field "${n.name}.${i.name}" of required type "${r}" was not provided.`,{nodes:t}))}n.isOneOf&&function(e,t,n,r){var i;const o=Object.keys(r);if(1!==o.length)return void e.reportError(new G(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));const a=null===(i=r[o[0]])||void 0===i?void 0:i.value;a&&a.kind!==ae.NULL||e.reportError(new G(`Field "${n.name}.${o[0]}" must be non-null.`,{nodes:[t]}))}(e,t,n,r)},ObjectField(t){const n=yn(e.getParentInputType());if(!e.getInputType()&&an(n)){const r=bt(t.name.value,Object.keys(n.getFields()));e.reportError(new G(`Field "${t.name.value}" is not defined by type "${n.name}".`+rt(r),{nodes:t}))}},NullValue(t){const n=e.getInputType();ln(n)&&e.reportError(new G(`Expected value of type "${Ue(n)}", found ${It(t)}.`,{nodes:t}))},EnumValue:t=>Uo(e,t),IntValue:t=>Uo(e,t),FloatValue:t=>Uo(e,t),StringValue:t=>Uo(e,t),BooleanValue:t=>Uo(e,t)}}function Uo(e,t){const n=e.getInputType();if(!n)return;const r=yn(n);if(!dn(r)){const r=Ue(n);return void e.reportError(new G(`Expected value of type "${r}", found ${It(t)}.`,{nodes:t}))}try{if(void 0===r.parseLiteral(t,void 0)){const r=Ue(n);e.reportError(new G(`Expected value of type "${r}", found ${It(t)}.`,{nodes:t}))}}catch(tp){const i=Ue(n);tp instanceof G?e.reportError(tp):e.reportError(new G(`Expected value of type "${i}", found ${It(t)}; `+tp.message,{nodes:t,originalError:tp}))}}var Ho=a(()=>{it(),Ye(),lt(),xt(),Q(),ue(),Vt(),In()});function Wo(e){return{VariableDefinition(t){const n=Br(e.getSchema(),t.type);if(void 0!==n&&!un(n)){const n=t.variable.name.value,r=It(t.type);e.reportError(new G(`Variable "$${n}" cannot be non-input type "${r}".`,{nodes:t.type}))}}}}var qo=a(()=>{Q(),Vt(),In(),$r()});function Go(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const r=e.getRecursiveVariableUsages(n);for(const{node:i,type:o,defaultValue:a,parentType:s}of r){const n=i.name.value,r=t[n];if(r&&o){const t=e.getSchema(),l=Br(t,r.type);if(l&&!Ko(t,l,r.defaultValue,o,a)){const t=Ue(l),a=Ue(o);e.reportError(new G(`Variable "$${n}" of type "${t}" used in position expecting type "${a}".`,{nodes:[r,i]}))}an(s)&&s.isOneOf&&mn(l)&&e.reportError(new G(`Variable "$${n}" is of type "${l}" but must be non-nullable to be used for OneOf Input Object "${s}".`,{nodes:[r,i]}))}}}},VariableDefinition(e){t[e.variable.name.value]=e}}}function Ko(e,t,n,r,i){return ln(r)&&!ln(t)?(null!=n&&n.kind!==ae.NULL||void 0!==i)&&Fn(e,t,r.ofType):Fn(e,t,r)}var Yo,Qo,Xo,Zo,Jo,ea=a(()=>{Ye(),Q(),ue(),In(),Un(),$r()}),ta=a(()=>{Xr(),Jr(),ti(),ii(),ai(),ui(),di(),pi(),gi(),yi(),wi(),Ei(),Ci(),Ti(),$i(),Wi(),Gi(),Xi(),Ji(),ho(),yo(),wo(),Eo(),Co(),To(),Ao(),Oo(),Io(),Fo(),Ro(),Vo(),zo(),Ho(),qo(),ea(),Yo=Object.freeze([vi]),Qo=Object.freeze([Qr,Mo,fi,po,ci,ei,Wo,Zi,Zr,Do,si,ki,Ui,bi,Bo,xi,Si,oi,ko,ni,bo,$o,Ki,Go,Li,Lo,...Yo]),Object.freeze([hi,Po,jo,So,_o,vo,xo,ci,oi,ko,qi,ri,bo,Lo,Yi])}),na=a(()=>{ue(),Lt(),Wr(),Xo=class{constructor(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments)t=this._fragments;else{t=Object.create(null);for(const e of this.getDocument().definitions)e.kind===ae.FRAGMENT_DEFINITION&&(t[e.name.value]=e);this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){t=[];const n=[e];let r;for(;r=n.pop();)for(const e of r.selections)e.kind===ae.FRAGMENT_SPREAD?t.push(e):e.selectionSet&&n.push(e.selectionSet);this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];const n=Object.create(null),r=[e.selectionSet];let i;for(;i=r.pop();)for(const e of this.getFragmentSpreads(i)){const i=e.name.value;if(!0!==n[i]){n[i]=!0;const e=this.getFragment(i);e&&(t.push(e),r.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t}},Zo=class extends Xo{constructor(e,t,n,r){super(t,r),this._schema=e,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){const n=[],r=new zr(this._schema);At(e,Hr(r,{VariableDefinition:()=>!1,Variable(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue(),parentType:r.getParentInputType()})}})),t=n,this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(const n of this.getRecursivelyReferencedFragments(e))t=t.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}});function ra(e,t,n=Qo,r,i=new zr(e)){var o;const a=null!==(o=null==r?void 0:r.maxErrors)&&void 0!==o?o:100;t||F(!1,"Must provide document."),function(e){const t=Sr(e);if(0!==t.length)throw new Error(t.map(e=>e.message).join("\n\n"))}(e);const s=Object.freeze({}),l=[],u=new Zo(e,t,i,e=>{if(l.length>=a)throw l.push(new G("Too many validation errors, error limit reached. Validation aborted.")),s;l.push(e)}),c=function(e){const t=new Array(e.length).fill(null),n=Object.create(null);for(const r of Object.values(ae)){let i=!1;const o=new Array(e.length).fill(void 0),a=new Array(e.length).fill(void 0);for(let t=0;te(u)));try{At(t,Hr(i,c),Jo)}catch(RR){if(RR!==s)throw RR}return l}var ia=a(()=>{P(),ht(),Q(),se(),Lt(),Vr(),Wr(),ta(),na(),Jo=dt(ee,e=>e.filter(e=>"description"!==e))}),oa=a(()=>{Cr(),In(),Zn(),wr(),Vr()}),aa=a(()=>{ue(),nt(),Vt(),Lt(),le()});function sa(e){return{Field(t){const n=e.getFieldDef(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){const i=e.getParentType();null!=i||V(!1),e.reportError(new G(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:t}))}},Argument(t){const n=e.getArgument(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){const i=e.getDirective();if(null!=i)e.reportError(new G(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{const i=e.getParentType(),o=e.getFieldDef();null!=i&&null!=o||V(!1),e.reportError(new G(`Field "${i.name}.${o.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){const n=yn(e.getParentInputType());if(an(n)){const r=n.getFields()[t.name.value],i=null==r?void 0:r.deprecationReason;null!=i&&e.reportError(new G(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){const n=e.getEnumValue(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){const i=yn(e.getInputType());null!=i||V(!1),e.reportError(new G(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}var la=a(()=>{z(),Q(),In()}),ua=a(()=>{ia(),ta(),Xr(),ti(),ai(),ui(),di(),Ci(),Xi(),wo(),Co(),Io(),zo(),gi(),Ro(),Vo(),To(),Ao(),Eo(),Gi(),la()}),ca=a(()=>{Q()}),da=a(()=>{}),fa=a(()=>{P(),Ye(),j(),ct(),nt(),In(),tr(),wr(),Zn(),Cr(),no()}),pa=a(()=>{da(),fa(),$r(),vr(),Wr(),Un()}),ha=a(()=>{oa(),aa(),ua(),ca(),pa()}),ma={},ga=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){const e=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),a=(null==o?void 0:o.nonce)||(null==o?void 0:o.getAttribute("nonce"));i=t.map(t=>{if(t=function(e,t){return new URL(e,t).href}(t,n),t in ma)return;ma[t]=!0;const r=t.endsWith(".css"),i=r?'[rel="stylesheet"]':"";if(n)for(let n=e.length-1;n>=0;n--){const i=e[n];if(i.href===t&&(!r||"stylesheet"===i.rel))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;const o=document.createElement("link");return o.rel=r?"stylesheet":"modulepreload",r||(o.as="script"),o.crossOrigin="",o.href=t,a&&o.setAttribute("nonce",a),document.head.appendChild(o),r?new Promise((e,n)=>{o.addEventListener("load",e),o.addEventListener("error",()=>n(new Error(`Unable to preload CSS for ${t}`)))}):void 0}),r=Promise.all(i.map(e=>Promise.resolve(e).then(e=>({status:"fulfilled",value:e}),e=>({status:"rejected",reason:e}))))}var i;function o(e){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(const e of t||[])"rejected"===e.status&&o(e.reason);return e().catch(o)})};function va(e){return JSON.stringify(e,null,2)}function ya(e){return e instanceof Error?function(e){return D(A({},e),{message:e.message,stack:e.stack})}(e):e}function ba(e){return Array.isArray(e)?va({errors:e.map(e=>ya(e))}):va({errors:[ya(e)]})}function wa(e){return va(e)}function xa(e,t,n){const r=[];if(!e||!t)return{insertions:r,result:t};let i;try{i=Ze(t)}catch(RR){return{insertions:r,result:t}}const o=n||Ea,a=new zr(e);return At(i,{leave(e){a.leave(e)},enter(e){if(a.enter(e),"Field"===e.kind&&!e.selectionSet){const n=ka(function(e){if(e)return e}(a.getType()),o);if(n&&e.loc){const i=function(e,t){let n=t,r=t;for(;n;){const t=e.charCodeAt(n-1);if(10===t||13===t||8232===t||8233===t)break;n--,9!==t&&11!==t&&12!==t&&32!==t&&160!==t&&(r=n)}return e.slice(n,r)}(t,e.loc.start);r.push({index:e.loc.end,string:" "+It(n).replaceAll("\n","\n"+i)})}}}}),{insertions:r,result:Ca(t,r)}}function Ea(e){if(!("getFields"in e))return[];const t=e.getFields();if(t.id)return["id"];if(t.edges)return["edges"];if(t.node)return["node"];const n=[];for(const r of Object.keys(t))dn(t[r].type)&&n.push(r);return n}function ka(e,t){const n=yn(e);if(!e||dn(e))return;const r=t(n);return Array.isArray(r)&&0!==r.length&&"getFields"in n?{kind:ae.SELECTION_SET,selections:r.map(e=>{const r=n.getFields()[e],i=r?r.type:null;return{kind:ae.FIELD,name:{kind:ae.NAME,value:e},selectionSet:ka(i,t)}})}:void 0}function Ca(e,t){if(0===t.length)return e;let n="",r=0;for(const{index:i,string:o}of t)n+=e.slice(r,i)+o,r=i;return n+=e.slice(r),n}function Sa(e,t,n){var r;const i=n?yn(n).name:null,o=[],a=[];for(let s of t){if("FragmentSpread"===s.kind){const t=s.name.value;if(!s.directives||0===s.directives.length){if(a.includes(t))continue;a.push(t)}const n=e[s.name.value];if(n){const{typeCondition:e,directives:t,selectionSet:r}=n;s={kind:ae.INLINE_FRAGMENT,typeCondition:e,directives:t,selectionSet:r}}}if(s.kind===ae.INLINE_FRAGMENT&&(!s.directives||0===(null==(r=s.directives)?void 0:r.length))){const t=s.typeCondition?s.typeCondition.name.value:null;if(!t||t===i){o.push(...Sa(e,s.selectionSet.selections,n));continue}}o.push(s)}return o}function Ta(e,t){const n=t?new zr(t):null,r=Object.create(null);for(const o of e.definitions)o.kind===ae.FRAGMENT_DEFINITION&&(r[o.name.value]=o);const i={SelectionSet(e){const t=n?n.getParentType():null;let{selections:i}=e;return i=Sa(r,i,t),D(A({},e),{selections:i})},FragmentDefinition:()=>null};return At(At(e,n?Hr(n,i):i),{SelectionSet(e){let{selections:t}=e;return t=function(e,t){var n;const r=new Map,i=[];for(const o of e)if("Field"===o.kind){const e=t(o),a=r.get(e);if(null!=(n=o.directives)&&n.length){const e=A({},o);i.push(e)}else if(null!=a&&a.selectionSet&&o.selectionSet)a.selectionSet.selections=[...a.selectionSet.selections,...o.selectionSet.selections];else if(!a){const t=A({},o);r.set(e,t),i.push(t)}}else i.push(o);return i}(t,e=>e.alias?e.alias.value:e.name.value),D(A({},e),{selections:t})},FragmentDefinition:()=>null})}ha(),ha();var _a=class{constructor(e){e?this.storage=e:null===e||"undefined"==typeof window?this.storage=null:this.storage={getItem:localStorage.getItem.bind(localStorage),setItem:localStorage.setItem.bind(localStorage),removeItem:localStorage.removeItem.bind(localStorage),get length(){let e=0;for(const t in localStorage)0===t.indexOf(`${Na}:`)&&(e+=1);return e},clear(){for(const e in localStorage)0===e.indexOf(`${Na}:`)&&localStorage.removeItem(e)}}}get(e){if(!this.storage)return null;const t=`${Na}:${e}`,n=this.storage.getItem(t);return"null"===n||"undefined"===n?(this.storage.removeItem(t),null):n||null}set(e,t){let n=!1,r=null;if(this.storage){const i=`${Na}:${e}`;if(t)try{this.storage.setItem(i,t)}catch(RR){r=RR instanceof Error?RR:new Error(`${RR}`),n=function(e,t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&0!==e.length}(this.storage,RR)}else this.storage.removeItem(i)}return{isQuotaError:n,error:r}}clear(){this.storage&&this.storage.clear()}},Na="graphiql",Aa=class{constructor(e,t,n=null){this.key=e,this.storage=t,this.maxSize=n,this.items=this.fetchAll()}get length(){return this.items.length}contains(e){return this.items.some(t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName)}edit(e,t){if("number"==typeof t&&this.items[t]){const n=this.items[t];if(n.query===e.query&&n.variables===e.variables&&n.headers===e.headers&&n.operationName===e.operationName)return this.items.splice(t,1,e),void this.save()}const n=this.items.findIndex(t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName);-1!==n&&(this.items.splice(n,1,e),this.save())}delete(e){const t=this.items.findIndex(t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName);-1!==t&&(this.items.splice(t,1),this.save())}fetchRecent(){return this.items.at(-1)}fetchAll(){const e=this.storage.get(this.key);return e?JSON.parse(e)[this.key]:[]}push(e){const t=[...this.items,e];this.maxSize&&t.length>this.maxSize&&t.shift();for(let n=0;n<5;n++){const e=this.storage.set(this.key,JSON.stringify({[this.key]:t}));if(null!=e&&e.error){if(!e.isQuotaError||!this.maxSize)return;t.shift()}else this.items=t}}save(){this.storage.set(this.key,JSON.stringify({[this.key]:this.items}))}};ha();var Da,Oa,La,Ia,Ma=class{constructor(e,t){this.storage=e,this.maxHistoryLength=t,this.updateHistory=({query:e,variables:t,headers:n,operationName:r})=>{if(!this.shouldSaveQuery(e,t,n,this.history.fetchRecent()))return;this.history.push({query:e,variables:t,headers:n,operationName:r});const i=this.history.items,o=this.favorite.items;this.queries=i.concat(o)},this.deleteHistory=({query:e,variables:t,headers:n,operationName:r,favorite:i},o=!1)=>{function a(i){const o=i.items.find(i=>i.query===e&&i.variables===t&&i.headers===n&&i.operationName===r);o&&i.delete(o)}(i||o)&&a(this.favorite),(!i||o)&&a(this.history),this.queries=[...this.history.items,...this.favorite.items]},this.history=new Aa("queries",this.storage,this.maxHistoryLength),this.favorite=new Aa("favorites",this.storage,null),this.queries=[...this.history.fetchAll(),...this.favorite.fetchAll()]}shouldSaveQuery(e,t,n,r){if(!e)return!1;try{Ze(e)}catch(RR){return!1}return!(e.length>1e5||r&&JSON.stringify(e)===JSON.stringify(r.query)&&(JSON.stringify(t)===JSON.stringify(r.variables)&&(JSON.stringify(n)===JSON.stringify(r.headers)||n&&!r.headers)||t&&!r.variables))}toggleFavorite({query:e,variables:t,headers:n,operationName:r,label:i,favorite:o}){const a={query:e,variables:t,headers:n,operationName:r,label:i};o?(a.favorite=!1,this.favorite.delete(a),this.history.push(a)):(a.favorite=!0,this.favorite.push(a),this.history.delete(a)),this.queries=[...this.history.items,...this.favorite.items]}editLabel({query:e,variables:t,headers:n,operationName:r,label:i,favorite:o},a){const s={query:e,variables:t,headers:n,operationName:r,label:i};o?this.favorite.edit(D(A({},s),{favorite:o}),a):this.history.edit(s,a),this.queries=[...this.history.items,...this.favorite.items]}};function Fa(e){const t=Object.keys(e),n=t.length,r=new Array(n);for(let i=0;i({proximity:Va(ja(e.label),t),entry:e})),e=>e.proximity<=2),e=>!e.entry.isDeprecated).sort((e,t)=>(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.label.length-t.entry.label.length).map(e=>e.entry):Ra(e,e=>!e.isDeprecated)}(t,ja(e.string))}function Ra(e,t){const n=e.filter(t);return 0===n.length?e:n}function ja(e){return e.toLowerCase().replaceAll(/\W/g,"")}function Va(e,t){let n=function(e,t){let n,r;const i=[],o=e.length,a=t.length;for(n=0;n<=o;n++)i[n]=[n];for(r=1;r<=a;r++)i[0][r]=r;for(n=1;n<=o;n++)for(r=1;r<=a;r++){const o=e[n-1]===t[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+o),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+o))}return i[o][a]}(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}var Ba,za,$a,Ua,Ha,Wa,qa,Ga,Ka,Ya,Qa,Xa,Za,Ja,es,ts,ns,rs,is,os,as,ss,ls,us,cs,ds,fs,ps,hs,ms,gs,vs,ys,bs,ws,xs,Es,ks,Cs,Ss,Ts,_s,Ns,As,Ds,Os,Ls,Is,Ms,Fs,Ps,Rs,js,Vs,Bs,zs,$s,Us,Hs,Ws,qs,Gs,Ks,Ys,Qs,Xs,Zs,Js,el,tl,nl,rl,il,ol,al,sl,ll,ul,cl,dl,fl,pl,hl=a(()=>{ha(),Da=e=>` {\n $${null!=e?e:1}\n}`,Oa=(e,t,n)=>{if(!t)return null!=n?n:e;const r=yn(t);return tn(r)||an(r)||sn(r)||pn(r)?e+Da():null!=n?n:e},La=(e,t,n)=>sn(t)?e+`[${Oa("",yn(t.ofType),"$1")}]`:Oa(e,t,n),Ia=e=>{const t=e.args.filter(e=>e.type.toString().endsWith("!"));if(t.length)return e.name+`(${t.map((e,t)=>`${e.name}: $${t+1}`)}) ${Oa("",e.type,"\n")}`}}),ml=a(()=>{!function(e){e.is=function(e){return"string"==typeof e}}(Ba||(Ba={})),function(e){e.is=function(e){return"string"==typeof e}}(za||(za={})),function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}($a||($a={})),function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(Ua||(Ua={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=Ua.MAX_VALUE),t===Number.MAX_VALUE&&(t=Ua.MAX_VALUE),{line:e,character:t}},e.is=function(e){let t=e;return fl.objectLiteral(t)&&fl.uinteger(t.line)&&fl.uinteger(t.character)}}(Ha||(Ha={})),function(e){e.create=function(e,t,n,r){if(fl.uinteger(e)&&fl.uinteger(t)&&fl.uinteger(n)&&fl.uinteger(r))return{start:Ha.create(e,t),end:Ha.create(n,r)};if(Ha.is(e)&&Ha.is(t))return{start:e,end:t};throw new Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${r}]`)},e.is=function(e){let t=e;return fl.objectLiteral(t)&&Ha.is(t.start)&&Ha.is(t.end)}}(Wa||(Wa={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){let t=e;return fl.objectLiteral(t)&&Wa.is(t.range)&&(fl.string(t.uri)||fl.undefined(t.uri))}}(qa||(qa={})),function(e){e.create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},e.is=function(e){let t=e;return fl.objectLiteral(t)&&Wa.is(t.targetRange)&&fl.string(t.targetUri)&&Wa.is(t.targetSelectionRange)&&(Wa.is(t.originSelectionRange)||fl.undefined(t.originSelectionRange))}}(Ga||(Ga={})),function(e){e.create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},e.is=function(e){const t=e;return fl.objectLiteral(t)&&fl.numberRange(t.red,0,1)&&fl.numberRange(t.green,0,1)&&fl.numberRange(t.blue,0,1)&&fl.numberRange(t.alpha,0,1)}}(Ka||(Ka={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){const t=e;return fl.objectLiteral(t)&&Wa.is(t.range)&&Ka.is(t.color)}}(Ya||(Ya={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){const t=e;return fl.objectLiteral(t)&&fl.string(t.label)&&(fl.undefined(t.textEdit)||os.is(t))&&(fl.undefined(t.additionalTextEdits)||fl.typedArray(t.additionalTextEdits,os.is))}}(Qa||(Qa={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(Xa||(Xa={})),function(e){e.create=function(e,t,n,r,i,o){const a={startLine:e,endLine:t};return fl.defined(n)&&(a.startCharacter=n),fl.defined(r)&&(a.endCharacter=r),fl.defined(i)&&(a.kind=i),fl.defined(o)&&(a.collapsedText=o),a},e.is=function(e){const t=e;return fl.objectLiteral(t)&&fl.uinteger(t.startLine)&&fl.uinteger(t.startLine)&&(fl.undefined(t.startCharacter)||fl.uinteger(t.startCharacter))&&(fl.undefined(t.endCharacter)||fl.uinteger(t.endCharacter))&&(fl.undefined(t.kind)||fl.string(t.kind))}}(Za||(Za={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){let t=e;return fl.defined(t)&&qa.is(t.location)&&fl.string(t.message)}}(Ja||(Ja={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(es||(es={})),function(e){e.Unnecessary=1,e.Deprecated=2}(ts||(ts={})),function(e){e.is=function(e){const t=e;return fl.objectLiteral(t)&&fl.string(t.href)}}(ns||(ns={})),function(e){e.create=function(e,t,n,r,i,o){let a={range:e,message:t};return fl.defined(n)&&(a.severity=n),fl.defined(r)&&(a.code=r),fl.defined(i)&&(a.source=i),fl.defined(o)&&(a.relatedInformation=o),a},e.is=function(e){var t;let n=e;return fl.defined(n)&&Wa.is(n.range)&&fl.string(n.message)&&(fl.number(n.severity)||fl.undefined(n.severity))&&(fl.integer(n.code)||fl.string(n.code)||fl.undefined(n.code))&&(fl.undefined(n.codeDescription)||fl.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(fl.string(n.source)||fl.undefined(n.source))&&(fl.undefined(n.relatedInformation)||fl.typedArray(n.relatedInformation,Ja.is))}}(rs||(rs={})),function(e){e.create=function(e,t,...n){let r={title:e,command:t};return fl.defined(n)&&n.length>0&&(r.arguments=n),r},e.is=function(e){let t=e;return fl.defined(t)&&fl.string(t.title)&&fl.string(t.command)}}(is||(is={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){const t=e;return fl.objectLiteral(t)&&fl.string(t.newText)&&Wa.is(t.range)}}(os||(os={})),function(e){e.create=function(e,t,n){const r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},e.is=function(e){const t=e;return fl.objectLiteral(t)&&fl.string(t.label)&&(fl.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(fl.string(t.description)||void 0===t.description)}}(as||(as={})),function(e){e.is=function(e){const t=e;return fl.string(t)}}(ss||(ss={})),function(e){e.replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},e.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},e.del=function(e,t){return{range:e,newText:"",annotationId:t}},e.is=function(e){const t=e;return os.is(t)&&(as.is(t.annotationId)||ss.is(t.annotationId))}}(ls||(ls={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){let t=e;return fl.defined(t)&&gs.is(t.textDocument)&&Array.isArray(t.edits)}}(us||(us={})),function(e){e.create=function(e,t,n){let r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){let t=e;return t&&"create"===t.kind&&fl.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||fl.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||fl.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||ss.is(t.annotationId))}}(cs||(cs={})),function(e){e.create=function(e,t,n,r){let i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i},e.is=function(e){let t=e;return t&&"rename"===t.kind&&fl.string(t.oldUri)&&fl.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||fl.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||fl.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||ss.is(t.annotationId))}}(ds||(ds={})),function(e){e.create=function(e,t,n){let r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){let t=e;return t&&"delete"===t.kind&&fl.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||fl.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||fl.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||ss.is(t.annotationId))}}(fs||(fs={})),function(e){e.is=function(e){let t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every(e=>fl.string(e.kind)?cs.is(e)||ds.is(e)||fs.is(e):us.is(e)))}}(ps||(ps={})),function(e){e.create=function(e){return{uri:e}},e.is=function(e){let t=e;return fl.defined(t)&&fl.string(t.uri)}}(hs||(hs={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){let t=e;return fl.defined(t)&&fl.string(t.uri)&&fl.integer(t.version)}}(ms||(ms={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){let t=e;return fl.defined(t)&&fl.string(t.uri)&&(null===t.version||fl.integer(t.version))}}(gs||(gs={})),function(e){e.create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},e.is=function(e){let t=e;return fl.defined(t)&&fl.string(t.uri)&&fl.string(t.languageId)&&fl.integer(t.version)&&fl.string(t.text)}}(vs||(vs={})),function(e){e.PlainText="plaintext",e.Markdown="markdown",e.is=function(t){const n=t;return n===e.PlainText||n===e.Markdown}}(ys||(ys={})),function(e){e.is=function(e){const t=e;return fl.objectLiteral(e)&&ys.is(t.kind)&&fl.string(t.value)}}(bs||(bs={})),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}(ws||(ws={})),function(e){e.PlainText=1,e.Snippet=2}(xs||(xs={})),function(e){e.Deprecated=1}(Es||(Es={})),function(e){e.create=function(e,t,n){return{newText:e,insert:t,replace:n}},e.is=function(e){const t=e;return t&&fl.string(t.newText)&&Wa.is(t.insert)&&Wa.is(t.replace)}}(ks||(ks={})),function(e){e.asIs=1,e.adjustIndentation=2}(Cs||(Cs={})),function(e){e.is=function(e){const t=e;return t&&(fl.string(t.detail)||void 0===t.detail)&&(fl.string(t.description)||void 0===t.description)}}(Ss||(Ss={})),function(e){e.create=function(e){return{label:e}}}(Ts||(Ts={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(_s||(_s={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){const t=e;return fl.string(t)||fl.objectLiteral(t)&&fl.string(t.language)&&fl.string(t.value)}}(Ns||(Ns={})),function(e){e.is=function(e){let t=e;return!!t&&fl.objectLiteral(t)&&(bs.is(t.contents)||Ns.is(t.contents)||fl.typedArray(t.contents,Ns.is))&&(void 0===e.range||Wa.is(e.range))}}(As||(As={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(Ds||(Ds={})),function(e){e.create=function(e,t,...n){let r={label:e};return fl.defined(t)&&(r.documentation=t),fl.defined(n)?r.parameters=n:r.parameters=[],r}}(Os||(Os={})),function(e){e.Text=1,e.Read=2,e.Write=3}(Ls||(Ls={})),function(e){e.create=function(e,t){let n={range:e};return fl.number(t)&&(n.kind=t),n}}(Is||(Is={})),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}(Ms||(Ms={})),function(e){e.Deprecated=1}(Fs||(Fs={})),function(e){e.create=function(e,t,n,r,i){let o={name:e,kind:t,location:{uri:r,range:n}};return i&&(o.containerName=i),o}}(Ps||(Ps={})),function(e){e.create=function(e,t,n,r){return void 0!==r?{name:e,kind:t,location:{uri:n,range:r}}:{name:e,kind:t,location:{uri:n}}}}(Rs||(Rs={})),function(e){e.create=function(e,t,n,r,i,o){let a={name:e,detail:t,kind:n,range:r,selectionRange:i};return void 0!==o&&(a.children=o),a},e.is=function(e){let t=e;return t&&fl.string(t.name)&&fl.number(t.kind)&&Wa.is(t.range)&&Wa.is(t.selectionRange)&&(void 0===t.detail||fl.string(t.detail))&&(void 0===t.deprecated||fl.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))}}(js||(js={})),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"}(Vs||(Vs={})),function(e){e.Invoked=1,e.Automatic=2}(Bs||(Bs={})),function(e){e.create=function(e,t,n){let r={diagnostics:e};return null!=t&&(r.only=t),null!=n&&(r.triggerKind=n),r},e.is=function(e){let t=e;return fl.defined(t)&&fl.typedArray(t.diagnostics,rs.is)&&(void 0===t.only||fl.typedArray(t.only,fl.string))&&(void 0===t.triggerKind||t.triggerKind===Bs.Invoked||t.triggerKind===Bs.Automatic)}}(zs||(zs={})),function(e){e.create=function(e,t,n){let r={title:e},i=!0;return"string"==typeof t?(i=!1,r.kind=t):is.is(t)?r.command=t:r.edit=t,i&&void 0!==n&&(r.kind=n),r},e.is=function(e){let t=e;return t&&fl.string(t.title)&&(void 0===t.diagnostics||fl.typedArray(t.diagnostics,rs.is))&&(void 0===t.kind||fl.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||is.is(t.command))&&(void 0===t.isPreferred||fl.boolean(t.isPreferred))&&(void 0===t.edit||ps.is(t.edit))}}($s||($s={})),function(e){e.create=function(e,t){let n={range:e};return fl.defined(t)&&(n.data=t),n},e.is=function(e){let t=e;return fl.defined(t)&&Wa.is(t.range)&&(fl.undefined(t.command)||is.is(t.command))}}(Us||(Us={})),function(e){e.create=function(e,t){return{tabSize:e,insertSpaces:t}},e.is=function(e){let t=e;return fl.defined(t)&&fl.uinteger(t.tabSize)&&fl.boolean(t.insertSpaces)}}(Hs||(Hs={})),function(e){e.create=function(e,t,n){return{range:e,target:t,data:n}},e.is=function(e){let t=e;return fl.defined(t)&&Wa.is(t.range)&&(fl.undefined(t.target)||fl.string(t.target))}}(Ws||(Ws={})),function(e){e.create=function(e,t){return{range:e,parent:t}},e.is=function(t){let n=t;return fl.objectLiteral(n)&&Wa.is(n.range)&&(void 0===n.parent||e.is(n.parent))}}(qs||(qs={})),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"}(Gs||(Gs={})),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"}(Ks||(Ks={})),function(e){e.is=function(e){const t=e;return fl.objectLiteral(t)&&(void 0===t.resultId||"string"==typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"==typeof t.data[0])}}(Ys||(Ys={})),function(e){e.create=function(e,t){return{range:e,text:t}},e.is=function(e){const t=e;return null!=t&&Wa.is(t.range)&&fl.string(t.text)}}(Qs||(Qs={})),function(e){e.create=function(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}},e.is=function(e){const t=e;return null!=t&&Wa.is(t.range)&&fl.boolean(t.caseSensitiveLookup)&&(fl.string(t.variableName)||void 0===t.variableName)}}(Xs||(Xs={})),function(e){e.create=function(e,t){return{range:e,expression:t}},e.is=function(e){const t=e;return null!=t&&Wa.is(t.range)&&(fl.string(t.expression)||void 0===t.expression)}}(Zs||(Zs={})),function(e){e.create=function(e,t){return{frameId:e,stoppedLocation:t}},e.is=function(e){const t=e;return fl.defined(t)&&Wa.is(e.stoppedLocation)}}(Js||(Js={})),function(e){e.Type=1,e.Parameter=2,e.is=function(e){return 1===e||2===e}}(el||(el={})),function(e){e.create=function(e){return{value:e}},e.is=function(e){const t=e;return fl.objectLiteral(t)&&(void 0===t.tooltip||fl.string(t.tooltip)||bs.is(t.tooltip))&&(void 0===t.location||qa.is(t.location))&&(void 0===t.command||is.is(t.command))}}(tl||(tl={})),function(e){e.create=function(e,t,n){const r={position:e,label:t};return void 0!==n&&(r.kind=n),r},e.is=function(e){const t=e;return fl.objectLiteral(t)&&Ha.is(t.position)&&(fl.string(t.label)||fl.typedArray(t.label,tl.is))&&(void 0===t.kind||el.is(t.kind))&&void 0===t.textEdits||fl.typedArray(t.textEdits,os.is)&&(void 0===t.tooltip||fl.string(t.tooltip)||bs.is(t.tooltip))&&(void 0===t.paddingLeft||fl.boolean(t.paddingLeft))&&(void 0===t.paddingRight||fl.boolean(t.paddingRight))}}(nl||(nl={})),function(e){e.createSnippet=function(e){return{kind:"snippet",value:e}}}(rl||(rl={})),function(e){e.create=function(e,t,n,r){return{insertText:e,filterText:t,range:n,command:r}}}(il||(il={})),function(e){e.create=function(e){return{items:e}}}(ol||(ol={})),function(e){e.Invoked=0,e.Automatic=1}(al||(al={})),function(e){e.create=function(e,t){return{range:e,text:t}}}(sl||(sl={})),function(e){e.create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t}}}(ll||(ll={})),function(e){e.is=function(e){const t=e;return fl.objectLiteral(t)&&za.is(t.uri)&&fl.string(t.name)}}(ul||(ul={})),function(e){function t(e,n){if(e.length<=1)return e;const r=e.length/2|0,i=e.slice(0,r),o=e.slice(r);t(i,n),t(o,n);let a=0,s=0,l=0;for(;a{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n}),o=r.length;for(let t=i.length-1;t>=0;t--){let n=i[t],a=e.offsetAt(n.range.start),s=e.offsetAt(n.range.end);if(!(s<=o))throw new Error("Overlapping edit");r=r.substring(0,a)+n.newText+r.substring(s,r.length),o=a}return r}}(cl||(cl={})),dl=class{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(void 0===this._lineOffsets){let e=[],t=this._content,n=!0;for(let r=0;r0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return Ha.create(0,e);for(;ne?r=i:n=i+1}let i=n-1;return Ha.create(i,e-t[i])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],r=e.line+1{pl=class{constructor(e){this._start=0,this._pos=0,this.getStartOfToken=()=>this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>0===this._pos,this.peek=()=>this._sourceText.charAt(this._pos)||null,this.next=()=>{const e=this._sourceText.charAt(this._pos);return this._pos++,e},this.eat=e=>{if(this._testNextCharacter(e))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=e=>{let t=this._testNextCharacter(e),n=!1;for(t&&(n=t,this._start=this._pos);t;)this._pos++,t=this._testNextCharacter(e),n=!0;return n},this.eatSpace=()=>this.eatWhile(/[\s\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=e=>{this._pos=e},this.match=(e,t=!0,n=!1)=>{let r=null,i=null;return"string"==typeof e?(i=new RegExp(e,n?"i":"g").test(this._sourceText.slice(this._pos,this._pos+e.length)),r=e):e instanceof RegExp&&(i=this._sourceText.slice(this._pos).match(e),r=null==i?void 0:i[0]),!(null==i||!("string"==typeof e||i instanceof Array&&this._sourceText.startsWith(i[0],this._pos)))&&(t&&(this._start=this._pos,r&&r.length&&(this._pos+=r.length)),i)},this.backUp=e=>{this._pos-=e},this.column=()=>this._pos,this.indentation=()=>{const e=this._sourceText.match(/\s*/);let t=0;if(e&&0!==e.length){const n=e[0];let r=0;for(;n.length>r;)9===n.charCodeAt(r)?t+=2:t++,r++}return t},this.current=()=>this._sourceText.slice(this._start,this._pos),this._sourceText=e}_testNextCharacter(e){const t=this._sourceText.charAt(this._pos);let n=!1;return n="string"==typeof e?t===e:e instanceof RegExp?e.test(t):e(t),n}}});function vl(e){return{ofRule:e}}function yl(e,t){return{ofRule:e,isList:!0,separator:t}}function bl(e,t){const n=e.match;return e.match=e=>{let r=!1;return n&&(r=n(e)),r&&t.every(t=>t.match&&!t.match(e))},e}function wl(e,t){return{style:t,match:t=>t.kind===e}}function xl(e,t){return{style:t||"punctuation",match:t=>"Punctuation"===t.kind&&t.value===e}}var El,kl,Cl,Sl=a(()=>{});function Tl(e){return{style:"keyword",match:t=>"Name"===t.kind&&t.value===e}}function _l(e){return{style:e,match:e=>"Name"===e.kind,update(e,t){e.name=t.value}}}var Nl,Al=a(()=>{Sl(),ha(),El=e=>" "===e||"\t"===e||","===e||"\n"===e||"\r"===e||"\ufeff"===e||" "===e,kl={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:/^#.*/},Cl={Document:[yl("Definition")],Definition(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return ae.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:[Tl("query"),vl(_l("def")),vl("VariableDefinitions"),yl("Directive"),"SelectionSet"],Mutation:[Tl("mutation"),vl(_l("def")),vl("VariableDefinitions"),yl("Directive"),"SelectionSet"],Subscription:[Tl("subscription"),vl(_l("def")),vl("VariableDefinitions"),yl("Directive"),"SelectionSet"],VariableDefinitions:[xl("("),yl("VariableDefinition"),xl(")")],VariableDefinition:["Variable",xl(":"),"Type",vl("DefaultValue")],Variable:[xl("$","variable"),_l("variable")],DefaultValue:[xl("="),"Value"],SelectionSet:[xl("{"),yl("Selection"),xl("}")],Selection:(e,t)=>"..."===e.value?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field",AliasedField:[_l("property"),xl(":"),_l("qualifier"),vl("Arguments"),yl("Directive"),vl("SelectionSet")],Field:[_l("property"),vl("Arguments"),yl("Directive"),vl("SelectionSet")],Arguments:[xl("("),yl("Argument"),xl(")")],Argument:[_l("attribute"),xl(":"),"Value"],FragmentSpread:[xl("..."),_l("def"),yl("Directive")],InlineFragment:[xl("..."),vl("TypeCondition"),yl("Directive"),"SelectionSet"],FragmentDefinition:[Tl("fragment"),vl(bl(_l("def"),[Tl("on")])),"TypeCondition",yl("Directive"),"SelectionSet"],TypeCondition:[Tl("on"),"NamedType"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable";case"&":return"NamedType"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return"null"===e.value?"NullValue":"EnumValue"}},NumberValue:[wl("Number","number")],StringValue:[{style:"string",match:e=>"String"===e.kind,update(e,t){t.value.startsWith('"""')&&(e.inBlockstring=!t.value.slice(3).endsWith('"""'))}}],BooleanValue:[wl("Name","builtin")],NullValue:[wl("Name","keyword")],EnumValue:[_l("string-2")],ListValue:[xl("["),yl("Value"),xl("]")],ObjectValue:[xl("{"),yl("ObjectField"),xl("}")],ObjectField:[_l("attribute"),xl(":"),"Value"],Type:e=>"["===e.value?"ListType":"NonNullType",ListType:[xl("["),"Type",xl("]"),vl(xl("!"))],NonNullType:["NamedType",vl(xl("!"))],NamedType:[{style:"atom",match:e=>"Name"===e.kind,update(e,t){var n;(null===(n=e.prevState)||void 0===n?void 0:n.prevState)&&(e.name=t.value,e.prevState.prevState.type=t.value)}}],Directive:[xl("@","meta"),_l("meta"),vl("Arguments")],DirectiveDef:[Tl("directive"),xl("@","meta"),_l("meta"),vl("ArgumentsDef"),Tl("on"),yl("DirectiveLocation",xl("|"))],InterfaceDef:[Tl("interface"),_l("atom"),vl("Implements"),yl("Directive"),xl("{"),yl("FieldDef"),xl("}")],Implements:[Tl("implements"),yl("NamedType",xl("&"))],DirectiveLocation:[_l("string-2")],SchemaDef:[Tl("schema"),yl("Directive"),xl("{"),yl("OperationTypeDef"),xl("}")],OperationTypeDef:[_l("keyword"),xl(":"),_l("atom")],ScalarDef:[Tl("scalar"),_l("atom"),yl("Directive")],ObjectTypeDef:[Tl("type"),_l("atom"),vl("Implements"),yl("Directive"),xl("{"),yl("FieldDef"),xl("}")],FieldDef:[_l("property"),vl("ArgumentsDef"),xl(":"),"Type",yl("Directive")],ArgumentsDef:[xl("("),yl("InputValueDef"),xl(")")],InputValueDef:[_l("attribute"),xl(":"),"Type",vl("DefaultValue"),yl("Directive")],UnionDef:[Tl("union"),_l("atom"),yl("Directive"),xl("="),yl("UnionMember",xl("|"))],UnionMember:["NamedType"],EnumDef:[Tl("enum"),_l("atom"),yl("Directive"),xl("{"),yl("EnumValueDef"),xl("}")],EnumValueDef:[_l("string-2"),yl("Directive")],InputDef:[Tl("input"),_l("atom"),yl("Directive"),xl("{"),yl("InputValueDef"),xl("}")],ExtendDef:[Tl("extend"),"ExtensionDefinition"],ExtensionDefinition(e){switch(e.value){case"schema":return ae.SCHEMA_EXTENSION;case"scalar":return ae.SCALAR_TYPE_EXTENSION;case"type":return ae.OBJECT_TYPE_EXTENSION;case"interface":return ae.INTERFACE_TYPE_EXTENSION;case"union":return ae.UNION_TYPE_EXTENSION;case"enum":return ae.ENUM_TYPE_EXTENSION;case"input":return ae.INPUT_OBJECT_TYPE_EXTENSION}},[ae.SCHEMA_EXTENSION]:["SchemaDef"],[ae.SCALAR_TYPE_EXTENSION]:["ScalarDef"],[ae.OBJECT_TYPE_EXTENSION]:["ObjectTypeDef"],[ae.INTERFACE_TYPE_EXTENSION]:["InterfaceDef"],[ae.UNION_TYPE_EXTENSION]:["UnionDef"],[ae.ENUM_TYPE_EXTENSION]:["EnumDef"],[ae.INPUT_OBJECT_TYPE_EXTENSION]:["InputDef"]}});function Dl(e={eatWhitespace:e=>e.eatWhile(El),lexRules:kl,parseRules:Cl,editorConfig:{}}){return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeparator:!1,prevState:null};return Ll(e.parseRules,t,ae.DOCUMENT),t},token:(t,n)=>function(e,t,n){var r;if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");const{lexRules:i,parseRules:o,eatWhitespace:a,editorConfig:s}=n;if(t.rule&&0===t.rule.length?Il(t):t.needsAdvance&&(t.needsAdvance=!1,Ml(t,!0)),e.sol()){const n=(null==s?void 0:s.tabSize)||2;t.indentLevel=Math.floor(e.indentation()/n)}if(a(e))return"ws";const l=function(e,t){const n=Object.keys(e);for(let r=0;r0&&e.at(-1){Al(),ha(),Nl={Invalid:[],Comment:[]}});function zl(e,t){const n=e.split("\n"),r=Dl();let i=r.startState(),o="",a=new pl("");for(let s=0;s{nu(),ha(),function(e){e.TYPE_SYSTEM="TYPE_SYSTEM",e.EXECUTABLE="EXECUTABLE",e.UNKNOWN="UNKNOWN"}(Rl||(Rl={})),jl=[ae.SCHEMA_DEFINITION,ae.OPERATION_TYPE_DEFINITION,ae.SCALAR_TYPE_DEFINITION,ae.OBJECT_TYPE_DEFINITION,ae.INTERFACE_TYPE_DEFINITION,ae.UNION_TYPE_DEFINITION,ae.ENUM_TYPE_DEFINITION,ae.INPUT_OBJECT_TYPE_DEFINITION,ae.DIRECTIVE_DEFINITION,ae.SCHEMA_EXTENSION,ae.SCALAR_TYPE_EXTENSION,ae.OBJECT_TYPE_EXTENSION,ae.INTERFACE_TYPE_EXTENSION,ae.UNION_TYPE_EXTENSION,ae.ENUM_TYPE_EXTENSION,ae.INPUT_OBJECT_TYPE_EXTENSION],Vl=e=>{let t=Rl.UNKNOWN;if(e)try{At(Ze(e),{enter(e){if("Document"!==e.kind)return!!jl.includes(e.kind)&&(t=Rl.TYPE_SYSTEM,_t);t=Rl.EXECUTABLE}})}catch(Vc){return t}return t}});function Ul(e,t,n){return n===pr.name&&e.getQueryType()===t?pr:n===hr.name&&e.getQueryType()===t?hr:n===mr.name&&fn(t)?mr:"getFields"in t?t.getFields()[n]:null}function Hl(e,t){const n=[];let r=e;for(;null==r?void 0:r.kind;)n.push(r),r=r.prevState;for(let i=n.length-1;i>=0;i--)t(n[i])}function Wl(e,t){let n,r,i,o,a,s,l,u,c,d,f;return Hl(t,t=>{var p;switch(t.kind){case Gl.QUERY:case"ShortQuery":d=e.getQueryType();break;case Gl.MUTATION:d=e.getMutationType();break;case Gl.SUBSCRIPTION:d=e.getSubscriptionType();break;case Gl.INLINE_FRAGMENT:case Gl.FRAGMENT_DEFINITION:t.type&&(d=e.getType(t.type));break;case Gl.FIELD:case Gl.ALIASED_FIELD:d&&t.name?(a=c?Ul(e,c,t.name):null,d=a?a.type:null):a=null;break;case Gl.SELECTION_SET:c=yn(d);break;case Gl.DIRECTIVE:i=t.name?e.getDirective(t.name):null;break;case Gl.INTERFACE_DEF:t.name&&(l=null,f=new Kt({name:t.name,interfaces:[],fields:{}}));break;case Gl.OBJECT_TYPE_DEF:t.name&&(f=null,l=new Gt({name:t.name,interfaces:[],fields:{}}));break;case Gl.ARGUMENTS:if(t.prevState)switch(t.prevState.kind){case Gl.FIELD:r=a&&a.args;break;case Gl.DIRECTIVE:r=i&&i.args;break;case Gl.ALIASED_FIELD:{const n=null===(p=t.prevState)||void 0===p?void 0:p.name;if(!n){r=null;break}const i=c?Ul(e,c,n):null;if(!i){r=null;break}r=i.args;break}default:r=null}else r=null;break;case Gl.ARGUMENT:if(r)for(let e=0;ee.value===t.name):null;break;case Gl.LIST_VALUE:const m=gn(s);s=m instanceof Ht?m.ofType:null;break;case Gl.OBJECT_VALUE:const g=yn(s);u=g instanceof Xt?g.getFields():null;break;case Gl.OBJECT_FIELD:const v=t.name&&u?u[t.name]:null;s=null==v?void 0:v.type,a=v,d=a?a.type:null;break;case Gl.NAMED_TYPE:t.name&&(d=e.getType(t.name))}}),{argDef:n,argDefs:r,directiveDef:i,enumValue:o,fieldDef:a,inputType:s,objectFieldDefs:u,parentType:c,type:d,interfaceDef:f,objectTypeDef:l}}var ql,Gl,Kl,Yl,Ql,Xl,Zl,Jl,eu=a(()=>{ha(),nu()}),tu=a(()=>{ha(),ql={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",VARIABLE:"Variable"},Gl=Object.assign(Object.assign({},ae),ql)}),nu=a(()=>{gl(),Al(),Sl(),Bl(),$l(),eu(),tu()}),ru=a(()=>{ml(),nu(),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}(Kl||(Kl={}))});function iu(e,t,n,r,i,o){var a;const s=Object.assign(Object.assign({},o),{schema:e}),l=function(e,t,n,r,i){const o=r||function(e,t,n=0){let r=null,i=null,o=null;const a=zl(e,(e,a,s,l)=>{if(!(l!==t.line||e.getCurrentPosition()+n({label:e.name,kind:Kl.Function})));if((null==m?void 0:m.kind)===ae.OBJECT_TYPE_EXTENSION)return Pa(f,Object.values(e.getTypeMap()).filter(e=>tn(e)&&!e.name.startsWith("__")).map(e=>({label:e.name,kind:Kl.Function})));if((null==m?void 0:m.kind)===ae.INTERFACE_TYPE_EXTENSION)return Pa(f,Object.values(e.getTypeMap()).filter(nn).map(e=>({label:e.name,kind:Kl.Function})));if((null==m?void 0:m.kind)===ae.UNION_TYPE_EXTENSION)return Pa(f,Object.values(e.getTypeMap()).filter(rn).map(e=>({label:e.name,kind:Kl.Function})));if((null==m?void 0:m.kind)===ae.ENUM_TYPE_EXTENSION)return Pa(f,Object.values(e.getTypeMap()).filter(e=>on(e)&&!e.name.startsWith("__")).map(e=>({label:e.name,kind:Kl.Function})));if((null==m?void 0:m.kind)===ae.INPUT_OBJECT_TYPE_EXTENSION)return Pa(f,Object.values(e.getTypeMap()).filter(an).map(e=>({label:e.name,kind:Kl.Function})));if(p===Gl.IMPLEMENTS||p===Gl.NAMED_TYPE&&(null==m?void 0:m.kind)===Gl.IMPLEMENTS)return function(e,t,n,r,i){if(t.needsSeparator)return[];const o=Fa(n.getTypeMap()).filter(nn),a=o.map(({name:e})=>e),s=new Set;zl(r,(e,t)=>{var r,o,l,u,c;if(t.name&&(t.kind!==Gl.INTERFACE_DEF||a.includes(t.name)||s.add(t.name),t.kind===Gl.NAMED_TYPE&&(null===(r=t.prevState)||void 0===r?void 0:r.kind)===Gl.IMPLEMENTS))if(i.interfaceDef){if(null===(o=i.interfaceDef)||void 0===o?void 0:o.getInterfaces().find(({name:e})=>e===t.name))return;const e=n.getType(t.name),r=null===(l=i.interfaceDef)||void 0===l?void 0:l.toConfig();i.interfaceDef=new Kt(Object.assign(Object.assign({},r),{interfaces:[...r.interfaces,e||new Kt({name:t.name,fields:{}})]}))}else if(i.objectTypeDef){if(null===(u=i.objectTypeDef)||void 0===u?void 0:u.getInterfaces().find(({name:e})=>e===t.name))return;const e=n.getType(t.name),r=null===(c=i.objectTypeDef)||void 0===c?void 0:c.toConfig();i.objectTypeDef=new Gt(Object.assign(Object.assign({},r),{interfaces:[...r.interfaces,e||new Kt({name:t.name,fields:{}})]}))}});const l=i.interfaceDef||i.objectTypeDef,u=((null==l?void 0:l.getInterfaces())||[]).map(({name:e})=>e);return Pa(e,o.concat([...s].map(e=>({name:e}))).filter(({name:e})=>e!==(null==l?void 0:l.name)&&!u.includes(e)).map(e=>{const t={label:e.name,kind:Kl.Interface,type:e};return(null==e?void 0:e.description)&&(t.documentation=e.description),t}))}(f,u,e,t,c);if(p===Gl.SELECTION_SET||p===Gl.FIELD||p===Gl.ALIASED_FIELD)return function(e,t,n){var r;if(t.parentType){const{parentType:i}=t;let o=[];return"getFields"in i&&(o=Fa(i.getFields())),fn(i)&&o.push(mr),i===(null===(r=null==n?void 0:n.schema)||void 0===r?void 0:r.getQueryType())&&o.push(pr,hr),Pa(e,o.map((t,r)=>{var i;const o={sortText:String(r)+t.name,label:t.name,detail:String(t.type),documentation:null!==(i=t.description)&&void 0!==i?i:void 0,deprecated:Boolean(t.deprecationReason),isDeprecated:Boolean(t.deprecationReason),deprecationReason:t.deprecationReason,kind:Kl.Field,labelDetails:{detail:" "+t.type.toString()},type:t.type};return(null==n?void 0:n.fillLeafsOnComplete)&&(o.insertText=Ia(t),o.insertText||(o.insertText=Oa(t.name,t.type,t.name+(e.state.needsAdvance?"":"\n"))),o.insertText&&(o.insertTextFormat=xs.Snippet,o.insertTextMode=Cs.adjustIndentation,o.command=Yl)),o}))}return[]}(f,c,s);if(p===Gl.ARGUMENTS||p===Gl.ARGUMENT&&0===h){const{argDefs:e}=c;if(e)return Pa(f,e.map(e=>{var t;return{label:e.name,insertText:La(e.name+": ",e.type),insertTextMode:Cs.adjustIndentation,insertTextFormat:xs.Snippet,command:Yl,labelDetails:{detail:" "+String(e.type)},documentation:null!==(t=e.description)&&void 0!==t?t:void 0,kind:Kl.Variable,type:e.type}}))}if((p===Gl.OBJECT_VALUE||p===Gl.OBJECT_FIELD&&0===h)&&c.objectFieldDefs){const e=Fa(c.objectFieldDefs),t=p===Gl.OBJECT_VALUE?Kl.Value:Kl.Field;return Pa(f,e.map(e=>{var n;return{label:e.name,detail:String(e.type),documentation:null!==(n=null==e?void 0:e.description)&&void 0!==n?n:void 0,kind:t,type:e.type,insertText:La(e.name+": ",e.type),insertTextMode:Cs.adjustIndentation,insertTextFormat:xs.Snippet,command:Yl}}))}if(p===Gl.ENUM_VALUE||p===Gl.LIST_VALUE&&1===h||p===Gl.OBJECT_FIELD&&2===h||p===Gl.ARGUMENT&&2===h)return function(e,t,n,r){const i=yn(t.inputType),o=ou(n,r,e).filter(e=>e.detail===(null==i?void 0:i.name));return i instanceof Qt?Pa(e,i.getValues().map(e=>{var t;return{label:e.name,detail:String(i),documentation:null!==(t=e.description)&&void 0!==t?t:void 0,deprecated:Boolean(e.deprecationReason),isDeprecated:Boolean(e.deprecationReason),deprecationReason:e.deprecationReason,kind:Kl.EnumMember,type:i}}).concat(o)):i===Bn?Pa(e,o.concat([{label:"true",detail:String(Bn),documentation:"Not false.",kind:Kl.Variable,type:Bn},{label:"false",detail:String(Bn),documentation:"Not true.",kind:Kl.Variable,type:Bn}])):o}(f,c,t,e);if(p===Gl.VARIABLE&&1===h){const n=yn(c.inputType);return Pa(f,ou(t,e,f).filter(e=>e.detail===(null==n?void 0:n.name)))}if(p===Gl.TYPE_CONDITION&&1===h||p===Gl.NAMED_TYPE&&null!=m&&m.kind===Gl.TYPE_CONDITION)return function(e,t,n){let r;if(t.parentType)if(pn(t.parentType)){const e=function(e){if(!pn(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL abstract type.`);return e}(t.parentType),i=n.getPossibleTypes(e),o=Object.create(null);for(const t of i)for(const e of t.getInterfaces())o[e.name]=e;r=i.concat(Fa(o))}else r=[t.parentType];else r=Fa(n.getTypeMap()).filter(e=>fn(e)&&!e.name.startsWith("__"));return Pa(e,r.map(e=>{const t=yn(e);return{label:String(e),documentation:(null==t?void 0:t.description)||"",kind:Kl.Field}}))}(f,c,e);if(p===Gl.FRAGMENT_SPREAD&&1===h)return function(e,t,n,r,i){if(!r)return[];const o=n.getTypeMap(),a=function(e){let t;return Hl(e,e=>{switch(e.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=e}}),t}(e.state),s=function(e){const t=[];return zl(e,(e,n)=>{n.kind===Gl.FRAGMENT_DEFINITION&&n.name&&n.type&&t.push({kind:Gl.FRAGMENT_DEFINITION,name:{kind:ae.NAME,value:n.name},selectionSet:{kind:Gl.SELECTION_SET,selections:[]},typeCondition:{kind:Gl.NAMED_TYPE,name:{kind:ae.NAME,value:n.type}}})}),t}(r);return i&&i.length>0&&s.push(...i),Pa(e,s.filter(e=>o[e.typeCondition.name.value]&&!(a&&a.kind===Gl.FRAGMENT_DEFINITION&&a.name===e.name.value)&&fn(t.parentType)&&fn(o[e.typeCondition.name.value])&&Pn(n,t.parentType,o[e.typeCondition.name.value])).map(e=>({label:e.name.value,detail:String(o[e.typeCondition.name.value]),documentation:`fragment ${e.name.value} on ${e.typeCondition.name.value}`,labelDetails:{detail:`fragment ${e.name.value} on ${e.typeCondition.name.value}`},kind:Kl.Field,type:o[e.typeCondition.name.value]})))}(f,c,e,t,Array.isArray(i)?i:Ql(i));const g=au(u);return g.kind===Gl.FIELD_DEF?Pa(f,Object.values(e.getTypeMap()).filter(e=>cn(e)&&!e.name.startsWith("__")).map(e=>({label:e.name,kind:Kl.Function,insertText:(null==o?void 0:o.fillLeafsOnComplete)?e.name+"\n":e.name,insertTextMode:Cs.adjustIndentation}))):g.kind===Gl.INPUT_VALUE_DEF&&2===h?Pa(f,Object.values(e.getTypeMap()).filter(e=>un(e)&&!e.name.startsWith("__")).map(e=>({label:e.name,kind:Kl.Function,insertText:(null==o?void 0:o.fillLeafsOnComplete)?e.name+"\n$1":e.name,insertTextMode:Cs.adjustIndentation,insertTextFormat:xs.Snippet}))):p===Gl.VARIABLE_DEFINITION&&2===h||p===Gl.LIST_TYPE&&1===h||p===Gl.NAMED_TYPE&&m&&(m.kind===Gl.VARIABLE_DEFINITION||m.kind===Gl.LIST_TYPE||m.kind===Gl.NON_NULL_TYPE)?function(e,t){return Pa(e,Fa(t.getTypeMap()).filter(un).map(e=>({label:e.name,documentation:(null==e?void 0:e.description)||"",kind:Kl.Variable})))}(f,e):p===Gl.DIRECTIVE?function(e,t,n){var r;return(null===(r=t.prevState)||void 0===r?void 0:r.kind)?Pa(e,n.getDirectives().filter(e=>function(e,t){if(!(null==e?void 0:e.kind))return!1;const{kind:n,prevState:r}=e,{locations:i}=t;switch(n){case Gl.QUERY:return i.includes(oe.QUERY);case Gl.MUTATION:return i.includes(oe.MUTATION);case Gl.SUBSCRIPTION:return i.includes(oe.SUBSCRIPTION);case Gl.FIELD:case Gl.ALIASED_FIELD:return i.includes(oe.FIELD);case Gl.FRAGMENT_DEFINITION:return i.includes(oe.FRAGMENT_DEFINITION);case Gl.FRAGMENT_SPREAD:return i.includes(oe.FRAGMENT_SPREAD);case Gl.INLINE_FRAGMENT:return i.includes(oe.INLINE_FRAGMENT);case Gl.SCHEMA_DEF:return i.includes(oe.SCHEMA);case Gl.SCALAR_DEF:return i.includes(oe.SCALAR);case Gl.OBJECT_TYPE_DEF:return i.includes(oe.OBJECT);case Gl.FIELD_DEF:return i.includes(oe.FIELD_DEFINITION);case Gl.INTERFACE_DEF:return i.includes(oe.INTERFACE);case Gl.UNION_DEF:return i.includes(oe.UNION);case Gl.ENUM_DEF:return i.includes(oe.ENUM);case Gl.ENUM_VALUE:return i.includes(oe.ENUM_VALUE);case Gl.INPUT_DEF:return i.includes(oe.INPUT_OBJECT);case Gl.INPUT_VALUE_DEF:switch(null==r?void 0:r.kind){case Gl.ARGUMENTS_DEF:return i.includes(oe.ARGUMENT_DEFINITION);case Gl.INPUT_DEF:return i.includes(oe.INPUT_FIELD_DEFINITION)}}return!1}(t.prevState,e)).map(e=>({label:e.name,documentation:(null==e?void 0:e.description)||"",kind:Kl.Function}))):[]}(f,u,e):p===Gl.DIRECTIVE_DEF?function(e,t,n){const r=n.getDirectives().find(e=>e.name===t.name);return Pa(e,(null==r?void 0:r.args.map(e=>({label:e.name,documentation:e.description||"",kind:Kl.Field})))||[])}(f,u,e):[]}function ou(e,t,n){let r,i=null;const o=Object.create({});return zl(e,(e,a)=>{var s;if((null==a?void 0:a.kind)===Gl.VARIABLE&&a.name&&(i=a.name),(null==a?void 0:a.kind)===Gl.NAMED_TYPE&&i){const e=Jl(a,Gl.TYPE);(null==e?void 0:e.type)&&(r=t.getType(null==e?void 0:e.type))}if(i&&r&&!o[i]){const e="$"===n.string||"Variable"===(null===(s=null==n?void 0:n.state)||void 0===s?void 0:s.kind)?i:"$"+i;o[i]={detail:r.toString(),insertText:e,label:"$"+i,rawInsert:e,type:r,kind:Kl.Variable},i=null,r=null}}),Fa(o)}function au(e){return e.prevState&&e.kind&&[Gl.NAMED_TYPE,Gl.LIST_TYPE,Gl.TYPE,Gl.NON_NULL_TYPE].includes(e.kind)?au(e.prevState):e}var su,lu,uu,cu,du,fu,pu,hu=a(()=>{ha(),ru(),nu(),hl(),ml(),Yl={command:"editor.action.triggerSuggest",title:"Suggestions"},Ql=e=>{const t=[];if(e)try{At(Ze(e),{FragmentDefinition(e){t.push(e)}})}catch(Vc){return[]}return t},Xl=[{label:"type",kind:Kl.Function},{label:"interface",kind:Kl.Function},{label:"union",kind:Kl.Function},{label:"input",kind:Kl.Function},{label:"scalar",kind:Kl.Function},{label:"schema",kind:Kl.Function}],Zl=[{label:"query",kind:Kl.Function},{label:"mutation",kind:Kl.Function},{label:"subscription",kind:Kl.Function},{label:"fragment",kind:Kl.Function},{label:"{",kind:Kl.Constructor}],Jl=(e,t)=>{var n,r,i,o,a,s,l,u,c,d;return(null===(n=e.prevState)||void 0===n?void 0:n.kind)===t?e.prevState:(null===(i=null===(r=e.prevState)||void 0===r?void 0:r.prevState)||void 0===i?void 0:i.kind)===t?e.prevState.prevState:(null===(s=null===(a=null===(o=e.prevState)||void 0===o?void 0:o.prevState)||void 0===a?void 0:a.prevState)||void 0===s?void 0:s.kind)===t?e.prevState.prevState.prevState:(null===(d=null===(c=null===(u=null===(l=e.prevState)||void 0===l?void 0:l.prevState)||void 0===u?void 0:u.prevState)||void 0===c?void 0:c.prevState)||void 0===d?void 0:d.kind)===t?e.prevState.prevState.prevState.prevState:void 0}}),mu=s((e,t)=>{function n(e,t){if(null!=e)return e;var n=new Error(void 0!==t?t:"Got unexpected "+e);throw n.framesToPop=1,n}t.exports=n,t.exports.default=n,Object.defineProperty(t.exports,"__esModule",{value:!0})}),gu=a(()=>{ha(),su=c(mu()),lu=(e,t)=>{if(!t)return[];const n=new Map,r=new Set;At(e,{FragmentDefinition(e){n.set(e.name.value,!0)},FragmentSpread(e){r.has(e.name.value)||r.add(e.name.value)}});const i=new Set;for(const a of r)!n.has(a)&&t.has(a)&&i.add((0,su.default)(t.get(a)));const o=[];for(const a of i)At(a,{FragmentSpread(e){!r.has(e.name.value)&&t.get(e.name.value)&&(i.add((0,su.default)(t.get(e.name.value))),r.add(e.name.value))}}),n.has(a.name.value)||o.push(a);return o}}),vu=a(()=>{uu=class{constructor(e,t){this.containsPosition=e=>this.start.line===e.line?this.start.character<=e.character:this.end.line===e.line?this.end.character>=e.character:this.start.line<=e.line&&this.end.line>=e.line,this.start=e,this.end=t}setStart(e,t){this.start=new cu(e,t)}setEnd(e,t){this.end=new cu(e,t)}},cu=class{constructor(e,t){this.lessThanOrEqualTo=e=>this.line{ha()}),bu=a(()=>{ha()}),wu=a(()=>{ha(),bu()}),xu=a(()=>{gu(),vu(),yu(),wu()}),Eu=a(()=>{xu()});function ku(e,t,n){if(!e.nodes)return[];const r=[];for(const[i,o]of e.nodes.entries()){const a="Variable"!==o.kind&&"name"in o&&void 0!==o.name?o.name:"variable"in o&&void 0!==o.variable?o.variable:o;if(a){pu(e.locations,"GraphQL validation error requires locations.");const o=e.locations[i],s=Cu(a),l=o.column+(s.end-s.start);r.push({source:`GraphQL: ${n}`,message:e.message,severity:t,range:new uu(new cu(o.line-1,o.column-1),new cu(o.line-1,l))})}}return r}function Cu(e){const t=e.loc;return pu(t,"Expected ASTNode to have a location."),t}var Su=a(()=>{ha(),nu(),xu(),du={Error:"Error",Warning:"Warning",Information:"Information",Hint:"Hint"},fu={[du.Error]:1,[du.Warning]:2,[du.Information]:3,[du.Hint]:4},pu=(e,t)=>{if(!e)throw new Error(t)}}),Tu=a(()=>{xu()}),_u=a(()=>{nu()}),Nu=a(()=>{hl(),hu(),Eu(),Su(),Tu(),_u()}),Au=a(()=>{Nu(),nu(),ru(),xu()}),Du=s((e,t)=>{t.exports=function(e){return"object"==typeof e?null===e:"function"!=typeof e}}),Ou=s((e,t)=>{t.exports=function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}}),Lu=s((e,t)=>{var n=Ou();function r(e){return!0===n(e)&&"[object Object]"===Object.prototype.toString.call(e)}t.exports=function(e){var t,n;return!1!==r(e)&&"function"==typeof(t=e.constructor)&&!1!==r(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")}}),Iu=s((e,t)=>{var{deleteProperty:n}=Reflect,r=Du(),i=Lu(),o=e=>"object"==typeof e&&null!==e||"function"==typeof e,a=e=>{if(!r(e))throw new TypeError("Object keys must be strings or symbols");if((e=>"__proto__"===e||"constructor"===e||"prototype"===e)(e))throw new Error(`Cannot set unsafe key: "${e}"`)},s=(e,t)=>t&&"function"==typeof t.split?t.split(e):"symbol"==typeof e?[e]:Array.isArray(e)?e:((e,t,n)=>{const r=(e=>Array.isArray(e)?e.flat().map(String).join(","):e)(t?((e,t)=>{if("string"!=typeof e||!t)return e;let n=e+";";return void 0!==t.arrays&&(n+=`arrays=${t.arrays};`),void 0!==t.separator&&(n+=`separator=${t.separator};`),void 0!==t.split&&(n+=`split=${t.split};`),void 0!==t.merge&&(n+=`merge=${t.merge};`),void 0!==t.preservePaths&&(n+=`preservePaths=${t.preservePaths};`),n})(e,t):e);a(r);const i=u.cache.get(r)||n();return u.cache.set(r,i),i})(e,t,()=>((e,t={})=>{const n=t.separator||".",r="/"!==n&&t.preservePaths;if("string"==typeof e&&!1!==r&&/\//.test(e))return[e];const i=[];let o="";const a=e=>{let t;""!==e.trim()&&Number.isInteger(t=Number(e))?i.push(t):i.push(e)};for(let s=0;s{if(a(t),void 0===r)n(e,t);else if(o&&o.merge){const n="function"===o.merge?o.merge:Object.assign;n&&i(e[t])&&i(r)?e[t]=n(e[t],r):e[t]=r}else e[t]=r;return e},u=(e,t,n,r)=>{if(!t||!o(e))return e;const i=s(t,r);let u=e;for(let s=0;s{u.cache=new Map},t.exports=u}),Mu=s((e,t)=>{var n=Ou();function r(e,t,n){return"function"==typeof n.join?n.join(e):e[0]+t+e[1]}function i(e,t,n){return"function"!=typeof n.isValid||n.isValid(e,t)}function o(e){return n(e)||Array.isArray(e)||"function"==typeof e}t.exports=function(e,t,a){if(n(a)||(a={default:a}),!o(e))return void 0!==a.default?a.default:e;"number"==typeof t&&(t=String(t));const s=Array.isArray(t),l="string"==typeof t,u=a.separator||".",c=a.joinChar||("string"==typeof u?u:".");if(!l&&!s)return e;if(l&&t in e)return i(t,e,a)?e[t]:a.default;let d=s?t:function(e,t,n){return"function"==typeof n.split?n.split(e):e.split(t)}(t,u,a),f=d.length,p=0;do{let t=d[p];for("number"==typeof t&&(t=String(t));t&&"\\"===t.slice(-1);)t=r([t.slice(0,-1),d[++p]||""],c,a);if(t in e){if(!i(t,e,a))return a.default;e=e[t]}else{let n=!1,o=p+1;for(;o{let t;const n=new Set,r=(e,r)=>{const i="function"==typeof e?e(t):e;if(!Object.is(i,t)){const e=t;t=(null!=r?r:"object"!=typeof i||null===i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,o={setState:r,getState:i,getInitialState:()=>a,subscribe:e=>(n.add(e),()=>n.delete(e))},a=t=e(r,i,o);return o},Vu=e=>e?ju(e):ju,Bu=e=>e,zu=e=>t=>function(e,t=Bu){const n=Fu.useSyncExternalStore(e.subscribe,Fu.useCallback(()=>t(e.getState()),[e,t]),Fu.useCallback(()=>t(e.getInitialState()),[e,t]));return Fu.useDebugValue(n),n}(e,t),$u=x(),Uu=Vu(()=>({storage:null})),Hu=e=>{const t=(0,$u.c)(3),{storage:n,children:r}=e,i=Wu(Gu);let o,a;return t[0]!==n?(o=()=>{Uu.setState({storage:new _a(n)})},a=[n],t[0]=n,t[1]=o,t[2]=a):(o=t[1],a=t[2]),(0,Fu.useEffect)(o,a),i?r:null},Wu=zu(Uu),qu=()=>Wu(Ku);function Gu(e){return Boolean(e.storage)}function Ku(e){return e.storage}var Yu="undefined"!=typeof navigator&&navigator.userAgent.includes("Mac"),Qu=s((e,t)=>{var n,r;n=e,r=function(){var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),l=!o&&/WebKit\//.test(e),u=l&&/Qt\/\d+\.\d+/.test(e),c=!o&&/Chrome\/(\d+)/.exec(e),d=c&&+c[1],f=/Opera\//.test(e),p=/Apple Computer/.test(navigator.vendor),h=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),m=/PhantomJS/.test(e),g=p&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),v=/Android/.test(e),y=g||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),b=g||/Mac/.test(t),w=/\bCrOS\b/.test(e),x=/win/i.test(t),E=f&&e.match(/Version\/(\d*\.\d*)/);E&&(E=Number(E[1])),E&&E>=15&&(f=!1,l=!0);var k=b&&(u||f&&(null==E||E<12.11)),C=n||a&&s>=9;function S(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var T,_=function(e,t){var n=e.className,r=S(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function N(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function A(e,t){return N(e).appendChild(t)}function D(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}g?P=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(P=function(e){try{e.select()}catch(t){}});var H=function(){this.id=null,this.f=null,this.time=0,this.handler=z(this.onTimeout,this)};function W(e,t){for(var n=0;n=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var X=[""];function Z(e){for(;X.length<=e;)X.push(J(X)+" ");return X[e]}function J(e){return e[e.length-1]}function ee(e,t){for(var n=[],r=0;r"€"&&(e.toUpperCase()!=e.toLowerCase()||re.test(e))}function oe(e,t){return t?!!(t.source.indexOf("\\w")>-1&&ie(e))||t.test(e):ie(e)}function ae(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var se=/[\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 le(e){return e.charCodeAt(0)>=768&&se.test(e)}function ue(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}var de=null;function fe(e,t,n){var r;de=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:de=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:de=i)}return null!=r?r:de}var pe=function(){function e(e){return e<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(e):1424<=e&&e<=1524?"R":1536<=e&&e<=1785?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(e-1536):1774<=e&&e<=2220?"r":8192<=e&&e<=8203?"w":8204==e?"b":"L"}var t=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,n=/[stwN]/,r=/[LRr]/,i=/[Lb1n]/,o=/[1n]/;function a(e,t,n){this.level=e,this.from=t,this.to=n}return function(s,l){var u="ltr"==l?"L":"R";if(0==s.length||"ltr"==l&&!t.test(s))return!1;for(var c=s.length,d=[],f=0;f-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function be(e,t){var n=ve(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function ke(e){e.prototype.on=function(e,t){ge(this,e,t)},e.prototype.off=function(e,t){ye(this,e,t)}}function Ce(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Se(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Te(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function _e(e){Ce(e),Se(e)}function Ne(e){return e.target||e.srcElement}function Ae(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),b&&e.ctrlKey&&1==t&&(t=3),t}var De,Oe,Le=function(){if(a&&s<9)return!1;var e=D("div");return"draggable"in e||"dragDrop"in e}();function Ie(e){if(null==De){var t=D("span","​");A(e,D("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(De=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=De?D("span","​"):D("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Me(e){if(null!=Oe)return Oe;var t=A(e,document.createTextNode("AخA")),n=T(t,0,1).getBoundingClientRect(),r=T(t,1,2).getBoundingClientRect();return N(e),!(!n||n.left==n.right)&&(Oe=r.right-n.right<3)}var Fe=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Pe=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(RR){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(RR){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Re=function(){var e=D("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),je=null,Ve={},Be={};function ze(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ve[e]=t}function $e(e){if("string"==typeof e&&Be.hasOwnProperty(e))e=Be[e];else if(e&&"string"==typeof e.name&&Be.hasOwnProperty(e.name)){var t=Be[e.name];"string"==typeof t&&(t={name:t}),(e=ne(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return $e("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return $e("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ue(e,t){t=$e(t);var n=Ve[t.name];if(!n)return Ue(e,"text/plain");var r=n(e,t);if(He.hasOwnProperty(t.name)){var i=He[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var He={};function We(e,t){$(t,He.hasOwnProperty(e)?He[e]:He[e]={})}function qe(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Ge(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Ke(e,t,n){return!e.startState||e.startState(t,n)}var Ye=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Qe(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t=e.first&&tn?it(n,Qe(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?it(e.line,t):n<0?it(e.line,0):e}(t,Qe(e,t.line).text.length)}function ft(e,t){for(var n=[],r=0;r=this.string.length},Ye.prototype.sol=function(){return this.pos==this.lineStart},Ye.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ye.prototype.next=function(){if(this.post},Ye.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ye.prototype.skipToEnd=function(){this.pos=this.string.length},Ye.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ye.prototype.backUp=function(e){this.pos-=e},Ye.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},Ye.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ye.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ye.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ye.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var pt=function(e,t){this.state=e,this.lookAhead=t},ht=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function mt(e,t,n,r){var i=[e.state.modeGen],o={};Ct(e,t.text,e.doc.mode,n,function(e,t){return i.push(e,t)},o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],l=1,u=0;n.state=!0,Ct(e,t.text,s.mode,n,function(e,t){for(var n=l;ue&&i.splice(l,1,e,i[l+1],r),l+=2,u=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;ne.options.maxHighlightLength&&qe(e.doc.mode,r.state),o=mt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function vt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new ht(r,!0,t);var o=function(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var l=Qe(o,s-1),u=l.stateAfter;if(u&&(!n||s+(u instanceof pt?u.lookAhead:0)<=o.modeFrontier))return s;var c=U(l.text,null,e.options.tabSize);(null==i||r>c)&&(i=s-1,r=c)}return i}(e,t,n),a=o>r.first&&Qe(r,o-1).stateAfter,s=a?ht.fromSaved(r,a,o):new ht(r,Ke(r.mode),o);return r.iter(o,t,function(n){yt(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&rt.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}ht.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},ht.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},ht.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ht.fromSaved=function(e,t,n){return t instanceof pt?new ht(e,qe(e.mode,t.state),n,t.lookAhead):new ht(e,qe(e.mode,t),n)},ht.prototype.save=function(e){var t=!1!==e?qe(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new pt(t,this.maxLookAhead):t};var xt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function Et(e,t,n,r){var i,o,a=e.doc,s=a.mode,l=Qe(a,(t=dt(a,t)).line),u=vt(e,t.line,n),c=new Ye(l.text,e.options.tabSize,u);for(r&&(o=[]);(r||c.pose.options.maxHighlightLength?(s=!1,a&&yt(e,t,r,d.pos),d.pos=t.length,l=null):l=kt(wt(n,d,r.state,f),o),f){var p=f[0].name;p&&(l="m-"+(l?p+" "+l:p))}if(!s||c!=l){for(;u=t:o.to>t);(r||(r=[])).push(new _t(a,o.from,s?null:o.to))}}return r}(n,i,a),l=function(e,t,n){var r;if(e)for(var i=0;i=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from0&&s)for(var b=0;bt)&&(!n||Pt(n,o.marker)<0)&&(n=o.marker)}return n}function zt(e,t,n,r,i){var o=Qe(e,t),a=Tt&&o.markedSpans;if(a)for(var s=0;s=0&&d<=0||c<=0&&d>=0)&&(c<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ot(u.to,n)>=0:ot(u.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ot(u.from,r)<=0:ot(u.from,r)<0)))return!0}}}function $t(e){for(var t;t=jt(e);)e=t.find(-1,!0).line;return e}function Ut(e,t){var n=Qe(e,t),r=$t(n);return n==r?t:et(r)}function Ht(e,t){if(t>e.lastLine())return t;var n,r=Qe(e,t);if(!Wt(e,r))return t;for(;n=Vt(r);)r=n.find(1,!0).line;return et(r)+1}function Wt(e,t){var n=Tt&&t.markedSpans;if(n)for(var r=void 0,i=0;it.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}var Qt=function(e,t,n){this.text=e,It(this,t),this.height=n?n(this):1};function Xt(e){e.parent=null,Lt(e)}Qt.prototype.lineNo=function(){return et(this)},ke(Qt);var Zt={},Jt={};function en(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Jt:Zt;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function tn(e,t){var n=O("span",null,null,l?"padding-right: .1px":null),r={pre:O("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=rn,Me(e.display.measure)&&(a=he(o,e.doc.direction))&&(r.addToken=on(r.addToken,a)),r.map=[],sn(o,r,gt(e,o,t!=e.display.externalMeasured&&et(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=F(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=F(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Ie(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return be(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=F(r.pre.className,r.textClass||"")),r}function nn(e){var t=D("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function rn(e,t,n,r,i,o,l){if(t){var u,c=e.splitSpaces?function(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;iu&&d.from<=u);f++);if(d.to>=c)return e(n,r,i,o,a,s,l);e(n,r.slice(0,d.to-u),i,o,null,s,l),o=null,r=r.slice(d.to-u),u=d.to}}}function an(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function sn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,u,c,d,f,p=i.length,h=0,m=1,g="",v=0;;){if(v==h){l=u=c=s="",f=null,d=null,v=1/0;for(var y=[],b=void 0,w=0;wh||E.collapsed&&x.to==h&&x.from==h)){if(null!=x.to&&x.to!=h&&v>x.to&&(v=x.to,u=""),E.className&&(l+=" "+E.className),E.css&&(s=(s?s+";":"")+E.css),E.startStyle&&x.from==h&&(c+=" "+E.startStyle),E.endStyle&&x.to==v&&(b||(b=[])).push(E.endStyle,x.to),E.title&&((f||(f={})).title=E.title),E.attributes)for(var k in E.attributes)(f||(f={}))[k]=E.attributes[k];E.collapsed&&(!d||Pt(d.marker,E)<0)&&(d=x)}else x.from>h&&v>x.from&&(v=x.from)}if(b)for(var C=0;C=p)break;for(var T=Math.min(p,v);;){if(g){var _=h+g.length;if(!d){var N=_>T?g.slice(0,T-h):g;t.addToken(t,N,a?a+l:l,c,h+N.length==v?u:"",s,f)}if(_>=T){g=g.slice(T-h),h=T;break}h=_,c=""}g=i.slice(o,o=n[m++]),a=en(n[m++],t.cm.options)}}else for(var A=1;An)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function Mn(e,t,n,r){return Rn(e,Pn(e,t),n,r)}function Fn(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&t2&&o.push((l.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),o=function(e,t,n,r){var i,o=Bn(t.map,n,r),l=o.node,u=o.start,c=o.end,d=o.collapse;if(3==l.nodeType){for(var f=0;f<4;f++){for(;u&&le(t.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+c1}(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}(e.display.measure,i))}else{var p;u>0&&(d=r="right"),i=e.options.lineWrapping&&(p=l.getClientRects()).length>1?p["right"==r?p.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!u&&(!i||!i.left&&!i.right)){var h=l.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+lr(e.display),top:h.top,bottom:h.bottom}:Vn}for(var m=i.top-t.rect.top,g=i.bottom-t.rect.top,v=(m+g)/2,y=t.view.measure.heights,b=0;bt)&&(i=(o=l-s)-1,t>=l&&(a="right")),null!=i){if(r=e[u+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[2+(u-=3)],a="left";if("right"==n&&i==l-s)for(;u=0&&(n=e[i]).left==n.right;i--);return n}function $n(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t=r.text.length?(l=r.text.length,u="before"):l<=0&&(l=0,u="after"),!s)return a("before"==u?l-1:l,"before"==u);function c(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}var d=fe(s,l,u),f=de,p=c(l,d,"before"==u);return null!=f&&(p.other=c(l,f,"before"!=u)),p}function Zn(e,t){var n=0;t=dt(e.doc,t),e.options.lineWrapping||(n=lr(e.display)*t.ch);var r=Qe(e.doc,t.line),i=Gt(r)+_n(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Jn(e,t,n,r,i){var o=it(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function er(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Jn(r.first,0,null,-1,-1);var i=tt(r,n),o=r.first+r.size-1;if(i>o)return Jn(r.first+r.size-1,Qe(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=Qe(r,i);;){var s=ir(e,a,i,t,n),l=Bt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var u=l.find(1);if(u.line==i)return u;a=Qe(r,i=u.line)}}function tr(e,t,n,r){r-=Gn(t);var i=t.text.length,o=ce(function(t){return Rn(e,n,t-1).bottom<=r},i,0);return i=ce(function(t){return Rn(e,n,t).top>r},o,i),{begin:o,end:i}}function nr(e,t,n,r){return n||(n=Pn(e,t)),tr(e,t,n,Kn(e,t,Rn(e,n,r),"line").top)}function rr(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function ir(e,t,n,r,i){i-=Gt(t);var o=Pn(e,t),a=Gn(t),s=0,l=t.text.length,u=!0,c=he(t,e.doc.direction);if(c){var d=(e.options.lineWrapping?ar:or)(e,t,n,o,c,r,i);s=(u=1!=d.level)?d.from:d.to-1,l=u?d.to:d.from-1}var f,p,h=null,m=null,g=ce(function(t){var n=Rn(e,o,t);return n.top+=a,n.bottom+=a,!!rr(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(h=t,m=n),!0)},s,l),v=!1;if(m){var y=r-m.left=w.bottom?1:0}return Jn(n,g=ue(t.text,g,1),p,v,r-f)}function or(e,t,n,r,i,o,a){var s=ce(function(s){var l=i[s],u=1!=l.level;return rr(Xn(e,it(n,u?l.to:l.from,u?"before":"after"),"line",t,r),o,a,!0)},0,i.length-1),l=i[s];if(s>0){var u=1!=l.level,c=Xn(e,it(n,u?l.from:l.to,u?"after":"before"),"line",t,r);rr(c,o,a,!0)&&c.top>a&&(l=i[s-1])}return l}function ar(e,t,n,r,i,o,a){var s=tr(e,t,r,a),l=s.begin,u=s.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,d=null,f=0;f=u||p.to<=l)){var h=Rn(e,r,1!=p.level?Math.min(u,p.to)-1:Math.max(l,p.from)).right,m=hm)&&(c=p,d=m)}}return c||(c=i[i.length-1]),c.fromu&&(c={from:c.from,to:u,level:c.level}),c}function sr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==jn){jn=D("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)jn.appendChild(document.createTextNode("x")),jn.appendChild(D("br"));jn.appendChild(document.createTextNode("x"))}A(e.measure,jn);var n=jn.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),N(e.measure),n||1}function lr(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=D("span","xxxxxxxxxx"),n=D("pre",[t],"CodeMirror-line-like");A(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function ur(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:cr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function cr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function dr(e){var t=sr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/lr(e.display)-3);return function(i){if(Wt(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a0&&(l=Qe(e.doc,u.line).text).length==u.ch){var c=U(l,l.length,e.options.tabSize)-l.length;u=it(u.line,Math.max(0,Math.round((o-An(e.display).left)/lr(e.display))-c))}return u}function hr(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;rt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Tt&&Ut(e.doc,t)i.viewFrom?vr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)vr(e);else if(t<=i.viewFrom){var o=yr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):vr(e)}else if(n>=i.viewTo){var a=yr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):vr(e)}else{var s=yr(e,t,t,-1),l=yr(e,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(un(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):vr(e)}var u=i.externalMeasured;u&&(n=i.lineN&&t=r.viewTo)){var o=r.view[hr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==W(a,n)&&a.push(n)}}}function vr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function yr(e,t,n,r){var i,o=hr(e,t),a=e.display.view;if(!Tt||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;Ut(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function br(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo||l.to().line0?a:e.defaultCharWidth())+"px"}if(r.other){var s=n.appendChild(D("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=r.other.left+"px",s.style.top=r.other.top+"px",s.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function kr(e,t){return e.top-t.top||e.left-t.left}function Cr(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=An(e.display),s=a.left,l=Math.max(r.sizerWidth,On(e)-r.sizer.offsetLeft)-a.right,u="ltr"==i.direction;function c(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(D("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?l-e:n)+"px;\n height: "+(r-t)+"px"))}function d(t,n,r){var o,a,d=Qe(i,t),f=d.text.length;function p(n,r){return Qn(e,it(t,n),"div",d,r)}function h(t,n,r){var i=nr(e,d,null,t),o="ltr"==n==("after"==r)?"left":"right";return p("after"==r?i.begin:i.end-(/\s/.test(d.text.charAt(i.end-1))?2:1),o)[o]}var m=he(d,i.direction);return function(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;ot||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}(m,n||0,null==r?f:r,function(e,t,i,d){var g="ltr"==i,v=p(e,g?"left":"right"),y=p(t-1,g?"right":"left"),b=null==n&&0==e,w=null==r&&t==f,x=0==d,E=!m||d==m.length-1;if(y.top-v.top<=3){var k=(u?w:b)&&E,C=(u?b:w)&&x?s:(g?v:y).left,S=k?l:(g?y:v).right;c(C,v.top,S-C,v.bottom)}else{var T,_,N,A;g?(T=u&&b&&x?s:v.left,_=u?l:h(e,i,"before"),N=u?s:h(t,i,"after"),A=u&&w&&E?l:y.right):(T=u?h(e,i,"before"):s,_=!u&&b&&x?l:v.right,N=!u&&w&&E?s:y.left,A=u?h(t,i,"after"):l),c(T,v.top,_-T,v.bottom),v.bottom0?t.blinker=setInterval(function(){e.hasFocus()||Ar(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Tr(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Nr(e))}function _r(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Ar(e))},100)}function Nr(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(be(e,"focus",e,t),e.state.focused=!0,M(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Sr(e))}function Ar(e,t){e.state.delayingBlurEvent||(e.state.focused&&(be(e,"blur",e,t),e.state.focused=!1,_(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Dr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,l=0;l.005||m<-.005)&&(ie.display.sizerWidth){var v=Math.ceil(f/lr(e.display));v>e.display.maxLineLength&&(e.display.maxLineLength=v,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function Or(e){if(e.widgets)for(var t=0;t=a&&(o=tt(t,Gt(Qe(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function Ir(e,t){var n=e.display,r=sr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Ln(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+Nn(n),l=t.tops-r;if(t.topi+o){var c=Math.min(t.top,(u?s:t.bottom)-o);c!=i&&(a.scrollTop=c)}var d=e.options.fixedGutter?0:n.gutters.offsetWidth,f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-d,p=On(e)-n.gutters.offsetWidth,h=t.right-t.left>p;return h&&(t.right=t.left+p),t.left<10?a.scrollLeft=0:t.leftp+f-3&&(a.scrollLeft=t.right+(h?0:10)-p),a}function Mr(e,t){null!=t&&(Rr(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Fr(e){Rr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Pr(e,t,n){null==t&&null==n||Rr(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Rr(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,jr(e,Zn(e,t.from),Zn(e,t.to),t.margin))}function jr(e,t,n,r){var i=Ir(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});Pr(e,i.scrollLeft,i.scrollTop)}function Vr(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||fi(e,{top:t}),Br(e,t,!0),n&&fi(e),si(e,100))}function Br(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function zr(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,mi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function $r(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Nn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Dn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Ur=function(e,t,n){this.cm=n;var r=this.vert=D("div",[D("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=D("div",[D("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),ge(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),ge(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ur.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Ur.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ur.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ur.prototype.zeroWidthHack=function(){var e=b&&!h?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new H,this.disableVert=new H},Ur.prototype.enableZeroWidthBar=function(e,t,n){e.style.visibility="",t.set(1e3,function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.visibility="hidden":t.set(1e3,r)})},Ur.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Hr=function(){};function Wr(e,t){t||(t=$r(e));var n=e.display.barWidth,r=e.display.barHeight;qr(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Dr(e),qr(e,$r(e)),n=e.display.barWidth,r=e.display.barHeight}function qr(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}Hr.prototype.update=function(){return{bottom:0,right:0}},Hr.prototype.setScrollLeft=function(){},Hr.prototype.setScrollTop=function(){},Hr.prototype.clear=function(){};var Gr={native:Ur,null:Hr};function Kr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&_(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Gr[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),ge(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){"horizontal"==n?zr(e,t):Vr(e,t)},e),e.display.scrollbars.addClass&&M(e.display.wrapper,e.display.scrollbars.addClass)}var Yr=0;function Qr(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Yr,markArrays:null},t=e.curOp,cn?cn.ops.push(t):t.ownsGroup=cn={ops:[t],delayedCallbacks:[]}}function Xr(e){var t=e.curOp;t&&function(e){var t=e.ownsGroup;if(t)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ui(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Jr(e){e.updatedDisplay=e.mustUpdate&&ci(e.cm,e.update)}function ei(e){var t=e.cm,n=t.display;e.updatedDisplay&&Dr(t),e.barMeasure=$r(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Mn(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Dn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-On(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function ti(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(i=!1),null!=i&&!m){var a=D("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-_n(e.display))+"px;\n height: "+(t.bottom-t.top+Dn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(i),e.display.lineSpace.removeChild(a)}}}(t,function(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?it(t.line,t.ch+1,"before"):t,t=t.ch?it(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var a=!1,s=Xn(e,t),l=n&&n!=t?Xn(e,n):s,u=Ir(e,i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r}),c=e.doc.scrollTop,d=e.doc.scrollLeft;if(null!=u.scrollTop&&(Vr(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=u.scrollLeft&&(zr(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return i}(t,dt(r,e.scrollToPos.from),dt(r,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var a=0;a=e.display.viewTo)){var n=+new Date+e.options.workTime,r=vt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?qe(t.mode,r.state):null,l=mt(e,o,r,!0);s&&(r.state=s),o.styles=l.styles;var u=o.styleClasses,c=l.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var d=!a||a.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),f=0;!d&&fn)return si(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&ri(e,function(){for(var t=0;t=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==br(e))return!1;gi(e)&&(vr(e),t.dims=ur(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Tt&&(o=Ut(e.doc,o),a=Ht(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;!function(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=un(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=un(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,hr(e,n)))),r.viewTo=n}(e,o,a),n.viewOffset=Gt(Qe(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var u=br(e);if(!s&&0==u&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=function(e){if(e.hasFocus())return null;var t=I(j(e));if(!t||!L(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=B(e).getSelection();r.anchorNode&&r.extend&&L(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}(e);return u>4&&(n.lineDiv.style.display="none"),function(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return l&&b&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var u=r.view,c=r.viewFrom,d=0;d-1&&(p=!1),hn(e,f,c,n)),p&&(N(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(rt(e.options,c)))),a=f.node.nextSibling}else{var h=xn(e,f,c,n);o.insertBefore(h,a)}c+=f.size}for(;a;)a=s(a)}(e,n.updateLineNumbers,t.dims),u>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(e){if(e&&e.activeElt&&e.activeElt!=I(V(e.activeElt))&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&L(document.body,e.anchorNode)&&L(document.body,e.focusNode))){var t=e.activeElt.ownerDocument,n=t.defaultView.getSelection(),r=t.createRange();r.setEnd(e.anchorNode,e.anchorOffset),r.collapse(!1),n.removeAllRanges(),n.addRange(r),n.extend(e.focusNode,e.focusOffset)}}(c),N(n.cursorDiv),N(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,si(e,400)),n.updateLineNumbers=null,!0}function di(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=On(e))r&&(t.visible=Lr(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Nn(e.display)-Ln(e),n.top)}),t.visible=Lr(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!ci(e,t))break;Dr(e);var i=$r(e);wr(e),Wr(e,i),hi(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function fi(e,t){var n=new ui(e,t);if(ci(e,n)){Dr(e),di(e,n);var r=$r(e);wr(e),Wr(e,r),hi(e,r),n.finish()}}function pi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",fn(e,"gutterChanged",e)}function hi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Dn(e)+"px"}function mi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=cr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;au.clientWidth,h=u.scrollHeight>u.clientHeight;if(i&&p||o&&h){if(o&&b&&l)e:for(var m=t.target,g=s.view;m!=u;m=m.parentNode)for(var v=0;v=0&&ot(e,r.to())<=0)return n}return-1};var _i=function(e,t){this.anchor=e,this.head=t};function Ni(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort(function(e,t){return ot(e.from(),t.from())}),n=W(t,i);for(var o=1;o0:l>=0){var u=ut(s.from(),a.from()),c=lt(s.to(),a.to()),d=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new _i(d?c:u,d?u:c))}}return new Ti(t,n)}function Ai(e,t){return new Ti([new _i(e,t||e)],0)}function Di(e){return e.text?it(e.from.line+e.text.length-1,J(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Oi(e,t){if(ot(e,t.from)<0)return e;if(ot(e,t.to)<=0)return Di(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=Di(t).ch-t.to.ch),it(n,r)}function Li(e,t){for(var n=[],r=0;r1&&e.remove(s.line+1,h-1),e.insert(s.line+1,v)}fn(e,"change",e,t)}function ji(e,t,n){!function e(r,i,o){if(r.linked)for(var a=0;as-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(Ui(e.done),J(e.done)):e.done.length&&!J(e.done).ranges?J(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),J(e.done)):void 0}(i,i.lastOp==r)))a=J(o.changes),0==ot(t.from,t.to)&&0==ot(t.from,a.to)?a.to=Di(t):o.changes.push($i(e,t));else{var l=J(i.done);for(l&&l.ranges||Wi(e.sel,i.done),o={changes:[$i(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||be(e,"historyAdded")}function Wi(e,t){var n=J(t);n&&n.ranges&&n.equals(e)||t.push(e)}function qi(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o})}function Gi(e){if(!e)return null;for(var t,n=0;n-1&&(J(s)[d]=u[d],delete u[d])}}}return r}function Qi(e,t,n,r){if(r){var i=e.anchor;if(n){var o=ot(t,i)<0;o!=ot(n,i)<0?(i=t,t=n):o!=ot(t,n)<0&&(t=n)}return new _i(i,t)}return new _i(n||t,t)}function Xi(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),no(e,new Ti([Qi(e.sel.primary(),t,n,i)],0),r)}function Zi(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:s.to>t.ch))){if(i&&(be(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var d=l.find(r<0?1:-1),f=void 0;if((r<0?c:u)&&(d=uo(e,d,-r,d&&d.line==t.line?o:null)),d&&d.line==t.line&&(f=ot(d,n))&&(r<0?f<0:f>0))return so(e,d,t,r,i)}var p=l.find(r<0?-1:1);return(r<0?u:c)&&(p=uo(e,p,r,p.line==t.line?o:null)),p?so(e,p,t,r,i):null}}return t}function lo(e,t,n,r,i){var o=r||1;return so(e,t,n,o,i)||!i&&so(e,t,n,o,!0)||so(e,t,n,-o,i)||!i&&so(e,t,n,-o,!0)||(e.cantEdit=!0,it(e.first,0))}function uo(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?dt(e,it(t.line-1)):null:n>0&&t.ch==(r||Qe(e,t.line)).text.length?t.line0)){var c=[l,1],d=ot(u.from,s.from),f=ot(u.to,s.to);(d<0||!a.inclusiveLeft&&!d)&&c.push({from:u.from,to:s.from}),(f>0||!a.inclusiveRight&&!f)&&c.push({from:s.to,to:u.to}),i.splice.apply(i,c),l+=c.length-3}}return i}(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)ho(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else ho(e,t)}}function ho(e,t){if(1!=t.text.length||""!=t.text[0]||0!=ot(t.from,t.to)){var n=Li(e,t);Hi(e,t,n,e.cm?e.cm.curOp.id:NaN),vo(e,t,n,Dt(e,t));var r=[];ji(e,function(e,n){n||-1!=W(r,e.history)||(xo(e.history,t),r.push(e.history)),vo(e,t,null,Dt(e,t))})}}function mo(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,l="undo"==t?o.undone:o.done,u=0;u=0;--p){var h=f(p);if(h)return h.v}}}}function go(e,t){if(0!=t&&(e.first+=t,e.sel=new Ti(ee(e.sel.ranges,function(e){return new _i(it(e.anchor.line+t,e.anchor.ch),it(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){mr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.lineo&&(t={from:t.from,to:it(o,Qe(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Xe(e,t.from,t.to),n||(n=Li(e,t)),e.cm?function(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=et($t(Qe(r,o.line))),r.iter(l,a.line+1,function(e){if(e==i.maxLine)return s=!0,!0})),r.sel.contains(t.from,t.to)>-1&&xe(e),Ri(r,t,n,dr(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,function(e){var t=Kt(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0)),function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var i=Qe(e,r).stateAfter;if(i&&(!(i instanceof pt)||r+i.lookAhead1||!(this.children[0]instanceof ko))){var s=[];this.collapse(s),this.children=[new ko(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var a=i.lines.length%25+25,s=a;s10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=O("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(zt(e,t.line,t,n,o)||t.line!=n.line&&zt(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Tt=!0}o.addToHistory&&Hi(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,u=e.cm;if(e.iter(l,n.line+1,function(r){u&&o.collapsed&&!u.options.lineWrapping&&$t(r)==u.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&Je(r,0),function(e,t,n){var r=n&&window.WeakSet&&(n.markedSpans||(n.markedSpans=new WeakSet));r&&e.markedSpans&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}(r,new _t(o,l==t.line?t.ch:null,l==n.line?n.ch:null),e.cm&&e.cm.curOp),++l}),o.collapsed&&e.iter(t.line,n.line+1,function(t){Wt(e,t)&&Je(t,0)}),o.clearOnEnter&&ge(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(St=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++_o,o.atomic=!0),u){if(s&&(u.curOp.updateMaxLine=!0),o.collapsed)mr(u,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=t.line;c<=n.line;c++)gr(u,c,"text");o.atomic&&oo(u.doc),fn(u,"markerAdded",u,o)}return o}No.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Qr(e),Ee(this,"clear")){var n=this.find();n&&fn(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;oe.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&mr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&oo(e.doc)),e&&fn(e,"markerCleared",e,this,r,i),t&&Xr(e),this.parent&&this.parent.clear()}},No.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i=0;l--)po(this,r[l]);s?to(this,s):this.cm&&Fr(this.cm)}),undo:ai(function(){mo(this,"undo")}),redo:ai(function(){mo(this,"redo")}),undoSelection:ai(function(){mo(this,"undo",!0)}),redoSelection:ai(function(){mo(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=dt(this,e),t=dt(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var a=o.markedSpans;if(a)for(var s=0;s=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=o,++n}),dt(this,it(n,t))},indexFromPos:function(e){var t=(e=dt(this,e)).ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var d=e.dataTransfer.getData("Text");if(d){var f;if(t.state.draggingText&&!t.state.draggingText.copy&&(f=t.listSelections()),ro(t.doc,Ai(n,n)),f)for(var p=0;p=0;t--)yo(e.doc,"",r[t].from,r[t].to,"+delete");Fr(e)})}function ea(e,t,n){var r=ue(e.text,t+n,n);return r<0||r>e.text.length?null:r}function ta(e,t,n){var r=ea(e,t.ch,n);return null==r?null:new it(t.line,r,n<0?"after":"before")}function na(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=he(n,t.doc.direction);if(o){var a,s=i<0?J(o):o[0],l=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var u=Pn(t,n);a=i<0?n.text.length-1:0;var c=Rn(t,u,a).top;a=ce(function(e){return Rn(t,u,e).top==c},i<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=ea(n,a,1))}else a=i<0?s.to:s.from;return new it(r,a,l)}}return new it(r,i<0?n.text.length:0,i<0?"before":"after")}Wo.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"},Wo.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"},Wo.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"},Wo.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"]},Wo.default=b?Wo.macDefault:Wo.pcDefault;var ra={selectAll:co,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),G)},killLine:function(e){return Jo(e,function(t){if(t.empty()){var n=Qe(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)i=new it(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),it(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=Qe(e.doc,i.line-1).text;a&&(i=new it(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),it(i.line-1,a.length-1),i,"+transpose"))}n.push(new _i(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return ri(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r-1&&(ot((i=u.ranges[i]).from(),t)<0||t.xRel>0)&&(ot(i.to(),t)>0||t.xRel<0)?function(e,t,n,r){var i=e.display,o=!1,u=ii(e,function(t){l&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:_r(e)),ye(i.wrapper.ownerDocument,"mouseup",u),ye(i.wrapper.ownerDocument,"mousemove",c),ye(i.scroller,"dragstart",d),ye(i.scroller,"drop",u),o||(Ce(t),r.addNew||Xi(e.doc,n,null,null,r.extend),l&&!p||a&&9==s?setTimeout(function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()},20):i.input.focus())}),c=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},d=function(){return o=!0};l&&(i.scroller.draggable=!0),e.state.draggingText=u,u.copy=!r.moveOnDrag,ge(i.wrapper.ownerDocument,"mouseup",u),ge(i.wrapper.ownerDocument,"mousemove",c),ge(i.scroller,"dragstart",d),ge(i.scroller,"drop",u),e.state.delayingBlurEvent=!0,setTimeout(function(){return i.input.focus()},20),i.scroller.dragDrop&&i.scroller.dragDrop()}(e,r,t,o):function(e,t,n,r){a&&_r(e);var i=e.display,o=e.doc;Ce(t);var s,l,u=o.sel,c=u.ranges;if(r.addNew&&!r.extend?(l=o.sel.contains(n),s=l>-1?c[l]:new _i(n,n)):(s=o.sel.primary(),l=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new _i(n,n)),n=pr(e,t,!0,!0),l=-1;else{var d=ba(e,n,r.unit);s=r.extend?Qi(s,d.anchor,d.head,r.extend):d}r.addNew?-1==l?(l=c.length,no(o,Ni(e,c.concat([s]),l),{scroll:!1,origin:"*mouse"})):c.length>1&&c[l].empty()&&"char"==r.unit&&!r.extend?(no(o,Ni(e,c.slice(0,l).concat(c.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),u=o.sel):Ji(o,l,s,K):(l=0,no(o,new Ti([s],0),K),u=o.sel);var f=n,p=i.wrapper.getBoundingClientRect(),h=0;function m(t){var a=++h,c=pr(e,t,!0,"rectangle"==r.unit);if(c)if(0!=ot(c,f)){e.curOp.focus=I(j(e)),function(t){if(0!=ot(f,t))if(f=t,"rectangle"==r.unit){for(var i=[],a=e.options.tabSize,c=U(Qe(o,n.line).text,n.ch,a),d=U(Qe(o,t.line).text,t.ch,a),p=Math.min(c,d),h=Math.max(c,d),m=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=g;m++){var v=Qe(o,m).text,y=Q(v,p,a);p==h?i.push(new _i(it(m,y),it(m,y))):v.length>y&&i.push(new _i(it(m,y),it(m,Q(v,h,a))))}i.length||i.push(new _i(n,n)),no(o,Ni(e,u.ranges.slice(0,l).concat(i),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,w=s,x=ba(e,t,r.unit),E=w.anchor;ot(x.anchor,E)>0?(b=x.head,E=ut(w.from(),x.anchor)):(b=x.anchor,E=lt(w.to(),x.head));var k=u.ranges.slice(0);k[l]=function(e,t){var n=t.anchor,r=t.head,i=Qe(e.doc,n.line);if(0==ot(n,r)&&n.sticky==r.sticky)return t;var o=he(i);if(!o)return t;var a=fe(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,u=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==u||u==o.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=fe(o,r.ch,r.sticky),d=c-a||(r.ch-n.ch)*(1==s.level?-1:1);l=c==u-1||c==u?d<0:d>0}var f=o[u+(l?-1:0)],p=l==(1==f.level),h=p?f.from:f.to,m=p?"after":"before";return n.ch==h&&n.sticky==m?t:new _i(new it(n.line,h,m),r)}(e,new _i(dt(o,E),b)),no(o,Ni(e,k,l),K)}}(c);var d=Lr(i,o);(c.line>=d.to||c.linep.bottom?20:0;g&&setTimeout(ii(e,function(){h==a&&(i.scroller.scrollTop+=g,m(t))}),50)}}function g(t){e.state.selectingText=!1,h=1/0,t&&(Ce(t),i.input.focus()),ye(i.wrapper.ownerDocument,"mousemove",v),ye(i.wrapper.ownerDocument,"mouseup",y),o.history.lastSelOrigin=null}var v=ii(e,function(e){0!==e.buttons&&Ae(e)?m(e):g(e)}),y=ii(e,g);e.state.selectingText=y,ge(i.wrapper.ownerDocument,"mousemove",v),ge(i.wrapper.ownerDocument,"mouseup",y)}(e,r,t,o)}(t,r,o,e):Ne(e)==n.scroller&&Ce(e):2==i?(r&&Xi(t.doc,r),setTimeout(function(){return n.input.focus()},20)):3==i&&(C?t.display.input.onContextMenu(e):_r(t)))}}function ba(e,t,n){if("char"==n)return new _i(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new _i(it(t.line,0),dt(e.doc,it(t.line+1,0)));var r=n(e,t);return new _i(r.from,r.to)}function wa(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(c){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Ce(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!Ee(e,n))return Te(t);o-=s.top-a.viewOffset;for(var l=0;l=i)return be(e,n,e,tt(e.doc,o),e.display.gutterSpecs[l].className,t),Te(t)}}function xa(e,t){return wa(e,t,"gutterClick",!0)}function Ea(e,t){Tn(e.display,t)||function(e,t){return!!Ee(e,"gutterContextMenu")&&wa(e,t,"gutterContextMenu",!1)}(e,t)||we(e,t,"contextmenu")||C||e.display.input.onContextMenu(t)}function ka(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Hn(e)}va.prototype.compare=function(e,t,n){return this.time+400>e&&0==ot(t,this.pos)&&n==this.button};var Ca={toString:function(){return"CodeMirror.Init"}},Sa={},Ta={};function _a(e,t,n){if(!t!=!(n&&n!=Ca)){var r=e.display.dragFunctions,i=t?ge:ye;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Na(e){e.options.lineWrapping?(M(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(_(e.display.wrapper,"CodeMirror-wrap"),Yt(e)),fr(e),mr(e),Hn(e),setTimeout(function(){return Wr(e)},100)}function Aa(e,t){var n=this;if(!(this instanceof Aa))return new Aa(e,t);this.options=t=t?$(t):{},$(Sa,t,!1);var r=t.value;"string"==typeof r?r=new Mo(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Aa.inputStyles[t.inputStyle](this),o=this.display=new wi(e,r,i,t);for(var u in o.wrapper.CodeMirror=this,ka(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Kr(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 H,keySeq:null,specialChars:null},t.autofocus&&!y&&o.input.focus(),a&&s<11&&setTimeout(function(){return n.display.input.reset(!0)},20),function(e){var t=e.display;ge(t.scroller,"mousedown",ii(e,ya)),ge(t.scroller,"dblclick",a&&s<11?ii(e,function(t){if(!we(e,t)){var n=pr(e,t);if(n&&!xa(e,t)&&!Tn(e.display,t)){Ce(t);var r=e.findWordAt(n);Xi(e.doc,r.anchor,r.head)}}}):function(t){return we(e,t)||Ce(t)}),ge(t.scroller,"contextmenu",function(t){return Ea(e,t)}),ge(t.input.getField(),"contextmenu",function(n){t.scroller.contains(n.target)||Ea(e,n)});var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout(function(){return t.activeTouch=null},1e3),(r=t.activeTouch).end=+new Date)}function o(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}ge(t.scroller,"touchstart",function(i){if(!we(e,i)&&!function(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}(i)&&!xa(e,i)){t.input.ensurePolled(),clearTimeout(n);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}}),ge(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),ge(t.scroller,"touchend",function(n){var r=t.activeTouch;if(r&&!Tn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var a,s=e.coordsChar(t.activeTouch,"page");a=!r.prev||o(r,r.prev)?new _i(s,s):!r.prev.prev||o(r,r.prev.prev)?e.findWordAt(s):new _i(it(s.line,0),dt(e.doc,it(s.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),Ce(n)}i()}),ge(t.scroller,"touchcancel",i),ge(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Vr(e,t.scroller.scrollTop),zr(e,t.scroller.scrollLeft,!0),be(e,"scroll",e))}),ge(t.scroller,"mousewheel",function(t){return Si(e,t)}),ge(t.scroller,"DOMMouseScroll",function(t){return Si(e,t)}),ge(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(t){we(e,t)||_e(t)},over:function(t){we(e,t)||(function(e,t){var n=pr(e,t);if(n){var r=document.createDocumentFragment();Er(e,n,r),e.display.dragCursor||(e.display.dragCursor=D("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),A(e.display.dragCursor,r)}}(e,t),_e(t))},start:function(t){return function(e,t){if(a&&(!e.state.draggingText||+new Date-Fo<100))_e(t);else if(!we(e,t)&&!Tn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!p)){var n=D("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",f&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),f&&n.parentNode.removeChild(n)}}(e,t)},drop:ii(e,Po),leave:function(t){we(e,t)||Ro(e)}};var l=t.input.getField();ge(l,"keyup",function(t){return pa.call(e,t)}),ge(l,"keydown",ii(e,fa)),ge(l,"keypress",ii(e,ha)),ge(l,"focus",function(t){return Nr(e,t)}),ge(l,"blur",function(t){return Ar(e,t)})}(this),function(){var e;Vo||(ge(window,"resize",function(){null==e&&(e=setTimeout(function(){e=null,jo(Bo)},100))}),ge(window,"blur",function(){return jo(Ar)}),Vo=!0)}(),Qr(this),this.curOp.forceUpdate=!0,Vi(this,r),t.autofocus&&!y||this.hasFocus()?setTimeout(function(){n.hasFocus()&&!n.state.focused&&Nr(n)},20):Ar(this),Ta)Ta.hasOwnProperty(u)&&Ta[u](this,t[u],Ca);gi(this),t.finishInit&&t.finishInit(this);for(var c=0;c150)){if(!r)return;n="prev"}}else u=0,n="not";"prev"==n?u=t>o.first?U(Qe(o,t-1).text,null,a):0:"add"==n?u=l+e.options.indentUnit:"subtract"==n?u=l-e.options.indentUnit:"number"==typeof n&&(u=l+n),u=Math.max(0,u);var d="",f=0;if(e.options.indentWithTabs)for(var p=Math.floor(u/a);p;--p)f+=a,d+="\t";if(fa,l=Fe(t),u=null;if(s&&r.ranges.length>1)if(La&&La.text.join("\n")==t){if(r.ranges.length%La.text.length==0){u=[];for(var c=0;c=0;f--){var p=r.ranges[f],h=p.from(),m=p.to();p.empty()&&(n&&n>0?h=it(h.line,h.ch-n):e.state.overwrite&&!s?m=it(m.line,Math.min(Qe(o,m.line).text.length,m.ch+J(l).length)):s&&La&&La.lineWise&&La.text.join("\n")==l.join("\n")&&(h=m=it(h.line,0)));var g={from:h,to:m,text:u?u[f%u.length]:l,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};po(e.doc,g),fn(e,"inputRead",e,g)}t&&!s&&Pa(e,t),Fr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=d),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Fa(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||!t.hasFocus()||ri(t,function(){return Ma(t,n,0,null,"paste")}),!0}function Pa(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s-1){a=Oa(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Qe(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Oa(e,i.head.line,"smart"));a&&fn(e,"electricInput",e,i.head.line)}}}function Ra(e){for(var t=[],n=[],r=0;r0?0:-1));if(isNaN(c))a=null;else{var d=n>0?c>=55296&&c<56320:c>=56320&&c<57343;a=new it(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(d?2:1))),-n)}}else a=i?function(e,t,n,r){var i=he(t,e.doc.direction);if(!i)return ta(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=fe(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from=a.from&&f>=c.begin)){var p=d?"before":"after";return new it(n.line,f,p)}}var h=function(e,t,r){for(var o=function(e,t){return t?new it(n.line,l(e,1),"before"):new it(n.line,e,"after")};e>=0&&e0==(1!=a.level),u=s?r.begin:l(r.end,-1);if(a.from<=u&&u0?c.end:l(c.begin,-1);return null==g||r>0&&g==t.text.length||!(m=h(r>0?0:i.length-1,r,u(g)))?null:m}(e.cm,s,t,n):ta(s,t,n);if(null==a){if(o||(u=t.line+l)=e.first+e.size||(t=new it(u,t.ch,t.sticky),!(s=Qe(e,u))))return!1;t=na(i,e.cm,s,t.line,l)}else t=a;return!0}if("char"==r||"codepoint"==r)u();else if("column"==r)u(!0);else if("word"==r||"group"==r)for(var c=null,d="group"==r,f=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;!(n<0)||u(!p);p=!1){var h=s.text.charAt(t.ch)||"\n",m=oe(h,f)?"w":d&&"\n"==h?"n":!d||/\s/.test(h)?null:"p";if(!d||p||m||(m="s"),c&&c!=m){n<0&&(n=1,u(),t.sticky="after");break}if(m&&(c=m),n>0&&!u(!p))break}var g=lo(e,t,o,a,!0);return at(o,g)&&(g.hitSide=!0),g}function za(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,B(e).innerHeight||a(e).documentElement.clientHeight),u=Math.max(l-.5*sr(e.display),3);i=(n>0?t.bottom:t.top)+n*u}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=er(e,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var $a=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new H,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Ua(e,t){var n=Fn(e,t.line);if(!n||n.hidden)return null;var r=Qe(e.doc,t.line),i=In(n,r,t.line),o=he(r,e.doc.direction),a="left";o&&(a=fe(o,t.ch)%2?"right":"left");var s=Bn(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function Ha(e,t){return t&&(e.bad=!0),e}function Wa(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return Ha(e.clipPos(it(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i=t.display.viewTo||o.line=t.display.viewFrom&&Ua(t,i)||{node:l[0].measure.map[2],offset:0},c=o.liner.firstLine()&&(a=it(a.line-1,Qe(r.doc,a.line-1).length)),s.ch==Qe(r.doc,s.line).text.length&&s.linei.viewTo-1)return!1;a.line==i.viewFrom||0==(e=hr(r,a.line))?(t=et(i.view[0].line),n=i.view[0].node):(t=et(i.view[e].line),n=i.view[e-1].node.nextSibling);var l,u,c=hr(r,s.line);if(c==i.view.length-1?(l=i.viewTo-1,u=i.lineDiv.lastChild):(l=et(i.view[c+1].line)-1,u=i.view[c+1].node.previousSibling),!n)return!1;for(var d=r.doc.splitLines(function(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator(),l=!1;function u(){a&&(o+=s,l&&(o+=s),a=l=!1)}function c(e){e&&(u(),o+=e)}function d(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void c(n);var o,f=t.getAttribute("cm-marker");if(f){var p=e.findMarks(it(r,0),it(i+1,0),function(e){return function(t){return t.id==e}}(+f));return void(p.length&&(o=p[0].find(0))&&c(Xe(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var h=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;h&&u();for(var m=0;m1&&f.length>1;)if(J(d)==J(f))d.pop(),f.pop(),l--;else{if(d[0]!=f[0])break;d.shift(),f.shift(),t++}for(var p=0,h=0,m=d[0],g=f[0],v=Math.min(m.length,g.length);pa.ch&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)p--,h++;d[d.length-1]=y.slice(0,y.length-h).replace(/^\u200b+/,""),d[0]=d[0].slice(p).replace(/\u200b+$/,"");var x=it(t,p),E=it(l,f.length?J(f).length-h:0);return d.length>1||d[0]||ot(x,E)?(yo(r.doc,d,x,E,"+input"),!0):void 0},$a.prototype.ensurePolled=function(){this.forceCompositionEnd()},$a.prototype.reset=function(){this.forceCompositionEnd()},$a.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},$a.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},$a.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||ri(this.cm,function(){return mr(e.cm)})},$a.prototype.setUneditable=function(e){e.contentEditable="false"},$a.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||ii(this.cm,Ma)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},$a.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},$a.prototype.onContextMenu=function(){},$a.prototype.resetPosition=function(){},$a.prototype.needsContentAttribute=!0;var Ga=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new H,this.hasSelection=!1,this.composing=null,this.resetting=!1};Ga.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!we(r,e)){if(r.somethingSelected())Ia({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Ra(r);Ia({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,G):(n.prevInput="",i.value=t.text.join("\n"),P(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(i.style.width="0px"),ge(i,"input",function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),ge(i,"paste",function(e){we(r,e)||Fa(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())}),ge(i,"cut",o),ge(i,"copy",o),ge(e.scroller,"paste",function(t){if(!Tn(e,t)&&!we(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}}),ge(e.lineSpace,"selectstart",function(t){Tn(e,t)||Ce(t)}),ge(i,"compositionstart",function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}}),ge(i,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},Ga.prototype.createField=function(e){this.wrapper=Va(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;ja(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},Ga.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Ga.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=xr(e);if(e.options.moveInputWithCursor){var i=Xn(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},Ga.prototype.showSelection=function(e){var t=this.cm.display;A(t.cursorDiv,e.cursors),A(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Ga.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&P(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null));this.resetting=!1}},Ga.prototype.getField=function(){return this.textarea},Ga.prototype.supportsTouch=function(){return!1},Ga.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||I(V(this.textarea))!=this.textarea))try{this.textarea.focus()}catch(RR){}},Ga.prototype.blur=function(){this.textarea.blur()},Ga.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ga.prototype.receivedFocus=function(){this.slowPoll()},Ga.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Ga.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))})},Ga.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||Pe(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||b&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,u=Math.min(r.length,i.length);l1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ga.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ga.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},Ga.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=pr(n,e),u=r.scroller.scrollTop;if(o&&!f){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&ii(n,no)(n.doc,Ai(o),G);var c,d=i.style.cssText,p=t.wrapper.style.cssText,h=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(c=i.ownerDocument.defaultView.scrollY),r.input.focus(),l&&i.ownerDocument.defaultView.scrollTo(null,c),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=v,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&g(),C){_e(e);var m=function(){ye(window,"mouseup",m),setTimeout(v,20)};ge(window,"mouseup",m)}else setTimeout(v,50)}function g(){if(null!=i.selectionStart){var e=n.somethingSelected(),o="​"+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function v(){if(t.contextMenuPending==v&&(t.contextMenuPending=!1,t.wrapper.style.cssText=p,i.style.cssText=d,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=u),null!=i.selectionStart)){(!a||a&&s<9)&&g();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?ii(n,co)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},Ga.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},Ga.prototype.setUneditable=function(){},Ga.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=Ca&&i(e,t,n)}:i)}e.defineOption=n,e.Init=Ca,n("value","",function(e,t){return e.setValue(t)},!0),n("mode",null,function(e,t){e.doc.modeOption=t,Mi(e)},!0),n("indentUnit",2,Mi,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(e){Fi(e),Hn(e),mr(e)},!0),n("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter(function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(it(r,o))}r++});for(var i=n.length-1;i>=0;i--)yo(e.doc,t,n[i],it(n[i].line,n[i].ch+t.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Ca&&e.refresh()}),n("specialCharPlaceholder",nn,function(e){return e.refresh()},!0),n("electricChars",!0),n("inputStyle",y?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),n("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),n("autocorrect",!1,function(e,t){return e.getInputField().autocorrect=t},!0),n("autocapitalize",!1,function(e,t){return e.getInputField().autocapitalize=t},!0),n("rtlMoveVisually",!x),n("wholeLineUpdateBefore",!0),n("theme","default",function(e){ka(e),bi(e)},!0),n("keyMap","default",function(e,t,n){var r=Zo(t),i=n!=Ca&&Zo(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Na,!0),n("gutters",[],function(e,t){e.display.gutterSpecs=vi(t,e.options.lineNumbers),bi(e)},!0),n("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?cr(e.display)+"px":"0",e.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(e){return Wr(e)},!0),n("scrollbarStyle","native",function(e){Kr(e),Wr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),n("lineNumbers",!1,function(e,t){e.display.gutterSpecs=vi(e.options.gutters,t),bi(e)},!0),n("firstLineNumber",1,bi,!0),n("lineNumberFormatter",function(e){return e},bi,!0),n("showCursorWhenSelecting",!1,wr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,function(e,t){"nocursor"==t&&(Ar(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),n("screenReaderLabel",null,function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)}),n("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),n("dragDrop",!0,_a),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,wr,!0),n("singleCursorHeightPerLine",!0,wr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Fi,!0),n("addModeClass",!1,Fi,!0),n("pollInterval",100),n("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),n("historyEventDelay",1250),n("viewportMargin",10,function(e){return e.refresh()},!0),n("maxHighlightLength",1e4,Fi,!0),n("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),n("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),n("autofocus",null),n("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0),n("phrases",null)}(Aa),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){B(this).focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&ii(this,t[e])(this,n,i),be(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Zo(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;nn&&(Oa(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&Fr(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l0&&Ji(this.doc,r,new _i(o,u[r].to()),G)}}}),getTokenAt:function(e,t){return Et(this,e,t)},getLineTokens:function(e,t){return Et(this,it(e),t,!0)},getTokenTypeAt:function(e){e=dt(this.doc,e);var t,n=gt(this,Qe(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]o&&(e=o,i=!0),r=Qe(this.doc,e)}else r=e;return Kn(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-Gt(r):0)},defaultTextHeight:function(){return sr(this.display)},defaultCharWidth:function(){return lr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o,a=this.display,s=(e=Xn(this,dt(this.doc,e))).bottom,l=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),a.sizer.appendChild(t),"over"==r)s=e.top;else if("above"==r||"near"==r){var u=Math.max(a.wrapper.clientHeight,this.doc.height),c=Math.max(a.sizer.clientWidth,a.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>u)&&e.top>t.offsetHeight?s=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=u&&(s=e.bottom),l+t.offsetWidth>c&&(l=c-t.offsetWidth)}t.style.top=s+"px",t.style.left=t.style.right="","right"==i?(l=a.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?l=0:"middle"==i&&(l=(a.sizer.clientWidth-t.offsetWidth)/2),t.style.left=l+"px"),n&&(null!=(o=Ir(this,{left:l,top:s,right:l+t.offsetWidth,bottom:s+t.offsetHeight})).scrollTop&&Vr(this,o.scrollTop),null!=o.scrollLeft&&zr(this,o.scrollLeft))},triggerOnKeyDown:oi(fa),triggerOnKeyPress:oi(ha),triggerOnKeyUp:pa,triggerOnMouseDown:oi(ya),execCommand:function(e){if(ra.hasOwnProperty(e))return ra[e].call(null,this)},triggerElectric:oi(function(e){Pa(this,e)}),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=dt(this.doc,e),a=0;a0&&a(t.charAt(n-1));)--n;for(;r.5||this.options.lineWrapping)&&fr(this),be(this,"refresh",this)}),swapDoc:oi(function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Vi(this,e),Hn(this),this.display.input.reset(),Pr(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,fn(this,"swapDoc",this,t),t}),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},ke(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}(Aa);var Ka="iter insert remove copy getEditor constructor".split(" ");for(var Ya in Mo.prototype)Mo.prototype.hasOwnProperty(Ya)&&W(Ka,Ya)<0&&(Aa.prototype[Ya]=function(e){return function(){return e.apply(this.doc,arguments)}}(Mo.prototype[Ya]));return ke(Mo),Aa.inputStyles={textarea:Ga,contenteditable:$a},Aa.defineMode=function(e){Aa.defaults.mode||"null"==e||(Aa.defaults.mode=e),ze.apply(this,arguments)},Aa.defineMIME=function(e,t){Be[e]=t},Aa.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Aa.defineMIME("text/plain","null"),Aa.defineExtension=function(e,t){Aa.prototype[e]=t},Aa.defineDocExtension=function(e,t){Mo.prototype[e]=t},Aa.fromTextArea=function(e,t){if((t=t?$(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=I(V(e));t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(ge(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(RR){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(ye(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=Aa(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return s},function(e){e.off=ye,e.on=ge,e.wheelEventPixels=Ci,e.Doc=Mo,e.splitLines=Fe,e.countColumn=U,e.findColumn=Q,e.isWordChar=ie,e.Pass=q,e.signal=be,e.Line=Qt,e.changeEnd=Di,e.scrollbarModel=Gr,e.Pos=it,e.cmpPos=ot,e.modes=Ve,e.mimeModes=Be,e.resolveMode=$e,e.getMode=Ue,e.modeExtensions=He,e.extendMode=We,e.copyState=qe,e.startState=Ke,e.innerMode=Ge,e.commands=ra,e.keyMap=Wo,e.keyName=Xo,e.isModifierKey=Yo,e.lookupKey=Ko,e.normalizeKeyMap=Go,e.StringStream=Ye,e.SharedTextMarker=Do,e.TextMarker=No,e.LineWidget=So,e.e_preventDefault=Ce,e.e_stopPropagation=Se,e.e_stop=_e,e.addClass=M,e.contains=L,e.rmClass=_,e.keyNames=zo}(Aa),Aa.version="5.65.21",Aa},"object"==typeof e&&void 0!==t?t.exports=r():"function"==typeof define&&define.amd?define(r):(n=n||self).CodeMirror=r()}),Xu=s((e,t)=>{var n;n=function(e){var t="CodeMirror-hint-active";function n(e,t){if(this.cm=e,this.options=t,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var n=this;e.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}}e.showHint=function(e,t,n){if(!t)return e.showHint(n);n&&n.async&&(t.async=!0);var r={hint:t};if(n)for(var i in n)r[i]=n[i];return e.showHint(r)},e.defineExtension("showHint",function(t){t=function(e,t,n){var r=e.options.hintOptions,i={};for(var o in u)i[o]=u[o];if(r)for(var o in r)void 0!==r[o]&&(i[o]=r[o]);if(n)for(var o in n)void 0!==n[o]&&(i[o]=n[o]);return i.hint.resolve&&(i.hint=i.hint.resolve(e,t)),i}(this,this.getCursor("start"),t);var r=this.listSelections();if(!(r.length>1)){if(this.somethingSelected()){if(!t.hint.supportsSelection)return;for(var i=0;ic.clientHeight+1;if(setTimeout(function(){N=s.getScrollInfo()}),A.bottom-_>0){var O=A.bottom-A.top,L=A.top-(v.bottom-v.top)-2;_-A.topL&&(c.style.height=(O=L)+"px"),c.style.top=(b=v.top-O)-E+"px",w=!1):c.style.height=_-A.top-2+"px"}var I,M=A.right-T;if(D&&(M+=s.display.nativeBarWidth),M>0&&(A.right-A.left>T&&(c.style.width=T-5+"px",M-=A.right-A.left-T),c.style.left=(y=Math.max(v.left-M-x,0))+"px"),D)for(var F=c.firstChild;F;F=F.nextSibling)F.style.paddingRight=s.display.nativeBarWidth+"px";s.addKeyMap(this.keyMap=function(e,t){var n={Up:function(){t.moveFocus(-1)},Down:function(){t.moveFocus(1)},PageUp:function(){t.moveFocus(1-t.menuSize(),!0)},PageDown:function(){t.moveFocus(t.menuSize()-1,!0)},Home:function(){t.setFocus(0)},End:function(){t.setFocus(t.length-1)},Enter:t.pick,Tab:t.pick,Esc:t.close};/Mac/.test(navigator.platform)&&(n["Ctrl-P"]=function(){t.moveFocus(-1)},n["Ctrl-N"]=function(){t.moveFocus(1)});var r=e.options.customKeys,i=r?{}:n;function o(e,r){var o;o="string"!=typeof r?function(e){return r(e,t)}:n.hasOwnProperty(r)?n[r]:r,i[e]=o}if(r)for(var a in r)r.hasOwnProperty(a)&&o(a,r[a]);var s=e.options.extraKeys;if(s)for(var a in s)s.hasOwnProperty(a)&&o(a,s[a]);return i}(n,{moveFocus:function(e,t){i.changeActive(i.selectedHint+e,t)},setFocus:function(e){i.changeActive(e)},menuSize:function(){return i.screenAmount()},length:d.length,close:function(){n.close()},pick:function(){i.pick()},data:r})),n.options.closeOnUnfocus&&(s.on("blur",this.onBlur=function(){I=setTimeout(function(){n.close()},100)}),s.on("focus",this.onFocus=function(){clearTimeout(I)})),s.on("scroll",this.onScroll=function(){var e=s.getScrollInfo(),t=s.getWrapperElement().getBoundingClientRect();N||(N=s.getScrollInfo());var r=b+N.top-e.top,i=r-(u.pageYOffset||(l.documentElement||l.body).scrollTop);if(w||(i+=c.offsetHeight),i<=t.top||i>=t.bottom)return n.close();c.style.top=r+"px",c.style.left=y+N.left-e.left+"px"}),e.on(c,"dblclick",function(e){var t=a(c,e.target||e.srcElement);t&&null!=t.hintId&&(i.changeActive(t.hintId),i.pick())}),e.on(c,"click",function(e){var t=a(c,e.target||e.srcElement);t&&null!=t.hintId&&(i.changeActive(t.hintId),n.options.completeOnSingleClick&&i.pick())}),e.on(c,"mousedown",function(){setTimeout(function(){s.focus()},20)});var P=this.getSelectedHintRange();return 0===P.from&&0===P.to||this.scrollToActive(),e.signal(r,"select",d[this.selectedHint],c.childNodes[this.selectedHint]),!0}function l(e,t,n,r){if(e.async)e(t,r,n);else{var i=e(t,n);i&&i.then?i.then(r):r(i)}}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(t,n){var r=t.list[n],i=this;this.cm.operation(function(){r.hint?r.hint(i.cm,t,r):i.cm.replaceRange(o(r),r.from||t.from,r.to||t.to,"complete"),e.signal(t,"pick",r),i.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(i(this.debounce),this.debounce=0);var e=this.startPos;this.data&&(e=this.data.from);var t=this.cm.getCursor(),n=this.cm.getLine(t.line);if(t.line!=this.startPos.line||n.length-t.ch!=this.startLen-this.startPos.ch||t.ch=this.data.list.length?n=r?this.data.list.length-1:0:n<0&&(n=r?0:this.data.list.length-1),this.selectedHint!=n){var i=this.hints.childNodes[this.selectedHint];i&&(i.className=i.className.replace(" "+t,""),i.removeAttribute("aria-selected")),(i=this.hints.childNodes[this.selectedHint=n]).className+=" "+t,i.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",i.id),this.scrollToActive(),e.signal(this.data,"select",this.data.list[this.selectedHint],i)}},scrollToActive:function(){var e=this.getSelectedHintRange(),t=this.hints.childNodes[e.from],n=this.hints.childNodes[e.to],r=this.hints.firstChild;t.offsetTopthis.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=n.offsetTop+n.offsetHeight-this.hints.clientHeight+r.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var e=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-e),to:Math.min(this.data.list.length-1,this.selectedHint+e)}}},e.registerHelper("hint","auto",{resolve:function(t,n){var r,i=t.getHelpers(n,"hint");if(i.length){var o=function(e,t,n){var r=function(e,t){if(!e.somethingSelected())return t;for(var n=[],r=0;r0?t(e):i(o+1)})}(0)};return o.async=!0,o.supportsSelection=!0,o}return(r=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:r})}:e.hint.anyword?function(t,n){return e.hint.anyword(t,n)}:function(){}}}),e.registerHelper("hint","fromList",function(t,n){var r,i=t.getCursor(),o=t.getTokenAt(i),a=e.Pos(i.line,o.start),s=i;o.start,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};e.defineOption("hintOptions",null)},"object"==typeof e&&"object"==typeof t?n(Qu()):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}),Zu=s((e,t)=>{var n;n=function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=e.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function i(e){return e&&e.bracketRegex||/[(){}[\]]/}function o(e,t,o){var s=e.getLineHandle(t.line),l=t.ch-1,u=o&&o.afterCursor;null==u&&(u=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var c=i(o),d=!u&&l>=0&&c.test(s.text.charAt(l))&&r[s.text.charAt(l)]||c.test(s.text.charAt(l+1))&&r[s.text.charAt(++l)];if(!d)return null;var f=">"==d.charAt(1)?1:-1;if(o&&o.strict&&f>0!=(l==t.ch))return null;var p=e.getTokenTypeAt(n(t.line,l+1)),h=a(e,n(t.line,l+(f>0?1:0)),f,p,o);return null==h?null:{from:n(t.line,l),to:h&&h.pos,match:h&&h.ch==d.charAt(0),forward:f>0}}function a(e,t,o,a,s){for(var l=s&&s.maxScanLineLength||1e4,u=s&&s.maxScanLines||1e3,c=[],d=i(s),f=o>0?Math.min(t.line+u,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-u),p=t.line;p!=f;p+=o){var h=e.getLine(p);if(h){var m=o>0?0:h.length-1,g=o>0?h.length:-1;if(!(h.length>l))for(p==t.line&&(m=t.ch-(o<0?1:0));m!=g;m+=o){var v=h.charAt(m);if(d.test(v)&&(void 0===a||(e.getTokenTypeAt(n(p,m+1))||"")==(a||""))){var y=r[v];if(y&&">"==y.charAt(1)==o>0)c.push(v);else{if(!c.length)return{pos:n(p,m),ch:v};c.pop()}}}}}return p-o!=(o>0?e.lastLine():e.firstLine())&&null}function s(e,r,i){for(var a=e.state.matchBrackets.maxHighlightLineLength||1e3,s=i&&i.highlightNonMatching,l=[],u=e.listSelections(),c=0;c{var n;n=function(e){var t={pairs:"()[]{}''\"\"",closeBefore:")]}'\":;>",triples:"",explode:"[]{}"},n=e.Pos;function r(e,n){return"pairs"==n&&"string"==typeof e?e:"object"==typeof e&&null!=e[n]?e[n]:t[n]}e.defineOption("autoCloseBrackets",!1,function(t,n,a){a&&a!=e.Init&&(t.removeKeyMap(i),t.state.closeBrackets=null),n&&(o(r(n,"pairs")),t.state.closeBrackets=n,t.addKeyMap(i))});var i={Backspace:function(t){var i=s(t);if(!i||t.getOption("disableInput"))return e.Pass;for(var o=r(i,"pairs"),a=t.listSelections(),l=0;l=0;l--){var d=a[l].head;t.replaceRange("",n(d.line,d.ch-1),n(d.line,d.ch+1),"+delete")}},Enter:function(t){var n=s(t),i=n&&r(n,"explode");if(!i||t.getOption("disableInput"))return e.Pass;for(var o=t.listSelections(),a=0;a1&&h.indexOf(i)>=0&&t.getRange(n(x.line,x.ch-2),x)==i+i){if(x.ch>2&&/\bstring/.test(t.getTokenTypeAt(n(x.line,x.ch-2))))return e.Pass;b="addFour"}else if(m){var k=0==x.ch?" ":t.getRange(n(x.line,x.ch-1),x);if(e.isWordChar(E)||k==i||e.isWordChar(k))return e.Pass;b="both"}else{if(!v||!(0===E.length||/\s/.test(E)||p.indexOf(E)>-1))return e.Pass;b="both"}else b=m&&d(t,x)?"both":h.indexOf(i)>=0&&t.getRange(x,n(x.line,x.ch+3))==i+i+i?"skipThree":"skip";if(f){if(f!=b)return e.Pass}else f=b}var C=c%2?a.charAt(c-1):i,S=c%2?i:a.charAt(c+1);t.operation(function(){if("skip"==f)l(t,1);else if("skipThree"==f)l(t,3);else if("surround"==f){for(var e=t.getSelections(),n=0;n0?{line:a.head.line,ch:a.head.ch+t}:{line:a.head.line-1};n.push({anchor:s,head:s})}e.setSelections(n,i)}function u(t){var r=e.cmpPos(t.anchor,t.head)>0;return{anchor:new n(t.anchor.line,t.anchor.ch+(r?-1:1)),head:new n(t.head.line,t.head.ch+(r?1:-1))}}function c(e,t){var r=e.getRange(n(t.line,t.ch-1),n(t.line,t.ch+1));return 2==r.length?r:null}function d(e,t){var r=e.getTokenAt(n(t.line,t.ch+1));return/\bstring/.test(r.type)&&r.start==t.ch&&(0==t.ch||!/\bstring/.test(e.getTokenTypeAt(t)))}o(t.pairs+"`")},"object"==typeof e&&"object"==typeof t?n(Qu()):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}),ec=s((e,t)=>{var n;n=function(e){function t(t){return function(n,r){var i=r.line,o=n.getLine(i);function a(t){for(var a,s=r.ch,l=0;;){var u=s<=0?-1:o.lastIndexOf(t[0],s-1);if(-1!=u){if(1==l&&ut.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));if(/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"keyword"!=r.type||"import"!=r.string)return null;for(var i=n,o=Math.min(t.lastLine(),n+10);i<=o;++i){var a=t.getLine(i).indexOf(";");if(-1!=a)return{startCh:r.end,end:e.Pos(i,a)}}}var i,o=n.line,a=r(o);if(!a||r(o-1)||(i=r(o-2))&&i.end.line==o-1)return null;for(var s=a.end;;){var l=r(s.line+1);if(null==l)break;s=l.end}return{from:t.clipPos(e.Pos(o,a.startCh+1)),to:s}}),e.registerHelper("fold","include",function(t,n){function r(n){if(nt.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));return/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"meta"==r.type&&"#include"==r.string.slice(0,8)?r.start+8:void 0}var i=n.line,o=r(i);if(null==o||null!=r(i-1))return null;for(var a=i;null!=r(a+1);)++a;return{from:e.Pos(i,o+1),to:t.clipPos(e.Pos(a))}})},"object"==typeof e&&"object"==typeof t?n(Qu()):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}),tc=s((e,t)=>{var n;n=function(e){function t(t,n,i,o){if(i&&i.call){var a=i;i=null}else a=r(t,i,"rangeFinder");"number"==typeof n&&(n=e.Pos(n,0));var s=r(t,i,"minFoldSize");function l(e){var r=a(t,n);if(!r||r.to.line-r.from.linet.firstLine();)n=e.Pos(n.line-1,0),u=l(!1);if(u&&!u.cleared&&"unfold"!==o){var c=function(e,t,n){var i=r(e,t,"widget");if("function"==typeof i&&(i=i(n.from,n.to)),"string"==typeof i){var o=document.createTextNode(i);(i=document.createElement("span")).appendChild(o),i.className="CodeMirror-foldmarker"}else i&&(i=i.cloneNode(!0));return i}(t,i,u);e.on(c,"mousedown",function(t){d.clear(),e.e_preventDefault(t)});var d=t.markText(u.from,u.to,{replacedWith:c,clearOnEnter:r(t,i,"clearOnEnter"),__isFold:!0});d.on("clear",function(n,r){e.signal(t,"unfold",t,n,r)}),e.signal(t,"fold",t,u.from,u.to)}}e.newFoldFunction=function(e,n){return function(r,i){t(r,i,{rangeFinder:e,widget:n})}},e.defineExtension("foldCode",function(e,n,r){t(this,e,n,r)}),e.defineExtension("isFolded",function(e){for(var t=this.findMarksAt(e),n=0;n{var n;n=function(e){e.defineOption("foldGutter",!1,function(t,r,i){var o;i&&i!=e.Init&&(t.clearGutter(t.state.foldGutter.options.gutter),t.state.foldGutter=null,t.off("gutterClick",l),t.off("changes",c),t.off("viewportChange",d),t.off("fold",f),t.off("unfold",f),t.off("swapDoc",c),t.off("optionChange",u)),r&&(t.state.foldGutter=new n((!0===(o=r)&&(o={}),null==o.gutter&&(o.gutter="CodeMirror-foldgutter"),null==o.indicatorOpen&&(o.indicatorOpen="CodeMirror-foldgutter-open"),null==o.indicatorFolded&&(o.indicatorFolded="CodeMirror-foldgutter-folded"),o)),s(t),t.on("gutterClick",l),t.on("changes",c),t.on("viewportChange",d),t.on("fold",f),t.on("unfold",f),t.on("swapDoc",c),t.on("optionChange",u))});var t=e.Pos;function n(e){this.options=e,this.from=this.to=0}function r(e,n){for(var r=e.findMarks(t(n,0),t(n+1,0)),i=0;i=u){if(f&&a&&f.test(a.className))return;o=i(s.indicatorOpen)}}(o||a)&&e.setGutterMarker(n,s.gutter,o)})}function a(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function s(e){var t=e.getViewport(),n=e.state.foldGutter;n&&(e.operation(function(){o(e,t.from,t.to)}),n.from=t.from,n.to=t.to)}function l(e,n,i){var o=e.state.foldGutter;if(o){var a=o.options;if(i==a.gutter){var s=r(e,n);s?s.clear():e.foldCode(t(n,0),a)}}}function u(e,t){"mode"==t&&c(e)}function c(e){var t=e.state.foldGutter;if(t){var n=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){s(e)},n.foldOnChangeTimeSpan||600)}}function d(e){var t=e.state.foldGutter;if(t){var n=t.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){var n=e.getViewport();t.from==t.to||n.from-t.to>20||t.from-n.to>20?s(e):e.operation(function(){n.fromt.to&&(o(e,t.to,n.to),t.to=n.to)})},n.updateViewportTimeSpan||400)}}function f(e,t){var n=e.state.foldGutter;if(n){var r=t.line;r>=n.from&&r{var n;n=function(e){var t="CodeMirror-lint-markers";function n(e){e.parentNode&&e.parentNode.removeChild(e)}function r(t,r,i,o){var a=function(t,n,r){var i=document.createElement("div");function o(t){if(!i.parentNode)return e.off(document,"mousemove",o);var n=Math.max(0,t.clientY-i.offsetHeight-5),r=Math.max(0,Math.min(t.clientX+5,i.ownerDocument.defaultView.innerWidth-i.offsetWidth));i.style.top=n+"px",i.style.left=r+"px"}return i.className="CodeMirror-lint-tooltip cm-s-"+t.options.theme,i.appendChild(r.cloneNode(!0)),t.state.lint.options.selfContain?t.getWrapperElement().appendChild(i):document.body.appendChild(i),e.on(document,"mousemove",o),o(n),null!=i.style.opacity&&(i.style.opacity=1),i}(t,r,i);function s(){var t;e.off(o,"mouseout",s),a&&((t=a).parentNode&&(null==t.style.opacity&&n(t),t.style.opacity=0,setTimeout(function(){n(t)},600)),a=null)}var l=setInterval(function(){if(a)for(var e=o;;e=e.parentNode){if(e&&11==e.nodeType&&(e=e.host),e==document.body)return;if(!e){s();break}}if(!a)return clearInterval(l)},400);e.on(o,"mouseout",s)}function i(e,t,n){for(var i in this.marked=[],t instanceof Function&&(t={getAnnotations:t}),t&&!0!==t||(t={}),this.options={},this.linterOptions=t.options||{},o)this.options[i]=o[i];for(var i in t)o.hasOwnProperty(i)?null!=t[i]&&(this.options[i]=t[i]):t.options||(this.linterOptions[i]=t[i]);this.timeout=null,this.hasGutter=n,this.onMouseOver=function(t){!function(e,t){var n=t.target||t.srcElement;if(/\bCodeMirror-lint-mark-/.test(n.className)){for(var i=n.getBoundingClientRect(),o=(i.left+i.right)/2,a=(i.top+i.bottom)/2,s=e.findMarksAt(e.coordsChar({left:o,top:a},"client")),l=[],c=0;c1,i.tooltips)),i.highlightLines&&e.addLineClass(c,"wrap","CodeMirror-lint-line-"+f)}}i.onUpdateLinting&&i.onUpdateLinting(n,o,e)}}function f(e){var t=e.state.lint;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(function(){c(e)},t.options.delay))}e.defineOption("lint",!1,function(n,r,o){if(o&&o!=e.Init&&(a(n),!1!==n.state.lint.options.lintOnChange&&n.off("change",f),e.off(n.getWrapperElement(),"mouseover",n.state.lint.onMouseOver),clearTimeout(n.state.lint.timeout),delete n.state.lint),r){for(var s=n.getOption("gutters"),l=!1,u=0;u{var n;n=function(e){var t,n,r=e.Pos;function i(e,t){for(var n=function(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}(e),r=n,i=0;ic);d++){var f=e.getLine(u++);s=null==s?f:s+"\n"+f}l*=2,t.lastIndex=n.ch;var p=t.exec(s);if(p){var h=s.slice(0,p.index).split("\n"),m=p[0].split("\n"),g=n.line+h.length-1,v=h[h.length-1].length;return{from:r(g,v),to:r(g+m.length-1,1==m.length?v+m[0].length:m[m.length-1].length),match:p}}}}function l(e,t,n){for(var r,i=0;i<=e.length;){t.lastIndex=i;var o=t.exec(e);if(!o)break;var a=o.index+o[0].length;if(a>e.length-n)break;(!r||a>r.index+r[0].length)&&(r=o),i=o.index+1}return r}function u(e,t,n){t=i(t,"g");for(var o=n.line,a=n.ch,s=e.firstLine();o>=s;o--,a=-1){var u=e.getLine(o),c=l(u,t,a<0?0:u.length-a);if(c)return{from:r(o,c.index),to:r(o,c.index+c[0].length),match:c}}}function c(e,t,n){if(!o(t))return u(e,t,n);t=i(t,"gm");for(var a,s=1,c=e.getLine(n.line).length-n.ch,d=n.line,f=e.firstLine();d>=f;){for(var p=0;p=f;p++){var h=e.getLine(d--);a=null==a?h:h+"\n"+a}s*=2;var m=l(a,t,c);if(m){var g=a.slice(0,m.index).split("\n"),v=m[0].split("\n"),y=d+g.length,b=g[g.length-1].length;return{from:r(y,b),to:r(y+v.length-1,1==v.length?b+v[0].length:v[v.length-1].length),match:m}}}}function d(e,t,n,r){if(e.length==t.length)return n;for(var i=0,o=n+Math.max(0,e.length-t.length);;){if(i==o)return i;var a=i+o>>1,s=r(e.slice(0,a)).length;if(s==n)return a;s>n?o=a:i=a+1}}function f(e,i,o,a){if(!i.length)return null;var s=a?t:n,l=s(i).split(/\r|\n\r?/);e:for(var u=o.line,c=o.ch,f=e.lastLine()+1-l.length;u<=f;u++,c=0){var p=e.getLine(u).slice(c),h=s(p);if(1==l.length){var m=h.indexOf(l[0]);if(-1==m)continue e;return o=d(p,h,m,s)+c,{from:r(u,d(p,h,m,s)+c),to:r(u,d(p,h,m+l[0].length,s)+c)}}var g=h.length-l[0].length;if(h.slice(g)==l[0]){for(var v=1;v=f;u--,c=-1){var p=e.getLine(u);c>-1&&(p=p.slice(0,c));var h=s(p);if(1==l.length){var m=h.lastIndexOf(l[0]);if(-1==m)continue e;return{from:r(u,d(p,h,m,s)),to:r(u,d(p,h,m+l[0].length,s))}}var g=l[l.length-1];if(h.slice(0,g.length)==g){var v=1;for(o=u-l.length+1;v(this.doc.getLine(n.line)||"").length&&(n.ch=0,n.line++)),0!=e.cmpPos(n,this.doc.clipPos(n))))return this.atOccurrence=!1;var i=this.matches(t,n);if(this.afterEmptyMatch=i&&0==e.cmpPos(i.from,i.to),i)return this.pos=i,this.atOccurrence=!0,this.pos.match||!0;var o=r(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:o,to:o},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,n){if(this.atOccurrence){var i=e.splitLines(t);this.doc.replaceRange(i,this.pos.from,this.pos.to,n),this.pos.to=r(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",function(e,t,n){return new h(this.doc,e,t,n)}),e.defineDocExtension("getSearchCursor",function(e,t,n){return new h(this,e,t,n)}),e.defineExtension("selectMatches",function(t,n){for(var r=[],i=this.getSearchCursor(t,this.getCursor("from"),n);i.findNext()&&!(e.cmpPos(i.to(),this.getCursor("to"))>0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)})},"object"==typeof e&&"object"==typeof t?n(Qu()):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}),oc=s((e,t)=>{var n;n=function(e){function t(t,n,r){var i=t.getWrapperElement(),o=i.appendChild(document.createElement("div"));return o.className=r?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof n?o.innerHTML=n:o.appendChild(n),e.addClass(i,"dialog-opened"),o}function n(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}e.defineExtension("openDialog",function(r,i,o){o||(o={}),n(this,null);var a=t(this,r,o.bottom),s=!1,l=this;function u(t){if("string"==typeof t)d.value=t;else{if(s)return;s=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),l.focus(),o.onClose&&o.onClose(a)}}var c,d=a.getElementsByTagName("input")[0];return d?(d.focus(),o.value&&(d.value=o.value,!1!==o.selectValueOnOpen&&d.select()),o.onInput&&e.on(d,"input",function(e){o.onInput(e,d.value,u)}),o.onKeyUp&&e.on(d,"keyup",function(e){o.onKeyUp(e,d.value,u)}),e.on(d,"keydown",function(t){o&&o.onKeyDown&&o.onKeyDown(t,d.value,u)||((27==t.keyCode||!1!==o.closeOnEnter&&13==t.keyCode)&&(d.blur(),e.e_stop(t),u()),13==t.keyCode&&i(d.value,t))}),!1!==o.closeOnBlur&&e.on(a,"focusout",function(e){null!==e.relatedTarget&&u()})):(c=a.getElementsByTagName("button")[0])&&(e.on(c,"click",function(){u(),l.focus()}),!1!==o.closeOnBlur&&e.on(c,"blur",u),c.focus()),u}),e.defineExtension("openConfirm",function(r,i,o){n(this,null);var a=t(this,r,o&&o.bottom),s=a.getElementsByTagName("button"),l=!1,u=this,c=1;function d(){l||(l=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),u.focus())}s[0].focus();for(var f=0;f{var n;n=function(e){function t(e,t){var n=Number(t);return/^[-+]/.test(t)?e.getCursor().line+n:n-1}e.defineOption("search",{bottom:!1}),e.commands.jumpToLine=function(e){var n=e.getCursor();!function(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0,bottom:e.options.search.bottom}):i(prompt(n,r))}(e,function(e){return e.phrase("Jump to line:")+' '+e.phrase("(Use line:column or scroll% syntax)")+""}(e),e.phrase("Jump to line:"),n.line+1+":"+n.ch,function(r){var i;if(r)if(i=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(r))e.setCursor(t(e,i[1]),Number(i[2]));else if(i=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(r)){var o=Math.round(e.lineCount()*Number(i[1])/100);/^[-+]/.test(i[1])&&(o=n.line+o+1),e.setCursor(o-1,n.ch)}else(i=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(r))&&e.setCursor(t(e,i[1]),n.ch)})},e.keyMap.default["Alt-G"]="jumpToLine"},"object"==typeof e&&"object"==typeof t?n(Qu(),oc()):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../dialog/dialog"],n):n(CodeMirror)}),sc=s((e,t)=>{var n;n=function(e){var t=e.commands,n=e.Pos;function r(t,r){t.extendSelectionsBy(function(i){return t.display.shift||t.doc.extend||i.empty()?function(t,r,i){if(i<0&&0==r.ch)return t.clipPos(n(r.line-1));var o=t.getLine(r.line);if(i>0&&r.ch>=o.length)return t.clipPos(n(r.line+1,0));for(var a,s="start",l=r.ch,u=l,c=i<0?0:o.length,d=0;u!=c;u+=i,d++){var f=o.charAt(i<0?u-1:u),p="_"!=f&&e.isWordChar(f)?"w":"o";if("w"==p&&f.toUpperCase()==f&&(p="W"),"start"==s)"o"!=p?(s="in",a=p):l=u+i;else if("in"==s&&a!=p){if("w"==a&&"W"==p&&i<0&&u--,"W"==a&&"w"==p&&i>0){if(u==l+1){a="w";continue}u--}break}}return n(r.line,u)}(t.doc,i.head,r):r<0?i.from():i.to()})}function i(t,r){if(t.isReadOnly())return e.Pass;t.operation(function(){for(var e=t.listSelections().length,i=[],o=-1,a=0;a=n&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},t.scrollLineDown=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=n&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},t.splitSelectionByLine=function(e){for(var t=e.listSelections(),r=[],i=0;io.line&&s==a.line&&0==a.ch||r.push({anchor:s==o.line?o:n(s,0),head:s==a.line?a:n(s)});e.setSelections(r,0)},t.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},t.selectLine=function(e){for(var t=e.listSelections(),r=[],i=0;i=0;s--){var u=r[i[s]];if(!(l&&e.cmpPos(u.head,l)>0)){var c=o(t,u.head);l=c.from,t.replaceRange(n(c.word),c.from,c.to)}}})}function f(t){var n=t.getCursor("from"),r=t.getCursor("to");if(0==e.cmpPos(n,r)){var i=o(t,n);if(!i.word)return;n=i.from,r=i.to}return{from:n,to:r,query:t.getRange(n,r),word:i}}function p(e,t){var r=f(e);if(r){var i=r.query,o=e.getSearchCursor(i,t?r.to:r.from);(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):(o=e.getSearchCursor(i,t?n(e.firstLine(),0):e.clipPos(n(e.lastLine()))),(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):r.word&&e.setSelection(r.from,r.to))}}t.selectScope=function(e){l(e)||e.execCommand("selectAll")},t.selectBetweenBrackets=function(t){if(!l(t))return e.Pass},t.goToBracket=function(t){t.extendSelectionsBy(function(r){var i=t.scanForBracket(r.head,1,u(t.getTokenTypeAt(r.head)));if(i&&0!=e.cmpPos(i.pos,r.head))return i.pos;var o=t.scanForBracket(r.head,-1,u(t.getTokenTypeAt(n(r.head.line,r.head.ch+1))));return o&&n(o.pos.line,o.pos.ch+1)||r.head})},t.swapLineUp=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.firstLine()-1,a=[],s=0;so?i.push(u,c):i.length&&(i[i.length-1]=c),o=c}t.operation(function(){for(var e=0;et.lastLine()?t.replaceRange("\n"+s,n(t.lastLine()),null,"+swapLine"):t.replaceRange(s+"\n",n(o,0),null,"+swapLine")}t.setSelections(a),t.scrollIntoView()})},t.swapLineDown=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.lastLine()+1,a=r.length-1;a>=0;a--){var s=r[a],l=s.to().line+1,u=s.from().line;0!=s.to().ch||s.empty()||l--,l=0;e-=2){var r=i[e],o=i[e+1],a=t.getLine(r);r==t.lastLine()?t.replaceRange("",n(r-1),n(r),"+swapLine"):t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),t.replaceRange(a+"\n",n(o,0),null,"+swapLine")}t.scrollIntoView()})},t.toggleCommentIndented=function(e){e.toggleComment({indent:!0})},t.joinLines=function(e){for(var t=e.listSelections(),r=[],i=0;i=0;o--){var a=r[o].head,s=t.getRange({line:a.line,ch:0},a),l=e.countColumn(s,null,t.getOption("tabSize")),u=t.findPosH(a,-1,"char",!1);if(s&&!/\S/.test(s)&&l%i==0){var c=new n(a.line,e.findColumn(s,l-i,i));c.ch!=a.ch&&(u=c)}t.replaceRange("",u,a,"+delete")}})},t.delLineRight=function(e){e.operation(function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange("",t[r].anchor,n(t[r].to().line),"+delete");e.scrollIntoView()})},t.upcaseAtCursor=function(e){d(e,function(e){return e.toUpperCase()})},t.downcaseAtCursor=function(e){d(e,function(e){return e.toLowerCase()})},t.setSublimeMark=function(e){e.state.sublimeMark&&e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor())},t.selectToSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&e.setSelection(e.getCursor(),t)},t.deleteToSublimeMark=function(t){var n=t.state.sublimeMark&&t.state.sublimeMark.find();if(n){var r=t.getCursor(),i=n;if(e.cmpPos(r,i)>0){var o=i;i=r,r=o}t.state.sublimeKilled=t.getRange(r,i),t.replaceRange("",r,i)}},t.swapWithSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&(e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor()),e.setCursor(t))},t.sublimeYank=function(e){null!=e.state.sublimeKilled&&e.replaceSelection(e.state.sublimeKilled,null,"paste")},t.showInCenter=function(e){var t=e.cursorCoords(null,"local");e.scrollTo(null,(t.top+t.bottom)/2-e.getScrollInfo().clientHeight/2)},t.findUnder=function(e){p(e,!0)},t.findUnderPrevious=function(e){p(e,!1)},t.findAllUnder=function(e){var t=f(e);if(t){for(var n=e.getSearchCursor(t.query),r=[],i=-1;n.findNext();)r.push({anchor:n.from(),head:n.to()}),n.from().line<=t.from.line&&n.from().ch<=t.from.ch&&i++;e.setSelections(r,i)}};var h=e.keyMap;h.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Shift-F5":"reverseSortLines","Cmd-F5":"sortLinesInsensitive","Shift-Cmd-F5":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},e.normalizeKeyMap(h.macSublime),h.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Shift-F9":"reverseSortLines","Ctrl-F9":"sortLinesInsensitive","Shift-Ctrl-F9":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},e.normalizeKeyMap(h.pcSublime),h.sublime=h.default==h.macDefault?h.macSublime:h.pcSublime},"object"==typeof e&&"object"==typeof t?n(Qu(),ic(),Zu()):"function"==typeof define&&define.amd?define(["../lib/codemirror","../addon/search/searchcursor","../addon/edit/matchbrackets"],n):n(CodeMirror)}),lc="graphiql",uc="sublime",cc={[Yu?"Cmd-F":"Ctrl-F"]:"findPersistent","Cmd-G":"findPersistent","Ctrl-G":"findPersistent","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight"};async function dc(e,t){const n=await ga(()=>Promise.resolve().then(()=>c(Qu())).then(e=>"function"==typeof e?e:e.default),void 0,import.meta.url);return await Promise.all(!1===(null==t?void 0:t.useCommonAddons)?e:[ga(()=>Promise.resolve().then(()=>c(Xu())),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>c(Zu())),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>c(Ju())),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>c(ec())),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>c(nc())),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>c(rc())),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>c(ic())),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>c(ac())),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>c(oc())),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>c(sc())),void 0,import.meta.url),...e]),n}var fc=s((e,t)=>{t.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r{var n=fc(),r={"text/plain":"Text","text/html":"Url",default:"Text"};t.exports=function(e,t){var i,o,a,s,l,u=!1;t||(t={}),t.debug;try{if(o=n(),a=document.createRange(),s=document.getSelection(),(l=document.createElement("span")).textContent=e,l.ariaHidden="true",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(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),void 0===n.clipboardData){window.clipboardData.clearData();var i=r[t.format]||r.default;window.clipboardData.setData(i,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(l),a.selectNodeContents(l),s.addRange(a),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(c){try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(c){i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{s&&("function"==typeof s.removeRange?s.removeRange(a):s.removeAllRanges()),l&&document.body.removeChild(l),o()}return u}}),hc=Vu((e,t)=>({plugins:[],visiblePlugin:null,referencePlugin:void 0,setVisiblePlugin(n){const{plugins:r,onTogglePluginVisibility:i}=t(),o="string"==typeof n,a=n&&r.find(e=>(o?e.title:e)===n)||null;e(({visiblePlugin:e})=>a===e?{visiblePlugin:e}:(null==i||i(a),{visiblePlugin:a}))}})),mc=e=>{const t=(0,$u.c)(8),{onTogglePluginVisibility:n,children:r,visiblePlugin:i,plugins:o,referencePlugin:a}=e;let s;t[0]!==o?(s=void 0===o?[]:o,t[0]=o,t[1]=s):s=t[1];const l=s;let u,c;return t[2]!==n||t[3]!==l||t[4]!==a||t[5]!==i?(u=()=>{const e=new Set;for(const{title:t}of l){if("string"!=typeof t||!t)throw new Error("All GraphiQL plugins must have a unique title");if(e.has(t))throw new Error(`All GraphiQL plugins must have a unique title, found two plugins with the title '${t}'`);e.add(t)}hc.setState({plugins:l,onTogglePluginVisibility:n,referencePlugin:a}),hc.getState().setVisiblePlugin(null!=i?i:null)},c=[l,n,a,i],t[2]=n,t[3]=l,t[4]=a,t[5]=i,t[6]=u,t[7]=c):(u=t[6],c=t[7]),(0,Fu.useEffect)(u,c),r},gc=zu(hc);ha();var vc=Vu((e,t)=>({inputValueDeprecation:null,introspectionQueryName:null,schemaDescription:null,fetcher:null,onSchemaChange:void 0,fetchError:null,isFetching:!1,schema:null,validationErrors:[],schemaReference:null,setSchemaReference(t){e({schemaReference:t})},requestCounter:0,shouldIntrospect:!0,async introspect(){const{requestCounter:n,fetcher:r,onSchemaChange:i,shouldIntrospect:o,headerEditor:a,...s}=t();if(!o)return;const l=n+1;e({requestCounter:l});try{const n=function(e){let t=null,n=!0;try{e&&(t=JSON.parse(e))}catch(r){n=!1}return{headers:t,isValidJSON:n}}(null==a?void 0:a.getValue());if(!n.isValidJSON)return void e({fetchError:"Introspection failed as headers are invalid."});const o=n.headers?{headers:n.headers}:{},{introspectionQuery:u,introspectionQueryName:c,introspectionQuerySansSubscriptions:d}=function({inputValueDeprecation:e,introspectionQueryName:t,schemaDescription:n}){const r=function(e){const t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...e},n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"";function i(e){return t.inputValueDeprecation?e:""}const o=t.oneOf?"isOneOf":"";return`\n query IntrospectionQuery {\n __schema {\n ${t.schemaDescription?n:""}\n queryType { name kind }\n mutationType { name kind }\n subscriptionType { name kind }\n types {\n ...FullType\n }\n directives {\n name\n ${n}\n ${t.directiveIsRepeatable?"isRepeatable":""}\n locations\n args${i("(includeDeprecated: true)")} {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ${n}\n ${r}\n ${o}\n fields(includeDeprecated: true) {\n name\n ${n}\n args${i("(includeDeprecated: true)")} {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields${i("(includeDeprecated: true)")} {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ${n}\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ${n}\n type { ...TypeRef }\n defaultValue\n ${i("isDeprecated")}\n ${i("deprecationReason")}\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n `}({inputValueDeprecation:e,schemaDescription:n});return{introspectionQueryName:t,introspectionQuery:"IntrospectionQuery"===t?r:r.replace("query IntrospectionQuery",`query ${t}`),introspectionQuerySansSubscriptions:r.replace("subscriptionType { name }","")}}(s),f=M(r({query:u,operationName:c},o));if(!O(f))return void e({fetchError:"Fetcher did not return a Promise for introspection."});e({isFetching:!0,fetchError:null});let p,h=await f;if("object"!=typeof h||null===h||!("data"in h)){const e=M(r({query:d,operationName:c},o));if(!O(e))throw new Error("Fetcher did not return a Promise for introspection.");h=await e}if(e({isFetching:!1}),(null==h?void 0:h.data)&&"__schema"in h.data?p=h.data:e({fetchError:"string"==typeof h?h:wa(h)}),l!==t().requestCounter||!p)return;const m=function(e){R(e)&&R(e.__schema)||F(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${Ue(e)}.`);const t=e.__schema,n=ut(t.types,e=>e.name,e=>function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case dr.SCALAR:return new qt({name:(r=e).name,description:r.description,specifiedByURL:r.specifiedByURL});case dr.OBJECT:return new Gt({name:(n=e).name,description:n.description,interfaces:()=>d(n),fields:()=>f(n)});case dr.INTERFACE:return new Kt({name:(t=e).name,description:t.description,interfaces:()=>d(t),fields:()=>f(t)});case dr.UNION:return function(e){if(!e.possibleTypes){const t=Ue(e);throw new Error(`Introspection result missing possibleTypes: ${t}.`)}return new Yt({name:e.name,description:e.description,types:()=>e.possibleTypes.map(u)})}(e);case dr.ENUM:return function(e){if(!e.enumValues){const t=Ue(e);throw new Error(`Introspection result missing enumValues: ${t}.`)}return new Qt({name:e.name,description:e.description,values:ut(e.enumValues,e=>e.name,e=>({description:e.description,deprecationReason:e.deprecationReason}))})}(e);case dr.INPUT_OBJECT:return function(e){if(!e.inputFields){const t=Ue(e);throw new Error(`Introspection result missing inputFields: ${t}.`)}return new Xt({name:e.name,description:e.description,fields:()=>h(e.inputFields),isOneOf:e.isOneOf})}(e)}var t,n,r;const i=Ue(e);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${i}.`)}(e));for(const g of[...$n,...gr])n[g.name]&&(n[g.name]=g);const r=t.queryType?u(t.queryType):null,i=t.mutationType?u(t.mutationType):null,o=t.subscriptionType?u(t.subscriptionType):null,a=t.directives?t.directives.map(function(e){if(!e.args){const t=Ue(e);throw new Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){const t=Ue(e);throw new Error(`Introspection result missing directive locations: ${t}.`)}return new Wn({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:h(e.args)})}):[];return new br({description:t.description,query:r,mutation:i,subscription:o,types:Object.values(n),directives:a,assumeValid:void 0});function s(e){if(e.kind===dr.LIST){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");return new Ht(s(t))}if(e.kind===dr.NON_NULL){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");return new Wt(function(e){if(!mn(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL nullable type.`);return e}(s(t)))}return l(e)}function l(e){const t=e.name;if(!t)throw new Error(`Unknown type reference: ${Ue(e)}.`);const r=n[t];if(!r)throw new Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`);return r}function u(e){return function(e){if(!tn(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL Object type.`);return e}(l(e))}function c(e){return function(e){if(!nn(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL Interface type.`);return e}(l(e))}function d(e){if(null===e.interfaces&&e.kind===dr.INTERFACE)return[];if(!e.interfaces){const t=Ue(e);throw new Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(c)}function f(e){if(!e.fields)throw new Error(`Introspection result missing fields: ${Ue(e)}.`);return ut(e.fields,e=>e.name,p)}function p(e){const t=s(e.type);if(!cn(t)){const e=Ue(t);throw new Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){const t=Ue(e);throw new Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:h(e.args)}}function h(e){return ut(e,e=>e.name,m)}function m(e){const t=s(e.type);if(!un(t)){const e=Ue(t);throw new Error(`Introspection must provide input type for arguments, but received: ${e}.`)}const n=null!=e.defaultValue?eo(function(e){const t=new Ke(e,void 0);t.expectToken(ye.SOF);const n=t.parseValueLiteral(!1);return t.expectToken(ye.EOF),n}(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:n,deprecationReason:e.deprecationReason}}}(p);e({schema:m}),null==i||i(m)}catch(tp){if(l!==t().requestCounter)return;e({fetchError:ba(tp),isFetching:!1})}}})),yc=e=>{const t=(0,$u.c)(14),{fetcher:n,onSchemaChange:r,dangerouslyAssumeSchemaIsValid:i,children:o,schema:a,inputValueDeprecation:s,introspectionQueryName:l,schemaDescription:u}=e,c=void 0!==i&&i,d=void 0!==s&&s,f=void 0===l?"IntrospectionQuery":l,p=void 0!==u&&u;if(!n)throw new TypeError("The `SchemaContextProvider` component requires a `fetcher` function to be passed as prop.");let h;t[0]===Symbol.for("react.memo_cache_sentinel")?(h={nonNull:!0,caller:yc},t[0]=h):h=t[0];const{headerEditor:m}=Qm(h);let g,v,y,b,w;return t[1]!==m?(g=()=>{m&&vc.setState({headerEditor:m})},v=[m],t[1]=m,t[2]=g,t[3]=v):(g=t[2],v=t[3]),(0,Fu.useEffect)(g,v),t[4]!==c||t[5]!==n||t[6]!==d||t[7]!==f||t[8]!==r||t[9]!==a||t[10]!==p?(y=()=>{const e=xr(a)||null==a?a:void 0,t=!e||c?[]:Sr(e);vc.setState(i=>{const{requestCounter:o}=i;return{fetcher:n,onSchemaChange:r,schema:e,shouldIntrospect:!xr(a)&&null!==a,inputValueDeprecation:d,introspectionQueryName:f,schemaDescription:p,validationErrors:t,requestCounter:o+1}}),vc.getState().introspect()},b=[a,c,r,n,d,f,p],t[4]=c,t[5]=n,t[6]=d,t[7]=f,t[8]=r,t[9]=a,t[10]=p,t[11]=y,t[12]=b):(y=t[11],b=t[12]),(0,Fu.useEffect)(y,b),t[13]===Symbol.for("react.memo_cache_sentinel")?(w=[],t[13]=w):w=t[13],(0,Fu.useEffect)(wc,w),o},bc=zu(vc);function wc(){const e=function(e){e.ctrlKey&&"R"===e.key&&vc.getState().introspect()};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}var xc={};function Ec(e,t){"string"!=typeof t&&(t=Ec.defaultChars);const n=function(e){let t=xc[e];if(t)return t;t=xc[e]=[];for(let n=0;n<128;n++){const e=String.fromCharCode(n);t.push(e)}for(let n=0;n=55296&&e<=57343?"���":String.fromCharCode(e),r+=6;continue}}if(240==(248&o)&&r+91114111?t+="����":(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(1023&e))),r+=9;continue}}t+="�"}}return t})}Ec.defaultChars=";/?:@&=+$,#",Ec.componentChars="";var kc={};function Cc(e,t,n){"string"!=typeof t&&(n=t,t=Cc.defaultChars),void 0===n&&(n=!0);const r=function(e){let t=kc[e];if(t)return t;t=kc[e]=[];for(let n=0;n<128;n++){const e=String.fromCharCode(n);/^[0-9a-z]$/i.test(e)?t.push(e):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n=55296&&t<=57343){if(t>=55296&&t<=56319&&o+1=56320&&t<=57343){i+=encodeURIComponent(e[o]+e[o+1]),o++;continue}}i+="%EF%BF%BD"}else i+=encodeURIComponent(e[o])}return i}function Sc(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function Tc(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}Cc.defaultChars=";/?:@&=+$,-_.!~*'()#",Cc.componentChars="-_.!~*'()";var _c=/^([a-z0-9.+-]+:)/i,Nc=/:[0-9]*$/,Ac=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Dc=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),Oc=["'"].concat(Dc),Lc=["%","/","?",";","#"].concat(Oc),Ic=["/","?","#"],Mc=/^[+a-z0-9A-Z_-]{0,63}$/,Fc=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Pc={javascript:!0,"javascript:":!0},Rc={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function jc(e,t){if(e&&e instanceof Tc)return e;const n=new Tc;return n.parse(e,t),n}Tc.prototype.parse=function(e,t){let n,r,i,o=e;if(o=o.trim(),!t&&1===e.split("#").length){const e=Ac.exec(o);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let a=_c.exec(o);if(a&&(a=a[0],n=a.toLowerCase(),this.protocol=a,o=o.substr(a.length)),(t||a||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i="//"===o.substr(0,2),!i||a&&Pc[a]||(o=o.substr(2),this.slashes=!0)),!Pc[a]&&(i||a&&!Rc[a])){let e,t,n=-1;for(let s=0;s127?r+="x":r+=n[e];if(!r.match(Mc)){const r=e.slice(0,t),i=e.slice(t+1),a=n.match(Fc);a&&(r.push(a[1]),i.unshift(a[2])),i.length&&(o=i.join(".")+o),this.hostname=r.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),a&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const s=o.indexOf("#");-1!==s&&(this.hash=o.substr(s),o=o.slice(0,s));const l=o.indexOf("?");return-1!==l&&(this.search=o.substr(l),o=o.slice(0,l)),o&&(this.pathname=o),Rc[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},Tc.prototype.parseHost=function(e){let t=Nc.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var Vc,Bc,zc,$c,Uc,Hc=l({decode:()=>Ec,encode:()=>Cc,format:()=>Sc,parse:()=>jc}),Wc=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,qc=/[\0-\x1F\x7F-\x9F]/,Gc=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,Kc=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\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-\u2E4F\u2E52-\u2E5D\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[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Yc=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,Qc=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Xc=l({Any:()=>Wc,Cc:()=>qc,Cf:()=>Gc,P:()=>Kc,S:()=>Yc,Z:()=>Qc}),Zc=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Jc=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0))),ed=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),td=null!==(Vc=String.fromCodePoint)&&void 0!==Vc?Vc:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t};function nd(e){return e>=Bc.ZERO&&e<=Bc.NINE}function rd(e){return e>=Bc.UPPER_A&&e<=Bc.UPPER_F||e>=Bc.LOWER_A&&e<=Bc.LOWER_F}function id(e){return e===Bc.EQUALS||function(e){return e>=Bc.UPPER_A&&e<=Bc.UPPER_Z||e>=Bc.LOWER_A&&e<=Bc.LOWER_Z||nd(e)}(e)}!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(Bc||(Bc={})),function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(zc||(zc={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}($c||($c={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(Uc||(Uc={}));var od=class{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=$c.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Uc.Strict}startEntity(e){this.decodeMode=e,this.state=$c.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case $c.EntityStart:return e.charCodeAt(t)===Bc.NUM?(this.state=$c.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=$c.NamedEntity,this.stateNamedEntity(e,t));case $c.NumericStart:return this.stateNumericStart(e,t);case $c.NumericDecimal:return this.stateNumericDecimal(e,t);case $c.NumericHex:return this.stateNumericHex(e,t);case $c.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===Bc.LOWER_X?(this.state=$c.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=$c.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){const i=n-t;this.result=this.result*Math.pow(r,i)+parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){const n=t;for(;t=55296&&e<=57343||e>1114111?65533:null!==(t=ed.get(e))&&void 0!==t?t:e}(this.result),this.consumed),this.errors&&(e!==Bc.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:n}=this;let r=n[this.treeIndex],i=(r&zc.VALUE_LENGTH)>>14;for(;t>14,0!==i){if(o===Bc.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Uc.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,r=(n[t]&zc.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~zc.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case $c.NamedEntity:return 0===this.result||this.decodeMode===Uc.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case $c.NumericDecimal:return this.emitNumericEntity(0,2);case $c.NumericHex:return this.emitNumericEntity(0,3);case $c.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case $c.EntityStart:return 0}}};function ad(e){let t="";const n=new od(e,e=>t+=td(e));return function(e,r){let i=0,o=0;for(;(o=e.indexOf("&",o))>=0;){t+=e.slice(i,o),n.startEntity(r);const a=n.write(e,o+1);if(a<0){i=o+n.end();break}i=o+a,o=0===a?i+1:i}const a=t+e.slice(i);return t="",a}}function sd(e,t,n,r){const i=(t&zc.BRANCH_LENGTH)>>7,o=t&zc.JUMP_TABLE;if(0===i)return 0!==o&&r===o?n:-1;if(o){const t=r-o;return t<0||t>=i?-1:e[n+t]-1}let a=n,s=a+i-1;for(;a<=s;){const t=a+s>>>1,n=e[t];if(nr))return e[t+i];s=t-1}}return-1}var ld=ad(Zc);function ud(e,t=Uc.Legacy){return ld(e,t)}ad(Jc);var cd=l({arrayReplaceAt:()=>md,assign:()=>hd,escapeHtml:()=>_d,escapeRE:()=>Ad,fromCodePoint:()=>vd,has:()=>pd,isMdAsciiPunct:()=>Id,isPunctChar:()=>Ld,isSpace:()=>Dd,isString:()=>dd,isValidEntityCode:()=>gd,isWhiteSpace:()=>Od,lib:()=>Fd,normalizeReference:()=>Md,unescapeAll:()=>Ed,unescapeMd:()=>xd});function dd(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)}var fd=Object.prototype.hasOwnProperty;function pd(e,t){return fd.call(e,t)}function hd(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e}function md(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function gd(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||!(65535&~e&&65534!=(65535&e))||e>=0&&e<=8||11===e||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function vd(e){if(e>65535){const t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var yd=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,bd=new RegExp(yd.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),wd=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function xd(e){return e.indexOf("\\")<0?e:e.replace(yd,"$1")}function Ed(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(bd,function(e,t,n){return t||function(e,t){if(35===t.charCodeAt(0)&&wd.test(t)){const n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return gd(n)?vd(n):e}const n=ud(e);return n!==e?n:e}(e,n)})}var kd=/[&<>"]/,Cd=/[&<>"]/g,Sd={"&":"&","<":"<",">":">",'"':"""};function Td(e){return Sd[e]}function _d(e){return kd.test(e)?e.replace(Cd,Td):e}var Nd=/[.?*+^$[\]\\(){}|-]/g;function Ad(e){return e.replace(Nd,"\\$&")}function Dd(e){switch(e){case 9:case 32:return!0}return!1}function Od(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}function Ld(e){return Kc.test(e)||Yc.test(e)}function Id(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 Md(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}var Fd={mdurl:Hc,ucmicro:Xc};function Pd(e,t,n){let r,i,o,a;const s=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos32))return o;if(41===r){if(0===a)break;a--}i++}return t===i||0!==a||(o.str=Ed(e.slice(t,i)),o.pos=i,o.ok=!0),o}function jd(e,t,n,r){let i,o=t;const a={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)a.str=r.str,a.marker=r.marker;else{if(o>=n)return a;let r=e.charCodeAt(o);if(34!==r&&39!==r&&40!==r)return a;t++,o++,40===r&&(r=41),a.marker=r}for(;oRd,parseLinkLabel:()=>Pd,parseLinkTitle:()=>jd}),Bd={};function zd(){this.rules=hd({},Bd)}function $d(){this.__rules__=[],this.__cache__=null}function Ud(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}function Hd(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}Bd.code_inline=function(e,t,n,r,i){const o=e[t];return""+_d(o.content)+""},Bd.code_block=function(e,t,n,r,i){const o=e[t];return""+_d(e[t].content)+"\n"},Bd.fence=function(e,t,n,r,i){const o=e[t],a=o.info?Ed(o.info).trim():"";let s,l="",u="";if(a){const e=a.split(/(\s+)/g);l=e[0],u=e.slice(2).join("")}if(s=n.highlight&&n.highlight(o.content,l,u)||_d(o.content),0===s.indexOf("${s}\n`}return`
${s}
\n`},Bd.image=function(e,t,n,r,i){const o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)},Bd.hardbreak=function(e,t,n){return n.xhtmlOut?"
\n":"
\n"},Bd.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"
\n":"
\n":"\n"},Bd.text=function(e,t){return _d(e[t].content)},Bd.html_block=function(e,t){return e[t].content},Bd.html_inline=function(e,t){return e[t].content},zd.prototype.renderAttrs=function(e){let t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t\n":">",i},zd.prototype.renderInline=function(e,t,n){let r="";const i=this.rules;for(let o=0,a=e.length;o=0&&(n=this.attrs[t][1]),n},Ud.prototype.attrJoin=function(e,t){const n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},Hd.prototype.Token=Ud;var Wd=/\r\n?|\n/g,qd=/\0/g;function Gd(e){return/^\s]/i.test(e)}function Kd(e){return/^<\/a\s*>/i.test(e)}var Yd=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Qd=/\((c|tm|r)\)/i,Xd=/\((c|tm|r)\)/gi,Zd={c:"©",r:"®",tm:"™"};function Jd(e,t){return Zd[t.toLowerCase()]}function ef(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];"text"!==r.type||t||(r.content=r.content.replace(Xd,Jd)),"link_open"===r.type&&"auto"===r.info&&t--,"link_close"===r.type&&"auto"===r.info&&t++}}function tf(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];"text"!==r.type||t||Yd.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===r.type&&"auto"===r.info&&t--,"link_close"===r.type&&"auto"===r.info&&t++}}var nf=/['"]/,rf=/['"]/g;function of(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function af(e,t){let n;const r=[];for(let i=0;i=0&&!(r[n].level<=a);n--);if(r.length=n+1,"text"!==o.type)continue;let s=o.content,l=0,u=s.length;e:for(;l=0)h=s.charCodeAt(c.index-1);else for(n=i-1;n>=0&&"softbreak"!==e[n].type&&"hardbreak"!==e[n].type;n--)if(e[n].content){h=e[n].content.charCodeAt(e[n].content.length-1);break}let m=32;if(l=48&&h<=57&&(f=d=!1),d&&f&&(d=g,f=v),d||f){if(f)for(n=r.length-1;n>=0;n--){let d=r[n];if(r[n].level=0;o--){const a=r[o];if("link_close"!==a.type){if("html_inline"===a.type&&(Gd(a.content)&&i>0&&i--,Kd(a.content)&&i++),!(i>0)&&"text"===a.type&&e.md.linkify.test(a.content)){const i=a.content;let s=e.md.linkify.match(i);const l=[];let u=a.level,c=0;s.length>0&&0===s[0].index&&o>0&&"text_special"===r[o-1].type&&(s=s.slice(1));for(let t=0;tc){const t=new e.Token("text","",0);t.content=i.slice(c,a),t.level=u,l.push(t)}const d=new e.Token("link_open","a",1);d.attrs=[["href",r]],d.level=u++,d.markup="linkify",d.info="auto",l.push(d);const f=new e.Token("text","",0);f.content=o,f.level=u,l.push(f);const p=new e.Token("link_close","a",-1);p.level=--u,p.markup="linkify",p.info="auto",l.push(p),c=s[t].lastIndex}if(c=0;t--)"inline"===e.tokens[t].type&&(Qd.test(e.tokens[t].content)&&ef(e.tokens[t].children),Yd.test(e.tokens[t].content)&&tf(e.tokens[t].children))}],["smartquotes",function(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&nf.test(e.tokens[t].content)&&af(e.tokens[t].children,e)}],["text_join",function(e){let t,n;const r=e.tokens,i=r.length;for(let o=0;o=r)return-1;let o=e.src.charCodeAt(i++);if(o<48||o>57)return-1;for(;;){if(i>=r)return-1;if(o=e.src.charCodeAt(i++),!(o>=48&&o<=57)){if(41===o||46===o)break;return-1}if(i-n>=10)return-1}return i0&&this.level++,this.tokens.push(r),r},uf.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},uf.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;et;)if(!Dd(this.src.charCodeAt(--e)))return e+1;return e},uf.prototype.skipChars=function(e,t){for(let n=this.src.length;en;)if(t!==this.src.charCodeAt(--e))return e+1;return e},uf.prototype.getLines=function(e,t,n,r){if(e>=t)return"";const i=new Array(t-e);for(let o=0,a=e;an?new Array(e-n+1).join(" ")+this.src.slice(u,l):this.src.slice(u,l)}return i.join("")},uf.prototype.Token=Ud;var hf="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",mf=new RegExp("^(?:"+hf+"|<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>|\x3c!---?>|\x3c!--(?:[^-]|-[^-]|--[^>])*--\x3e|<[?][\\s\\S]*?[?]>|]*>|)"),gf=new RegExp("^(?:"+hf+"|<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>)"),vf=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(gf.source+"\\s*$"),/^$/,!1]],yf=[["table",function(e,t,n,r){if(t+2>n)return!1;let i=t+1;if(e.sCount[i]=4)return!1;let o=e.bMarks[i]+e.tShift[i];if(o>=e.eMarks[i])return!1;const a=e.src.charCodeAt(o++);if(124!==a&&45!==a&&58!==a)return!1;if(o>=e.eMarks[i])return!1;const s=e.src.charCodeAt(o++);if(124!==s&&45!==s&&58!==s&&!Dd(s))return!1;if(45===a&&Dd(s))return!1;for(;o=4)return!1;u=df(l),u.length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop();const d=u.length;if(0===d||d!==c.length)return!1;if(r)return!0;const f=e.parentType;e.parentType="table";const p=e.md.block.ruler.getRules("blockquote"),h=[t,0];e.push("table_open","table",1).map=h,e.push("thead_open","thead",1).map=[t,t+1],e.push("tr_open","tr",1).map=[t,t+1];for(let v=0;v=4)break;if(u=df(l),u.length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop(),g+=d-u.length,g>65536)break;i===t+2&&(e.push("tbody_open","tbody",1).map=m=[t+2,0]),e.push("tr_open","tr",1).map=[i,i+1];for(let t=0;t=4))break;r++,i=r}e.line=i;const o=e.push("code_block","code",0);return o.content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",o.map=[t,e.line],!0}],["fence",function(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(i+3>o)return!1;const a=e.src.charCodeAt(i);if(126!==a&&96!==a)return!1;let s=i;i=e.skipChars(i,a);let l=i-s;if(l<3)return!1;const u=e.src.slice(s,i),c=e.src.slice(i,o);if(96===a&&c.indexOf(String.fromCharCode(a))>=0)return!1;if(r)return!0;let d=t,f=!1;for(;d++,!(d>=n||(i=s=e.bMarks[d]+e.tShift[d],o=e.eMarks[d],i=4||(i=e.skipChars(i,a),i-s=4)return!1;if(62!==e.src.charCodeAt(i))return!1;if(r)return!0;const s=[],l=[],u=[],c=[],d=e.md.block.ruler.getRules("blockquote"),f=e.parentType;e.parentType="blockquote";let p,h=!1;for(p=t;p=o)break;if(62===e.src.charCodeAt(i++)&&!t){let t,n,r=e.sCount[p]+1;32===e.src.charCodeAt(i)?(i++,r++,n=!1,t=!0):9===e.src.charCodeAt(i)?(t=!0,(e.bsCount[p]+r)%4==3?(i++,r++,n=!1):n=!0):t=!1;let a=r;for(s.push(e.bMarks[p]),e.bMarks[p]=i;i=o,l.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(t?1:0),u.push(e.sCount[p]),e.sCount[p]=a-r,c.push(e.tShift[p]),e.tShift[p]=i-e.bMarks[p];continue}if(h)break;let r=!1;for(let i=0,o=d.length;i";const v=[t,0];g.map=v,e.md.block.tokenize(e,t,p),e.push("blockquote_close","blockquote",-1).markup=">",e.lineMax=a,e.parentType=f,v[1]=e.line;for(let y=0;y=4)return!1;let o=e.bMarks[t]+e.tShift[t];const a=e.src.charCodeAt(o++);if(42!==a&&45!==a&&95!==a)return!1;let s=1;for(;o=4)return!1;if(e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]=e.blkIndent&&(p=!0),(f=pf(e,l))>=0){if(c=!0,a=e.bMarks[l]+e.tShift[l],d=Number(e.src.slice(a,f-1)),p&&1!==d)return!1}else{if(!((f=ff(e,l))>=0))return!1;c=!1}if(p&&e.skipSpaces(f)>=e.eMarks[l])return!1;if(r)return!0;const h=e.src.charCodeAt(f-1),m=e.tokens.length;c?(s=e.push("ordered_list_open","ol",1),1!==d&&(s.attrs=[["start",d]])):s=e.push("bullet_list_open","ul",1);const g=[l,0];s.map=g,s.markup=String.fromCharCode(h);let v=!1;const y=e.md.block.ruler.getRules("list"),b=e.parentType;for(e.parentType="list";l=i?1:r-t,p>4&&(p=1);const m=t+p;s=e.push("list_item_open","li",1),s.markup=String.fromCharCode(h);const g=[l,0];s.map=g,c&&(s.info=e.src.slice(a,f-1));const b=e.tight,w=e.tShift[l],x=e.sCount[l],E=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=m,e.tight=!0,e.tShift[l]=d-e.bMarks[l],e.sCount[l]=r,d>=i&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),e.tight&&!v||(u=!1),v=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=E,e.tShift[l]=w,e.sCount[l]=x,e.tight=b,s=e.push("list_item_close","li",-1),s.markup=String.fromCharCode(h),l=e.line,g[1]=l,l>=n)break;if(e.sCount[l]=4)break;let k=!1;for(let i=0,o=y.length;i=4)return!1;if(91!==e.src.charCodeAt(i))return!1;function s(t){const n=e.lineMax;if(t>=n||e.isEmpty(t))return null;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){const r=e.md.block.ruler.getRules("reference"),i=e.parentType;e.parentType="reference";let o=!1;for(let a=0,s=r.length;a=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(i))return!1;let a=e.src.slice(i,o),s=0;for(;s=4)return!1;let a=e.src.charCodeAt(i);if(35!==a||i>=o)return!1;let s=1;for(a=e.src.charCodeAt(++i);35===a&&i6||ii&&Dd(e.src.charCodeAt(l-1))&&(o=l),e.line=t+1;const u=e.push("heading_open","h"+String(s),1);u.markup="########".slice(0,s),u.map=[t,e.line];const c=e.push("inline","",0);return c.content=e.src.slice(i,o).trim(),c.map=[t,e.line],c.children=[],e.push("heading_close","h"+String(s),-1).markup="########".slice(0,s),!0},["paragraph","reference","blockquote"]],["lheading",function(e,t,n){const r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const i=e.parentType;e.parentType="paragraph";let o,a=0,s=t+1;for(;s3)continue;if(e.sCount[s]>=e.blkIndent){let t=e.bMarks[s]+e.tShift[s];const n=e.eMarks[s];if(t=n))){a=61===o?1:2;break}}if(e.sCount[s]<0)continue;let t=!1;for(let i=0,o=r.length;i3)continue;if(e.sCount[o]<0)continue;let t=!1;for(let i=0,a=r.length;i=n))&&!(e.sCount[a]=o){e.line=n;break}const t=e.line;let l=!1;for(let o=0;o=e.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),a=e.line,a0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},wf.prototype.scanDelims=function(e,t){const n=this.posMax,r=this.src.charCodeAt(e),i=e>0?this.src.charCodeAt(e-1):32;let o=e;for(;o?@[]^_`{|}~-".split("").forEach(function(e){kf[e.charCodeAt(0)]=1});var Sf={tokenize:function(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t)return!1;if(126!==r)return!1;const i=e.scanDelims(e.pos,!0);let o=i.length;const a=String.fromCharCode(r);if(o<2)return!1;let s;o%2&&(s=e.push("text","",0),s.content=a,o--);for(let l=0;l=0;n--){const r=t[n];if(95!==r.marker&&42!==r.marker)continue;if(-1===r.end)continue;const i=t[r.end],o=n>0&&t[n-1].end===r.end+1&&t[n-1].marker===r.marker&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1,a=String.fromCharCode(r.marker),s=e.tokens[r.token];s.type=o?"strong_open":"em_open",s.tag=o?"strong":"em",s.nesting=1,s.markup=o?a+a:a,s.content="";const l=e.tokens[i.token];l.type=o?"strong_close":"em_close",l.tag=o?"strong":"em",l.nesting=-1,l.markup=o?a+a:a,l.content="",o&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--)}}var _f={tokenize:function(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t)return!1;if(95!==r&&42!==r)return!1;const i=e.scanDelims(e.pos,42===r);for(let o=0;o\x00-\x20]*)$/,Df=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Of=/^&([a-z][a-z0-9]{1,31});/i;function Lf(e){const t={},n=e.length;if(!n)return;let r=0,i=-2;const o=[];for(let a=0;as;l-=o[l]+1){const t=e[l];if(t.marker===n.marker&&t.open&&t.end<0){let r=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3==0&&n.length%3==0||(r=!0)),!r){const r=l>0&&!e[l-1].open?o[l-1]+1:0;o[a]=a-l+r,o[l]=r,n.open=!1,t.end=a,t.close=!1,u=-1,i=-2;break}}}-1!==u&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=u)}}var If=[["text",function(e,t){let n=e.pos;for(;n0)return!1;const n=e.pos;if(n+3>e.posMax)return!1;if(58!==e.src.charCodeAt(n))return!1;if(47!==e.src.charCodeAt(n+1))return!1;if(47!==e.src.charCodeAt(n+2))return!1;const r=e.pending.match(Ef);if(!r)return!1;const i=r[1],o=e.md.linkify.matchAtStart(e.src.slice(n-i.length));if(!o)return!1;let a=o.url;if(a.length<=i.length)return!1;let s=a.length;for(;s>0&&42===a.charCodeAt(s-1);)s--;s!==a.length&&(a=a.slice(0,s));const l=e.md.normalizeLink(a);if(!e.md.validateLink(l))return!1;if(!t){e.pending=e.pending.slice(0,-i.length);const t=e.push("link_open","a",1);t.attrs=[["href",l]],t.markup="linkify",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(a);const n=e.push("link_close","a",-1);n.markup="linkify",n.info="auto"}return e.pos+=a.length-i.length,!0}],["newline",function(e,t){let n=e.pos;if(10!==e.src.charCodeAt(n))return!1;const r=e.pending.length-1,i=e.posMax;if(!t)if(r>=0&&32===e.pending.charCodeAt(r))if(r>=1&&32===e.pending.charCodeAt(r-1)){let t=r-1;for(;t>=1&&32===e.pending.charCodeAt(t-1);)t--;e.pending=e.pending.slice(0,t),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n=r)return!1;let i=e.src.charCodeAt(n);if(10===i){for(t||e.push("hardbreak","br",0),n++;n=55296&&i<=56319&&n+1=56320&&t<=57343&&(o+=e.src[n+1],n++)}const a="\\"+o;if(!t){const t=e.push("text_special","",0);i<256&&0!==kf[i]?t.content=o:t.content=a,t.markup=a,t.info="escape"}return e.pos=n+1,!0}],["backticks",function(e,t){let n=e.pos;if(96!==e.src.charCodeAt(n))return!1;const r=n;n++;const i=e.posMax;for(;n=d)return!1;if(l=h,i=e.md.helpers.parseLinkDestination(e.src,h,e.posMax),i.ok){for(a=e.md.normalizeLink(i.str),e.md.validateLink(a)?h=i.pos:a="",l=h;h=d||41!==e.src.charCodeAt(h))&&(u=!0),h++}if(u){if(void 0===e.env.references)return!1;if(h=0?r=e.src.slice(l,h++):h=p+1):h=p+1,r||(r=e.src.slice(f,p)),o=e.env.references[Md(r)],!o)return e.pos=c,!1;a=o.href,s=o.title}if(!t){e.pos=f,e.posMax=p;const t=[["href",a]];e.push("link_open","a",1).attrs=t,s&&t.push(["title",s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=h,e.posMax=d,!0}],["image",function(e,t){let n,r,i,o,a,s,l,u,c="";const d=e.pos,f=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;const p=e.pos+2,h=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(h<0)return!1;if(o=h+1,o=f)return!1;for(u=o,s=e.md.helpers.parseLinkDestination(e.src,o,e.posMax),s.ok&&(c=e.md.normalizeLink(s.str),e.md.validateLink(c)?o=s.pos:c=""),u=o;o=f||41!==e.src.charCodeAt(o))return e.pos=d,!1;o++}else{if(void 0===e.env.references)return!1;if(o=0?i=e.src.slice(u,o++):o=h+1):o=h+1,i||(i=e.src.slice(p,h)),a=e.env.references[Md(i)],!a)return e.pos=d,!1;c=a.href,l=a.title}if(!t){r=e.src.slice(p,h);const t=[];e.md.inline.parse(r,e.md,e.env,t);const n=e.push("image","img",0),i=[["src",c],["alt",""]];n.attrs=i,n.children=t,n.content=r,l&&i.push(["title",l])}return e.pos=o,e.posMax=f,!0}],["autolink",function(e,t){let n=e.pos;if(60!==e.src.charCodeAt(n))return!1;const r=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;const t=e.src.charCodeAt(n);if(60===t)return!1;if(62===t)break}const o=e.src.slice(r+1,n);if(Af.test(o)){const n=e.md.normalizeLink(o);if(!e.md.validateLink(n))return!1;if(!t){const t=e.push("link_open","a",1);t.attrs=[["href",n]],t.markup="autolink",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(o);const r=e.push("link_close","a",-1);r.markup="autolink",r.info="auto"}return e.pos+=o.length+2,!0}if(Nf.test(o)){const n=e.md.normalizeLink("mailto:"+o);if(!e.md.validateLink(n))return!1;if(!t){const t=e.push("link_open","a",1);t.attrs=[["href",n]],t.markup="autolink",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(o);const r=e.push("link_close","a",-1);r.markup="autolink",r.info="auto"}return e.pos+=o.length+2,!0}return!1}],["html_inline",function(e,t){if(!e.md.options.html)return!1;const n=e.posMax,r=e.pos;if(60!==e.src.charCodeAt(r)||r+2>=n)return!1;const i=e.src.charCodeAt(r+1);if(33!==i&&63!==i&&47!==i&&!function(e){const t=32|e;return t>=97&&t<=122}(i))return!1;const o=e.src.slice(r).match(mf);if(!o)return!1;if(!t){const t=e.push("html_inline","",0);t.content=o[0],a=t.content,/^\s]/i.test(a)&&e.linkLevel++,function(e){return/^<\/a\s*>/i.test(e)}(t.content)&&e.linkLevel--}var a;return e.pos+=o[0].length,!0}],["entity",function(e,t){const n=e.pos,r=e.posMax;if(38!==e.src.charCodeAt(n))return!1;if(n+1>=r)return!1;if(35===e.src.charCodeAt(n+1)){const r=e.src.slice(n).match(Df);if(r){if(!t){const t="x"===r[1][0].toLowerCase()?parseInt(r[1].slice(1),16):parseInt(r[1],10),n=e.push("text_special","",0);n.content=gd(t)?vd(t):vd(65533),n.markup=r[0],n.info="entity"}return e.pos+=r[0].length,!0}}else{const r=e.src.slice(n).match(Of);if(r){const n=ud(r[0]);if(n!==r[0]){if(!t){const t=e.push("text_special","",0);t.content=n,t.markup=r[0],t.info="entity"}return e.pos+=r[0].length,!0}}}return!1}]],Mf=[["balance_pairs",function(e){const t=e.tokens_meta,n=e.tokens_meta.length;Lf(e.delimiters);for(let r=0;r0&&r++,"text"===i[t].type&&t+1=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;a||e.pos++,o[t]=e.pos},Ff.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,r=e.posMax,i=e.md.options.maxNesting;for(;e.pos=e.pos)throw new Error("inline rule didn't increment state.pos");break}if(a){if(e.pos>=r)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},Ff.prototype.parse=function(e,t,n,r){const i=new this.State(e,t,n,r);this.tokenize(i);const o=this.ruler2.getRules(""),a=o.length;for(let s=0;s=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},$f="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Uf(e){const t=e.re=function(e){const t={};return e=e||{},t.src_Any=Wc.source,t.src_Cc=qc.source,t.src_Z=Qc.source,t.src_P=Kc.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|"),t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(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='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}(e.__opts__),n=e.__tlds__.slice();function r(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),n.push(t.src_xn),t.src_tlds=n.join("|"),t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");const i=[];function o(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){const n=e.__schemas__[t];if(null===n)return;const r={validate:null,link:null};if(e.__compiled__[t]=r,"[object Object]"===Rf(n))return"[object RegExp]"!==Rf(n.validate)?jf(n.validate)?r.validate=n.validate:o(t,n):r.validate=function(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate),void(jf(n.normalize)?r.normalize=n.normalize:n.normalize?o(t,n):r.normalize=function(e,t){t.normalize(e)});"[object String]"!==Rf(n)?o(t,n):i.push(t)}),i.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};const a=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(Vf).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function Hf(e,t){const n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function Wf(e,t){const n=new Hf(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function qf(e,t){if(!(this instanceof qf))return new qf(e,t);var n;t||(n=e,Object.keys(n||{}).reduce(function(e,t){return e||Bf.hasOwnProperty(t)},!1)&&(t=e,e={})),this.__opts__=Pf({},Bf,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Pf({},zf,e),this.__compiled__={},this.__tlds__=$f,this.__tlds_replaced__=!1,this.re={},Uf(this)}qf.prototype.add=function(e,t){return this.__schemas__[e]=t,Uf(this),this},qf.prototype.set=function(e){return this.__opts__=Pf(this.__opts__,e),this},qf.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let t,n,r,i,o,a,s,l,u;if(this.re.schema_test.test(e))for(s=this.re.schema_search,s.lastIndex=0;null!==(t=s.exec(e));)if(i=this.testSchemaAt(e,t[2],s.lastIndex),i){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a))),this.__index__>=0},qf.prototype.pretest=function(e){return this.re.pretest.test(e)},qf.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},qf.prototype.match=function(e){const t=[];let n=0;this.__index__>=0&&this.__text_cache__===e&&(t.push(Wf(this,n)),n=this.__last_index__);let r=n?e.slice(n):e;for(;this.test(r);)t.push(Wf(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return t.length?t:null},qf.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;const t=this.re.schema_at_start.exec(e);if(!t)return null;const n=this.testSchemaAt(e,t[2],t[0].length);return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,Wf(this,0)):null},qf.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),Uf(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Uf(this),this)},qf.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},qf.prototype.onCompile=function(){};var Gf=2147483647,Kf=36,Yf=/^xn--/,Qf=/[^\0-\x7F]/,Xf=/[\x2E\u3002\uFF0E\uFF61]/g,Zf={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Jf=Math.floor,ep=String.fromCharCode;function tp(e){throw new RangeError(Zf[e])}function np(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]);const i=function(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}((e=e.replace(Xf,".")).split("."),t).join(".");return r+i}var rp=function(e){return e>=48&&e<58?e-48+26:e>=65&&e<91?e-65:e>=97&&e<123?e-97:Kf},ip=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},op=function(e,t,n){let r=0;for(e=n?Jf(e/700):e>>1,e+=Jf(e/t);e>455;r+=Kf)e=Jf(e/35);return Jf(r+36*e/(e+38))},ap={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},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","fragments_join"]}}}},sp=/^(vbscript|javascript|file|data):/,lp=/^data:image\/(gif|png|jpeg|webp);/;function up(e){const t=e.trim().toLowerCase();return!sp.test(t)||lp.test(t)}var cp=["http:","https:","mailto:"];function dp(e){const t=jc(e,!0);if(t.hostname&&(!t.protocol||cp.indexOf(t.protocol)>=0))try{t.hostname=np(t.hostname,function(e){return Qf.test(e)?"xn--"+function(e){const t=[],n=(e=function(e){const t=[];let n=0;const r=e.length;for(;n=55296&&i<=56319&&n=r&&tJf((Gf-i)/l)&&tp("overflow"),i+=(n-r)*l,r=n;for(const u of e)if(uGf&&tp("overflow"),u===r){let e=i;for(let n=Kf;;n+=Kf){const r=n<=o?1:n>=o+26?26:n-o;if(e=0))try{t.hostname=np(t.hostname,function(e){return Yf.test(e)?function(e){const t=[],n=e.length;let r=0,i=128,o=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let s=0;s=128&&tp("not-basic"),t.push(e.charCodeAt(s));for(let s=a>0?a+1:0;s=n&&tp("invalid-input");const a=rp(e.charCodeAt(s++));a>=Kf&&tp("invalid-input"),a>Jf((Gf-r)/t)&&tp("overflow"),r+=a*t;const l=i<=o?1:i>=o+26?26:i-o;if(aJf(Gf/u)&&tp("overflow"),t*=u}const l=t.length+1;o=op(r-a,l,0==a),Jf(r/l)>Gf-i&&tp("overflow"),i+=Jf(r/l),r%=l,t.splice(r++,0,i)}return String.fromCodePoint(...t)}(e.slice(4).toLowerCase()):e})}catch(n){}return Ec(Sc(t),Ec.defaultChars+"%")}function pp(e,t){if(!(this instanceof pp))return new pp(e,t);t||dd(e)||(t=e||{},e="default"),this.inline=new Ff,this.block=new bf,this.core=new lf,this.renderer=new zd,this.linkify=new qf,this.validateLink=up,this.normalizeLink=dp,this.normalizeLinkText=fp,this.utils=cd,this.helpers=hd({},Vd),this.options={},this.configure(e),t&&this.set(t)}pp.prototype.set=function(e){return hd(this.options,e),this},pp.prototype.configure=function(e){const t=this;if(dd(e)){const t=e;if(!(e=ap[t]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&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},pp.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},pp.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},pp.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},pp.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},pp.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},pp.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},pp.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var hp=new pp({breaks:!1,linkify:!0});function mp(e,t){let n;return function(...r){n&&clearTimeout(n),n=setTimeout(()=>{n=null,t(...r)},e)}}ha();var gp=c(pc());function vp(e,t){const n=(0,$u.c)(4);let r,i;n[0]!==e||n[1]!==t?(r=()=>{e&&"string"==typeof t&&t!==e.getValue()&&e.setValue(t)},i=[e,t],n[0]=e,n[1]=t,n[2]=r,n[3]=i):(r=n[2],i=n[3]),(0,Fu.useEffect)(r,i)}function yp(e,t,n){const r=(0,$u.c)(5);let i,o;r[0]!==e||r[1]!==t||r[2]!==n?(i=()=>{null==e||e.setOption(t,n)},o=[e,t,n],r[0]=e,r[1]=t,r[2]=n,r[3]=i,r[4]=o):(i=r[3],o=r[4]),(0,Fu.useEffect)(i,o)}function bp(e,t,n,r,i){const o=(0,$u.c)(9);let a;o[0]!==i?(a={nonNull:!0,caller:i},o[0]=i,o[1]=a):a=o[1];const{updateActiveTabValues:s}=Qm(a);let l,u;o[2]!==t||o[3]!==e||o[4]!==n||o[5]!==r||o[6]!==s?(l=()=>{if(!e)return;const{storage:i}=Uu.getState(),o=mp(500,e=>{null!==n&&i.set(n,e)}),a=mp(100,e=>{s({[r]:e})}),l=(e,n)=>{if(!n)return;const r=e.getValue();o(r),a(r),null==t||t(r)};return e.on("change",l),()=>e.off("change",l)},u=[t,e,n,r,s],o[2]=t,o[3]=e,o[4]=n,o[5]=r,o[6]=s,o[7]=l,o[8]=u):(l=o[7],u=o[8]),(0,Fu.useEffect)(l,u)}function wp(e,t){const n=(0,$u.c)(7),{schema:r,setSchemaReference:i}=bc(),o=gc();let a,s;n[0]!==t||n[1]!==e||n[2]!==o||n[3]!==r||n[4]!==i?(a=()=>{if(!e)return;const n=(e,n)=>{!function(e,t,{schema:n,setSchemaReference:r},i,o){function a(e){const t=null==i?void 0:i.referencePlugin;if(!(n&&t&&e.currentTarget instanceof HTMLElement))return;const a=e.currentTarget.textContent||"",s=n.getType(a);s&&(i.setVisiblePlugin(t),r({kind:"Type",type:s}),null==o||o(s))}dc([],{useCommonAddons:!1}).then(e=>{let n,r,i,o,s,l,u,c,d;e.on(t,"select",(e,t)=>{if(!n){const e=t.parentNode;n=document.createElement("div"),n.className="CodeMirror-hint-information",e.append(n);const f=document.createElement("header");f.className="CodeMirror-hint-information-header",n.append(f),r=document.createElement("span"),r.className="CodeMirror-hint-information-field-name",f.append(r),i=document.createElement("span"),i.className="CodeMirror-hint-information-type-name-pill",f.append(i),o=document.createElement("span"),i.append(o),s=document.createElement("a"),s.className="CodeMirror-hint-information-type-name",s.href="javascript:void 0",s.addEventListener("click",a),i.append(s),l=document.createElement("span"),i.append(l),u=document.createElement("div"),u.className="CodeMirror-hint-information-description",n.append(u),c=document.createElement("div"),c.className="CodeMirror-hint-information-deprecation",n.append(c);const p=document.createElement("span");p.className="CodeMirror-hint-information-deprecation-label",p.textContent="Deprecated",c.append(p),d=document.createElement("div"),d.className="CodeMirror-hint-information-deprecation-reason",c.append(d);const h=parseInt(window.getComputedStyle(n).paddingBottom.replace(/px$/,""),10)||0,m=parseInt(window.getComputedStyle(n).maxHeight.replace(/px$/,""),10)||0,g=()=>{n&&(n.style.paddingTop=e.scrollTop+h+"px",n.style.maxHeight=e.scrollTop+m+"px")};let v;e.addEventListener("scroll",g),e.addEventListener("DOMNodeRemoved",v=t=>{t.target===e&&(e.removeEventListener("scroll",g),e.removeEventListener("DOMNodeRemoved",v),null==n||n.removeEventListener("click",a),n=null,r=null,i=null,o=null,s=null,l=null,u=null,c=null,d=null,v=null)})}if(r&&(r.textContent=e.text),i&&o&&s&&l)if(e.type){i.style.display="inline";const t=e=>{ln(e)?(l.textContent="!"+l.textContent,t(e.ofType)):sn(e)?(o.textContent+="[",l.textContent="]"+l.textContent,t(e.ofType)):s.textContent=e.name};o.textContent="",l.textContent="",t(e.type)}else o.textContent="",s.textContent="",l.textContent="",i.style.display="none";u&&(e.description?(u.style.display="block",u.innerHTML=hp.render(e.description)):(u.style.display="none",u.innerHTML="")),c&&d&&(e.deprecationReason?(c.style.display="block",d.innerHTML=hp.render(e.deprecationReason)):(c.style.display="none",d.innerHTML=""))})})}(0,n,{schema:r,setSchemaReference:i},o,e=>{null==t||t({kind:"Type",type:e,schema:r||void 0})})};return e.on("hasCompletion",n),()=>e.off("hasCompletion",n)},s=[t,e,o,r,i],n[0]=t,n[1]=e,n[2]=o,n[3]=r,n[4]=i,n[5]=a,n[6]=s):(a=n[5],s=n[6]),(0,Fu.useEffect)(a,s)}function xp(e,t,n){const r=(0,$u.c)(5);let i,o;r[0]!==n||r[1]!==e||r[2]!==t?(i=()=>{if(e){for(const n of t)e.removeKeyMap(n);if(n){const r={};for(const e of t)r[e]=()=>n();e.addKeyMap(r)}}},o=[e,t,n],r[0]=n,r[1]=e,r[2]=t,r[3]=i,r[4]=o):(i=r[3],o=r[4]),(0,Fu.useEffect)(i,o)}ha();var Ep=Tp,kp=_p,Cp=Ap,Sp=Dp;function Tp(e){const t=(0,$u.c)(7);let n;t[0]!==e?(n=void 0===e?{}:e,t[0]=e,t[1]=n):n=t[1];const{caller:r,onCopyQuery:i}=n,o=r||Ep;let a;t[2]!==o?(a={nonNull:!0,caller:o},t[2]=o,t[3]=a):a=t[3];const{queryEditor:s}=Qm(a);let l;return t[4]!==i||t[5]!==s?(l=()=>{if(!s)return;const e=s.getValue();(0,gp.default)(e),null==i||i(e)},t[4]=i,t[5]=s,t[6]=l):l=t[6],l}function _p(e){const t=(0,$u.c)(7);let n;t[0]!==e?(n=void 0===e?{}:e,t[0]=e,t[1]=n):n=t[1];const{caller:r}=n,i=r||kp;let o;t[2]!==i?(o={nonNull:!0,caller:i},t[2]=i,t[3]=o):o=t[3];const{queryEditor:a}=Qm(o),{schema:s}=bc();let l;return t[4]!==a||t[5]!==s?(l=()=>{const e=null==a?void 0:a.documentAST,t=null==a?void 0:a.getValue();e&&t&&a.setValue(It(Ta(e,s)))},t[4]=a,t[5]=s,t[6]=l):l=t[6],l}function Np(e){return It(Ze(e))}function Ap(e){const t=(0,$u.c)(9);let n;t[0]!==e?(n=void 0===e?{}:e,t[0]=e,t[1]=n):n=t[1];const{caller:r,onPrettifyQuery:i}=n,o=void 0===i?Np:i,a=r||Cp;let s;t[2]!==a?(s={nonNull:!0,caller:a},t[2]=a,t[3]=s):s=t[3];const{queryEditor:l,headerEditor:u,variableEditor:c}=Qm(s);let d;return t[4]!==u||t[5]!==o||t[6]!==l||t[7]!==c?(d=async()=>{if(c){const t=c.getValue();try{const e=JSON.stringify(JSON.parse(t),null,2);e!==t&&c.setValue(e)}catch(e){}}if(u){const e=u.getValue();try{const t=JSON.stringify(JSON.parse(e),null,2);t!==e&&u.setValue(t)}catch(t){}}if(l){const e=l.getValue();try{const t=await o(e);t!==e&&l.setValue(t)}catch(n){}}},t[4]=u,t[5]=o,t[6]=l,t[7]=c,t[8]=d):d=t[8],d}function Dp(e){const t=(0,$u.c)(8);let n;t[0]!==e?(n=void 0===e?{}:e,t[0]=e,t[1]=n):n=t[1];const{getDefaultFieldNames:r,caller:i}=n,{schema:o}=bc(),a=i||Sp;let s;t[2]!==a?(s={nonNull:!0,caller:a},t[2]=a,t[3]=s):s=t[3];const{queryEditor:l}=Qm(s);let u;return t[4]!==r||t[5]!==l||t[6]!==o?(u=()=>{if(!l)return;const{insertions:e,result:t}=xa(o,l.getValue(),r);return e&&e.length>0&&l.operation(()=>{const n=l.getCursor(),r=l.indexFromPos(n);l.setValue(t||"");let i=0;const o=e.map(e=>{const{index:t,string:n}=e;return i+=n.length,l.markText(l.posFromIndex(t+i),l.posFromIndex(t+i),{className:"auto-inserted-leaf",clearOnEnter:!0,title:"Automatically added leaf fields"})});setTimeout(()=>{for(const e of o)e.clear()},7e3);let a=r;for(const{index:t,string:s}of e)t{var n;n=function(e){e.defineMode("javascript",function(t,n){var r,i,o=t.indentUnit,a=n.statementIndent,s=n.jsonld,l=n.json||s,u=!1!==n.trackScope,c=n.typescript,d=n.wordCharacters||/[\w$\xa1-\uffff]/,f=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("keyword d"),o=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:e("new"),delete:r,void:r,throw:r,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r}}(),p=/[+\-*&%=<>!?|~^@]/,h=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function m(e,t,n){return r=e,i=n,t}function g(e,t){var n,r=e.next();if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){var r,i=!1;if(s&&"@"==e.peek()&&e.match(h))return t.tokenize=g,m("jsonld-keyword","meta");for(;null!=(r=e.next())&&(r!=n||i);)i=!i&&"\\"==r;return i||(t.tokenize=g),m("string","string")}),t.tokenize(e,t);if("."==r&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return m("number","number");if("."==r&&e.match(".."))return m("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return m(r);if("="==r&&e.eat(">"))return m("=>","operator");if("0"==r&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return m("number","number");if(/\d/.test(r))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),m("number","number");if("/"==r)return e.eat("*")?(t.tokenize=v,v(e,t)):e.eat("/")?(e.skipToEnd(),m("comment","comment")):Je(e,t,1)?(function(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),m("regexp","string-2")):(e.eat("="),m("operator","operator",e.current()));if("`"==r)return t.tokenize=y,y(e,t);if("#"==r&&"!"==e.peek())return e.skipToEnd(),m("meta","meta");if("#"==r&&e.eatWhile(d))return m("variable","property");if("<"==r&&e.match("!--")||"-"==r&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),m("comment","comment");if(p.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-|&?]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),"?"==r&&e.eat(".")?m("."):m("operator","operator",e.current());if(d.test(r)){e.eatWhile(d);var i=e.current();if("."!=t.lastType){if(f.propertyIsEnumerable(i)){var o=f[i];return m(o.type,o.style,i)}if("async"==i&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return m("async","keyword",i)}return m("variable","variable",i)}}function v(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=g;break}r="*"==n}return m("comment","comment")}function y(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=g;break}r=!r&&"\\"==n}return m("quasi","string-2",e.current())}function b(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(c){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var i=0,o=!1,a=n-1;a>=0;--a){var s=e.string.charAt(a),l="([{}])".indexOf(s);if(l>=0&&l<3){if(!i){++a;break}if(0==--i){"("==s&&(o=!0);break}}else if(l>=3&&l<6)++i;else if(d.test(s))o=!0;else if(/["'\/`]/.test(s))for(;;--a){if(0==a)return;if(e.string.charAt(a-1)==s&&"\\"!=e.string.charAt(a-2)){a--;break}}else if(o&&!i){++a;break}}o&&!i&&(t.fatArrowAt=a)}}var w={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function x(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function E(e,t){if(!u)return!1;for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==t)return!0}function k(e,t,n,r,i){var o=e.cc;for(C.state=e,C.stream=i,C.marked=null,C.cc=o,C.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():l?$:B)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return C.marked?C.marked:"variable"==n&&E(e,r)?"variable-2":t}}var C={state:null,column:null,marked:null,cc:null};function S(){for(var e=arguments.length-1;e>=0;e--)C.cc.push(arguments[e])}function T(){return S.apply(null,arguments),!0}function _(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function N(e){var t=C.state;if(C.marked="def",u){if(t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var r=A(e,t.context);if(null!=r)return void(t.context=r)}else if(!_(e,t.localVars))return void(t.localVars=new L(e,t.localVars));n.globalVars&&!_(e,t.globalVars)&&(t.globalVars=new L(e,t.globalVars))}}function A(e,t){if(t){if(t.block){var n=A(e,t.prev);return n?n==t.prev?t:new O(n,t.vars,!0):null}return _(e,t.vars)?t:new O(t.prev,new L(e,t.vars),!1)}return null}function D(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function O(e,t,n){this.prev=e,this.vars=t,this.block=n}function L(e,t){this.name=e,this.next=t}var I=new L("this",new L("arguments",null));function M(){C.state.context=new O(C.state.context,C.state.localVars,!1),C.state.localVars=I}function F(){C.state.context=new O(C.state.context,C.state.localVars,!0),C.state.localVars=null}function P(){C.state.localVars=C.state.context.vars,C.state.context=C.state.context.prev}function R(e,t){var n=function(){var n=C.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new x(r,C.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function j(){var e=C.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function V(e){return function t(n){return n==e?T():";"==e||"}"==n||")"==n||"]"==n?S():T(t)}}function B(e,t){return"var"==e?T(R("vardef",t),Ce,V(";"),j):"keyword a"==e?T(R("form"),H,B,j):"keyword b"==e?T(R("form"),B,j):"keyword d"==e?C.stream.match(/^\s*$/,!1)?T():T(R("stat"),q,V(";"),j):"debugger"==e?T(V(";")):"{"==e?T(R("}"),F,le,j,P):";"==e?T():"if"==e?("else"==C.state.lexical.info&&C.state.cc[C.state.cc.length-1]==j&&C.state.cc.pop()(),T(R("form"),H,B,j,De)):"function"==e?T(Me):"for"==e?T(R("form"),F,Oe,B,P,j):"class"==e||c&&"interface"==t?(C.marked="keyword",T(R("form","class"==e?e:t),Ve,j)):"variable"==e?c&&"declare"==t?(C.marked="keyword",T(B)):c&&("module"==t||"enum"==t||"type"==t)&&C.stream.match(/^\s*\w/,!1)?(C.marked="keyword","enum"==t?T(Xe):"type"==t?T(Pe,V("operator"),pe,V(";")):T(R("form"),Se,V("{"),R("}"),le,j,j)):c&&"namespace"==t?(C.marked="keyword",T(R("form"),$,B,j)):c&&"abstract"==t?(C.marked="keyword",T(B)):T(R("stat"),te):"switch"==e?T(R("form"),H,V("{"),R("}","switch"),F,le,j,j,P):"case"==e?T($,V(":")):"default"==e?T(V(":")):"catch"==e?T(R("form"),M,z,B,j,P):"export"==e?T(R("stat"),Ue,j):"import"==e?T(R("stat"),We,j):"async"==e?T(B):"@"==t?T($,B):S(R("stat"),$,V(";"),j)}function z(e){if("("==e)return T(Re,V(")"))}function $(e,t){return W(e,t,!1)}function U(e,t){return W(e,t,!0)}function H(e){return"("!=e?S():T(R(")"),q,V(")"),j)}function W(e,t,n){if(C.state.fatArrowAt==C.stream.start){var r=n?Z:X;if("("==e)return T(M,R(")"),ae(Re,")"),j,V("=>"),r,P);if("variable"==e)return S(M,Se,V("=>"),r,P)}var i=n?K:G;return w.hasOwnProperty(e)?T(i):"function"==e?T(Me,i):"class"==e||c&&"interface"==t?(C.marked="keyword",T(R("form"),je,j)):"keyword c"==e||"async"==e?T(n?U:$):"("==e?T(R(")"),q,V(")"),j,i):"operator"==e||"spread"==e?T(n?U:$):"["==e?T(R("]"),Qe,j,i):"{"==e?se(re,"}",null,i):"quasi"==e?S(Y,i):"new"==e?T(function(e){return function(t){return"."==t?T(e?ee:J):"variable"==t&&c?T(xe,e?K:G):S(e?U:$)}}(n)):T()}function q(e){return e.match(/[;\}\)\],]/)?S():S($)}function G(e,t){return","==e?T(q):K(e,t,!1)}function K(e,t,n){var r=0==n?G:K,i=0==n?$:U;return"=>"==e?T(M,n?Z:X,P):"operator"==e?/\+\+|--/.test(t)||c&&"!"==t?T(r):c&&"<"==t&&C.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?T(R(">"),ae(pe,">"),j,r):"?"==t?T($,V(":"),i):T(i):"quasi"==e?S(Y,r):";"!=e?"("==e?se(U,")","call",r):"."==e?T(ne,r):"["==e?T(R("]"),q,V("]"),j,r):c&&"as"==t?(C.marked="keyword",T(pe,r)):"regexp"==e?(C.state.lastType=C.marked="operator",C.stream.backUp(C.stream.pos-C.stream.start-1),T(i)):void 0:void 0}function Y(e,t){return"quasi"!=e?S():"${"!=t.slice(t.length-2)?T(Y):T(q,Q)}function Q(e){if("}"==e)return C.marked="string-2",C.state.tokenize=y,T(Y)}function X(e){return b(C.stream,C.state),S("{"==e?B:$)}function Z(e){return b(C.stream,C.state),S("{"==e?B:U)}function J(e,t){if("target"==t)return C.marked="keyword",T(G)}function ee(e,t){if("target"==t)return C.marked="keyword",T(K)}function te(e){return":"==e?T(j,B):S(G,V(";"),j)}function ne(e){if("variable"==e)return C.marked="property",T()}function re(e,t){return"async"==e?(C.marked="property",T(re)):"variable"==e||"keyword"==C.style?(C.marked="property","get"==t||"set"==t?T(ie):(c&&C.state.fatArrowAt==C.stream.start&&(n=C.stream.match(/^\s*:\s*/,!1))&&(C.state.fatArrowAt=C.stream.pos+n[0].length),T(oe))):"number"==e||"string"==e?(C.marked=s?"property":C.style+" property",T(oe)):"jsonld-keyword"==e?T(oe):c&&D(t)?(C.marked="keyword",T(re)):"["==e?T($,ue,V("]"),oe):"spread"==e?T(U,oe):"*"==t?(C.marked="keyword",T(re)):":"==e?S(oe):void 0;var n}function ie(e){return"variable"!=e?S(oe):(C.marked="property",T(Me))}function oe(e){return":"==e?T(U):"("==e?S(Me):void 0}function ae(e,t,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=C.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),T(function(n,r){return n==t||r==t?S():S(e)},r)}return i==t||o==t?T():n&&n.indexOf(";")>-1?S(e):T(V(t))}return function(n,i){return n==t||i==t?T():S(e,r)}}function se(e,t,n){for(var r=3;r"),pe):"quasi"==e?S(ve,we):void 0}function he(e){if("=>"==e)return T(pe)}function me(e){return e.match(/[\}\)\]]/)?T():","==e||";"==e?T(me):S(ge,me)}function ge(e,t){return"variable"==e||"keyword"==C.style?(C.marked="property",T(ge)):"?"==t||"number"==e||"string"==e?T(ge):":"==e?T(pe):"["==e?T(V("variable"),ce,V("]"),ge):"("==e?S(Fe,ge):e.match(/[;\}\)\],]/)?void 0:T()}function ve(e,t){return"quasi"!=e?S():"${"!=t.slice(t.length-2)?T(ve):T(pe,ye)}function ye(e){if("}"==e)return C.marked="string-2",C.state.tokenize=y,T(ve)}function be(e,t){return"variable"==e&&C.stream.match(/^\s*[?:]/,!1)||"?"==t?T(be):":"==e?T(pe):"spread"==e?T(be):S(pe)}function we(e,t){return"<"==t?T(R(">"),ae(pe,">"),j,we):"|"==t||"."==e||"&"==t?T(pe):"["==e?T(pe,V("]"),we):"extends"==t||"implements"==t?(C.marked="keyword",T(pe)):"?"==t?T(pe,V(":"),pe):void 0}function xe(e,t){if("<"==t)return T(R(">"),ae(pe,">"),j,we)}function Ee(){return S(pe,ke)}function ke(e,t){if("="==t)return T(pe)}function Ce(e,t){return"enum"==t?(C.marked="keyword",T(Xe)):S(Se,ue,Ne,Ae)}function Se(e,t){return c&&D(t)?(C.marked="keyword",T(Se)):"variable"==e?(N(t),T()):"spread"==e?T(Se):"["==e?se(_e,"]"):"{"==e?se(Te,"}"):void 0}function Te(e,t){return"variable"!=e||C.stream.match(/^\s*:/,!1)?("variable"==e&&(C.marked="property"),"spread"==e?T(Se):"}"==e?S():"["==e?T($,V("]"),V(":"),Te):T(V(":"),Se,Ne)):(N(t),T(Ne))}function _e(){return S(Se,Ne)}function Ne(e,t){if("="==t)return T(U)}function Ae(e){if(","==e)return T(Ce)}function De(e,t){if("keyword b"==e&&"else"==t)return T(R("form","else"),B,j)}function Oe(e,t){return"await"==t?T(Oe):"("==e?T(R(")"),Le,j):void 0}function Le(e){return"var"==e?T(Ce,Ie):"variable"==e?T(Ie):S(Ie)}function Ie(e,t){return")"==e?T():";"==e?T(Ie):"in"==t||"of"==t?(C.marked="keyword",T($,Ie)):S($,Ie)}function Me(e,t){return"*"==t?(C.marked="keyword",T(Me)):"variable"==e?(N(t),T(Me)):"("==e?T(M,R(")"),ae(Re,")"),j,de,B,P):c&&"<"==t?T(R(">"),ae(Ee,">"),j,Me):void 0}function Fe(e,t){return"*"==t?(C.marked="keyword",T(Fe)):"variable"==e?(N(t),T(Fe)):"("==e?T(M,R(")"),ae(Re,")"),j,de,P):c&&"<"==t?T(R(">"),ae(Ee,">"),j,Fe):void 0}function Pe(e,t){return"keyword"==e||"variable"==e?(C.marked="type",T(Pe)):"<"==t?T(R(">"),ae(Ee,">"),j):void 0}function Re(e,t){return"@"==t&&T($,Re),"spread"==e?T(Re):c&&D(t)?(C.marked="keyword",T(Re)):c&&"this"==e?T(ue,Ne):S(Se,ue,Ne)}function je(e,t){return"variable"==e?Ve(e,t):Be(e,t)}function Ve(e,t){if("variable"==e)return N(t),T(Be)}function Be(e,t){return"<"==t?T(R(">"),ae(Ee,">"),j,Be):"extends"==t||"implements"==t||c&&","==e?("implements"==t&&(C.marked="keyword"),T(c?pe:$,Be)):"{"==e?T(R("}"),ze,j):void 0}function ze(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||c&&D(t))&&C.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1)?(C.marked="keyword",T(ze)):"variable"==e||"keyword"==C.style?(C.marked="property",T($e,ze)):"number"==e||"string"==e?T($e,ze):"["==e?T($,ue,V("]"),$e,ze):"*"==t?(C.marked="keyword",T(ze)):c&&"("==e?S(Fe,ze):";"==e||","==e?T(ze):"}"==e?T():"@"==t?T($,ze):void 0}function $e(e,t){if("!"==t)return T($e);if("?"==t)return T($e);if(":"==e)return T(pe,Ne);if("="==t)return T(U);var n=C.state.lexical.prev;return S(n&&"interface"==n.info?Fe:Me)}function Ue(e,t){return"*"==t?(C.marked="keyword",T(Ye,V(";"))):"default"==t?(C.marked="keyword",T($,V(";"))):"{"==e?T(ae(He,"}"),Ye,V(";")):S(B)}function He(e,t){return"as"==t?(C.marked="keyword",T(V("variable"))):"variable"==e?S(U,He):void 0}function We(e){return"string"==e?T():"("==e?S($):"."==e?S(G):S(qe,Ge,Ye)}function qe(e,t){return"{"==e?se(qe,"}"):("variable"==e&&N(t),"*"==t&&(C.marked="keyword"),T(Ke))}function Ge(e){if(","==e)return T(qe,Ge)}function Ke(e,t){if("as"==t)return C.marked="keyword",T(qe)}function Ye(e,t){if("from"==t)return C.marked="keyword",T($)}function Qe(e){return"]"==e?T():S(ae(U,"]"))}function Xe(){return S(R("form"),Se,V("{"),R("}"),ae(Ze,"}"),j,j)}function Ze(){return S(Se,Ne)}function Je(e,t,n){return t.tokenize==g&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return M.lex=F.lex=!0,P.lex=!0,j.lex=!0,{startState:function(e){var t={tokenize:g,lastType:"sof",cc:[],lexical:new x((e||0)-o,0,"block",!1),localVars:n.localVars,context:n.localVars&&new O(null,null,!1),indented:e||0};return n.globalVars&&"object"==typeof n.globalVars&&(t.globalVars=n.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),b(e,t)),t.tokenize!=v&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==r?n:(t.lastType="operator"!=r||"++"!=i&&"--"!=i?r:"incdec",k(t,n,r,i,e))},indent:function(t,r){if(t.tokenize==v||t.tokenize==y)return e.Pass;if(t.tokenize!=g)return 0;var i,s=r&&r.charAt(0),l=t.lexical;if(!/^\s*else\b/.test(r))for(var u=t.cc.length-1;u>=0;--u){var c=t.cc[u];if(c==j)l=l.prev;else if(c!=De&&c!=P)break}for(;("stat"==l.type||"form"==l.type)&&("}"==s||(i=t.cc[t.cc.length-1])&&(i==G||i==K)&&!/^[,\.=+\-*:?[\(]/.test(r));)l=l.prev;a&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var d=l.type,f=s==d;return"vardef"==d?l.indented+("operator"==t.lastType||","==t.lastType?l.info.length+1:0):"form"==d&&"{"==s?l.indented:"form"==d?l.indented+o:"stat"==d?l.indented+(function(e,t){return"operator"==e.lastType||","==e.lastType||p.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}(t,r)?a||o:0):"switch"!=l.info||f||0==n.doubleIndentSwitch?l.align?l.column+(f?0:1):l.indented+(f?0:o):l.indented+(/^(?:case|default)\b/.test(r)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:s,jsonMode:l,expressionAllowed:Je,skipExpression:function(t){k(t,"atom","atom","true",new e.StringStream("",2,null))}}}),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/manifest+json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})},"object"==typeof e&&"object"==typeof t?n(Qu()):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}),Lp=Ip;function Ip(e,t){const n=(0,$u.c)(17);let r;n[0]!==e?(r=void 0===e?{}:e,n[0]=e,n[1]=r):r=n[1];const{editorTheme:i,keyMap:o,onEdit:a,readOnly:s}=r,l=void 0===i?lc:i,u=void 0===o?uc:o,d=void 0!==s&&s,f=t||Lp;let p;n[2]!==f?(p={nonNull:!0,caller:f},n[2]=f,n[3]=p):p=n[3];const{initialHeaders:h,headerEditor:m,setHeaderEditor:g,shouldPersistHeaders:v}=Qm(p),y=ng(),b=t||Lp;let w;n[4]!==b?(w={caller:b},n[4]=b,n[5]=w):w=n[5];const x=_p(w),E=t||Lp;let k;n[6]!==E?(k={caller:E},n[6]=E,n[7]=k):k=n[7];const C=Ap(k),S=(0,Fu.useRef)(null);let T,_,N,A,D;return n[8]!==l||n[9]!==h||n[10]!==d||n[11]!==g?(T=()=>{let e=!0;return dc([ga(()=>Promise.resolve().then(()=>c(Op())),void 0,import.meta.url)]).then(t=>{if(!e)return;const n=S.current;if(!n)return;const r=t(n,{value:h,lineNumbers:!0,tabSize:2,mode:{name:"javascript",json:!0},theme:l,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!d&&"nocursor",foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:cc});r.addKeyMap({"Cmd-Space"(){r.showHint({completeSingle:!1,container:n})},"Ctrl-Space"(){r.showHint({completeSingle:!1,container:n})},"Alt-Space"(){r.showHint({completeSingle:!1,container:n})},"Shift-Space"(){r.showHint({completeSingle:!1,container:n})}}),r.on("keyup",Mp),g(r)}),()=>{e=!1}},_=[l,h,d,g],n[8]=l,n[9]=h,n[10]=d,n[11]=g,n[12]=T,n[13]=_):(T=n[12],_=n[13]),(0,Fu.useEffect)(T,_),yp(m,"keyMap",u),bp(m,a,v?Fp:null,"headers",Lp),n[14]===Symbol.for("react.memo_cache_sentinel")?(N=["Cmd-Enter","Ctrl-Enter"],n[14]=N):N=n[14],xp(m,N,null==y?void 0:y.run),n[15]===Symbol.for("react.memo_cache_sentinel")?(A=["Shift-Ctrl-P"],n[15]=A):A=n[15],xp(m,A,C),n[16]===Symbol.for("react.memo_cache_sentinel")?(D=["Shift-Ctrl-M"],n[16]=D):D=n[16],xp(m,D,x),S}function Mp(e,t){const{code:n,key:r,shiftKey:i}=t,o=n.startsWith("Key"),a=!i&&n.startsWith("Digit");(o||a||"_"===r||'"'===r)&&e.execCommand("autocomplete")}var Fp="headers",Pp=Array.from({length:11},(e,t)=>String.fromCharCode(8192+t)).concat(["\u2028","\u2029"," "," "]),Rp=new RegExp("["+Pp.join("")+"]","g");function jp(e){return e.replace(Rp," ")}var Vp,Bp,zp,$p,Up=s((e,t)=>{var n;n=function(e){var t={},n=/[^\s\u00a0]/,r=e.Pos,i=e.cmpPos;function o(e){var t=e.search(n);return-1==t?0:t}function a(e,t){var n=e.getMode();return!1!==n.useInnerComments&&n.innerMode?e.getModeAt(t):n}e.commands.toggleComment=function(e){e.toggleComment()},e.defineExtension("toggleComment",function(e){e||(e=t);for(var n=this,i=1/0,o=this.listSelections(),a=null,s=o.length-1;s>=0;s--){var l=o[s].from(),u=o[s].to();l.line>=i||(u.line>=i&&(u=r(i,0)),i=l.line,null==a?n.uncomment(l,u,e)?a="un":(n.lineComment(l,u,e),a="line"):"un"==a?n.uncomment(l,u,e):n.lineComment(l,u,e))}}),e.defineExtension("lineComment",function(e,i,s){s||(s=t);var l=this,u=a(l,e),c=l.getLine(e.line);if(null!=c&&(d=e,f=c,!/\bstring\b/.test(l.getTokenTypeAt(r(d.line,0)))||/^[\'\"\`]/.test(f))){var d,f,p=s.lineComment||u.lineComment;if(p){var h=Math.min(0!=i.ch||i.line==e.line?i.line+1:i.line,l.lastLine()+1),m=null==s.padding?" ":s.padding,g=s.commentBlankLines||e.line==i.line;l.operation(function(){if(s.indent){for(var t=null,i=e.line;ia.length)&&(t=a)}for(i=e.line;if||l.operation(function(){if(0!=s.fullLines){var t=n.test(l.getLine(f));l.replaceRange(p+d,r(f)),l.replaceRange(c+p,r(e.line,0));var a=s.blockCommentLead||u.blockCommentLead;if(null!=a)for(var h=e.line+1;h<=f;++h)(h!=f||t)&&l.replaceRange(a+p,r(h,0))}else{var m=0==i(l.getCursor("to"),o),g=!l.somethingSelected();l.replaceRange(d,o),m&&l.setSelection(g?o:l.getCursor("from"),o),l.replaceRange(c,e)}})}}else(s.lineComment||u.lineComment)&&0!=s.fullLines&&l.lineComment(e,o,s)}),e.defineExtension("uncomment",function(e,i,o){o||(o=t);var s,l=this,u=a(l,e),c=Math.min(0!=i.ch||i.line==e.line?i.line:i.line-1,l.lastLine()),d=Math.min(e.line,c),f=o.lineComment||u.lineComment,p=[],h=null==o.padding?" ":o.padding;e:if(f){for(var m=d;m<=c;++m){var g=l.getLine(m),v=g.indexOf(f);if(v>-1&&!/comment/.test(l.getTokenTypeAt(r(m,v+1)))&&(v=-1),-1==v&&n.test(g))break e;if(v>-1&&n.test(g.slice(0,v)))break e;p.push(g)}if(l.operation(function(){for(var e=d;e<=c;++e){var t=p[e-d],n=t.indexOf(f),i=n+f.length;n<0||(t.slice(i,i+h.length)==h&&(i+=h.length),s=!0,l.replaceRange("",r(e,n),r(e,i)))}}),s)return!0}var y=o.blockCommentStart||u.blockCommentStart,b=o.blockCommentEnd||u.blockCommentEnd;if(!y||!b)return!1;var w=o.blockCommentLead||u.blockCommentLead,x=l.getLine(d),E=x.indexOf(y);if(-1==E)return!1;var k=c==d?x:l.getLine(c),C=k.indexOf(b,c==d?E+y.length:0),S=r(d,E+1),T=r(c,C+1);if(-1==C||!/comment/.test(l.getTokenTypeAt(S))||!/comment/.test(l.getTokenTypeAt(T))||l.getRange(S,T,"\n").indexOf(b)>-1)return!1;var _=x.lastIndexOf(y,e.ch),N=-1==_?-1:x.slice(0,e.ch).indexOf(b,_+y.length);if(-1!=_&&-1!=N&&N+b.length!=e.ch)return!1;N=k.indexOf(b,i.ch);var A=k.slice(i.ch).lastIndexOf(y,N-i.ch);return _=-1==N||-1==A?-1:i.ch+A,(-1==N||-1==_||_==i.ch)&&(l.operation(function(){l.replaceRange("",r(c,C-(h&&k.slice(C-h.length,C)==h?h.length:0)),r(c,C+b.length));var e=E+y.length;if(h&&x.slice(e,e+h.length)==h&&(e+=h.length),l.replaceRange("",r(d,E),r(d,e)),w)for(var t=d+1;t<=c;++t){var i=l.getLine(t),o=i.indexOf(w);if(-1!=o&&!n.test(i.slice(0,o))){var a=o+w.length;h&&i.slice(a,a+h.length)==h&&(a+=h.length),l.replaceRange("",r(t,o),r(t,a))}}}),!0)})},"object"==typeof e&&"object"==typeof t?n(Qu()):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}),Hp=s((e,t)=>{var n;n=function(e){function t(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function n(e){return e.state.search||(e.state.search=new t)}function r(e){return"string"==typeof e&&e==e.toLowerCase()}function i(e,t,n){return e.getSearchCursor(t,n,{caseFold:r(t),multiline:!0})}function o(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0,bottom:e.options.search.bottom}):i(prompt(n,r))}function a(e){return e.replace(/\\([nrt\\])/g,function(e,t){return"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"==t?"\\":e})}function s(e){var t=e.match(/^\/(.*)\/([a-z]*)$/);if(t)try{e=new RegExp(t[1],-1==t[2].indexOf("i")?"":"i")}catch(RR){}else e=a(e);return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}function l(e,t,n){t.queryText=n,t.query=s(n),e.removeOverlay(t.overlay,r(t.query)),t.overlay=function(e,t){return"string"==typeof e?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):e.global||(e=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(t){e.lastIndex=t.pos;var n=e.exec(t.string);if(n&&n.index==t.pos)return t.pos+=n[0].length||1,"searching";n?t.pos=n.index:t.skipToEnd()}}}(t.query,r(t.query)),e.addOverlay(t.overlay),e.showMatchesOnScrollbar&&(t.annotate&&(t.annotate.clear(),t.annotate=null),t.annotate=e.showMatchesOnScrollbar(t.query,r(t.query)))}function u(t,r,i,a){var s=n(t);if(s.query)return c(t,r);var u=t.getSelection()||s.lastQuery;if(u instanceof RegExp&&"x^"==u.source&&(u=null),i&&t.openDialog){var f=null,h=function(n,r){e.e_stop(r),n&&(n!=s.queryText&&(l(t,s,n),s.posFrom=s.posTo=t.getCursor()),f&&(f.style.opacity=1),c(t,r.shiftKey,function(e,n){var r;n.line<3&&document.querySelector&&(r=t.display.wrapper.querySelector(".CodeMirror-dialog"))&&r.getBoundingClientRect().bottom-4>t.cursorCoords(n,"window").top&&((f=r).style.opacity=.4)}))};!function(e,t,n,r,i){e.openDialog(t,r,{value:n,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){d(e)},onKeyDown:i,bottom:e.options.search.bottom})}(t,p(t),u,h,function(r,i){var o=e.keyName(r),a=t.getOption("extraKeys"),s=a&&a[o]||e.keyMap[t.getOption("keyMap")][o];"findNext"==s||"findPrev"==s||"findPersistentNext"==s||"findPersistentPrev"==s?(e.e_stop(r),l(t,n(t),i),t.execCommand(s)):"find"!=s&&"findPersistent"!=s||(e.e_stop(r),h(i,r))}),a&&u&&(l(t,s,u),c(t,r))}else o(t,p(t),"Search for:",u,function(e){e&&!s.query&&t.operation(function(){l(t,s,e),s.posFrom=s.posTo=t.getCursor(),c(t,r)})})}function c(t,r,o){t.operation(function(){var a=n(t),s=i(t,a.query,r?a.posFrom:a.posTo);(s.find(r)||(s=i(t,a.query,r?e.Pos(t.lastLine()):e.Pos(t.firstLine(),0))).find(r))&&(t.setSelection(s.from(),s.to()),t.scrollIntoView({from:s.from(),to:s.to()},20),a.posFrom=s.from(),a.posTo=s.to(),o&&o(s.from(),s.to()))})}function d(e){e.operation(function(){var t=n(e);t.lastQuery=t.query,t.query&&(t.query=t.queryText=null,e.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))})}function f(e,t){var n=e?document.createElement(e):document.createDocumentFragment();for(var r in t)n[r]=t[r];for(var i=2;i{Vp=c(Qu()),Xu(),Au(),Vp.default.registerHelper("hint","graphql",(e,t)=>{const{schema:n,externalFragments:r,autocompleteOptions:i}=t;if(!n)return;const o=e.getCursor(),a=e.getTokenAt(o),s=null!==a.type&&/"|\w/.test(a.string[0])?a.start:a.end,l=new cu(o.line,s),u={list:iu(n,e.getValue(),l,a,r,i).map(e=>{var t;return{text:null!==(t=null==e?void 0:e.rawInsert)&&void 0!==t?t:e.label,type:e.type,description:e.documentation,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason}}),from:{line:o.line,ch:s},to:{line:o.line,ch:a.end}};return(null==u?void 0:u.list)&&u.list.length>0&&(u.from=Vp.default.Pos(u.from.line,u.from.ch),u.to=Vp.default.Pos(u.to.line,u.to.ch),Vp.default.signal(e,"hasCompletion",e,u,a)),u})}),Gp=l({}),Kp=a(()=>{Bp=c(Qu()),Au(),zp=["error","warning","information","hint"],$p={"GraphQL: Validation":"validation","GraphQL: Deprecation":"deprecation","GraphQL: Syntax":"syntax"},Bp.default.registerHelper("lint","graphql",(e,t)=>{const{schema:n,validationRules:r,externalFragments:i}=t;return function(e,t=null,n,r,i){var o,a;let s=null,l="";i&&(l="string"==typeof i?i:i.reduce((e,t)=>e+It(t)+"\n\n",""));const u=l?`${e}\n\n${l}`:e;try{s=Ze(u)}catch(tp){if(tp instanceof G){const t=function(e,t){const n=Dl(),r=n.startState(),i=t.split("\n");pu(i.length>=e.line,"Query text must have more lines than where the error happened");let o=null;for(let u=0;ue!==ki&&e!==Qr&&(!r||e!==si));return n&&Array.prototype.push.apply(i,n),ra(e,t,i).filter(e=>{if(e.message.includes("Unknown directive")&&e.nodes){const t=e.nodes[0];if(t&&t.kind===ae.DIRECTIVE){const e=t.name.value;if("arguments"===e||"argumentDefinitions"===e)return!1}}return!0})}(t,e,n,r).flatMap(e=>ku(e,fu.Error,"Validation")),o=ra(t,e,[sa]).flatMap(e=>ku(e,fu.Warning,"Deprecation"));return i.concat(o)}(s,t,n,r)}(e,n,r,void 0,i).map(e=>({message:e.message,severity:e.severity?zp[e.severity-1]:zp[0],type:e.source?$p[e.source]:void 0,from:Bp.default.Pos(e.range.start.line,e.range.start.character),to:Bp.default.Pos(e.range.end.line,e.range.end.character)}))})});function Yp(e,t){const n=[];let r=e;for(;null==r?void 0:r.kind;)n.push(r),r=r.prevState;for(let i=n.length-1;i>=0;i--)t(n[i])}var Qp=a(()=>{});function Xp(e,t){const n={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return Yp(t,t=>{var r,i;switch(t.kind){case"Query":case"ShortQuery":n.type=e.getQueryType();break;case"Mutation":n.type=e.getMutationType();break;case"Subscription":n.type=e.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":t.type&&(n.type=e.getType(t.type));break;case"Field":case"AliasedField":n.fieldDef=n.type&&t.name?Zp(e,n.parentType,t.name):null,n.type=null===(r=n.fieldDef)||void 0===r?void 0:r.type;break;case"SelectionSet":n.parentType=n.type?yn(n.type):null;break;case"Directive":n.directiveDef=t.name?e.getDirective(t.name):null;break;case"Arguments":const o=t.prevState?"Field"===t.prevState.kind?n.fieldDef:"Directive"===t.prevState.kind?n.directiveDef:"AliasedField"===t.prevState.kind?t.prevState.name&&Zp(e,n.parentType,t.prevState.name):null:null;n.argDefs=o?o.args:null;break;case"Argument":if(n.argDef=null,n.argDefs)for(let e=0;ee.value===t.name):null;break;case"ListValue":const s=n.inputType?gn(n.inputType):null;n.inputType=s instanceof Ht?s.ofType:null;break;case"ObjectValue":const l=n.inputType?yn(n.inputType):null;n.objectFieldDefs=l instanceof Xt?l.getFields():null;break;case"ObjectField":const u=t.name&&n.objectFieldDefs?n.objectFieldDefs[t.name]:null;n.inputType=null==u?void 0:u.type,n.fieldDef=u;break;case"NamedType":n.type=t.name?e.getType(t.name):null}}),n}function Zp(e,t,n){return n===pr.name&&e.getQueryType()===t?pr:n===hr.name&&e.getQueryType()===t?hr:n===mr.name&&fn(t)?mr:t&&t.getFields?t.getFields()[n]:void 0}var Jp=a(()=>{ha(),Qp()});function eh(e){return{kind:"Field",schema:e.schema,field:e.fieldDef,type:oh(e.fieldDef)?null:e.parentType}}function th(e){return{kind:"Directive",schema:e.schema,directive:e.directiveDef}}function nh(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:oh(e.fieldDef)?null:e.parentType}}function rh(e){return{kind:"EnumValue",value:e.enumValue||void 0,type:e.inputType?yn(e.inputType):void 0}}function ih(e,t){return{kind:"Type",schema:e.schema,type:t||e.type}}function oh(e){return"__"===e.name.slice(0,2)}var ah,sh=a(()=>{ha()}),lh=l({});function uh(e,t){const n=e.state.info,r=t.target||t.srcElement;if(!(r instanceof HTMLElement))return;if("SPAN"!==r.nodeName||void 0!==n.hoverTimeout)return;const i=r.getBoundingClientRect(),o=function(){clearTimeout(n.hoverTimeout),n.hoverTimeout=setTimeout(s,l)},a=function(){ah.default.off(document,"mousemove",o),ah.default.off(e.getWrapperElement(),"mouseout",a),clearTimeout(n.hoverTimeout),n.hoverTimeout=void 0},s=function(){ah.default.off(document,"mousemove",o),ah.default.off(e.getWrapperElement(),"mouseout",a),n.hoverTimeout=void 0,function(e,t){const n=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2},"window"),{options:r}=e.state.info,i=r.render||e.getHelper(n,"info");if(i){const o=e.getTokenAt(n,!0);if(o){const a=i(o,r,e,n);a&&function(e,t,n){const r=document.createElement("div");r.className="CodeMirror-info",r.append(n),document.body.append(r);const i=r.getBoundingClientRect(),{marginLeft:o,marginRight:a,marginBottom:s,marginTop:l}=getComputedStyle(r),u=i.right-i.left+parseFloat(o)+parseFloat(a),c=i.bottom-i.top+parseFloat(l)+parseFloat(s);let d=t.bottom;c>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(d=t.top-c),d<0&&(d=t.bottom);let f,p=Math.max(0,window.innerWidth-u-15);p>t.left&&(p=t.left),r.style.opacity="1",r.style.top=d+"px",r.style.left=p+"px";const h=function(){clearTimeout(f)},m=function(){clearTimeout(f),f=setTimeout(g,200)},g=function(){ah.default.off(r,"mouseover",h),ah.default.off(r,"mouseout",m),ah.default.off(e.getWrapperElement(),"mouseout",m),r.style.opacity?(r.style.opacity="0",setTimeout(()=>{r.parentNode&&r.remove()},600)):r.parentNode&&r.remove()};ah.default.on(r,"mouseover",h),ah.default.on(r,"mouseout",m),ah.default.on(e.getWrapperElement(),"mouseout",m)}(e,t,a)}}}(e,i)},l=function(e){const{options:t}=e.state.info;return(null==t?void 0:t.hoverTime)||500}(e);n.hoverTimeout=setTimeout(s,l),ah.default.on(document,"mousemove",o),ah.default.on(e.getWrapperElement(),"mouseout",a)}var ch,dh=a(()=>{(ah=c(Qu())).default.defineOption("info",!1,(e,t,n)=>{if(n&&n!==ah.default.Init){const t=e.state.info.onMouseOver;ah.default.off(e.getWrapperElement(),"mouseover",t),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){const n=e.state.info=function(e){return{options:e instanceof Function?{render:e}:!0===e?{}:e}}(t);n.onMouseOver=uh.bind(null,e),ah.default.on(e.getWrapperElement(),"mouseover",n.onMouseOver)}})}),fh=l({});function ph(e,t,n,r){const i=document.createElement("span");i.className="type-name-pill",r instanceof Wt?(hh(i,t,n,r.ofType),gh(i,"!")):r instanceof Ht?(gh(i,"["),hh(i,t,n,r.ofType),gh(i,"]")):gh(i,(null==r?void 0:r.name)||"","type-name",n,ih(t,r)),e.append(i)}function hh(e,t,n,r){r instanceof Wt?(hh(e,t,n,r.ofType),gh(e,"!")):r instanceof Ht?(gh(e,"["),hh(e,t,n,r.ofType),gh(e,"]")):gh(e,(null==r?void 0:r.name)||"","type-name",n,ih(t,r))}function mh(e,t,n){const{description:r}=n;if(r){const n=document.createElement("div");n.className="info-description",t.renderDescription?n.innerHTML=t.renderDescription(r):n.append(document.createTextNode(r)),e.append(n)}!function(e,t,n){const r=n.deprecationReason;if(r){const n=document.createElement("div");n.className="info-deprecation",e.append(n);const i=document.createElement("span");i.className="info-deprecation-label",i.append(document.createTextNode("Deprecated")),n.append(i);const o=document.createElement("div");o.className="info-deprecation-reason",t.renderDescription?o.innerHTML=t.renderDescription(r):o.append(document.createTextNode(r)),n.append(o)}}(e,t,n)}function gh(e,t,n="",r={onClick:null},i=null){if(n){const{onClick:o}=r;let a;o?(a=document.createElement("a"),a.href="javascript:void 0",a.addEventListener("click",e=>{e.preventDefault(),o(i,e)})):a=document.createElement("span"),a.className=n,a.append(document.createTextNode(t)),e.append(a)}else e.append(document.createTextNode(t))}var vh,yh,bh=a(()=>{ha(),ch=c(Qu()),Jp(),sh(),dh(),ch.default.registerHelper("info","graphql",(e,t)=>{var n;if(!t.schema||!e.state)return;const{kind:r,step:i}=e.state,o=Xp(t.schema,e.state);if("Field"===r&&0===i&&o.fieldDef||"AliasedField"===r&&2===i&&o.fieldDef||"ObjectField"===r&&0===i&&o.fieldDef){const e=document.createElement("div");e.className="CodeMirror-info-header",function(e,t,n){!function(e,t,n){var r;gh(e,(null===(r=t.fieldDef)||void 0===r?void 0:r.name)||"","field-name",n,eh(t))}(e,t,n),ph(e,t,n,t.type)}(e,o,t);const n=document.createElement("div");return n.append(e),mh(n,t,o.fieldDef),n}if("Directive"===r&&1===i&&o.directiveDef){const e=document.createElement("div");e.className="CodeMirror-info-header",function(e,t,n){var r;gh(e,"@"+((null===(r=t.directiveDef)||void 0===r?void 0:r.name)||""),"directive-name",n,th(t))}(e,o,t);const n=document.createElement("div");return n.append(e),mh(n,t,o.directiveDef),n}if("Argument"===r&&0===i&&o.argDef){const e=document.createElement("div");e.className="CodeMirror-info-header",function(e,t,n){var r;gh(e,(null===(r=t.argDef)||void 0===r?void 0:r.name)||"","arg-name",n,nh(t)),ph(e,t,n,t.inputType)}(e,o,t);const n=document.createElement("div");return n.append(e),mh(n,t,o.argDef),n}if("EnumValue"===r&&(null===(n=o.enumValue)||void 0===n?void 0:n.description)){const e=document.createElement("div");e.className="CodeMirror-info-header",function(e,t,n){var r;const i=(null===(r=t.enumValue)||void 0===r?void 0:r.name)||"";hh(e,t,n,t.inputType),gh(e,"."),gh(e,i,"enum-value",n,rh(t))}(e,o,t);const n=document.createElement("div");return n.append(e),mh(n,t,o.enumValue),n}if("NamedType"===r&&o.type&&o.type.description){const e=document.createElement("div");e.className="CodeMirror-info-header",hh(e,o,t,o.type);const n=document.createElement("div");return n.append(e),mh(n,t,o.type),n}})});function wh(e,t){const n=t.target||t.srcElement;if(!(n instanceof HTMLElement))return;if("SPAN"!==(null==n?void 0:n.nodeName))return;const r=n.getBoundingClientRect(),i={left:(r.left+r.right)/2,top:(r.top+r.bottom)/2};e.state.jump.cursor=i,e.state.jump.isHoldingModifier&&kh(e)}function xh(e){e.state.jump.isHoldingModifier||!e.state.jump.cursor?e.state.jump.isHoldingModifier&&e.state.jump.marker&&Ch(e):e.state.jump.cursor=null}function Eh(e,t){if(e.state.jump.isHoldingModifier||t.key!==(yh?"Meta":"Control"))return;e.state.jump.isHoldingModifier=!0,e.state.jump.cursor&&kh(e);const n=o=>{o.code===t.code&&(e.state.jump.isHoldingModifier=!1,e.state.jump.marker&&Ch(e),vh.default.off(document,"keyup",n),vh.default.off(document,"click",r),e.off("mousedown",i))},r=t=>{const{destination:n,options:r}=e.state.jump;n&&r.onClick(n,t)},i=(t,n)=>{e.state.jump.destination&&(n.codemirrorIgnore=!0)};vh.default.on(document,"keyup",n),vh.default.on(document,"click",r),e.on("mousedown",i)}function kh(e){if(e.state.jump.marker)return;const{cursor:t,options:n}=e.state.jump,r=e.coordsChar(t),i=e.getTokenAt(r,!0),o=n.getDestination||e.getHelper(r,"jump");if(o){const t=o(i,n,e);if(t){const n=e.markText({line:r.line,ch:i.start},{line:r.line,ch:i.end},{className:"CodeMirror-jump-token"});e.state.jump.marker=n,e.state.jump.destination=t}}}function Ch(e){const{marker:t}=e.state.jump;e.state.jump.marker=null,e.state.jump.destination=null,t.clear()}var Sh,Th=a(()=>{(vh=c(Qu())).default.defineOption("jump",!1,(e,t,n)=>{if(n&&n!==vh.default.Init){const t=e.state.jump.onMouseOver;vh.default.off(e.getWrapperElement(),"mouseover",t);const n=e.state.jump.onMouseOut;vh.default.off(e.getWrapperElement(),"mouseout",n),vh.default.off(document,"keydown",e.state.jump.onKeyDown),delete e.state.jump}if(t){const n=e.state.jump={options:t,onMouseOver:wh.bind(null,e),onMouseOut:xh.bind(null,e),onKeyDown:Eh.bind(null,e)};vh.default.on(e.getWrapperElement(),"mouseover",n.onMouseOver),vh.default.on(e.getWrapperElement(),"mouseout",n.onMouseOut),vh.default.on(document,"keydown",n.onKeyDown)}}),yh="undefined"!=typeof navigator&&navigator.userAgent.includes("Mac")}),_h=l({}),Nh=a(()=>{Sh=c(Qu()),Jp(),sh(),Th(),Sh.default.registerHelper("jump","graphql",(e,t)=>{if(!t.schema||!t.onClick||!e.state)return;const{state:n}=e,{kind:r,step:i}=n,o=Xp(t.schema,n);return"Field"===r&&0===i&&o.fieldDef||"AliasedField"===r&&2===i&&o.fieldDef?eh(o):"Directive"===r&&1===i&&o.directiveDef?th(o):"Argument"===r&&0===i&&o.argDef?nh(o):"EnumValue"===r&&o.enumValue?rh(o):"NamedType"===r&&o.type?ih(o):void 0})});function Ah(e,t){var n,r;const{levels:i,indentLevel:o}=e;return((i&&0!==i.length?i.at(-1)-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):o)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}var Dh,Oh,Lh=a(()=>{}),Ih=a(()=>{Au(),Lh(),Dh=e=>{const t=Dl({eatWhitespace:e=>e.eatWhile(El),lexRules:kl,parseRules:Cl,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:Ah,electricInput:/^\s*[})\]]/,fold:"brace",lineComment:"#",closeBrackets:{pairs:'()[]{}""',explode:"()[]{}"}}}}),Mh=l({}),Fh=a(()=>{Oh=c(Qu()),Ih(),Oh.default.defineMode("graphql",Dh)});Au();var Ph=Rh;function Rh(e,t){const n=(0,$u.c)(40);let r;n[0]!==e?(r=void 0===e?{}:e,n[0]=e,n[1]=r):r=n[1];const{editorTheme:i,keyMap:o,onClickReference:a,onCopyQuery:s,onEdit:l,onPrettifyQuery:u,readOnly:d}=r,f=void 0===i?lc:i,p=void 0===o?uc:o,h=void 0!==d&&d,{schema:m,setSchemaReference:g}=bc(),v=t||Ph;let y;n[2]!==v?(y={nonNull:!0,caller:v},n[2]=v,n[3]=y):y=n[3];const{externalFragments:b,initialQuery:w,queryEditor:x,setOperationName:E,setQueryEditor:k,validationRules:C,variableEditor:S,updateActiveTabValues:T}=Qm(y),_=ng(),N=qu(),A=gc(),D=t||Ph;let O;n[4]!==s||n[5]!==D?(O={caller:D,onCopyQuery:s},n[4]=s,n[5]=D,n[6]=O):O=n[6];const L=Tp(O),I=t||Ph;let M;n[7]!==I?(M={caller:I},n[7]=I,n[8]=M):M=n[8];const F=_p(M),P=t||Ph;let R;n[9]!==u||n[10]!==P?(R={caller:P,onPrettifyQuery:u},n[9]=u,n[10]=P,n[11]=R):R=n[11];const j=Ap(R),V=(0,Fu.useRef)(null),B=(0,Fu.useRef)(void 0),z=(0,Fu.useRef)(zh);let $,U,H,W,q,G;n[12]!==a||n[13]!==A||n[14]!==g?($=()=>{z.current=e=>{const t=null==A?void 0:A.referencePlugin;t&&(A.setVisiblePlugin(t),g(e),null==a||a(e))}},U=[a,A,g],n[12]=a,n[13]=A,n[14]=g,n[15]=$,n[16]=U):($=n[15],U=n[16]),(0,Fu.useEffect)($,U),n[17]!==f||n[18]!==w||n[19]!==h||n[20]!==k?(H=()=>{let e=!0;return dc([ga(()=>Promise.resolve().then(()=>c(Up())),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>c(Hp())),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>(qp(),Wp)),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>(Kp(),Gp)),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>(bh(),fh)),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>(Nh(),_h)),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>(Fh(),Mh)),void 0,import.meta.url)]).then(t=>{if(!e)return;B.current=t;const n=V.current;if(!n)return;const r=t(n,{value:w,lineNumbers:!0,tabSize:2,foldGutter:!0,mode:"graphql",theme:f,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!h&&"nocursor",lint:{schema:void 0,validationRules:null,externalFragments:void 0},hintOptions:{schema:void 0,closeOnUnfocus:!1,completeSingle:!1,container:n,externalFragments:void 0,autocompleteOptions:{mode:Rl.EXECUTABLE}},info:{schema:void 0,renderDescription:Bh,onClick(e){z.current(e)}},jump:{schema:void 0,onClick(e){z.current(e)}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{...cc,"Cmd-S"(){},"Ctrl-S"(){}}}),i=function(){r.showHint({completeSingle:!0,container:n})};r.addKeyMap({"Cmd-Space":i,"Ctrl-Space":i,"Alt-Space":i,"Shift-Space":i,"Shift-Alt-Space":i}),r.on("keyup",Vh);let o=!1;r.on("startCompletion",()=>{o=!0}),r.on("endCompletion",()=>{o=!1}),r.on("keydown",(e,t)=>{"Escape"===t.key&&o&&t.stopPropagation()}),r.on("beforeChange",jh),r.documentAST=null,r.operationName=null,r.operations=null,r.variableToType=null,k(r)}),()=>{e=!1}},W=[f,w,h,k],n[17]=f,n[18]=w,n[19]=h,n[20]=k,n[21]=H,n[22]=W):(H=n[21],W=n[22]),(0,Fu.useEffect)(H,W),yp(x,"keyMap",p),n[23]!==l||n[24]!==x||n[25]!==m||n[26]!==E||n[27]!==N||n[28]!==T||n[29]!==S?(q=()=>{if(!x)return;const e=function(e){var t,n,r,i,o;const a=function(e,t){if(t)try{const n=Ze(t);return Object.assign(Object.assign({},function(e,t){const n=t?function(e,t){const n=Object.create(null);for(const r of t.definitions)if("OperationDefinition"===r.kind){const{variableDefinitions:t}=r;if(t)for(const{variable:r,type:i}of t){const t=Br(e,i);t?n[r.name.value]=t:i.kind===ae.NAMED_TYPE&&"Float"===i.name.value&&(n[r.name.value]=jn)}}return n}(t,e):void 0,r=[];return At(e,{OperationDefinition(e){r.push(e)}}),{variableToType:n,operations:r}}(n,e)),{documentAST:n})}catch(o){}}(m,e.getValue()),s=function(e,t,n){if(!n||n.length<1)return;const r=n.map(e=>{var t;return null==(t=e.name)?void 0:t.value});if(t&&r.includes(t))return t;if(t&&e){const n=e.map(e=>{var t;return null==(t=e.name)?void 0:t.value}).indexOf(t);if(-1!==n&&n{var n;const r=t.getValue();N.set(Uh,r);const i=t.operationName,o=e(t);void 0!==(null==o?void 0:o.operationName)&&N.set(Hh,o.operationName),null==l||l(r,null==o?void 0:o.documentAST),(null==o?void 0:o.operationName)&&i!==o.operationName&&E(o.operationName),T({query:r,operationName:null!==(n=null==o?void 0:o.operationName)&&void 0!==n?n:null})});return e(x),x.on("change",t),()=>x.off("change",t)},G=[l,x,m,E,N,S,T],n[23]=l,n[24]=x,n[25]=m,n[26]=E,n[27]=N,n[28]=T,n[29]=S,n[30]=q,n[31]=G):(q=n[30],G=n[31]),(0,Fu.useEffect)(q,G),function(e,t,n){const r=(0,$u.c)(5);let i,o;r[0]!==n||r[1]!==e||r[2]!==t?(i=()=>{if(!e)return;const r=e.options.lint.schema!==t;!function(e,t){e.state.lint.linterOptions.schema=t,e.options.lint.schema=t,e.options.hintOptions.schema=t,e.options.info.schema=t,e.options.jump.schema=t}(e,t),r&&n.current&&n.current.signal(e,"change",e)},o=[e,t,n],r[0]=n,r[1]=e,r[2]=t,r[3]=i,r[4]=o):(i=r[3],o=r[4]),(0,Fu.useEffect)(i,o)}(x,null!=m?m:null,B),function(e,t,n){const r=(0,$u.c)(5);let i,o;r[0]!==n||r[1]!==e||r[2]!==t?(i=()=>{if(!e)return;const r=e.options.lint.validationRules!==t;!function(e,t){e.state.lint.linterOptions.validationRules=t,e.options.lint.validationRules=t}(e,t),r&&n.current&&n.current.signal(e,"change",e)},o=[e,t,n],r[0]=n,r[1]=e,r[2]=t,r[3]=i,r[4]=o):(i=r[3],o=r[4]),(0,Fu.useEffect)(i,o)}(x,null!=C?C:null,B),function(e,t,n){const r=(0,$u.c)(7);let i;r[0]!==t?(i=[...t.values()],r[0]=t,r[1]=i):i=r[1];const o=i;let a,s;r[2]!==n||r[3]!==e||r[4]!==o?(a=()=>{if(!e)return;const t=e.options.lint.externalFragments!==o;!function(e,t){e.state.lint.linterOptions.externalFragments=t,e.options.lint.externalFragments=t,e.options.hintOptions.externalFragments=t}(e,o),t&&n.current&&n.current.signal(e,"change",e)},s=[e,o,n],r[2]=n,r[3]=e,r[4]=o,r[5]=a,r[6]=s):(a=r[5],s=r[6]),(0,Fu.useEffect)(a,s)}(x,b,B),wp(x,a);const K=null==_?void 0:_.run;let Y;n[32]!==x||n[33]!==K||n[34]!==E?(Y=()=>{var e;if(!(K&&x&&x.operations&&x.hasFocus()))return void(null==K||K());const t=x.indexFromPos(x.getCursor());let n;for(const r of x.operations)r.loc&&r.loc.start<=t&&r.loc.end>=t&&(n=null==(e=r.name)?void 0:e.value);n&&n!==x.operationName&&E(n),K()},n[32]=x,n[33]=K,n[34]=E,n[35]=Y):Y=n[35];const Q=Y;let X,Z,J,ee;return n[36]===Symbol.for("react.memo_cache_sentinel")?(X=["Cmd-Enter","Ctrl-Enter"],n[36]=X):X=n[36],xp(x,X,Q),n[37]===Symbol.for("react.memo_cache_sentinel")?(Z=["Shift-Ctrl-C"],n[37]=Z):Z=n[37],xp(x,Z,L),n[38]===Symbol.for("react.memo_cache_sentinel")?(J=["Shift-Ctrl-P","Shift-Ctrl-F"],n[38]=J):J=n[38],xp(x,J,j),n[39]===Symbol.for("react.memo_cache_sentinel")?(ee=["Shift-Ctrl-M"],n[39]=ee):ee=n[39],xp(x,ee,F),V}function jh(e,t){var n;if("paste"===t.origin){const e=t.text.map(jp);null==(n=t.update)||n.call(t,t.from,t.to,e)}}function Vh(e,t){$h.test(t.key)&&e.execCommand("autocomplete")}function Bh(e){return hp.render(e)}function zh(){}var $h=/^[a-zA-Z0-9_@(]$/,Uh="query",Hh="operationName";function Wh(e){return e&&"object"==typeof e&&!Array.isArray(e)&&qh(e,"id")&&qh(e,"title")&&Gh(e,"query")&&Gh(e,"variables")&&Gh(e,"headers")&&Gh(e,"operationName")&&Gh(e,"response")}function qh(e,t){return t in e&&"string"==typeof e[t]}function Gh(e,t){return t in e&&("string"==typeof e[t]||null===e[t])}function Kh(e,t=!1){return JSON.stringify(e,(e,n)=>"hash"===e||"response"===e||!t&&"headers"===e?null:n)}function Yh({query:e=null,variables:t=null,headers:n=null}={}){const r=e?Jh(e):null;return{id:Xh(),hash:Zh({query:e,variables:t,headers:n}),title:r||em,query:e,variables:t,headers:n,operationName:r,response:null}}function Qh(e,t){return{...e,tabs:e.tabs.map((n,r)=>{if(r!==e.activeTabIndex)return n;const i={...n,...t};return{...i,hash:Zh(i),title:i.operationName||(i.query?Jh(i.query):void 0)||em}})}}function Xh(){const e=()=>Math.floor(65536*(1+Math.random())).toString(16).slice(1);return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}function Zh(e){var t,n,r;return[null!==(t=e.query)&&void 0!==t?t:"",null!==(n=e.variables)&&void 0!==n?n:"",null!==(r=e.headers)&&void 0!==r?r:""].join("|")}function Jh(e){var t;const n=/^(?!#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/m.exec(e);return null!==(t=null==n?void 0:n[2])&&void 0!==t?t:null}var em="",tm="tabState";function nm(e,t,n){const r=function(e,t){return t?rm(rm(e.map(e=>({proximity:om(im(e.text),t),entry:e})),e=>e.proximity<=2),e=>!e.entry.isDeprecated).sort((e,t)=>(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.text.length-t.entry.text.length).map(e=>e.entry):rm(e,e=>!e.isDeprecated)}(n,im(t.string));if(!r)return;const i=null!==t.type&&/"|\w/.test(t.string[0])?t.start:t.end;return{list:r,from:{line:e.line,ch:i},to:{line:e.line,ch:t.end}}}function rm(e,t){const n=e.filter(t);return 0===n.length?e:n}function im(e){return e.toLowerCase().replaceAll(/\W/g,"")}function om(e,t){let n=function(e,t){let n,r;const i=[],o=e.length,a=t.length;for(n=0;n<=o;n++)i[n]=[n];for(r=1;r<=a;r++)i[0][r]=r;for(n=1;n<=o;n++)for(r=1;r<=a;r++){const o=e[n-1]===t[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+o),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+o))}return i[o][a]}(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}var am,sm,lm,um,cm,dm,fm,pm,hm,mm=a(()=>{}),gm=l({}),vm=a(()=>{am=c(Qu()),ha(),Qp(),mm(),am.default.registerHelper("hint","graphql-variables",(e,t)=>{const n=e.getCursor(),r=e.getTokenAt(n),i=function(e,t,n){const{kind:r,step:i}="Invalid"===t.state.kind?t.state.prevState:t.state;if("Document"===r&&0===i)return nm(e,t,[{text:"{"}]);const{variableToType:o}=n;if(!o)return;const a=function(e,t){const n={type:null,fields:null};return Yp(t,t=>{switch(t.kind){case"Variable":n.type=e[t.name];break;case"ListValue":{const e=n.type?gn(n.type):void 0;n.type=e instanceof Ht?e.ofType:null;break}case"ObjectValue":{const e=n.type?yn(n.type):void 0;n.fields=e instanceof Xt?e.getFields():null;break}case"ObjectField":{const e=t.name&&n.fields?n.fields[t.name]:null;n.type=null==e?void 0:e.type;break}}}),n}(o,t.state);if("Document"===r||"Variable"===r&&0===i)return nm(e,t,Object.keys(o).map(e=>({text:`"${e}": `,type:o[e]})));if(("ObjectValue"===r||"ObjectField"===r&&0===i)&&a.fields)return nm(e,t,Object.keys(a.fields).map(e=>a.fields[e]).map(e=>({text:`"${e.name}": `,type:e.type,description:e.description})));if("StringValue"===r||"NumberValue"===r||"BooleanValue"===r||"NullValue"===r||"ListValue"===r&&1===i||"ObjectField"===r&&2===i||"Variable"===r&&2===i){const n=a.type?yn(a.type):void 0;if(n instanceof Xt)return nm(e,t,[{text:"{"}]);if(n instanceof Qt)return nm(e,t,n.getValues().map(e=>({text:`"${e.name}"`,type:n,description:e.description})));if(n===Bn)return nm(e,t,[{text:"true",type:Bn,description:"Not false."},{text:"false",type:Bn,description:"Not true."}])}}(n,r,t);return(null==i?void 0:i.list)&&i.list.length>0&&(i.from=am.default.Pos(i.from.line,i.from.ch),i.to=am.default.Pos(i.to.line,i.to.ch),am.default.signal(e,"hasCompletion",e,i,r)),i})});function ym(){const e=um,t=[];if(Em("{"),!Cm("}")){do{t.push(bm())}while(Cm(","));Em("}")}return{kind:"Object",start:e,end:dm,members:t}}function bm(){const e=um,t="String"===pm?xm():null;Em("String"),Em(":");const n=wm();return{kind:"Member",start:e,end:dm,key:t,value:n}}function wm(){switch(pm){case"[":return function(){const e=um,t=[];if(Em("["),!Cm("]")){do{t.push(wm())}while(Cm(","));Em("]")}return{kind:"Array",start:e,end:dm,values:t}}();case"{":return ym();case"String":case"Number":case"Boolean":case"Null":const e=xm();return Tm(),e}Em("Value")}function xm(){return{kind:pm,start:um,end:cm,value:JSON.parse(sm.slice(um,cm))}}function Em(e){if(pm===e)return void Tm();let t;if("EOF"===pm)t="[end of file]";else if(cm-um>1)t="`"+sm.slice(um,cm)+"`";else{const e=sm.slice(um).match(/^.+?\b/);t="`"+(e?e[0]:sm[um])+"`"}throw km(`Expected ${e} but found ${t}.`)}function km(e){return new hm(e,{start:um,end:cm})}function Cm(e){if(pm===e)return Tm(),!0}function Sm(){return cm31;)if(92===fm)switch(fm=Sm()){case 34:case 47:case 92:case 98:case 102:case 110:case 114:case 116:Sm();break;case 117:Sm(),_m(),_m(),_m(),_m();break;default:throw km("Bad character escape sequence.")}else{if(cm===lm)throw km("Unterminated string.");Sm()}if(34!==fm)throw km("Unterminated string.");Sm()}();case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return pm="Number",45===fm&&Sm(),48===fm?Sm():Nm(),46===fm&&(Sm(),Nm()),void(69!==fm&&101!==fm||(43!==(fm=Sm())&&45!==fm||Sm(),Nm()));case 102:if("false"!==sm.slice(um,um+5))break;return cm+=4,Sm(),void(pm="Boolean");case 110:if("null"!==sm.slice(um,um+4))break;return cm+=3,Sm(),void(pm="Null");case 116:if("true"!==sm.slice(um,um+4))break;return cm+=3,Sm(),void(pm="Boolean")}pm=sm[um],Sm()}else pm="EOF"}function _m(){if(fm>=48&&fm<=57||fm>=65&&fm<=70||fm>=97&&fm<=102)return Sm();throw km("Expected hexadecimal digit.")}function Nm(){if(fm<48||fm>57)throw km("Expected decimal digit.");do{Sm()}while(fm>=48&&fm<=57)}var Am,Dm=a(()=>{hm=class extends Error{constructor(e,t){super(e),this.position=t}}}),Om=l({});function Lm(e,t){if(!e||!t)return[];if(e instanceof Wt)return"Null"===t.kind?[[t,`Type "${e}" is non-nullable and cannot be null.`]]:Lm(e.ofType,t);if("Null"===t.kind)return[];if(e instanceof Ht){const n=e.ofType;return"Array"===t.kind?Mm(t.values||[],e=>Lm(n,e)):Lm(n,t)}if(e instanceof Xt){if("Object"!==t.kind)return[[t,`Type "${e}" must be an Object.`]];const n=Object.create(null),r=Mm(t.members,t=>{var r;const i=null===(r=null==t?void 0:t.key)||void 0===r?void 0:r.value;n[i]=!0;const o=e.getFields()[i];return o?Lm(o?o.type:void 0,t.value):[[t.key,`Type "${e}" does not have a field "${i}".`]]});for(const i of Object.keys(e.getFields())){const o=e.getFields()[i];!n[i]&&o.type instanceof Wt&&!o.defaultValue&&r.push([t,`Object of type "${e}" is missing required field "${i}".`])}return r}return"Boolean"===e.name&&"Boolean"!==t.kind||"String"===e.name&&"String"!==t.kind||"ID"===e.name&&"Number"!==t.kind&&"String"!==t.kind||"Float"===e.name&&"Number"!==t.kind||"Int"===e.name&&("Number"!==t.kind||(0|t.value)!==t.value)||(e instanceof Qt||e instanceof qt)&&("String"!==t.kind&&"Number"!==t.kind&&"Boolean"!==t.kind&&"Null"!==t.kind||null==(n=e.parseValue(t.value))||n!=n)?[[t,`Expected value of type "${e}".`]]:[];var n}function Im(e,t,n){return{message:n,severity:"error",type:"validation",from:e.posFromIndex(t.start),to:e.posFromIndex(t.end)}}function Mm(e,t){return Array.prototype.concat.apply([],e.map(t))}var Fm,Pm,Rm,jm=a(()=>{Am=c(Qu()),ha(),Dm(),Am.default.registerHelper("lint","graphql-variables",(e,t,n)=>{if(!e)return[];let r;try{r=function(e){sm=e,lm=e.length,um=cm=dm=-1,Sm(),Tm();const t=ym();return Em("EOF"),t}(e)}catch(tp){if(tp instanceof hm)return[Im(n,tp.position,tp.message)];throw tp}const{variableToType:i}=t;return i?function(e,t,n){var r;const i=[];for(const o of n.members)if(o){const n=null===(r=o.key)||void 0===r?void 0:r.value,a=t[n];if(a)for(const[t,r]of Lm(a,o.value))i.push(Im(e,t,r));else i.push(Im(e,o.key,`Variable "$${n}" does not appear in any GraphQL query.`))}return i}(n,i,r):[]})}),Vm=l({});function Bm(e){return{style:e,match:e=>"String"===e.kind,update(e,t){e.name=t.value.slice(1,-1)}}}var zm=a(()=>{Fm=c(Qu()),Au(),Lh(),Fm.default.defineMode("graphql-variables",e=>{const t=Dl({eatWhitespace:e=>e.eatSpace(),lexRules:Pm,parseRules:Rm,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:Ah,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}}),Pm={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/},Rm={Document:[xl("{"),yl("Variable",vl(xl(","))),xl("}")],Variable:[Bm("variable"),xl(":"),"Value"],Value(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:[wl("Number","number")],StringValue:[wl("String","string")],BooleanValue:[wl("Keyword","builtin")],NullValue:[wl("Keyword","keyword")],ListValue:[xl("["),yl("Value",vl(xl(","))),xl("]")],ObjectValue:[xl("{"),yl("ObjectField",vl(xl(","))),xl("}")],ObjectField:[Bm("attribute"),xl(":"),"Value"]}}),$m=Um;function Um(e,t){const n=(0,$u.c)(17);let r;n[0]!==e?(r=void 0===e?{}:e,n[0]=e,n[1]=r):r=n[1];const{editorTheme:i,keyMap:o,onClickReference:a,onEdit:s,readOnly:l}=r,u=void 0===i?lc:i,c=void 0===o?uc:o,d=void 0!==l&&l,f=t||$m;let p;n[2]!==f?(p={nonNull:!0,caller:f},n[2]=f,n[3]=p):p=n[3];const{initialVariables:h,variableEditor:m,setVariableEditor:g}=Qm(p),v=ng(),y=t||$m;let b;n[4]!==y?(b={caller:y},n[4]=y,n[5]=b):b=n[5];const w=_p(b),x=t||$m;let E;n[6]!==x?(E={caller:x},n[6]=x,n[7]=E):E=n[7];const k=Ap(E),C=(0,Fu.useRef)(null);let S,T,_,N,A;return n[8]!==u||n[9]!==h||n[10]!==d||n[11]!==g?(S=()=>{let e=!0;return dc([ga(()=>Promise.resolve().then(()=>(vm(),gm)),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>(jm(),Om)),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>(zm(),Vm)),void 0,import.meta.url)]).then(t=>{if(!e)return;const n=C.current;if(!n)return;const r=t(n,{value:h,lineNumbers:!0,tabSize:2,mode:"graphql-variables",theme:u,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!d&&"nocursor",foldGutter:!0,lint:{variableToType:void 0},hintOptions:{closeOnUnfocus:!1,completeSingle:!1,container:n,variableToType:void 0},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:cc});r.addKeyMap({"Cmd-Space"(){r.showHint({completeSingle:!1,container:n})},"Ctrl-Space"(){r.showHint({completeSingle:!1,container:n})},"Alt-Space"(){r.showHint({completeSingle:!1,container:n})},"Shift-Space"(){r.showHint({completeSingle:!1,container:n})}}),r.on("keyup",Hm),g(r)}),()=>{e=!1}},T=[u,h,d,g],n[8]=u,n[9]=h,n[10]=d,n[11]=g,n[12]=S,n[13]=T):(S=n[12],T=n[13]),(0,Fu.useEffect)(S,T),yp(m,"keyMap",c),bp(m,s,Wm,"variables",$m),wp(m,a),n[14]===Symbol.for("react.memo_cache_sentinel")?(_=["Cmd-Enter","Ctrl-Enter"],n[14]=_):_=n[14],xp(m,_,null==v?void 0:v.run),n[15]===Symbol.for("react.memo_cache_sentinel")?(N=["Shift-Ctrl-P"],n[15]=N):N=n[15],xp(m,N,k),n[16]===Symbol.for("react.memo_cache_sentinel")?(A=["Shift-Ctrl-M"],n[16]=A):A=n[16],xp(m,A,w),C}function Hm(e,t){const{code:n,key:r,shiftKey:i}=t,o=n.startsWith("Key"),a=!i&&n.startsWith("Digit");(o||a||"_"===r||'"'===r)&&e.execCommand("autocomplete")}var Wm="variables",qm='# Welcome to GraphiQL\n#\n# GraphiQL is an in-browser tool for writing, validating, and\n# testing GraphQL queries.\n#\n# Type queries into this side of the screen, and you will see intelligent\n# typeaheads aware of the current GraphQL type schema and live syntax and\n# validation errors highlighted within the text.\n#\n# GraphQL queries typically start with a "{" character. Lines that start\n# with a # are ignored.\n#\n# An example GraphQL query might look like:\n#\n# {\n# field(arg: "value") {\n# subField\n# }\n# }\n#\n# Keyboard shortcuts:\n#\n# Prettify query: Shift-Ctrl-P (or press the prettify button)\n#\n# Merge fragments: Shift-Ctrl-M (or press the merge button)\n#\n# Run Query: Ctrl-Enter (or press the play button)\n#\n# Auto Complete: Ctrl-Space (or just start typing)\n#\n\n',Gm=w();ha();var Km=Pu("EditorContext"),Ym=e=>{const t=(0,$u.c)(88),n=qu(),[r,i]=(0,Fu.useState)(null),[o,a]=(0,Fu.useState)(null),[s,l]=(0,Fu.useState)(null),[u,c]=(0,Fu.useState)(null);let d;t[0]!==e.shouldPersistHeaders||t[1]!==n?(d=()=>{const t=null!==n.get(Xm);return!1!==e.shouldPersistHeaders&&t?"true"===n.get(Xm):Boolean(e.shouldPersistHeaders)},t[0]=e.shouldPersistHeaders,t[1]=n,t[2]=d):d=t[2];const[f,p]=(0,Fu.useState)(d);let h;vp(r,e.headers),vp(o,e.query),vp(s,e.response),vp(u,e.variables),t[3]!==f?(h={shouldPersistHeaders:f},t[3]=f,t[4]=h):h=t[4];const m=function({shouldPersistHeaders:e}){return(0,Fu.useCallback)(t=>{const{storage:n}=Uu.getState();mp(500,e=>{n.set(tm,e)})(Kh(t,e))},[e])}(h);let g;t[5]!==e.defaultHeaders||t[6]!==e.defaultQuery||t[7]!==e.defaultTabs||t[8]!==e.headers||t[9]!==e.query||t[10]!==e.response||t[11]!==e.variables||t[12]!==f||t[13]!==n||t[14]!==m?(g=()=>{var t,r,i,o,a,s,l,u,c;const d=null!==(t=null!==(r=e.query)&&void 0!==r?r:n.get("query"))&&void 0!==t?t:null,p=null!==(i=null!==(o=e.variables)&&void 0!==o?o:n.get("variables"))&&void 0!==i?i:null,h=null!==(a=null!==(s=e.headers)&&void 0!==s?s:n.get("headers"))&&void 0!==a?a:null,g=null!==(l=e.response)&&void 0!==l?l:"",v=function({defaultQuery:e,defaultHeaders:t,headers:n,defaultTabs:r,query:i,variables:o,shouldPersistHeaders:a}){const{storage:s}=Uu.getState(),l=s.get(tm);try{if(!l)throw new Error("Storage for tabs is empty");const e=JSON.parse(l),t=a?n:void 0;if((u=e)&&"object"==typeof u&&!Array.isArray(u)&&function(e,t){return t in e&&"number"==typeof e[t]}(u,"activeTabIndex")&&"tabs"in u&&Array.isArray(u.tabs)&&u.tabs.every(Wh)){const r=Zh({query:i,variables:o,headers:t});let a=-1;for(let t=0;t=0)e.activeTabIndex=a;else{const t=i?Jh(i):null;e.tabs.push({id:Xh(),hash:r,title:t||em,query:i,variables:o,headers:n,operationName:t,response:null}),e.activeTabIndex=e.tabs.length-1}return e}throw new Error("Storage for tabs is invalid")}catch(c){return{activeTabIndex:0,tabs:(r||[{query:null!=i?i:e,variables:o,headers:null!=n?n:t}]).map(Yh)}}var u}({query:d,variables:p,headers:h,defaultTabs:e.defaultTabs,defaultQuery:e.defaultQuery||qm,defaultHeaders:e.defaultHeaders,shouldPersistHeaders:f});return m(v),{query:null!==(u=null!=d?d:0===v.activeTabIndex?v.tabs[0].query:null)&&void 0!==u?u:"",variables:null!=p?p:"",headers:null!==(c=null!=h?h:e.defaultHeaders)&&void 0!==c?c:"",response:g,tabState:v}},t[5]=e.defaultHeaders,t[6]=e.defaultQuery,t[7]=e.defaultTabs,t[8]=e.headers,t[9]=e.query,t[10]=e.response,t[11]=e.variables,t[12]=f,t[13]=n,t[14]=m,t[15]=g):g=t[15];const[v]=(0,Fu.useState)(g),[y,b]=(0,Fu.useState)(v.tabState);let w;t[16]!==r||t[17]!==n||t[18]!==y?(w=e=>{if(e){var t;n.set(Fp,null!==(t=null==r?void 0:r.getValue())&&void 0!==t?t:"");const e=Kh(y,!0);n.set(tm,e)}else n.set(Fp,""),function(){const{storage:e}=Uu.getState(),t=e.get(tm);if(t){const n=JSON.parse(t);e.set(tm,JSON.stringify(n,(e,t)=>"headers"===e?null:t))}}();p(e),n.set(Xm,e.toString())},t[16]=r,t[17]=n,t[18]=y,t[19]=w):w=t[19];const x=w,E=(0,Fu.useRef)(void 0);let k,C,S;t[20]!==e.shouldPersistHeaders||t[21]!==x?(k=()=>{const t=Boolean(e.shouldPersistHeaders);(null==E?void 0:E.current)!==t&&(x(t),E.current=t)},C=[e.shouldPersistHeaders,x],t[20]=e.shouldPersistHeaders,t[21]=x,t[22]=k,t[23]=C):(k=t[22],C=t[23]),(0,Fu.useEffect)(k,C),t[24]!==r||t[25]!==o||t[26]!==s||t[27]!==u?(S={queryEditor:o,variableEditor:u,headerEditor:r,responseEditor:s},t[24]=r,t[25]=o,t[26]=s,t[27]=u,t[28]=S):S=t[28];const T=function({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r}){return(0,Fu.useCallback)(i=>{var o,a,s,l,u;const c=null!==(o=null==e?void 0:e.getValue())&&void 0!==o?o:null,d=null!==(a=null==t?void 0:t.getValue())&&void 0!==a?a:null,f=null!==(s=null==n?void 0:n.getValue())&&void 0!==s?s:null,p=null!==(l=null==e?void 0:e.operationName)&&void 0!==l?l:null;return Qh(i,{query:c,variables:d,headers:f,response:null!==(u=null==r?void 0:r.getValue())&&void 0!==u?u:null,operationName:p})},[e,t,n,r])}(S),{onTabChange:_,defaultHeaders:N,defaultQuery:A,children:D}=e;let O;t[29]!==N||t[30]!==r||t[31]!==o||t[32]!==s||t[33]!==u?(O={queryEditor:o,variableEditor:u,headerEditor:r,responseEditor:s,defaultHeaders:N},t[29]=N,t[30]=r,t[31]=o,t[32]=s,t[33]=u,t[34]=O):O=t[34];const L=function({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r,defaultHeaders:i}){return(0,Fu.useCallback)(({query:o,variables:a,headers:s,response:l})=>{var u;null==e||e.setValue(null!=o?o:""),null==t||t.setValue(null!=a?a:""),null==n||n.setValue(null!==(u=null!=s?s:i)&&void 0!==u?u:""),null==r||r.setValue(null!=l?l:"")},[n,e,r,t,i])}(O);let I;t[35]!==N||t[36]!==A||t[37]!==_||t[38]!==L||t[39]!==m||t[40]!==T?(I=()=>{b(e=>{const t=T(e),n={tabs:[...t.tabs,Yh({headers:N,query:null!=A?A:qm})],activeTabIndex:t.tabs.length};return m(n),L(n.tabs[n.activeTabIndex]),null==_||_(n),n})},t[35]=N,t[36]=A,t[37]=_,t[38]=L,t[39]=m,t[40]=T,t[41]=I):I=t[41];const M=I;let F;t[42]!==_||t[43]!==L||t[44]!==m?(F=e=>{b(t=>{const n={...t,activeTabIndex:e};return m(n),L(n.tabs[n.activeTabIndex]),null==_||_(n),n})},t[42]=_,t[43]=L,t[44]=m,t[45]=F):F=t[45];const P=F;let R;t[46]!==_||t[47]!==L||t[48]!==m?(R=e=>{b(t=>{const n=t.tabs[t.activeTabIndex],r={tabs:e,activeTabIndex:e.indexOf(n)};return m(r),L(r.tabs[r.activeTabIndex]),null==_||_(r),r})},t[46]=_,t[47]=L,t[48]=m,t[49]=R):R=t[49];const j=R;let V;t[50]!==_||t[51]!==L||t[52]!==m?(V=e=>{b(t=>{const n={tabs:t.tabs.filter((t,n)=>e!==n),activeTabIndex:Math.max(t.activeTabIndex-1,0)};return m(n),L(n.tabs[n.activeTabIndex]),null==_||_(n),n})},t[50]=_,t[51]=L,t[52]=m,t[53]=V):V=t[53];const B=V;let z;t[54]!==_||t[55]!==m?(z=e=>{b(t=>{const n=Qh(t,e);return m(n),null==_||_(n),n})},t[54]=_,t[55]=m,t[56]=z):z=t[56];const $=z,{onEditOperationName:U}=e;let H;t[57]!==U||t[58]!==o||t[59]!==$?(H=e=>{o&&(function(e,t){e.operationName=t}(o,e),$({operationName:e}),null==U||U(e))},t[57]=U,t[58]=o,t[59]=$,t[60]=H):H=t[60];const W=H;let q,G;if(t[61]!==e.externalFragments){if(G=new Map,Array.isArray(e.externalFragments))for(const t of e.externalFragments)G.set(t.name.value,t);else if("string"==typeof e.externalFragments)At(Ze(e.externalFragments,{}),{FragmentDefinition(e){G.set(e.name.value,e)}});else if(e.externalFragments)throw new Error("The `externalFragments` prop must either be a string that contains the fragment definitions in SDL or a list of FragmentDefinitionNode objects.");t[61]=e.externalFragments,t[62]=G}else G=t[62];q=G;const K=q;let Y;t[63]!==e.validationRules?(Y=e.validationRules||[],t[63]=e.validationRules,t[64]=Y):Y=t[64];const Q=Y;let X;t[65]!==M||t[66]!==P||t[67]!==B||t[68]!==K||t[69]!==r||t[70]!==v.headers||t[71]!==v.query||t[72]!==v.response||t[73]!==v.variables||t[74]!==j||t[75]!==o||t[76]!==s||t[77]!==W||t[78]!==x||t[79]!==f||t[80]!==y||t[81]!==$||t[82]!==Q||t[83]!==u?(X={...y,addTab:M,changeTab:P,moveTab:j,closeTab:B,updateActiveTabValues:$,headerEditor:r,queryEditor:o,responseEditor:s,variableEditor:u,setHeaderEditor:i,setQueryEditor:a,setResponseEditor:l,setVariableEditor:c,setOperationName:W,initialQuery:v.query,initialVariables:v.variables,initialHeaders:v.headers,initialResponse:v.response,externalFragments:K,validationRules:Q,shouldPersistHeaders:f,setShouldPersistHeaders:x},t[65]=M,t[66]=P,t[67]=B,t[68]=K,t[69]=r,t[70]=v.headers,t[71]=v.query,t[72]=v.response,t[73]=v.variables,t[74]=j,t[75]=o,t[76]=s,t[77]=W,t[78]=x,t[79]=f,t[80]=y,t[81]=$,t[82]=Q,t[83]=u,t[84]=X):X=t[84];const Z=X;let J;return t[85]!==D||t[86]!==Z?(J=(0,Gm.jsx)(Km.Provider,{value:Z,children:D}),t[85]=D,t[86]=Z,t[87]=J):J=t[87],J},Qm=Ru(Km),Xm="shouldPersistHeaders";ha(),Au();var Zm=c(Iu()),Jm=c(Mu()),eg=Pu("ExecutionContext"),tg=e=>{const t=(0,$u.c)(26),{fetcher:n,getDefaultFieldNames:r,children:i,operationName:o}=e;if("function"!=typeof n)throw new TypeError("The `ExecutionContextProvider` component requires a `fetcher` function to be passed as prop.");let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a={nonNull:!0,caller:tg},t[0]=a):a=t[0];const{externalFragments:s,headerEditor:l,queryEditor:u,responseEditor:c,variableEditor:d,updateActiveTabValues:f}=Qm(a);let p;t[1]!==r?(p={getDefaultFieldNames:r,caller:tg},t[1]=r,t[2]=p):p=t[2];const h=Dp(p),[m,g]=(0,Fu.useState)(!1),[v,y]=(0,Fu.useState)(null),b=(0,Fu.useRef)(0);let w;t[3]!==v?(w=()=>{null==v||v.unsubscribe(),g(!1),y(null)},t[3]=v,t[4]=w):w=t[4];const x=w;let E;t[5]!==h||t[6]!==s||t[7]!==n||t[8]!==l||t[9]!==o||t[10]!==u||t[11]!==c||t[12]!==x||t[13]!==v||t[14]!==f||t[15]!==d?(E=async()=>{var e,t,r;if(!u||!c)return;if(v)return void x();const i=e=>{c.setValue(e),f({response:e})};b.current=b.current+1;const a=b.current;let p=h()||u.getValue();const m=null==d?void 0:d.getValue();let w;try{w=rg({json:m,errorMessageParse:"Variables are invalid JSON",errorMessageType:"Variables are not a JSON object."})}catch(_){const e=_;return void i(e instanceof Error?e.message:`${e}`)}const E=null==l?void 0:l.getValue();let k;try{k=rg({json:E,errorMessageParse:"Headers are invalid JSON",errorMessageType:"Headers are not a JSON object."})}catch(N){const e=N;return void i(e instanceof Error?e.message:`${e}`)}if(s){const e=u.documentAST?lu(u.documentAST,s):[];e.length>0&&(p=p+"\n"+e.map(ag).join("\n"))}i(""),g(!0);const C=null!==(e=null!=o?o:u.operationName)&&void 0!==e?e:void 0,S=null!==(t=k)&&void 0!==t?t:void 0,T=null!==(r=u.documentAST)&&void 0!==r?r:void 0;try{const e={},t=t=>{if(a!==b.current)return;let n=!!Array.isArray(t)&&t;if(!n&&"object"==typeof t&&null!==t&&"hasNext"in t&&(n=[t]),n){for(const t of n)og(e,t);g(!1),i(wa(e))}else{const e=wa(t);g(!1),i(e)}},r=await n({query:p,variables:w,operationName:C},{headers:S,documentAST:T});L(r)?y(r.subscribe({next(e){t(e)},error(e){g(!1),e&&i(ba(e)),y(null)},complete(){g(!1),y(null)}})):I(r)?(y({unsubscribe:()=>{var e,t;return null==(t=(e=r[Symbol.asyncIterator]()).return)?void 0:t.call(e)}}),await async function(e,t){for await(const n of t)e(n)}(t,r),g(!1),y(null)):t(r)}catch(A){const e=A;g(!1),i(ba(e)),y(null)}},t[5]=h,t[6]=s,t[7]=n,t[8]=l,t[9]=o,t[10]=u,t[11]=c,t[12]=x,t[13]=v,t[14]=f,t[15]=d,t[16]=E):E=t[16];const k=E,C=Boolean(v),S=null!=o?o:null;let T;t[17]!==m||t[18]!==k||t[19]!==x||t[20]!==C||t[21]!==S?(T={isFetching:m,isSubscribed:C,operationName:S,run:k,stop:x},t[17]=m,t[18]=k,t[19]=x,t[20]=C,t[21]=S,t[22]=T):T=t[22];const _=T;let N;return t[23]!==i||t[24]!==_?(N=(0,Gm.jsx)(eg.Provider,{value:_,children:i}),t[23]=i,t[24]=_,t[25]=N):N=t[25],N},ng=Ru(eg);function rg({json:e,errorMessageParse:t,errorMessageType:n}){let r;try{r=e&&""!==e.trim()?JSON.parse(e):void 0}catch(tp){throw new Error(`${t}: ${tp instanceof Error?tp.message:tp}.`)}if(void 0!==r&&("object"!=typeof r||null===r||Array.isArray(r)))throw new Error(n);return r}var ig=new WeakMap;function og(e,t){var n,r,i,o;let a=["data",...null!==(n=t.path)&&void 0!==n?n:[]];for(const c of[e,t])if(c.pending){let t=ig.get(e);void 0===t&&(t=new Map,ig.set(e,t));for(const{id:e,path:n}of c.pending)t.set(e,["data",...n])}const{items:s}=t;if(s){const{id:n}=t;if(n){if(a=null==(r=ig.get(e))?void 0:r.get(n),void 0===a)throw new Error("Invalid incremental delivery format.");(0,Jm.default)(e,a.join(".")).push(...s)}else{var l;a=["data",...null!==(l=t.path)&&void 0!==l?l:[]];for(const t of s)(0,Zm.default)(e,a.join("."),t),a[a.length-1]++}}const{data:u}=t;if(u){const{id:n}=t;if(n){if(a=null==(i=ig.get(e))?void 0:i.get(n),void 0===a)throw new Error("Invalid incremental delivery format.");const{subPath:r}=t;void 0!==r&&(a=[...a,...r])}(0,Zm.default)(e,a.join("."),u,{merge:!0})}if(t.errors&&(e.errors||(e.errors=[]),e.errors.push(...t.errors)),t.extensions&&(0,Zm.default)(e,"extensions",t.extensions,{merge:!0}),t.incremental)for(const c of t.incremental)og(e,c);if(t.completed)for(const{id:c,errors:d}of t.completed)null==(o=ig.get(e))||o.delete(c),d&&(e.errors||(e.errors=[]),e.errors.push(...d))}function ag(e){return It(e)}var sg=e=>{const t=(0,$u.c)(45),{children:n,dangerouslyAssumeSchemaIsValid:r,defaultQuery:i,defaultHeaders:o,defaultTabs:a,externalFragments:s,fetcher:l,getDefaultFieldNames:u,headers:c,inputValueDeprecation:d,introspectionQueryName:f,onEditOperationName:p,onSchemaChange:h,onTabChange:m,onTogglePluginVisibility:g,operationName:v,plugins:y,referencePlugin:b,query:w,response:x,schema:E,schemaDescription:k,shouldPersistHeaders:C,storage:S,validationRules:T,variables:_,visiblePlugin:N}=e;let A;t[0]!==o||t[1]!==i||t[2]!==a||t[3]!==s||t[4]!==c||t[5]!==p||t[6]!==m||t[7]!==w||t[8]!==x||t[9]!==C||t[10]!==T||t[11]!==_?(A={defaultQuery:i,defaultHeaders:o,defaultTabs:a,externalFragments:s,headers:c,onEditOperationName:p,onTabChange:m,query:w,response:x,shouldPersistHeaders:C,validationRules:T,variables:_},t[0]=o,t[1]=i,t[2]=a,t[3]=s,t[4]=c,t[5]=p,t[6]=m,t[7]=w,t[8]=x,t[9]=C,t[10]=T,t[11]=_,t[12]=A):A=t[12];const D=A;let O;t[13]!==r||t[14]!==l||t[15]!==d||t[16]!==f||t[17]!==h||t[18]!==E||t[19]!==k?(O={dangerouslyAssumeSchemaIsValid:r,fetcher:l,inputValueDeprecation:d,introspectionQueryName:f,onSchemaChange:h,schema:E,schemaDescription:k},t[13]=r,t[14]=l,t[15]=d,t[16]=f,t[17]=h,t[18]=E,t[19]=k,t[20]=O):O=t[20];const L=O;let I;t[21]!==l||t[22]!==u||t[23]!==v?(I={getDefaultFieldNames:u,fetcher:l,operationName:v},t[21]=l,t[22]=u,t[23]=v,t[24]=I):I=t[24];const M=I;let F;t[25]!==g||t[26]!==y||t[27]!==b||t[28]!==N?(F={onTogglePluginVisibility:g,plugins:y,visiblePlugin:N,referencePlugin:b},t[25]=g,t[26]=y,t[27]=b,t[28]=N,t[29]=F):F=t[29];const P=F;let R,j,V,B,z;return t[30]!==n||t[31]!==P?(R=(0,Gm.jsx)(mc,{...P,children:n}),t[30]=n,t[31]=P,t[32]=R):R=t[32],t[33]!==M||t[34]!==R?(j=(0,Gm.jsx)(tg,{...M,children:R}),t[33]=M,t[34]=R,t[35]=j):j=t[35],t[36]!==L||t[37]!==j?(V=(0,Gm.jsx)(yc,{...L,children:j}),t[36]=L,t[37]=j,t[38]=V):V=t[38],t[39]!==D||t[40]!==V?(B=(0,Gm.jsx)(Ym,{...D,children:V}),t[39]=D,t[40]=V,t[41]=B):B=t[41],t[42]!==S||t[43]!==B?(z=(0,Gm.jsx)(Hu,{storage:S,children:B}),t[42]=S,t[43]=B,t[44]=z):z=t[44],z},lg="theme",ug=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("path",{d:"M5.0484 1.40838C6.12624 0.33054 7.87376 0.330541 8.9516 1.40838L12.5916 5.0484C13.6695 6.12624 13.6695 7.87376 12.5916 8.9516L8.9516 12.5916C7.87376 13.6695 6.12624 13.6695 5.0484 12.5916L1.40838 8.9516C0.33054 7.87376 0.330541 6.12624 1.40838 5.0484L5.0484 1.40838Z",stroke:"currentColor",strokeWidth:1.2}),Fu.createElement("rect",{x:6,y:6,width:2,height:2,rx:1,fill:"currentColor"}))),cg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("path",{d:"M1 1L7 7L13 1",stroke:"currentColor",strokeWidth:1.5}))),dg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("path",{d:"M6 1.04819L2 5.04819L6 9.04819",stroke:"currentColor",strokeWidth:1.75}))),fg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("path",{d:"M13 8L7 2L1 8",stroke:"currentColor",strokeWidth:1.5}))),pg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 14 14",stroke:"currentColor",strokeWidth:3,xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("path",{d:"M1 1L12.9998 12.9997"}),Fu.createElement("path",{d:"M13 1L1.00079 13.0003"}))),hg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("path",{d:"M11.25 14.2105V15.235C11.25 16.3479 10.3479 17.25 9.23501 17.25H2.76499C1.65214 17.25 0.75 16.3479 0.75 15.235L0.75 8.76499C0.75 7.65214 1.65214 6.75 2.76499 6.75L3.78947 6.75",stroke:"currentColor",strokeWidth:1.5}),Fu.createElement("rect",{x:6.75,y:.75,width:10.5,height:10.5,rx:2.2069,stroke:"currentColor",strokeWidth:1.5}))),mg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("path",{d:"M5.0484 1.40838C6.12624 0.33054 7.87376 0.330541 8.9516 1.40838L12.5916 5.0484C13.6695 6.12624 13.6695 7.87376 12.5916 8.9516L8.9516 12.5916C7.87376 13.6695 6.12624 13.6695 5.0484 12.5916L1.40838 8.9516C0.33054 7.87376 0.330541 6.12624 1.40838 5.0484L5.0484 1.40838Z",stroke:"currentColor",strokeWidth:1.2}),Fu.createElement("path",{d:"M5 9L9 5",stroke:"currentColor",strokeWidth:1.2}),Fu.createElement("path",{d:"M5 5L9 9",stroke:"currentColor",strokeWidth:1.2}))),gg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),Fu.createElement("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2}),Fu.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 1.2H9C9.99411 1.2 10.8 2.00589 10.8 3V9C10.8 9.99411 9.99411 10.8 9 10.8H8.5V12H9C10.6569 12 12 10.6569 12 9V3C12 1.34315 10.6569 0 9 0H8.5V1.2ZM3.5 1.2V0H3C1.34315 0 0 1.34315 0 3V9C0 10.6569 1.34315 12 3 12H3.5V10.8H3C2.00589 10.8 1.2 9.99411 1.2 9V3C1.2 2.00589 2.00589 1.2 3 1.2H3.5Z",fill:"currentColor"}))),vg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("rect",{x:.6,y:.6,width:10.8,height:10.8,rx:3.4,stroke:"currentColor",strokeWidth:1.2}),Fu.createElement("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),Fu.createElement("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2}))),yg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0.5 12 12",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("rect",{x:7,y:5.5,width:2,height:2,rx:1,transform:"rotate(90 7 5.5)",fill:"currentColor"}),Fu.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8 9L10.8 9.5C10.8 10.4941 9.99411 11.3 9 11.3L3 11.3C2.00589 11.3 1.2 10.4941 1.2 9.5L1.2 9L-3.71547e-07 9L-3.93402e-07 9.5C-4.65826e-07 11.1569 1.34314 12.5 3 12.5L9 12.5C10.6569 12.5 12 11.1569 12 9.5L12 9L10.8 9ZM10.8 4L12 4L12 3.5C12 1.84315 10.6569 0.5 9 0.5L3 0.5C1.34315 0.5 -5.87117e-08 1.84315 -1.31135e-07 3.5L-1.5299e-07 4L1.2 4L1.2 3.5C1.2 2.50589 2.00589 1.7 3 1.7L9 1.7C9.99411 1.7 10.8 2.50589 10.8 3.5L10.8 4Z",fill:"currentColor"}))),bg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("path",{d:"M0.75 3C0.75 1.75736 1.75736 0.75 3 0.75H17.25C17.8023 0.75 18.25 1.19772 18.25 1.75V5.25",stroke:"currentColor",strokeWidth:1.5}),Fu.createElement("path",{d:"M0.75 3C0.75 4.24264 1.75736 5.25 3 5.25H18.25C18.8023 5.25 19.25 5.69771 19.25 6.25V22.25C19.25 22.8023 18.8023 23.25 18.25 23.25H3C1.75736 23.25 0.75 22.2426 0.75 21V3Z",stroke:"currentColor",strokeWidth:1.5}),Fu.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 5.25C1.75736 5.25 0.75 4.24264 0.75 3V21C0.75 22.2426 1.75736 23.25 3 23.25H18.25C18.8023 23.25 19.25 22.8023 19.25 22.25V6.25C19.25 5.69771 18.8023 5.25 18.25 5.25H3ZM13 11L6 11V12.5L13 12.5V11Z",fill:"currentColor"}))),wg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("path",{d:"M0.75 3C0.75 4.24264 1.75736 5.25 3 5.25H17.25M0.75 3C0.75 1.75736 1.75736 0.75 3 0.75H16.25C16.8023 0.75 17.25 1.19772 17.25 1.75V5.25M0.75 3V21C0.75 22.2426 1.75736 23.25 3 23.25H18.25C18.8023 23.25 19.25 22.8023 19.25 22.25V6.25C19.25 5.69771 18.8023 5.25 18.25 5.25H17.25",stroke:"currentColor",strokeWidth:1.5}),Fu.createElement("line",{x1:13,y1:11.75,x2:6,y2:11.75,stroke:"currentColor",strokeWidth:1.5}))),xg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("rect",{x:5,y:5,width:2,height:2,rx:1,fill:"currentColor"}),Fu.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 1.2H9C9.99411 1.2 10.8 2.00589 10.8 3V9C10.8 9.99411 9.99411 10.8 9 10.8H8.5V12H9C10.6569 12 12 10.6569 12 9V3C12 1.34315 10.6569 0 9 0H8.5V1.2ZM3.5 1.2V0H3C1.34315 0 0 1.34315 0 3V9C0 10.6569 1.34315 12 3 12H3.5V10.8H3C2.00589 10.8 1.2 9.99411 1.2 9V3C1.2 2.00589 2.00589 1.2 3 1.2H3.5Z",fill:"currentColor"}))),Eg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("rect",{x:.6,y:1.1,width:10.8,height:10.8,rx:2.4,stroke:"currentColor",strokeWidth:1.2}),Fu.createElement("rect",{x:5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"}))),kg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 24 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("path",{d:"M1.59375 9.52344L4.87259 12.9944L8.07872 9.41249",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),Fu.createElement("path",{d:"M13.75 5.25V10.75H18.75",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),Fu.createElement("path",{d:"M4.95427 11.9332C4.55457 10.0629 4.74441 8.11477 5.49765 6.35686C6.25089 4.59894 7.5305 3.11772 9.16034 2.11709C10.7902 1.11647 12.6901 0.645626 14.5986 0.769388C16.5071 0.893151 18.3303 1.60543 19.8172 2.80818C21.3042 4.01093 22.3818 5.64501 22.9017 7.48548C23.4216 9.32595 23.3582 11.2823 22.7203 13.0853C22.0824 14.8883 20.9013 16.4492 19.3396 17.5532C17.778 18.6572 15.9125 19.25 14 19.25",stroke:"currentColor",strokeWidth:1.5}))),Cg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("circle",{cx:6,cy:6,r:5.4,stroke:"currentColor",strokeWidth:1.2,strokeDasharray:"4.241025 4.241025",transform:"rotate(22.5 6 6)"}),Fu.createElement("circle",{cx:6,cy:6,r:1,fill:"currentColor"}))),Sg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("path",{d:"M1.5 14.5653C1.5 15.211 1.75652 15.8303 2.21314 16.2869C2.66975 16.7435 3.28905 17 3.9348 17C4.58054 17 5.19984 16.7435 5.65646 16.2869C6.11307 15.8303 6.36959 15.211 6.36959 14.5653V12.1305H3.9348C3.28905 12.1305 2.66975 12.387 2.21314 12.8437C1.75652 13.3003 1.5 13.9195 1.5 14.5653Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),Fu.createElement("path",{d:"M3.9348 1.00063C3.28905 1.00063 2.66975 1.25715 2.21314 1.71375C1.75652 2.17035 1.5 2.78964 1.5 3.43537C1.5 4.0811 1.75652 4.70038 2.21314 5.15698C2.66975 5.61358 3.28905 5.8701 3.9348 5.8701H6.36959V3.43537C6.36959 2.78964 6.11307 2.17035 5.65646 1.71375C5.19984 1.25715 4.58054 1.00063 3.9348 1.00063Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),Fu.createElement("path",{d:"M15.0652 12.1305H12.6304V14.5653C12.6304 15.0468 12.7732 15.5175 13.0407 15.9179C13.3083 16.3183 13.6885 16.6304 14.1334 16.8147C14.5783 16.9989 15.0679 17.0472 15.5402 16.9532C16.0125 16.8593 16.4464 16.6274 16.7869 16.2869C17.1274 15.9464 17.3593 15.5126 17.4532 15.0403C17.5472 14.568 17.4989 14.0784 17.3147 13.6335C17.1304 13.1886 16.8183 12.8084 16.4179 12.5409C16.0175 12.2733 15.5468 12.1305 15.0652 12.1305Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),Fu.createElement("path",{d:"M12.6318 5.86775H6.36955V12.1285H12.6318V5.86775Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),Fu.createElement("path",{d:"M17.5 3.43473C17.5 2.789 17.2435 2.16972 16.7869 1.71312C16.3303 1.25652 15.711 1 15.0652 1C14.4195 1 13.8002 1.25652 13.3435 1.71312C12.8869 2.16972 12.6304 2.789 12.6304 3.43473V5.86946H15.0652C15.711 5.86946 16.3303 5.61295 16.7869 5.15635C17.2435 4.69975 17.5 4.08046 17.5 3.43473Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}))),Tg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("circle",{cx:5,cy:5,r:4.35,stroke:"currentColor",strokeWidth:1.3}),Fu.createElement("line",{x1:8.45962,y1:8.54038,x2:11.7525,y2:11.8333,stroke:"currentColor",strokeWidth:1.3}))),_g=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("path",{d:"M17.2492 6V2.9569C17.2492 1.73806 16.2611 0.75 15.0423 0.75L2.9569 0.75C1.73806 0.75 0.75 1.73806 0.75 2.9569L0.75 6",stroke:"currentColor",strokeWidth:1.5}),Fu.createElement("path",{d:"M0.749873 12V15.0431C0.749873 16.2619 1.73794 17.25 2.95677 17.25H15.0421C16.261 17.25 17.249 16.2619 17.249 15.0431V12",stroke:"currentColor",strokeWidth:1.5}),Fu.createElement("path",{d:"M6 4.5L9 7.5L12 4.5",stroke:"currentColor",strokeWidth:1.5}),Fu.createElement("path",{d:"M12 13.5L9 10.5L6 13.5",stroke:"currentColor",strokeWidth:1.5}))),Ng=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("path",{d:"M0.75 13.25L0.0554307 12.967C-0.0593528 13.2488 0.00743073 13.5719 0.224488 13.7851C0.441545 13.9983 0.765869 14.0592 1.04549 13.9393L0.75 13.25ZM12.8214 1.83253L12.2911 2.36286L12.2911 2.36286L12.8214 1.83253ZM12.8214 3.90194L13.3517 4.43227L12.8214 3.90194ZM10.0981 1.17859L9.56773 0.648259L10.0981 1.17859ZM12.1675 1.17859L12.6978 0.648258L12.6978 0.648257L12.1675 1.17859ZM2.58049 8.75697L3.27506 9.03994L2.58049 8.75697ZM2.70066 8.57599L3.23099 9.10632L2.70066 8.57599ZM5.2479 11.4195L4.95355 10.7297L5.2479 11.4195ZM5.42036 11.303L4.89003 10.7727L5.42036 11.303ZM4.95355 10.7297C4.08882 11.0987 3.41842 11.362 2.73535 11.6308C2.05146 11.9 1.35588 12.1743 0.454511 12.5607L1.04549 13.9393C1.92476 13.5624 2.60256 13.2951 3.28469 13.0266C3.96762 12.7578 4.65585 12.4876 5.54225 12.1093L4.95355 10.7297ZM1.44457 13.533L3.27506 9.03994L1.88592 8.474L0.0554307 12.967L1.44457 13.533ZM3.23099 9.10632L10.6284 1.70892L9.56773 0.648259L2.17033 8.04566L3.23099 9.10632ZM11.6371 1.70892L12.2911 2.36286L13.3517 1.3022L12.6978 0.648258L11.6371 1.70892ZM12.2911 3.37161L4.89003 10.7727L5.95069 11.8333L13.3517 4.43227L12.2911 3.37161ZM12.2911 2.36286C12.5696 2.64142 12.5696 3.09305 12.2911 3.37161L13.3517 4.43227C14.2161 3.56792 14.2161 2.16654 13.3517 1.3022L12.2911 2.36286ZM10.6284 1.70892C10.9069 1.43036 11.3586 1.43036 11.6371 1.70892L12.6978 0.648257C11.8335 -0.216088 10.4321 -0.216084 9.56773 0.648259L10.6284 1.70892ZM3.27506 9.03994C3.26494 9.06479 3.24996 9.08735 3.23099 9.10632L2.17033 8.04566C2.04793 8.16806 1.95123 8.31369 1.88592 8.474L3.27506 9.03994ZM5.54225 12.1093C5.69431 12.0444 5.83339 11.9506 5.95069 11.8333L4.89003 10.7727C4.90863 10.7541 4.92988 10.7398 4.95355 10.7297L5.54225 12.1093Z",fill:"currentColor"}),Fu.createElement("path",{d:"M11.5 4.5L9.5 2.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"}),Fu.createElement("path",{d:"M5.5 10.5L3.5 8.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"}))),Ag=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("path",{d:"M1.32226e-07 1.6609C7.22332e-08 0.907329 0.801887 0.424528 1.46789 0.777117L15.3306 8.11621C16.0401 8.49182 16.0401 9.50818 15.3306 9.88379L1.46789 17.2229C0.801886 17.5755 1.36076e-06 17.0927 1.30077e-06 16.3391L1.32226e-07 1.6609Z",fill:"currentColor"}))),Dg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 10 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.25 9.25V13.5H5.75V9.25L10 9.25V7.75L5.75 7.75V3.5H4.25V7.75L0 7.75V9.25L4.25 9.25Z"}))),Og=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{width:25,height:25,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("path",{d:"M10.2852 24.0745L13.7139 18.0742",stroke:"currentColor",strokeWidth:1.5625}),Fu.createElement("path",{d:"M14.5742 24.0749L17.1457 19.7891",stroke:"currentColor",strokeWidth:1.5625}),Fu.createElement("path",{d:"M19.4868 24.0735L20.7229 21.7523C21.3259 20.6143 21.5457 19.3122 21.3496 18.0394C21.1535 16.7666 20.5519 15.591 19.6342 14.6874L23.7984 6.87853C24.0123 6.47728 24.0581 6.00748 23.9256 5.57249C23.7932 5.1375 23.4933 4.77294 23.0921 4.55901C22.6908 4.34509 22.221 4.29932 21.7861 4.43178C21.3511 4.56424 20.9865 4.86408 20.7726 5.26533L16.6084 13.0742C15.3474 12.8142 14.0362 12.9683 12.8699 13.5135C11.7035 14.0586 10.7443 14.9658 10.135 16.1L6 24.0735",stroke:"currentColor",strokeWidth:1.5625}),Fu.createElement("path",{d:"M4 15L5 13L7 12L5 11L4 9L3 11L1 12L3 13L4 15Z",stroke:"currentColor",strokeWidth:1.5625,strokeLinejoin:"round"}),Fu.createElement("path",{d:"M11.5 8L12.6662 5.6662L15 4.5L12.6662 3.3338L11.5 1L10.3338 3.3338L8 4.5L10.3338 5.6662L11.5 8Z",stroke:"currentColor",strokeWidth:1.5625,strokeLinejoin:"round"}))),Lg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("path",{d:"M4.75 9.25H1.25V12.75",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),Fu.createElement("path",{d:"M11.25 6.75H14.75V3.25",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),Fu.createElement("path",{d:"M14.1036 6.65539C13.8 5.27698 13.0387 4.04193 11.9437 3.15131C10.8487 2.26069 9.48447 1.76694 8.0731 1.75043C6.66173 1.73392 5.28633 2.19563 4.17079 3.0604C3.05526 3.92516 2.26529 5.14206 1.92947 6.513",stroke:"currentColor",strokeWidth:1}),Fu.createElement("path",{d:"M1.89635 9.34461C2.20001 10.723 2.96131 11.9581 4.05631 12.8487C5.15131 13.7393 6.51553 14.2331 7.9269 14.2496C9.33827 14.2661 10.7137 13.8044 11.8292 12.9396C12.9447 12.0748 13.7347 10.8579 14.0705 9.487",stroke:"currentColor",strokeWidth:1}))),Ig=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),Fu.createElement("path",{d:"M4.25 7.5C4.25 6 5.75 5 6.5 6.5C7.25 8 8.75 7 8.75 5.5",stroke:"currentColor",strokeWidth:1.2}))),Mg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.29186 1.92702C9.06924 1.82745 8.87014 1.68202 8.70757 1.50024L7.86631 0.574931C7.62496 0.309957 7.30773 0.12592 6.95791 0.0479385C6.60809 -0.0300431 6.24274 0.00182978 5.91171 0.139208C5.58068 0.276585 5.3001 0.512774 5.10828 0.815537C4.91645 1.1183 4.82272 1.47288 4.83989 1.83089L4.90388 3.08019C4.91612 3.32348 4.87721 3.56662 4.78968 3.79394C4.70215 4.02126 4.56794 4.2277 4.39571 4.39994C4.22347 4.57219 4.01704 4.7064 3.78974 4.79394C3.56243 4.88147 3.3193 4.92038 3.07603 4.90814L1.8308 4.84414C1.47162 4.82563 1.11553 4.91881 0.811445 5.11086C0.507359 5.30292 0.270203 5.58443 0.132561 5.91671C-0.00508149 6.249 -0.0364554 6.61576 0.0427496 6.9666C0.121955 7.31744 0.307852 7.63514 0.5749 7.87606L1.50016 8.71204C1.68193 8.87461 1.82735 9.07373 1.92692 9.29636C2.02648 9.51898 2.07794 9.76012 2.07794 10.004C2.07794 10.2479 2.02648 10.489 1.92692 10.7116C1.82735 10.9343 1.68193 11.1334 1.50016 11.296L0.5749 12.1319C0.309856 12.3729 0.125575 12.6898 0.0471809 13.0393C-0.0312128 13.3888 9.64098e-05 13.754 0.13684 14.0851C0.273583 14.4162 0.509106 14.6971 0.811296 14.8894C1.11349 15.0817 1.46764 15.1762 1.82546 15.1599L3.0707 15.0959C3.31397 15.0836 3.5571 15.1225 3.7844 15.2101C4.01171 15.2976 4.21814 15.4318 4.39037 15.6041C4.56261 15.7763 4.69682 15.9827 4.78435 16.2101C4.87188 16.4374 4.91078 16.6805 4.89855 16.9238L4.83455 18.1691C4.81605 18.5283 4.90921 18.8844 5.10126 19.1885C5.2933 19.4926 5.5748 19.7298 5.90707 19.8674C6.23934 20.0051 6.60608 20.0365 6.9569 19.9572C7.30772 19.878 7.6254 19.6921 7.86631 19.4251L8.7129 18.4998C8.87547 18.318 9.07458 18.1725 9.29719 18.073C9.51981 17.9734 9.76093 17.9219 10.0048 17.9219C10.2487 17.9219 10.4898 17.9734 10.7124 18.073C10.935 18.1725 11.1341 18.318 11.2967 18.4998L12.1326 19.4251C12.3735 19.6921 12.6912 19.878 13.042 19.9572C13.3929 20.0365 13.7596 20.0051 14.0919 19.8674C14.4241 19.7298 14.7056 19.4926 14.8977 19.1885C15.0897 18.8844 15.1829 18.5283 15.1644 18.1691L15.1004 16.9238C15.0882 16.6805 15.1271 16.4374 15.2146 16.2101C15.3021 15.9827 15.4363 15.7763 15.6086 15.6041C15.7808 15.4318 15.9872 15.2976 16.2145 15.2101C16.4418 15.1225 16.685 15.0836 16.9282 15.0959L18.1735 15.1599C18.5326 15.1784 18.8887 15.0852 19.1928 14.8931C19.4969 14.7011 19.7341 14.4196 19.8717 14.0873C20.0093 13.755 20.0407 13.3882 19.9615 13.0374C19.8823 12.6866 19.6964 12.3689 19.4294 12.1279L18.5041 11.292C18.3223 11.1294 18.1769 10.9303 18.0774 10.7076C17.9778 10.485 17.9263 10.2439 17.9263 10C17.9263 9.75612 17.9778 9.51499 18.0774 9.29236C18.1769 9.06973 18.3223 8.87062 18.5041 8.70804L19.4294 7.87206C19.6964 7.63114 19.8823 7.31344 19.9615 6.9626C20.0407 6.61176 20.0093 6.245 19.8717 5.91271C19.7341 5.58043 19.4969 5.29892 19.1928 5.10686C18.8887 4.91481 18.5326 4.82163 18.1735 4.84014L16.9282 4.90414C16.685 4.91638 16.4418 4.87747 16.2145 4.78994C15.9872 4.7024 15.7808 4.56818 15.6086 4.39594C15.4363 4.2237 15.3021 4.01726 15.2146 3.78994C15.1271 3.56262 15.0882 3.31948 15.1004 3.07619L15.1644 1.83089C15.1829 1.4717 15.0897 1.11559 14.8977 0.811487C14.7056 0.507385 14.4241 0.270217 14.0919 0.132568C13.7596 -0.00508182 13.3929 -0.0364573 13.042 0.0427519C12.6912 0.121961 12.3735 0.307869 12.1326 0.574931L11.2914 1.50024C11.1288 1.68202 10.9297 1.82745 10.7071 1.92702C10.4845 2.02659 10.2433 2.07805 9.99947 2.07805C9.7556 2.07805 9.51448 2.02659 9.29186 1.92702ZM14.3745 10C14.3745 12.4162 12.4159 14.375 9.99977 14.375C7.58365 14.375 5.625 12.4162 5.625 10C5.625 7.58375 7.58365 5.625 9.99977 5.625C12.4159 5.625 14.3745 7.58375 14.3745 10Z",fill:"currentColor"}))),Fg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("path",{d:"M6.5782 1.07092C6.71096 0.643026 7.28904 0.643027 7.4218 1.07092L8.59318 4.84622C8.65255 5.03758 8.82284 5.16714 9.01498 5.16714L12.8056 5.16714C13.2353 5.16714 13.4139 5.74287 13.0663 6.00732L9.99962 8.34058C9.84418 8.45885 9.77913 8.66848 9.83851 8.85984L11.0099 12.6351C11.1426 13.063 10.675 13.4189 10.3274 13.1544L7.26069 10.8211C7.10524 10.7029 6.89476 10.7029 6.73931 10.8211L3.6726 13.1544C3.32502 13.4189 2.85735 13.063 2.99012 12.6351L4.16149 8.85984C4.22087 8.66848 4.15582 8.45885 4.00038 8.34058L0.933671 6.00732C0.586087 5.74287 0.764722 5.16714 1.19436 5.16714L4.98502 5.16714C5.17716 5.16714 5.34745 5.03758 5.40682 4.84622L6.5782 1.07092Z",fill:"currentColor",stroke:"currentColor"}))),Pg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("path",{d:"M6.5782 1.07092C6.71096 0.643026 7.28904 0.643027 7.4218 1.07092L8.59318 4.84622C8.65255 5.03758 8.82284 5.16714 9.01498 5.16714L12.8056 5.16714C13.2353 5.16714 13.4139 5.74287 13.0663 6.00732L9.99962 8.34058C9.84418 8.45885 9.77913 8.66848 9.83851 8.85984L11.0099 12.6351C11.1426 13.063 10.675 13.4189 10.3274 13.1544L7.26069 10.8211C7.10524 10.7029 6.89476 10.7029 6.73931 10.8211L3.6726 13.1544C3.32502 13.4189 2.85735 13.063 2.99012 12.6351L4.16149 8.85984C4.22087 8.66848 4.15582 8.45885 4.00038 8.34058L0.933671 6.00732C0.586087 5.74287 0.764722 5.16714 1.19436 5.16714L4.98502 5.16714C5.17716 5.16714 5.34745 5.03758 5.40682 4.84622L6.5782 1.07092Z",stroke:"currentColor",strokeWidth:1.5}))),Rg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("rect",{width:16,height:16,rx:2,fill:"currentColor"}))),jg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{width:"1em",height:"5em",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd","aria-hidden":"true",viewBox:"0 0 23 23",style:{height:"1.5em"},clipRule:"evenodd","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("path",{d:"M19 24h-14c-1.104 0-2-.896-2-2v-17h-1v-2h6v-1.5c0-.827.673-1.5 1.5-1.5h5c.825 0 1.5.671 1.5 1.5v1.5h6v2h-1v17c0 1.104-.896 2-2 2zm0-19h-14v16.5c0 .276.224.5.5.5h13c.276 0 .5-.224.5-.5v-16.5zm-7 7.586l3.293-3.293 1.414 1.414-3.293 3.293 3.293 3.293-1.414 1.414-3.293-3.293-3.293 3.293-1.414-1.414 3.293-3.293-3.293-3.293 1.414-1.414 3.293 3.293zm2-10.586h-4v1h4v-1z",fill:"currentColor",strokeWidth:.25,stroke:"currentColor"}))),Vg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),Fu.createElement("rect",{x:5.5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"})));function Bg(e){const t=e.name.replace("Svg","").replaceAll(/([A-Z])/g," $1").trimStart().toLowerCase()+" icon",n=n=>{const r=(0,$u.c)(2);let i;return r[0]!==n?(i=(0,Gm.jsx)(e,{title:t,...n}),r[0]=n,r[1]=i):i=r[1],i};return n.displayName=e.name,n}function zg(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t{const t=(0,$u.c)(13);let n,r,i;t[0]!==e?(({isHidden:r,...n}=e),t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]),t[3]===Symbol.for("react.memo_cache_sentinel")?(i={nonNull:!0,caller:Ug},t[3]=i):i=t[3];const{headerEditor:o}=Qm(i),a=Ip(n,Ug);let s,l;t[4]!==o||t[5]!==r?(s=()=>{r||null==o||o.refresh()},l=[o,r],t[4]=o,t[5]=r,t[6]=s,t[7]=l):(s=t[6],l=t[7]),(0,Fu.useEffect)(s,l);const u=r&&"hidden";let c,d;return t[8]!==u?(c=$g("graphiql-editor",u),t[8]=u,t[9]=c):c=t[9],t[10]!==a||t[11]!==c?(d=(0,Gm.jsx)("div",{className:c,ref:a}),t[10]=a,t[11]=c,t[12]=d):d=t[12],d},Hg=Object.assign(e=>{var t;const n=(0,$u.c)(14);let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r={width:null,height:null},n[0]=r):r=n[0];const[i,o]=(0,Fu.useState)(r),[a,s]=(0,Fu.useState)(null),l=(0,Fu.useRef)(null),u=null==(t=Wg(e.token))?void 0:t.href;let c,d,f;n[1]!==u?(c=()=>{if(l.current)return u?void fetch(u,{method:"HEAD"}).then(e=>{s(e.headers.get("Content-Type"))}).catch(()=>{s(null)}):(o({width:null,height:null}),void s(null))},d=[u],n[1]=u,n[2]=c,n[3]=d):(c=n[2],d=n[3]),(0,Fu.useEffect)(c,d),n[4]!==i.height||n[5]!==i.width||n[6]!==a?(f=null!==i.width&&null!==i.height?(0,Gm.jsxs)("div",{children:[i.width,"x",i.height,null===a?null:" "+a]}):null,n[4]=i.height,n[5]=i.width,n[6]=a,n[7]=f):f=n[7];const p=f;let h,m,g;return n[8]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{var e,t,n,r;o({width:null!==(e=null==(n=l.current)?void 0:n.naturalWidth)&&void 0!==e?e:null,height:null!==(t=null==(r=l.current)?void 0:r.naturalHeight)&&void 0!==t?t:null})},n[8]=h):h=n[8],n[9]!==u?(m=(0,Gm.jsx)("img",{onLoad:h,ref:l,src:u}),n[9]=u,n[10]=m):m=n[10],n[11]!==p||n[12]!==m?(g=(0,Gm.jsxs)("div",{children:[m,p]}),n[11]=p,n[12]=m,n[13]=g):g=n[13],g},{shouldRender(e){const t=Wg(e);return!!t&&function(e){return/\.(bmp|gif|jpe?g|png|svg|webp)$/.test(e.pathname)}(t)}});function Wg(e){if("string"!==e.type)return;const t=e.string.slice(1).slice(0,-1).trim();try{return new URL(t,location.protocol+"//"+location.host)}catch(n){}}var qg,Gg,Kg,Yg=e=>{const t=(0,$u.c)(2),n=Rh(e,Yg);let r;return t[0]!==n?(r=(0,Gm.jsx)("div",{className:"graphiql-editor",ref:n}),t[0]=n,t[1]=r):r=t[1],r},Qg=l({}),Xg=a(()=>{qg=c(Qu()),Au(),Lh(),qg.default.defineMode("graphql-results",e=>{const t=Dl({eatWhitespace:e=>e.eatSpace(),lexRules:Gg,parseRules:Kg,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:Ah,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}}),Gg={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/},Kg={Document:[xl("{"),yl("Entry",xl(",")),xl("}")],Entry:[wl("String","def"),xl(":"),"Value"],Value(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:[wl("Number","number")],StringValue:[wl("String","string")],BooleanValue:[wl("Keyword","builtin")],NullValue:[wl("Keyword","keyword")],ListValue:[xl("["),yl("Value",xl(",")),xl("]")],ObjectValue:[xl("{"),yl("ObjectField",xl(",")),xl("}")],ObjectField:[wl("String","property"),xl(":"),"Value"]}}),Zg=c(y()),Jg=ev;function ev(e,t){const n=(0,$u.c)(17);let r;n[0]!==e?(r=void 0===e?{}:e,n[0]=e,n[1]=r):r=n[1];const{responseTooltip:i,editorTheme:o,keyMap:a}=r,s=void 0===o?lc:o,l=void 0===a?uc:a,{fetchError:u,validationErrors:d}=bc(),f=t||Jg;let p;n[2]!==f?(p={nonNull:!0,caller:f},n[2]=f,n[3]=p):p=n[3];const{initialResponse:h,responseEditor:m,setResponseEditor:g}=Qm(p),v=(0,Fu.useRef)(null),y=(0,Fu.useRef)(i);let b,w,x,E,k,C;return n[4]!==i?(b=()=>{y.current=i},w=[i],n[4]=i,n[5]=b,n[6]=w):(b=n[5],w=n[6]),(0,Fu.useEffect)(b,w),n[7]!==s||n[8]!==h||n[9]!==g?(x=()=>{let e=!0;return dc([ga(()=>Promise.resolve().then(()=>c(nc())),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>c(ec())),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>c(oc())),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>c(Hp())),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>c(ic())),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>c(ac())),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>c(sc())),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>(Xg(),Qg)),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>(dh(),lh)),void 0,import.meta.url)],{useCommonAddons:!1}).then(t=>{if(!e)return;const n=document.createElement("div"),r=(0,Zg.createRoot)(n);t.registerHelper("info","graphql-results",(e,t,i,o)=>{const a=y.current,s=[a&&(0,Gm.jsx)(a,{pos:o,token:e}),Hg.shouldRender(e)&&(0,Gm.jsx)(Hg,{token:e},"image-preview")].filter(tv);if(s.length)return r.render(s),n;r.unmount()});const i=v.current;i&&g(t(i,{value:h,lineWrapping:!0,readOnly:!0,theme:s,mode:"graphql-results",foldGutter:!0,gutters:["CodeMirror-foldgutter"],info:!0,extraKeys:cc}))}),()=>{e=!1}},E=[s,h,g],n[7]=s,n[8]=h,n[9]=g,n[10]=x,n[11]=E):(x=n[10],E=n[11]),(0,Fu.useEffect)(x,E),yp(m,"keyMap",l),n[12]!==u||n[13]!==m||n[14]!==d?(k=()=>{u&&(null==m||m.setValue(u)),d.length&&(null==m||m.setValue(ba(d)))},C=[m,u,d],n[12]=u,n[13]=m,n[14]=d,n[15]=k,n[16]=C):(k=n[15],C=n[16]),(0,Fu.useEffect)(k,C),v}function tv(e){return Boolean(e)}var nv=e=>{const t=(0,$u.c)(2),n=ev(e,nv);let r;return t[0]!==n?(r=(0,Gm.jsx)("section",{className:"result-window","aria-label":"Result Window","aria-live":"polite","aria-atomic":"true",ref:n}),t[0]=n,t[1]=r):r=t[1],r},rv=e=>{const t=(0,$u.c)(13);let n,r,i;t[0]!==e?(({isHidden:r,...n}=e),t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]),t[3]===Symbol.for("react.memo_cache_sentinel")?(i={nonNull:!0,caller:rv},t[3]=i):i=t[3];const{variableEditor:o}=Qm(i),a=Um(n,rv);let s,l;t[4]!==r||t[5]!==o?(s=()=>{r||null==o||o.refresh()},l=[o,r],t[4]=r,t[5]=o,t[6]=s,t[7]=l):(s=t[6],l=t[7]),(0,Fu.useEffect)(s,l);const u=r&&"hidden";let c,d;return t[8]!==u?(c=$g("graphiql-editor",u),t[8]=u,t[9]=c):c=t[9],t[10]!==a||t[11]!==c?(d=(0,Gm.jsx)("div",{className:c,ref:a}),t[10]=a,t[11]=c,t[12]=d):d=t[12],d};function iv(e){const t=(0,$u.c)(31),{defaultSizeRelation:n,direction:r,initiallyHidden:i,onHiddenElementChange:o,sizeThresholdFirst:a,sizeThresholdSecond:s,storageKey:l}=e,u=void 0===n?1:n,c=void 0===a?100:a,d=void 0===s?100:s,f=qu();let p;t[0]!==f||t[1]!==l?(p=mp(500,e=>{l&&f.set(l,e)}),t[0]=f,t[1]=l,t[2]=p):p=t[2];const h=p;let m;t[3]!==i||t[4]!==f||t[5]!==l?(m=()=>{const e=l&&f.get(l);return e===ov||"first"===i?"first":e===av||"second"===i?"second":null},t[3]=i,t[4]=f,t[5]=l,t[6]=m):m=t[6];const[g,v]=(0,Fu.useState)(m);let y;t[7]!==g||t[8]!==o?(y=e=>{e!==g&&(v(e),null==o||o(e))},t[7]=g,t[8]=o,t[9]=y):y=t[9];const b=y,w=(0,Fu.useRef)(null),x=(0,Fu.useRef)(null),E=(0,Fu.useRef)(null),k=(0,Fu.useRef)(`${u}`);let C,S,T,_,N,A,D;return t[10]!==f||t[11]!==l?(C=()=>{const e=l&&f.get(l)||k.current;w.current&&(w.current.style.flex=e===ov||e===av?k.current:e),E.current&&(E.current.style.flex="1")},t[10]=f,t[11]=l,t[12]=C):C=t[12],t[13]!==r||t[14]!==f||t[15]!==l?(S=[r,f,l],t[13]=r,t[14]=f,t[15]=l,t[16]=S):S=t[16],(0,Fu.useEffect)(C,S),t[17]!==g||t[18]!==f||t[19]!==l?(_=()=>{const e=e=>{const t="first"===e?w.current:E.current;if(t&&(t.style.left="-1000px",t.style.position="absolute",t.style.opacity="0",t.style.height="500px",t.style.width="500px",w.current)){const e=parseFloat(w.current.style.flex);(!Number.isFinite(e)||e<1)&&(w.current.style.flex="1")}},t=e=>{const t="first"===e?w.current:E.current;if(t&&(t.style.width="",t.style.height="",t.style.opacity="",t.style.position="",t.style.left="",l)){const e=f.get(l);w.current&&e!==ov&&e!==av&&(w.current.style.flex=e||k.current)}};"first"===g?e("first"):t("first"),"second"===g?e("second"):t("second")},T=[g,f,l],t[17]=g,t[18]=f,t[19]=l,t[20]=T,t[21]=_):(T=t[20],_=t[21]),(0,Fu.useEffect)(_,T),t[22]!==r||t[23]!==b||t[24]!==c||t[25]!==d||t[26]!==h?(N=()=>{if(!x.current||!w.current||!E.current)return;const e=x.current,t=w.current,n=t.parentElement,i="horizontal"===r?"clientX":"clientY",o="horizontal"===r?"left":"top",a="horizontal"===r?"right":"bottom",s="horizontal"===r?"clientWidth":"clientHeight",l=function(r){if(r.target!==r.currentTarget)return;r.preventDefault();const l=r[i]-e.getBoundingClientRect()[o],u=function(r){if(0===r.buttons)return f();const u=r[i]-n.getBoundingClientRect()[o]-l,p=n.getBoundingClientRect()[a]-r[i]+l-e[s];if(u{e.removeEventListener("mousedown",l),e.removeEventListener("dblclick",u)}},A=[r,b,c,d,h],t[22]=r,t[23]=b,t[24]=c,t[25]=d,t[26]=h,t[27]=N,t[28]=A):(N=t[27],A=t[28]),(0,Fu.useEffect)(N,A),t[29]!==g?(D={dragBarRef:x,hiddenElement:g,firstRef:w,setHiddenElement:v,secondRef:E},t[29]=g,t[30]=D):D=t[30],D}var ov="hide-first",av="hide-second",sv=(0,Fu.forwardRef)((e,t)=>{const n=(0,$u.c)(6);let r,i;return n[0]!==e.className?(r=$g("graphiql-un-styled",e.className),n[0]=e.className,n[1]=r):r=n[1],n[2]!==e||n[3]!==t||n[4]!==r?(i=(0,Gm.jsx)("button",{...e,ref:t,className:r}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});sv.displayName="UnStyledButton";var lv=(0,Fu.forwardRef)((e,t)=>{const n=(0,$u.c)(7);let r,i;return n[0]!==e.className||n[1]!==e.state?(r=$g("graphiql-button",{success:"graphiql-button-success",error:"graphiql-button-error"}[e.state],e.className),n[0]=e.className,n[1]=e.state,n[2]=r):r=n[2],n[3]!==e||n[4]!==t||n[5]!==r?(i=(0,Gm.jsx)("button",{...e,ref:t,className:r}),n[3]=e,n[4]=t,n[5]=r,n[6]=i):i=n[6],i});lv.displayName="Button";var uv,cv=(0,Fu.forwardRef)((e,t)=>{const n=(0,$u.c)(6);let r,i;return n[0]!==e.className?(r=$g("graphiql-button-group",e.className),n[0]=e.className,n[1]=r):r=n[1],n[2]!==e||n[3]!==t||n[4]!==r?(i=(0,Gm.jsx)("div",{...e,ref:t,className:r}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});function dv(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function fv(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function pv(...e){return t=>{let n=!1;const r=e.map(e=>{const r=fv(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t{const t=n.map(e=>Fu.createContext(e));return function(n){const r=(null==n?void 0:n[e])||t;return Fu.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){const i=Fu.createContext(r),o=n.length;n=[...n,r];const a=t=>{var n;const{scope:r,children:a,...s}=t,l=(null==r||null===(n=r[e])||void 0===n?void 0:n[o])||i,u=Fu.useMemo(()=>s,Object.values(s));return(0,Gm.jsx)(l.Provider,{value:u,children:a})};return a.displayName=t+"Provider",[a,function(n,a){var s;const l=(null==a||null===(s=a[e])||void 0===s?void 0:s[o])||i,u=Fu.useContext(l);if(u)return u;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},gv(r,...t)]}function gv(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const r=n.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return Fu.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}cv.displayName="ButtonGroup","undefined"==typeof window||!window.document||window.document.createElement;var vv=(null===(uv=globalThis)||void 0===uv?void 0:uv.document)?Fu.useLayoutEffect:()=>{},yv=Fu[" useId ".trim().toString()]||(()=>{}),bv=0;function wv(e){const[t,n]=Fu.useState(yv());return vv(()=>{e||n(e=>null!=e?e:String(bv++))},[e]),e||(t?`radix-${t}`:"")}var xv=Fu[" useInsertionEffect ".trim().toString()]||vv;function Ev({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,o,a]=function({defaultProp:e,onChange:t}){const[n,r]=Fu.useState(e),i=Fu.useRef(n),o=Fu.useRef(t);return xv(()=>{o.current=t},[t]),Fu.useEffect(()=>{var e;i.current!==n&&(null===(e=o.current)||void 0===e||e.call(o,n),i.current=n)},[n,i]),[n,r,o]}({defaultProp:t,onChange:n}),s=void 0!==e,l=s?e:i;{const t=Fu.useRef(void 0!==e);Fu.useEffect(()=>{t.current,t.current=s},[s,r])}return[l,Fu.useCallback(t=>{if(s){const r=function(e){return"function"==typeof e}(t)?t(e):t;var n;r!==e&&(null===(n=a.current)||void 0===n||n.call(a,r))}else o(t)},[s,e,o,a])]}function kv(e){const t=Cv(e),n=Fu.forwardRef((e,n)=>{const{children:r,...i}=e,o=Fu.Children.toArray(r),a=o.find(Tv);if(a){const e=a.props.children,r=o.map(t=>t===a?Fu.Children.count(e)>1?Fu.Children.only(null):Fu.isValidElement(e)?e.props.children:null:t);return(0,Gm.jsx)(t,{...i,ref:n,children:Fu.isValidElement(e)?Fu.cloneElement(e,void 0,r):null})}return(0,Gm.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Cv(e){const t=Fu.forwardRef((e,t)=>{const{children:n,...r}=e;if(Fu.isValidElement(n)){const e=function(e){var t,n;let r=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?e.ref:(r=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get,i=r&&"isReactWarning"in r&&r.isReactWarning,i?e.props.ref:e.props.ref||e.ref)}(n),i=function(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{const t=o(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==Fu.Fragment&&(i.ref=t?pv(t,e):e),Fu.cloneElement(n,i)}return Fu.Children.count(n)>1?Fu.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Sv=Symbol("radix.slottable");function Tv(e){return Fu.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Sv}var _v=c(g(),1),Nv=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=kv(`Primitive.${t}`),r=Fu.forwardRef((e,r)=>{const{asChild:i,...o}=e,a=i?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,Gm.jsx)(a,{...o,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Av(e,t){e&&_v.flushSync(()=>e.dispatchEvent(t))}function Dv(e){const t=Fu.useRef(e);return Fu.useEffect(()=>{t.current=e}),Fu.useMemo(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}var Ov,Lv="dismissableLayer.update",Iv=Fu.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Mv=Fu.forwardRef((e,t)=>{var n,r;const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,d=Fu.useContext(Iv),[f,p]=Fu.useState(null),h=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null===(r=globalThis)||void 0===r?void 0:r.document,[,m]=Fu.useState({}),g=hv(t,e=>p(e)),v=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=v.indexOf(y),w=f?v.indexOf(f):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,E=w>=b,k=function(e,t=(()=>{var e;return null===(e=globalThis)||void 0===e?void 0:e.document})()){const n=Dv(e),r=Fu.useRef(!1),i=Fu.useRef(()=>{});return Fu.useEffect(()=>{const e=e=>{if(e.target&&!r.current){let r=function(){Pv("dismissableLayer.pointerDownOutside",n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=r,t.addEventListener("click",i.current,{once:!0})):r()}else t.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{const t=e.target,n=[...d.branches].some(e=>e.contains(t));E&&!n&&(null==a||a(e),null==l||l(e),e.defaultPrevented||null==u||u())},h),C=function(e,t=(()=>{var e;return null===(e=globalThis)||void 0===e?void 0:e.document})()){const n=Dv(e),r=Fu.useRef(!1);return Fu.useEffect(()=>{const e=e=>{e.target&&!r.current&&Pv("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{const t=e.target;[...d.branches].some(e=>e.contains(t))||(null==s||s(e),null==l||l(e),e.defaultPrevented||null==u||u())},h);return function(e,t=(()=>{var e;return null===(e=globalThis)||void 0===e?void 0:e.document})()){const n=Dv(e);Fu.useEffect(()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{w===d.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},h),Fu.useEffect(()=>{if(f)return i&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(Ov=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Fv(),()=>{i&&1===d.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=Ov)}},[f,h,i,d]),Fu.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Fv())},[f,d]),Fu.useEffect(()=>{const e=()=>m({});return document.addEventListener(Lv,e),()=>document.removeEventListener(Lv,e)},[]),(0,Gm.jsx)(Nv.div,{...c,ref:g,style:{pointerEvents:x?E?"auto":"none":void 0,...e.style},onFocusCapture:dv(e.onFocusCapture,C.onFocusCapture),onBlurCapture:dv(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:dv(e.onPointerDownCapture,k.onPointerDownCapture)})});function Fv(){const e=new CustomEvent(Lv);document.dispatchEvent(e)}function Pv(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Av(i,o):i.dispatchEvent(o)}Mv.displayName="DismissableLayer",Fu.forwardRef((e,t)=>{const n=Fu.useContext(Iv),r=Fu.useRef(null),i=hv(t,r);return Fu.useEffect(()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,Gm.jsx)(Nv.div,{...e,ref:i})}).displayName="DismissableLayerBranch";var Rv="focusScope.autoFocusOnMount",jv="focusScope.autoFocusOnUnmount",Vv={bubbles:!1,cancelable:!0},Bv=Fu.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...a}=e,[s,l]=Fu.useState(null),u=Dv(i),c=Dv(o),d=Fu.useRef(null),f=hv(t,e=>l(e)),p=Fu.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;Fu.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;const t=e.target;s.contains(t)?d.current=t:Hv(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||Hv(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&Hv(s)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[r,s,p.paused]),Fu.useEffect(()=>{if(s){Wv.add(p);const e=document.activeElement;if(!s.contains(e)){const t=new CustomEvent(Rv,Vv);s.addEventListener(Rv,u),s.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Hv(r,{select:t}),document.activeElement!==n)return}(zv(s).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&Hv(s))}return()=>{s.removeEventListener(Rv,u),setTimeout(()=>{const t=new CustomEvent(jv,Vv);s.addEventListener(jv,c),s.dispatchEvent(t),t.defaultPrevented||Hv(null!=e?e:document.body,{select:!0}),s.removeEventListener(jv,c),Wv.remove(p)},0)}}},[s,u,c,p]);const h=Fu.useCallback(e=>{if(!n&&!r)return;if(p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){const t=e.currentTarget,[r,o]=function(e){const t=zv(e);return[$v(t,e),$v(t.reverse(),e)]}(t);r&&o?e.shiftKey||i!==o?e.shiftKey&&i===r&&(e.preventDefault(),n&&Hv(o,{select:!0})):(e.preventDefault(),n&&Hv(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,Gm.jsx)(Nv.div,{tabIndex:-1,...a,ref:f,onKeyDown:h})});function zv(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function $v(e,t){for(const n of e)if(!Uv(n,{upTo:t}))return n}function Uv(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Hv(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}Bv.displayName="FocusScope";var Wv=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=qv(e,t),e.unshift(t)},remove(t){var n;e=qv(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function qv(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var Gv=Fu.forwardRef((e,t)=>{var n;const{container:r,...i}=e,[o,a]=Fu.useState(!1);vv(()=>a(!0),[]);const s=r||o&&(null===(n=globalThis)||void 0===n||null===(n=n.document)||void 0===n?void 0:n.body);return s?_v.createPortal((0,Gm.jsx)(Nv.div,{...i,ref:t}),s):null});Gv.displayName="Portal";var Kv=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=Fu.useState(),r=Fu.useRef(null),i=Fu.useRef(e),o=Fu.useRef("none"),[a,s]=(l=e?"mounted":"unmounted",u={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},Fu.useReducer((e,t)=>{const n=u[e][t];return null!=n?n:e},l));var l,u;return Fu.useEffect(()=>{const e=Yv(r.current);o.current="mounted"===a?e:"none"},[a]),vv(()=>{const t=r.current,n=i.current;if(n!==e){const r=o.current,a=Yv(t);e?s("MOUNT"):"none"===a||"none"===(null==t?void 0:t.display)?s("UNMOUNT"):s(n&&r!==a?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,s]),vv(()=>{if(t){var e;let n;const a=null!==(e=t.ownerDocument.defaultView)&&void 0!==e?e:window,l=e=>{const o=Yv(r.current).includes(CSS.escape(e.animationName));if(e.target===t&&o&&(s("ANIMATION_END"),!i.current)){const e=t.style.animationFillMode;t.style.animationFillMode="forwards",n=a.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=e)})}},u=e=>{e.target===t&&(o.current=Yv(r.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{a.clearTimeout(n),t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:Fu.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}(t),i="function"==typeof n?n({present:r.isPresent}):Fu.Children.only(n),o=hv(r.ref,function(e){var t,n;let r=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?e.ref:(r=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get,i=r&&"isReactWarning"in r&&r.isReactWarning,i?e.props.ref:e.props.ref||e.ref)}(i));return"function"==typeof n||r.isPresent?Fu.cloneElement(i,{ref:o}):null};function Yv(e){return(null==e?void 0:e.animationName)||"none"}Kv.displayName="Presence";var Qv=0;function Xv(){Fu.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:Zv()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:Zv()),Qv++,()=>{1===Qv&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Qv--}},[])}function Zv(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Jv=function(){return Jv=Object.assign||function(e){for(var t,n=1,r=arguments.length;n