@graphql-yoga/render-graphiql
Version:
1 lines • 1.85 MB
JavaScript
export const js = "(function(fo,Ui){typeof exports==\"object\"&&typeof module<\"u\"?Ui(exports):typeof define==\"function\"&&define.amd?define([\"exports\"],Ui):(fo=typeof globalThis<\"u\"?globalThis:fo||self,Ui(fo.YogaGraphiQL={}))})(this,function(fo){\"use strict\";var Dae=Object.defineProperty;var Aae=(fo,Ui,Gs)=>Ui in fo?Dae(fo,Ui,{enumerable:!0,configurable:!0,writable:!0,value:Gs}):fo[Ui]=Gs;var GB=(fo,Ui,Gs)=>(Aae(fo,typeof Ui!=\"symbol\"?Ui+\"\":Ui,Gs),Gs);function Ui(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!=\"string\"&&!Array.isArray(r)){for(const i in r)if(i!==\"default\"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}))}var Gs=typeof globalThis<\"u\"?globalThis:typeof window<\"u\"?window:typeof global<\"u\"?global:typeof self<\"u\"?self:{};function bA(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,\"default\")?e.default:e}var Zd={},QB={get exports(){return Zd},set exports(e){Zd=e}},gm={},O={},YB={get exports(){return O},set exports(e){O=e}},Et={};/**\n * @license React\n * react.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */var ep=Symbol.for(\"react.element\"),JB=Symbol.for(\"react.portal\"),KB=Symbol.for(\"react.fragment\"),XB=Symbol.for(\"react.strict_mode\"),ZB=Symbol.for(\"react.profiler\"),ej=Symbol.for(\"react.provider\"),tj=Symbol.for(\"react.context\"),nj=Symbol.for(\"react.forward_ref\"),rj=Symbol.for(\"react.suspense\"),ij=Symbol.for(\"react.memo\"),oj=Symbol.for(\"react.lazy\"),EA=Symbol.iterator;function aj(e){return e===null||typeof e!=\"object\"?null:(e=EA&&e[EA]||e[\"@@iterator\"],typeof e==\"function\"?e:null)}var wA={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},SA=Object.assign,TA={};function Pc(e,t,n){this.props=e,this.context=t,this.refs=TA,this.updater=n||wA}Pc.prototype.isReactComponent={},Pc.prototype.setState=function(e,t){if(typeof e!=\"object\"&&typeof e!=\"function\"&&e!=null)throw Error(\"setState(...): 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\")},Pc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,\"forceUpdate\")};function _A(){}_A.prototype=Pc.prototype;function dE(e,t,n){this.props=e,this.context=t,this.refs=TA,this.updater=n||wA}var pE=dE.prototype=new _A;pE.constructor=dE,SA(pE,Pc.prototype),pE.isPureReactComponent=!0;var CA=Array.isArray,xA=Object.prototype.hasOwnProperty,hE={current:null},kA={key:!0,ref:!0,__self:!0,__source:!0};function NA(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=\"\"+t.key),t)xA.call(t,r)&&!kA.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var c=Array(l),f=0;f<l;f++)c[f]=arguments[f+2];i.children=c}if(e&&e.defaultProps)for(r in l=e.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:ep,type:e,key:o,ref:s,props:i,_owner:hE.current}}function sj(e,t){return{$$typeof:ep,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function vE(e){return typeof e==\"object\"&&e!==null&&e.$$typeof===ep}function lj(e){var t={\"=\":\"=0\",\":\":\"=2\"};return\"$\"+e.replace(/[=:]/g,function(n){return t[n]})}var DA=/\\/+/g;function mE(e,t){return typeof e==\"object\"&&e!==null&&e.key!=null?lj(\"\"+e.key):t.toString(36)}function ym(e,t,n,r,i){var o=typeof e;(o===\"undefined\"||o===\"boolean\")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case\"string\":case\"number\":s=!0;break;case\"object\":switch(e.$$typeof){case ep:case JB:s=!0}}if(s)return s=e,i=i(s),e=r===\"\"?\".\"+mE(s,0):r,CA(i)?(n=\"\",e!=null&&(n=e.replace(DA,\"$&/\")+\"/\"),ym(i,t,n,\"\",function(f){return f})):i!=null&&(vE(i)&&(i=sj(i,n+(!i.key||s&&s.key===i.key?\"\":(\"\"+i.key).replace(DA,\"$&/\")+\"/\")+e)),t.push(i)),1;if(s=0,r=r===\"\"?\".\":r+\":\",CA(e))for(var l=0;l<e.length;l++){o=e[l];var c=r+mE(o,l);s+=ym(o,t,n,c,i)}else if(c=aj(e),typeof c==\"function\")for(e=c.call(e),l=0;!(o=e.next()).done;)o=o.value,c=r+mE(o,l++),s+=ym(o,t,n,c,i);else if(o===\"object\")throw t=String(e),Error(\"Objects are not valid as a React child (found: \"+(t===\"[object Object]\"?\"object with keys {\"+Object.keys(e).join(\", \")+\"}\":t)+\"). If you meant to render a collection of children, use an array instead.\");return s}function bm(e,t,n){if(e==null)return e;var r=[],i=0;return ym(e,r,\"\",\"\",function(o){return t.call(n,o,i++)}),r}function uj(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var oi={current:null},Em={transition:null},cj={ReactCurrentDispatcher:oi,ReactCurrentBatchConfig:Em,ReactCurrentOwner:hE};Et.Children={map:bm,forEach:function(e,t,n){bm(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return bm(e,function(){t++}),t},toArray:function(e){return bm(e,function(t){return t})||[]},only:function(e){if(!vE(e))throw Error(\"React.Children.only expected to receive a single React element child.\");return e}},Et.Component=Pc,Et.Fragment=KB,Et.Profiler=ZB,Et.PureComponent=dE,Et.StrictMode=XB,Et.Suspense=rj,Et.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=cj,Et.cloneElement=function(e,t,n){if(e==null)throw Error(\"React.cloneElement(...): The argument must be a React element, but you passed \"+e+\".\");var r=SA({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=hE.current),t.key!==void 0&&(i=\"\"+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)xA.call(t,c)&&!kA.hasOwnProperty(c)&&(r[c]=t[c]===void 0&&l!==void 0?l[c]:t[c])}var c=arguments.length-2;if(c===1)r.children=n;else if(1<c){l=Array(c);for(var f=0;f<c;f++)l[f]=arguments[f+2];r.children=l}return{$$typeof:ep,type:e.type,key:i,ref:o,props:r,_owner:s}},Et.createContext=function(e){return e={$$typeof:tj,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:ej,_context:e},e.Consumer=e},Et.createElement=NA,Et.createFactory=function(e){var t=NA.bind(null,e);return t.type=e,t},Et.createRef=function(){return{current:null}},Et.forwardRef=function(e){return{$$typeof:nj,render:e}},Et.isValidElement=vE,Et.lazy=function(e){return{$$typeof:oj,_payload:{_status:-1,_result:e},_init:uj}},Et.memo=function(e,t){return{$$typeof:ij,type:e,compare:t===void 0?null:t}},Et.startTransition=function(e){var t=Em.transition;Em.transition={};try{e()}finally{Em.transition=t}},Et.unstable_act=function(){throw Error(\"act(...) is not supported in production builds of React.\")},Et.useCallback=function(e,t){return oi.current.useCallback(e,t)},Et.useContext=function(e){return oi.current.useContext(e)},Et.useDebugValue=function(){},Et.useDeferredValue=function(e){return oi.current.useDeferredValue(e)},Et.useEffect=function(e,t){return oi.current.useEffect(e,t)},Et.useId=function(){return oi.current.useId()},Et.useImperativeHandle=function(e,t,n){return oi.current.useImperativeHandle(e,t,n)},Et.useInsertionEffect=function(e,t){return oi.current.useInsertionEffect(e,t)},Et.useLayoutEffect=function(e,t){return oi.current.useLayoutEffect(e,t)},Et.useMemo=function(e,t){return oi.current.useMemo(e,t)},Et.useReducer=function(e,t,n){return oi.current.useReducer(e,t,n)},Et.useRef=function(e){return oi.current.useRef(e)},Et.useState=function(e){return oi.current.useState(e)},Et.useSyncExternalStore=function(e,t,n){return oi.current.useSyncExternalStore(e,t,n)},Et.useTransition=function(){return oi.current.useTransition()},Et.version=\"18.2.0\",function(e){e.exports=Et}(YB);const oe=bA(O),fj=Ui({__proto__:null,default:oe},[O]);/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */var dj=O,pj=Symbol.for(\"react.element\"),hj=Symbol.for(\"react.fragment\"),vj=Object.prototype.hasOwnProperty,mj=dj.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,gj={key:!0,ref:!0,__self:!0,__source:!0};function AA(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=\"\"+n),t.key!==void 0&&(o=\"\"+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)vj.call(t,r)&&!gj.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:pj,type:e,key:o,ref:s,props:i,_owner:mj.current}}gm.Fragment=hj,gm.jsx=AA,gm.jsxs=AA,function(e){e.exports=gm}(QB);const yj=Zd.Fragment,Ke=Zd.jsx,hr=Zd.jsxs;var wm={},bj={get exports(){return wm},set exports(e){wm=e}},qi={},gE={},Ej={get exports(){return gE},set exports(e){gE=e}},OA={};/**\n * @license React\n * scheduler.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */(function(e){function t(J,re){var Z=J.length;J.push(re);e:for(;0<Z;){var de=Z-1>>>1,K=J[de];if(0<i(K,re))J[de]=re,J[Z]=K,Z=de;else break e}}function n(J){return J.length===0?null:J[0]}function r(J){if(J.length===0)return null;var re=J[0],Z=J.pop();if(Z!==re){J[0]=Z;e:for(var de=0,K=J.length,ve=K>>>1;de<ve;){var ue=2*(de+1)-1,ce=J[ue],le=ue+1,we=J[le];if(0>i(ce,Z))le<K&&0>i(we,ce)?(J[de]=we,J[le]=Z,de=le):(J[de]=ce,J[ue]=Z,de=ue);else if(le<K&&0>i(we,Z))J[de]=we,J[le]=Z,de=le;else break e}}return re}function i(J,re){var Z=J.sortIndex-re.sortIndex;return Z!==0?Z:J.id-re.id}if(typeof performance==\"object\"&&typeof performance.now==\"function\"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var c=[],f=[],h=1,g=null,m=3,y=!1,S=!1,x=!1,D=typeof setTimeout==\"function\"?setTimeout:null,_=typeof clearTimeout==\"function\"?clearTimeout:null,b=typeof setImmediate<\"u\"?setImmediate:null;typeof navigator<\"u\"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(J){for(var re=n(f);re!==null;){if(re.callback===null)r(f);else if(re.startTime<=J)r(f),re.sortIndex=re.expirationTime,t(c,re);else break;re=n(f)}}function T(J){if(x=!1,C(J),!S)if(n(c)!==null)S=!0,X(N);else{var re=n(f);re!==null&&ne(T,re.startTime-J)}}function N(J,re){S=!1,x&&(x=!1,_(A),A=-1),y=!0;var Z=m;try{for(C(re),g=n(c);g!==null&&(!(g.expirationTime>re)||J&&!H());){var de=g.callback;if(typeof de==\"function\"){g.callback=null,m=g.priorityLevel;var K=de(g.expirationTime<=re);re=e.unstable_now(),typeof K==\"function\"?g.callback=K:g===n(c)&&r(c),C(re)}else r(c);g=n(c)}if(g!==null)var ve=!0;else{var ue=n(f);ue!==null&&ne(T,ue.startTime-re),ve=!1}return ve}finally{g=null,m=Z,y=!1}}var F=!1,L=null,A=-1,P=5,V=-1;function H(){return!(e.unstable_now()-V<P)}function G(){if(L!==null){var J=e.unstable_now();V=J;var re=!0;try{re=L(!0,J)}finally{re?z():(F=!1,L=null)}}else F=!1}var z;if(typeof b==\"function\")z=function(){b(G)};else if(typeof MessageChannel<\"u\"){var U=new MessageChannel,j=U.port2;U.port1.onmessage=G,z=function(){j.postMessage(null)}}else z=function(){D(G,0)};function X(J){L=J,F||(F=!0,z())}function ne(J,re){A=D(function(){J(e.unstable_now())},re)}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(J){J.callback=null},e.unstable_continueExecution=function(){S||y||(S=!0,X(N))},e.unstable_forceFrameRate=function(J){0>J||125<J?console.error(\"forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported\"):P=0<J?Math.floor(1e3/J):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(J){switch(m){case 1:case 2:case 3:var re=3;break;default:re=m}var Z=m;m=re;try{return J()}finally{m=Z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(J,re){switch(J){case 1:case 2:case 3:case 4:case 5:break;default:J=3}var Z=m;m=J;try{return re()}finally{m=Z}},e.unstable_scheduleCallback=function(J,re,Z){var de=e.unstable_now();switch(typeof Z==\"object\"&&Z!==null?(Z=Z.delay,Z=typeof Z==\"number\"&&0<Z?de+Z:de):Z=de,J){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=Z+K,J={id:h++,callback:re,priorityLevel:J,startTime:Z,expirationTime:K,sortIndex:-1},Z>de?(J.sortIndex=Z,t(f,J),n(c)===null&&J===n(f)&&(x?(_(A),A=-1):x=!0,ne(T,Z-de))):(J.sortIndex=K,t(c,J),S||y||(S=!0,X(N))),J},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(J){var re=m;return function(){var Z=m;m=re;try{return J.apply(this,arguments)}finally{m=Z}}}})(OA),function(e){e.exports=OA}(Ej);/**\n * @license React\n * react-dom.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */var IA=O,Hi=gE;function De(e){for(var t=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+e,n=1;n<arguments.length;n++)t+=\"&args[]=\"+encodeURIComponent(arguments[n]);return\"Minified React error #\"+e+\"; visit \"+t+\" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.\"}var LA=new Set,tp={};function mu(e,t){Mc(e,t),Mc(e+\"Capture\",t)}function Mc(e,t){for(tp[e]=t,e=0;e<t.length;e++)LA.add(t[e])}var Xa=!(typeof window>\"u\"||typeof window.document>\"u\"||typeof window.document.createElement>\"u\"),yE=Object.prototype.hasOwnProperty,wj=/^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$/,FA={},RA={};function Sj(e){return yE.call(RA,e)?!0:yE.call(FA,e)?!1:wj.test(e)?RA[e]=!0:(FA[e]=!0,!1)}function Tj(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case\"function\":case\"symbol\":return!0;case\"boolean\":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!==\"data-\"&&e!==\"aria-\");default:return!1}}function _j(e,t,n,r){if(t===null||typeof t>\"u\"||Tj(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ai(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Ar={};\"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style\".split(\" \").forEach(function(e){Ar[e]=new ai(e,0,!1,e,null,!1,!1)}),[[\"acceptCharset\",\"accept-charset\"],[\"className\",\"class\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"]].forEach(function(e){var t=e[0];Ar[t]=new ai(t,1,!1,e[1],null,!1,!1)}),[\"contentEditable\",\"draggable\",\"spellCheck\",\"value\"].forEach(function(e){Ar[e]=new ai(e,2,!1,e.toLowerCase(),null,!1,!1)}),[\"autoReverse\",\"externalResourcesRequired\",\"focusable\",\"preserveAlpha\"].forEach(function(e){Ar[e]=new ai(e,2,!1,e,null,!1,!1)}),\"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope\".split(\" \").forEach(function(e){Ar[e]=new ai(e,3,!1,e.toLowerCase(),null,!1,!1)}),[\"checked\",\"multiple\",\"muted\",\"selected\"].forEach(function(e){Ar[e]=new ai(e,3,!0,e,null,!1,!1)}),[\"capture\",\"download\"].forEach(function(e){Ar[e]=new ai(e,4,!1,e,null,!1,!1)}),[\"cols\",\"rows\",\"size\",\"span\"].forEach(function(e){Ar[e]=new ai(e,6,!1,e,null,!1,!1)}),[\"rowSpan\",\"start\"].forEach(function(e){Ar[e]=new ai(e,5,!1,e.toLowerCase(),null,!1,!1)});var bE=/[\\-:]([a-z])/g;function EE(e){return e[1].toUpperCase()}\"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height\".split(\" \").forEach(function(e){var t=e.replace(bE,EE);Ar[t]=new ai(t,1,!1,e,null,!1,!1)}),\"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type\".split(\" \").forEach(function(e){var t=e.replace(bE,EE);Ar[t]=new ai(t,1,!1,e,\"http://www.w3.org/1999/xlink\",!1,!1)}),[\"xml:base\",\"xml:lang\",\"xml:space\"].forEach(function(e){var t=e.replace(bE,EE);Ar[t]=new ai(t,1,!1,e,\"http://www.w3.org/XML/1998/namespace\",!1,!1)}),[\"tabIndex\",\"crossOrigin\"].forEach(function(e){Ar[e]=new ai(e,1,!1,e.toLowerCase(),null,!1,!1)}),Ar.xlinkHref=new ai(\"xlinkHref\",1,!1,\"xlink:href\",\"http://www.w3.org/1999/xlink\",!0,!1),[\"src\",\"href\",\"action\",\"formAction\"].forEach(function(e){Ar[e]=new ai(e,1,!1,e.toLowerCase(),null,!0,!0)});function wE(e,t,n,r){var i=Ar.hasOwnProperty(t)?Ar[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!==\"o\"&&t[0]!==\"O\"||t[1]!==\"n\"&&t[1]!==\"N\")&&(_j(t,n,i,r)&&(n=null),r||i===null?Sj(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,\"\"+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:\"\":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?\"\":\"\"+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Za=IA.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Sm=Symbol.for(\"react.element\"),$c=Symbol.for(\"react.portal\"),Vc=Symbol.for(\"react.fragment\"),SE=Symbol.for(\"react.strict_mode\"),TE=Symbol.for(\"react.profiler\"),PA=Symbol.for(\"react.provider\"),MA=Symbol.for(\"react.context\"),_E=Symbol.for(\"react.forward_ref\"),CE=Symbol.for(\"react.suspense\"),xE=Symbol.for(\"react.suspense_list\"),kE=Symbol.for(\"react.memo\"),Ws=Symbol.for(\"react.lazy\"),$A=Symbol.for(\"react.offscreen\"),VA=Symbol.iterator;function np(e){return e===null||typeof e!=\"object\"?null:(e=VA&&e[VA]||e[\"@@iterator\"],typeof e==\"function\"?e:null)}var mn=Object.assign,NE;function rp(e){if(NE===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\\n( *(at )?)/);NE=t&&t[1]||\"\"}return`\n`+NE+e}var DE=!1;function AE(e,t){if(!e||DE)return\"\";DE=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,\"props\",{set:function(){throw Error()}}),typeof Reflect==\"object\"&&Reflect.construct){try{Reflect.construct(t,[])}catch(f){var r=f}Reflect.construct(e,[],t)}else{try{t.call()}catch(f){r=f}e.call(t.prototype)}else{try{throw Error()}catch(f){r=f}e()}}catch(f){if(f&&r&&typeof f.stack==\"string\"){for(var i=f.stack.split(`\n`),o=r.stack.split(`\n`),s=i.length-1,l=o.length-1;1<=s&&0<=l&&i[s]!==o[l];)l--;for(;1<=s&&0<=l;s--,l--)if(i[s]!==o[l]){if(s!==1||l!==1)do if(s--,l--,0>l||i[s]!==o[l]){var c=`\n`+i[s].replace(\" at new \",\" at \");return e.displayName&&c.includes(\"<anonymous>\")&&(c=c.replace(\"<anonymous>\",e.displayName)),c}while(1<=s&&0<=l);break}}}finally{DE=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:\"\")?rp(e):\"\"}function Cj(e){switch(e.tag){case 5:return rp(e.type);case 16:return rp(\"Lazy\");case 13:return rp(\"Suspense\");case 19:return rp(\"SuspenseList\");case 0:case 2:case 15:return e=AE(e.type,!1),e;case 11:return e=AE(e.type.render,!1),e;case 1:return e=AE(e.type,!0),e;default:return\"\"}}function OE(e){if(e==null)return null;if(typeof e==\"function\")return e.displayName||e.name||null;if(typeof e==\"string\")return e;switch(e){case Vc:return\"Fragment\";case $c:return\"Portal\";case TE:return\"Profiler\";case SE:return\"StrictMode\";case CE:return\"Suspense\";case xE:return\"SuspenseList\"}if(typeof e==\"object\")switch(e.$$typeof){case MA:return(e.displayName||\"Context\")+\".Consumer\";case PA:return(e._context.displayName||\"Context\")+\".Provider\";case _E:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||\"\",e=e!==\"\"?\"ForwardRef(\"+e+\")\":\"ForwardRef\"),e;case kE:return t=e.displayName||null,t!==null?t:OE(e.type)||\"Memo\";case Ws:t=e._payload,e=e._init;try{return OE(e(t))}catch{}}return null}function xj(e){var t=e.type;switch(e.tag){case 24:return\"Cache\";case 9:return(t.displayName||\"Context\")+\".Consumer\";case 10:return(t._context.displayName||\"Context\")+\".Provider\";case 18:return\"DehydratedFragment\";case 11:return e=t.render,e=e.displayName||e.name||\"\",t.displayName||(e!==\"\"?\"ForwardRef(\"+e+\")\":\"ForwardRef\");case 7:return\"Fragment\";case 5:return t;case 4:return\"Portal\";case 3:return\"Root\";case 6:return\"Text\";case 16:return OE(t);case 8:return t===SE?\"StrictMode\":\"Mode\";case 22:return\"Offscreen\";case 12:return\"Profiler\";case 21:return\"Scope\";case 13:return\"Suspense\";case 19:return\"SuspenseList\";case 25:return\"TracingMarker\";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t==\"function\")return t.displayName||t.name||null;if(typeof t==\"string\")return t}return null}function Qs(e){switch(typeof e){case\"boolean\":case\"number\":case\"string\":case\"undefined\":return e;case\"object\":return e;default:return\"\"}}function BA(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===\"input\"&&(t===\"checkbox\"||t===\"radio\")}function kj(e){var t=BA(e)?\"checked\":\"value\",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=\"\"+e[t];if(!e.hasOwnProperty(t)&&typeof n<\"u\"&&typeof n.get==\"function\"&&typeof n.set==\"function\"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=\"\"+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=\"\"+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Tm(e){e._valueTracker||(e._valueTracker=kj(e))}function jA(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=\"\";return e&&(r=BA(e)?e.checked?\"true\":\"false\":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function _m(e){if(e=e||(typeof document<\"u\"?document:void 0),typeof e>\"u\")return null;try{return e.activeElement||e.body}catch{return e.body}}function IE(e,t){var n=t.checked;return mn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function UA(e,t){var n=t.defaultValue==null?\"\":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Qs(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type===\"checkbox\"||t.type===\"radio\"?t.checked!=null:t.value!=null}}function qA(e,t){t=t.checked,t!=null&&wE(e,\"checked\",t,!1)}function LE(e,t){qA(e,t);var n=Qs(t.value),r=t.type;if(n!=null)r===\"number\"?(n===0&&e.value===\"\"||e.value!=n)&&(e.value=\"\"+n):e.value!==\"\"+n&&(e.value=\"\"+n);else if(r===\"submit\"||r===\"reset\"){e.removeAttribute(\"value\");return}t.hasOwnProperty(\"value\")?FE(e,t.type,n):t.hasOwnProperty(\"defaultValue\")&&FE(e,t.type,Qs(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function HA(e,t,n){if(t.hasOwnProperty(\"value\")||t.hasOwnProperty(\"defaultValue\")){var r=t.type;if(!(r!==\"submit\"&&r!==\"reset\"||t.value!==void 0&&t.value!==null))return;t=\"\"+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==\"\"&&(e.name=\"\"),e.defaultChecked=!!e._wrapperState.initialChecked,n!==\"\"&&(e.name=n)}function FE(e,t,n){(t!==\"number\"||_m(e.ownerDocument)!==e)&&(n==null?e.defaultValue=\"\"+e._wrapperState.initialValue:e.defaultValue!==\"\"+n&&(e.defaultValue=\"\"+n))}var ip=Array.isArray;function Bc(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[\"$\"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(\"$\"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=\"\"+Qs(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function RE(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(De(91));return mn({},t,{value:void 0,defaultValue:void 0,children:\"\"+e._wrapperState.initialValue})}function zA(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(De(92));if(ip(n)){if(1<n.length)throw Error(De(93));n=n[0]}t=n}t==null&&(t=\"\"),n=t}e._wrapperState={initialValue:Qs(n)}}function GA(e,t){var n=Qs(t.value),r=Qs(t.defaultValue);n!=null&&(n=\"\"+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=\"\"+r)}function WA(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==\"\"&&t!==null&&(e.value=t)}function QA(e){switch(e){case\"svg\":return\"http://www.w3.org/2000/svg\";case\"math\":return\"http://www.w3.org/1998/Math/MathML\";default:return\"http://www.w3.org/1999/xhtml\"}}function PE(e,t){return e==null||e===\"http://www.w3.org/1999/xhtml\"?QA(t):e===\"http://www.w3.org/2000/svg\"&&t===\"foreignObject\"?\"http://www.w3.org/1999/xhtml\":e}var Cm,YA=function(e){return typeof MSApp<\"u\"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!==\"http://www.w3.org/2000/svg\"||\"innerHTML\"in e)e.innerHTML=t;else{for(Cm=Cm||document.createElement(\"div\"),Cm.innerHTML=\"<svg>\"+t.valueOf().toString()+\"</svg>\",t=Cm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function op(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ap={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Nj=[\"Webkit\",\"ms\",\"Moz\",\"O\"];Object.keys(ap).forEach(function(e){Nj.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ap[t]=ap[e]})});function JA(e,t,n){return t==null||typeof t==\"boolean\"||t===\"\"?\"\":n||typeof t!=\"number\"||t===0||ap.hasOwnProperty(e)&&ap[e]?(\"\"+t).trim():t+\"px\"}function KA(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf(\"--\")===0,i=JA(n,t[n],r);n===\"float\"&&(n=\"cssFloat\"),r?e.setProperty(n,i):e[n]=i}}var Dj=mn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ME(e,t){if(t){if(Dj[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(De(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(De(60));if(typeof t.dangerouslySetInnerHTML!=\"object\"||!(\"__html\"in t.dangerouslySetInnerHTML))throw Error(De(61))}if(t.style!=null&&typeof t.style!=\"object\")throw Error(De(62))}}function $E(e,t){if(e.indexOf(\"-\")===-1)return typeof t.is==\"string\";switch(e){case\"annotation-xml\":case\"color-profile\":case\"font-face\":case\"font-face-src\":case\"font-face-uri\":case\"font-face-format\":case\"font-face-name\":case\"missing-glyph\":return!1;default:return!0}}var VE=null;function BE(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var jE=null,jc=null,Uc=null;function XA(e){if(e=Np(e)){if(typeof jE!=\"function\")throw Error(De(280));var t=e.stateNode;t&&(t=Qm(t),jE(e.stateNode,e.type,t))}}function ZA(e){jc?Uc?Uc.push(e):Uc=[e]:jc=e}function eO(){if(jc){var e=jc,t=Uc;if(Uc=jc=null,XA(e),t)for(e=0;e<t.length;e++)XA(t[e])}}function tO(e,t){return e(t)}function nO(){}var UE=!1;function rO(e,t,n){if(UE)return e(t,n);UE=!0;try{return tO(e,t,n)}finally{UE=!1,(jc!==null||Uc!==null)&&(nO(),eO())}}function sp(e,t){var n=e.stateNode;if(n===null)return null;var r=Qm(n);if(r===null)return null;n=r[t];e:switch(t){case\"onClick\":case\"onClickCapture\":case\"onDoubleClick\":case\"onDoubleClickCapture\":case\"onMouseDown\":case\"onMouseDownCapture\":case\"onMouseMove\":case\"onMouseMoveCapture\":case\"onMouseUp\":case\"onMouseUpCapture\":case\"onMouseEnter\":(r=!r.disabled)||(e=e.type,r=!(e===\"button\"||e===\"input\"||e===\"select\"||e===\"textarea\")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!=\"function\")throw Error(De(231,t,typeof n));return n}var qE=!1;if(Xa)try{var lp={};Object.defineProperty(lp,\"passive\",{get:function(){qE=!0}}),window.addEventListener(\"test\",lp,lp),window.removeEventListener(\"test\",lp,lp)}catch{qE=!1}function Aj(e,t,n,r,i,o,s,l,c){var f=Array.prototype.slice.call(arguments,3);try{t.apply(n,f)}catch(h){this.onError(h)}}var up=!1,xm=null,km=!1,HE=null,Oj={onError:function(e){up=!0,xm=e}};function Ij(e,t,n,r,i,o,s,l,c){up=!1,xm=null,Aj.apply(Oj,arguments)}function Lj(e,t,n,r,i,o,s,l,c){if(Ij.apply(this,arguments),up){if(up){var f=xm;up=!1,xm=null}else throw Error(De(198));km||(km=!0,HE=f)}}function gu(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function iO(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function oO(e){if(gu(e)!==e)throw Error(De(188))}function Fj(e){var t=e.alternate;if(!t){if(t=gu(e),t===null)throw Error(De(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return oO(i),e;if(o===r)return oO(i),t;o=o.sibling}throw Error(De(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(De(189))}}if(n.alternate!==r)throw Error(De(190))}if(n.tag!==3)throw Error(De(188));return n.stateNode.current===n?e:t}function aO(e){return e=Fj(e),e!==null?sO(e):null}function sO(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=sO(e);if(t!==null)return t;e=e.sibling}return null}var lO=Hi.unstable_scheduleCallback,uO=Hi.unstable_cancelCallback,Rj=Hi.unstable_shouldYield,Pj=Hi.unstable_requestPaint,Dn=Hi.unstable_now,Mj=Hi.unstable_getCurrentPriorityLevel,zE=Hi.unstable_ImmediatePriority,cO=Hi.unstable_UserBlockingPriority,Nm=Hi.unstable_NormalPriority,$j=Hi.unstable_LowPriority,fO=Hi.unstable_IdlePriority,Dm=null,_a=null;function Vj(e){if(_a&&typeof _a.onCommitFiberRoot==\"function\")try{_a.onCommitFiberRoot(Dm,e,void 0,(e.current.flags&128)===128)}catch{}}var Go=Math.clz32?Math.clz32:Uj,Bj=Math.log,jj=Math.LN2;function Uj(e){return e>>>=0,e===0?32:31-(Bj(e)/jj|0)|0}var Am=64,Om=4194304;function cp(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Im(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=cp(l):(o&=s,o!==0&&(r=cp(o)))}else s=n&~i,s!==0?r=cp(s):o!==0&&(r=cp(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Go(t),i=1<<n,r|=e[n],t&=~i;return r}function qj(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64: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;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Hj(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-Go(o),l=1<<s,c=i[s];c===-1?(!(l&n)||l&r)&&(i[s]=qj(l,t)):c<=t&&(e.expiredLanes|=l),o&=~l}}function GE(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function dO(){var e=Am;return Am<<=1,!(Am&4194240)&&(Am=64),e}function WE(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function fp(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Go(t),e[t]=n}function zj(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Go(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function QE(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Go(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var jt=0;function pO(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var hO,YE,vO,mO,gO,JE=!1,Lm=[],Ys=null,Js=null,Ks=null,dp=new Map,pp=new Map,Xs=[],Gj=\"mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit\".split(\" \");function yO(e,t){switch(e){case\"focusin\":case\"focusout\":Ys=null;break;case\"dragenter\":case\"dragleave\":Js=null;break;case\"mouseover\":case\"mouseout\":Ks=null;break;case\"pointerover\":case\"pointerout\":dp.delete(t.pointerId);break;case\"gotpointercapture\":case\"lostpointercapture\":pp.delete(t.pointerId)}}function hp(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Np(t),t!==null&&YE(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Wj(e,t,n,r,i){switch(t){case\"focusin\":return Ys=hp(Ys,e,t,n,r,i),!0;case\"dragenter\":return Js=hp(Js,e,t,n,r,i),!0;case\"mouseover\":return Ks=hp(Ks,e,t,n,r,i),!0;case\"pointerover\":var o=i.pointerId;return dp.set(o,hp(dp.get(o)||null,e,t,n,r,i)),!0;case\"gotpointercapture\":return o=i.pointerId,pp.set(o,hp(pp.get(o)||null,e,t,n,r,i)),!0}return!1}function bO(e){var t=yu(e.target);if(t!==null){var n=gu(t);if(n!==null){if(t=n.tag,t===13){if(t=iO(n),t!==null){e.blockedOn=t,gO(e.priority,function(){vO(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Fm(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=XE(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);VE=r,n.target.dispatchEvent(r),VE=null}else return t=Np(n),t!==null&&YE(t),e.blockedOn=n,!1;t.shift()}return!0}function EO(e,t,n){Fm(e)&&n.delete(t)}function Qj(){JE=!1,Ys!==null&&Fm(Ys)&&(Ys=null),Js!==null&&Fm(Js)&&(Js=null),Ks!==null&&Fm(Ks)&&(Ks=null),dp.forEach(EO),pp.forEach(EO)}function vp(e,t){e.blockedOn===t&&(e.blockedOn=null,JE||(JE=!0,Hi.unstable_scheduleCallback(Hi.unstable_NormalPriority,Qj)))}function mp(e){function t(i){return vp(i,e)}if(0<Lm.length){vp(Lm[0],e);for(var n=1;n<Lm.length;n++){var r=Lm[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ys!==null&&vp(Ys,e),Js!==null&&vp(Js,e),Ks!==null&&vp(Ks,e),dp.forEach(t),pp.forEach(t),n=0;n<Xs.length;n++)r=Xs[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Xs.length&&(n=Xs[0],n.blockedOn===null);)bO(n),n.blockedOn===null&&Xs.shift()}var qc=Za.ReactCurrentBatchConfig,Rm=!0;function Yj(e,t,n,r){var i=jt,o=qc.transition;qc.transition=null;try{jt=1,KE(e,t,n,r)}finally{jt=i,qc.transition=o}}function Jj(e,t,n,r){var i=jt,o=qc.transition;qc.transition=null;try{jt=4,KE(e,t,n,r)}finally{jt=i,qc.transition=o}}function KE(e,t,n,r){if(Rm){var i=XE(e,t,n,r);if(i===null)vw(e,t,r,Pm,n),yO(e,r);else if(Wj(i,e,t,n,r))r.stopPropagation();else if(yO(e,r),t&4&&-1<Gj.indexOf(e)){for(;i!==null;){var o=Np(i);if(o!==null&&hO(o),o=XE(e,t,n,r),o===null&&vw(e,t,r,Pm,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else vw(e,t,r,null,n)}}var Pm=null;function XE(e,t,n,r){if(Pm=null,e=BE(r),e=yu(e),e!==null)if(t=gu(e),t===null)e=null;else if(n=t.tag,n===13){if(e=iO(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Pm=e,null}function wO(e){switch(e){case\"cancel\":case\"click\":case\"close\":case\"contextmenu\":case\"copy\":case\"cut\":case\"auxclick\":case\"dblclick\":case\"dragend\":case\"dragstart\":case\"drop\":case\"focusin\":case\"focusout\":case\"input\":case\"invalid\":case\"keydown\":case\"keypress\":case\"keyup\":case\"mousedown\":case\"mouseup\":case\"paste\":case\"pause\":case\"play\":case\"pointercancel\":case\"pointerdown\":case\"pointerup\":case\"ratechange\":case\"reset\":case\"resize\":case\"seeked\":case\"submit\":case\"touchcancel\":case\"touchend\":case\"touchstart\":case\"volumechange\":case\"change\":case\"selectionchange\":case\"textInput\":case\"compositionstart\":case\"compositionend\":case\"compositionupdate\":case\"beforeblur\":case\"afterblur\":case\"beforeinput\":case\"blur\":case\"fullscreenchange\":case\"focus\":case\"hashchange\":case\"popstate\":case\"select\":case\"selectstart\":return 1;case\"drag\":case\"dragenter\":case\"dragexit\":case\"dragleave\":case\"dragover\":case\"mousemove\":case\"mouseout\":case\"mouseover\":case\"pointermove\":case\"pointerout\":case\"pointerover\":case\"scroll\":case\"toggle\":case\"touchmove\":case\"wheel\":case\"mouseenter\":case\"mouseleave\":case\"pointerenter\":case\"pointerleave\":return 4;case\"message\":switch(Mj()){case zE:return 1;case cO:return 4;case Nm:case $j:return 16;case fO:return 536870912;default:return 16}default:return 16}}var Zs=null,ZE=null,Mm=null;function SO(){if(Mm)return Mm;var e,t=ZE,n=t.length,r,i=\"value\"in Zs?Zs.value:Zs.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return Mm=i.slice(e,1<r?1-r:void 0)}function $m(e){var t=e.keyCode;return\"charCode\"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Vm(){return!0}function TO(){return!1}function zi(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Vm:TO,this.isPropagationStopped=TO,this}return mn(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!=\"unknown\"&&(n.returnValue=!1),this.isDefaultPrevented=Vm)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!=\"unknown\"&&(n.cancelBubble=!0),this.isPropagationStopped=Vm)},persist:function(){},isPersistent:Vm}),t}var Hc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ew=zi(Hc),gp=mn({},Hc,{view:0,detail:0}),Kj=zi(gp),tw,nw,yp,Bm=mn({},gp,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:iw,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return\"movementX\"in e?e.movementX:(e!==yp&&(yp&&e.type===\"mousemove\"?(tw=e.screenX-yp.screenX,nw=e.screenY-yp.screenY):nw=tw=0,yp=e),tw)},movementY:function(e){return\"movementY\"in e?e.movementY:nw}}),_O=zi(Bm),Xj=mn({},Bm,{dataTransfer:0}),Zj=zi(Xj),eU=mn({},gp,{relatedTarget:0}),rw=zi(eU),tU=mn({},Hc,{animationName:0,elapsedTime:0,pseudoElement:0}),nU=zi(tU),rU=mn({},Hc,{clipboardData:function(e){return\"clipboardData\"in e?e.clipboardData:window.clipboardData}}),iU=zi(rU),oU=mn({},Hc,{data:0}),CO=zi(oU),aU={Esc:\"Escape\",Spacebar:\" \",Left:\"ArrowLeft\",Up:\"ArrowUp\",Right:\"ArrowRight\",Down:\"ArrowDown\",Del:\"Delete\",Win:\"OS\",Menu:\"ContextMenu\",Apps:\"ContextMenu\",Scroll:\"ScrollLock\",MozPrintableKey:\"Unidentified\"},sU={8:\"Backspace\",9:\"Tab\",12:\"Clear\",13:\"Enter\",16:\"Shift\",17:\"Control\",18:\"Alt\",19:\"Pause\",20:\"CapsLock\",27:\"Escape\",32:\" \",33:\"PageUp\",34:\"PageDown\",35:\"End\",36:\"Home\",37:\"ArrowLeft\",38:\"ArrowUp\",39:\"ArrowRight\",40:\"ArrowDown\",45:\"Insert\",46:\"Delete\",112:\"F1\",113:\"F2\",114:\"F3\",115:\"F4\",116:\"F5\",117:\"F6\",118:\"F7\",119:\"F8\",120:\"F9\",121:\"F10\",122:\"F11\",123:\"F12\",144:\"NumLock\",145:\"ScrollLock\",224:\"Meta\"},lU={Alt:\"altKey\",Control:\"ctrlKey\",Meta:\"metaKey\",Shift:\"shiftKey\"};function uU(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=lU[e])?!!t[e]:!1}function iw(){return uU}var cU=mn({},gp,{key:function(e){if(e.key){var t=aU[e.key]||e.key;if(t!==\"Unidentified\")return t}return e.type===\"keypress\"?(e=$m(e),e===13?\"Enter\":String.fromCharCode(e)):e.type===\"keydown\"||e.type===\"keyup\"?sU[e.keyCode]||\"Unidentified\":\"\"},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:iw,charCode:function(e){return e.type===\"keypress\"?$m(e):0},keyCode:function(e){return e.type===\"keydown\"||e.type===\"keyup\"?e.keyCode:0},which:function(e){return e.type===\"keypress\"?$m(e):e.type===\"keydown\"||e.type===\"keyup\"?e.keyCode:0}}),fU=zi(cU),dU=mn({},Bm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xO=zi(dU),pU=mn({},gp,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:iw}),hU=zi(pU),vU=mn({},Hc,{propertyName:0,elapsedTime:0,pseudoElement:0}),mU=zi(vU),gU=mn({},Bm,{deltaX:function(e){return\"deltaX\"in e?e.deltaX:\"wheelDeltaX\"in e?-e.wheelDeltaX:0},deltaY:function(e){return\"deltaY\"in e?e.deltaY:\"wheelDeltaY\"in e?-e.wheelDeltaY:\"wheelDelta\"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),yU=zi(gU),bU=[9,13,27,32],ow=Xa&&\"CompositionEvent\"in window,bp=null;Xa&&\"documentMode\"in document&&(bp=document.documentMode);var EU=Xa&&\"TextEvent\"in window&&!bp,kO=Xa&&(!ow||bp&&8<bp&&11>=bp),NO=String.fromCharCode(32),DO=!1;function AO(e,t){switch(e){case\"keyup\":return bU.indexOf(t.keyCode)!==-1;case\"keydown\":return t.keyCode!==229;case\"keypress\":case\"mousedown\":case\"focusout\":return!0;default:return!1}}function OO(e){return e=e.detail,typeof e==\"object\"&&\"data\"in e?e.data:null}var zc=!1;function wU(e,t){switch(e){case\"compositionend\":return OO(t);case\"keypress\":return t.which!==32?null:(DO=!0,NO);case\"textInput\":return e=t.data,e===NO&&DO?null:e;default:return null}}function SU(e,t){if(zc)return e===\"compositionend\"||!ow&&AO(e,t)?(e=SO(),Mm=ZE=Zs=null,zc=!1,e):null;switch(e){case\"paste\":return null;case\"keypress\":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case\"compositionend\":return kO&&t.locale!==\"ko\"?null:t.data;default:return null}}var TU={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 IO(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===\"input\"?!!TU[e.type]:t===\"textarea\"}function LO(e,t,n,r){ZA(r),t=zm(t,\"onChange\"),0<t.length&&(n=new ew(\"onChange\",\"change\",null,n,r),e.push({event:n,listeners:t}))}var Ep=null,wp=null;function _U(e){KO(e,0)}function jm(e){var t=Jc(e);if(jA(t))return e}function CU(e,t){if(e===\"change\")return t}var FO=!1;if(Xa){var aw;if(Xa){var sw=\"oninput\"in document;if(!sw){var RO=document.createElement(\"div\");RO.setAttribute(\"oninput\",\"return;\"),sw=typeof RO.oninput==\"function\"}aw=sw}else aw=!1;FO=aw&&(!document.documentMode||9<document.documentMode)}function PO(){Ep&&(Ep.detachEvent(\"onpropertychange\",MO),wp=Ep=null)}function MO(e){if(e.propertyName===\"value\"&&jm(wp)){var t=[];LO(t,wp,e,BE(e)),rO(_U,t)}}function xU(e,t,n){e===\"focusin\"?(PO(),Ep=t,wp=n,Ep.attachEvent(\"onpropertychange\",MO)):e===\"focusout\"&&PO()}function kU(e){if(e===\"selectionchange\"||e===\"keyup\"||e===\"keydown\")return jm(wp)}function NU(e,t){if(e===\"click\")return jm(t)}function DU(e,t){if(e===\"input\"||e===\"change\")return jm(t)}function AU(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Wo=typeof Object.is==\"function\"?Object.is:AU;function Sp(e,t){if(Wo(e,t))return!0;if(typeof e!=\"object\"||e===null||typeof t!=\"object\"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!yE.call(t,i)||!Wo(e[i],t[i]))return!1}return!0}function $O(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function VO(e,t){var n=$O(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=$O(n)}}function BO(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?BO(e,t.parentNode):\"contains\"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jO(){for(var e=window,t=_m();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==\"string\"}catch{n=!1}if(n)e=t.contentWindow;else break;t=_m(e.document)}return t}function lw(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===\"input\"&&(e.type===\"text\"||e.type===\"search\"||e.type===\"tel\"||e.type===\"url\"||e.type===\"password\")||t===\"textarea\"||e.contentEditable===\"true\")}function OU(e){var t=jO(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&BO(n.ownerDocument.documentElement,n)){if(r!==null&&lw(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),\"selectionStart\"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=VO(n,o);var s=VO(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus==\"function\"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var IU=Xa&&\"documentMode\"in document&&11>=document.documentMode,Gc=null,uw=null,Tp=null,cw=!1;function UO(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;cw||Gc==null||Gc!==_m(r)||(r=Gc,\"selectionStart\"in r&&lw(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Tp&&Sp(Tp,r)||(Tp=r,r=zm(uw,\"onSelect\"),0<r.length&&(t=new ew(\"onSelect\",\"select\",null,t,n),e.push({event:t,listeners:r}),t.target=Gc)))}function Um(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[\"Webkit\"+e]=\"webkit\"+t,n[\"Moz\"+e]=\"moz\"+t,n}var Wc={animationend:Um(\"Animation\",\"AnimationEnd\"),animationiteration:Um(\"Animation\",\"AnimationIteration\"),animationstart:Um(\"Animation\",\"AnimationStart\"),transitionend:Um(\"Transition\",\"TransitionEnd\")},fw={},qO={};Xa&&(qO=document.createElement(\"div\").style,\"AnimationEvent\"in window||(delete Wc.animationend.animation,delete Wc.animationiteration.animation,delete Wc.animationstart.animation),\"TransitionEvent\"in window||delete Wc.transitionend.transition);function qm(e){if(fw[e])return fw[e];if(!Wc[e])return e;var t=Wc[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in qO)return fw[e]=t[n];return e}var HO=qm(\"animationend\"),zO=qm(\"animationiteration\"),GO=qm(\"animationstart\"),WO=qm(\"transitionend\"),QO=new Map,YO=\"abort auxClick 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 el(e,t){QO.set(e,t),mu(t,[e])}for(var dw=0;dw<YO.length;dw++){var pw=YO[dw],LU=pw.toLowerCase(),FU=pw[0].toUpperCase()+pw.slice(1);el(LU,\"on\"+FU)}el(HO,\"onAnimationEnd\"),el(zO,\"onAnimationIteration\"),el(GO,\"onAnimationStart\"),el(\"dblclick\",\"onDoubleClick\"),el(\"focusin\",\"onFocus\"),el(\"focusout\",\"onBlur\"),el(WO,\"onTransitionEnd\"),Mc(\"onMouseEnter\",[\"mouseout\",\"mouseover\"]),Mc(\"onMouseLeave\",[\"mouseout\",\"mouseover\"]),Mc(\"onPointerEnter\",[\"pointerout\",\"pointerover\"]),Mc(\"onPointerLeave\",[\"pointerout\",\"pointerover\"]),mu(\"onChange\",\"change click focusin focusout input keydown keyup selectionchange\".split(\" \")),mu(\"onSelect\",\"focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange\".split(\" \")),mu(\"onBeforeInput\",[\"compositionend\",\"keypress\",\"textInput\",\"paste\"]),mu(\"onCompositionEnd\",\"compositionend focusout keydown keypress keyup mousedown\".split(\" \")),mu(\"onCompositionStart\",\"compositionstart focusout keydown keypress keyup mousedown\".split(\" \")),mu(\"onCompositionUpdate\",\"compositionupdate focusout keydown keypress keyup mousedown\".split(\" \"));var _p=\"abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting\".split(\" \"),RU=new Set(\"cancel close invalid load scroll toggle\".split(\" \").concat(_p));function JO(e,t,n){var r=e.type||\"unknown-event\";e.currentTarget=n,Lj(r,t,void 0,e),e.currentTarget=null}function KO(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var l=r[s],c=l.instance,f=l.currentTarget;if(l=l.listener,c!==o&&i.isPropagationStopped())break e;JO(i,l,f),o=c}else for(s=0;s<r.length;s++){if(l=r[s],c=l.instance,f=l.currentTarget,l=l.listener,c!==o&&i.isPropagationStopped())break e;JO(i,l,f),o=c}}}if(km)throw e=HE,km=!1,HE=null,e}function tn(e,t){var n=t[ww];n===void 0&&(n=t[ww]=new Set);var r=e+\"__bubble\";n.has(r)||(XO(t,e,2,!1),n.add(r))}function hw(e,t,n){var r=0;t&&(r|=4),XO(n,e,r,t)}var Hm=\"_reactListening\"+Math.random().toString(36).slice(2);function Cp(e){if(!e[Hm]){e[Hm]=!0,LA.forEach(function(n){n!==\"selectionchange\"&&(RU.has(n)||hw(n,!1,e),hw(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Hm]||(t[Hm]=!0,hw(\"selectionchange\",!1,t))}}function XO(e,t,n,r){switch(wO(t)){case 1:var i=Yj;break;case 4:i=Jj;break;default:i=KE}n=i.bind(null,t,n,e),i=void 0,!qE||t!==\"touchstart\"&&t!==\"touchmove\"&&t!==\"wheel\"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function vw(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var c=s.tag;if((c===3||c===4)&&(c=s.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;s=s.return}for(;l!==null;){if(s=yu(l),s===null)return;if(c=s.tag,c===5||c===6){r=o=s;continue e}l=l.parentNode}}r=r.return}rO(function(){var f=o,h=BE(n),g=[];e:{var m=QO.get(e);if(m!==void 0){var y=ew,S=e;switch(e){case\"keypress\":if($m(n)===0)break e;case\"keydown\":case\"keyup\":y=fU;break;case\"focusin\":S=\"focus\",y=rw;break;case\"focusout\":S=\"blur\",y=rw;break;case\"beforeblur\":case\"afterblur\":y=rw;break;case\"click\":if(n.button===2)break e;case\"auxclick\":case\"dblclick\":case\"mousedown\":case\"mousemove\":case\"mouseup\":case\"mouseout\":case\"mouseover\":case\"contextmenu\":y=_O;break;case\"drag\":case\"dragend\":case\"dragenter\":case\"dragexit\":case\"dragleave\":case\"dragover\":case\"dragstart\":case\"drop\":y=Zj;break;case\"touchcancel\":case\"touchend\":case\"touchmove\":case\"touchstart\":y=hU;break;case HO:case zO:case GO:y=nU;break;case WO:y=mU;break;case\"scroll\":y=Kj;break;case\"wheel\":y=yU;break;case\"copy\":case\"cut\":case\"paste\":y=iU;break;case\"gotpointercapture\":case\"lostpointercapture\":case\"pointercancel\":case\"pointerdown\":case\"pointermove\":case\"pointerout\":case\"pointerover\":case\"pointerup\":y=xO}var x=(t&4)!==0,D=!x&&e===\"scroll\",_=x?m!==null?m+\"Capture\":null:m;x=[];for(var b=f,C;b!==null;){C=b;var T=C.stateNode;if(C.tag===5&&T!==null&&(C=T,_!==null&&(T=sp(b,_),T!=null&&x.push(xp(b,T,C)))),D)break;b=b.return}0<x.length&&(m=new y(m,S,null,n,h),g.push({event:m,listeners:x}))}}if(!(t&7)){e:{if(m=e===\"mouseover\"||e===\"pointerover\",y=e===\"mouseout\"||e===\"pointerout\",m&&n!==VE&&(S=n.relatedTarget||n.fromElement)&&(yu(S)||S[es]))break e;if((y||m)&&(m=h.window===h?h:(m=h.ownerDocument)?m.defaultView||m.parentWindow:window,y?(S=n.relatedTarget||n.toElement,y=f,S=S?yu(S):null,S!==null&&(D=gu(S),S!==D||S.tag!==5&&S.tag!==6)&&(S=null)):(y=null,S=f),y!==S)){if(x=_O,T=\"onMouseLeave\",_=\"onMouseEnter\",b=\"mouse\",(e===\"pointerout\"||e===\"pointerover\")&&(x=xO,T=\"onPointerLeave\",_=\"onPointerEnter\",b=\"pointer\"),D=y==null?m:Jc(y),C=S==null?m:Jc(S),m=new x(T,b+\"leave\",y,n,h),m.target=D,m.relatedTarget=C,T=null,yu(h)===f&&(x=new x(_,b+\"enter\",S,n,h),x.target=C,x.relatedTarget=D,T=x),D=T,y&&S)t:{for(x=y,_=S,b=0,C=x;C;C=Qc(C))b++;for(C=0,T=_;T;T=Qc(T))C++;for(;0<b-C;)x=Qc(x),b--;for(;0<C-b;)_=Qc(_),C--;for(;b--;){if(x===_||_!==null&&x===_.alternate)break t;x=Qc(x),_=Qc(_)}x=null}else x=null;y!==null&&ZO(g,m,y,x,!1),S!==null&&D!==null&&ZO(g,D,S,x,!0)}}e:{if(m=f?Jc(f):window,y=m.nodeName&&m.nodeName.toLowerCase(),y===\"select\"||y===\"input\"&&m.type===\"file\")var N=CU;else if(IO(m))if(FO)N=DU;else{N=kU;var F=xU}else(y=m.nodeName)&&y.toLowerCase()===\"input\"&&(m.type===\"checkbox\"||m.type===\"radio\")&&(N=NU);if(N&&(N=N(e,f))){LO(g,N,n,h);break e}F&&F(e,m,f),e===\"focusout\"&&(F=m._wrapperState)&&F.controlled&&m.type===\"number\"&&FE(m,\"number\",m.value)}switch(F=f?Jc(f):window,e){case\"focusin\":(IO(F)||F.contentEditable===\"true\")&&(Gc=F,uw=f,Tp=null);break;case\"focusout\":Tp=uw=Gc=null;break;case\"mousedown\":cw=!0;break;case\"contextmenu\":case\"mouseup\":case\"dragend\":cw=!1,UO(g,n,h);break;case\"selectionchange\":if(IU)break;case\"keydown\":case\"keyup\":UO(g,n,h)}var L;if(ow)e:{switch(e){case\"compositionstart\":var A=\"onCompositionStart\";break e;case\"compositionend\":A=\"onCompositionEnd\";break e;case\"compositionupdate\":A=\"onCompositionUpdate\";break e}A=void 0}else zc?AO(e,n)&&(A=\"onCompositionEnd\"):e===\"keydown\"&&n.keyCode===229&&(A=\"onCompositionStart\");A&&(kO&&n.locale!==\"ko\"&&(zc||A!==\"onCompositionStart\"?A===\"onCompositionEnd\"&&zc&&(L=SO()):(Zs=h,ZE=\"value\"in Zs?Zs.value:Zs.textContent,zc=!0)),F=zm(f,A),0<F.length&&(A=new CO(A,e,null,n,h),g.push({event:A,listeners:F}),L?A.data=L:(L=OO(n),L!==null&&(A.data=L)))),(L=EU?wU(e,n):SU(e,n))&&(f=zm(f,\"onBeforeInput\"),0<f.length&&(h=new CO(\"onBeforeInput\",\"beforeinput\",null,n,h),g.push({event:h,listeners:f}),h.data=L))}KO(g,t)})}function xp(e,t,n){return{instance:e,listener:t,currentTarget:n}}function zm(e,t){for(var n=t+\"Capture\",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=sp(e,n),o!=null&&r.unshift(xp(e,o,i)),o=sp(e,t),o!=null&&r.push(xp(e,o,i))),e=e.return}return r}function Qc(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ZO(e,t,n,r,i){for(var o=t._reactName,s=[];n!==null&&n!==r;){var l=n,c=l.alternate,f=l.stateNode;if(c!==null&&c===r)break;l.tag===5&&f!==null&&(l=f,i?(c=sp(n,o),c!=null&&s.unshift(xp(n,c,l))):i||(c=sp(n,o),c!=null&&s.push(xp(n,c,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var PU=/\\r\\n?/g,MU=/\\u0000|\\uFFFD/g;function eI(e){return(typeof e==\"string\"?e:\"\"+e).replace(PU,`\n`).replace(MU,\"\")}function Gm(e,t,n){if(t=eI(t),eI(e)!==t&&n)throw Error(De(425))}function Wm(){}var mw=null,gw=null;function yw(e,t){return e===\"textarea\"||e===\"noscript\"||typeof t.children==\"string\"||typeof t.children==\"number\"||typeof t.dangerouslySetInnerHTML==\"object\"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var bw=typeof setTimeout==\"function\"?setTimeout:void 0,$U=typeof clearTimeout==\"function\"?clearTimeout:void 0,tI=typeof Promise==\"function\"?Promise:void 0,VU=typeof queueMicrotask==\"function\"?queueMicrotask:typeof tI<\"u\"?function(e){return tI.resolve(null).then(e).catch(BU)}:bw;function BU(e){setTimeout(function(){throw e})}function Ew(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===\"/$\"){if(r===0){e.removeChild(i),mp(t);return}r--}else n!==\"$\"&&n!==\"$?\"&&n!==\"$!\"||r++;n=i}while(n);mp(t)}function tl(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===\"$\"||t===\"$!\"||t===\"$?\")break;if(t===\"/$\")return null}}return e}function nI(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===\"$\"||n===\"$!\"||n===\"$?\"){if(t===0)return e;t--}else n===\"/$\"&&t++}e=e.previousSibling}return null}var Yc=Math.random().toString(36).slice(2),Ca=\"__reactFiber$\"+Yc,kp=\"__reactProps$\"+Yc,es=\"__reactContainer$\"+Yc,ww=\"__reactEvents$\"+Yc,jU=\"__reactListeners$\"+Yc,UU=\"__reactHandles$\"+Yc;function yu(e){var t=e[Ca];if(t)return t;for(var n=e.parentNode;n;){if(t=n[es]||n[Ca]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=nI(e);e!==null;){if(n=e[Ca])return n;e=nI(e)}return t}e=n,n=e.parentNode}return null}function Np(e){return e=e[Ca]||e[es],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Jc(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(De(33))}function Qm(e){return e[kp]||null}var Sw=[],Kc=-1;function nl(e){return{current:e}}function nn(e){0>Kc||(e.current=Sw[Kc],Sw[Kc]=null,Kc--)}function Yt(e,t){Kc++,Sw[Kc]=e.current,e.current=t}var rl={},jr=nl(rl),xi=nl(!1),bu=rl;function Xc(e,t){var n=e.type.contextTypes;if(!n)return rl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ki(e){return e=e.childContextTypes,e!=null}function Ym(){nn(xi),nn(jr)}function rI(e,t,n){if(jr.current!==rl)throw Error(De(168));Yt(jr,t),Yt(xi,n)}function iI(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!=\"function\")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(De(108,xj(e)||\"Unknown\",i));return mn({},n,r)}function Jm(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||rl,bu=jr.current,Yt(jr,e),Yt(xi,xi.current),!0}function oI(e,t,n){var r=e.stateNode;if(!r)throw Error(De(169));n?(e=iI(e,t,bu),r.__reactInternalMemoizedMergedChildContext=e,nn(xi),nn(jr),Yt(jr,e)):nn(xi),Yt(xi,n)}var ts=null,Km=!1,Tw=!1;function aI(e){ts===null?ts=[e]:ts.push(e)}function qU(e){Km=!0,aI(e)}function il(){if(!Tw&&ts!==null){Tw=!0;var e=0,t=jt;try{var n=ts;for(jt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ts=null,Km=!1}catch(i){throw ts!==null&&(ts=ts.slice(e+1)),lO(zE,il),i}finally{jt=t,Tw=!1}}return null}var Zc=[],ef=0,Xm=null,Zm=0,po=[],ho=0,Eu=null,ns=1,rs=\"\";function wu(e,t){Zc[ef++]=Zm,Zc[ef++]=Xm,Xm=e,Zm=t}function sI(e,t,n){po[ho++]=ns,po[ho++]=rs,po[ho++]=Eu,Eu=e;var r=ns;e=rs;var i=32-Go(r)-1;r&=~(1<<i),n+=1;var o=32-Go(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,ns=1<<32-Go(t)+i|n<<i|r,rs=o+e}else ns=1<<o|n<<i|r,rs=e}function _w(e){e.return!==null&&(wu(e,1),sI(e,1,0))}function Cw(e){for(;e===Xm;)Xm=Zc[--ef],Zc[ef]=null,Zm=Zc[--ef],Zc[ef]=null;for(;e===Eu;)Eu=po[--ho],po[ho]=null,rs=po[--ho],po[ho]=null,ns=po[--ho],po[ho]=null}var Gi=null,Wi=null,dn=!1,Qo=null;function lI(e,t){var n=yo(5,null,null,0);n.elementType=\"DELETED\",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function uI(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Gi=e,Wi=tl(t.firstChild),!0):!1;case 6:return t=e.pendingProps===\"\"||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Gi=e,Wi=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Eu!==null?{id:ns,overflow:rs}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=yo(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Gi=e,Wi=null,!0):!1;default:return!1}}function xw(e){return(e.mode&1)!==0&&(e.flags&128)===0}function kw(e){if(dn){var t=Wi;if(t){var n=t;if(!uI(e,t)){if(xw(e))throw Error(De(418));t=tl(n.nextSibling);var r=Gi;t&&uI(e,t)?lI(r,n):(e.flags=e.flags&-4097|2,dn=!1,Gi=e)}}else{if(xw(e))throw Error(De(418));e.flags=e.flags&-4097|2,dn=!1,Gi=e}}}function cI(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Gi=e}function eg(e){if(e!==Gi)return!1;if(!dn)return cI(e),dn=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!==\"head\"&&t!==\"body\"&&!yw(e.type,e.memoizedProps)),t&&(t=Wi)){if(xw(e))throw fI(),Error(De(418));for(;t;)lI(e,t),t=tl(t.nextSibling)}if(cI(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(De(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n===\"/$\"){if(t===0){Wi=tl(e.nextSibling);break e}t--}else n!==\"$\"&&n!==\"$!\"&&n!==\"$?\"||t++}e=e.nextSibling}Wi=null}}else Wi=Gi?tl(e.stateNode.nextSibling):null;return!0}function fI(){for(var e=Wi;e;)e=tl(e.nextSibling)}function tf(){Wi=Gi=null,dn=!1}function Nw(e){Qo===null?Qo=[e]:Qo.push(e)}var HU=Za.ReactCurrentBatchConfig;function Yo(e,t){if(e&&e.defaultProps){t=mn({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var tg=nl(null),ng=null,nf=null,Dw=null;function Aw(){Dw=nf=ng=null}function Ow(e){var t=tg.current;nn(tg),e._currentValue=t}function Iw(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function rf(e,t){ng=e,Dw=nf=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ni=!0),e.firstContext=null)}function vo(e){var t=e._currentValue;if(Dw!==e)if(e={context:e,memoizedValue:t,next:null},nf===null){if(ng===null)throw Error(De(308));nf=e,ng.dependencies={lanes:0,firstContext:e}}else nf=nf.next=e;return t}var Su=null;function Lw(e){Su===null?Su=[e]:Su.push(e)}function dI(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Lw(t)):(n.next=i.next,i.next=n),t.interleaved=n,is(e,r)}function is(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ol=!1;function Fw(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function pI(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function os(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function al(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,kt&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,is(e,n)}return i=r.interleaved,i===null?(t.next=t,Lw(r)):(t.next=i.next,i.next=t),r.interleaved=t,is(e,n)}function rg(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,QE(e,n)}}function hI(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ig(e,t,n,r){var i=e.updateQueue;ol=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var c=l,f=c.next;c.next=null,s===null?o=f:s.next=f,s=c;var h=e.alternate;h!==null&&(h=h.updateQueue,l=h.lastBaseUpdate,l!==s&&(l===null?h.firstBaseUpdate=f:l.next=f,h.lastBaseUpdate=c))}if(o!==null){var g=i.baseState;s=0,h=f=c=null,l=o;do{var m=l.lane,y=l.eventTime;if((r&m)===m){h!==null&&(h=h.next={eventTime:y,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var S=e,x=l;switch(m=t,y=n,x.tag){case 1:if(S=x.payload,typeof S==\"function\"){g=S.call(y,g,m);break e}g=S;break e;case 3:S.flags=S.flags&-65537|128;case 0:if(S=x.payload,m=typeof S==\"function\"?S.call(y,g,m):S,m==null)break e;g=mn({},g,m);break e;case 2:ol=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,m=i.effects,m===null?i.effects=[l]:m.push(l))}else y={eventTime:y,lane:m,tag:l.tag,payload:l.payload,callback:l.callback,next:null},h===null?(f=h=y,c=g):h=h.next=y,s|=m;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;m=l,l=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);if(h===null&&(c=g),i.baseState=c,i.firstBaseUpdate=f,i.lastBaseUpdate=h,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Cu|=s,e.lanes=s,e.memoizedState=g}}function vI(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!=\"function\")throw Error(De(191,i));i.call(r)}}}var mI=new IA.Component().refs;function Rw(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:mn({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var og={isMounted:function(e){return(e=e._reactInternals)?gu(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=li(),i=cl(e),o=os(r,i);o.payload=t,n!=null&&(o.callback=n),t=al(e,o,i),t!==null&&(Xo(t,e,i,r),rg(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=li(),i=cl(e),o=os(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=al(e,o,i),t!==null&&(Xo(t,e,i,r),rg(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=li(),r=cl(e),i=os(n,r);i.tag=2,t!=null&&(i.callback=t),t=al(e,i,r),t!==null&&(Xo(t,e,r,n),rg(t,e,r))}};function gI(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate==\"function\"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!Sp(n,r)||!Sp(i,o):!0}function yI(e,t,n){var r=!1,i=rl,o=t.contextType;return typeof o==\"object\"&&o!==null?o=vo(o):(i=ki(t)?bu:jr.current,r=t.contextTypes,o=(r=r!=null)?Xc(e,i):rl),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=og,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function bI(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==\"function\"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==\"function\"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&og.enqueueReplaceState(t,t.state,null)}function Pw(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=mI,Fw(e);var o=t.contextType;typeof o==\"object\"&&o!==null?i.context=vo(o):(o=ki(t)?bu:jr.current,i.context=Xc(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o==\"function\"&&(Rw(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps==\"function\"||typeof i.getSnapshotBeforeUpdate==\"function\"||typeof i.UNSAFE_componentWillMount!=\"function\"&&typeof i.componentWillMount!=\"function\"||(t=i.state,typeof i.componentWillMount==\"function\"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount==\"function\"&&i.UNSAFE_componentWillMount(),t!==i.state&&og.enqueueReplaceState(i,i.state,null),ig(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount==\"function\"&&(e.flags|=4194308)}function Dp(e,t,n){if(e=n.ref,e!==null&&typeof e!=\"function\"&&typeof e!=\"object\"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(De(309));var r=n.stateNode}if(!r)throw Error(De(147,e));var i=r,o=\"\"+e;return t!==null&&t.ref!==null&&typeof t.ref==\"function\"&&t.ref._stringRef===o?t.ref:(t=function(s){var l=i.refs;l===mI&&(l=i.refs={}),s===null?delete l[o]:l[o]=s},t._stringRef=o,t)}if(typeof e!=\"string\")throw Error(De(284));if(!n._owner)throw Error(De(290,e))}return e}function ag(e,t){throw e=Object.prototype.toString.call(t),Error(De(31,e===\"[object Object]\"?\"object with keys {\"+Object.keys(t).join(\", \")+\"}\":e))}function EI(e){var t=e._init;return t(e._payload)}function wI(e){function t(_,b){if(e){var C=_.deletions;C===null?(_.deletions=[b],_.flags|=16):C.push(b)}}function n(_,b){if(!e)return null;for(;b!==null;)t(_,b),b=b.sibling;return null}function r(_,b){for(_=new Map;b!==null;)b.key!==null?_.set(b.key,b):_.set(b.index,b),b=b.sibling;return _}function i(_,b){return _=dl(_,b),_.index=0,_.sibling=null,_}function o(_,b,C){return _.index=C,e?(C=_.alternate,C!==null?(C=C.index,C<b?(_.flags|=2,b):C):(_.flags|=2,b)):(_.flags|=1048576,b)}function s(_){return e&&_.alternate===null&&(_.flags|=2),_}function l(_,b,C,T){return b===null||b.tag!==6?(b=bS(C,_.mode,T),b.return=_,b):(b=i(b,C),b.return=_,b)}function c(_,b,C,T){var N=C.type;return N===Vc?h(_,b,C.props.children,T,C.key):b!==null&&(b.elementType===N||typeof N==\"object\"&&N!==null&&N.$$typeof===Ws&&EI(N)===b.type)?(T=i(b,C.props),T.ref=Dp(_,b,C),T.return=_,T):(T=Cg(C.type,C.key,C.props,null,_.mode,T),T.ref=Dp(_,b,C),T.return=_,T)}function f(_,b,C,T){return b===null||b.tag!==4||b.stateNode.containerInfo!==C.containerInfo||b.stateNode.implementation!==C.implementation?(b=ES(C,_.mode,T),b.return=_,b):(b=i(b,C.children||[]),b.return=_,b)}function h(_,b,C,T,N){return b===null||b.tag!==7?(b=Du(C,_.mode,T,N),b.return=_,b):(b=i(b,C),b.return=_,b)}function g(_,b,C){if(typeof b==\"string\"&&b!==\"\"||typeof b==\"number\")return b=bS(\"\"+b,_.mode,C),b.return=_,b;if(typeof b==\"object\"&&b!==null){switch(b.$$typeof){case Sm:return C=Cg(b.type,b.key,b.props,null,_.mode,C),C.ref=Dp(_,null,b),C.return=_,C;case $c:return b=ES(b,_.mode,C),b.return=_,b;case Ws:var T=b._init;return g(_,T(b._payload),C)}if(ip(b)||np(b))return b=Du(b,_.mode,C,null),b.return=_,b;ag(_,b)}return null}function m(_,b,C,T){var N=b!==null?b.key:null;if(typeof C==\"string\"&&C!==\"\"||typeof C==\"number\")return N!==null?null:l(_,b,\"\"+C,T);if(typeof C==\"object\"&&C!==null){switch(C.$$typeof){case Sm:return C.key===N?c(_,b,C,T):null;case $c:return C.key===N?f(_,b,C,T):null;case Ws:return N=C._init,m(_,b,N(C._payload),T)}if(ip(C)||np(C))return N!==null?null:h(_,b,C,T,null);ag(_,C)}return null}function y(_,b,C,T,N){if(typeof T==\"string\"&&T!==\"\"||typeof T==\"number\")return _=_.get(C)||null,l(b,_,\"\"+T,N);if(typeof T==\"object\"&&T!==null){switch(T.$$typeof){case Sm:return _=_.get(T.key===null?C:T.key)||null,c(b,_,T,N);case $c:return _=_.get(T.key===null?C:T.key)||null,f(b,_,T,N);case Ws:var F=T._init;return y(_,b,C,F(T._payload),N)}if(ip(T)||np(T))return _=_.get(C)||null,h(b,_,T,N,null);ag(b,T)}return null}function S(_,b,C,T){for(var N=null,F=null,L=b,A=b=0,P=null;L!==null&&A<C.length;A++){L.index>A?(P=L,L=null):P=L.sibling;var V=m(_,L,C[A],T);if(V===null){L===null&&(L=P);break}e&&L&&V.alternate===null&&t(_,L),b=o(V,b,A),F===null?N=V:F.sibling=V,F=V,L=P}if(A===C.length)return n(_,L),dn&&wu(_,A),N;if(L===null){for(;A<C.length;A++)L=g(_,C[A],T),L!==null&&(b=o(L,b,A),F===null?N=L:F.sibling=L,F=L);return dn&&wu(_,A),N}for(L=r(_,L);A<C.length;A++)P=y(L,_,A,C[A],T),P!==null&&(e&&P.alternate!==null&&L.delete(P.key===null?A:P.key),b=o(P,b,A),F===null?N=P:F.sibling=P,F=P);return e&&L.forEach(function(H){return t(_,H)}),dn&&wu(_,A),N}function x(_,b,C,T){var N=np(C);if(typeof N!=\"function\")throw Error(De(150));if(C=N.call(C),C==null)throw Error(De(151));for(var F=N=null,L=b,A=b=0,P=null,V=C.next();L!==null&&!V.done;A++,V=C.next()){L.index>A?(P=L,L=null):P=L.sibling;var H=m(_,L,V.value,T);if(H===null){L===null&&(L=P);break}e&&L&&H.alternate===null&&t(_,L),b=o(H,b,A),F===null?N=H:F.sibling=H,F=H,L=P}if(V.done)return n(_,L),dn&&wu(_,A),N;if(L===null){for(;!V.done;A++,V=C.next())V=g(_,V.value,T),V!==null&&(b=o(V,b,A),F===null?N=V:F.sibling=V,F=V);return dn&&wu(_,A),N}for(L=r(_,L);!V.done;A++,V=C.next())V=y(L,_,A,V.value,T),V!==null&&(e&&V.alternate!==null&&L.delete(V.key===null?A:V.key),b=o(V,b,A),F===null?N=V:F.sibling=V,F=V);return e&&L.forEach(function(G){return t(_,G)}),dn&&wu(_,A),N}function D(_,b,C,T){if(typeof C==\"object\"&&C!==null&&C.type===Vc&&C.key===null&&(C=C.props.children),typeof C==\"object\"&&C!==null){switch(C.$$typeof){case Sm:e:{for(var N=C.key,F=b;F!==null;){if(F.key===N){if(N=C.type,N===Vc){if(F.tag===7){n(_,F.sibling),b=i(F,C.props.children),b.return=_,_=b;break e}}else if(F.elementType===N||typeof N==\"object\"&&N!==null&&N.$$typeof===Ws&&EI(N)===F.type){n(_,F.sibling),b=i(F,C.props),b.ref=Dp(_,F,C),b.return=_,_=b;break e}n(_,F);break}else t(_,F);F=F.sibling}C.type===Vc?(b=Du(C.props.children,_.mode,T,C.key),b.return=_,_=b):(T=Cg(C.type,C.key,C.props,null,_.mode,T),T.ref=Dp(_,b,C),T.return=_,_=T)}return s(_);case $c:e:{for(F=C.key;b!==null;){if(b.key===F)if(b.tag===4&&b.stateNode.containerInfo===C.containerInfo&&b.stateNode.implementation===C.implementation){n(_,b.sibling),b=i(b,C.children||[]),b.return=_,_=b;break e}else{n(_,b);break}else t(_,b);b=b.sibling}b=ES(C,_.mode,T),b.return=_,_=b}return s(_);case Ws:return F=C._init,D(_,b,F(C._payload),T)}if(ip(C))return S(_,b,C,T);if(np(C))return x(_,b,C,T);ag(_,C)}return typeof C==\"string\"&&C!==\"\"||typeof C==\"number\"?(C=\"\"+C,b!==null&&b.tag===6?(n(_,b.sibling),b=i(b,C),b.return=_,_=b):(n(_,b),b=bS(C,_.mode,T),b.return=_,_=b),s(_)):n(_,b)}return D}var of=wI(!0),SI=wI(!1),Ap={},xa=nl(Ap),Op=nl(Ap),Ip=nl(Ap);function Tu(e){if(e===Ap)throw Error(De(174));return e}function Mw(e,t){switch(Yt(Ip,t),Yt(Op,e),Yt(xa,Ap),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:PE(null,\"\");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=PE(t,e)}nn(xa),Yt(xa,t)}function af(){nn(xa),nn(Op),nn(Ip)}function TI(e){Tu(Ip.current);var t=Tu(xa.current),n=PE(t,e.type);t!==n&&(Yt(Op,e),Yt(xa,n))}function $w(e){Op.current===e&&(nn(xa),nn(Op))}var gn=nl(0);function sg(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data===\"$?\"||n.data===\"$!\"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Vw=[];function Bw(){for(var e=0;e<Vw.length;e++)Vw[e]._workInProgressVersionPrimary=null;Vw.length=0}var lg=Za.ReactCurrentDispatcher,jw=Za.ReactCurrentBatchConfig,_u=0,yn=null,Xn=null,vr=null,ug=!1,Lp=!1,Fp=0,zU=0;function Ur(){throw Error(De(321))}function Uw(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Wo(e[n],t[n]))return!1;return!0}function qw(e,t,n,r,i,o){if(_u=o,yn=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,lg.current=e===null||e.memoizedState===null?YU:JU,e=n(r,i),Lp){o=0;do{if(Lp=!1,Fp=0,25<=o)throw Error(De(301));o+=1,vr=Xn=null,t.updateQueue=null,lg.current=KU,e=n(r,i)}while(Lp)}if(lg.current=dg,t=Xn!==null&&Xn.next!==null,_u=0,vr=Xn=yn=null,ug=!1,t)throw Error(De(300));return e}function Hw(){var e=Fp!==0;return Fp=0,e}function ka(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return vr===null?yn.memoizedState=vr=e:vr=vr.next=e,vr}function mo(){if(Xn===null){var e=yn.alternate;e=e!==null?e.memoizedState:null}else e=Xn.next;var t=vr===null?yn.memoizedState:vr.next;if(t!==null)vr=t,Xn=e;else{if(e===null)throw Error(De(310));Xn=e,e={memoizedState:Xn.memoizedState,baseState:Xn.baseState,baseQueue:Xn.baseQueue,queue:Xn.queue,next:null},vr===null?yn.memoizedState=vr=e:vr=vr.next=e}return vr}function Rp(e,t){return typeof t==\"function\"?t(e):t}function zw(e){var t=mo(),n=t.queue;if(n===null)throw Error(De(311));n.lastRenderedReducer=e;var r=Xn,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var l=s=null,c=null,f=o;do{var h=f.lane;if((_u&h)===h)c!==null&&(c=c.next={lane:0,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null}),r=f.hasEagerState?f.eagerState:e(r,f.action);else{var g={lane:h,action:f.action,hasEagerState:f.hasEagerState,eagerState:f.eagerState,next:null};c===null?(l=c=g,s=r):c=c.next=g,yn.lanes|=h,Cu|=h}f=f.next}while(f!==null&&f!==o);c===null?s=r:c.next=l,Wo(r,t.memoizedState)||(Ni=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,yn.lanes|=o,Cu|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Gw(e){var t=mo(),n=t.queue;if(n===null)throw Error(De(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);Wo(o,t.memoizedState)||(Ni=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function _I(){}function CI(e,t){var n=yn,r=mo(),i=t(),o=!Wo(r.memoizedState,i);if(o&&(r.memoizedState=i,Ni=!0),r=r.queue,Ww(NI.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||vr!==null&&vr.memoizedState.tag&1){if(n.flags|=2048,Pp(9,kI.bind(null,n,r,i,t),void 0,null),mr===null)throw Error(De(349));_u&30||xI(n,t,i)}return i}function xI(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=yn.updateQueue,t===null?(t={lastEffect:null,stores:null},yn.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function kI(e,t,n,r){t.value=n,t.getSnapshot=r,DI(t)&&AI(e)}function NI(e,t,n){return n(function(){DI(t)&&AI(e)})}function DI(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Wo(e,n)}catch{return!0}}function AI(e){var t=is(e,1);t!==null&&Xo(t,e,1,-1)}function OI(e){var t=ka();return typeof e==\"function\"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Rp,lastRenderedState:e},t.queue=e,e=e.dispatch=QU.bind(null,yn,e),[t.memoizedState,e]}function Pp(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=yn.updateQueue,t===null?(t={lastEffect:null,stores:null},yn.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function II(){return mo().memoizedState}function cg(e,t,n,r){var i=ka();yn.flags|=e,i.memoizedState=Pp(1|t,n,void 0,r===void 0?null:r)}function fg(e,t,n,r){var i=mo();r=r===void 0?null:r;var o=void 0;if(Xn!==null){var s=Xn.memoizedState;if(o=s.destroy,r!==null&&Uw(r,s.deps)){i.memoizedState=Pp(t,n,o,r);return}}yn.flags|=e,i.memoizedState=Pp(1|t,n,o,r)}function LI(e,t){return cg(8390656,8,e,t)}function Ww(e,t){return fg(2048,8,e,t)}function FI(e,t){return fg(4,2,e,t)}function RI(e,t){return fg(4,4,e,t)}function PI(e,t){if(typeof t==\"function\")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function MI(e,t,n){return n=n!=null?n.concat([e]):null,fg(4,4,PI.bind(null,t,e),n)}function Qw(){}function $I(e,t){var n=mo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Uw(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function VI(e,t){var n=mo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Uw(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function BI(e,t,n){return _u&21?(Wo(n,t)||(n=dO(),yn.lanes|=n,Cu|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ni=!0),e.memoizedState=n)}function GU(e,t){var n=jt;jt=n!==0&&4>n?n:4,e(!0);var r=jw.transition;jw.transition={};try{e(!1),t()}finally{jt=n,jw.transition=r}}function jI(){return mo().memoizedState}function WU(e,t,n){var r=cl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},UI(e))qI(t,n);else if(n=dI(e,t,n,r),n!==null){var i=li();Xo(n,e,r,i),HI(n,t,r)}}function QU(e,t,n){var r=cl(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(UI(e))qI(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,Wo(l,s)){var c=t.interleaved;c===null?(i.next=i,Lw(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}finally{}n=dI(e,t,i,r),n!==null&&(i=li(),Xo(n,e,r,i),HI(n,t,r))}}function UI(e){var t=e.alternate;return e===yn||t!==null&&t===yn}function qI(e,t){Lp=ug=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function HI(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,QE(e,n)}}var dg={readContext:vo,useCallback:Ur,useContext:Ur,useEffect:Ur,useImperativeHandle:Ur,useInsertionEffect:Ur,useLayoutEffect:Ur,useMemo:Ur,useReducer:Ur,useRef:Ur,useState:Ur,useDebugValue:Ur,useDeferredValue:Ur,useTransition:Ur,useMutableSource:Ur,useSyncExternalStore:Ur,useId:Ur,unstable_isNewReconciler:!1},YU={readContext:vo,useCallback:function(e,t){return ka().memoizedState=[e,t===void 0?null:t],e},useContext:vo,useEffect:LI,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,cg(4194308,4,PI.bind(null,t,e),n)},useLayoutEffect:function(e,t){return cg(4194308,4,e,t)},useInsertionEffect:function(e,t){return cg(4,2,e,t)},useMemo:function(e,t){var n=ka();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ka();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=WU.bind(null,yn,e),[r.memoizedState,e]},useRef:function(e){var t=ka();return e={current:e},t.memoizedState=e},useState:OI,useDebugValue:Qw,useDeferredValue:function(e){return ka().memoizedState=e},useTransition:function(){var e=OI(!1),t=e[0];return e=GU.bind(null,e[1]),ka().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=yn,i=ka();if(dn){if(n===void 0)throw Error(De(407));n=n()}else{if(n=t(),mr===null)throw Error(De(349));_u&30||xI(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,LI(NI.bind(null,r,o,e),[e]),r.flags|=2048,Pp(9,kI.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=ka(),t=mr.identifierPrefix;if(dn){var n=rs,r=ns;n=(r&~(1<<32-Go(r)-1)).toString(32)+n,t=\":\"+t+\"R\"+n,n=Fp++,0<n&&(t+=\"H\"+n.toString(32)),t+=\":\"}else n=zU++,t=\":\"+t+\"r\"+n.toString(32)+\":\";return e.memoizedState=t},unstable_isNewReconciler:!1},JU={readContext:vo,useCallback:$I,useContext:vo,useEffect:Ww,useImperativeHandle:MI,useInsertionEffect:FI,useLayoutEffect:RI,useMemo:VI,useReducer:zw,useRef:II,useState:function(){return zw(Rp)},useDebugValue:Qw,useDeferredValue:function(e){var t=mo();return BI(t,Xn.memoizedState,e)},useTransition:function(){var e=zw(Rp)[0],t=mo().memoizedState;return[e,t]},useMutableSource:_I,useSyncExternalStore:CI,useId:jI,unstable_isNewReconciler:!1},KU={readContext:vo,useCallback:$I,useContext:vo,useEffect:Ww,useImperativeHandle:MI,useInsertionEffect:FI,useLayoutEffect:RI,useMemo:VI,useReducer:Gw,useRef:II,useState:function(){return Gw(Rp)},useDebugValue:Qw,useDeferredValue:function(e){var t=mo();return Xn===null?t.memoizedState=e:BI(t,Xn.memoizedState,e)},useTransition:function(){var e=Gw(Rp)[0],t=mo().memoizedState;return[e,t]},useMutableSource:_I,useSyncExternalStore:CI,useId:jI,unstable_isNewReconciler:!1};function sf(e,t){try{var n=\"\",r=t;do n+=Cj(r),r=r.return;while(r);var i=n}catch(o){i=`\nError generating stack: `+o.message+`\n`+o.stack}return{value:e,source:t,stack:i,digest:null}}function Yw(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Jw(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var XU=typeof WeakMap==\"function\"?WeakMap:Map;function zI(e,t,n){n=os(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){bg||(bg=!0,fS=r),Jw(e,t)},n}function GI(e,t,n){n=os(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r==\"function\"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Jw(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch==\"function\"&&(n.callback=function(){Jw(e,t),typeof r!=\"function\"&&(ll===null?ll=new Set([this]):ll.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:\"\"})}),n}function WI(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new XU;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=dq.bind(null,e,t,n),t.then(e,e))}function QI(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function YI(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=os(-1,1),t.tag=2,al(n,t,1))),n.lanes|=1),e)}var ZU=Za.ReactCurrentOwner,Ni=!1;function si(e,t,n,r){t.child=e===null?SI(t,null,n,r):of(t,e.child,n,r)}function JI(e,t,n,r,i){n=n.render;var o=t.ref;return rf(t,i),r=qw(e,t,n,r,o,i),n=Hw(),e!==null&&!Ni?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,as(e,t,i)):(dn&&n&&_w(t),t.flags|=1,si(e,t,r,i),t.child)}function KI(e,t,n,r,i){if(e===null){var o=n.type;return typeof o==\"function\"&&!yS(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,XI(e,t,o,r,i)):(e=Cg(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:Sp,n(s,r)&&e.ref===t.ref)return as(e,t,i)}return t.flags|=1,e=dl(o,r),e.ref=t.ref,e.return=t,t.child=e}function XI(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Sp(o,r)&&e.ref===t.ref)if(Ni=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(Ni=!0);else return t.lanes=e.lanes,as(e,t,i)}return Kw(e,t,n,r,i)}function ZI(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode===\"hidden\")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Yt(uf,Qi),Qi|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Yt(uf,Qi),Qi|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Yt(uf,Qi),Qi|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Yt(uf,Qi),Qi|=r;return si(e,t,i,n),t.child}function e2(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Kw(e,t,n,r,i){var o=ki(n)?bu:jr.current;return o=Xc(t,o),rf(t,i),n=qw(e,t,n,r,o,i),r=Hw(),e!==null&&!Ni?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,as(e,t,i)):(dn&&r&&_w(t),t.flags|=1,si(e,t,n,i),t.child)}function t2(e,t,n,r,i){if(ki(n)){var o=!0;Jm(t)}else o=!1;if(rf(t,i),t.stateNode===null)hg(e,t),yI(t,n,r),Pw(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var c=s.context,f=n.contextType;typeof f==\"object\"&&f!==null?f=vo(f):(f=ki(n)?bu:jr.current,f=Xc(t,f));var h=n.getDerivedStateFromProps,g=typeof h==\"function\"||typeof s.getSnapshotBeforeUpdate==\"function\";g||typeof s.UNSAFE_componentWillReceiveProps!=\"function\"&&typeof s.componentWillReceiveProps!=\"function\"||(l!==r||c!==f)&&bI(t,s,r,f),ol=!1;var m=t.memoizedState;s.state=m,ig(t,r,s,i),c=t.memoizedState,l!==r||m!==c||xi.current||ol?(typeof h==\"function\"&&(Rw(t,n,h,r),c=t.memoizedState),(l=ol||gI(t,n,l,r,m,c,f))?(g||typeof s.UNSAFE_componentWillMount!=\"function\"&&typeof s.componentWillMount!=\"function\"||(typeof s.componentWillMount==\"function\"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount==\"function\"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount==\"function\"&&(t.flags|=4194308)):(typeof s.componentDidMount==\"function\"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),s.props=r,s.state=c,s.context=f,r=l):(typeof s.componentDidMount==\"function\"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,pI(e,t),l=t.memoizedProps,f=t.type===t.elementType?l:Yo(t.type,l),s.props=f,g=t.pendingProps,m=s.context,c=n.contextType,typeof c==\"object\"&&c!==null?c=vo(c):(c=ki(n)?bu:jr.current,c=Xc(t,c));var y=n.getDerivedStateFromProps;(h=typeof y==\"function\"||typeof s.getSnapshotBeforeUpdate==\"function\")||typeof s.UNSAFE_componentWillReceiveProps!=\"function\"&&typeof s.componentWillReceiveProps!=\"function\"||(l!==g||m!==c)&&bI(t,s,r,c),ol=!1,m=t.memoizedState,s.state=m,ig(t,r,s,i);var S=t.memoizedState;l!==g||m!==S||xi.current||ol?(typeof y==\"function\"&&(Rw(t,n,y,r),S=t.memoizedState),(f=ol||gI(t,n,f,r,m,S,c)||!1)?(h||typeof s.UNSAFE_componentWillUpdate!=\"function\"&&typeof s.componentWillUpdate!=\"function\"||(typeof s.componentWillUpdate==\"function\"&&s.componentWillUpdate(r,S,c),typeof s.UNSAFE_componentWillUpdate==\"function\"&&s.UNSAFE_componentWillUpdate(r,S,c)),typeof s.componentDidUpdate==\"function\"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate==\"function\"&&(t.flags|=1024)):(typeof s.componentDidUpdate!=\"function\"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!=\"function\"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=S),s.props=r,s.state=S,s.context=c,r=f):(typeof s.componentDidUpdate!=\"function\"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!=\"function\"||l===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return Xw(e,t,n,r,o,i)}function Xw(e,t,n,r,i,o){e2(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&oI(t,n,!1),as(e,t,o);r=t.stateNode,ZU.current=t;var l=s&&typeof n.getDerivedStateFromError!=\"function\"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=of(t,e.child,null,o),t.child=of(t,null,l,o)):si(e,t,l,o),t.memoizedState=r.state,i&&oI(t,n,!0),t.child}function n2(e){var t=e.stateNode;t.pendingContext?rI(e,t.pendingContext,t.pendingContext!==t.context):t.context&&rI(e,t.context,!1),Mw(e,t.containerInfo)}function r2(e,t,n,r,i){return tf(),Nw(i),t.flags|=256,si(e,t,n,r),t.child}var Zw={dehydrated:null,treeContext:null,retryLane:0};function eS(e){return{baseLanes:e,cachePool:null,transitions:null}}function i2(e,t,n){var r=t.pendingProps,i=gn.current,o=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Yt(gn,i&1),e===null)return kw(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data===\"$!\"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:\"hidden\",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=xg(s,r,0,null),e=Du(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=eS(n),t.memoizedState=Zw,e):tS(t,s));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return eq(e,t,s,r,l,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,l=i.sibling;var c={mode:\"hidden\",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=dl(i,c),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=dl(l,o):(o=Du(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?eS(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=Zw,r}return o=e.child,e=o.sibling,r=dl(o,{mode:\"visible\",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function tS(e,t){return t=xg({mode:\"visible\",children:t},e.mode,0,null),t.return=e,e.child=t}function pg(e,t,n,r){return r!==null&&Nw(r),of(t,e.child,null,n),e=tS(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function eq(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=Yw(Error(De(422))),pg(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=xg({mode:\"visible\",children:r.children},i,0,null),o=Du(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&of(t,e.child,null,s),t.child.memoizedState=eS(s),t.memoizedState=Zw,o);if(!(t.mode&1))return pg(e,t,s,null);if(i.data===\"$!\"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,o=Error(De(419)),r=Yw(o,r,void 0),pg(e,t,s,r)}if(l=(s&e.childLanes)!==0,Ni||l){if(r=mr,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,is(e,i),Xo(r,e,i,-1))}return gS(),r=Yw(Error(De(421))),pg(e,t,s,r)}return i.data===\"$?\"?(t.flags|=128,t.child=e.child,t=pq.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Wi=tl(i.nextSibling),Gi=t,dn=!0,Qo=null,e!==null&&(po[ho++]=ns,po[ho++]=rs,po[ho++]=Eu,ns=e.id,rs=e.overflow,Eu=t),t=tS(t,r.children),t.flags|=4096,t)}function o2(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Iw(e.return,t,n)}function nS(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function a2(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(si(e,t,r.children,n),r=gn.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&o2(e,n,t);else if(e.tag===19)o2(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Yt(gn,r),!(t.mode&1))t.memoizedState=null;else switch(i){case\"forwards\":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&sg(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),nS(t,!1,i,n,o);break;case\"backwards\":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&sg(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}nS(t,!0,n,null,o);break;case\"together\":nS(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function hg(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function as(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Cu|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(De(153));if(t.child!==null){for(e=t.child,n=dl(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=dl(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function tq(e,t,n){switch(t.tag){case 3:n2(t),tf();break;case 5:TI(t);break;case 1:ki(t.type)&&Jm(t);break;case 4:Mw(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Yt(tg,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Yt(gn,gn.current&1),t.flags|=128,null):n&t.child.childLanes?i2(e,t,n):(Yt(gn,gn.current&1),e=as(e,t,n),e!==null?e.sibling:null);Yt(gn,gn.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return a2(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Yt(gn,gn.current),r)break;return null;case 22:case 23:return t.lanes=0,ZI(e,t,n)}return as(e,t,n)}var s2,rS,l2,u2;s2=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},rS=function(){},l2=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Tu(xa.current);var o=null;switch(n){case\"input\":i=IE(e,i),r=IE(e,r),o=[];break;case\"select\":i=mn({},i,{value:void 0}),r=mn({},r,{value:void 0}),o=[];break;case\"textarea\":i=RE(e,i),r=RE(e,r),o=[];break;default:typeof i.onClick!=\"function\"&&typeof r.onClick==\"function\"&&(e.onclick=Wm)}ME(n,r);var s;n=null;for(f in i)if(!r.hasOwnProperty(f)&&i.hasOwnProperty(f)&&i[f]!=null)if(f===\"style\"){var l=i[f];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]=\"\")}else f!==\"dangerouslySetInnerHTML\"&&f!==\"children\"&&f!==\"suppressContentEditableWarning\"&&f!==\"suppressHydrationWarning\"&&f!==\"autoFocus\"&&(tp.hasOwnProperty(f)?o||(o=[]):(o=o||[]).push(f,null));for(f in r){var c=r[f];if(l=i!=null?i[f]:void 0,r.hasOwnProperty(f)&&c!==l&&(c!=null||l!=null))if(f===\"style\")if(l){for(s in l)!l.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(n||(n={}),n[s]=\"\");for(s in c)c.hasOwnProperty(s)&&l[s]!==c[s]&&(n||(n={}),n[s]=c[s])}else n||(o||(o=[]),o.push(f,n)),n=c;else f===\"dangerouslySetInnerHTML\"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(o=o||[]).push(f,c)):f===\"children\"?typeof c!=\"string\"&&typeof c!=\"number\"||(o=o||[]).push(f,\"\"+c):f!==\"suppressContentEditableWarning\"&&f!==\"suppressHydrationWarning\"&&(tp.hasOwnProperty(f)?(c!=null&&f===\"onScroll\"&&tn(\"scroll\",e),o||l===c||(o=[])):(o=o||[]).push(f,c))}n&&(o=o||[]).push(\"style\",n);var f=o;(t.updateQueue=f)&&(t.flags|=4)}},u2=function(e,t,n,r){n!==r&&(t.flags|=4)};function Mp(e,t){if(!dn)switch(e.tailMode){case\"hidden\":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case\"collapsed\":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function qr(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function nq(e,t,n){var r=t.pendingProps;switch(Cw(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qr(t),null;case 1:return ki(t.type)&&Ym(),qr(t),null;case 3:return r=t.stateNode,af(),nn(xi),nn(jr),Bw(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(eg(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Qo!==null&&(hS(Qo),Qo=null))),rS(e,t),qr(t),null;case 5:$w(t);var i=Tu(Ip.current);if(n=t.type,e!==null&&t.stateNode!=null)l2(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(De(166));return qr(t),null}if(e=Tu(xa.current),eg(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Ca]=t,r[kp]=o,e=(t.mode&1)!==0,n){case\"dialog\":tn(\"cancel\",r),tn(\"close\",r);break;case\"iframe\":case\"object\":case\"embed\":tn(\"load\",r);break;case\"video\":case\"audio\":for(i=0;i<_p.length;i++)tn(_p[i],r);break;case\"source\":tn(\"error\",r);break;case\"img\":case\"image\":case\"link\":tn(\"error\",r),tn(\"load\",r);break;case\"details\":tn(\"toggle\",r);break;case\"input\":UA(r,o),tn(\"invalid\",r);break;case\"select\":r._wrapperState={wasMultiple:!!o.multiple},tn(\"invalid\",r);break;case\"textarea\":zA(r,o),tn(\"invalid\",r)}ME(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var l=o[s];s===\"children\"?typeof l==\"string\"?r.textContent!==l&&(o.suppressHydrationWarning!==!0&&Gm(r.textContent,l,e),i=[\"children\",l]):typeof l==\"number\"&&r.textContent!==\"\"+l&&(o.suppressHydrationWarning!==!0&&Gm(r.textContent,l,e),i=[\"children\",\"\"+l]):tp.hasOwnProperty(s)&&l!=null&&s===\"onScroll\"&&tn(\"scroll\",r)}switch(n){case\"input\":Tm(r),HA(r,o,!0);break;case\"textarea\":Tm(r),WA(r);break;case\"select\":case\"option\":break;default:typeof o.onClick==\"function\"&&(r.onclick=Wm)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e===\"http://www.w3.org/1999/xhtml\"&&(e=QA(n)),e===\"http://www.w3.org/1999/xhtml\"?n===\"script\"?(e=s.createElement(\"div\"),e.innerHTML=\"<script><\\/script>\",e=e.removeChild(e.firstChild)):typeof r.is==\"string\"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n===\"select\"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Ca]=t,e[kp]=r,s2(e,t,!1,!1),t.stateNode=e;e:{switch(s=$E(n,r),n){case\"dialog\":tn(\"cancel\",e),tn(\"close\",e),i=r;break;case\"iframe\":case\"object\":case\"embed\":tn(\"load\",e),i=r;break;case\"video\":case\"audio\":for(i=0;i<_p.length;i++)tn(_p[i],e);i=r;break;case\"source\":tn(\"error\",e),i=r;break;case\"img\":case\"image\":case\"link\":tn(\"error\",e),tn(\"load\",e),i=r;break;case\"details\":tn(\"toggle\",e),i=r;break;case\"input\":UA(e,r),i=IE(e,r),tn(\"invalid\",e);break;case\"option\":i=r;break;case\"select\":e._wrapperState={wasMultiple:!!r.multiple},i=mn({},r,{value:void 0}),tn(\"invalid\",e);break;case\"textarea\":zA(e,r),i=RE(e,r),tn(\"invalid\",e);break;default:i=r}ME(n,i),l=i;for(o in l)if(l.hasOwnProperty(o)){var c=l[o];o===\"style\"?KA(e,c):o===\"dangerouslySetInnerHTML\"?(c=c?c.__html:void 0,c!=null&&YA(e,c)):o===\"children\"?typeof c==\"string\"?(n!==\"textarea\"||c!==\"\")&&op(e,c):typeof c==\"number\"&&op(e,\"\"+c):o!==\"suppressContentEditableWarning\"&&o!==\"suppressHydrationWarning\"&&o!==\"autoFocus\"&&(tp.hasOwnProperty(o)?c!=null&&o===\"onScroll\"&&tn(\"scroll\",e):c!=null&&wE(e,o,c,s))}switch(n){case\"input\":Tm(e),HA(e,r,!1);break;case\"textarea\":Tm(e),WA(e);break;case\"option\":r.value!=null&&e.setAttribute(\"value\",\"\"+Qs(r.value));break;case\"select\":e.multiple=!!r.multiple,o=r.value,o!=null?Bc(e,!!r.multiple,o,!1):r.defaultValue!=null&&Bc(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick==\"function\"&&(e.onclick=Wm)}switch(n){case\"button\":case\"input\":case\"select\":case\"textarea\":r=!!r.autoFocus;break e;case\"img\":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return qr(t),null;case 6:if(e&&t.stateNode!=null)u2(e,t,e.memoizedProps,r);else{if(typeof r!=\"string\"&&t.stateNode===null)throw Error(De(166));if(n=Tu(Ip.current),Tu(xa.current),eg(t)){if(r=t.stateNode,n=t.memoizedProps,r[Ca]=t,(o=r.nodeValue!==n)&&(e=Gi,e!==null))switch(e.tag){case 3:Gm(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Gm(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Ca]=t,t.stateNode=r}return qr(t),null;case 13:if(nn(gn),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(dn&&Wi!==null&&t.mode&1&&!(t.flags&128))fI(),tf(),t.flags|=98560,o=!1;else if(o=eg(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(De(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(De(317));o[Ca]=t}else tf(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;qr(t),o=!1}else Qo!==null&&(hS(Qo),Qo=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||gn.current&1?Zn===0&&(Zn=3):gS())),t.updateQueue!==null&&(t.flags|=4),qr(t),null);case 4:return af(),rS(e,t),e===null&&Cp(t.stateNode.containerInfo),qr(t),null;case 10:return Ow(t.type._context),qr(t),null;case 17:return ki(t.type)&&Ym(),qr(t),null;case 19:if(nn(gn),o=t.memoizedState,o===null)return qr(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)Mp(o,!1);else{if(Zn!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=sg(e),s!==null){for(t.flags|=128,Mp(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Yt(gn,gn.current&1|2),t.child}e=e.sibling}o.tail!==null&&Dn()>cf&&(t.flags|=128,r=!0,Mp(o,!1),t.lanes=4194304)}else{if(!r)if(e=sg(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Mp(o,!0),o.tail===null&&o.tailMode===\"hidden\"&&!s.alternate&&!dn)return qr(t),null}else 2*Dn()-o.renderingStartTime>cf&&n!==1073741824&&(t.flags|=128,r=!0,Mp(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Dn(),t.sibling=null,n=gn.current,Yt(gn,r?n&1|2:n&1),t):(qr(t),null);case 22:case 23:return mS(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Qi&1073741824&&(qr(t),t.subtreeFlags&6&&(t.flags|=8192)):qr(t),null;case 24:return null;case 25:return null}throw Error(De(156,t.tag))}function rq(e,t){switch(Cw(t),t.tag){case 1:return ki(t.type)&&Ym(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return af(),nn(xi),nn(jr),Bw(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return $w(t),null;case 13:if(nn(gn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(De(340));tf()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return nn(gn),null;case 4:return af(),null;case 10:return Ow(t.type._context),null;case 22:case 23:return mS(),null;case 24:return null;default:return null}}var vg=!1,Hr=!1,iq=typeof WeakSet==\"function\"?WeakSet:Set,Ve=null;function lf(e,t){var n=e.ref;if(n!==null)if(typeof n==\"function\")try{n(null)}catch(r){Sn(e,t,r)}else n.current=null}function iS(e,t,n){try{n()}catch(r){Sn(e,t,r)}}var c2=!1;function oq(e,t){if(mw=Rm,e=jO(),lw(e)){if(\"selectionStart\"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,c=-1,f=0,h=0,g=e,m=null;t:for(;;){for(var y;g!==n||i!==0&&g.nodeType!==3||(l=s+i),g!==o||r!==0&&g.nodeType!==3||(c=s+r),g.nodeType===3&&(s+=g.nodeValue.length),(y=g.firstChild)!==null;)m=g,g=y;for(;;){if(g===e)break t;if(m===n&&++f===i&&(l=s),m===o&&++h===r&&(c=s),(y=g.nextSibling)!==null)break;g=m,m=g.parentNode}g=y}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(gw={focusedElem:e,selectionRange:n},Rm=!1,Ve=t;Ve!==null;)if(t=Ve,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ve=e;else for(;Ve!==null;){t=Ve;try{var S=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(S!==null){var x=S.memoizedProps,D=S.memoizedState,_=t.stateNode,b=_.getSnapshotBeforeUpdate(t.elementType===t.type?x:Yo(t.type,x),D);_.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent=\"\":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(De(163))}}catch(T){Sn(t,t.return,T)}if(e=t.sibling,e!==null){e.return=t.return,Ve=e;break}Ve=t.return}return S=c2,c2=!1,S}function $p(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&iS(t,n,o)}i=i.next}while(i!==r)}}function mg(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function oS(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t==\"function\"?t(e):t.current=e}}function f2(e){var t=e.alternate;t!==null&&(e.alternate=null,f2(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ca],delete t[kp],delete t[ww],delete t[jU],delete t[UU])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function d2(e){return e.tag===5||e.tag===3||e.tag===4}function p2(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||d2(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function aS(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Wm));else if(r!==4&&(e=e.child,e!==null))for(aS(e,t,n),e=e.sibling;e!==null;)aS(e,t,n),e=e.sibling}function sS(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(sS(e,t,n),e=e.sibling;e!==null;)sS(e,t,n),e=e.sibling}var Or=null,Jo=!1;function sl(e,t,n){for(n=n.child;n!==null;)h2(e,t,n),n=n.sibling}function h2(e,t,n){if(_a&&typeof _a.onCommitFiberUnmount==\"function\")try{_a.onCommitFiberUnmount(Dm,n)}catch{}switch(n.tag){case 5:Hr||lf(n,t);case 6:var r=Or,i=Jo;Or=null,sl(e,t,n),Or=r,Jo=i,Or!==null&&(Jo?(e=Or,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Or.removeChild(n.stateNode));break;case 18:Or!==null&&(Jo?(e=Or,n=n.stateNode,e.nodeType===8?Ew(e.parentNode,n):e.nodeType===1&&Ew(e,n),mp(e)):Ew(Or,n.stateNode));break;case 4:r=Or,i=Jo,Or=n.stateNode.containerInfo,Jo=!0,sl(e,t,n),Or=r,Jo=i;break;case 0:case 11:case 14:case 15:if(!Hr&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&iS(n,t,s),i=i.next}while(i!==r)}sl(e,t,n);break;case 1:if(!Hr&&(lf(n,t),r=n.stateNode,typeof r.componentWillUnmount==\"function\"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){Sn(n,t,l)}sl(e,t,n);break;case 21:sl(e,t,n);break;case 22:n.mode&1?(Hr=(r=Hr)||n.memoizedState!==null,sl(e,t,n),Hr=r):sl(e,t,n);break;default:sl(e,t,n)}}function v2(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new iq),t.forEach(function(r){var i=hq.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ko(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,l=s;e:for(;l!==null;){switch(l.tag){case 5:Or=l.stateNode,Jo=!1;break e;case 3:Or=l.stateNode.containerInfo,Jo=!0;break e;case 4:Or=l.stateNode.containerInfo,Jo=!0;break e}l=l.return}if(Or===null)throw Error(De(160));h2(o,s,i),Or=null,Jo=!1;var c=i.alternate;c!==null&&(c.return=null),i.return=null}catch(f){Sn(i,t,f)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)m2(t,e),t=t.sibling}function m2(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ko(t,e),Na(e),r&4){try{$p(3,e,e.return),mg(3,e)}catch(x){Sn(e,e.return,x)}try{$p(5,e,e.return)}catch(x){Sn(e,e.return,x)}}break;case 1:Ko(t,e),Na(e),r&512&&n!==null&&lf(n,n.return);break;case 5:if(Ko(t,e),Na(e),r&512&&n!==null&&lf(n,n.return),e.flags&32){var i=e.stateNode;try{op(i,\"\")}catch(x){Sn(e,e.return,x)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,l=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{l===\"input\"&&o.type===\"radio\"&&o.name!=null&&qA(i,o),$E(l,s);var f=$E(l,o);for(s=0;s<c.length;s+=2){var h=c[s],g=c[s+1];h===\"style\"?KA(i,g):h===\"dangerouslySetInnerHTML\"?YA(i,g):h===\"children\"?op(i,g):wE(i,h,g,f)}switch(l){case\"input\":LE(i,o);break;case\"textarea\":GA(i,o);break;case\"select\":var m=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var y=o.value;y!=null?Bc(i,!!o.multiple,y,!1):m!==!!o.multiple&&(o.defaultValue!=null?Bc(i,!!o.multiple,o.defaultValue,!0):Bc(i,!!o.multiple,o.multiple?[]:\"\",!1))}i[kp]=o}catch(x){Sn(e,e.return,x)}}break;case 6:if(Ko(t,e),Na(e),r&4){if(e.stateNode===null)throw Error(De(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(x){Sn(e,e.return,x)}}break;case 3:if(Ko(t,e),Na(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{mp(t.containerInfo)}catch(x){Sn(e,e.return,x)}break;case 4:Ko(t,e),Na(e);break;case 13:Ko(t,e),Na(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(cS=Dn())),r&4&&v2(e);break;case 22:if(h=n!==null&&n.memoizedState!==null,e.mode&1?(Hr=(f=Hr)||h,Ko(t,e),Hr=f):Ko(t,e),Na(e),r&8192){if(f=e.memoizedState!==null,(e.stateNode.isHidden=f)&&!h&&e.mode&1)for(Ve=e,h=e.child;h!==null;){for(g=Ve=h;Ve!==null;){switch(m=Ve,y=m.child,m.tag){case 0:case 11:case 14:case 15:$p(4,m,m.return);break;case 1:lf(m,m.return);var S=m.stateNode;if(typeof S.componentWillUnmount==\"function\"){r=m,n=m.return;try{t=r,S.props=t.memoizedProps,S.state=t.memoizedState,S.componentWillUnmount()}catch(x){Sn(r,n,x)}}break;case 5:lf(m,m.return);break;case 22:if(m.memoizedState!==null){b2(g);continue}}y!==null?(y.return=m,Ve=y):b2(g)}h=h.sibling}e:for(h=null,g=e;;){if(g.tag===5){if(h===null){h=g;try{i=g.stateNode,f?(o=i.style,typeof o.setProperty==\"function\"?o.setProperty(\"display\",\"none\",\"important\"):o.display=\"none\"):(l=g.stateNode,c=g.memoizedProps.style,s=c!=null&&c.hasOwnProperty(\"display\")?c.display:null,l.style.display=JA(\"display\",s))}catch(x){Sn(e,e.return,x)}}}else if(g.tag===6){if(h===null)try{g.stateNode.nodeValue=f?\"\":g.memoizedProps}catch(x){Sn(e,e.return,x)}}else if((g.tag!==22&&g.tag!==23||g.memoizedState===null||g===e)&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===e)break e;for(;g.sibling===null;){if(g.return===null||g.return===e)break e;h===g&&(h=null),g=g.return}h===g&&(h=null),g.sibling.return=g.return,g=g.sibling}}break;case 19:Ko(t,e),Na(e),r&4&&v2(e);break;case 21:break;default:Ko(t,e),Na(e)}}function Na(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(d2(n)){var r=n;break e}n=n.return}throw Error(De(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(op(i,\"\"),r.flags&=-33);var o=p2(e);sS(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,l=p2(e);aS(e,l,s);break;default:throw Error(De(161))}}catch(c){Sn(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function aq(e,t,n){Ve=e,g2(e)}function g2(e,t,n){for(var r=(e.mode&1)!==0;Ve!==null;){var i=Ve,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||vg;if(!s){var l=i.alternate,c=l!==null&&l.memoizedState!==null||Hr;l=vg;var f=Hr;if(vg=s,(Hr=c)&&!f)for(Ve=i;Ve!==null;)s=Ve,c=s.child,s.tag===22&&s.memoizedState!==null?E2(i):c!==null?(c.return=s,Ve=c):E2(i);for(;o!==null;)Ve=o,g2(o),o=o.sibling;Ve=i,vg=l,Hr=f}y2(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,Ve=o):y2(e)}}function y2(e){for(;Ve!==null;){var t=Ve;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Hr||mg(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Hr)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Yo(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&vI(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}vI(t,s,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var c=t.memoizedProps;switch(t.type){case\"button\":case\"input\":case\"select\":case\"textarea\":c.autoFocus&&n.focus();break;case\"img\":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var f=t.alternate;if(f!==null){var h=f.memoizedState;if(h!==null){var g=h.dehydrated;g!==null&&mp(g)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(De(163))}Hr||t.flags&512&&oS(t)}catch(m){Sn(t,t.return,m)}}if(t===e){Ve=null;break}if(n=t.sibling,n!==null){n.return=t.return,Ve=n;break}Ve=t.return}}function b2(e){for(;Ve!==null;){var t=Ve;if(t===e){Ve=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Ve=n;break}Ve=t.return}}function E2(e){for(;Ve!==null;){var t=Ve;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{mg(4,t)}catch(c){Sn(t,n,c)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount==\"function\"){var i=t.return;try{r.componentDidMount()}catch(c){Sn(t,i,c)}}var o=t.return;try{oS(t)}catch(c){Sn(t,o,c)}break;case 5:var s=t.return;try{oS(t)}catch(c){Sn(t,s,c)}}}catch(c){Sn(t,t.return,c)}if(t===e){Ve=null;break}var l=t.sibling;if(l!==null){l.return=t.return,Ve=l;break}Ve=t.return}}var sq=Math.ceil,gg=Za.ReactCurrentDispatcher,lS=Za.ReactCurrentOwner,go=Za.ReactCurrentBatchConfig,kt=0,mr=null,Un=null,Ir=0,Qi=0,uf=nl(0),Zn=0,Vp=null,Cu=0,yg=0,uS=0,Bp=null,Di=null,cS=0,cf=1/0,ss=null,bg=!1,fS=null,ll=null,Eg=!1,ul=null,wg=0,jp=0,dS=null,Sg=-1,Tg=0;function li(){return kt&6?Dn():Sg!==-1?Sg:Sg=Dn()}function cl(e){return e.mode&1?kt&2&&Ir!==0?Ir&-Ir:HU.transition!==null?(Tg===0&&(Tg=dO()),Tg):(e=jt,e!==0||(e=window.event,e=e===void 0?16:wO(e.type)),e):1}function Xo(e,t,n,r){if(50<jp)throw jp=0,dS=null,Error(De(185));fp(e,n,r),(!(kt&2)||e!==mr)&&(e===mr&&(!(kt&2)&&(yg|=n),Zn===4&&fl(e,Ir)),Ai(e,r),n===1&&kt===0&&!(t.mode&1)&&(cf=Dn()+500,Km&&il()))}function Ai(e,t){var n=e.callbackNode;Hj(e,t);var r=Im(e,e===mr?Ir:0);if(r===0)n!==null&&uO(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&uO(n),t===1)e.tag===0?qU(S2.bind(null,e)):aI(S2.bind(null,e)),VU(function(){!(kt&6)&&il()}),n=null;else{switch(pO(r)){case 1:n=zE;break;case 4:n=cO;break;case 16:n=Nm;break;case 536870912:n=fO;break;default:n=Nm}n=A2(n,w2.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function w2(e,t){if(Sg=-1,Tg=0,kt&6)throw Error(De(327));var n=e.callbackNode;if(ff()&&e.callbackNode!==n)return null;var r=Im(e,e===mr?Ir:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=_g(e,r);else{t=r;var i=kt;kt|=2;var o=_2();(mr!==e||Ir!==t)&&(ss=null,cf=Dn()+500,ku(e,t));do try{cq();break}catch(l){T2(e,l)}while(1);Aw(),gg.current=o,kt=i,Un!==null?t=0:(mr=null,Ir=0,t=Zn)}if(t!==0){if(t===2&&(i=GE(e),i!==0&&(r=i,t=pS(e,i))),t===1)throw n=Vp,ku(e,0),fl(e,r),Ai(e,Dn()),n;if(t===6)fl(e,r);else{if(i=e.current.alternate,!(r&30)&&!lq(i)&&(t=_g(e,r),t===2&&(o=GE(e),o!==0&&(r=o,t=pS(e,o))),t===1))throw n=Vp,ku(e,0),fl(e,r),Ai(e,Dn()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(De(345));case 2:Nu(e,Di,ss);break;case 3:if(fl(e,r),(r&130023424)===r&&(t=cS+500-Dn(),10<t)){if(Im(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){li(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=bw(Nu.bind(null,e,Di,ss),t);break}Nu(e,Di,ss);break;case 4:if(fl(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-Go(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=Dn()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*sq(r/1960))-r,10<r){e.timeoutHandle=bw(Nu.bind(null,e,Di,ss),r);break}Nu(e,Di,ss);break;case 5:Nu(e,Di,ss);break;default:throw Error(De(329))}}}return Ai(e,Dn()),e.callbackNode===n?w2.bind(null,e):null}function pS(e,t){var n=Bp;return e.current.memoizedState.isDehydrated&&(ku(e,t).flags|=256),e=_g(e,t),e!==2&&(t=Di,Di=n,t!==null&&hS(t)),e}function hS(e){Di===null?Di=e:Di.push.apply(Di,e)}function lq(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Wo(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function fl(e,t){for(t&=~uS,t&=~yg,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Go(t),r=1<<n;e[n]=-1,t&=~r}}function S2(e){if(kt&6)throw Error(De(327));ff();var t=Im(e,0);if(!(t&1))return Ai(e,Dn()),null;var n=_g(e,t);if(e.tag!==0&&n===2){var r=GE(e);r!==0&&(t=r,n=pS(e,r))}if(n===1)throw n=Vp,ku(e,0),fl(e,t),Ai(e,Dn()),n;if(n===6)throw Error(De(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Nu(e,Di,ss),Ai(e,Dn()),null}function vS(e,t){var n=kt;kt|=1;try{return e(t)}finally{kt=n,kt===0&&(cf=Dn()+500,Km&&il())}}function xu(e){ul!==null&&ul.tag===0&&!(kt&6)&&ff();var t=kt;kt|=1;var n=go.transition,r=jt;try{if(go.transition=null,jt=1,e)return e()}finally{jt=r,go.transition=n,kt=t,!(kt&6)&&il()}}function mS(){Qi=uf.current,nn(uf)}function ku(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,$U(n)),Un!==null)for(n=Un.return;n!==null;){var r=n;switch(Cw(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ym();break;case 3:af(),nn(xi),nn(jr),Bw();break;case 5:$w(r);break;case 4:af();break;case 13:nn(gn);break;case 19:nn(gn);break;case 10:Ow(r.type._context);break;case 22:case 23:mS()}n=n.return}if(mr=e,Un=e=dl(e.current,null),Ir=Qi=t,Zn=0,Vp=null,uS=yg=Cu=0,Di=Bp=null,Su!==null){for(t=0;t<Su.length;t++)if(n=Su[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}Su=null}return e}function T2(e,t){do{var n=Un;try{if(Aw(),lg.current=dg,ug){for(var r=yn.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}ug=!1}if(_u=0,vr=Xn=yn=null,Lp=!1,Fp=0,lS.current=null,n===null||n.return===null){Zn=1,Vp=t,Un=null;break}e:{var o=e,s=n.return,l=n,c=t;if(t=Ir,l.flags|=32768,c!==null&&typeof c==\"object\"&&typeof c.then==\"function\"){var f=c,h=l,g=h.tag;if(!(h.mode&1)&&(g===0||g===11||g===15)){var m=h.alternate;m?(h.updateQueue=m.updateQueue,h.memoizedState=m.memoizedState,h.lanes=m.lanes):(h.updateQueue=null,h.memoizedState=null)}var y=QI(s);if(y!==null){y.flags&=-257,YI(y,s,l,o,t),y.mode&1&&WI(o,f,t),t=y,c=f;var S=t.updateQueue;if(S===null){var x=new Set;x.add(c),t.updateQueue=x}else S.add(c);break e}else{if(!(t&1)){WI(o,f,t),gS();break e}c=Error(De(426))}}else if(dn&&l.mode&1){var D=QI(s);if(D!==null){!(D.flags&65536)&&(D.flags|=256),YI(D,s,l,o,t),Nw(sf(c,l));break e}}o=c=sf(c,l),Zn!==4&&(Zn=2),Bp===null?Bp=[o]:Bp.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var _=zI(o,c,t);hI(o,_);break e;case 1:l=c;var b=o.type,C=o.stateNode;if(!(o.flags&128)&&(typeof b.getDerivedStateFromError==\"function\"||C!==null&&typeof C.componentDidCatch==\"function\"&&(ll===null||!ll.has(C)))){o.flags|=65536,t&=-t,o.lanes|=t;var T=GI(o,l,t);hI(o,T);break e}}o=o.return}while(o!==null)}x2(n)}catch(N){t=N,Un===n&&n!==null&&(Un=n=n.return);continue}break}while(1)}function _2(){var e=gg.current;return gg.current=dg,e===null?dg:e}function gS(){(Zn===0||Zn===3||Zn===2)&&(Zn=4),mr===null||!(Cu&268435455)&&!(yg&268435455)||fl(mr,Ir)}function _g(e,t){var n=kt;kt|=2;var r=_2();(mr!==e||Ir!==t)&&(ss=null,ku(e,t));do try{uq();break}catch(i){T2(e,i)}while(1);if(Aw(),kt=n,gg.current=r,Un!==null)throw Error(De(261));return mr=null,Ir=0,Zn}function uq(){for(;Un!==null;)C2(Un)}function cq(){for(;Un!==null&&!Rj();)C2(Un)}function C2(e){var t=D2(e.alternate,e,Qi);e.memoizedProps=e.pendingProps,t===null?x2(e):Un=t,lS.current=null}function x2(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=rq(n,t),n!==null){n.flags&=32767,Un=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Zn=6,Un=null;return}}else if(n=nq(n,t,Qi),n!==null){Un=n;return}if(t=t.sibling,t!==null){Un=t;return}Un=t=e}while(t!==null);Zn===0&&(Zn=5)}function Nu(e,t,n){var r=jt,i=go.transition;try{go.transition=null,jt=1,fq(e,t,n,r)}finally{go.transition=i,jt=r}return null}function fq(e,t,n,r){do ff();while(ul!==null);if(kt&6)throw Error(De(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(De(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(zj(e,o),e===mr&&(Un=mr=null,Ir=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Eg||(Eg=!0,A2(Nm,function(){return ff(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=go.transition,go.transition=null;var s=jt;jt=1;var l=kt;kt|=4,lS.current=null,oq(e,n),m2(n,e),OU(gw),Rm=!!mw,gw=mw=null,e.current=n,aq(n),Pj(),kt=l,jt=s,go.transition=o}else e.current=n;if(Eg&&(Eg=!1,ul=e,wg=i),o=e.pendingLanes,o===0&&(ll=null),Vj(n.stateNode),Ai(e,Dn()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(bg)throw bg=!1,e=fS,fS=null,e;return wg&1&&e.tag!==0&&ff(),o=e.pendingLanes,o&1?e===dS?jp++:(jp=0,dS=e):jp=0,il(),null}function ff(){if(ul!==null){var e=pO(wg),t=go.transition,n=jt;try{if(go.transition=null,jt=16>e?16:e,ul===null)var r=!1;else{if(e=ul,ul=null,wg=0,kt&6)throw Error(De(331));var i=kt;for(kt|=4,Ve=e.current;Ve!==null;){var o=Ve,s=o.child;if(Ve.flags&16){var l=o.deletions;if(l!==null){for(var c=0;c<l.length;c++){var f=l[c];for(Ve=f;Ve!==null;){var h=Ve;switch(h.tag){case 0:case 11:case 15:$p(8,h,o)}var g=h.child;if(g!==null)g.return=h,Ve=g;else for(;Ve!==null;){h=Ve;var m=h.sibling,y=h.return;if(f2(h),h===f){Ve=null;break}if(m!==null){m.return=y,Ve=m;break}Ve=y}}}var S=o.alternate;if(S!==null){var x=S.child;if(x!==null){S.child=null;do{var D=x.sibling;x.sibling=null,x=D}while(x!==null)}}Ve=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,Ve=s;else e:for(;Ve!==null;){if(o=Ve,o.flags&2048)switch(o.tag){case 0:case 11:case 15:$p(9,o,o.return)}var _=o.sibling;if(_!==null){_.return=o.return,Ve=_;break e}Ve=o.return}}var b=e.current;for(Ve=b;Ve!==null;){s=Ve;var C=s.child;if(s.subtreeFlags&2064&&C!==null)C.return=s,Ve=C;else e:for(s=b;Ve!==null;){if(l=Ve,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:mg(9,l)}}catch(N){Sn(l,l.return,N)}if(l===s){Ve=null;break e}var T=l.sibling;if(T!==null){T.return=l.return,Ve=T;break e}Ve=l.return}}if(kt=i,il(),_a&&typeof _a.onPostCommitFiberRoot==\"function\")try{_a.onPostCommitFiberRoot(Dm,e)}catch{}r=!0}return r}finally{jt=n,go.transition=t}}return!1}function k2(e,t,n){t=sf(n,t),t=zI(e,t,1),e=al(e,t,1),t=li(),e!==null&&(fp(e,1,t),Ai(e,t))}function Sn(e,t,n){if(e.tag===3)k2(e,e,n);else for(;t!==null;){if(t.tag===3){k2(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==\"function\"||typeof r.componentDidCatch==\"function\"&&(ll===null||!ll.has(r))){e=sf(n,e),e=GI(t,e,1),t=al(t,e,1),e=li(),t!==null&&(fp(t,1,e),Ai(t,e));break}}t=t.return}}function dq(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=li(),e.pingedLanes|=e.suspendedLanes&n,mr===e&&(Ir&n)===n&&(Zn===4||Zn===3&&(Ir&130023424)===Ir&&500>Dn()-cS?ku(e,0):uS|=n),Ai(e,t)}function N2(e,t){t===0&&(e.mode&1?(t=Om,Om<<=1,!(Om&130023424)&&(Om=4194304)):t=1);var n=li();e=is(e,t),e!==null&&(fp(e,t,n),Ai(e,n))}function pq(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),N2(e,n)}function hq(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(De(314))}r!==null&&r.delete(t),N2(e,n)}var D2;D2=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||xi.current)Ni=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ni=!1,tq(e,t,n);Ni=!!(e.flags&131072)}else Ni=!1,dn&&t.flags&1048576&&sI(t,Zm,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;hg(e,t),e=t.pendingProps;var i=Xc(t,jr.current);rf(t,n),i=qw(null,t,r,e,i,n);var o=Hw();return t.flags|=1,typeof i==\"object\"&&i!==null&&typeof i.render==\"function\"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ki(r)?(o=!0,Jm(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Fw(t),i.updater=og,t.stateNode=i,i._reactInternals=t,Pw(t,r,e,n),t=Xw(null,t,r,!0,o,n)):(t.tag=0,dn&&o&&_w(t),si(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(hg(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=mq(r),e=Yo(r,e),i){case 0:t=Kw(null,t,r,e,n);break e;case 1:t=t2(null,t,r,e,n);break e;case 11:t=JI(null,t,r,e,n);break e;case 14:t=KI(null,t,r,Yo(r.type,e),n);break e}throw Error(De(306,r,\"\"))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Yo(r,i),Kw(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Yo(r,i),t2(e,t,r,i,n);case 3:e:{if(n2(t),e===null)throw Error(De(387));r=t.pendingProps,o=t.memoizedState,i=o.element,pI(e,t),ig(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=sf(Error(De(423)),t),t=r2(e,t,r,n,i);break e}else if(r!==i){i=sf(Error(De(424)),t),t=r2(e,t,r,n,i);break e}else for(Wi=tl(t.stateNode.containerInfo.firstChild),Gi=t,dn=!0,Qo=null,n=SI(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(tf(),r===i){t=as(e,t,n);break e}si(e,t,r,n)}t=t.child}return t;case 5:return TI(t),e===null&&kw(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,yw(r,i)?s=null:o!==null&&yw(r,o)&&(t.flags|=32),e2(e,t),si(e,t,s,n),t.child;case 6:return e===null&&kw(t),null;case 13:return i2(e,t,n);case 4:return Mw(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=of(t,null,r,n):si(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Yo(r,i),JI(e,t,r,i,n);case 7:return si(e,t,t.pendingProps,n),t.child;case 8:return si(e,t,t.pendingProps.children,n),t.child;case 12:return si(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Yt(tg,r._currentValue),r._currentValue=s,o!==null)if(Wo(o.value,s)){if(o.children===i.children&&!xi.current){t=as(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(o.tag===1){c=os(-1,n&-n),c.tag=2;var f=o.updateQueue;if(f!==null){f=f.shared;var h=f.pending;h===null?c.next=c:(c.next=h.next,h.next=c),f.pending=c}}o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Iw(o.return,n,t),l.lanes|=n;break}c=c.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(De(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Iw(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}si(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,rf(t,n),i=vo(i),r=r(i),t.flags|=1,si(e,t,r,n),t.child;case 14:return r=t.type,i=Yo(r,t.pendingProps),i=Yo(r.type,i),KI(e,t,r,i,n);case 15:return XI(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Yo(r,i),hg(e,t),t.tag=1,ki(r)?(e=!0,Jm(t)):e=!1,rf(t,n),yI(t,r,i),Pw(t,r,i,n),Xw(null,t,r,!0,e,n);case 19:return a2(e,t,n);case 22:return ZI(e,t,n)}throw Error(De(156,t.tag))};function A2(e,t){return lO(e,t)}function vq(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yo(e,t,n,r){return new vq(e,t,n,r)}function yS(e){return e=e.prototype,!(!e||!e.isReactComponent)}function mq(e){if(typeof e==\"function\")return yS(e)?1:0;if(e!=null){if(e=e.$$typeof,e===_E)return 11;if(e===kE)return 14}return 2}function dl(e,t){var n=e.alternate;return n===null?(n=yo(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Cg(e,t,n,r,i,o){var s=2;if(r=e,typeof e==\"function\")yS(e)&&(s=1);else if(typeof e==\"string\")s=5;else e:switch(e){case Vc:return Du(n.children,i,o,t);case SE:s=8,i|=8;break;case TE:return e=yo(12,n,t,i|2),e.elementType=TE,e.lanes=o,e;case CE:return e=yo(13,n,t,i),e.elementType=CE,e.lanes=o,e;case xE:return e=yo(19,n,t,i),e.elementType=xE,e.lanes=o,e;case $A:return xg(n,i,o,t);default:if(typeof e==\"object\"&&e!==null)switch(e.$$typeof){case PA:s=10;break e;case MA:s=9;break e;case _E:s=11;break e;case kE:s=14;break e;case Ws:s=16,r=null;break e}throw Error(De(130,e==null?e:typeof e,\"\"))}return t=yo(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Du(e,t,n,r){return e=yo(7,e,r,t),e.lanes=n,e}function xg(e,t,n,r){return e=yo(22,e,r,t),e.elementType=$A,e.lanes=n,e.stateNode={isHidden:!1},e}function bS(e,t,n){return e=yo(6,e,null,t),e.lanes=n,e}function ES(e,t,n){return t=yo(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function gq(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=WE(0),this.expirationTimes=WE(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=WE(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function wS(e,t,n,r,i,o,s,l,c){return e=new gq(e,t,n,l,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=yo(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Fw(o),e}function yq(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:$c,key:r==null?null:\"\"+r,children:e,containerInfo:t,implementation:n}}function O2(e){if(!e)return rl;e=e._reactInternals;e:{if(gu(e)!==e||e.tag!==1)throw Error(De(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ki(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(De(171))}if(e.tag===1){var n=e.type;if(ki(n))return iI(e,n,t)}return t}function I2(e,t,n,r,i,o,s,l,c){return e=wS(n,r,!0,e,i,o,s,l,c),e.context=O2(null),n=e.current,r=li(),i=cl(n),o=os(r,i),o.callback=t??null,al(n,o,i),e.current.lanes=i,fp(e,i,r),Ai(e,r),e}function kg(e,t,n,r){var i=t.current,o=li(),s=cl(i);return n=O2(n),t.context===null?t.context=n:t.pendingContext=n,t=os(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=al(i,t,s),e!==null&&(Xo(e,i,s,o),rg(e,i,s)),s}function Ng(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function L2(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function SS(e,t){L2(e,t),(e=e.alternate)&&L2(e,t)}function bq(){return null}var F2=typeof reportError==\"function\"?reportError:function(e){console.error(e)};function TS(e){this._internalRoot=e}Dg.prototype.render=TS.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(De(409));kg(e,t,null,null)},Dg.prototype.unmount=TS.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;xu(function(){kg(null,e,null,null)}),t[es]=null}};function Dg(e){this._internalRoot=e}Dg.prototype.unstable_scheduleHydration=function(e){if(e){var t=mO();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Xs.length&&t!==0&&t<Xs[n].priority;n++);Xs.splice(n,0,e),n===0&&bO(e)}};function _S(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ag(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==\" react-mount-point-unstable \"))}function R2(){}function Eq(e,t,n,r,i){if(i){if(typeof r==\"function\"){var o=r;r=function(){var f=Ng(s);o.call(f)}}var s=I2(t,r,e,0,null,!1,!1,\"\",R2);return e._reactRootContainer=s,e[es]=s.current,Cp(e.nodeType===8?e.parentNode:e),xu(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r==\"function\"){var l=r;r=function(){var f=Ng(c);l.call(f)}}var c=wS(e,0,!1,null,null,!1,!1,\"\",R2);return e._reactRootContainer=c,e[es]=c.current,Cp(e.nodeType===8?e.parentNode:e),xu(function(){kg(t,c,n,r)}),c}function Og(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i==\"function\"){var l=i;i=function(){var c=Ng(s);l.call(c)}}kg(t,s,e,i)}else s=Eq(n,t,e,i,r);return Ng(s)}hO=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=cp(t.pendingLanes);n!==0&&(QE(t,n|1),Ai(t,Dn()),!(kt&6)&&(cf=Dn()+500,il()))}break;case 13:xu(function(){var r=is(e,1);if(r!==null){var i=li();Xo(r,e,1,i)}}),SS(e,1)}},YE=function(e){if(e.tag===13){var t=is(e,134217728);if(t!==null){var n=li();Xo(t,e,134217728,n)}SS(e,134217728)}},vO=function(e){if(e.tag===13){var t=cl(e),n=is(e,t);if(n!==null){var r=li();Xo(n,e,t,r)}SS(e,t)}},mO=function(){return jt},gO=function(e,t){var n=jt;try{return jt=e,t()}finally{jt=n}},jE=function(e,t,n){switch(t){case\"input\":if(LE(e,n),t=n.name,n.type===\"radio\"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(\"input[name=\"+JSON.stringify(\"\"+t)+'][type=\"radio\"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Qm(r);if(!i)throw Error(De(90));jA(r),LE(r,i)}}}break;case\"textarea\":GA(e,n);break;case\"select\":t=n.value,t!=null&&Bc(e,!!n.multiple,t,!1)}},tO=vS,nO=xu;var wq={usingClientEntryPoint:!1,Events:[Np,Jc,Qm,ZA,eO,vS]},Up={findFiberByHostInstance:yu,bundleType:0,version:\"18.2.0\",rendererPackageName:\"react-dom\"},Sq={bundleType:Up.bundleType,version:Up.version,rendererPackageName:Up.rendererPackageName,rendererConfig:Up.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Za.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=aO(e),e===null?null:e.stateNode},findFiberByHostInstance:Up.findFiberByHostInstance||bq,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:\"18.2.0-next-9e3b772b8-20220608\"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<\"u\"){var Ig=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ig.isDisabled&&Ig.supportsFiber)try{Dm=Ig.inject(Sq),_a=Ig}catch{}}qi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=wq,qi.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!_S(t))throw Error(De(200));return yq(e,t,null,n)},qi.createRoot=function(e,t){if(!_S(e))throw Error(De(299));var n=!1,r=\"\",i=F2;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=wS(e,1,!1,null,null,n,!1,r,i),e[es]=t.current,Cp(e.nodeType===8?e.parentNode:e),new TS(t)},qi.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render==\"function\"?Error(De(188)):(e=Object.keys(e).join(\",\"),Error(De(268,e)));return e=aO(t),e=e===null?null:e.stateNode,e},qi.flushSync=function(e){return xu(e)},qi.hydrate=function(e,t,n){if(!Ag(t))throw Error(De(200));return Og(null,e,t,!0,n)},qi.hydrateRoot=function(e,t,n){if(!_S(e))throw Error(De(405));var r=n!=null&&n.hydratedSources||null,i=!1,o=\"\",s=F2;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=I2(t,null,e,1,n??null,i,!1,o,s),e[es]=t.current,Cp(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Dg(t)},qi.render=function(e,t,n){if(!Ag(t))throw Error(De(200));return Og(null,e,t,!1,n)},qi.unmountComponentAtNode=function(e){if(!Ag(e))throw Error(De(40));return e._reactRootContainer?(xu(function(){Og(null,null,e,!1,function(){e._reactRootContainer=null,e[es]=null})}),!0):!1},qi.unstable_batchedUpdates=vS,qi.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ag(n))throw Error(De(200));if(e==null||e._reactInternals===void 0)throw Error(De(38));return Og(e,t,n,!1,r)},qi.version=\"18.2.0-next-9e3b772b8-20220608\",function(e){function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>\"u\"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=\"function\"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=qi}(bj);const CS=bA(wm);var xS={};const Tq=(...e)=>xS.stringify(...e);(function(){var e=/[\\\\\\\"\\x00-\\x1f\\x7f-\\x9f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]/g,t,n,r={\"\\b\":\"\\\\b\",\"\t\":\"\\\\t\",\"\\n\":\"\\\\n\",\"\\f\":\"\\\\f\",\"\\r\":\"\\\\r\",'\"':'\\\\\"',\"\\\\\":\"\\\\\\\\\"},i;function o(l){return e.lastIndex=0,e.test(l)?'\"'+l.replace(e,function(c){var f=r[c];return typeof f==\"string\"?f:\"\\\\u\"+(\"0000\"+c.charCodeAt(0).toString(16)).slice(-4)})+'\"':'\"'+l+'\"'}function s(l,c){var f,h,g,m,y=t,S,x=c[l];switch(x&&typeof x==\"object\"&&typeof x.toJSON==\"function\"&&(x=x.toJSON(l)),typeof i==\"function\"&&(x=i.call(c,l,x)),typeof x){case\"string\":return o(x);case\"number\":return isFinite(x)?String(x):\"null\";case\"bigint\":case\"boolean\":case\"null\":return String(x);case\"object\":if(!x)return\"null\";if(t+=n,S=[],Object.prototype.toString.apply(x)===\"[object Array]\"){for(m=x.length,f=0;f<m;f+=1)S[f]=s(f,x)||\"null\";return g=S.length===0?\"[]\":t?`[\n`+t+S.join(`,\n`+t)+`\n`+y+\"]\":\"[\"+S.join(\",\")+\"]\",t=y,g}if(i&&typeof i==\"object\")for(m=i.length,f=0;f<m;f+=1)typeof i[f]==\"string\"&&(h=i[f],g=s(h,x),g&&S.push(o(h)+(t?\": \":\":\")+g));else Object.keys(x).forEach(function(D){var _=s(D,x);_&&S.push(o(D)+(t?\": \":\":\")+_)});return g=S.length===0?\"{}\":t?`{\n`+t+S.join(`,\n`+t)+`\n`+y+\"}\":\"{\"+S.join(\",\")+\"}\",t=y,g}}typeof xS.stringify!=\"function\"&&(xS.stringify=function(l,c,f){var h;if(t=\"\",n=\"\",typeof f==\"number\")for(h=0;h<f;h+=1)n+=\" \";else typeof f==\"string\"&&(n=f);if(i=c,c&&typeof c!=\"function\"&&(typeof c!=\"object\"||typeof c.length!=\"number\"))throw new Error(\"JSON.stringify\");return s(\"\",{\"\":l})})})();function _q(e){var t={strict:!1,storeAsString:!1};e!=null&&(e.strict===!0&&(t.strict=!0),e.storeAsString===!0&&(t.storeAsString=!0));var n,r,i={'\"':'\"',\"\\\\\":\"\\\\\",\"/\":\"/\",b:\"\\b\",f:\"\\f\",n:`\n`,r:\"\\r\",t:\"\t\"},o,s=function(x){throw{name:\"SyntaxError\",message:x,at:n,text:o}},l=function(x){return x&&x!==r&&s(\"Expected '\"+x+\"' instead of '\"+r+\"'\"),r=o.charAt(n),n+=1,r},c=function(){var x=\"\";for(r===\"-\"&&(x=\"-\",l(\"-\"));r>=\"0\"&&r<=\"9\";)x+=r,l();if(r===\".\")for(x+=\".\";l()&&r>=\"0\"&&r<=\"9\";)x+=r;if(r===\"e\"||r===\"E\")for(x+=r,l(),(r===\"-\"||r===\"+\")&&(x+=r,l());r>=\"0\"&&r<=\"9\";)x+=r,l();if(!isFinite(Number(x)))s(\"Bad number\");else{const D=Number(x);return Number.isInteger(D)&&!Number.isSafeInteger(D)?t.storeAsString===!0?x:BigInt(x):D}},f=function(){var x,D,_=\"\",b;if(r==='\"')for(;l();){if(r==='\"')return l(),_;if(r===\"\\\\\")if(l(),r===\"u\"){for(b=0,D=0;D<4&&(x=parseInt(l(),16),!!isFinite(x));D+=1)b=b*16+x;_+=String.fromCharCode(b)}else if(typeof i[r]==\"string\")_+=i[r];else break;else _+=r}s(\"Bad string\")},h=function(){for(;r&&r<=\" \";)l()},g=function(){switch(r){case\"t\":return l(\"t\"),l(\"r\"),l(\"u\"),l(\"e\"),!0;case\"f\":return l(\"f\"),l(\"a\"),l(\"l\"),l(\"s\"),l(\"e\"),!1;case\"n\":return l(\"n\"),l(\"u\"),l(\"l\"),l(\"l\"),null}s(\"Unexpected '\"+r+\"'\")},m,y=function(){var x=[];if(r===\"[\"){if(l(\"[\"),h(),r===\"]\")return l(\"]\"),x;for(;r;){if(x.push(m()),h(),r===\"]\")return l(\"]\"),x;l(\",\"),h()}}s(\"Bad array\")},S=function(){var x,D={};if(r===\"{\"){if(l(\"{\"),h(),r===\"}\")return l(\"}\"),D;for(;r;){if(x=f(),h(),l(\":\"),t.strict===!0&&Object.hasOwnProperty.call(D,x)&&s('Duplicate key \"'+x+'\"'),D[x]=m(),h(),r===\"}\")return l(\"}\"),D;l(\",\"),h()}}s(\"Bad object\")};return m=function(){switch(h(),r){case\"{\":return S();case\"[\":return y();case'\"':return f();case\"-\":return c();default:return r>=\"0\"&&r<=\"9\"?c():g()}},function(x,D){var _;return o=x+\"\",n=0,r=\" \",_=m(),h(),r&&s(\"Syntax error\"),typeof D==\"function\"?function b(C,T){var N,F=C[T];return F&&typeof F==\"object\"&&Object.keys(F).forEach(function(L){N=b(F,L),N!==void 0?F[L]=N:delete F[L]}),D.call(C,T,F)}({\"\":_},\"\"):_}}let Au;typeof globalThis<\"u\"?Au=globalThis:typeof self<\"u\"?Au=self:typeof window<\"u\"?Au=window:typeof Gs<\"u\"&&(Au=Gs),Au.BigInt.prototype.toJSON=function(){return this},Au.JSON.parse=_q(),Au.JSON.stringify=Tq;const Cq=\"16.6.0\",kS=Object.freeze({major:16,minor:6,patch:0,preReleaseTag:null});function pt(e,t){if(!Boolean(e))throw new Error(t)}function Yi(e){return typeof(e==null?void 0:e.then)==\"function\"}function Ji(e){return typeof e==\"object\"&&e!==null}function An(e,t){if(!Boolean(e))throw new Error(t??\"Unexpected invariant triggered.\")}const xq=/\\r\\n|[\\n\\r]/g;function Lg(e,t){let n=0,r=1;for(const i of e.body.matchAll(xq)){if(typeof i.index==\"number\"||An(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function P2(e){return NS(e.source,Lg(e.source,e.start))}function NS(e,t){const n=e.locationOffset.column-1,r=\"\".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,s=t.line+o,l=t.line===1?n:0,c=t.column+l,f=`${e.name}:${s}:${c}\n`,h=r.split(/\\r\\n|[\\n\\r]/g),g=h[i];if(g.length>120){const m=Math.floor(c/80),y=c%80,S=[];for(let x=0;x<g.length;x+=80)S.push(g.slice(x,x+80));return f+M2([[`${s} |`,S[0]],...S.slice(1,m+1).map(x=>[\"|\",x]),[\"|\",\"^\".padStart(y)],[\"|\",S[m+1]]])}return f+M2([[`${s-1} |`,h[i-1]],[`${s} |`,g],[\"|\",\"^\".padStart(c)],[`${s+1} |`,h[i+1]]])}function M2(e){const t=e.filter(([r,i])=>i!==void 0),n=Math.max(...t.map(([r])=>r.length));return t.map(([r,i])=>r.padStart(n)+(i?\" \"+i:\"\")).join(`\n`)}function kq(e){const t=e[0];return t==null||\"kind\"in t||\"length\"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}let he=class WB extends Error{constructor(t,...n){var r,i,o;const{nodes:s,source:l,positions:c,path:f,originalError:h,extensions:g}=kq(n);super(t),this.name=\"GraphQLError\",this.path=f??void 0,this.originalError=h??void 0,this.nodes=$2(Array.isArray(s)?s:s?[s]:void 0);const m=$2((r=this.nodes)===null||r===void 0?void 0:r.map(S=>S.loc).filter(S=>S!=null));this.source=l??(m==null||(i=m[0])===null||i===void 0?void 0:i.source),this.positions=c??(m==null?void 0:m.map(S=>S.start)),this.locations=c&&l?c.map(S=>Lg(l,S)):m==null?void 0:m.map(S=>Lg(S.source,S.start));const y=Ji(h==null?void 0:h.extensions)?h==null?void 0:h.extensions:void 0;this.extensions=(o=g??y)!==null&&o!==void 0?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}}),h!=null&&h.stack?Object.defineProperty(this,\"stack\",{value:h.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,WB):Object.defineProperty(this,\"stack\",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return\"GraphQLError\"}toString(){let t=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(t+=`\n\n`+P2(n.loc));else if(this.source&&this.locations)for(const n of this.locations)t+=`\n\n`+NS(this.source,n);return t}toJSON(){const t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}};function $2(e){return e===void 0||e.length===0?void 0:e}function Nq(e){return e.toString()}function Dq(e){return e.toJSON()}function er(e,t,n){return new he(`Syntax Error: ${n}`,{source:e,positions:[t]})}let V2=class{constructor(t,n,r){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=r}get[Symbol.toStringTag](){return\"Location\"}toJSON(){return{start:this.start,end:this.end}}},DS=class{constructor(t,n,r,i,o,s){this.kind=t,this.start=n,this.end=r,this.line=i,this.column=o,this.value=s,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}}};const B2={Name:[],Document:[\"definitions\"],OperationDefinition:[\"name\",\"variableDefinitions\",\"directives\",\"selectionSet\"],VariableDefinition:[\"variable\",\"type\",\"defaultValue\",\"directives\"],Variable:[\"name\"],SelectionSet:[\"selections\"],Field:[\"alias\",\"name\",\"arguments\",\"directives\",\"selectionSet\"],Argument:[\"name\",\"value\"],FragmentSpread:[\"name\",\"directives\"],InlineFragment:[\"typeCondition\",\"directives\",\"selectionSet\"],FragmentDefinition:[\"name\",\"variableDefinitions\",\"typeCondition\",\"directives\",\"selectionSet\"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:[\"values\"],ObjectValue:[\"fields\"],ObjectField:[\"name\",\"value\"],Directive:[\"name\",\"arguments\"],NamedType:[\"name\"],ListType:[\"type\"],NonNullType:[\"type\"],SchemaDefinition:[\"description\",\"directives\",\"operationTypes\"],OperationTypeDefinition:[\"type\"],ScalarTypeDefinition:[\"description\",\"name\",\"directives\"],ObjectTypeDefinition:[\"description\",\"name\",\"interfaces\",\"directives\",\"fields\"],FieldDefinition:[\"description\",\"name\",\"arguments\",\"type\",\"directives\"],InputValueDefinition:[\"description\",\"name\",\"type\",\"defaultValue\",\"directives\"],InterfaceTypeDefinition:[\"description\",\"name\",\"interfaces\",\"directives\",\"fields\"],UnionTypeDefinition:[\"description\",\"name\",\"directives\",\"types\"],EnumTypeDefinition:[\"description\",\"name\",\"directives\",\"values\"],EnumValueDefinition:[\"description\",\"name\",\"directives\"],InputObjectTypeDefinition:[\"description\",\"name\",\"directives\",\"fields\"],DirectiveDefinition:[\"description\",\"name\",\"arguments\",\"locations\"],SchemaExtension:[\"directives\",\"operationTypes\"],ScalarTypeExtension:[\"name\",\"directives\"],ObjectTypeExtension:[\"name\",\"interfaces\",\"directives\",\"fields\"],InterfaceTypeExtension:[\"name\",\"interfaces\",\"directives\",\"fields\"],UnionTypeExtension:[\"name\",\"directives\",\"types\"],EnumTypeExtension:[\"name\",\"directives\",\"values\"],InputObjectTypeExtension:[\"name\",\"directives\",\"fields\"]},Aq=new Set(Object.keys(B2));function AS(e){const t=e==null?void 0:e.kind;return typeof t==\"string\"&&Aq.has(t)}var tr;(function(e){e.QUERY=\"query\",e.MUTATION=\"mutation\",e.SUBSCRIPTION=\"subscription\"})(tr||(tr={}));var Pe;(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\"})(Pe||(Pe={}));var q;(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\"})(q||(q={}));function OS(e){return e===9||e===32}function qp(e){return e>=48&&e<=57}function j2(e){return e>=97&&e<=122||e>=65&&e<=90}function IS(e){return j2(e)||e===95}function U2(e){return j2(e)||qp(e)||e===95}function Oq(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let s=0;s<e.length;++s){var o;const l=e[s],c=Iq(l);c!==l.length&&(r=(o=r)!==null&&o!==void 0?o:s,i=s,s!==0&&c<n&&(n=c))}return e.map((s,l)=>l===0?s:s.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,i+1)}function Iq(e){let t=0;for(;t<e.length&&OS(e.charCodeAt(t));)++t;return t}function Lq(e){if(e===\"\")return!0;let t=!0,n=!1,r=!0,i=!1;for(let o=0;o<e.length;++o)switch(e.codePointAt(o)){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 11:case 12:case 14:case 15:return!1;case 13:return!1;case 10:if(t&&!i)return!1;i=!0,t=!0,n=!1;break;case 9:case 32:n||(n=t);break;default:r&&(r=n),t=!1}return!(t||r&&i)}function q2(e,t){const n=e.replace(/\"\"\"/g,'\\\\\"\"\"'),r=n.split(/\\r\\n|[\\n\\r]/g),i=r.length===1,o=r.length>1&&r.slice(1).every(y=>y.length===0||OS(y.charCodeAt(0))),s=n.endsWith('\\\\\"\"\"'),l=e.endsWith('\"')&&!s,c=e.endsWith(\"\\\\\"),f=l||c,h=!(t!=null&&t.minimize)&&(!i||e.length>70||f||o||s);let g=\"\";const m=i&&OS(e.charCodeAt(0));return(h&&!m||o)&&(g+=`\n`),g+=n,(h||f)&&(g+=`\n`),'\"\"\"'+g+'\"\"\"'}var ge;(function(e){e.SOF=\"<SOF>\",e.EOF=\"<EOF>\",e.BANG=\"!\",e.DOLLAR=\"$\",e.AMP=\"&\",e.PAREN_L=\"(\",e.PAREN_R=\")\",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\"})(ge||(ge={}));class LS{constructor(t){const n=new DS(ge.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return\"Lexer\"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==ge.EOF)do if(t.next)t=t.next;else{const n=Fq(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===ge.COMMENT);return t}}function H2(e){return e===ge.BANG||e===ge.DOLLAR||e===ge.AMP||e===ge.PAREN_L||e===ge.PAREN_R||e===ge.SPREAD||e===ge.COLON||e===ge.EQUALS||e===ge.AT||e===ge.BRACKET_L||e===ge.BRACKET_R||e===ge.BRACE_L||e===ge.PIPE||e===ge.BRACE_R}function df(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function Fg(e,t){return z2(e.charCodeAt(t))&&G2(e.charCodeAt(t+1))}function z2(e){return e>=55296&&e<=56319}function G2(e){return e>=56320&&e<=57343}function Ou(e,t){const n=e.source.body.codePointAt(t);if(n===void 0)return ge.EOF;if(n>=32&&n<=126){const r=String.fromCodePoint(n);return r==='\"'?`'\"'`:`\"${r}\"`}return\"U+\"+n.toString(16).toUpperCase().padStart(4,\"0\")}function qn(e,t,n,r,i){const o=e.line,s=1+n-e.lineStart;return new DS(t,n,r,o,s,i)}function Fq(e,t){const n=e.source.body,r=n.length;let i=t;for(;i<r;){const o=n.charCodeAt(i);switch(o){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:n.charCodeAt(i+1)===10?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return Rq(e,i);case 33:return qn(e,ge.BANG,i,i+1);case 36:return qn(e,ge.DOLLAR,i,i+1);case 38:return qn(e,ge.AMP,i,i+1);case 40:return qn(e,ge.PAREN_L,i,i+1);case 41:return qn(e,ge.PAREN_R,i,i+1);case 46:if(n.charCodeAt(i+1)===46&&n.charCodeAt(i+2)===46)return qn(e,ge.SPREAD,i,i+3);break;case 58:return qn(e,ge.COLON,i,i+1);case 61:return qn(e,ge.EQUALS,i,i+1);case 64:return qn(e,ge.AT,i,i+1);case 91:return qn(e,ge.BRACKET_L,i,i+1);case 93:return qn(e,ge.BRACKET_R,i,i+1);case 123:return qn(e,ge.BRACE_L,i,i+1);case 124:return qn(e,ge.PIPE,i,i+1);case 125:return qn(e,ge.BRACE_R,i,i+1);case 34:return n.charCodeAt(i+1)===34&&n.charCodeAt(i+2)===34?jq(e,i):Mq(e,i)}if(qp(o)||o===45)return Pq(e,i,o);if(IS(o))return Uq(e,i);throw er(e.source,i,o===39?`Unexpected single quote character ('), did you mean to use a double quote (\")?`:df(o)||Fg(n,i)?`Unexpected character: ${Ou(e,i)}.`:`Invalid character: ${Ou(e,i)}.`)}return qn(e,ge.EOF,r,r)}function Rq(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const o=n.charCodeAt(i);if(o===10||o===13)break;if(df(o))++i;else if(Fg(n,i))i+=2;else break}return qn(e,ge.COMMENT,t,i,n.slice(t+1,i))}function Pq(e,t,n){const r=e.source.body;let i=t,o=n,s=!1;if(o===45&&(o=r.charCodeAt(++i)),o===48){if(o=r.charCodeAt(++i),qp(o))throw er(e.source,i,`Invalid number, unexpected digit after 0: ${Ou(e,i)}.`)}else i=FS(e,i,o),o=r.charCodeAt(i);if(o===46&&(s=!0,o=r.charCodeAt(++i),i=FS(e,i,o),o=r.charCodeAt(i)),(o===69||o===101)&&(s=!0,o=r.charCodeAt(++i),(o===43||o===45)&&(o=r.charCodeAt(++i)),i=FS(e,i,o),o=r.charCodeAt(i)),o===46||IS(o))throw er(e.source,i,`Invalid number, expected digit but got: ${Ou(e,i)}.`);return qn(e,s?ge.FLOAT:ge.INT,t,i,r.slice(t,i))}function FS(e,t,n){if(!qp(n))throw er(e.source,t,`Invalid number, expected digit but got: ${Ou(e,t)}.`);const r=e.source.body;let i=t+1;for(;qp(r.charCodeAt(i));)++i;return i}function Mq(e,t){const n=e.source.body,r=n.length;let i=t+1,o=i,s=\"\";for(;i<r;){const l=n.charCodeAt(i);if(l===34)return s+=n.slice(o,i),qn(e,ge.STRING,t,i+1,s);if(l===92){s+=n.slice(o,i);const c=n.charCodeAt(i+1)===117?n.charCodeAt(i+2)===123?$q(e,i):Vq(e,i):Bq(e,i);s+=c.value,i+=c.size,o=i;continue}if(l===10||l===13)break;if(df(l))++i;else if(Fg(n,i))i+=2;else throw er(e.source,i,`Invalid character within String: ${Ou(e,i)}.`)}throw er(e.source,i,\"Unterminated string.\")}function $q(e,t){const n=e.source.body;let r=0,i=3;for(;i<12;){const o=n.charCodeAt(t+i++);if(o===125){if(i<5||!df(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|Hp(o),r<0)break}throw er(e.source,t,`Invalid Unicode escape sequence: \"${n.slice(t,t+i)}\".`)}function Vq(e,t){const n=e.source.body,r=W2(n,t+2);if(df(r))return{value:String.fromCodePoint(r),size:6};if(z2(r)&&n.charCodeAt(t+6)===92&&n.charCodeAt(t+7)===117){const i=W2(n,t+8);if(G2(i))return{value:String.fromCodePoint(r,i),size:12}}throw er(e.source,t,`Invalid Unicode escape sequence: \"${n.slice(t,t+6)}\".`)}function W2(e,t){return Hp(e.charCodeAt(t))<<12|Hp(e.charCodeAt(t+1))<<8|Hp(e.charCodeAt(t+2))<<4|Hp(e.charCodeAt(t+3))}function Hp(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Bq(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 er(e.source,t,`Invalid character escape sequence: \"${n.slice(t,t+2)}\".`)}function jq(e,t){const n=e.source.body,r=n.length;let i=e.lineStart,o=t+3,s=o,l=\"\";const c=[];for(;o<r;){const f=n.charCodeAt(o);if(f===34&&n.charCodeAt(o+1)===34&&n.charCodeAt(o+2)===34){l+=n.slice(s,o),c.push(l);const h=qn(e,ge.BLOCK_STRING,t,o+3,Oq(c).join(`\n`));return e.line+=c.length-1,e.lineStart=i,h}if(f===92&&n.charCodeAt(o+1)===34&&n.charCodeAt(o+2)===34&&n.charCodeAt(o+3)===34){l+=n.slice(s,o),s=o+1,o+=4;continue}if(f===10||f===13){l+=n.slice(s,o),c.push(l),f===13&&n.charCodeAt(o+1)===10?o+=2:++o,l=\"\",s=o,i=o;continue}if(df(f))++o;else if(Fg(n,o))o+=2;else throw er(e.source,o,`Invalid character within String: ${Ou(e,o)}.`)}throw er(e.source,o,\"Unterminated string.\")}function Uq(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const o=n.charCodeAt(i);if(U2(o))++i;else break}return qn(e,ge.NAME,t,i,n.slice(t,i))}const qq=10,Q2=2;function be(e){return Rg(e,[])}function Rg(e,t){switch(typeof e){case\"string\":return JSON.stringify(e);case\"function\":return e.name?`[function ${e.name}]`:\"[function]\";case\"object\":return Hq(e,t);default:return String(e)}}function Hq(e,t){if(e===null)return\"null\";if(t.includes(e))return\"[Circular]\";const n=[...t,e];if(zq(e)){const r=e.toJSON();if(r!==e)return typeof r==\"string\"?r:Rg(r,n)}else if(Array.isArray(e))return Wq(e,n);return Gq(e,n)}function zq(e){return typeof e.toJSON==\"function\"}function Gq(e,t){const n=Object.entries(e);return n.length===0?\"{}\":t.length>Q2?\"[\"+Qq(e)+\"]\":\"{ \"+n.map(([i,o])=>i+\": \"+Rg(o,t)).join(\", \")+\" }\"}function Wq(e,t){if(e.length===0)return\"[]\";if(t.length>Q2)return\"[Array]\";const n=Math.min(qq,e.length),r=e.length-n,i=[];for(let o=0;o<n;++o)i.push(Rg(e[o],t));return r===1?i.push(\"... 1 more item\"):r>1&&i.push(`... ${r} more items`),\"[\"+i.join(\", \")+\"]\"}function Qq(e){const t=Object.prototype.toString.call(e).replace(/^\\[object /,\"\").replace(/]$/,\"\");if(t===\"Object\"&&typeof e.constructor==\"function\"){const n=e.constructor.name;if(typeof n==\"string\"&&n!==\"\")return n}return t}const Zo=function(t,n){return t instanceof n};class zp{constructor(t,n=\"GraphQL request\",r={line:1,column:1}){typeof t==\"string\"||pt(!1,`Body must be a string. Received: ${be(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||pt(!1,\"line in locationOffset is 1-indexed and must be positive.\"),this.locationOffset.column>0||pt(!1,\"column in locationOffset is 1-indexed and must be positive.\")}get[Symbol.toStringTag](){return\"Source\"}}function Y2(e){return Zo(e,zp)}function zr(e,t){return new Pg(e,t).parseDocument()}function J2(e,t){const n=new Pg(e,t);n.expectToken(ge.SOF);const r=n.parseValueLiteral(!1);return n.expectToken(ge.EOF),r}function Yq(e,t){const n=new Pg(e,t);n.expectToken(ge.SOF);const r=n.parseConstValueLiteral();return n.expectToken(ge.EOF),r}function Jq(e,t){const n=new Pg(e,t);n.expectToken(ge.SOF);const r=n.parseTypeReference();return n.expectToken(ge.EOF),r}class Pg{constructor(t,n={}){const r=Y2(t)?t:new zp(t);this._lexer=new LS(r),this._options=n,this._tokenCounter=0}parseName(){const t=this.expectToken(ge.NAME);return this.node(t,{kind:q.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:q.DOCUMENT,definitions:this.many(ge.SOF,this.parseDefinition,ge.EOF)})}parseDefinition(){if(this.peek(ge.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===ge.NAME){switch(n.value){case\"schema\":return this.parseSchemaDefinition();case\"scalar\":return this.parseScalarTypeDefinition();case\"type\":return this.parseObjectTypeDefinition();case\"interface\":return this.parseInterfaceTypeDefinition();case\"union\":return this.parseUnionTypeDefinition();case\"enum\":return this.parseEnumTypeDefinition();case\"input\":return this.parseInputObjectTypeDefinition();case\"directive\":return this.parseDirectiveDefinition()}if(t)throw er(this._lexer.source,this._lexer.token.start,\"Unexpected description, descriptions are supported only on type definitions.\");switch(n.value){case\"query\":case\"mutation\":case\"subscription\":return this.parseOperationDefinition();case\"fragment\":return this.parseFragmentDefinition();case\"extend\":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(ge.BRACE_L))return this.node(t,{kind:q.OPERATION_DEFINITION,operation:tr.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const n=this.parseOperationType();let r;return this.peek(ge.NAME)&&(r=this.parseName()),this.node(t,{kind:q.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(ge.NAME);switch(t.value){case\"query\":return tr.QUERY;case\"mutation\":return tr.MUTATION;case\"subscription\":return tr.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(ge.PAREN_L,this.parseVariableDefinition,ge.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:q.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(ge.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(ge.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(ge.DOLLAR),this.node(t,{kind:q.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:q.SELECTION_SET,selections:this.many(ge.BRACE_L,this.parseSelection,ge.BRACE_R)})}parseSelection(){return this.peek(ge.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,n=this.parseName();let r,i;return this.expectOptionalToken(ge.COLON)?(r=n,i=this.parseName()):i=n,this.node(t,{kind:q.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(ge.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(ge.PAREN_L,n,ge.PAREN_R)}parseArgument(t=!1){const n=this._lexer.token,r=this.parseName();return this.expectToken(ge.COLON),this.node(n,{kind:q.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(ge.SPREAD);const n=this.expectOptionalKeyword(\"on\");return!n&&this.peek(ge.NAME)?this.node(t,{kind:q.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:q.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token;return this.expectKeyword(\"fragment\"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:q.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword(\"on\"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:q.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword(\"on\"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value===\"on\")throw this.unexpected();return this.parseName()}parseValueLiteral(t){const n=this._lexer.token;switch(n.kind){case ge.BRACKET_L:return this.parseList(t);case ge.BRACE_L:return this.parseObject(t);case ge.INT:return this.advanceLexer(),this.node(n,{kind:q.INT,value:n.value});case ge.FLOAT:return this.advanceLexer(),this.node(n,{kind:q.FLOAT,value:n.value});case ge.STRING:case ge.BLOCK_STRING:return this.parseStringLiteral();case ge.NAME:switch(this.advanceLexer(),n.value){case\"true\":return this.node(n,{kind:q.BOOLEAN,value:!0});case\"false\":return this.node(n,{kind:q.BOOLEAN,value:!1});case\"null\":return this.node(n,{kind:q.NULL});default:return this.node(n,{kind:q.ENUM,value:n.value})}case ge.DOLLAR:if(t)if(this.expectToken(ge.DOLLAR),this._lexer.token.kind===ge.NAME){const r=this._lexer.token.value;throw er(this._lexer.source,n.start,`Unexpected variable \"$${r}\" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:q.STRING,value:t.value,block:t.kind===ge.BLOCK_STRING})}parseList(t){const n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:q.LIST,values:this.any(ge.BRACKET_L,n,ge.BRACKET_R)})}parseObject(t){const n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:q.OBJECT,fields:this.any(ge.BRACE_L,n,ge.BRACE_R)})}parseObjectField(t){const n=this._lexer.token,r=this.parseName();return this.expectToken(ge.COLON),this.node(n,{kind:q.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){const n=[];for(;this.peek(ge.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const n=this._lexer.token;return this.expectToken(ge.AT),this.node(n,{kind:q.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let n;if(this.expectOptionalToken(ge.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(ge.BRACKET_R),n=this.node(t,{kind:q.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(ge.BANG)?this.node(t,{kind:q.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:q.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(ge.STRING)||this.peek(ge.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword(\"schema\");const r=this.parseConstDirectives(),i=this.many(ge.BRACE_L,this.parseOperationTypeDefinition,ge.BRACE_R);return this.node(t,{kind:q.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:i})}parseOperationTypeDefinition(){const t=this._lexer.token,n=this.parseOperationType();this.expectToken(ge.COLON);const r=this.parseNamedType();return this.node(t,{kind:q.OPERATION_TYPE_DEFINITION,operation:n,type:r})}parseScalarTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword(\"scalar\");const r=this.parseName(),i=this.parseConstDirectives();return this.node(t,{kind:q.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:i})}parseObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword(\"type\");const r=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:q.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:o,fields:s})}parseImplementsInterfaces(){return this.expectOptionalKeyword(\"implements\")?this.delimitedMany(ge.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(ge.BRACE_L,this.parseFieldDefinition,ge.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(ge.COLON);const o=this.parseTypeReference(),s=this.parseConstDirectives();return this.node(t,{kind:q.FIELD_DEFINITION,description:n,name:r,arguments:i,type:o,directives:s})}parseArgumentDefs(){return this.optionalMany(ge.PAREN_L,this.parseInputValueDef,ge.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(ge.COLON);const i=this.parseTypeReference();let o;this.expectOptionalToken(ge.EQUALS)&&(o=this.parseConstValueLiteral());const s=this.parseConstDirectives();return this.node(t,{kind:q.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:o,directives:s})}parseInterfaceTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword(\"interface\");const r=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),s=this.parseFieldsDefinition();return this.node(t,{kind:q.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:o,fields:s})}parseUnionTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword(\"union\");const r=this.parseName(),i=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(t,{kind:q.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(ge.EQUALS)?this.delimitedMany(ge.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword(\"enum\");const r=this.parseName(),i=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(t,{kind:q.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:o})}parseEnumValuesDefinition(){return this.optionalMany(ge.BRACE_L,this.parseEnumValueDefinition,ge.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:q.ENUM_VALUE_DEFINITION,description:n,name:r,directives:i})}parseEnumValueName(){if(this._lexer.token.value===\"true\"||this._lexer.token.value===\"false\"||this._lexer.token.value===\"null\")throw er(this._lexer.source,this._lexer.token.start,`${Mg(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword(\"input\");const r=this.parseName(),i=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(t,{kind:q.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(ge.BRACE_L,this.parseInputValueDef,ge.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===ge.NAME)switch(t.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(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword(\"extend\"),this.expectKeyword(\"schema\");const n=this.parseConstDirectives(),r=this.optionalMany(ge.BRACE_L,this.parseOperationTypeDefinition,ge.BRACE_R);if(n.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:q.SCHEMA_EXTENSION,directives:n,operationTypes:r})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword(\"extend\"),this.expectKeyword(\"scalar\");const n=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(t,{kind:q.SCALAR_TYPE_EXTENSION,name:n,directives:r})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword(\"extend\"),this.expectKeyword(\"type\");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:q.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:o})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword(\"extend\"),this.expectKeyword(\"interface\");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:q.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword(\"extend\"),this.expectKeyword(\"union\");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:q.UNION_TYPE_EXTENSION,name:n,directives:r,types:i})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword(\"extend\"),this.expectKeyword(\"enum\");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:q.ENUM_TYPE_EXTENSION,name:n,directives:r,values:i})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword(\"extend\"),this.expectKeyword(\"input\");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:q.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:i})}parseDirectiveDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword(\"directive\"),this.expectToken(ge.AT);const r=this.parseName(),i=this.parseArgumentDefs(),o=this.expectOptionalKeyword(\"repeatable\");this.expectKeyword(\"on\");const s=this.parseDirectiveLocations();return this.node(t,{kind:q.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:o,locations:s})}parseDirectiveLocations(){return this.delimitedMany(ge.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(Pe,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new V2(t,this._lexer.lastToken,this._lexer.source)),n}peek(t){return this._lexer.token.kind===t}expectToken(t){const n=this._lexer.token;if(n.kind===t)return this.advanceLexer(),n;throw er(this._lexer.source,n.start,`Expected ${K2(t)}, found ${Mg(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){const n=this._lexer.token;if(n.kind===ge.NAME&&n.value===t)this.advanceLexer();else throw er(this._lexer.source,n.start,`Expected \"${t}\", found ${Mg(n)}.`)}expectOptionalKeyword(t){const n=this._lexer.token;return n.kind===ge.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){const n=t??this._lexer.token;return er(this._lexer.source,n.start,`Unexpected ${Mg(n)}.`)}any(t,n,r){this.expectToken(t);const i=[];for(;!this.expectOptionalToken(r);)i.push(n.call(this));return i}optionalMany(t,n,r){if(this.expectOptionalToken(t)){const i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}return[]}many(t,n,r){this.expectToken(t);const i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}delimitedMany(t,n){this.expectOptionalToken(t);const r=[];do r.push(n.call(this));while(this.expectOptionalToken(t));return r}advanceLexer(){const{maxTokens:t}=this._options,n=this._lexer.advance();if(t!==void 0&&n.kind!==ge.EOF&&(++this._tokenCounter,this._tokenCounter>t))throw er(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function Mg(e){const t=e.value;return K2(e.kind)+(t!=null?` \"${t}\"`:\"\")}function K2(e){return H2(e)?`\"${e}\"`:e}const Kq=5;function ls(e,t){const[n,r]=t?[e,t]:[void 0,e];let i=\" Did you mean \";n&&(i+=n+\" \");const o=r.map(c=>`\"${c}\"`);switch(o.length){case 0:return\"\";case 1:return i+o[0]+\"?\";case 2:return i+o[0]+\" or \"+o[1]+\"?\"}const s=o.slice(0,Kq),l=s.pop();return i+s.join(\", \")+\", or \"+l+\"?\"}function X2(e){return e}function us(e,t){const n=Object.create(null);for(const r of e)n[t(r)]=r;return n}function pl(e,t,n){const r=Object.create(null);for(const i of e)r[t(i)]=n(i);return r}function cs(e,t){const n=Object.create(null);for(const r of Object.keys(e))n[r]=t(e[r],r);return n}function Gp(e,t){let n=0,r=0;for(;n<e.length&&r<t.length;){let i=e.charCodeAt(n),o=t.charCodeAt(r);if($g(i)&&$g(o)){let s=0;do++n,s=s*10+i-RS,i=e.charCodeAt(n);while($g(i)&&s>0);let l=0;do++r,l=l*10+o-RS,o=t.charCodeAt(r);while($g(o)&&l>0);if(s<l)return-1;if(s>l)return 1}else{if(i<o)return-1;if(i>o)return 1;++n,++r}}return e.length-t.length}const RS=48,Xq=57;function $g(e){return!isNaN(e)&&RS<=e&&e<=Xq}function hl(e,t){const n=Object.create(null),r=new Zq(e),i=Math.floor(e.length*.4)+1;for(const o of t){const s=r.measure(o,i);s!==void 0&&(n[o]=s)}return Object.keys(n).sort((o,s)=>{const l=n[o]-n[s];return l!==0?l:Gp(o,s)})}let Zq=class{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=Z2(this._inputLowerCase),this._rows=[new Array(t.length+1).fill(0),new Array(t.length+1).fill(0),new Array(t.length+1).fill(0)]}measure(t,n){if(this._input===t)return 0;const r=t.toLowerCase();if(this._inputLowerCase===r)return 1;let i=Z2(r),o=this._inputArray;if(i.length<o.length){const h=i;i=o,o=h}const s=i.length,l=o.length;if(s-l>n)return;const c=this._rows;for(let h=0;h<=l;h++)c[0][h]=h;for(let h=1;h<=s;h++){const g=c[(h-1)%3],m=c[h%3];let y=m[0]=h;for(let S=1;S<=l;S++){const x=i[h-1]===o[S-1]?0:1;let D=Math.min(g[S]+1,m[S-1]+1,g[S-1]+x);if(h>1&&S>1&&i[h-1]===o[S-2]&&i[h-2]===o[S-1]){const _=c[(h-2)%3][S-2];D=Math.min(D,_+1)}D<y&&(y=D),m[S]=D}if(y>n)return}const f=c[s%3][l];return f<=n?f:void 0}};function Z2(e){const t=e.length,n=new Array(t);for(let r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}function bo(e){if(e==null)return Object.create(null);if(Object.getPrototypeOf(e)===null)return e;const t=Object.create(null);for(const[n,r]of Object.entries(e))t[n]=r;return t}function eH(e){return`\"${e.replace(tH,nH)}\"`}const tH=/[\\x00-\\x1f\\x22\\x5c\\x7f-\\x9f]/g;function nH(e){return rH[e.charCodeAt(0)]}const rH=[\"\\\\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\"],pf=Object.freeze({});function Hn(e,t,n=B2){const r=new Map;for(const _ of Object.values(q))r.set(_,hf(t,_));let i,o=Array.isArray(e),s=[e],l=-1,c=[],f=e,h,g;const m=[],y=[];do{l++;const _=l===s.length,b=_&&c.length!==0;if(_){if(h=y.length===0?void 0:m[m.length-1],f=g,g=y.pop(),b)if(o){f=f.slice();let T=0;for(const[N,F]of c){const L=N-T;F===null?(f.splice(L,1),T++):f[L]=F}}else{f=Object.defineProperties({},Object.getOwnPropertyDescriptors(f));for(const[T,N]of c)f[T]=N}l=i.index,s=i.keys,c=i.edits,o=i.inArray,i=i.prev}else if(g){if(h=o?l:s[l],f=g[h],f==null)continue;m.push(h)}let C;if(!Array.isArray(f)){var S,x;AS(f)||pt(!1,`Invalid AST Node: ${be(f)}.`);const T=_?(S=r.get(f.kind))===null||S===void 0?void 0:S.leave:(x=r.get(f.kind))===null||x===void 0?void 0:x.enter;if(C=T==null?void 0:T.call(t,f,h,g,m,y),C===pf)break;if(C===!1){if(!_){m.pop();continue}}else if(C!==void 0&&(c.push([h,C]),!_))if(AS(C))f=C;else{m.pop();continue}}if(C===void 0&&b&&c.push([h,f]),_)m.pop();else{var D;i={inArray:o,index:l,keys:s,edits:c,prev:i},o=Array.isArray(f),s=o?f:(D=n[f.kind])!==null&&D!==void 0?D:[],l=-1,c=[],g&&y.push(g),g=f}}while(i!==void 0);return c.length!==0?c[c.length-1][1]:e}function PS(e){const t=new Array(e.length).fill(null),n=Object.create(null);for(const r of Object.values(q)){let i=!1;const o=new Array(e.length).fill(void 0),s=new Array(e.length).fill(void 0);for(let c=0;c<e.length;++c){const{enter:f,leave:h}=hf(e[c],r);i||(i=f!=null||h!=null),o[c]=f,s[c]=h}if(!i)continue;const l={enter(...c){const f=c[0];for(let g=0;g<e.length;g++)if(t[g]===null){var h;const m=(h=o[g])===null||h===void 0?void 0:h.apply(e[g],c);if(m===!1)t[g]=f;else if(m===pf)t[g]=pf;else if(m!==void 0)return m}},leave(...c){const f=c[0];for(let g=0;g<e.length;g++)if(t[g]===null){var h;const m=(h=s[g])===null||h===void 0?void 0:h.apply(e[g],c);if(m===pf)t[g]=pf;else if(m!==void 0&&m!==!1)return m}else t[g]===f&&(t[g]=null)}};n[r]=l}return n}function hf(e,t){const n=e[t];return typeof n==\"object\"?n:typeof n==\"function\"?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}function iH(e,t,n){const{enter:r,leave:i}=hf(e,t);return n?i:r}function gt(e){return Hn(e,aH)}const oH=80,aH={Name:{leave:e=>e.value},Variable:{leave:e=>\"$\"+e.name},Document:{leave:e=>He(e.definitions,`\n\n`)},OperationDefinition:{leave(e){const t=wt(\"(\",He(e.variableDefinitions,\", \"),\")\"),n=He([e.operation,He([e.name,t]),He(e.directives,\" \")],\" \");return(n===\"query\"?\"\":n+\" \")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+\": \"+t+wt(\" = \",n)+wt(\" \",He(r,\" \"))},SelectionSet:{leave:({selections:e})=>ea(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=wt(\"\",e,\": \")+t;let s=o+wt(\"(\",He(n,\", \"),\")\");return s.length>oH&&(s=o+wt(`(\n`,Vg(He(n,`\n`)),`\n)`)),He([s,He(r,\" \"),i],\" \")}},Argument:{leave:({name:e,value:t})=>e+\": \"+t},FragmentSpread:{leave:({name:e,directives:t})=>\"...\"+e+wt(\" \",He(t,\" \"))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>He([\"...\",wt(\"on \",e),He(t,\" \"),n],\" \")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${wt(\"(\",He(n,\", \"),\")\")} on ${t} ${wt(\"\",He(r,\" \"),\" \")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?q2(e):eH(e)},BooleanValue:{leave:({value:e})=>e?\"true\":\"false\"},NullValue:{leave:()=>\"null\"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>\"[\"+He(e,\", \")+\"]\"},ObjectValue:{leave:({fields:e})=>\"{\"+He(e,\", \")+\"}\"},ObjectField:{leave:({name:e,value:t})=>e+\": \"+t},Directive:{leave:({name:e,arguments:t})=>\"@\"+e+wt(\"(\",He(t,\", \"),\")\")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>\"[\"+e+\"]\"},NonNullType:{leave:({type:e})=>e+\"!\"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>wt(\"\",e,`\n`)+He([\"schema\",He(t,\" \"),ea(n)],\" \")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+\": \"+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>wt(\"\",e,`\n`)+He([\"scalar\",t,He(n,\" \")],\" \")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>wt(\"\",e,`\n`)+He([\"type\",t,wt(\"implements \",He(n,\" & \")),He(r,\" \"),ea(i)],\" \")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>wt(\"\",e,`\n`)+t+(eL(n)?wt(`(\n`,Vg(He(n,`\n`)),`\n)`):wt(\"(\",He(n,\", \"),\")\"))+\": \"+r+wt(\" \",He(i,\" \"))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>wt(\"\",e,`\n`)+He([t+\": \"+n,wt(\"= \",r),He(i,\" \")],\" \")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>wt(\"\",e,`\n`)+He([\"interface\",t,wt(\"implements \",He(n,\" & \")),He(r,\" \"),ea(i)],\" \")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>wt(\"\",e,`\n`)+He([\"union\",t,He(n,\" \"),wt(\"= \",He(r,\" | \"))],\" \")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>wt(\"\",e,`\n`)+He([\"enum\",t,He(n,\" \"),ea(r)],\" \")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>wt(\"\",e,`\n`)+He([t,He(n,\" \")],\" \")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>wt(\"\",e,`\n`)+He([\"input\",t,He(n,\" \"),ea(r)],\" \")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>wt(\"\",e,`\n`)+\"directive @\"+t+(eL(n)?wt(`(\n`,Vg(He(n,`\n`)),`\n)`):wt(\"(\",He(n,\", \"),\")\"))+(r?\" repeatable\":\"\")+\" on \"+He(i,\" | \")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>He([\"extend schema\",He(e,\" \"),ea(t)],\" \")},ScalarTypeExtension:{leave:({name:e,directives:t})=>He([\"extend scalar\",e,He(t,\" \")],\" \")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>He([\"extend type\",e,wt(\"implements \",He(t,\" & \")),He(n,\" \"),ea(r)],\" \")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>He([\"extend interface\",e,wt(\"implements \",He(t,\" & \")),He(n,\" \"),ea(r)],\" \")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>He([\"extend union\",e,He(t,\" \"),wt(\"= \",He(n,\" | \"))],\" \")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>He([\"extend enum\",e,He(t,\" \"),ea(n)],\" \")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>He([\"extend input\",e,He(t,\" \"),ea(n)],\" \")}};function He(e,t=\"\"){var n;return(n=e==null?void 0:e.filter(r=>r).join(t))!==null&&n!==void 0?n:\"\"}function ea(e){return wt(`{\n`,Vg(He(e,`\n`)),`\n}`)}function wt(e,t,n=\"\"){return t!=null&&t!==\"\"?e+t+n:\"\"}function Vg(e){return wt(\" \",e.replace(/\\n/g,`\n `))}function eL(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(`\n`)))!==null&&t!==void 0?t:!1}function Bg(e,t){switch(e.kind){case q.NULL:return null;case q.INT:return parseInt(e.value,10);case q.FLOAT:return parseFloat(e.value);case q.STRING:case q.ENUM:case q.BOOLEAN:return e.value;case q.LIST:return e.values.map(n=>Bg(n,t));case q.OBJECT:return pl(e.fields,n=>n.name.value,n=>Bg(n.value,t));case q.VARIABLE:return t==null?void 0:t[e.name.value]}}function Ki(e){if(e!=null||pt(!1,\"Must provide name.\"),typeof e==\"string\"||pt(!1,\"Expected name to be a string.\"),e.length===0)throw new he(\"Expected name to be a non-empty string.\");for(let t=1;t<e.length;++t)if(!U2(e.charCodeAt(t)))throw new he(`Names must only contain [_a-zA-Z0-9] but \"${e}\" does not.`);if(!IS(e.charCodeAt(0)))throw new he(`Names must start with [_a-zA-Z] but \"${e}\" does not.`);return e}function tL(e){if(e===\"true\"||e===\"false\"||e===\"null\")throw new he(`Enum values cannot be named: ${e}`);return Ki(e)}function vf(e){return ui(e)||Xe(e)||ot(e)||On(e)||rn(e)||Tt(e)||St(e)||Ge(e)}function sH(e){if(!vf(e))throw new Error(`Expected ${be(e)} to be a GraphQL type.`);return e}function ui(e){return Zo(e,Eo)}function lH(e){if(!ui(e))throw new Error(`Expected ${be(e)} to be a GraphQL Scalar type.`);return e}function Xe(e){return Zo(e,rr)}function nL(e){if(!Xe(e))throw new Error(`Expected ${be(e)} to be a GraphQL Object type.`);return e}function ot(e){return Zo(e,ci)}function rL(e){if(!ot(e))throw new Error(`Expected ${be(e)} to be a GraphQL Interface type.`);return e}function On(e){return Zo(e,bl)}function uH(e){if(!On(e))throw new Error(`Expected ${be(e)} to be a GraphQL Union type.`);return e}function rn(e){return Zo(e,Qr)}function cH(e){if(!rn(e))throw new Error(`Expected ${be(e)} to be a GraphQL Enum type.`);return e}function Tt(e){return Zo(e,fi)}function fH(e){if(!Tt(e))throw new Error(`Expected ${be(e)} to be a GraphQL Input Object type.`);return e}function St(e){return Zo(e,on)}function dH(e){if(!St(e))throw new Error(`Expected ${be(e)} to be a GraphQL List type.`);return e}function Ge(e){return Zo(e,rt)}function pH(e){if(!Ge(e))throw new Error(`Expected ${be(e)} to be a GraphQL Non-Null type.`);return e}function Gr(e){return ui(e)||rn(e)||Tt(e)||Wp(e)&&Gr(e.ofType)}function hH(e){if(!Gr(e))throw new Error(`Expected ${be(e)} to be a GraphQL input type.`);return e}function vl(e){return ui(e)||Xe(e)||ot(e)||On(e)||rn(e)||Wp(e)&&vl(e.ofType)}function vH(e){if(!vl(e))throw new Error(`Expected ${be(e)} to be a GraphQL output type.`);return e}function Wr(e){return ui(e)||rn(e)}function mH(e){if(!Wr(e))throw new Error(`Expected ${be(e)} to be a GraphQL leaf type.`);return e}function pn(e){return Xe(e)||ot(e)||On(e)}function gH(e){if(!pn(e))throw new Error(`Expected ${be(e)} to be a GraphQL composite type.`);return e}function nr(e){return ot(e)||On(e)}function iL(e){if(!nr(e))throw new Error(`Expected ${be(e)} to be a GraphQL abstract type.`);return e}let on=class{constructor(t){vf(t)||pt(!1,`Expected ${be(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return\"GraphQLList\"}toString(){return\"[\"+String(this.ofType)+\"]\"}toJSON(){return this.toString()}},rt=class{constructor(t){MS(t)||pt(!1,`Expected ${be(t)} to be a GraphQL nullable type.`),this.ofType=t}get[Symbol.toStringTag](){return\"GraphQLNonNull\"}toString(){return String(this.ofType)+\"!\"}toJSON(){return this.toString()}};function Wp(e){return St(e)||Ge(e)}function yH(e){if(!Wp(e))throw new Error(`Expected ${be(e)} to be a GraphQL wrapping type.`);return e}function MS(e){return vf(e)&&!Ge(e)}function oL(e){if(!MS(e))throw new Error(`Expected ${be(e)} to be a GraphQL nullable type.`);return e}function ml(e){if(e)return Ge(e)?e.ofType:e}function gl(e){return ui(e)||Xe(e)||ot(e)||On(e)||rn(e)||Tt(e)}function bH(e){if(!gl(e))throw new Error(`Expected ${be(e)} to be a GraphQL named type.`);return e}function Nt(e){if(e){let t=e;for(;Wp(t);)t=t.ofType;return t}}function $S(e){return typeof e==\"function\"?e():e}function VS(e){return typeof e==\"function\"?e():e}let Eo=class{constructor(t){var n,r,i,o;const s=(n=t.parseValue)!==null&&n!==void 0?n:X2;this.name=Ki(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(r=t.serialize)!==null&&r!==void 0?r:X2,this.parseValue=s,this.parseLiteral=(i=t.parseLiteral)!==null&&i!==void 0?i:(l,c)=>s(Bg(l,c)),this.extensions=bo(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(o=t.extensionASTNodes)!==null&&o!==void 0?o:[],t.specifiedByURL==null||typeof t.specifiedByURL==\"string\"||pt(!1,`${this.name} must provide \"specifiedByURL\" as a string, but got: ${be(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize==\"function\"||pt(!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.`),t.parseLiteral&&(typeof t.parseValue==\"function\"&&typeof t.parseLiteral==\"function\"||pt(!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()}},rr=class{constructor(t){var n;this.name=Ki(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=bo(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>sL(t),this._interfaces=()=>aL(t),t.isTypeOf==null||typeof t.isTypeOf==\"function\"||pt(!1,`${this.name} must provide \"isTypeOf\" as a function, but got: ${be(t.isTypeOf)}.`)}get[Symbol.toStringTag](){return\"GraphQLObjectType\"}getFields(){return typeof this._fields==\"function\"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces==\"function\"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:uL(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};function aL(e){var t;const n=$S((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(n)||pt(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function sL(e){const t=VS(e.fields);return mf(t)||pt(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),cs(t,(n,r)=>{var i;mf(n)||pt(!1,`${e.name}.${r} field config must be an object.`),n.resolve==null||typeof n.resolve==\"function\"||pt(!1,`${e.name}.${r} field resolver must be a function if provided, but got: ${be(n.resolve)}.`);const o=(i=n.args)!==null&&i!==void 0?i:{};return mf(o)||pt(!1,`${e.name}.${r} args must be an object with argument names as keys.`),{name:Ki(r),description:n.description,type:n.type,args:lL(o),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:bo(n.extensions),astNode:n.astNode}})}function lL(e){return Object.entries(e).map(([t,n])=>({name:Ki(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:bo(n.extensions),astNode:n.astNode}))}function mf(e){return Ji(e)&&!Array.isArray(e)}function uL(e){return cs(e,t=>({description:t.description,type:t.type,args:cL(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function cL(e){return pl(e,t=>t.name,t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function yl(e){return Ge(e.type)&&e.defaultValue===void 0}let ci=class{constructor(t){var n;this.name=Ki(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=bo(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=sL.bind(void 0,t),this._interfaces=aL.bind(void 0,t),t.resolveType==null||typeof t.resolveType==\"function\"||pt(!1,`${this.name} must provide \"resolveType\" as a function, but got: ${be(t.resolveType)}.`)}get[Symbol.toStringTag](){return\"GraphQLInterfaceType\"}getFields(){return typeof this._fields==\"function\"&&(this._fields=this._fields()),this._fields}getInterfaces(){return typeof this._interfaces==\"function\"&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:uL(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}},bl=class{constructor(t){var n;this.name=Ki(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=bo(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=EH.bind(void 0,t),t.resolveType==null||typeof t.resolveType==\"function\"||pt(!1,`${this.name} must provide \"resolveType\" as a function, but got: ${be(t.resolveType)}.`)}get[Symbol.toStringTag](){return\"GraphQLUnionType\"}getTypes(){return typeof this._types==\"function\"&&(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()}};function EH(e){const t=$S(e.types);return Array.isArray(t)||pt(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}let Qr=class{constructor(t){var n;this.name=Ki(t.name),this.description=t.description,this.extensions=bo(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._values=wH(this.name,t.values),this._valueLookup=new Map(this._values.map(r=>[r.value,r])),this._nameLookup=us(this._values,r=>r.name)}get[Symbol.toStringTag](){return\"GraphQLEnumType\"}getValues(){return this._values}getValue(t){return this._nameLookup[t]}serialize(t){const n=this._valueLookup.get(t);if(n===void 0)throw new he(`Enum \"${this.name}\" cannot represent value: ${be(t)}`);return n.name}parseValue(t){if(typeof t!=\"string\"){const r=be(t);throw new he(`Enum \"${this.name}\" cannot represent non-string value: ${r}.`+jg(this,r))}const n=this.getValue(t);if(n==null)throw new he(`Value \"${t}\" does not exist in \"${this.name}\" enum.`+jg(this,t));return n.value}parseLiteral(t,n){if(t.kind!==q.ENUM){const i=gt(t);throw new he(`Enum \"${this.name}\" cannot represent non-enum value: ${i}.`+jg(this,i),{nodes:t})}const r=this.getValue(t.value);if(r==null){const i=gt(t);throw new he(`Value \"${i}\" does not exist in \"${this.name}\" enum.`+jg(this,i),{nodes:t})}return r.value}toConfig(){const t=pl(this.getValues(),n=>n.name,n=>({description:n.description,value:n.value,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,values:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};function jg(e,t){const n=e.getValues().map(i=>i.name),r=hl(t,n);return ls(\"the enum value\",r)}function wH(e,t){return mf(t)||pt(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([n,r])=>(mf(r)||pt(!1,`${e}.${n} must refer to an object with a \"value\" key representing an internal value but got: ${be(r)}.`),{name:tL(n),description:r.description,value:r.value!==void 0?r.value:n,deprecationReason:r.deprecationReason,extensions:bo(r.extensions),astNode:r.astNode}))}let fi=class{constructor(t){var n;this.name=Ki(t.name),this.description=t.description,this.extensions=bo(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=SH.bind(void 0,t)}get[Symbol.toStringTag](){return\"GraphQLInputObjectType\"}getFields(){return typeof this._fields==\"function\"&&(this._fields=this._fields()),this._fields}toConfig(){const t=cs(this.getFields(),n=>({description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:n.extensions,astNode:n.astNode}));return{name:this.name,description:this.description,fields:t,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};function SH(e){const t=VS(e.fields);return mf(t)||pt(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),cs(t,(n,r)=>(!(\"resolve\"in n)||pt(!1,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`),{name:Ki(r),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:bo(n.extensions),astNode:n.astNode}))}function Ug(e){return Ge(e.type)&&e.defaultValue===void 0}function qg(e,t){return e===t?!0:Ge(e)&&Ge(t)||St(e)&&St(t)?qg(e.ofType,t.ofType):!1}function Iu(e,t,n){return t===n?!0:Ge(n)?Ge(t)?Iu(e,t.ofType,n.ofType):!1:Ge(t)?Iu(e,t.ofType,n):St(n)?St(t)?Iu(e,t.ofType,n.ofType):!1:St(t)?!1:nr(n)&&(ot(t)||Xe(t))&&e.isSubType(n,t)}function Qp(e,t,n){return t===n?!0:nr(t)?nr(n)?e.getPossibleTypes(t).some(r=>e.isSubType(n,r)):e.isSubType(t,n):nr(n)?e.isSubType(n,t):!1}const Hg=2147483647,zg=-2147483648,Yp=new Eo({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=eh(e);if(typeof t==\"boolean\")return t?1:0;let n=t;if(typeof t==\"string\"&&t!==\"\"&&(n=Number(t)),typeof n!=\"number\"||!Number.isInteger(n))throw new he(`Int cannot represent non-integer value: ${be(t)}`);if(n>Hg||n<zg)throw new he(\"Int cannot represent non 32-bit signed integer value: \"+be(t));return n},parseValue(e){if(typeof e!=\"number\"||!Number.isInteger(e))throw new he(`Int cannot represent non-integer value: ${be(e)}`);if(e>Hg||e<zg)throw new he(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==q.INT)throw new he(`Int cannot represent non-integer value: ${gt(e)}`,{nodes:e});const t=parseInt(e.value,10);if(t>Hg||t<zg)throw new he(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),Jp=new Eo({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=eh(e);if(typeof t==\"boolean\")return t?1:0;let n=t;if(typeof t==\"string\"&&t!==\"\"&&(n=Number(t)),typeof n!=\"number\"||!Number.isFinite(n))throw new he(`Float cannot represent non numeric value: ${be(t)}`);return n},parseValue(e){if(typeof e!=\"number\"||!Number.isFinite(e))throw new he(`Float cannot represent non numeric value: ${be(e)}`);return e},parseLiteral(e){if(e.kind!==q.FLOAT&&e.kind!==q.INT)throw new he(`Float cannot represent non numeric value: ${gt(e)}`,e);return parseFloat(e.value)}}),Jt=new Eo({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=eh(e);if(typeof t==\"string\")return t;if(typeof t==\"boolean\")return t?\"true\":\"false\";if(typeof t==\"number\"&&Number.isFinite(t))return t.toString();throw new he(`String cannot represent value: ${be(e)}`)},parseValue(e){if(typeof e!=\"string\")throw new he(`String cannot represent a non string value: ${be(e)}`);return e},parseLiteral(e){if(e.kind!==q.STRING)throw new he(`String cannot represent a non string value: ${gt(e)}`,{nodes:e});return e.value}}),an=new Eo({name:\"Boolean\",description:\"The `Boolean` scalar type represents `true` or `false`.\",serialize(e){const t=eh(e);if(typeof t==\"boolean\")return t;if(Number.isFinite(t))return t!==0;throw new he(`Boolean cannot represent a non boolean value: ${be(t)}`)},parseValue(e){if(typeof e!=\"boolean\")throw new he(`Boolean cannot represent a non boolean value: ${be(e)}`);return e},parseLiteral(e){if(e.kind!==q.BOOLEAN)throw new he(`Boolean cannot represent a non boolean value: ${gt(e)}`,{nodes:e});return e.value}}),Kp=new Eo({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=eh(e);if(typeof t==\"string\")return t;if(Number.isInteger(t))return String(t);throw new he(`ID cannot represent value: ${be(e)}`)},parseValue(e){if(typeof e==\"string\")return e;if(typeof e==\"number\"&&Number.isInteger(e))return e.toString();throw new he(`ID cannot represent value: ${be(e)}`)},parseLiteral(e){if(e.kind!==q.STRING&&e.kind!==q.INT)throw new he(\"ID cannot represent a non-string and non-integer value: \"+gt(e),{nodes:e});return e.value}}),Xp=Object.freeze([Jt,Yp,Jp,an,Kp]);function Zp(e){return Xp.some(({name:t})=>e.name===t)}function eh(e){if(Ji(e)){if(typeof e.valueOf==\"function\"){const t=e.valueOf();if(!Ji(t))return t}if(typeof e.toJSON==\"function\")return e.toJSON()}return e}function Gg(e){return Zo(e,Xi)}function TH(e){if(!Gg(e))throw new Error(`Expected ${be(e)} to be a GraphQL directive.`);return e}class Xi{constructor(t){var n,r;this.name=Ki(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=(n=t.isRepeatable)!==null&&n!==void 0?n:!1,this.extensions=bo(t.extensions),this.astNode=t.astNode,Array.isArray(t.locations)||pt(!1,`@${t.name} locations must be an Array.`);const i=(r=t.args)!==null&&r!==void 0?r:{};Ji(i)&&!Array.isArray(i)||pt(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=lL(i)}get[Symbol.toStringTag](){return\"GraphQLDirective\"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:cL(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return\"@\"+this.name}toJSON(){return this.toString()}}const Wg=new Xi({name:\"include\",description:\"Directs the executor to include this field or fragment only when the `if` argument is true.\",locations:[Pe.FIELD,Pe.FRAGMENT_SPREAD,Pe.INLINE_FRAGMENT],args:{if:{type:new rt(an),description:\"Included when true.\"}}}),Qg=new Xi({name:\"skip\",description:\"Directs the executor to skip this field or fragment when the `if` argument is true.\",locations:[Pe.FIELD,Pe.FRAGMENT_SPREAD,Pe.INLINE_FRAGMENT],args:{if:{type:new rt(an),description:\"Skipped when true.\"}}}),BS=\"No longer supported\",Yg=new Xi({name:\"deprecated\",description:\"Marks an element of a GraphQL schema as no longer supported.\",locations:[Pe.FIELD_DEFINITION,Pe.ARGUMENT_DEFINITION,Pe.INPUT_FIELD_DEFINITION,Pe.ENUM_VALUE],args:{reason:{type:Jt,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:BS}}}),jS=new Xi({name:\"specifiedBy\",description:\"Exposes a URL that specifies the behavior of this scalar.\",locations:[Pe.SCALAR],args:{url:{type:new rt(Jt),description:\"The URL that specifies the behavior of this scalar.\"}}}),El=Object.freeze([Wg,Qg,Yg,jS]);function Jg(e){return El.some(({name:t})=>t===e.name)}function US(e){return typeof e==\"object\"&&typeof(e==null?void 0:e[Symbol.iterator])==\"function\"}function fs(e,t){if(Ge(t)){const n=fs(e,t.ofType);return(n==null?void 0:n.kind)===q.NULL?null:n}if(e===null)return{kind:q.NULL};if(e===void 0)return null;if(St(t)){const n=t.ofType;if(US(e)){const r=[];for(const i of e){const o=fs(i,n);o!=null&&r.push(o)}return{kind:q.LIST,values:r}}return fs(e,n)}if(Tt(t)){if(!Ji(e))return null;const n=[];for(const r of Object.values(t.getFields())){const i=fs(e[r.name],r.type);i&&n.push({kind:q.OBJECT_FIELD,name:{kind:q.NAME,value:r.name},value:i})}return{kind:q.OBJECT,fields:n}}if(Wr(t)){const n=t.serialize(e);if(n==null)return null;if(typeof n==\"boolean\")return{kind:q.BOOLEAN,value:n};if(typeof n==\"number\"&&Number.isFinite(n)){const r=String(n);return fL.test(r)?{kind:q.INT,value:r}:{kind:q.FLOAT,value:r}}if(typeof n==\"string\")return rn(t)?{kind:q.ENUM,value:n}:t===Kp&&fL.test(n)?{kind:q.INT,value:n}:{kind:q.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${be(n)}.`)}An(!1,\"Unexpected input type: \"+be(t))}const fL=/^-?(?:0|[1-9][0-9]*)$/,Kg=new rr({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:Jt,resolve:e=>e.description},types:{description:\"A list of all types supported by this server.\",type:new rt(new on(new rt(wo))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:\"The type that query operations will be rooted at.\",type:new rt(wo),resolve:e=>e.getQueryType()},mutationType:{description:\"If this server supports mutation, the type that mutation operations will be rooted at.\",type:wo,resolve:e=>e.getMutationType()},subscriptionType:{description:\"If this server support subscription, the type that subscription operations will be rooted at.\",type:wo,resolve:e=>e.getSubscriptionType()},directives:{description:\"A list of all directives supported by this server.\",type:new rt(new on(new rt(qS))),resolve:e=>e.getDirectives()}})}),qS=new rr({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 rt(Jt),resolve:e=>e.name},description:{type:Jt,resolve:e=>e.description},isRepeatable:{type:new rt(an),resolve:e=>e.isRepeatable},locations:{type:new rt(new on(new rt(HS))),resolve:e=>e.locations},args:{type:new rt(new on(new rt(th))),args:{includeDeprecated:{type:an,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}}})}),HS=new Qr({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:Pe.QUERY,description:\"Location adjacent to a query operation.\"},MUTATION:{value:Pe.MUTATION,description:\"Location adjacent to a mutation operation.\"},SUBSCRIPTION:{value:Pe.SUBSCRIPTION,description:\"Location adjacent to a subscription operation.\"},FIELD:{value:Pe.FIELD,description:\"Location adjacent to a field.\"},FRAGMENT_DEFINITION:{value:Pe.FRAGMENT_DEFINITION,description:\"Location adjacent to a fragment definition.\"},FRAGMENT_SPREAD:{value:Pe.FRAGMENT_SPREAD,description:\"Location adjacent to a fragment spread.\"},INLINE_FRAGMENT:{value:Pe.INLINE_FRAGMENT,description:\"Location adjacent to an inline fragment.\"},VARIABLE_DEFINITION:{value:Pe.VARIABLE_DEFINITION,description:\"Location adjacent to a variable definition.\"},SCHEMA:{value:Pe.SCHEMA,description:\"Location adjacent to a schema definition.\"},SCALAR:{value:Pe.SCALAR,description:\"Location adjacent to a scalar definition.\"},OBJECT:{value:Pe.OBJECT,description:\"Location adjacent to an object type definition.\"},FIELD_DEFINITION:{value:Pe.FIELD_DEFINITION,description:\"Location adjacent to a field definition.\"},ARGUMENT_DEFINITION:{value:Pe.ARGUMENT_DEFINITION,description:\"Location adjacent to an argument definition.\"},INTERFACE:{value:Pe.INTERFACE,description:\"Location adjacent to an interface definition.\"},UNION:{value:Pe.UNION,description:\"Location adjacent to a union definition.\"},ENUM:{value:Pe.ENUM,description:\"Location adjacent to an enum definition.\"},ENUM_VALUE:{value:Pe.ENUM_VALUE,description:\"Location adjacent to an enum value definition.\"},INPUT_OBJECT:{value:Pe.INPUT_OBJECT,description:\"Location adjacent to an input object type definition.\"},INPUT_FIELD_DEFINITION:{value:Pe.INPUT_FIELD_DEFINITION,description:\"Location adjacent to an input object field definition.\"}}}),wo=new rr({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 rt(WS),resolve(e){if(ui(e))return qt.SCALAR;if(Xe(e))return qt.OBJECT;if(ot(e))return qt.INTERFACE;if(On(e))return qt.UNION;if(rn(e))return qt.ENUM;if(Tt(e))return qt.INPUT_OBJECT;if(St(e))return qt.LIST;if(Ge(e))return qt.NON_NULL;An(!1,`Unexpected type: \"${be(e)}\".`)}},name:{type:Jt,resolve:e=>\"name\"in e?e.name:void 0},description:{type:Jt,resolve:e=>\"description\"in e?e.description:void 0},specifiedByURL:{type:Jt,resolve:e=>\"specifiedByURL\"in e?e.specifiedByURL:void 0},fields:{type:new on(new rt(zS)),args:{includeDeprecated:{type:an,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(Xe(e)||ot(e)){const n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},interfaces:{type:new on(new rt(wo)),resolve(e){if(Xe(e)||ot(e))return e.getInterfaces()}},possibleTypes:{type:new on(new rt(wo)),resolve(e,t,n,{schema:r}){if(nr(e))return r.getPossibleTypes(e)}},enumValues:{type:new on(new rt(GS)),args:{includeDeprecated:{type:an,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(rn(e)){const n=e.getValues();return t?n:n.filter(r=>r.deprecationReason==null)}}},inputFields:{type:new on(new rt(th)),args:{includeDeprecated:{type:an,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(Tt(e)){const n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},ofType:{type:wo,resolve:e=>\"ofType\"in e?e.ofType:void 0}})}),zS=new rr({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 rt(Jt),resolve:e=>e.name},description:{type:Jt,resolve:e=>e.description},args:{type:new rt(new on(new rt(th))),args:{includeDeprecated:{type:an,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}},type:{type:new rt(wo),resolve:e=>e.type},isDeprecated:{type:new rt(an),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Jt,resolve:e=>e.deprecationReason}})}),th=new rr({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 rt(Jt),resolve:e=>e.name},description:{type:Jt,resolve:e=>e.description},type:{type:new rt(wo),resolve:e=>e.type},defaultValue:{type:Jt,description:\"A GraphQL-formatted string representing the default value for this input value.\",resolve(e){const{type:t,defaultValue:n}=e,r=fs(n,t);return r?gt(r):null}},isDeprecated:{type:new rt(an),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Jt,resolve:e=>e.deprecationReason}})}),GS=new rr({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 rt(Jt),resolve:e=>e.name},description:{type:Jt,resolve:e=>e.description},isDeprecated:{type:new rt(an),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Jt,resolve:e=>e.deprecationReason}})});var qt;(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\"})(qt||(qt={}));const WS=new Qr({name:\"__TypeKind\",description:\"An enum describing what kind of type a given `__Type` is.\",values:{SCALAR:{value:qt.SCALAR,description:\"Indicates this type is a scalar.\"},OBJECT:{value:qt.OBJECT,description:\"Indicates this type is an object. `fields` and `interfaces` are valid fields.\"},INTERFACE:{value:qt.INTERFACE,description:\"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields.\"},UNION:{value:qt.UNION,description:\"Indicates this type is a union. `possibleTypes` is a valid field.\"},ENUM:{value:qt.ENUM,description:\"Indicates this type is an enum. `enumValues` is a valid field.\"},INPUT_OBJECT:{value:qt.INPUT_OBJECT,description:\"Indicates this type is an input object. `inputFields` is a valid field.\"},LIST:{value:qt.LIST,description:\"Indicates this type is a list. `ofType` is a valid field.\"},NON_NULL:{value:qt.NON_NULL,description:\"Indicates this type is a non-null. `ofType` is a valid field.\"}}}),wl={name:\"__schema\",type:new rt(Kg),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},Sl={name:\"__type\",type:wo,description:\"Request the type information of a single type.\",args:[{name:\"name\",description:void 0,type:new rt(Jt),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},ds={name:\"__typename\",type:new rt(Jt),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},nh=Object.freeze([Kg,qS,HS,wo,zS,th,GS,WS]);function Lu(e){return nh.some(({name:t})=>e.name===t)}function Xg(e){return Zo(e,Fu)}function QS(e){if(!Xg(e))throw new Error(`Expected ${be(e)} to be a GraphQL schema.`);return e}class Fu{constructor(t){var n,r;this.__validationErrors=t.assumeValid===!0?[]:void 0,Ji(t)||pt(!1,\"Must provide configuration object.\"),!t.types||Array.isArray(t.types)||pt(!1,`\"types\" must be Array if provided but got: ${be(t.types)}.`),!t.directives||Array.isArray(t.directives)||pt(!1,`\"directives\" must be Array if provided but got: ${be(t.directives)}.`),this.description=t.description,this.extensions=bo(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._queryType=t.query,this._mutationType=t.mutation,this._subscriptionType=t.subscription,this._directives=(r=t.directives)!==null&&r!==void 0?r:El;const i=new Set(t.types);if(t.types!=null)for(const o of t.types)i.delete(o),ta(o,i);this._queryType!=null&&ta(this._queryType,i),this._mutationType!=null&&ta(this._mutationType,i),this._subscriptionType!=null&&ta(this._subscriptionType,i);for(const o of this._directives)if(Gg(o))for(const s of o.args)ta(s.type,i);ta(Kg,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const o of i){if(o==null)continue;const s=o.name;if(s||pt(!1,\"One of the provided types for building the Schema is missing a name.\"),this._typeMap[s]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named \"${s}\".`);if(this._typeMap[s]=o,ot(o)){for(const l of o.getInterfaces())if(ot(l)){let c=this._implementationsMap[l.name];c===void 0&&(c=this._implementationsMap[l.name]={objects:[],interfaces:[]}),c.interfaces.push(o)}}else if(Xe(o)){for(const l of o.getInterfaces())if(ot(l)){let c=this._implementationsMap[l.name];c===void 0&&(c=this._implementationsMap[l.name]={objects:[],interfaces:[]}),c.objects.push(o)}}}}get[Symbol.toStringTag](){return\"GraphQLSchema\"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(t){switch(t){case tr.QUERY:return this.getQueryType();case tr.MUTATION:return this.getMutationType();case tr.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return On(t)?t.getTypes():this.getImplementations(t).objects}getImplementations(t){const n=this._implementationsMap[t.name];return n??{objects:[],interfaces:[]}}isSubType(t,n){let r=this._subTypeMap[t.name];if(r===void 0){if(r=Object.create(null),On(t))for(const i of t.getTypes())r[i.name]=!0;else{const i=this.getImplementations(t);for(const o of i.objects)r[o.name]=!0;for(const o of i.interfaces)r[o.name]=!0}this._subTypeMap[t.name]=r}return r[n.name]!==void 0}getDirectives(){return this._directives}getDirective(t){return this.getDirectives().find(n=>n.name===t)}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:this.__validationErrors!==void 0}}}function ta(e,t){const n=Nt(e);if(!t.has(n)){if(t.add(n),On(n))for(const r of n.getTypes())ta(r,t);else if(Xe(n)||ot(n)){for(const r of n.getInterfaces())ta(r,t);for(const r of Object.values(n.getFields())){ta(r.type,t);for(const i of r.args)ta(i.type,t)}}else if(Tt(n))for(const r of Object.values(n.getFields()))ta(r.type,t)}return t}function Zg(e){if(QS(e),e.__validationErrors)return e.__validationErrors;const t=new _H(e);CH(t),xH(t),kH(t);const n=t.getErrors();return e.__validationErrors=n,n}function ey(e){const t=Zg(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(`\n\n`))}class _H{constructor(t){this._errors=[],this.schema=t}reportError(t,n){const r=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new he(t,{nodes:r}))}getErrors(){return this._errors}}function CH(e){const t=e.schema,n=t.getQueryType();if(!n)e.reportError(\"Query root type must be provided.\",t.astNode);else if(!Xe(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${be(n)}.`,(r=YS(t,tr.QUERY))!==null&&r!==void 0?r:n.astNode)}const i=t.getMutationType();if(i&&!Xe(i)){var o;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${be(i)}.`,(o=YS(t,tr.MUTATION))!==null&&o!==void 0?o:i.astNode)}const s=t.getSubscriptionType();if(s&&!Xe(s)){var l;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${be(s)}.`,(l=YS(t,tr.SUBSCRIPTION))!==null&&l!==void 0?l:s.astNode)}}function YS(e,t){var n;return(n=[e.astNode,...e.extensionASTNodes].flatMap(r=>{var i;return(i=r==null?void 0:r.operationTypes)!==null&&i!==void 0?i:[]}).find(r=>r.operation===t))===null||n===void 0?void 0:n.type}function xH(e){for(const n of e.schema.getDirectives()){if(!Gg(n)){e.reportError(`Expected directive but got: ${be(n)}.`,n==null?void 0:n.astNode);continue}Ru(e,n);for(const r of n.args)if(Ru(e,r),Gr(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${be(r.type)}.`,r.astNode),yl(r)&&r.deprecationReason!=null){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[JS(r.astNode),(t=r.astNode)===null||t===void 0?void 0:t.type])}}}function Ru(e,t){t.name.startsWith(\"__\")&&e.reportError(`Name \"${t.name}\" must not begin with \"__\", which is reserved by GraphQL introspection.`,t.astNode)}function kH(e){const t=LH(e),n=e.schema.getTypeMap();for(const r of Object.values(n)){if(!gl(r)){e.reportError(`Expected GraphQL named type but got: ${be(r)}.`,r.astNode);continue}Lu(r)||Ru(e,r),Xe(r)||ot(r)?(dL(e,r),pL(e,r)):On(r)?AH(e,r):rn(r)?OH(e,r):Tt(r)&&(IH(e,r),t(r))}}function dL(e,t){const n=Object.values(t.getFields());n.length===0&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const s of n){if(Ru(e,s),!vl(s.type)){var r;e.reportError(`The type of ${t.name}.${s.name} must be Output Type but got: ${be(s.type)}.`,(r=s.astNode)===null||r===void 0?void 0:r.type)}for(const l of s.args){const c=l.name;if(Ru(e,l),!Gr(l.type)){var i;e.reportError(`The type of ${t.name}.${s.name}(${c}:) must be Input Type but got: ${be(l.type)}.`,(i=l.astNode)===null||i===void 0?void 0:i.type)}if(yl(l)&&l.deprecationReason!=null){var o;e.reportError(`Required argument ${t.name}.${s.name}(${c}:) cannot be deprecated.`,[JS(l.astNode),(o=l.astNode)===null||o===void 0?void 0:o.type])}}}}function pL(e,t){const n=Object.create(null);for(const r of t.getInterfaces()){if(!ot(r)){e.reportError(`Type ${be(t)} must only implement Interface types, it cannot implement ${be(r)}.`,rh(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,rh(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,rh(t,r));continue}n[r.name]=!0,DH(e,t,r),NH(e,t,r)}}function NH(e,t,n){const r=t.getFields();for(const c of Object.values(n.getFields())){const f=c.name,h=r[f];if(!h){e.reportError(`Interface field ${n.name}.${f} expected but ${t.name} does not provide it.`,[c.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!Iu(e.schema,h.type,c.type)){var i,o;e.reportError(`Interface field ${n.name}.${f} expects type ${be(c.type)} but ${t.name}.${f} is type ${be(h.type)}.`,[(i=c.astNode)===null||i===void 0?void 0:i.type,(o=h.astNode)===null||o===void 0?void 0:o.type])}for(const g of c.args){const m=g.name,y=h.args.find(S=>S.name===m);if(!y){e.reportError(`Interface field argument ${n.name}.${f}(${m}:) expected but ${t.name}.${f} does not provide it.`,[g.astNode,h.astNode]);continue}if(!qg(g.type,y.type)){var s,l;e.reportError(`Interface field argument ${n.name}.${f}(${m}:) expects type ${be(g.type)} but ${t.name}.${f}(${m}:) is type ${be(y.type)}.`,[(s=g.astNode)===null||s===void 0?void 0:s.type,(l=y.astNode)===null||l===void 0?void 0:l.type])}}for(const g of h.args){const m=g.name;!c.args.find(S=>S.name===m)&&yl(g)&&e.reportError(`Object field ${t.name}.${f} includes required argument ${m} that is missing from the Interface field ${n.name}.${f}.`,[g.astNode,c.astNode])}}}function DH(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}.`,[...rh(n,i),...rh(t,n)])}function AH(e,t){const n=t.getTypes();n.length===0&&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){if(r[i.name]){e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,hL(t,i.name));continue}r[i.name]=!0,Xe(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${be(i)}.`,hL(t,String(i)))}}function OH(e,t){const n=t.getValues();n.length===0&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(const r of n)Ru(e,r)}function IH(e,t){const n=Object.values(t.getFields());n.length===0&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const o of n){if(Ru(e,o),!Gr(o.type)){var r;e.reportError(`The type of ${t.name}.${o.name} must be Input Type but got: ${be(o.type)}.`,(r=o.astNode)===null||r===void 0?void 0:r.type)}if(Ug(o)&&o.deprecationReason!=null){var i;e.reportError(`Required input field ${t.name}.${o.name} cannot be deprecated.`,[JS(o.astNode),(i=o.astNode)===null||i===void 0?void 0:i.type])}}}function LH(e){const t=Object.create(null),n=[],r=Object.create(null);return i;function i(o){if(t[o.name])return;t[o.name]=!0,r[o.name]=n.length;const s=Object.values(o.getFields());for(const l of s)if(Ge(l.type)&&Tt(l.type.ofType)){const c=l.type.ofType,f=r[c.name];if(n.push(l),f===void 0)i(c);else{const h=n.slice(f),g=h.map(m=>m.name).join(\".\");e.reportError(`Cannot reference Input Object \"${c.name}\" within itself through a series of non-null fields: \"${g}\".`,h.map(m=>m.astNode))}n.pop()}r[o.name]=void 0}}function rh(e,t){const{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(o=>{var s;return(s=o.interfaces)!==null&&s!==void 0?s:[]}).filter(o=>o.name.value===t.name)}function hL(e,t){const{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(o=>{var s;return(s=o.types)!==null&&s!==void 0?s:[]}).filter(o=>o.name.value===t)}function JS(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(n=>n.name.value===Yg.name)}function gr(e,t){switch(t.kind){case q.LIST_TYPE:{const n=gr(e,t.type);return n&&new on(n)}case q.NON_NULL_TYPE:{const n=gr(e,t.type);return n&&new rt(n)}case q.NAMED_TYPE:return e.getType(t.name.value)}}class ps{constructor(t,n,r){this._schema=t,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=r??FH,n&&(Gr(n)&&this._inputTypeStack.push(n),pn(n)&&this._parentTypeStack.push(n),vl(n)&&this._typeStack.push(n))}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(t){const n=this._schema;switch(t.kind){case q.SELECTION_SET:{const i=Nt(this.getType());this._parentTypeStack.push(pn(i)?i:void 0);break}case q.FIELD:{const i=this.getParentType();let o,s;i&&(o=this._getFieldDef(n,i,t),o&&(s=o.type)),this._fieldDefStack.push(o),this._typeStack.push(vl(s)?s:void 0);break}case q.DIRECTIVE:this._directive=n.getDirective(t.name.value);break;case q.OPERATION_DEFINITION:{const i=n.getRootType(t.operation);this._typeStack.push(Xe(i)?i:void 0);break}case q.INLINE_FRAGMENT:case q.FRAGMENT_DEFINITION:{const i=t.typeCondition,o=i?gr(n,i):Nt(this.getType());this._typeStack.push(vl(o)?o:void 0);break}case q.VARIABLE_DEFINITION:{const i=gr(n,t.type);this._inputTypeStack.push(Gr(i)?i:void 0);break}case q.ARGUMENT:{var r;let i,o;const s=(r=this.getDirective())!==null&&r!==void 0?r:this.getFieldDef();s&&(i=s.args.find(l=>l.name===t.name.value),i&&(o=i.type)),this._argument=i,this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push(Gr(o)?o:void 0);break}case q.LIST:{const i=ml(this.getInputType()),o=St(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push(Gr(o)?o:void 0);break}case q.OBJECT_FIELD:{const i=Nt(this.getInputType());let o,s;Tt(i)&&(s=i.getFields()[t.name.value],s&&(o=s.type)),this._defaultValueStack.push(s?s.defaultValue:void 0),this._inputTypeStack.push(Gr(o)?o:void 0);break}case q.ENUM:{const i=Nt(this.getInputType());let o;rn(i)&&(o=i.getValue(t.value)),this._enumValue=o;break}}}leave(t){switch(t.kind){case q.SELECTION_SET:this._parentTypeStack.pop();break;case q.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case q.DIRECTIVE:this._directive=null;break;case q.OPERATION_DEFINITION:case q.INLINE_FRAGMENT:case q.FRAGMENT_DEFINITION:this._typeStack.pop();break;case q.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case q.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case q.LIST:case q.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case q.ENUM:this._enumValue=null;break}}}function FH(e,t,n){const r=n.name.value;if(r===wl.name&&e.getQueryType()===t)return wl;if(r===Sl.name&&e.getQueryType()===t)return Sl;if(r===ds.name&&pn(t))return ds;if(Xe(t)||ot(t))return t.getFields()[r]}function Pu(e,t){return{enter(...n){const r=n[0];e.enter(r);const i=hf(t,r.kind).enter;if(i){const o=i.apply(t,n);return o!==void 0&&(e.leave(r),AS(o)&&e.enter(o)),o}},leave(...n){const r=n[0],i=hf(t,r.kind).leave;let o;return i&&(o=i.apply(t,n)),e.leave(r),o}}}function RH(e){return KS(e)||ty(e)||ZS(e)}function KS(e){return e.kind===q.OPERATION_DEFINITION||e.kind===q.FRAGMENT_DEFINITION}function PH(e){return e.kind===q.FIELD||e.kind===q.FRAGMENT_SPREAD||e.kind===q.INLINE_FRAGMENT}function vL(e){return e.kind===q.VARIABLE||e.kind===q.INT||e.kind===q.FLOAT||e.kind===q.STRING||e.kind===q.BOOLEAN||e.kind===q.NULL||e.kind===q.ENUM||e.kind===q.LIST||e.kind===q.OBJECT}function XS(e){return vL(e)&&(e.kind===q.LIST?e.values.some(XS):e.kind===q.OBJECT?e.fields.some(t=>XS(t.value)):e.kind!==q.VARIABLE)}function MH(e){return e.kind===q.NAMED_TYPE||e.kind===q.LIST_TYPE||e.kind===q.NON_NULL_TYPE}function ty(e){return e.kind===q.SCHEMA_DEFINITION||gf(e)||e.kind===q.DIRECTIVE_DEFINITION}function gf(e){return e.kind===q.SCALAR_TYPE_DEFINITION||e.kind===q.OBJECT_TYPE_DEFINITION||e.kind===q.INTERFACE_TYPE_DEFINITION||e.kind===q.UNION_TYPE_DEFINITION||e.kind===q.ENUM_TYPE_DEFINITION||e.kind===q.INPUT_OBJECT_TYPE_DEFINITION}function ZS(e){return e.kind===q.SCHEMA_EXTENSION||ny(e)}function ny(e){return e.kind===q.SCALAR_TYPE_EXTENSION||e.kind===q.OBJECT_TYPE_EXTENSION||e.kind===q.INTERFACE_TYPE_EXTENSION||e.kind===q.UNION_TYPE_EXTENSION||e.kind===q.ENUM_TYPE_EXTENSION||e.kind===q.INPUT_OBJECT_TYPE_EXTENSION}function eT(e){return{Document(t){for(const n of t.definitions)if(!KS(n)){const r=n.kind===q.SCHEMA_DEFINITION||n.kind===q.SCHEMA_EXTENSION?\"schema\":'\"'+n.name.value+'\"';e.reportError(new he(`The ${r} definition is not executable.`,{nodes:n}))}return!1}}}function mL(e){return{Field(t){const n=e.getParentType();if(n&&!e.getFieldDef()){const i=e.getSchema(),o=t.name.value;let s=ls(\"to use an inline fragment on\",$H(i,n,o));s===\"\"&&(s=ls(VH(n,o))),e.reportError(new he(`Cannot query field \"${o}\" on type \"${n.name}\".`+s,{nodes:t}))}}}}function $H(e,t,n){if(!nr(t))return[];const r=new Set,i=Object.create(null);for(const s of e.getPossibleTypes(t))if(s.getFields()[n]){r.add(s),i[s.name]=1;for(const l of s.getInterfaces()){var o;l.getFields()[n]&&(r.add(l),i[l.name]=((o=i[l.name])!==null&&o!==void 0?o:0)+1)}}return[...r].sort((s,l)=>{const c=i[l.name]-i[s.name];return c!==0?c:ot(s)&&e.isSubType(s,l)?-1:ot(l)&&e.isSubType(l,s)?1:Gp(s.name,l.name)}).map(s=>s.name)}function VH(e,t){if(Xe(e)||ot(e)){const n=Object.keys(e.getFields());return hl(t,n)}return[]}function gL(e){return{InlineFragment(t){const n=t.typeCondition;if(n){const r=gr(e.getSchema(),n);if(r&&!pn(r)){const i=gt(n);e.reportError(new he(`Fragment cannot condition on non composite type \"${i}\".`,{nodes:n}))}}},FragmentDefinition(t){const n=gr(e.getSchema(),t.typeCondition);if(n&&!pn(n)){const r=gt(t.typeCondition);e.reportError(new he(`Fragment \"${t.name.value}\" cannot condition on non composite type \"${r}\".`,{nodes:t.typeCondition}))}}}}function yL(e){return{...bL(e),Argument(t){const n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){const o=t.name.value,s=r.args.map(c=>c.name),l=hl(o,s);e.reportError(new he(`Unknown argument \"${o}\" on field \"${i.name}.${r.name}\".`+ls(l),{nodes:t}))}}}}function bL(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():El;for(const s of r)t[s.name]=s.args.map(l=>l.name);const i=e.getDocument().definitions;for(const s of i)if(s.kind===q.DIRECTIVE_DEFINITION){var o;const l=(o=s.arguments)!==null&&o!==void 0?o:[];t[s.name.value]=l.map(c=>c.name.value)}return{Directive(s){const l=s.name.value,c=t[l];if(s.arguments&&c)for(const f of s.arguments){const h=f.name.value;if(!c.includes(h)){const g=hl(h,c);e.reportError(new he(`Unknown argument \"${h}\" on directive \"@${l}\".`+ls(g),{nodes:f}))}}return!1}}}function ry(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():El;for(const o of r)t[o.name]=o.locations;const i=e.getDocument().definitions;for(const o of i)o.kind===q.DIRECTIVE_DEFINITION&&(t[o.name.value]=o.locations.map(s=>s.value));return{Directive(o,s,l,c,f){const h=o.name.value,g=t[h];if(!g){e.reportError(new he(`Unknown directive \"@${h}\".`,{nodes:o}));return}const m=BH(f);m&&!g.includes(m)&&e.reportError(new he(`Directive \"@${h}\" may not be used on ${m}.`,{nodes:o}))}}}function BH(e){const t=e[e.length-1];switch(\"kind\"in t||An(!1),t.kind){case q.OPERATION_DEFINITION:return jH(t.operation);case q.FIELD:return Pe.FIELD;case q.FRAGMENT_SPREAD:return Pe.FRAGMENT_SPREAD;case q.INLINE_FRAGMENT:return Pe.INLINE_FRAGMENT;case q.FRAGMENT_DEFINITION:return Pe.FRAGMENT_DEFINITION;case q.VARIABLE_DEFINITION:return Pe.VARIABLE_DEFINITION;case q.SCHEMA_DEFINITION:case q.SCHEMA_EXTENSION:return Pe.SCHEMA;case q.SCALAR_TYPE_DEFINITION:case q.SCALAR_TYPE_EXTENSION:return Pe.SCALAR;case q.OBJECT_TYPE_DEFINITION:case q.OBJECT_TYPE_EXTENSION:return Pe.OBJECT;case q.FIELD_DEFINITION:return Pe.FIELD_DEFINITION;case q.INTERFACE_TYPE_DEFINITION:case q.INTERFACE_TYPE_EXTENSION:return Pe.INTERFACE;case q.UNION_TYPE_DEFINITION:case q.UNION_TYPE_EXTENSION:return Pe.UNION;case q.ENUM_TYPE_DEFINITION:case q.ENUM_TYPE_EXTENSION:return Pe.ENUM;case q.ENUM_VALUE_DEFINITION:return Pe.ENUM_VALUE;case q.INPUT_OBJECT_TYPE_DEFINITION:case q.INPUT_OBJECT_TYPE_EXTENSION:return Pe.INPUT_OBJECT;case q.INPUT_VALUE_DEFINITION:{const n=e[e.length-3];return\"kind\"in n||An(!1),n.kind===q.INPUT_OBJECT_TYPE_DEFINITION?Pe.INPUT_FIELD_DEFINITION:Pe.ARGUMENT_DEFINITION}default:An(!1,\"Unexpected kind: \"+be(t.kind))}}function jH(e){switch(e){case tr.QUERY:return Pe.QUERY;case tr.MUTATION:return Pe.MUTATION;case tr.SUBSCRIPTION:return Pe.SUBSCRIPTION}}function tT(e){return{FragmentSpread(t){const n=t.name.value;e.getFragment(n)||e.reportError(new he(`Unknown fragment \"${n}\".`,{nodes:t.name}))}}}function iy(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(const o of e.getDocument().definitions)gf(o)&&(r[o.name.value]=!0);const i=[...Object.keys(n),...Object.keys(r)];return{NamedType(o,s,l,c,f){const h=o.name.value;if(!n[h]&&!r[h]){var g;const m=(g=f[2])!==null&&g!==void 0?g:l,y=m!=null&&UH(m);if(y&&EL.includes(h))return;const S=hl(h,y?EL.concat(i):i);e.reportError(new he(`Unknown type \"${h}\".`+ls(S),{nodes:o}))}}}}const EL=[...Xp,...nh].map(e=>e.name);function UH(e){return\"kind\"in e&&(ty(e)||ZS(e))}function wL(e){let t=0;return{Document(n){t=n.definitions.filter(r=>r.kind===q.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new he(\"This anonymous operation must be the only defined operation.\",{nodes:n}))}}}function nT(e){var t,n,r;const i=e.getSchema(),o=(t=(n=(r=i==null?void 0:i.astNode)!==null&&r!==void 0?r:i==null?void 0:i.getQueryType())!==null&&n!==void 0?n:i==null?void 0:i.getMutationType())!==null&&t!==void 0?t:i==null?void 0:i.getSubscriptionType();let s=0;return{SchemaDefinition(l){if(o){e.reportError(new he(\"Cannot define a new schema within a schema extension.\",{nodes:l}));return}s>0&&e.reportError(new he(\"Must provide only one schema definition.\",{nodes:l})),++s}}}function SL(e){const t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(o){return i(o),!1}};function i(o){if(t[o.name.value])return;const s=o.name.value;t[s]=!0;const l=e.getFragmentSpreads(o.selectionSet);if(l.length!==0){r[s]=n.length;for(const c of l){const f=c.name.value,h=r[f];if(n.push(c),h===void 0){const g=e.getFragment(f);g&&i(g)}else{const g=n.slice(h),m=g.slice(0,-1).map(y=>'\"'+y.name.value+'\"').join(\", \");e.reportError(new he(`Cannot spread fragment \"${f}\" within itself`+(m!==\"\"?` via ${m}.`:\".\"),{nodes:g}))}n.pop()}r[s]=void 0}}}function TL(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 o=i.name.value;t[o]!==!0&&e.reportError(new he(n.name?`Variable \"$${o}\" is not defined by operation \"${n.name.value}\".`:`Variable \"$${o}\" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(n){t[n.variable.name.value]=!0}}}function rT(e){const t=[],n=[];return{OperationDefinition(r){return t.push(r),!1},FragmentDefinition(r){return n.push(r),!1},Document:{leave(){const r=Object.create(null);for(const i of t)for(const o of e.getRecursivelyReferencedFragments(i))r[o.name.value]=!0;for(const i of n){const o=i.name.value;r[o]!==!0&&e.reportError(new he(`Fragment \"${o}\" is never used.`,{nodes:i}))}}}}}function _L(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){const r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(const{node:o}of i)r[o.name.value]=!0;for(const o of t){const s=o.variable.name.value;r[s]!==!0&&e.reportError(new he(n.name?`Variable \"$${s}\" is never used in operation \"${n.name.value}\".`:`Variable \"$${s}\" is never used.`,{nodes:o}))}}},VariableDefinition(n){t.push(n)}}}function oy(e){switch(e.kind){case q.OBJECT:return{...e,fields:qH(e.fields)};case q.LIST:return{...e,values:e.values.map(oy)};case q.INT:case q.FLOAT:case q.STRING:case q.BOOLEAN:case q.NULL:case q.ENUM:case q.VARIABLE:return e}}function qH(e){return e.map(t=>({...t,value:oy(t.value)})).sort((t,n)=>Gp(t.name.value,n.name.value))}function CL(e){return Array.isArray(e)?e.map(([t,n])=>`subfields \"${t}\" conflict because `+CL(n)).join(\" and \"):e}function xL(e){const t=new QH,n=new Map;return{SelectionSet(r){const i=HH(e,n,t,e.getParentType(),r);for(const[[o,s],l,c]of i){const f=CL(s);e.reportError(new he(`Fields \"${o}\" conflict because ${f}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:l.concat(c)}))}}}}function HH(e,t,n,r,i){const o=[],[s,l]=ly(e,t,r,i);if(GH(e,o,t,n,s),l.length!==0)for(let c=0;c<l.length;c++){ay(e,o,t,n,!1,s,l[c]);for(let f=c+1;f<l.length;f++)sy(e,o,t,n,!1,l[c],l[f])}return o}function ay(e,t,n,r,i,o,s){const l=e.getFragment(s);if(!l)return;const[c,f]=aT(e,n,l);if(o!==c){iT(e,t,n,r,i,o,c);for(const h of f)r.has(h,s,i)||(r.add(h,s,i),ay(e,t,n,r,i,o,h))}}function sy(e,t,n,r,i,o,s){if(o===s||r.has(o,s,i))return;r.add(o,s,i);const l=e.getFragment(o),c=e.getFragment(s);if(!l||!c)return;const[f,h]=aT(e,n,l),[g,m]=aT(e,n,c);iT(e,t,n,r,i,f,g);for(const y of m)sy(e,t,n,r,i,o,y);for(const y of h)sy(e,t,n,r,i,y,s)}function zH(e,t,n,r,i,o,s,l){const c=[],[f,h]=ly(e,t,i,o),[g,m]=ly(e,t,s,l);iT(e,c,t,n,r,f,g);for(const y of m)ay(e,c,t,n,r,f,y);for(const y of h)ay(e,c,t,n,r,g,y);for(const y of h)for(const S of m)sy(e,c,t,n,r,y,S);return c}function GH(e,t,n,r,i){for(const[o,s]of Object.entries(i))if(s.length>1)for(let l=0;l<s.length;l++)for(let c=l+1;c<s.length;c++){const f=kL(e,n,r,!1,o,s[l],s[c]);f&&t.push(f)}}function iT(e,t,n,r,i,o,s){for(const[l,c]of Object.entries(o)){const f=s[l];if(f)for(const h of c)for(const g of f){const m=kL(e,n,r,i,l,h,g);m&&t.push(m)}}}function kL(e,t,n,r,i,o,s){const[l,c,f]=o,[h,g,m]=s,y=r||l!==h&&Xe(l)&&Xe(h);if(!y){const b=c.name.value,C=g.name.value;if(b!==C)return[[i,`\"${b}\" and \"${C}\" are different fields`],[c],[g]];if(NL(c)!==NL(g))return[[i,\"they have differing arguments\"],[c],[g]]}const S=f==null?void 0:f.type,x=m==null?void 0:m.type;if(S&&x&&oT(S,x))return[[i,`they return conflicting types \"${be(S)}\" and \"${be(x)}\"`],[c],[g]];const D=c.selectionSet,_=g.selectionSet;if(D&&_){const b=zH(e,t,n,y,Nt(S),D,Nt(x),_);return WH(b,i,c,g)}}function NL(e){var t;const n=(t=e.arguments)!==null&&t!==void 0?t:[],r={kind:q.OBJECT,fields:n.map(i=>({kind:q.OBJECT_FIELD,name:i.name,value:i.value}))};return gt(oy(r))}function oT(e,t){return St(e)?St(t)?oT(e.ofType,t.ofType):!0:St(t)?!0:Ge(e)?Ge(t)?oT(e.ofType,t.ofType):!0:Ge(t)?!0:Wr(e)||Wr(t)?e!==t:!1}function ly(e,t,n,r){const i=t.get(r);if(i)return i;const o=Object.create(null),s=Object.create(null);DL(e,n,r,o,s);const l=[o,Object.keys(s)];return t.set(r,l),l}function aT(e,t,n){const r=t.get(n.selectionSet);if(r)return r;const i=gr(e.getSchema(),n.typeCondition);return ly(e,t,i,n.selectionSet)}function DL(e,t,n,r,i){for(const o of n.selections)switch(o.kind){case q.FIELD:{const s=o.name.value;let l;(Xe(t)||ot(t))&&(l=t.getFields()[s]);const c=o.alias?o.alias.value:s;r[c]||(r[c]=[]),r[c].push([t,o,l]);break}case q.FRAGMENT_SPREAD:i[o.name.value]=!0;break;case q.INLINE_FRAGMENT:{const s=o.typeCondition,l=s?gr(e.getSchema(),s):t;DL(e,l,o.selectionSet,r,i);break}}}function WH(e,t,n,r){if(e.length>0)return[[t,e.map(([i])=>i)],[n,...e.map(([,i])=>i).flat()],[r,...e.map(([,,i])=>i).flat()]]}class QH{constructor(){this._data=new Map}has(t,n,r){var i;const[o,s]=t<n?[t,n]:[n,t],l=(i=this._data.get(o))===null||i===void 0?void 0:i.get(s);return l===void 0?!1:r?!0:r===l}add(t,n,r){const[i,o]=t<n?[t,n]:[n,t],s=this._data.get(i);s===void 0?this._data.set(i,new Map([[o,r]])):s.set(o,r)}}function AL(e){return{InlineFragment(t){const n=e.getType(),r=e.getParentType();if(pn(n)&&pn(r)&&!Qp(e.getSchema(),n,r)){const i=be(r),o=be(n);e.reportError(new he(`Fragment cannot be spread here as objects of type \"${i}\" can never be of type \"${o}\".`,{nodes:t}))}},FragmentSpread(t){const n=t.name.value,r=YH(e,n),i=e.getParentType();if(r&&i&&!Qp(e.getSchema(),r,i)){const o=be(i),s=be(r);e.reportError(new he(`Fragment \"${n}\" cannot be spread here as objects of type \"${o}\" can never be of type \"${s}\".`,{nodes:t}))}}}}function YH(e,t){const n=e.getFragment(t);if(n){const r=gr(e.getSchema(),n.typeCondition);if(pn(r))return r}}function sT(e){const t=e.getSchema(),n=Object.create(null);for(const i of e.getDocument().definitions)gf(i)&&(n[i.name.value]=i);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(i){const o=i.name.value,s=n[o],l=t==null?void 0:t.getType(o);let c;if(s?c=JH[s.kind]:l&&(c=KH(l)),c){if(c!==i.kind){const f=XH(i.kind);e.reportError(new he(`Cannot extend non-${f} type \"${o}\".`,{nodes:s?[s,i]:i}))}}else{const f=Object.keys({...n,...t==null?void 0:t.getTypeMap()}),h=hl(o,f);e.reportError(new he(`Cannot extend type \"${o}\" because it is not defined.`+ls(h),{nodes:i.name}))}}}const JH={[q.SCALAR_TYPE_DEFINITION]:q.SCALAR_TYPE_EXTENSION,[q.OBJECT_TYPE_DEFINITION]:q.OBJECT_TYPE_EXTENSION,[q.INTERFACE_TYPE_DEFINITION]:q.INTERFACE_TYPE_EXTENSION,[q.UNION_TYPE_DEFINITION]:q.UNION_TYPE_EXTENSION,[q.ENUM_TYPE_DEFINITION]:q.ENUM_TYPE_EXTENSION,[q.INPUT_OBJECT_TYPE_DEFINITION]:q.INPUT_OBJECT_TYPE_EXTENSION};function KH(e){if(ui(e))return q.SCALAR_TYPE_EXTENSION;if(Xe(e))return q.OBJECT_TYPE_EXTENSION;if(ot(e))return q.INTERFACE_TYPE_EXTENSION;if(On(e))return q.UNION_TYPE_EXTENSION;if(rn(e))return q.ENUM_TYPE_EXTENSION;if(Tt(e))return q.INPUT_OBJECT_TYPE_EXTENSION;An(!1,\"Unexpected type: \"+be(e))}function XH(e){switch(e){case q.SCALAR_TYPE_EXTENSION:return\"scalar\";case q.OBJECT_TYPE_EXTENSION:return\"object\";case q.INTERFACE_TYPE_EXTENSION:return\"interface\";case q.UNION_TYPE_EXTENSION:return\"union\";case q.ENUM_TYPE_EXTENSION:return\"enum\";case q.INPUT_OBJECT_TYPE_EXTENSION:return\"input object\";default:An(!1,\"Unexpected kind: \"+be(e))}}function OL(e){return{...IL(e),Field:{leave(t){var n;const r=e.getFieldDef();if(!r)return!1;const i=new Set((n=t.arguments)===null||n===void 0?void 0:n.map(o=>o.name.value));for(const o of r.args)if(!i.has(o.name)&&yl(o)){const s=be(o.type);e.reportError(new he(`Field \"${r.name}\" argument \"${o.name}\" of type \"${s}\" is required, but it was not provided.`,{nodes:t}))}}}}}function IL(e){var t;const n=Object.create(null),r=e.getSchema(),i=(t=r==null?void 0:r.getDirectives())!==null&&t!==void 0?t:El;for(const l of i)n[l.name]=us(l.args.filter(yl),c=>c.name);const o=e.getDocument().definitions;for(const l of o)if(l.kind===q.DIRECTIVE_DEFINITION){var s;const c=(s=l.arguments)!==null&&s!==void 0?s:[];n[l.name.value]=us(c.filter(ZH),f=>f.name.value)}return{Directive:{leave(l){const c=l.name.value,f=n[c];if(f){var h;const g=(h=l.arguments)!==null&&h!==void 0?h:[],m=new Set(g.map(y=>y.name.value));for(const[y,S]of Object.entries(f))if(!m.has(y)){const x=vf(S.type)?be(S.type):gt(S.type);e.reportError(new he(`Directive \"@${c}\" argument \"${y}\" of type \"${x}\" is required, but it was not provided.`,{nodes:l}))}}}}}}function ZH(e){return e.type.kind===q.NON_NULL_TYPE&&e.defaultValue==null}function LL(e){return{Field(t){const n=e.getType(),r=t.selectionSet;if(n){if(Wr(Nt(n))){if(r){const i=t.name.value,o=be(n);e.reportError(new he(`Field \"${i}\" must not have a selection since type \"${o}\" has no subfields.`,{nodes:r}))}}else if(!r){const i=t.name.value,o=be(n);e.reportError(new he(`Field \"${i}\" of type \"${o}\" must have a selection of subfields. Did you mean \"${i} { ... }\"?`,{nodes:t}))}}}}}function FL(e){return e.map(t=>typeof t==\"number\"?\"[\"+t.toString()+\"]\":\".\"+t).join(\"\")}function yf(e,t,n){return{prev:e,key:t,typename:n}}function di(e){const t=[];let n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}function lT(e,t,n=ez){return ih(e,t,n,void 0)}function ez(e,t,n){let r=\"Invalid value \"+be(t);throw e.length>0&&(r+=` at \"value${FL(e)}\"`),n.message=r+\": \"+n.message,n}function ih(e,t,n,r){if(Ge(t)){if(e!=null)return ih(e,t.ofType,n,r);n(di(r),e,new he(`Expected non-nullable type \"${be(t)}\" not to be null.`));return}if(e==null)return null;if(St(t)){const i=t.ofType;return US(e)?Array.from(e,(o,s)=>{const l=yf(r,s,void 0);return ih(o,i,n,l)}):[ih(e,i,n,r)]}if(Tt(t)){if(!Ji(e)){n(di(r),e,new he(`Expected type \"${t.name}\" to be an object.`));return}const i={},o=t.getFields();for(const s of Object.values(o)){const l=e[s.name];if(l===void 0){if(s.defaultValue!==void 0)i[s.name]=s.defaultValue;else if(Ge(s.type)){const c=be(s.type);n(di(r),e,new he(`Field \"${s.name}\" of required type \"${c}\" was not provided.`))}continue}i[s.name]=ih(l,s.type,n,yf(r,s.name,t.name))}for(const s of Object.keys(e))if(!o[s]){const l=hl(s,Object.keys(t.getFields()));n(di(r),e,new he(`Field \"${s}\" is not defined by type \"${t.name}\".`+ls(l)))}return i}if(Wr(t)){let i;try{i=t.parseValue(e)}catch(o){o instanceof he?n(di(r),e,o):n(di(r),e,new he(`Expected type \"${t.name}\". `+o.message,{originalError:o}));return}return i===void 0&&n(di(r),e,new he(`Expected type \"${t.name}\".`)),i}An(!1,\"Unexpected input type: \"+be(t))}function So(e,t,n){if(e){if(e.kind===q.VARIABLE){const r=e.name.value;if(n==null||n[r]===void 0)return;const i=n[r];return i===null&&Ge(t)?void 0:i}if(Ge(t))return e.kind===q.NULL?void 0:So(e,t.ofType,n);if(e.kind===q.NULL)return null;if(St(t)){const r=t.ofType;if(e.kind===q.LIST){const o=[];for(const s of e.values)if(RL(s,n)){if(Ge(r))return;o.push(null)}else{const l=So(s,r,n);if(l===void 0)return;o.push(l)}return o}const i=So(e,r,n);return i===void 0?void 0:[i]}if(Tt(t)){if(e.kind!==q.OBJECT)return;const r=Object.create(null),i=us(e.fields,o=>o.name.value);for(const o of Object.values(t.getFields())){const s=i[o.name];if(!s||RL(s.value,n)){if(o.defaultValue!==void 0)r[o.name]=o.defaultValue;else if(Ge(o.type))return;continue}const l=So(s.value,o.type,n);if(l===void 0)return;r[o.name]=l}return r}if(Wr(t)){let r;try{r=t.parseLiteral(e,n)}catch{return}return r===void 0?void 0:r}An(!1,\"Unexpected input type: \"+be(t))}}function RL(e,t){return e.kind===q.VARIABLE&&(t==null||t[e.name.value]===void 0)}function PL(e,t,n,r){const i=[],o=r==null?void 0:r.maxErrors;try{const s=tz(e,t,n,l=>{if(o!=null&&i.length>=o)throw new he(\"Too many errors processing variables, error limit reached. Execution aborted.\");i.push(l)});if(i.length===0)return{coerced:s}}catch(s){i.push(s)}return{errors:i}}function tz(e,t,n,r){const i={};for(const o of t){const s=o.variable.name.value,l=gr(e,o.type);if(!Gr(l)){const f=gt(o.type);r(new he(`Variable \"$${s}\" expected value of type \"${f}\" which cannot be used as an input type.`,{nodes:o.type}));continue}if(!ML(n,s)){if(o.defaultValue)i[s]=So(o.defaultValue,l);else if(Ge(l)){const f=be(l);r(new he(`Variable \"$${s}\" of required type \"${f}\" was not provided.`,{nodes:o}))}continue}const c=n[s];if(c===null&&Ge(l)){const f=be(l);r(new he(`Variable \"$${s}\" of non-null type \"${f}\" must not be null.`,{nodes:o}));continue}i[s]=lT(c,l,(f,h,g)=>{let m=`Variable \"$${s}\" got invalid value `+be(h);f.length>0&&(m+=` at \"${s}${FL(f)}\"`),r(new he(m+\"; \"+g.message,{nodes:o,originalError:g.originalError}))})}return i}function uy(e,t,n){var r;const i={},o=(r=t.arguments)!==null&&r!==void 0?r:[],s=us(o,l=>l.name.value);for(const l of e.args){const c=l.name,f=l.type,h=s[c];if(!h){if(l.defaultValue!==void 0)i[c]=l.defaultValue;else if(Ge(f))throw new he(`Argument \"${c}\" of required type \"${be(f)}\" was not provided.`,{nodes:t});continue}const g=h.value;let m=g.kind===q.NULL;if(g.kind===q.VARIABLE){const S=g.name.value;if(n==null||!ML(n,S)){if(l.defaultValue!==void 0)i[c]=l.defaultValue;else if(Ge(f))throw new he(`Argument \"${c}\" of required type \"${be(f)}\" was provided the variable \"$${S}\" which was not provided a runtime value.`,{nodes:g});continue}m=n[S]==null}if(m&&Ge(f))throw new he(`Argument \"${c}\" of non-null type \"${be(f)}\" must not be null.`,{nodes:g});const y=So(g,f,n);if(y===void 0)throw new he(`Argument \"${c}\" has invalid value ${gt(g)}.`,{nodes:g});i[c]=y}return i}function hs(e,t,n){var r;const i=(r=t.directives)===null||r===void 0?void 0:r.find(o=>o.name.value===e.name);if(i)return uy(e,i,n)}function ML(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function uT(e,t,n,r,i){const o=new Map;return cy(e,t,n,r,i,o,new Set),o}function nz(e,t,n,r,i){const o=new Map,s=new Set;for(const l of i)l.selectionSet&&cy(e,t,n,r,l.selectionSet,o,s);return o}function cy(e,t,n,r,i,o,s){for(const l of i.selections)switch(l.kind){case q.FIELD:{if(!cT(n,l))continue;const c=rz(l),f=o.get(c);f!==void 0?f.push(l):o.set(c,[l]);break}case q.INLINE_FRAGMENT:{if(!cT(n,l)||!$L(e,l,r))continue;cy(e,t,n,r,l.selectionSet,o,s);break}case q.FRAGMENT_SPREAD:{const c=l.name.value;if(s.has(c)||!cT(n,l))continue;s.add(c);const f=t[c];if(!f||!$L(e,f,r))continue;cy(e,t,n,r,f.selectionSet,o,s);break}}}function cT(e,t){const n=hs(Qg,t,e);if((n==null?void 0:n.if)===!0)return!1;const r=hs(Wg,t,e);return(r==null?void 0:r.if)!==!1}function $L(e,t,n){const r=t.typeCondition;if(!r)return!0;const i=gr(e,r);return i===n?!0:nr(i)?e.isSubType(i,n):!1}function rz(e){return e.alias?e.alias.value:e.name.value}function VL(e){return{OperationDefinition(t){if(t.operation===\"subscription\"){const n=e.getSchema(),r=n.getSubscriptionType();if(r){const i=t.name?t.name.value:null,o=Object.create(null),s=e.getDocument(),l=Object.create(null);for(const f of s.definitions)f.kind===q.FRAGMENT_DEFINITION&&(l[f.name.value]=f);const c=uT(n,l,o,r,t.selectionSet);if(c.size>1){const g=[...c.values()].slice(1).flat();e.reportError(new he(i!=null?`Subscription \"${i}\" must select only one top level field.`:\"Anonymous Subscription must select only one top level field.\",{nodes:g}))}for(const f of c.values())f[0].name.value.startsWith(\"__\")&&e.reportError(new he(i!=null?`Subscription \"${i}\" must not select an introspection top level field.`:\"Anonymous Subscription must not select an introspection top level field.\",{nodes:f}))}}}}}function fT(e,t){const n=new Map;for(const r of e){const i=t(r),o=n.get(i);o===void 0?n.set(i,[r]):o.push(r)}return n}function BL(e){return{DirectiveDefinition(r){var i;const o=(i=r.arguments)!==null&&i!==void 0?i:[];return n(`@${r.name.value}`,o)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(r){var i;const o=r.name.value,s=(i=r.fields)!==null&&i!==void 0?i:[];for(const c of s){var l;const f=c.name.value,h=(l=c.arguments)!==null&&l!==void 0?l:[];n(`${o}.${f}`,h)}return!1}function n(r,i){const o=fT(i,s=>s.name.value);for(const[s,l]of o)l.length>1&&e.reportError(new he(`Argument \"${r}(${s}:)\" can only be defined once.`,{nodes:l.map(c=>c.name)}));return!1}}function fy(e){return{Field:t,Directive:t};function t(n){var r;const i=(r=n.arguments)!==null&&r!==void 0?r:[],o=fT(i,s=>s.name.value);for(const[s,l]of o)l.length>1&&e.reportError(new he(`There can be only one argument named \"${s}\".`,{nodes:l.map(c=>c.name)}))}}function dT(e){const t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){const i=r.name.value;if(n!=null&&n.getDirective(i)){e.reportError(new he(`Directive \"@${i}\" already exists in the schema. It cannot be redefined.`,{nodes:r.name}));return}return t[i]?e.reportError(new he(`There can be only one directive named \"@${i}\".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}}}function dy(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():El;for(const l of r)t[l.name]=!l.isRepeatable;const i=e.getDocument().definitions;for(const l of i)l.kind===q.DIRECTIVE_DEFINITION&&(t[l.name.value]=!l.repeatable);const o=Object.create(null),s=Object.create(null);return{enter(l){if(!(\"directives\"in l)||!l.directives)return;let c;if(l.kind===q.SCHEMA_DEFINITION||l.kind===q.SCHEMA_EXTENSION)c=o;else if(gf(l)||ny(l)){const f=l.name.value;c=s[f],c===void 0&&(s[f]=c=Object.create(null))}else c=Object.create(null);for(const f of l.directives){const h=f.name.value;t[h]&&(c[h]?e.reportError(new he(`The directive \"@${h}\" can only be used once at this location.`,{nodes:[c[h],f]})):c[h]=f)}}}}function pT(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(o){var s;const l=o.name.value;r[l]||(r[l]=Object.create(null));const c=(s=o.values)!==null&&s!==void 0?s:[],f=r[l];for(const h of c){const g=h.name.value,m=n[l];rn(m)&&m.getValue(g)?e.reportError(new he(`Enum value \"${l}.${g}\" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:h.name})):f[g]?e.reportError(new he(`Enum value \"${l}.${g}\" can only be defined once.`,{nodes:[f[g],h.name]})):f[g]=h.name}return!1}}function hT(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(o){var s;const l=o.name.value;r[l]||(r[l]=Object.create(null));const c=(s=o.fields)!==null&&s!==void 0?s:[],f=r[l];for(const h of c){const g=h.name.value;iz(n[l],g)?e.reportError(new he(`Field \"${l}.${g}\" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:h.name})):f[g]?e.reportError(new he(`Field \"${l}.${g}\" can only be defined once.`,{nodes:[f[g],h.name]})):f[g]=h.name}return!1}}function iz(e,t){return Xe(e)||ot(e)||Tt(e)?e.getFields()[t]!=null:!1}function jL(e){const t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){const r=n.name.value;return t[r]?e.reportError(new he(`There can be only one fragment named \"${r}\".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}function py(e){const t=[];let n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){const r=t.pop();r||An(!1),n=r}},ObjectField(r){const i=r.name.value;n[i]?e.reportError(new he(`There can be only one input field named \"${i}\".`,{nodes:[n[i],r.name]})):n[i]=r.name}}}function UL(e){const t=Object.create(null);return{OperationDefinition(n){const r=n.name;return r&&(t[r.value]?e.reportError(new he(`There can be only one operation named \"${r.value}\".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}function vT(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(o){var s;const l=(s=o.operationTypes)!==null&&s!==void 0?s:[];for(const c of l){const f=c.operation,h=n[f];r[f]?e.reportError(new he(`Type for ${f} already defined in the schema. It cannot be redefined.`,{nodes:c})):h?e.reportError(new he(`There can be only one ${f} type in schema.`,{nodes:[h,c]})):n[f]=c}return!1}}function mT(e){const t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(i){const o=i.name.value;if(n!=null&&n.getType(o)){e.reportError(new he(`Type \"${o}\" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:i.name}));return}return t[o]?e.reportError(new he(`There can be only one type named \"${o}\".`,{nodes:[t[o],i.name]})):t[o]=i.name,!1}}function qL(e){return{OperationDefinition(t){var n;const r=(n=t.variableDefinitions)!==null&&n!==void 0?n:[],i=fT(r,o=>o.variable.name.value);for(const[o,s]of i)s.length>1&&e.reportError(new he(`There can be only one variable named \"$${o}\".`,{nodes:s.map(l=>l.variable.name)}))}}}function HL(e){return{ListValue(t){const n=ml(e.getParentInputType());if(!St(n))return Mu(e,t),!1},ObjectValue(t){const n=Nt(e.getInputType());if(!Tt(n))return Mu(e,t),!1;const r=us(t.fields,i=>i.name.value);for(const i of Object.values(n.getFields()))if(!r[i.name]&&Ug(i)){const s=be(i.type);e.reportError(new he(`Field \"${n.name}.${i.name}\" of required type \"${s}\" was not provided.`,{nodes:t}))}},ObjectField(t){const n=Nt(e.getParentInputType());if(!e.getInputType()&&Tt(n)){const i=hl(t.name.value,Object.keys(n.getFields()));e.reportError(new he(`Field \"${t.name.value}\" is not defined by type \"${n.name}\".`+ls(i),{nodes:t}))}},NullValue(t){const n=e.getInputType();Ge(n)&&e.reportError(new he(`Expected value of type \"${be(n)}\", found ${gt(t)}.`,{nodes:t}))},EnumValue:t=>Mu(e,t),IntValue:t=>Mu(e,t),FloatValue:t=>Mu(e,t),StringValue:t=>Mu(e,t),BooleanValue:t=>Mu(e,t)}}function Mu(e,t){const n=e.getInputType();if(!n)return;const r=Nt(n);if(!Wr(r)){const i=be(n);e.reportError(new he(`Expected value of type \"${i}\", found ${gt(t)}.`,{nodes:t}));return}try{if(r.parseLiteral(t,void 0)===void 0){const o=be(n);e.reportError(new he(`Expected value of type \"${o}\", found ${gt(t)}.`,{nodes:t}))}}catch(i){const o=be(n);i instanceof he?e.reportError(i):e.reportError(new he(`Expected value of type \"${o}\", found ${gt(t)}; `+i.message,{nodes:t,originalError:i}))}}function zL(e){return{VariableDefinition(t){const n=gr(e.getSchema(),t.type);if(n!==void 0&&!Gr(n)){const r=t.variable.name.value,i=gt(t.type);e.reportError(new he(`Variable \"$${r}\" cannot be non-input type \"${i}\".`,{nodes:t.type}))}}}}function GL(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:s}of r){const l=i.name.value,c=t[l];if(c&&o){const f=e.getSchema(),h=gr(f,c.type);if(h&&!oz(f,h,c.defaultValue,o,s)){const g=be(h),m=be(o);e.reportError(new he(`Variable \"$${l}\" of type \"${g}\" used in position expecting type \"${m}\".`,{nodes:[c,i]}))}}}}},VariableDefinition(n){t[n.variable.name.value]=n}}}function oz(e,t,n,r,i){if(Ge(r)&&!Ge(t)){if(!(n!=null&&n.kind!==q.NULL)&&!(i!==void 0))return!1;const l=r.ofType;return Iu(e,t,l)}return Iu(e,t,r)}const gT=Object.freeze([eT,UL,wL,VL,iy,gL,zL,LL,mL,jL,tT,rT,AL,SL,qL,TL,_L,ry,dy,yL,fy,HL,OL,GL,xL,py]),az=Object.freeze([nT,vT,mT,pT,hT,BL,dT,iy,ry,dy,sT,bL,fy,py,IL]);class WL{constructor(t,n){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}get[Symbol.toStringTag](){return\"ASTValidationContext\"}reportError(t){this._onError(t)}getDocument(){return this._ast}getFragment(t){let n;if(this._fragments)n=this._fragments;else{n=Object.create(null);for(const r of this.getDocument().definitions)r.kind===q.FRAGMENT_DEFINITION&&(n[r.name.value]=r);this._fragments=n}return n[t]}getFragmentSpreads(t){let n=this._fragmentSpreads.get(t);if(!n){n=[];const r=[t];let i;for(;i=r.pop();)for(const o of i.selections)o.kind===q.FRAGMENT_SPREAD?n.push(o):o.selectionSet&&r.push(o.selectionSet);this._fragmentSpreads.set(t,n)}return n}getRecursivelyReferencedFragments(t){let n=this._recursivelyReferencedFragments.get(t);if(!n){n=[];const r=Object.create(null),i=[t.selectionSet];let o;for(;o=i.pop();)for(const s of this.getFragmentSpreads(o)){const l=s.name.value;if(r[l]!==!0){r[l]=!0;const c=this.getFragment(l);c&&(n.push(c),i.push(c.selectionSet))}}this._recursivelyReferencedFragments.set(t,n)}return n}}class sz extends WL{constructor(t,n,r){super(t,r),this._schema=n}get[Symbol.toStringTag](){return\"SDLValidationContext\"}getSchema(){return this._schema}}class QL extends WL{constructor(t,n,r,i){super(n,i),this._schema=t,this._typeInfo=r,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return\"ValidationContext\"}getSchema(){return this._schema}getVariableUsages(t){let n=this._variableUsages.get(t);if(!n){const r=[],i=new ps(this._schema);Hn(t,Pu(i,{VariableDefinition:()=>!1,Variable(o){r.push({node:o,type:i.getInputType(),defaultValue:i.getDefaultValue()})}})),n=r,this._variableUsages.set(t,n)}return n}getRecursiveVariableUsages(t){let n=this._recursiveVariableUsages.get(t);if(!n){n=this.getVariableUsages(t);for(const r of this.getRecursivelyReferencedFragments(t))n=n.concat(this.getVariableUsages(r));this._recursiveVariableUsages.set(t,n)}return n}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 oh(e,t,n=gT,r,i=new ps(e)){var o;const s=(o=r==null?void 0:r.maxErrors)!==null&&o!==void 0?o:100;t||pt(!1,\"Must provide document.\"),ey(e);const l=Object.freeze({}),c=[],f=new QL(e,t,i,g=>{if(c.length>=s)throw c.push(new he(\"Too many validation errors, error limit reached. Validation aborted.\")),l;c.push(g)}),h=PS(n.map(g=>g(f)));try{Hn(t,Pu(i,h))}catch(g){if(g!==l)throw g}return c}function YL(e,t,n=az){const r=[],i=new sz(e,t,s=>{r.push(s)}),o=n.map(s=>s(i));return Hn(e,PS(o)),r}function lz(e){const t=YL(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(`\n\n`))}function uz(e,t){const n=YL(e,t);if(n.length!==0)throw new Error(n.map(r=>r.message).join(`\n\n`))}function cz(e){let t;return function(r,i,o){t===void 0&&(t=new WeakMap);let s=t.get(r);s===void 0&&(s=new WeakMap,t.set(r,s));let l=s.get(i);l===void 0&&(l=new WeakMap,s.set(i,l));let c=l.get(o);return c===void 0&&(c=e(r,i,o),l.set(o,c)),c}}function fz(e){return Promise.all(Object.values(e)).then(t=>{const n=Object.create(null);for(const[r,i]of Object.keys(e).entries())n[i]=t[r];return n})}function dz(e,t,n){let r=n;for(const i of e)r=Yi(r)?r.then(o=>t(o,i)):t(r,i);return r}function pz(e){return e instanceof Error?e:new hz(e)}class hz extends Error{constructor(t){super(\"Unexpected error value: \"+be(t)),this.name=\"NonErrorThrown\",this.thrownValue=t}}function In(e,t,n){var r;const i=pz(e);return vz(i)?i:new he(i.message,{nodes:(r=i.nodes)!==null&&r!==void 0?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}function vz(e){return Array.isArray(e.path)}const mz=cz((e,t,n)=>nz(e.schema,e.fragments,e.variableValues,t,n));function hy(e){arguments.length<2||pt(!1,\"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.\");const{schema:t,document:n,variableValues:r,rootValue:i}=e;KL(t,n,r);const o=XL(e);if(!(\"schema\"in o))return{errors:o};try{const{operation:s}=o,l=gz(o,s,i);return Yi(l)?l.then(c=>vy(c,o.errors),c=>(o.errors.push(c),vy(null,o.errors))):vy(l,o.errors)}catch(s){return o.errors.push(s),vy(null,o.errors)}}function JL(e){const t=hy(e);if(Yi(t))throw new Error(\"GraphQL execution failed to complete synchronously.\");return t}function vy(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function KL(e,t,n){t||pt(!1,\"Must provide document.\"),ey(e),n==null||Ji(n)||pt(!1,\"Variables must be provided as an Object where each property is a variable value. Perhaps look to see if an unparsed JSON string was provided.\")}function XL(e){var t,n;const{schema:r,document:i,rootValue:o,contextValue:s,variableValues:l,operationName:c,fieldResolver:f,typeResolver:h,subscribeFieldResolver:g}=e;let m;const y=Object.create(null);for(const D of i.definitions)switch(D.kind){case q.OPERATION_DEFINITION:if(c==null){if(m!==void 0)return[new he(\"Must provide operation name if query contains multiple operations.\")];m=D}else((t=D.name)===null||t===void 0?void 0:t.value)===c&&(m=D);break;case q.FRAGMENT_DEFINITION:y[D.name.value]=D;break}if(!m)return c!=null?[new he(`Unknown operation named \"${c}\".`)]:[new he(\"Must provide an operation.\")];const S=(n=m.variableDefinitions)!==null&&n!==void 0?n:[],x=PL(r,S,l??{},{maxErrors:50});return x.errors?x.errors:{schema:r,fragments:y,rootValue:o,contextValue:s,operation:m,variableValues:x.coerced,fieldResolver:f??yy,typeResolver:h??rF,subscribeFieldResolver:g??yy,errors:[]}}function gz(e,t,n){const r=e.schema.getRootType(t.operation);if(r==null)throw new he(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});const i=uT(e.schema,e.fragments,e.variableValues,r,t.selectionSet),o=void 0;switch(t.operation){case tr.QUERY:return my(e,r,n,o,i);case tr.MUTATION:return yz(e,r,n,o,i);case tr.SUBSCRIPTION:return my(e,r,n,o,i)}}function yz(e,t,n,r,i){return dz(i.entries(),(o,[s,l])=>{const c=yf(r,s,t.name),f=ZL(e,t,n,l,c);return f===void 0?o:Yi(f)?f.then(h=>(o[s]=h,o)):(o[s]=f,o)},Object.create(null))}function my(e,t,n,r,i){const o=Object.create(null);let s=!1;for(const[l,c]of i.entries()){const f=yf(r,l,t.name),h=ZL(e,t,n,c,f);h!==void 0&&(o[l]=h,Yi(h)&&(s=!0))}return s?fz(o):o}function ZL(e,t,n,r,i){var o;const s=iF(e.schema,t,r[0]);if(!s)return;const l=s.type,c=(o=s.resolve)!==null&&o!==void 0?o:e.fieldResolver,f=eF(e,s,r,t,i);try{const h=uy(s,r[0],e.variableValues),g=e.contextValue,m=c(n,h,g,f);let y;return Yi(m)?y=m.then(S=>ah(e,l,r,f,i,S)):y=ah(e,l,r,f,i,m),Yi(y)?y.then(void 0,S=>{const x=In(S,r,di(i));return gy(x,l,e)}):y}catch(h){const g=In(h,r,di(i));return gy(g,l,e)}}function eF(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function gy(e,t,n){if(Ge(t))throw e;return n.errors.push(e),null}function ah(e,t,n,r,i,o){if(o instanceof Error)throw o;if(Ge(t)){const s=ah(e,t.ofType,n,r,i,o);if(s===null)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return s}if(o==null)return null;if(St(t))return bz(e,t,n,r,i,o);if(Wr(t))return Ez(t,o);if(nr(t))return wz(e,t,n,r,i,o);if(Xe(t))return yT(e,t,n,r,i,o);An(!1,\"Cannot complete value of unexpected output type: \"+be(t))}function bz(e,t,n,r,i,o){if(!US(o))throw new he(`Expected Iterable, but did not find one for field \"${r.parentType.name}.${r.fieldName}\".`);const s=t.ofType;let l=!1;const c=Array.from(o,(f,h)=>{const g=yf(i,h,void 0);try{let m;return Yi(f)?m=f.then(y=>ah(e,s,n,r,g,y)):m=ah(e,s,n,r,g,f),Yi(m)?(l=!0,m.then(void 0,y=>{const S=In(y,n,di(g));return gy(S,s,e)})):m}catch(m){const y=In(m,n,di(g));return gy(y,s,e)}});return l?Promise.all(c):c}function Ez(e,t){const n=e.serialize(t);if(n==null)throw new Error(`Expected \\`${be(e)}.serialize(${be(t)})\\` to return non-nullable value, returned: ${be(n)}`);return n}function wz(e,t,n,r,i,o){var s;const l=(s=t.resolveType)!==null&&s!==void 0?s:e.typeResolver,c=e.contextValue,f=l(o,c,r,t);return Yi(f)?f.then(h=>yT(e,tF(h,e,t,n,r,o),n,r,i,o)):yT(e,tF(f,e,t,n,r,o),n,r,i,o)}function tF(e,t,n,r,i,o){if(e==null)throw new he(`Abstract type \"${n.name}\" must resolve to an Object type at runtime for field \"${i.parentType.name}.${i.fieldName}\". Either the \"${n.name}\" type should provide a \"resolveType\" function or each possible type should provide an \"isTypeOf\" function.`,r);if(Xe(e))throw new he(\"Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.\");if(typeof e!=\"string\")throw new he(`Abstract type \"${n.name}\" must resolve to an Object type at runtime for field \"${i.parentType.name}.${i.fieldName}\" with value ${be(o)}, received \"${be(e)}\".`);const s=t.schema.getType(e);if(s==null)throw new he(`Abstract type \"${n.name}\" was resolved to a type \"${e}\" that does not exist inside the schema.`,{nodes:r});if(!Xe(s))throw new he(`Abstract type \"${n.name}\" was resolved to a non-object type \"${e}\".`,{nodes:r});if(!t.schema.isSubType(n,s))throw new he(`Runtime Object type \"${s.name}\" is not a possible type for \"${n.name}\".`,{nodes:r});return s}function yT(e,t,n,r,i,o){const s=mz(e,t,n);if(t.isTypeOf){const l=t.isTypeOf(o,e.contextValue,r);if(Yi(l))return l.then(c=>{if(!c)throw nF(t,o,n);return my(e,t,o,i,s)});if(!l)throw nF(t,o,n)}return my(e,t,o,i,s)}function nF(e,t,n){return new he(`Expected value of type \"${e.name}\" but got: ${be(t)}.`,{nodes:n})}const rF=function(e,t,n,r){if(Ji(e)&&typeof e.__typename==\"string\")return e.__typename;const i=n.schema.getPossibleTypes(r),o=[];for(let s=0;s<i.length;s++){const l=i[s];if(l.isTypeOf){const c=l.isTypeOf(e,t,n);if(Yi(c))o[s]=c;else if(c)return l.name}}if(o.length)return Promise.all(o).then(s=>{for(let l=0;l<s.length;l++)if(s[l])return i[l].name})},yy=function(e,t,n,r){if(Ji(e)||typeof e==\"function\"){const i=e[r.fieldName];return typeof i==\"function\"?e[r.fieldName](t,n,r):i}};function iF(e,t,n){const r=n.name.value;return r===wl.name&&e.getQueryType()===t?wl:r===Sl.name&&e.getQueryType()===t?Sl:r===ds.name?ds:t.getFields()[r]}function Sz(e){return new Promise(t=>t(oF(e)))}function Tz(e){const t=oF(e);if(Yi(t))throw new Error(\"GraphQL execution failed to complete synchronously.\");return t}function oF(e){arguments.length<2||pt(!1,\"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.\");const{schema:t,source:n,rootValue:r,contextValue:i,variableValues:o,operationName:s,fieldResolver:l,typeResolver:c}=e,f=Zg(t);if(f.length>0)return{errors:f};let h;try{h=zr(n)}catch(m){return{errors:[m]}}const g=oh(t,h);return g.length>0?{errors:g}:hy({schema:t,document:h,rootValue:r,contextValue:i,variableValues:o,operationName:s,fieldResolver:l,typeResolver:c})}function aF(e){return typeof(e==null?void 0:e[Symbol.asyncIterator])==\"function\"}function _z(e,t){const n=e[Symbol.asyncIterator]();async function r(i){if(i.done)return i;try{return{value:await t(i.value),done:!1}}catch(o){if(typeof n.return==\"function\")try{await n.return()}catch{}throw o}}return{async next(){return r(await n.next())},async return(){return typeof n.return==\"function\"?r(await n.return()):{value:void 0,done:!0}},async throw(i){if(typeof n.throw==\"function\")return r(await n.throw(i));throw i},[Symbol.asyncIterator](){return this}}}async function Cz(e){arguments.length<2||pt(!1,\"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.\");const t=await sF(e);return aF(t)?_z(t,r=>hy({...e,rootValue:r})):t}function xz(e){const t=e[0];return t&&\"document\"in t?t:{schema:t,document:e[1],rootValue:e[2],contextValue:e[3],variableValues:e[4],operationName:e[5],subscribeFieldResolver:e[6]}}async function sF(...e){const t=xz(e),{schema:n,document:r,variableValues:i}=t;KL(n,r,i);const o=XL(t);if(!(\"schema\"in o))return{errors:o};try{const s=await kz(o);if(!aF(s))throw new Error(`Subscription field must return Async Iterable. Received: ${be(s)}.`);return s}catch(s){if(s instanceof he)return{errors:[s]};throw s}}async function kz(e){const{schema:t,fragments:n,operation:r,variableValues:i,rootValue:o}=e,s=t.getSubscriptionType();if(s==null)throw new he(\"Schema is not configured to execute subscription operation.\",{nodes:r});const l=uT(t,n,i,s,r.selectionSet),[c,f]=[...l.entries()][0],h=iF(t,s,f[0]);if(!h){const S=f[0].name.value;throw new he(`The subscription field \"${S}\" is not defined.`,{nodes:f})}const g=yf(void 0,c,s.name),m=eF(e,h,f,s,g);try{var y;const S=uy(h,f[0],i),x=e.contextValue,_=await((y=h.subscribe)!==null&&y!==void 0?y:e.subscribeFieldResolver)(o,S,x,m);if(_ instanceof Error)throw _;return _}catch(S){throw In(S,f,di(g))}}function lF(e){return{Field(t){const n=e.getFieldDef(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){const i=e.getParentType();i!=null||An(!1),e.reportError(new he(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:t}))}},Argument(t){const n=e.getArgument(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){const i=e.getDirective();if(i!=null)e.reportError(new he(`Directive \"@${i.name}\" argument \"${n.name}\" is deprecated. ${r}`,{nodes:t}));else{const o=e.getParentType(),s=e.getFieldDef();o!=null&&s!=null||An(!1),e.reportError(new he(`Field \"${o.name}.${s.name}\" argument \"${n.name}\" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){const n=Nt(e.getParentInputType());if(Tt(n)){const r=n.getFields()[t.name.value],i=r==null?void 0:r.deprecationReason;i!=null&&e.reportError(new he(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){const n=e.getEnumValue(),r=n==null?void 0:n.deprecationReason;if(n&&r!=null){const i=Nt(e.getInputType());i!=null||An(!1),e.reportError(new he(`The enum value \"${i.name}.${n.name}\" is deprecated. ${r}`,{nodes:t}))}}}}function Nz(e){return{Field(t){const n=Nt(e.getType());n&&Lu(n)&&e.reportError(new he(`GraphQL introspection has been disabled, but the requested query contained the field \"${t.name.value}\".`,{nodes:t}))}}}function by(e){const t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,...e},n=t.descriptions?\"description\":\"\",r=t.specifiedByUrl?\"specifiedByURL\":\"\",i=t.directiveIsRepeatable?\"isRepeatable\":\"\",o=t.schemaDescription?n:\"\";function s(l){return t.inputValueDeprecation?l:\"\"}return`\n query IntrospectionQuery {\n __schema {\n ${o}\n queryType { name }\n mutationType { name }\n subscriptionType { name }\n types {\n ...FullType\n }\n directives {\n name\n ${n}\n ${i}\n locations\n args${s(\"(includeDeprecated: true)\")} {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ${n}\n ${r}\n fields(includeDeprecated: true) {\n name\n ${n}\n args${s(\"(includeDeprecated: true)\")} {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields${s(\"(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 ${s(\"isDeprecated\")}\n ${s(\"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 }\n }\n }\n }\n }\n }\n }\n }\n `}function bT(e,t){let n=null;for(const i of e.definitions)if(i.kind===q.OPERATION_DEFINITION){var r;if(t==null){if(n)return null;n=i}else if(((r=i.name)===null||r===void 0?void 0:r.value)===t)return i}return n}function Dz(e,t){if(t.operation===\"query\"){const n=e.getQueryType();if(!n)throw new he(\"Schema does not define the required query root type.\",{nodes:t});return n}if(t.operation===\"mutation\"){const n=e.getMutationType();if(!n)throw new he(\"Schema is not configured for mutations.\",{nodes:t});return n}if(t.operation===\"subscription\"){const n=e.getSubscriptionType();if(!n)throw new he(\"Schema is not configured for subscriptions.\",{nodes:t});return n}throw new he(\"Can only have query, mutation and subscription operations.\",{nodes:t})}function Az(e,t){const n={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,...t},r=zr(by(n)),i=JL({schema:e,document:r});return!i.errors&&i.data||An(!1),i.data}function ET(e,t){Ji(e)&&Ji(e.__schema)||pt(!1,`Invalid or incomplete introspection result. Ensure that you are passing \"data\" property of introspection response and no \"errors\" was returned alongside: ${be(e)}.`);const n=e.__schema,r=pl(n.types,P=>P.name,P=>m(P));for(const P of[...Xp,...nh])r[P.name]&&(r[P.name]=P);const i=n.queryType?h(n.queryType):null,o=n.mutationType?h(n.mutationType):null,s=n.subscriptionType?h(n.subscriptionType):null,l=n.directives?n.directives.map(A):[];return new Fu({description:n.description,query:i,mutation:o,subscription:s,types:Object.values(r),directives:l,assumeValid:t==null?void 0:t.assumeValid});function c(P){if(P.kind===qt.LIST){const V=P.ofType;if(!V)throw new Error(\"Decorated type deeper than introspection query.\");return new on(c(V))}if(P.kind===qt.NON_NULL){const V=P.ofType;if(!V)throw new Error(\"Decorated type deeper than introspection query.\");const H=c(V);return new rt(oL(H))}return f(P)}function f(P){const V=P.name;if(!V)throw new Error(`Unknown type reference: ${be(P)}.`);const H=r[V];if(!H)throw new Error(`Invalid or incomplete schema, unknown type: ${V}. Ensure that a full introspection query is used in order to build a client schema.`);return H}function h(P){return nL(f(P))}function g(P){return rL(f(P))}function m(P){if(P!=null&&P.name!=null&&P.kind!=null)switch(P.kind){case qt.SCALAR:return y(P);case qt.OBJECT:return x(P);case qt.INTERFACE:return D(P);case qt.UNION:return _(P);case qt.ENUM:return b(P);case qt.INPUT_OBJECT:return C(P)}const V=be(P);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${V}.`)}function y(P){return new Eo({name:P.name,description:P.description,specifiedByURL:P.specifiedByURL})}function S(P){if(P.interfaces===null&&P.kind===qt.INTERFACE)return[];if(!P.interfaces){const V=be(P);throw new Error(`Introspection result missing interfaces: ${V}.`)}return P.interfaces.map(g)}function x(P){return new rr({name:P.name,description:P.description,interfaces:()=>S(P),fields:()=>T(P)})}function D(P){return new ci({name:P.name,description:P.description,interfaces:()=>S(P),fields:()=>T(P)})}function _(P){if(!P.possibleTypes){const V=be(P);throw new Error(`Introspection result missing possibleTypes: ${V}.`)}return new bl({name:P.name,description:P.description,types:()=>P.possibleTypes.map(h)})}function b(P){if(!P.enumValues){const V=be(P);throw new Error(`Introspection result missing enumValues: ${V}.`)}return new Qr({name:P.name,description:P.description,values:pl(P.enumValues,V=>V.name,V=>({description:V.description,deprecationReason:V.deprecationReason}))})}function C(P){if(!P.inputFields){const V=be(P);throw new Error(`Introspection result missing inputFields: ${V}.`)}return new fi({name:P.name,description:P.description,fields:()=>F(P.inputFields)})}function T(P){if(!P.fields)throw new Error(`Introspection result missing fields: ${be(P)}.`);return pl(P.fields,V=>V.name,N)}function N(P){const V=c(P.type);if(!vl(V)){const H=be(V);throw new Error(`Introspection must provide output type for fields, but received: ${H}.`)}if(!P.args){const H=be(P);throw new Error(`Introspection result missing field args: ${H}.`)}return{description:P.description,deprecationReason:P.deprecationReason,type:V,args:F(P.args)}}function F(P){return pl(P,V=>V.name,L)}function L(P){const V=c(P.type);if(!Gr(V)){const G=be(V);throw new Error(`Introspection must provide input type for arguments, but received: ${G}.`)}const H=P.defaultValue!=null?So(J2(P.defaultValue),V):void 0;return{description:P.description,type:V,defaultValue:H,deprecationReason:P.deprecationReason}}function A(P){if(!P.args){const V=be(P);throw new Error(`Introspection result missing directive args: ${V}.`)}if(!P.locations){const V=be(P);throw new Error(`Introspection result missing directive locations: ${V}.`)}return new Xi({name:P.name,description:P.description,isRepeatable:P.isRepeatable,locations:P.locations.slice(),args:F(P.args)})}}function Oz(e,t,n){QS(e),t!=null&&t.kind===q.DOCUMENT||pt(!1,\"Must provide valid Document AST.\"),(n==null?void 0:n.assumeValid)!==!0&&(n==null?void 0:n.assumeValidSDL)!==!0&&uz(t,e);const r=e.toConfig(),i=uF(r,t,n);return r===i?e:new Fu(i)}function uF(e,t,n){var r,i,o,s;const l=[],c=Object.create(null),f=[];let h;const g=[];for(const K of t.definitions)if(K.kind===q.SCHEMA_DEFINITION)h=K;else if(K.kind===q.SCHEMA_EXTENSION)g.push(K);else if(gf(K))l.push(K);else if(ny(K)){const ve=K.name.value,ue=c[ve];c[ve]=ue?ue.concat([K]):[K]}else K.kind===q.DIRECTIVE_DEFINITION&&f.push(K);if(Object.keys(c).length===0&&l.length===0&&f.length===0&&g.length===0&&h==null)return e;const m=Object.create(null);for(const K of e.types)m[K.name]=b(K);for(const K of l){var y;const ve=K.name.value;m[ve]=(y=cF[ve])!==null&&y!==void 0?y:de(K)}const S={query:e.query&&D(e.query),mutation:e.mutation&&D(e.mutation),subscription:e.subscription&&D(e.subscription),...h&&H([h]),...H(g)};return{description:(r=h)===null||r===void 0||(i=r.description)===null||i===void 0?void 0:i.value,...S,types:Object.values(m),directives:[...e.directives.map(_),...f.map(U)],extensions:Object.create(null),astNode:(o=h)!==null&&o!==void 0?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(g),assumeValid:(s=n==null?void 0:n.assumeValid)!==null&&s!==void 0?s:!1};function x(K){return St(K)?new on(x(K.ofType)):Ge(K)?new rt(x(K.ofType)):D(K)}function D(K){return m[K.name]}function _(K){const ve=K.toConfig();return new Xi({...ve,args:cs(ve.args,V)})}function b(K){if(Lu(K)||Zp(K))return K;if(ui(K))return N(K);if(Xe(K))return F(K);if(ot(K))return L(K);if(On(K))return A(K);if(rn(K))return T(K);if(Tt(K))return C(K);An(!1,\"Unexpected type: \"+be(K))}function C(K){var ve;const ue=K.toConfig(),ce=(ve=c[ue.name])!==null&&ve!==void 0?ve:[];return new fi({...ue,fields:()=>({...cs(ue.fields,le=>({...le,type:x(le.type)})),...ne(ce)}),extensionASTNodes:ue.extensionASTNodes.concat(ce)})}function T(K){var ve;const ue=K.toConfig(),ce=(ve=c[K.name])!==null&&ve!==void 0?ve:[];return new Qr({...ue,values:{...ue.values,...J(ce)},extensionASTNodes:ue.extensionASTNodes.concat(ce)})}function N(K){var ve;const ue=K.toConfig(),ce=(ve=c[ue.name])!==null&&ve!==void 0?ve:[];let le=ue.specifiedByURL;for(const Ce of ce){var we;le=(we=fF(Ce))!==null&&we!==void 0?we:le}return new Eo({...ue,specifiedByURL:le,extensionASTNodes:ue.extensionASTNodes.concat(ce)})}function F(K){var ve;const ue=K.toConfig(),ce=(ve=c[ue.name])!==null&&ve!==void 0?ve:[];return new rr({...ue,interfaces:()=>[...K.getInterfaces().map(D),...re(ce)],fields:()=>({...cs(ue.fields,P),...j(ce)}),extensionASTNodes:ue.extensionASTNodes.concat(ce)})}function L(K){var ve;const ue=K.toConfig(),ce=(ve=c[ue.name])!==null&&ve!==void 0?ve:[];return new ci({...ue,interfaces:()=>[...K.getInterfaces().map(D),...re(ce)],fields:()=>({...cs(ue.fields,P),...j(ce)}),extensionASTNodes:ue.extensionASTNodes.concat(ce)})}function A(K){var ve;const ue=K.toConfig(),ce=(ve=c[ue.name])!==null&&ve!==void 0?ve:[];return new bl({...ue,types:()=>[...K.getTypes().map(D),...Z(ce)],extensionASTNodes:ue.extensionASTNodes.concat(ce)})}function P(K){return{...K,type:x(K.type),args:K.args&&cs(K.args,V)}}function V(K){return{...K,type:x(K.type)}}function H(K){const ve={};for(const ce of K){var ue;const le=(ue=ce.operationTypes)!==null&&ue!==void 0?ue:[];for(const we of le)ve[we.operation]=G(we.type)}return ve}function G(K){var ve;const ue=K.name.value,ce=(ve=cF[ue])!==null&&ve!==void 0?ve:m[ue];if(ce===void 0)throw new Error(`Unknown type: \"${ue}\".`);return ce}function z(K){return K.kind===q.LIST_TYPE?new on(z(K.type)):K.kind===q.NON_NULL_TYPE?new rt(z(K.type)):G(K)}function U(K){var ve;return new Xi({name:K.name.value,description:(ve=K.description)===null||ve===void 0?void 0:ve.value,locations:K.locations.map(({value:ue})=>ue),isRepeatable:K.repeatable,args:X(K.arguments),astNode:K})}function j(K){const ve=Object.create(null);for(const le of K){var ue;const we=(ue=le.fields)!==null&&ue!==void 0?ue:[];for(const Ce of we){var ce;ve[Ce.name.value]={type:z(Ce.type),description:(ce=Ce.description)===null||ce===void 0?void 0:ce.value,args:X(Ce.arguments),deprecationReason:Ey(Ce),astNode:Ce}}}return ve}function X(K){const ve=K??[],ue=Object.create(null);for(const le of ve){var ce;const we=z(le.type);ue[le.name.value]={type:we,description:(ce=le.description)===null||ce===void 0?void 0:ce.value,defaultValue:So(le.defaultValue,we),deprecationReason:Ey(le),astNode:le}}return ue}function ne(K){const ve=Object.create(null);for(const le of K){var ue;const we=(ue=le.fields)!==null&&ue!==void 0?ue:[];for(const Ce of we){var ce;const qe=z(Ce.type);ve[Ce.name.value]={type:qe,description:(ce=Ce.description)===null||ce===void 0?void 0:ce.value,defaultValue:So(Ce.defaultValue,qe),deprecationReason:Ey(Ce),astNode:Ce}}}return ve}function J(K){const ve=Object.create(null);for(const le of K){var ue;const we=(ue=le.values)!==null&&ue!==void 0?ue:[];for(const Ce of we){var ce;ve[Ce.name.value]={description:(ce=Ce.description)===null||ce===void 0?void 0:ce.value,deprecationReason:Ey(Ce),astNode:Ce}}}return ve}function re(K){return K.flatMap(ve=>{var ue,ce;return(ue=(ce=ve.interfaces)===null||ce===void 0?void 0:ce.map(G))!==null&&ue!==void 0?ue:[]})}function Z(K){return K.flatMap(ve=>{var ue,ce;return(ue=(ce=ve.types)===null||ce===void 0?void 0:ce.map(G))!==null&&ue!==void 0?ue:[]})}function de(K){var ve;const ue=K.name.value,ce=(ve=c[ue])!==null&&ve!==void 0?ve:[];switch(K.kind){case q.OBJECT_TYPE_DEFINITION:{var le;const et=[K,...ce];return new rr({name:ue,description:(le=K.description)===null||le===void 0?void 0:le.value,interfaces:()=>re(et),fields:()=>j(et),astNode:K,extensionASTNodes:ce})}case q.INTERFACE_TYPE_DEFINITION:{var we;const et=[K,...ce];return new ci({name:ue,description:(we=K.description)===null||we===void 0?void 0:we.value,interfaces:()=>re(et),fields:()=>j(et),astNode:K,extensionASTNodes:ce})}case q.ENUM_TYPE_DEFINITION:{var Ce;const et=[K,...ce];return new Qr({name:ue,description:(Ce=K.description)===null||Ce===void 0?void 0:Ce.value,values:J(et),astNode:K,extensionASTNodes:ce})}case q.UNION_TYPE_DEFINITION:{var qe;const et=[K,...ce];return new bl({name:ue,description:(qe=K.description)===null||qe===void 0?void 0:qe.value,types:()=>Z(et),astNode:K,extensionASTNodes:ce})}case q.SCALAR_TYPE_DEFINITION:{var un;return new Eo({name:ue,description:(un=K.description)===null||un===void 0?void 0:un.value,specifiedByURL:fF(K),astNode:K,extensionASTNodes:ce})}case q.INPUT_OBJECT_TYPE_DEFINITION:{var nt;const et=[K,...ce];return new fi({name:ue,description:(nt=K.description)===null||nt===void 0?void 0:nt.value,fields:()=>ne(et),astNode:K,extensionASTNodes:ce})}}}}const cF=us([...Xp,...nh],e=>e.name);function Ey(e){const t=hs(Yg,e);return t==null?void 0:t.reason}function fF(e){const t=hs(jS,e);return t==null?void 0:t.url}function wy(e,t){e!=null&&e.kind===q.DOCUMENT||pt(!1,\"Must provide valid Document AST.\"),(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&lz(e);const r=uF({description:void 0,types:[],directives:[],extensions:Object.create(null),extensionASTNodes:[],assumeValid:!1},e,t);if(r.astNode==null)for(const o of r.types)switch(o.name){case\"Query\":r.query=o;break;case\"Mutation\":r.mutation=o;break;case\"Subscription\":r.subscription=o;break}const i=[...r.directives,...El.filter(o=>r.directives.every(s=>s.name!==o.name))];return new Fu({...r,directives:i})}function wT(e,t){const n=zr(e,{noLocation:t==null?void 0:t.noLocation,allowLegacyFragmentVariables:t==null?void 0:t.allowLegacyFragmentVariables});return wy(n,{assumeValidSDL:t==null?void 0:t.assumeValidSDL,assumeValid:t==null?void 0:t.assumeValid})}function Iz(e){const t=e.toConfig(),n=pl(ST(t.types),m=>m.name,g);return new Fu({...t,types:Object.values(n),directives:ST(t.directives).map(s),query:o(t.query),mutation:o(t.mutation),subscription:o(t.subscription)});function r(m){return St(m)?new on(r(m.ofType)):Ge(m)?new rt(r(m.ofType)):i(m)}function i(m){return n[m.name]}function o(m){return m&&i(m)}function s(m){const y=m.toConfig();return new Xi({...y,locations:dF(y.locations,S=>S),args:l(y.args)})}function l(m){return Sy(m,y=>({...y,type:r(y.type)}))}function c(m){return Sy(m,y=>({...y,type:r(y.type),args:y.args&&l(y.args)}))}function f(m){return Sy(m,y=>({...y,type:r(y.type)}))}function h(m){return ST(m).map(i)}function g(m){if(ui(m)||Lu(m))return m;if(Xe(m)){const y=m.toConfig();return new rr({...y,interfaces:()=>h(y.interfaces),fields:()=>c(y.fields)})}if(ot(m)){const y=m.toConfig();return new ci({...y,interfaces:()=>h(y.interfaces),fields:()=>c(y.fields)})}if(On(m)){const y=m.toConfig();return new bl({...y,types:()=>h(y.types)})}if(rn(m)){const y=m.toConfig();return new Qr({...y,values:Sy(y.values,S=>S)})}if(Tt(m)){const y=m.toConfig();return new fi({...y,fields:()=>f(y.fields)})}An(!1,\"Unexpected type: \"+be(m))}}function Sy(e,t){const n=Object.create(null);for(const r of Object.keys(e).sort(Gp))n[r]=t(e[r]);return n}function ST(e){return dF(e,t=>t.name)}function dF(e,t){return e.slice().sort((n,r)=>{const i=t(n),o=t(r);return Gp(i,o)})}function Lz(e){return pF(e,t=>!Jg(t),Rz)}function Fz(e){return pF(e,Jg,Lu)}function Rz(e){return!Zp(e)&&!Lu(e)}function pF(e,t,n){const r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[Pz(e),...r.map(o=>Hz(o)),...i.map(o=>hF(o))].filter(Boolean).join(`\n\n`)}function Pz(e){if(e.description==null&&Mz(e))return;const t=[],n=e.getQueryType();n&&t.push(` query: ${n.name}`);const r=e.getMutationType();r&&t.push(` mutation: ${r.name}`);const i=e.getSubscriptionType();return i&&t.push(` subscription: ${i.name}`),To(e)+`schema {\n${t.join(`\n`)}\n}`}function Mz(e){const t=e.getQueryType();if(t&&t.name!==\"Query\")return!1;const n=e.getMutationType();if(n&&n.name!==\"Mutation\")return!1;const r=e.getSubscriptionType();return!(r&&r.name!==\"Subscription\")}function hF(e){if(ui(e))return $z(e);if(Xe(e))return Vz(e);if(ot(e))return Bz(e);if(On(e))return jz(e);if(rn(e))return Uz(e);if(Tt(e))return qz(e);An(!1,\"Unexpected type: \"+be(e))}function $z(e){return To(e)+`scalar ${e.name}`+zz(e)}function vF(e){const t=e.getInterfaces();return t.length?\" implements \"+t.map(n=>n.name).join(\" & \"):\"\"}function Vz(e){return To(e)+`type ${e.name}`+vF(e)+mF(e)}function Bz(e){return To(e)+`interface ${e.name}`+vF(e)+mF(e)}function jz(e){const t=e.getTypes(),n=t.length?\" = \"+t.join(\" | \"):\"\";return To(e)+\"union \"+e.name+n}function Uz(e){const t=e.getValues().map((n,r)=>To(n,\" \",!r)+\" \"+n.name+CT(n.deprecationReason));return To(e)+`enum ${e.name}`+TT(t)}function qz(e){const t=Object.values(e.getFields()).map((n,r)=>To(n,\" \",!r)+\" \"+_T(n));return To(e)+`input ${e.name}`+TT(t)}function mF(e){const t=Object.values(e.getFields()).map((n,r)=>To(n,\" \",!r)+\" \"+n.name+gF(n.args,\" \")+\": \"+String(n.type)+CT(n.deprecationReason));return TT(t)}function TT(e){return e.length!==0?` {\n`+e.join(`\n`)+`\n}`:\"\"}function gF(e,t=\"\"){return e.length===0?\"\":e.every(n=>!n.description)?\"(\"+e.map(_T).join(\", \")+\")\":`(\n`+e.map((n,r)=>To(n,\" \"+t,!r)+\" \"+t+_T(n)).join(`\n`)+`\n`+t+\")\"}function _T(e){const t=fs(e.defaultValue,e.type);let n=e.name+\": \"+String(e.type);return t&&(n+=` = ${gt(t)}`),n+CT(e.deprecationReason)}function Hz(e){return To(e)+\"directive @\"+e.name+gF(e.args)+(e.isRepeatable?\" repeatable\":\"\")+\" on \"+e.locations.join(\" | \")}function CT(e){return e==null?\"\":e!==BS?` @deprecated(reason: ${gt({kind:q.STRING,value:e})})`:\" @deprecated\"}function zz(e){return e.specifiedByURL==null?\"\":` @specifiedBy(url: ${gt({kind:q.STRING,value:e.specifiedByURL})})`}function To(e,t=\"\",n=!0){const{description:r}=e;if(r==null)return\"\";const i=gt({kind:q.STRING,value:r,block:Lq(r)});return(t&&!n?`\n`+t:t)+i.replace(/\\n/g,`\n`+t)+`\n`}function Gz(e){const t=[];for(const n of e)t.push(...n.definitions);return{kind:q.DOCUMENT,definitions:t}}function Wz(e){const t=[],n=Object.create(null);for(const i of e.definitions)switch(i.kind){case q.OPERATION_DEFINITION:t.push(i);break;case q.FRAGMENT_DEFINITION:n[i.name.value]=bF(i.selectionSet);break}const r=Object.create(null);for(const i of t){const o=new Set;for(const l of bF(i.selectionSet))yF(o,n,l);const s=i.name?i.name.value:\"\";r[s]={kind:q.DOCUMENT,definitions:e.definitions.filter(l=>l===i||l.kind===q.FRAGMENT_DEFINITION&&o.has(l.name.value))}}return r}function yF(e,t,n){if(!e.has(n)){e.add(n);const r=t[n];if(r!==void 0)for(const i of r)yF(e,t,i)}}function bF(e){const t=[];return Hn(e,{FragmentSpread(n){t.push(n.name.value)}}),t}function EF(e){const t=Y2(e)?e:new zp(e),n=t.body,r=new LS(t);let i=\"\",o=!1;for(;r.advance().kind!==ge.EOF;){const s=r.token,l=s.kind,c=!H2(s.kind);o&&(c||s.kind===ge.SPREAD)&&(i+=\" \");const f=n.slice(s.start,s.end);l===ge.BLOCK_STRING?i+=q2(s.value,{minimize:!0}):i+=f,o=c}return i}function Qz(e){const t=wF(e);if(t)throw t;return e}function wF(e){if(typeof e==\"string\"||pt(!1,\"Expected name to be a string.\"),e.startsWith(\"__\"))return new he(`Name \"${e}\" must not begin with \"__\", which is reserved by GraphQL introspection.`);try{Ki(e)}catch(t){return t}}var Tn;(function(e){e.TYPE_REMOVED=\"TYPE_REMOVED\",e.TYPE_CHANGED_KIND=\"TYPE_CHANGED_KIND\",e.TYPE_REMOVED_FROM_UNION=\"TYPE_REMOVED_FROM_UNION\",e.VALUE_REMOVED_FROM_ENUM=\"VALUE_REMOVED_FROM_ENUM\",e.REQUIRED_INPUT_FIELD_ADDED=\"REQUIRED_INPUT_FIELD_ADDED\",e.IMPLEMENTED_INTERFACE_REMOVED=\"IMPLEMENTED_INTERFACE_REMOVED\",e.FIELD_REMOVED=\"FIELD_REMOVED\",e.FIELD_CHANGED_KIND=\"FIELD_CHANGED_KIND\",e.REQUIRED_ARG_ADDED=\"REQUIRED_ARG_ADDED\",e.ARG_REMOVED=\"ARG_REMOVED\",e.ARG_CHANGED_KIND=\"ARG_CHANGED_KIND\",e.DIRECTIVE_REMOVED=\"DIRECTIVE_REMOVED\",e.DIRECTIVE_ARG_REMOVED=\"DIRECTIVE_ARG_REMOVED\",e.REQUIRED_DIRECTIVE_ARG_ADDED=\"REQUIRED_DIRECTIVE_ARG_ADDED\",e.DIRECTIVE_REPEATABLE_REMOVED=\"DIRECTIVE_REPEATABLE_REMOVED\",e.DIRECTIVE_LOCATION_REMOVED=\"DIRECTIVE_LOCATION_REMOVED\"})(Tn||(Tn={}));var na;(function(e){e.VALUE_ADDED_TO_ENUM=\"VALUE_ADDED_TO_ENUM\",e.TYPE_ADDED_TO_UNION=\"TYPE_ADDED_TO_UNION\",e.OPTIONAL_INPUT_FIELD_ADDED=\"OPTIONAL_INPUT_FIELD_ADDED\",e.OPTIONAL_ARG_ADDED=\"OPTIONAL_ARG_ADDED\",e.IMPLEMENTED_INTERFACE_ADDED=\"IMPLEMENTED_INTERFACE_ADDED\",e.ARG_DEFAULT_VALUE_CHANGE=\"ARG_DEFAULT_VALUE_CHANGE\"})(na||(na={}));function Yz(e,t){return SF(e,t).filter(n=>n.type in Tn)}function Jz(e,t){return SF(e,t).filter(n=>n.type in na)}function SF(e,t){return[...Xz(e,t),...Kz(e,t)]}function Kz(e,t){const n=[],r=vs(e.getDirectives(),t.getDirectives());for(const i of r.removed)n.push({type:Tn.DIRECTIVE_REMOVED,description:`${i.name} was removed.`});for(const[i,o]of r.persisted){const s=vs(i.args,o.args);for(const l of s.added)yl(l)&&n.push({type:Tn.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${l.name} on directive ${i.name} was added.`});for(const l of s.removed)n.push({type:Tn.DIRECTIVE_ARG_REMOVED,description:`${l.name} was removed from ${i.name}.`});i.isRepeatable&&!o.isRepeatable&&n.push({type:Tn.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${i.name}.`});for(const l of i.locations)o.locations.includes(l)||n.push({type:Tn.DIRECTIVE_LOCATION_REMOVED,description:`${l} was removed from ${i.name}.`})}return n}function Xz(e,t){const n=[],r=vs(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(const i of r.removed)n.push({type:Tn.TYPE_REMOVED,description:Zp(i)?`Standard scalar ${i.name} was removed because it is not referenced anymore.`:`${i.name} was removed.`});for(const[i,o]of r.persisted)rn(i)&&rn(o)?n.push(...tG(i,o)):On(i)&&On(o)?n.push(...eG(i,o)):Tt(i)&&Tt(o)?n.push(...Zz(i,o)):Xe(i)&&Xe(o)?n.push(..._F(i,o),...TF(i,o)):ot(i)&&ot(o)?n.push(..._F(i,o),...TF(i,o)):i.constructor!==o.constructor&&n.push({type:Tn.TYPE_CHANGED_KIND,description:`${i.name} changed from ${CF(i)} to ${CF(o)}.`});return n}function Zz(e,t){const n=[],r=vs(Object.values(e.getFields()),Object.values(t.getFields()));for(const i of r.added)Ug(i)?n.push({type:Tn.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${i.name} on input type ${e.name} was added.`}):n.push({type:na.OPTIONAL_INPUT_FIELD_ADDED,description:`An optional field ${i.name} on input type ${e.name} was added.`});for(const i of r.removed)n.push({type:Tn.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(const[i,o]of r.persisted)lh(i.type,o.type)||n.push({type:Tn.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(o.type)}.`});return n}function eG(e,t){const n=[],r=vs(e.getTypes(),t.getTypes());for(const i of r.added)n.push({type:na.TYPE_ADDED_TO_UNION,description:`${i.name} was added to union type ${e.name}.`});for(const i of r.removed)n.push({type:Tn.TYPE_REMOVED_FROM_UNION,description:`${i.name} was removed from union type ${e.name}.`});return n}function tG(e,t){const n=[],r=vs(e.getValues(),t.getValues());for(const i of r.added)n.push({type:na.VALUE_ADDED_TO_ENUM,description:`${i.name} was added to enum type ${e.name}.`});for(const i of r.removed)n.push({type:Tn.VALUE_REMOVED_FROM_ENUM,description:`${i.name} was removed from enum type ${e.name}.`});return n}function TF(e,t){const n=[],r=vs(e.getInterfaces(),t.getInterfaces());for(const i of r.added)n.push({type:na.IMPLEMENTED_INTERFACE_ADDED,description:`${i.name} added to interfaces implemented by ${e.name}.`});for(const i of r.removed)n.push({type:Tn.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${i.name}.`});return n}function _F(e,t){const n=[],r=vs(Object.values(e.getFields()),Object.values(t.getFields()));for(const i of r.removed)n.push({type:Tn.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(const[i,o]of r.persisted)n.push(...nG(e,i,o)),sh(i.type,o.type)||n.push({type:Tn.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(o.type)}.`});return n}function nG(e,t,n){const r=[],i=vs(t.args,n.args);for(const o of i.removed)r.push({type:Tn.ARG_REMOVED,description:`${e.name}.${t.name} arg ${o.name} was removed.`});for(const[o,s]of i.persisted)if(!lh(o.type,s.type))r.push({type:Tn.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${o.name} has changed type from ${String(o.type)} to ${String(s.type)}.`});else if(o.defaultValue!==void 0)if(s.defaultValue===void 0)r.push({type:na.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${o.name} defaultValue was removed.`});else{const c=xF(o.defaultValue,o.type),f=xF(s.defaultValue,s.type);c!==f&&r.push({type:na.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${o.name} has changed defaultValue from ${c} to ${f}.`})}for(const o of i.added)yl(o)?r.push({type:Tn.REQUIRED_ARG_ADDED,description:`A required arg ${o.name} on ${e.name}.${t.name} was added.`}):r.push({type:na.OPTIONAL_ARG_ADDED,description:`An optional arg ${o.name} on ${e.name}.${t.name} was added.`});return r}function sh(e,t){return St(e)?St(t)&&sh(e.ofType,t.ofType)||Ge(t)&&sh(e,t.ofType):Ge(e)?Ge(t)&&sh(e.ofType,t.ofType):gl(t)&&e.name===t.name||Ge(t)&&sh(e,t.ofType)}function lh(e,t){return St(e)?St(t)&&lh(e.ofType,t.ofType):Ge(e)?Ge(t)&&lh(e.ofType,t.ofType)||!Ge(t)&&lh(e.ofType,t):gl(t)&&e.name===t.name}function CF(e){if(ui(e))return\"a Scalar type\";if(Xe(e))return\"an Object type\";if(ot(e))return\"an Interface type\";if(On(e))return\"a Union type\";if(rn(e))return\"an Enum type\";if(Tt(e))return\"an Input type\";An(!1,\"Unexpected type: \"+be(e))}function xF(e,t){const n=fs(e,t);return n!=null||An(!1),gt(oy(n))}function vs(e,t){const n=[],r=[],i=[],o=us(e,({name:l})=>l),s=us(t,({name:l})=>l);for(const l of e){const c=s[l.name];c===void 0?r.push(l):i.push([l,c])}for(const l of t)o[l.name]===void 0&&n.push(l);return{added:n,persisted:i,removed:r}}const rG=Object.freeze(Object.defineProperty({__proto__:null,BREAK:pf,get BreakingChangeType(){return Tn},DEFAULT_DEPRECATION_REASON:BS,get DangerousChangeType(){return na},get DirectiveLocation(){return Pe},ExecutableDefinitionsRule:eT,FieldsOnCorrectTypeRule:mL,FragmentsOnCompositeTypesRule:gL,GRAPHQL_MAX_INT:Hg,GRAPHQL_MIN_INT:zg,GraphQLBoolean:an,GraphQLDeprecatedDirective:Yg,GraphQLDirective:Xi,GraphQLEnumType:Qr,GraphQLError:he,GraphQLFloat:Jp,GraphQLID:Kp,GraphQLIncludeDirective:Wg,GraphQLInputObjectType:fi,GraphQLInt:Yp,GraphQLInterfaceType:ci,GraphQLList:on,GraphQLNonNull:rt,GraphQLObjectType:rr,GraphQLScalarType:Eo,GraphQLSchema:Fu,GraphQLSkipDirective:Qg,GraphQLSpecifiedByDirective:jS,GraphQLString:Jt,GraphQLUnionType:bl,get Kind(){return q},KnownArgumentNamesRule:yL,KnownDirectivesRule:ry,KnownFragmentNamesRule:tT,KnownTypeNamesRule:iy,Lexer:LS,Location:V2,LoneAnonymousOperationRule:wL,LoneSchemaDefinitionRule:nT,NoDeprecatedCustomRule:lF,NoFragmentCyclesRule:SL,NoSchemaIntrospectionCustomRule:Nz,NoUndefinedVariablesRule:TL,NoUnusedFragmentsRule:rT,NoUnusedVariablesRule:_L,get OperationTypeNode(){return tr},OverlappingFieldsCanBeMergedRule:xL,PossibleFragmentSpreadsRule:AL,PossibleTypeExtensionsRule:sT,ProvidedRequiredArgumentsRule:OL,ScalarLeafsRule:LL,SchemaMetaFieldDef:wl,SingleFieldSubscriptionsRule:VL,Source:zp,Token:DS,get TokenKind(){return ge},TypeInfo:ps,get TypeKind(){return qt},TypeMetaFieldDef:Sl,TypeNameMetaFieldDef:ds,UniqueArgumentDefinitionNamesRule:BL,UniqueArgumentNamesRule:fy,UniqueDirectiveNamesRule:dT,UniqueDirectivesPerLocationRule:dy,UniqueEnumValueNamesRule:pT,UniqueFieldDefinitionNamesRule:hT,UniqueFragmentNamesRule:jL,UniqueInputFieldNamesRule:py,UniqueOperationNamesRule:UL,UniqueOperationTypesRule:vT,UniqueTypeNamesRule:mT,UniqueVariableNamesRule:qL,ValidationContext:QL,ValuesOfCorrectTypeRule:HL,VariablesAreInputTypesRule:zL,VariablesInAllowedPositionRule:GL,__Directive:qS,__DirectiveLocation:HS,__EnumValue:GS,__Field:zS,__InputValue:th,__Schema:Kg,__Type:wo,__TypeKind:WS,assertAbstractType:iL,assertCompositeType:gH,assertDirective:TH,assertEnumType:cH,assertEnumValueName:tL,assertInputObjectType:fH,assertInputType:hH,assertInterfaceType:rL,assertLeafType:mH,assertListType:dH,assertName:Ki,assertNamedType:bH,assertNonNullType:pH,assertNullableType:oL,assertObjectType:nL,assertOutputType:vH,assertScalarType:lH,assertSchema:QS,assertType:sH,assertUnionType:uH,assertValidName:Qz,assertValidSchema:ey,assertWrappingType:yH,astFromValue:fs,buildASTSchema:wy,buildClientSchema:ET,buildSchema:wT,coerceInputValue:lT,concatAST:Gz,createSourceEventStream:sF,defaultFieldResolver:yy,defaultTypeResolver:rF,doTypesOverlap:Qp,execute:hy,executeSync:JL,extendSchema:Oz,findBreakingChanges:Yz,findDangerousChanges:Jz,formatError:Dq,getArgumentValues:uy,getDirectiveValues:hs,getEnterLeaveForKind:hf,getIntrospectionQuery:by,getLocation:Lg,getNamedType:Nt,getNullableType:ml,getOperationAST:bT,getOperationRootType:Dz,getVariableValues:PL,getVisitFn:iH,graphql:Sz,graphqlSync:Tz,introspectionFromSchema:Az,introspectionTypes:nh,isAbstractType:nr,isCompositeType:pn,isConstValueNode:XS,isDefinitionNode:RH,isDirective:Gg,isEnumType:rn,isEqualType:qg,isExecutableDefinitionNode:KS,isInputObjectType:Tt,isInputType:Gr,isInterfaceType:ot,isIntrospectionType:Lu,isLeafType:Wr,isListType:St,isNamedType:gl,isNonNullType:Ge,isNullableType:MS,isObjectType:Xe,isOutputType:vl,isRequiredArgument:yl,isRequiredInputField:Ug,isScalarType:ui,isSchema:Xg,isSelectionNode:PH,isSpecifiedDirective:Jg,isSpecifiedScalarType:Zp,isType:vf,isTypeDefinitionNode:gf,isTypeExtensionNode:ny,isTypeNode:MH,isTypeSubTypeOf:Iu,isTypeSystemDefinitionNode:ty,isTypeSystemExtensionNode:ZS,isUnionType:On,isValidNameError:wF,isValueNode:vL,isWrappingType:Wp,lexicographicSortSchema:Iz,locatedError:In,parse:zr,parseConstValue:Yq,parseType:Jq,parseValue:J2,print:gt,printError:Nq,printIntrospectionSchema:Fz,printLocation:P2,printSchema:Lz,printSourceLocation:NS,printType:hF,resolveObjMapThunk:VS,resolveReadonlyArrayThunk:$S,responsePathAsArray:di,separateOperations:Wz,specifiedDirectives:El,specifiedRules:gT,specifiedScalarTypes:Xp,stripIgnoredCharacters:EF,subscribe:Cz,syntaxError:er,typeFromAST:gr,validate:oh,validateSchema:Zg,valueFromAST:So,valueFromASTUntyped:Bg,version:Cq,versionInfo:kS,visit:Hn,visitInParallel:PS,visitWithTypeInfo:Pu},Symbol.toStringTag,{value:\"Module\"}));var kF=Object.defineProperty,iG=Object.defineProperties,oG=Object.getOwnPropertyDescriptors,Ty=Object.getOwnPropertySymbols,NF=Object.prototype.hasOwnProperty,DF=Object.prototype.propertyIsEnumerable,AF=(e,t,n)=>t in e?kF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Dt=(e,t)=>{for(var n in t||(t={}))NF.call(t,n)&&AF(e,n,t[n]);if(Ty)for(var n of Ty(t))DF.call(t,n)&&AF(e,n,t[n]);return e},Kt=(e,t)=>iG(e,oG(t)),E=(e,t)=>kF(e,\"name\",{value:t,configurable:!0}),mt=(e,t)=>{var n={};for(var r in e)NF.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ty)for(var r of Ty(e))t.indexOf(r)<0&&DF.call(e,r)&&(n[r]=e[r]);return n};function xT(e){return typeof e==\"object\"&&e!==null&&typeof e.then==\"function\"}E(xT,\"isPromise\");function OF(e){return new Promise((t,n)=>{const r=e.subscribe({next:i=>{t(i),r.unsubscribe()},error:n,complete:()=>{n(new Error(\"no value resolved\"))}})})}E(OF,\"observableToPromise\");function kT(e){return typeof e==\"object\"&&e!==null&&\"subscribe\"in e&&typeof e.subscribe==\"function\"}E(kT,\"isObservable\");function NT(e){return typeof e==\"object\"&&e!==null&&(e[Symbol.toStringTag]===\"AsyncGenerator\"||Symbol.asyncIterator in e)}E(NT,\"isAsyncIterable\");function IF(e){return new Promise((t,n)=>{var r;const i=(r=(\"return\"in e?e:e[Symbol.asyncIterator]()).return)===null||r===void 0?void 0:r.bind(e);(\"next\"in e?e:e[Symbol.asyncIterator]()).next.bind(e)().then(s=>{t(s.value),i==null||i()}).catch(s=>{n(s)})})}E(IF,\"asyncIterableToPromise\");function DT(e){return Promise.resolve(e).then(t=>NT(t)?IF(t):kT(t)?OF(t):t)}E(DT,\"fetcherReturnToPromise\");function _y(e){return JSON.stringify(e,null,2)}E(_y,\"stringify\");function LF(e){return Object.assign(Object.assign({},e),{message:e.message,stack:e.stack})}E(LF,\"formatSingleError\");function AT(e){return e instanceof Error?LF(e):e}E(AT,\"handleSingleError\");function $u(e){return Array.isArray(e)?_y({errors:e.map(t=>AT(t))}):_y({errors:[AT(e)]})}E($u,\"formatError\");function uh(e){return _y(e)}E(uh,\"formatResult\");function FF(e,t,n){const r=[];if(!e||!t)return{insertions:r,result:t};let i;try{i=zr(t)}catch{return{insertions:r,result:t}}const o=n||RF,s=new ps(e);return Hn(i,{leave(l){s.leave(l)},enter(l){if(s.enter(l),l.kind===\"Field\"&&!l.selectionSet){const c=s.getType(),f=OT($F(c),o);if(f&&l.loc){const h=MF(t,l.loc.start);r.push({index:l.loc.end,string:\" \"+gt(f).replace(/\\n/g,`\n`+h)})}}}}),{insertions:r,result:PF(t,r)}}E(FF,\"fillLeafs\");function RF(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=[];return Object.keys(t).forEach(r=>{Wr(t[r].type)&&n.push(r)}),n}E(RF,\"defaultGetDefaultFieldNames\");function OT(e,t){const n=Nt(e);if(!e||Wr(e))return;const r=t(n);if(!(!Array.isArray(r)||r.length===0||!(\"getFields\"in n)))return{kind:q.SELECTION_SET,selections:r.map(i=>{const o=n.getFields()[i],s=o?o.type:null;return{kind:q.FIELD,name:{kind:q.NAME,value:i},selectionSet:OT(s,t)}})}}E(OT,\"buildSelectionSet\");function PF(e,t){if(t.length===0)return e;let n=\"\",r=0;return t.forEach(({index:i,string:o})=>{n+=e.slice(r,i)+o,r=i}),n+=e.slice(r),n}E(PF,\"withInsertions\");function MF(e,t){let n=t,r=t;for(;n;){const i=e.charCodeAt(n-1);if(i===10||i===13||i===8232||i===8233)break;n--,i!==9&&i!==11&&i!==12&&i!==32&&i!==160&&(r=n)}return e.substring(n,r)}E(MF,\"getIndentation\");function $F(e){if(e)return e}E($F,\"isFieldType\");function VF(e,t){var n;const r=new Map,i=[];for(const o of e)if(o.kind===\"Field\"){const s=t(o),l=r.get(s);if(!((n=o.directives)===null||n===void 0)&&n.length){const c=Object.assign({},o);i.push(c)}else if(l!=null&&l.selectionSet&&o.selectionSet)l.selectionSet.selections=[...l.selectionSet.selections,...o.selectionSet.selections];else if(!l){const c=Object.assign({},o);r.set(s,c),i.push(c)}}else i.push(o);return i}E(VF,\"uniqueBy\");function IT(e,t,n){var r;const i=n?Nt(n).name:null,o=[],s=[];for(let l of t){if(l.kind===\"FragmentSpread\"){const c=l.name.value;if(!l.directives||l.directives.length===0){if(s.indexOf(c)>=0)continue;s.push(c)}const f=e[l.name.value];if(f){const{typeCondition:h,directives:g,selectionSet:m}=f;l={kind:q.INLINE_FRAGMENT,typeCondition:h,directives:g,selectionSet:m}}}if(l.kind===q.INLINE_FRAGMENT&&(!l.directives||((r=l.directives)===null||r===void 0?void 0:r.length)===0)){const c=l.typeCondition?l.typeCondition.name.value:null;if(!c||c===i){o.push(...IT(e,l.selectionSet.selections,n));continue}}o.push(l)}return o}E(IT,\"inlineRelevantFragmentSpreads\");function BF(e,t){const n=t?new ps(t):null,r=Object.create(null);for(const o of e.definitions)o.kind===q.FRAGMENT_DEFINITION&&(r[o.name.value]=o);const i={SelectionSet(o){const s=n?n.getParentType():null;let{selections:l}=o;return l=IT(r,l,s),l=VF(l,c=>c.alias?c.alias.value:c.name.value),Object.assign(Object.assign({},o),{selections:l})},FragmentDefinition(){return null}};return Hn(e,n?Pu(n,i):i)}E(BF,\"mergeAst\");function jF(e,t,n){if(!n||n.length<1)return;const r=n.map(i=>{var o;return(o=i.name)===null||o===void 0?void 0:o.value});if(t&&r.indexOf(t)!==-1)return t;if(t&&e){const o=e.map(s=>{var l;return(l=s.name)===null||l===void 0?void 0:l.value}).indexOf(t);if(o!==-1&&o<r.length)return r[o]}return r[0]}E(jF,\"getSelectedOperationName\");function UF(e,t){return t instanceof DOMException&&(t.code===22||t.code===1014||t.name===\"QuotaExceededError\"||t.name===\"NS_ERROR_DOM_QUOTA_REACHED\")&&e.length!==0}E(UF,\"isQuotaError\");class Cy{constructor(t){t?this.storage=t:t===null?this.storage=null:typeof window<\"u\"?(this.storage=window.localStorage,this.storage.clear=()=>{for(const n in window.localStorage)n.indexOf(`${LT}:`)===0&&window.localStorage.removeItem(n)}):this.storage=null}get(t){if(!this.storage)return null;const n=`${LT}:${t}`,r=this.storage.getItem(n);return r===\"null\"||r===\"undefined\"?(this.storage.removeItem(n),null):r||null}set(t,n){let r=!1,i=null;if(this.storage){const o=`${LT}:${t}`;if(n)try{this.storage.setItem(o,n)}catch(s){i=s instanceof Error?s:new Error(`${s}`),r=UF(this.storage,s)}else this.storage.removeItem(o)}return{isQuotaError:r,error:i}}clear(){this.storage&&this.storage.clear()}}E(Cy,\"StorageAPI\");const LT=\"graphiql\";class FT{constructor(t,n,r=null){this.key=t,this.storage=n,this.maxSize=r,this.items=this.fetchAll()}get length(){return this.items.length}contains(t){return this.items.some(n=>n.query===t.query&&n.variables===t.variables&&n.headers===t.headers&&n.operationName===t.operationName)}edit(t){const n=this.items.findIndex(r=>r.query===t.query&&r.variables===t.variables&&r.headers===t.headers&&r.operationName===t.operationName);n!==-1&&(this.items.splice(n,1,t),this.save())}delete(t){const n=this.items.findIndex(r=>r.query===t.query&&r.variables===t.variables&&r.headers===t.headers&&r.operationName===t.operationName);n!==-1&&(this.items.splice(n,1),this.save())}fetchRecent(){return this.items[this.items.length-1]}fetchAll(){const t=this.storage.get(this.key);return t?JSON.parse(t)[this.key]:[]}push(t){const n=[...this.items,t];this.maxSize&&n.length>this.maxSize&&n.shift();for(let r=0;r<5;r++){const i=this.storage.set(this.key,JSON.stringify({[this.key]:n}));if(!i||!i.error)this.items=n;else if(i.isQuotaError&&this.maxSize)n.shift();else return}}save(){this.storage.set(this.key,JSON.stringify({[this.key]:this.items}))}}E(FT,\"QueryStore\");const aG=1e5;class qF{constructor(t,n){this.storage=t,this.maxHistoryLength=n,this.updateHistory=(r,i,o,s)=>{if(this.shouldSaveQuery(r,i,o,this.history.fetchRecent())){this.history.push({query:r,variables:i,headers:o,operationName:s});const l=this.history.items,c=this.favorite.items;this.queries=l.concat(c)}},this.history=new FT(\"queries\",this.storage,this.maxHistoryLength),this.favorite=new FT(\"favorites\",this.storage,null),this.queries=[...this.history.fetchAll(),...this.favorite.fetchAll()]}shouldSaveQuery(t,n,r,i){if(!t)return!1;try{zr(t)}catch{return!1}return t.length>aG?!1:i?!(JSON.stringify(t)===JSON.stringify(i.query)&&(JSON.stringify(n)===JSON.stringify(i.variables)&&(JSON.stringify(r)===JSON.stringify(i.headers)||r&&!i.headers)||n&&!i.variables)):!0}toggleFavorite(t,n,r,i,o,s){const l={query:t,variables:n,headers:r,operationName:i,label:o};this.favorite.contains(l)?s&&(l.favorite=!1,this.favorite.delete(l)):(l.favorite=!0,this.favorite.push(l)),this.queries=[...this.history.items,...this.favorite.items]}editLabel(t,n,r,i,o,s){const l={query:t,variables:n,headers:r,operationName:i,label:o};s?this.favorite.edit(Object.assign(Object.assign({},l),{favorite:s})):this.history.edit(l),this.queries=[...this.history.items,...this.favorite.items]}}E(qF,\"HistoryStore\");var sG=Object.defineProperty,RT=E((e,t)=>sG(e,\"name\",{value:t,configurable:!0}),\"__name$H\");function ms(e){const t=O.createContext(null);return t.displayName=e,t}E(ms,\"createNullableContext\"),RT(ms,\"createNullableContext\");function gs(e){function t(n){var r;const i=O.useContext(e);if(i===null&&(n!=null&&n.nonNull))throw new Error(`Tried to use \\`${((r=n.caller)==null?void 0:r.name)||t.caller.name}\\` without the necessary context. Make sure to render the \\`${e.displayName}Provider\\` component higher up the tree.`);return i}return E(t,\"useGivenContext\"),RT(t,\"useGivenContext\"),Object.defineProperty(t,\"name\",{value:`use${e.displayName}`}),t}E(gs,\"createContextHook\"),RT(gs,\"createContextHook\");var lG=typeof globalThis<\"u\"?globalThis:typeof window<\"u\"?window:typeof global<\"u\"?global:typeof self<\"u\"?self:{};function HF(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,\"default\")?e.default:e}E(HF,\"getDefaultExportFromCjs\");function zF(e){if(e.__esModule)return e;var t=Object.defineProperty({},\"__esModule\",{value:!0});return Object.keys(e).forEach(function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}),t}E(zF,\"getAugmentedNamespace\");var xy={exports:{}},ch={};/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/var GF=Object.getOwnPropertySymbols,uG=Object.prototype.hasOwnProperty,cG=Object.prototype.propertyIsEnumerable;function WF(e){if(e==null)throw new TypeError(\"Object.assign cannot be called with null or undefined\");return Object(e)}E(WF,\"toObject\");function QF(){try{if(!Object.assign)return!1;var e=new String(\"abc\");if(e[5]=\"de\",Object.getOwnPropertyNames(e)[0]===\"5\")return!1;for(var t={},n=0;n<10;n++)t[\"_\"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(r.join(\"\")!==\"0123456789\")return!1;var i={};return\"abcdefghijklmnopqrst\".split(\"\").forEach(function(o){i[o]=o}),Object.keys(Object.assign({},i)).join(\"\")===\"abcdefghijklmnopqrst\"}catch{return!1}}E(QF,\"shouldUseNative\"),QF();/** @license React v17.0.2\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */var fG=oe,YF=60103;if(ch.Fragment=60107,typeof Symbol==\"function\"&&Symbol.for){var JF=Symbol.for;YF=JF(\"react.element\"),ch.Fragment=JF(\"react.fragment\")}var dG=fG.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,pG=Object.prototype.hasOwnProperty,hG={key:!0,ref:!0,__self:!0,__source:!0};function PT(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=\"\"+n),t.key!==void 0&&(o=\"\"+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)pG.call(t,r)&&!hG.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:YF,type:e,key:o,ref:s,props:i,_owner:dG.current}}E(PT,\"q$1\"),ch.jsx=PT,ch.jsxs=PT,xy.exports=ch;const ie=xy.exports.jsx,lt=xy.exports.jsxs,Oi=xy.exports.Fragment;var vG=Object.defineProperty,mG=E((e,t)=>vG(e,\"name\",{value:t,configurable:!0}),\"__name$G\");const KF=ms(\"StorageContext\");function MT(e){const t=O.useRef(!0),[n,r]=O.useState(new Cy(e.storage));return O.useEffect(()=>{t.current?t.current=!1:r(new Cy(e.storage))},[e.storage]),ie(KF.Provider,{value:n,children:e.children})}E(MT,\"StorageContextProvider\"),mG(MT,\"StorageContextProvider\");const Tl=gs(KF);var XF;(function(e){function t(n){return typeof n==\"string\"}E(t,\"is\"),e.is=t})(XF||(XF={}));var $T;(function(e){function t(n){return typeof n==\"string\"}E(t,\"is\"),e.is=t})($T||($T={}));var ZF;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(n){return typeof n==\"number\"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}E(t,\"is\"),e.is=t})(ZF||(ZF={}));var ky;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(n){return typeof n==\"number\"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}E(t,\"is\"),e.is=t})(ky||(ky={}));var ra;(function(e){function t(r,i){return r===Number.MAX_VALUE&&(r=ky.MAX_VALUE),i===Number.MAX_VALUE&&(i=ky.MAX_VALUE),{line:r,character:i}}E(t,\"create\"),e.create=t;function n(r){var i=r;return ae.objectLiteral(i)&&ae.uinteger(i.line)&&ae.uinteger(i.character)}E(n,\"is\"),e.is=n})(ra||(ra={}));var Ln;(function(e){function t(r,i,o,s){if(ae.uinteger(r)&&ae.uinteger(i)&&ae.uinteger(o)&&ae.uinteger(s))return{start:ra.create(r,i),end:ra.create(o,s)};if(ra.is(r)&&ra.is(i))return{start:r,end:i};throw new Error(\"Range#create called with invalid arguments[\".concat(r,\", \").concat(i,\", \").concat(o,\", \").concat(s,\"]\"))}E(t,\"create\"),e.create=t;function n(r){var i=r;return ae.objectLiteral(i)&&ra.is(i.start)&&ra.is(i.end)}E(n,\"is\"),e.is=n})(Ln||(Ln={}));var Ny;(function(e){function t(r,i){return{uri:r,range:i}}E(t,\"create\"),e.create=t;function n(r){var i=r;return ae.defined(i)&&Ln.is(i.range)&&(ae.string(i.uri)||ae.undefined(i.uri))}E(n,\"is\"),e.is=n})(Ny||(Ny={}));var eR;(function(e){function t(r,i,o,s){return{targetUri:r,targetRange:i,targetSelectionRange:o,originSelectionRange:s}}E(t,\"create\"),e.create=t;function n(r){var i=r;return ae.defined(i)&&Ln.is(i.targetRange)&&ae.string(i.targetUri)&&Ln.is(i.targetSelectionRange)&&(Ln.is(i.originSelectionRange)||ae.undefined(i.originSelectionRange))}E(n,\"is\"),e.is=n})(eR||(eR={}));var VT;(function(e){function t(r,i,o,s){return{red:r,green:i,blue:o,alpha:s}}E(t,\"create\"),e.create=t;function n(r){var i=r;return ae.objectLiteral(i)&&ae.numberRange(i.red,0,1)&&ae.numberRange(i.green,0,1)&&ae.numberRange(i.blue,0,1)&&ae.numberRange(i.alpha,0,1)}E(n,\"is\"),e.is=n})(VT||(VT={}));var tR;(function(e){function t(r,i){return{range:r,color:i}}E(t,\"create\"),e.create=t;function n(r){var i=r;return ae.objectLiteral(i)&&Ln.is(i.range)&&VT.is(i.color)}E(n,\"is\"),e.is=n})(tR||(tR={}));var nR;(function(e){function t(r,i,o){return{label:r,textEdit:i,additionalTextEdits:o}}E(t,\"create\"),e.create=t;function n(r){var i=r;return ae.objectLiteral(i)&&ae.string(i.label)&&(ae.undefined(i.textEdit)||ys.is(i))&&(ae.undefined(i.additionalTextEdits)||ae.typedArray(i.additionalTextEdits,ys.is))}E(n,\"is\"),e.is=n})(nR||(nR={}));var rR;(function(e){e.Comment=\"comment\",e.Imports=\"imports\",e.Region=\"region\"})(rR||(rR={}));var iR;(function(e){function t(r,i,o,s,l,c){var f={startLine:r,endLine:i};return ae.defined(o)&&(f.startCharacter=o),ae.defined(s)&&(f.endCharacter=s),ae.defined(l)&&(f.kind=l),ae.defined(c)&&(f.collapsedText=c),f}E(t,\"create\"),e.create=t;function n(r){var i=r;return ae.objectLiteral(i)&&ae.uinteger(i.startLine)&&ae.uinteger(i.startLine)&&(ae.undefined(i.startCharacter)||ae.uinteger(i.startCharacter))&&(ae.undefined(i.endCharacter)||ae.uinteger(i.endCharacter))&&(ae.undefined(i.kind)||ae.string(i.kind))}E(n,\"is\"),e.is=n})(iR||(iR={}));var BT;(function(e){function t(r,i){return{location:r,message:i}}E(t,\"create\"),e.create=t;function n(r){var i=r;return ae.defined(i)&&Ny.is(i.location)&&ae.string(i.message)}E(n,\"is\"),e.is=n})(BT||(BT={}));var oR;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(oR||(oR={}));var aR;(function(e){e.Unnecessary=1,e.Deprecated=2})(aR||(aR={}));var sR;(function(e){function t(n){var r=n;return ae.objectLiteral(r)&&ae.string(r.href)}E(t,\"is\"),e.is=t})(sR||(sR={}));var Dy;(function(e){function t(r,i,o,s,l,c){var f={range:r,message:i};return ae.defined(o)&&(f.severity=o),ae.defined(s)&&(f.code=s),ae.defined(l)&&(f.source=l),ae.defined(c)&&(f.relatedInformation=c),f}E(t,\"create\"),e.create=t;function n(r){var i,o=r;return ae.defined(o)&&Ln.is(o.range)&&ae.string(o.message)&&(ae.number(o.severity)||ae.undefined(o.severity))&&(ae.integer(o.code)||ae.string(o.code)||ae.undefined(o.code))&&(ae.undefined(o.codeDescription)||ae.string((i=o.codeDescription)===null||i===void 0?void 0:i.href))&&(ae.string(o.source)||ae.undefined(o.source))&&(ae.undefined(o.relatedInformation)||ae.typedArray(o.relatedInformation,BT.is))}E(n,\"is\"),e.is=n})(Dy||(Dy={}));var bf;(function(e){function t(r,i){for(var o=[],s=2;s<arguments.length;s++)o[s-2]=arguments[s];var l={title:r,command:i};return ae.defined(o)&&o.length>0&&(l.arguments=o),l}E(t,\"create\"),e.create=t;function n(r){var i=r;return ae.defined(i)&&ae.string(i.title)&&ae.string(i.command)}E(n,\"is\"),e.is=n})(bf||(bf={}));var ys;(function(e){function t(o,s){return{range:o,newText:s}}E(t,\"replace\"),e.replace=t;function n(o,s){return{range:{start:o,end:o},newText:s}}E(n,\"insert\"),e.insert=n;function r(o){return{range:o,newText:\"\"}}E(r,\"del\"),e.del=r;function i(o){var s=o;return ae.objectLiteral(s)&&ae.string(s.newText)&&Ln.is(s.range)}E(i,\"is\"),e.is=i})(ys||(ys={}));var Ef;(function(e){function t(r,i,o){var s={label:r};return i!==void 0&&(s.needsConfirmation=i),o!==void 0&&(s.description=o),s}E(t,\"create\"),e.create=t;function n(r){var i=r;return ae.objectLiteral(i)&&ae.string(i.label)&&(ae.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(ae.string(i.description)||i.description===void 0)}E(n,\"is\"),e.is=n})(Ef||(Ef={}));var Yr;(function(e){function t(n){var r=n;return ae.string(r)}E(t,\"is\"),e.is=t})(Yr||(Yr={}));var _l;(function(e){function t(o,s,l){return{range:o,newText:s,annotationId:l}}E(t,\"replace\"),e.replace=t;function n(o,s,l){return{range:{start:o,end:o},newText:s,annotationId:l}}E(n,\"insert\"),e.insert=n;function r(o,s){return{range:o,newText:\"\",annotationId:s}}E(r,\"del\"),e.del=r;function i(o){var s=o;return ys.is(s)&&(Ef.is(s.annotationId)||Yr.is(s.annotationId))}E(i,\"is\"),e.is=i})(_l||(_l={}));var Ay;(function(e){function t(r,i){return{textDocument:r,edits:i}}E(t,\"create\"),e.create=t;function n(r){var i=r;return ae.defined(i)&&Iy.is(i.textDocument)&&Array.isArray(i.edits)}E(n,\"is\"),e.is=n})(Ay||(Ay={}));var fh;(function(e){function t(r,i,o){var s={kind:\"create\",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}E(t,\"create\"),e.create=t;function n(r){var i=r;return i&&i.kind===\"create\"&&ae.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||ae.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||ae.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Yr.is(i.annotationId))}E(n,\"is\"),e.is=n})(fh||(fh={}));var dh;(function(e){function t(r,i,o,s){var l={kind:\"rename\",oldUri:r,newUri:i};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(l.options=o),s!==void 0&&(l.annotationId=s),l}E(t,\"create\"),e.create=t;function n(r){var i=r;return i&&i.kind===\"rename\"&&ae.string(i.oldUri)&&ae.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||ae.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||ae.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Yr.is(i.annotationId))}E(n,\"is\"),e.is=n})(dh||(dh={}));var ph;(function(e){function t(r,i,o){var s={kind:\"delete\",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}E(t,\"create\"),e.create=t;function n(r){var i=r;return i&&i.kind===\"delete\"&&ae.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||ae.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||ae.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||Yr.is(i.annotationId))}E(n,\"is\"),e.is=n})(ph||(ph={}));var jT;(function(e){function t(n){var r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(i){return ae.string(i.kind)?fh.is(i)||dh.is(i)||ph.is(i):Ay.is(i)}))}E(t,\"is\"),e.is=t})(jT||(jT={}));var Oy=function(){function e(t,n){this.edits=t,this.changeAnnotations=n}return E(e,\"TextEditChangeImpl\"),e.prototype.insert=function(t,n,r){var i,o;if(r===void 0?i=ys.insert(t,n):Yr.is(r)?(o=r,i=_l.insert(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=_l.insert(t,n,o)),this.edits.push(i),o!==void 0)return o},e.prototype.replace=function(t,n,r){var i,o;if(r===void 0?i=ys.replace(t,n):Yr.is(r)?(o=r,i=_l.replace(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),o=this.changeAnnotations.manage(r),i=_l.replace(t,n,o)),this.edits.push(i),o!==void 0)return o},e.prototype.delete=function(t,n){var r,i;if(n===void 0?r=ys.del(t):Yr.is(n)?(i=n,r=_l.del(t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=_l.del(t,i)),this.edits.push(r),i!==void 0)return i},e.prototype.add=function(t){this.edits.push(t)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(t){if(t===void 0)throw new Error(\"Text edit change is not configured to manage change annotations.\")},e}(),lR=function(){function e(t){this._annotations=t===void 0?Object.create(null):t,this._counter=0,this._size=0}return E(e,\"ChangeAnnotations\"),e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,\"size\",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(t,n){var r;if(Yr.is(t)?r=t:(r=this.nextId(),n=t),this._annotations[r]!==void 0)throw new Error(\"Id \".concat(r,\" is already in use.\"));if(n===void 0)throw new Error(\"No annotation provided for id \".concat(r));return this._annotations[r]=n,this._size++,r},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();(function(){function e(t){var n=this;this._textEditChanges=Object.create(null),t!==void 0?(this._workspaceEdit=t,t.documentChanges?(this._changeAnnotations=new lR(t.changeAnnotations),t.changeAnnotations=this._changeAnnotations.all(),t.documentChanges.forEach(function(r){if(Ay.is(r)){var i=new Oy(r.edits,n._changeAnnotations);n._textEditChanges[r.textDocument.uri]=i}})):t.changes&&Object.keys(t.changes).forEach(function(r){var i=new Oy(t.changes[r]);n._textEditChanges[r]=i})):this._workspaceEdit={}}return E(e,\"WorkspaceChange\"),Object.defineProperty(e.prototype,\"edit\",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(t){if(Iy.is(t)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error(\"Workspace edit is not configured for document changes.\");var n={uri:t.uri,version:t.version},r=this._textEditChanges[n.uri];if(!r){var i=[],o={textDocument:n,edits:i};this._workspaceEdit.documentChanges.push(o),r=new Oy(i,this._changeAnnotations),this._textEditChanges[n.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error(\"Workspace edit is not configured for normal text edit changes.\");var r=this._textEditChanges[t];if(!r){var i=[];this._workspaceEdit.changes[t]=i,r=new Oy(i),this._textEditChanges[t]=r}return r}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new lR,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(t,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error(\"Workspace edit is not configured for document changes.\");var i;Ef.is(n)||Yr.is(n)?i=n:r=n;var o,s;if(i===void 0?o=fh.create(t,r):(s=Yr.is(i)?i:this._changeAnnotations.manage(i),o=fh.create(t,r,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s},e.prototype.renameFile=function(t,n,r,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error(\"Workspace edit is not configured for document changes.\");var o;Ef.is(r)||Yr.is(r)?o=r:i=r;var s,l;if(o===void 0?s=dh.create(t,n,i):(l=Yr.is(o)?o:this._changeAnnotations.manage(o),s=dh.create(t,n,i,l)),this._workspaceEdit.documentChanges.push(s),l!==void 0)return l},e.prototype.deleteFile=function(t,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error(\"Workspace edit is not configured for document changes.\");var i;Ef.is(n)||Yr.is(n)?i=n:r=n;var o,s;if(i===void 0?o=ph.create(t,r):(s=Yr.is(i)?i:this._changeAnnotations.manage(i),o=ph.create(t,r,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s},e})();var uR;(function(e){function t(r){return{uri:r}}E(t,\"create\"),e.create=t;function n(r){var i=r;return ae.defined(i)&&ae.string(i.uri)}E(n,\"is\"),e.is=n})(uR||(uR={}));var cR;(function(e){function t(r,i){return{uri:r,version:i}}E(t,\"create\"),e.create=t;function n(r){var i=r;return ae.defined(i)&&ae.string(i.uri)&&ae.integer(i.version)}E(n,\"is\"),e.is=n})(cR||(cR={}));var Iy;(function(e){function t(r,i){return{uri:r,version:i}}E(t,\"create\"),e.create=t;function n(r){var i=r;return ae.defined(i)&&ae.string(i.uri)&&(i.version===null||ae.integer(i.version))}E(n,\"is\"),e.is=n})(Iy||(Iy={}));var fR;(function(e){function t(r,i,o,s){return{uri:r,languageId:i,version:o,text:s}}E(t,\"create\"),e.create=t;function n(r){var i=r;return ae.defined(i)&&ae.string(i.uri)&&ae.string(i.languageId)&&ae.integer(i.version)&&ae.string(i.text)}E(n,\"is\"),e.is=n})(fR||(fR={}));var UT;(function(e){e.PlainText=\"plaintext\",e.Markdown=\"markdown\";function t(n){var r=n;return r===e.PlainText||r===e.Markdown}E(t,\"is\"),e.is=t})(UT||(UT={}));var hh;(function(e){function t(n){var r=n;return ae.objectLiteral(n)&&UT.is(r.kind)&&ae.string(r.value)}E(t,\"is\"),e.is=t})(hh||(hh={}));var dR;(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})(dR||(dR={}));var pR;(function(e){e.PlainText=1,e.Snippet=2})(pR||(pR={}));var hR;(function(e){e.Deprecated=1})(hR||(hR={}));var vR;(function(e){function t(r,i,o){return{newText:r,insert:i,replace:o}}E(t,\"create\"),e.create=t;function n(r){var i=r;return i&&ae.string(i.newText)&&Ln.is(i.insert)&&Ln.is(i.replace)}E(n,\"is\"),e.is=n})(vR||(vR={}));var mR;(function(e){e.asIs=1,e.adjustIndentation=2})(mR||(mR={}));var gR;(function(e){function t(n){var r=n;return r&&(ae.string(r.detail)||r.detail===void 0)&&(ae.string(r.description)||r.description===void 0)}E(t,\"is\"),e.is=t})(gR||(gR={}));var yR;(function(e){function t(n){return{label:n}}E(t,\"create\"),e.create=t})(yR||(yR={}));var bR;(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}E(t,\"create\"),e.create=t})(bR||(bR={}));var Ly;(function(e){function t(r){return r.replace(/[\\\\`*_{}[\\]()#+\\-.!]/g,\"\\\\$&\")}E(t,\"fromPlainText\"),e.fromPlainText=t;function n(r){var i=r;return ae.string(i)||ae.objectLiteral(i)&&ae.string(i.language)&&ae.string(i.value)}E(n,\"is\"),e.is=n})(Ly||(Ly={}));var ER;(function(e){function t(n){var r=n;return!!r&&ae.objectLiteral(r)&&(hh.is(r.contents)||Ly.is(r.contents)||ae.typedArray(r.contents,Ly.is))&&(n.range===void 0||Ln.is(n.range))}E(t,\"is\"),e.is=t})(ER||(ER={}));var wR;(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}E(t,\"create\"),e.create=t})(wR||(wR={}));var SR;(function(e){function t(n,r){for(var i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];var s={label:n};return ae.defined(r)&&(s.documentation=r),ae.defined(i)?s.parameters=i:s.parameters=[],s}E(t,\"create\"),e.create=t})(SR||(SR={}));var TR;(function(e){e.Text=1,e.Read=2,e.Write=3})(TR||(TR={}));var _R;(function(e){function t(n,r){var i={range:n};return ae.number(r)&&(i.kind=r),i}E(t,\"create\"),e.create=t})(_R||(_R={}));var CR;(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})(CR||(CR={}));var xR;(function(e){e.Deprecated=1})(xR||(xR={}));var kR;(function(e){function t(n,r,i,o,s){var l={name:n,kind:r,location:{uri:o,range:i}};return s&&(l.containerName=s),l}E(t,\"create\"),e.create=t})(kR||(kR={}));var NR;(function(e){function t(n,r,i,o){return o!==void 0?{name:n,kind:r,location:{uri:i,range:o}}:{name:n,kind:r,location:{uri:i}}}E(t,\"create\"),e.create=t})(NR||(NR={}));var DR;(function(e){function t(r,i,o,s,l,c){var f={name:r,detail:i,kind:o,range:s,selectionRange:l};return c!==void 0&&(f.children=c),f}E(t,\"create\"),e.create=t;function n(r){var i=r;return i&&ae.string(i.name)&&ae.number(i.kind)&&Ln.is(i.range)&&Ln.is(i.selectionRange)&&(i.detail===void 0||ae.string(i.detail))&&(i.deprecated===void 0||ae.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}E(n,\"is\"),e.is=n})(DR||(DR={}));var AR;(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\"})(AR||(AR={}));var Fy;(function(e){e.Invoked=1,e.Automatic=2})(Fy||(Fy={}));var OR;(function(e){function t(r,i,o){var s={diagnostics:r};return i!=null&&(s.only=i),o!=null&&(s.triggerKind=o),s}E(t,\"create\"),e.create=t;function n(r){var i=r;return ae.defined(i)&&ae.typedArray(i.diagnostics,Dy.is)&&(i.only===void 0||ae.typedArray(i.only,ae.string))&&(i.triggerKind===void 0||i.triggerKind===Fy.Invoked||i.triggerKind===Fy.Automatic)}E(n,\"is\"),e.is=n})(OR||(OR={}));var IR;(function(e){function t(r,i,o){var s={title:r},l=!0;return typeof i==\"string\"?(l=!1,s.kind=i):bf.is(i)?s.command=i:s.edit=i,l&&o!==void 0&&(s.kind=o),s}E(t,\"create\"),e.create=t;function n(r){var i=r;return i&&ae.string(i.title)&&(i.diagnostics===void 0||ae.typedArray(i.diagnostics,Dy.is))&&(i.kind===void 0||ae.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||bf.is(i.command))&&(i.isPreferred===void 0||ae.boolean(i.isPreferred))&&(i.edit===void 0||jT.is(i.edit))}E(n,\"is\"),e.is=n})(IR||(IR={}));var LR;(function(e){function t(r,i){var o={range:r};return ae.defined(i)&&(o.data=i),o}E(t,\"create\"),e.create=t;function n(r){var i=r;return ae.defined(i)&&Ln.is(i.range)&&(ae.undefined(i.command)||bf.is(i.command))}E(n,\"is\"),e.is=n})(LR||(LR={}));var FR;(function(e){function t(r,i){return{tabSize:r,insertSpaces:i}}E(t,\"create\"),e.create=t;function n(r){var i=r;return ae.defined(i)&&ae.uinteger(i.tabSize)&&ae.boolean(i.insertSpaces)}E(n,\"is\"),e.is=n})(FR||(FR={}));var RR;(function(e){function t(r,i,o){return{range:r,target:i,data:o}}E(t,\"create\"),e.create=t;function n(r){var i=r;return ae.defined(i)&&Ln.is(i.range)&&(ae.undefined(i.target)||ae.string(i.target))}E(n,\"is\"),e.is=n})(RR||(RR={}));var PR;(function(e){function t(r,i){return{range:r,parent:i}}E(t,\"create\"),e.create=t;function n(r){var i=r;return ae.objectLiteral(i)&&Ln.is(i.range)&&(i.parent===void 0||e.is(i.parent))}E(n,\"is\"),e.is=n})(PR||(PR={}));var MR;(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\"})(MR||(MR={}));var $R;(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\"})($R||($R={}));var VR;(function(e){function t(n){var r=n;return ae.objectLiteral(r)&&(r.resultId===void 0||typeof r.resultId==\"string\")&&Array.isArray(r.data)&&(r.data.length===0||typeof r.data[0]==\"number\")}E(t,\"is\"),e.is=t})(VR||(VR={}));var BR;(function(e){function t(r,i){return{range:r,text:i}}E(t,\"create\"),e.create=t;function n(r){var i=r;return i!=null&&Ln.is(i.range)&&ae.string(i.text)}E(n,\"is\"),e.is=n})(BR||(BR={}));var jR;(function(e){function t(r,i,o){return{range:r,variableName:i,caseSensitiveLookup:o}}E(t,\"create\"),e.create=t;function n(r){var i=r;return i!=null&&Ln.is(i.range)&&ae.boolean(i.caseSensitiveLookup)&&(ae.string(i.variableName)||i.variableName===void 0)}E(n,\"is\"),e.is=n})(jR||(jR={}));var UR;(function(e){function t(r,i){return{range:r,expression:i}}E(t,\"create\"),e.create=t;function n(r){var i=r;return i!=null&&Ln.is(i.range)&&(ae.string(i.expression)||i.expression===void 0)}E(n,\"is\"),e.is=n})(UR||(UR={}));var qR;(function(e){function t(r,i){return{frameId:r,stoppedLocation:i}}E(t,\"create\"),e.create=t;function n(r){var i=r;return ae.defined(i)&&Ln.is(r.stoppedLocation)}E(n,\"is\"),e.is=n})(qR||(qR={}));var qT;(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}E(t,\"is\"),e.is=t})(qT||(qT={}));var HT;(function(e){function t(r){return{value:r}}E(t,\"create\"),e.create=t;function n(r){var i=r;return ae.objectLiteral(i)&&(i.tooltip===void 0||ae.string(i.tooltip)||hh.is(i.tooltip))&&(i.location===void 0||Ny.is(i.location))&&(i.command===void 0||bf.is(i.command))}E(n,\"is\"),e.is=n})(HT||(HT={}));var HR;(function(e){function t(r,i,o){var s={position:r,label:i};return o!==void 0&&(s.kind=o),s}E(t,\"create\"),e.create=t;function n(r){var i=r;return ae.objectLiteral(i)&&ra.is(i.position)&&(ae.string(i.label)||ae.typedArray(i.label,HT.is))&&(i.kind===void 0||qT.is(i.kind))&&i.textEdits===void 0||ae.typedArray(i.textEdits,ys.is)&&(i.tooltip===void 0||ae.string(i.tooltip)||hh.is(i.tooltip))&&(i.paddingLeft===void 0||ae.boolean(i.paddingLeft))&&(i.paddingRight===void 0||ae.boolean(i.paddingRight))}E(n,\"is\"),e.is=n})(HR||(HR={}));var zR;(function(e){function t(n){var r=n;return ae.objectLiteral(r)&&$T.is(r.uri)&&ae.string(r.name)}E(t,\"is\"),e.is=t})(zR||(zR={}));var GR;(function(e){function t(o,s,l,c){return new gG(o,s,l,c)}E(t,\"create\"),e.create=t;function n(o){var s=o;return!!(ae.defined(s)&&ae.string(s.uri)&&(ae.undefined(s.languageId)||ae.string(s.languageId))&&ae.uinteger(s.lineCount)&&ae.func(s.getText)&&ae.func(s.positionAt)&&ae.func(s.offsetAt))}E(n,\"is\"),e.is=n;function r(o,s){for(var l=o.getText(),c=i(s,function(S,x){var D=S.range.start.line-x.range.start.line;return D===0?S.range.start.character-x.range.start.character:D}),f=l.length,h=c.length-1;h>=0;h--){var g=c[h],m=o.offsetAt(g.range.start),y=o.offsetAt(g.range.end);if(y<=f)l=l.substring(0,m)+g.newText+l.substring(y,l.length);else throw new Error(\"Overlapping edit\");f=m}return l}E(r,\"applyEdits\"),e.applyEdits=r;function i(o,s){if(o.length<=1)return o;var l=o.length/2|0,c=o.slice(0,l),f=o.slice(l);i(c,s),i(f,s);for(var h=0,g=0,m=0;h<c.length&&g<f.length;){var y=s(c[h],f[g]);y<=0?o[m++]=c[h++]:o[m++]=f[g++]}for(;h<c.length;)o[m++]=c[h++];for(;g<f.length;)o[m++]=f[g++];return o}E(i,\"mergeSort\")})(GR||(GR={}));var gG=function(){function e(t,n,r,i){this._uri=t,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}return E(e,\"FullTextDocument\"),Object.defineProperty(e.prototype,\"uri\",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"languageId\",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"version\",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(t){if(t){var n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content},e.prototype.update=function(t,n){this._content=t.text,this._version=n,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var t=[],n=this._content,r=!0,i=0;i<n.length;i++){r&&(t.push(i),r=!1);var o=n.charAt(i);r=o===\"\\r\"||o===`\n`,o===\"\\r\"&&i+1<n.length&&n.charAt(i+1)===`\n`&&i++}r&&n.length>0&&t.push(n.length),this._lineOffsets=t}return this._lineOffsets},e.prototype.positionAt=function(t){t=Math.max(Math.min(t,this._content.length),0);var n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return ra.create(0,t);for(;r<i;){var o=Math.floor((r+i)/2);n[o]>t?i=o:r=o+1}var s=r-1;return ra.create(s,t-n[s])},e.prototype.offsetAt=function(t){var n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;var r=n[t.line],i=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(r+t.character,i),r)},Object.defineProperty(e.prototype,\"lineCount\",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}(),ae;(function(e){var t=Object.prototype.toString;function n(y){return typeof y<\"u\"}E(n,\"defined\"),e.defined=n;function r(y){return typeof y>\"u\"}E(r,\"undefined$1\"),e.undefined=r;function i(y){return y===!0||y===!1}E(i,\"boolean\"),e.boolean=i;function o(y){return t.call(y)===\"[object String]\"}E(o,\"string\"),e.string=o;function s(y){return t.call(y)===\"[object Number]\"}E(s,\"number\"),e.number=s;function l(y,S,x){return t.call(y)===\"[object Number]\"&&S<=y&&y<=x}E(l,\"numberRange\"),e.numberRange=l;function c(y){return t.call(y)===\"[object Number]\"&&-2147483648<=y&&y<=2147483647}E(c,\"integer\"),e.integer=c;function f(y){return t.call(y)===\"[object Number]\"&&0<=y&&y<=2147483647}E(f,\"uinteger\"),e.uinteger=f;function h(y){return t.call(y)===\"[object Function]\"}E(h,\"func\"),e.func=h;function g(y){return y!==null&&typeof y==\"object\"}E(g,\"objectLiteral\"),e.objectLiteral=g;function m(y,S){return Array.isArray(y)&&y.every(S)}E(m,\"typedArray\"),e.typedArray=m})(ae||(ae={}));var WR;(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})(WR||(WR={}));function _n(e){return{ofRule:e}}E(_n,\"opt\");function _t(e,t){return{ofRule:e,isList:!0,separator:t}}E(_t,\"list$1\");function QR(e,t){const n=e.match;return e.match=r=>{let i=!1;return n&&(i=n(r)),i&&t.every(o=>o.match&&!o.match(r))},e}E(QR,\"butNot\");function Ry(e,t){return{style:t,match:n=>n.kind===e}}E(Ry,\"t$2\");function ct(e,t){return{style:t||\"punctuation\",match:n=>n.kind===\"Punctuation\"&&n.value===e}}E(ct,\"p$1\"),_t(\"Definition\"),yr(\"query\"),_n(zt(\"def\")),_n(\"VariableDefinitions\"),_t(\"Directive\"),yr(\"mutation\"),_n(zt(\"def\")),_n(\"VariableDefinitions\"),_t(\"Directive\"),yr(\"subscription\"),_n(zt(\"def\")),_n(\"VariableDefinitions\"),_t(\"Directive\"),ct(\"(\"),_t(\"VariableDefinition\"),ct(\")\"),ct(\":\"),_n(\"DefaultValue\"),ct(\"$\",\"variable\"),zt(\"variable\"),ct(\"=\"),ct(\"{\"),_t(\"Selection\"),ct(\"}\"),zt(\"property\"),ct(\":\"),zt(\"qualifier\"),_n(\"Arguments\"),_t(\"Directive\"),_n(\"SelectionSet\"),zt(\"property\"),_n(\"Arguments\"),_t(\"Directive\"),_n(\"SelectionSet\"),ct(\"(\"),_t(\"Argument\"),ct(\")\"),zt(\"attribute\"),ct(\":\"),ct(\"...\"),zt(\"def\"),_t(\"Directive\"),ct(\"...\"),_n(\"TypeCondition\"),_t(\"Directive\"),yr(\"fragment\"),_n(QR(zt(\"def\"),[yr(\"on\")])),_t(\"Directive\"),yr(\"on\"),Ry(\"Number\",\"number\"),Ry(\"Name\",\"builtin\"),Ry(\"Name\",\"keyword\"),zt(\"string-2\"),ct(\"[\"),_t(\"Value\"),ct(\"]\"),ct(\"{\"),_t(\"ObjectField\"),ct(\"}\"),zt(\"attribute\"),ct(\":\"),ct(\"[\"),ct(\"]\"),_n(ct(\"!\")),_n(ct(\"!\")),YR(\"atom\"),ct(\"@\",\"meta\"),zt(\"meta\"),_n(\"Arguments\"),yr(\"directive\"),ct(\"@\",\"meta\"),zt(\"meta\"),_n(\"ArgumentsDef\"),yr(\"on\"),_t(\"DirectiveLocation\",ct(\"|\")),yr(\"interface\"),zt(\"atom\"),_n(\"Implements\"),_t(\"Directive\"),ct(\"{\"),_t(\"FieldDef\"),ct(\"}\"),yr(\"implements\"),_t(\"NamedType\",ct(\"&\")),zt(\"string-2\"),yr(\"schema\"),_t(\"Directive\"),ct(\"{\"),_t(\"OperationTypeDef\"),ct(\"}\"),zt(\"keyword\"),ct(\":\"),zt(\"atom\"),yr(\"scalar\"),zt(\"atom\"),_t(\"Directive\"),yr(\"type\"),zt(\"atom\"),_n(\"Implements\"),_t(\"Directive\"),ct(\"{\"),_t(\"FieldDef\"),ct(\"}\"),zt(\"property\"),_n(\"ArgumentsDef\"),ct(\":\"),_t(\"Directive\"),ct(\"(\"),_t(\"InputValueDef\"),ct(\")\"),zt(\"attribute\"),ct(\":\"),_n(\"DefaultValue\"),_t(\"Directive\"),yr(\"union\"),zt(\"atom\"),_t(\"Directive\"),ct(\"=\"),_t(\"UnionMember\",ct(\"|\")),yr(\"enum\"),zt(\"atom\"),_t(\"Directive\"),ct(\"{\"),_t(\"EnumValueDef\"),ct(\"}\"),zt(\"string-2\"),_t(\"Directive\"),yr(\"input\"),zt(\"atom\"),_t(\"Directive\"),ct(\"{\"),_t(\"InputValueDef\"),ct(\"}\"),yr(\"extend\"),q.SCHEMA_EXTENSION+\"\",q.SCALAR_TYPE_EXTENSION+\"\",q.OBJECT_TYPE_EXTENSION+\"\",q.INTERFACE_TYPE_EXTENSION+\"\",q.UNION_TYPE_EXTENSION+\"\",q.ENUM_TYPE_EXTENSION+\"\",q.INPUT_OBJECT_TYPE_EXTENSION+\"\";function yr(e){return{style:\"keyword\",match:t=>t.kind===\"Name\"&&t.value===e}}E(yr,\"word\");function zt(e){return{style:e,match:t=>t.kind===\"Name\",update(t,n){t.name=n.value}}}E(zt,\"name\");function YR(e){return{style:e,match:t=>t.kind===\"Name\",update(t,n){var r;!((r=t.prevState)===null||r===void 0)&&r.prevState&&(t.name=n.value,t.prevState.prevState.type=n.value)}}}E(YR,\"type\");const yG={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\"};Object.assign(Object.assign({},q),yG),q.SCHEMA_DEFINITION,q.OPERATION_TYPE_DEFINITION,q.SCALAR_TYPE_DEFINITION,q.OBJECT_TYPE_DEFINITION,q.INTERFACE_TYPE_DEFINITION,q.UNION_TYPE_DEFINITION,q.ENUM_TYPE_DEFINITION,q.INPUT_OBJECT_TYPE_DEFINITION,q.DIRECTIVE_DEFINITION,q.SCHEMA_EXTENSION,q.SCALAR_TYPE_EXTENSION,q.OBJECT_TYPE_EXTENSION,q.INTERFACE_TYPE_EXTENSION,q.UNION_TYPE_EXTENSION,q.ENUM_TYPE_EXTENSION,q.INPUT_OBJECT_TYPE_EXTENSION;var JR;(function(e){e.TYPE_SYSTEM=\"TYPE_SYSTEM\",e.EXECUTABLE=\"EXECUTABLE\"})(JR||(JR={}));var Py={exports:{}};function zT(e,t){if(e!=null)return e;var n=new Error(t!==void 0?t:\"Got unexpected \"+e);throw n.framesToPop=1,n}E(zT,\"nullthrows\"),Py.exports=zT,Py.exports.default=zT,Object.defineProperty(Py.exports,\"__esModule\",{value:!0});var KR=HF(Py.exports);const bG=E((e,t)=>{if(!t)return[];const n=new Map,r=new Set;Hn(e,{FragmentDefinition(s){n.set(s.name.value,!0)},FragmentSpread(s){r.has(s.name.value)||r.add(s.name.value)}});const i=new Set;r.forEach(s=>{!n.has(s)&&t.has(s)&&i.add(KR(t.get(s)))});const o=[];return i.forEach(s=>{Hn(s,{FragmentSpread(l){!r.has(l.name.value)&&t.get(l.name.value)&&(i.add(KR(t.get(l.name.value))),r.add(l.name.value))}}),n.has(s.name.value)||o.push(s)}),o},\"getFragmentDependenciesForAST\");function XR(e,t){const n=Object.create(null);return t.definitions.forEach(r=>{if(r.kind===\"OperationDefinition\"){const i=r.variableDefinitions;i&&i.forEach(({variable:o,type:s})=>{const l=gr(e,s);l?n[o.name.value]=l:s.kind===q.NAMED_TYPE&&s.name.value===\"Float\"&&(n[o.name.value]=Jp)})}}),n}E(XR,\"collectVariables\");function ZR(e,t){const n=t?XR(t,e):void 0,r=[];return Hn(e,{OperationDefinition(i){r.push(i)}}),{variableToType:n,operations:r}}E(ZR,\"getOperationASTFacts\");function e5(e,t){if(t)try{const n=zr(t);return Object.assign(Object.assign({},ZR(n,e)),{documentAST:n})}catch{return}}E(e5,\"getOperationFacts\");/*!\n * is-primitive <https://github.com/jonschlinkert/is-primitive>\n *\n * Copyright (c) 2014-present, Jon Schlinkert.\n * Released under the MIT License.\n */var EG=E(function(t){return typeof t==\"object\"?t===null:typeof t!=\"function\"},\"isPrimitive\");/*!\n * isobject <https://github.com/jonschlinkert/isobject>\n *\n * Copyright (c) 2014-2017, Jon Schlinkert.\n * Released under the MIT License.\n */var wG=E(function(t){return t!=null&&typeof t==\"object\"&&Array.isArray(t)===!1},\"isObject\");/*!\n * is-plain-object <https://github.com/jonschlinkert/is-plain-object>\n *\n * Copyright (c) 2014-2017, Jon Schlinkert.\n * Released under the MIT License.\n */var SG=wG;function GT(e){return SG(e)===!0&&Object.prototype.toString.call(e)===\"[object Object]\"}E(GT,\"isObjectObject\");var TG=E(function(t){var n,r;return!(GT(t)===!1||(n=t.constructor,typeof n!=\"function\")||(r=n.prototype,GT(r)===!1)||r.hasOwnProperty(\"isPrototypeOf\")===!1)},\"isPlainObject\");/*!\n * set-value <https://github.com/jonschlinkert/set-value>\n *\n * Copyright (c) Jon Schlinkert (https://github.com/jonschlinkert).\n * Released under the MIT License.\n */const{deleteProperty:_G}=Reflect,CG=EG,t5=TG,n5=E(e=>typeof e==\"object\"&&e!==null||typeof e==\"function\",\"isObject$1\"),xG=E(e=>e===\"__proto__\"||e===\"constructor\"||e===\"prototype\",\"isUnsafeKey\"),WT=E(e=>{if(!CG(e))throw new TypeError(\"Object keys must be strings or symbols\");if(xG(e))throw new Error(`Cannot set unsafe key: \"${e}\"`)},\"validateKey\"),kG=E(e=>Array.isArray(e)?e.flat().map(String).join(\",\"):e,\"toStringKey\"),NG=E((e,t)=>{if(typeof e!=\"string\"||!t)return e;let n=e+\";\";return t.arrays!==void 0&&(n+=`arrays=${t.arrays};`),t.separator!==void 0&&(n+=`separator=${t.separator};`),t.split!==void 0&&(n+=`split=${t.split};`),t.merge!==void 0&&(n+=`merge=${t.merge};`),t.preservePaths!==void 0&&(n+=`preservePaths=${t.preservePaths};`),n},\"createMemoKey\"),DG=E((e,t,n)=>{const r=kG(t?NG(e,t):e);WT(r);const i=Vu.cache.get(r)||n();return Vu.cache.set(r,i),i},\"memoize\"),AG=E((e,t={})=>{const n=t.separator||\".\",r=n===\"/\"?!1:t.preservePaths;if(typeof e==\"string\"&&r!==!1&&/\\//.test(e))return[e];const i=[];let o=\"\";const s=E(l=>{let c;l.trim()!==\"\"&&Number.isInteger(c=Number(l))?i.push(c):i.push(l)},\"push\");for(let l=0;l<e.length;l++){const c=e[l];if(c===\"\\\\\"){o+=e[++l];continue}if(c===n){s(o),o=\"\";continue}o+=c}return o&&s(o),i},\"splitString\"),r5=E((e,t)=>t&&typeof t.split==\"function\"?t.split(e):typeof e==\"symbol\"?[e]:Array.isArray(e)?e:DG(e,t,()=>AG(e,t)),\"split\"),OG=E((e,t,n,r)=>{if(WT(t),n===void 0)_G(e,t);else if(r&&r.merge){const i=r.merge===\"function\"?r.merge:Object.assign;i&&t5(e[t])&&t5(n)?e[t]=i(e[t],n):e[t]=n}else e[t]=n;return e},\"assignProp\"),Vu=E((e,t,n,r)=>{if(!t||!n5(e))return e;const i=r5(t,r);let o=e;for(let s=0;s<i.length;s++){const l=i[s],c=i[s+1];if(WT(l),c===void 0){OG(o,l,n,r);break}if(typeof c==\"number\"&&!Array.isArray(o[l])){o=o[l]=[];continue}n5(o[l])||(o[l]={}),o=o[l]}return e},\"setValue\");Vu.split=r5,Vu.cache=new Map,Vu.clear=()=>{Vu.cache=new Map};var IG=Vu;function i5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return O.createElement(\"svg\",Object.assign({height:\"1em\",viewBox:\"0 0 14 14\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":r},i),n?O.createElement(\"title\",{id:r},n):null,O.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}),O.createElement(\"rect\",{x:6,y:6,width:2,height:2,rx:1,fill:\"currentColor\"}))}E(i5,\"SvgArgument\");function o5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return O.createElement(\"svg\",Object.assign({height:\"1em\",viewBox:\"0 0 14 9\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":r},i),n?O.createElement(\"title\",{id:r},n):null,O.createElement(\"path\",{d:\"M1 1L7 7L13 1\",stroke:\"currentColor\",strokeWidth:1.5}))}E(o5,\"SvgChevronDown\");function a5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return O.createElement(\"svg\",Object.assign({height:\"1em\",viewBox:\"0 0 7 10\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":r},i),n?O.createElement(\"title\",{id:r},n):null,O.createElement(\"path\",{d:\"M6 1.04819L2 5.04819L6 9.04819\",stroke:\"currentColor\",strokeWidth:1.75}))}E(a5,\"SvgChevronLeft\");function s5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return O.createElement(\"svg\",Object.assign({height:\"1em\",viewBox:\"0 0 14 9\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":r},i),n?O.createElement(\"title\",{id:r},n):null,O.createElement(\"path\",{d:\"M13 8L7 2L1 8\",stroke:\"currentColor\",strokeWidth:1.5}))}E(s5,\"SvgChevronUp\");function l5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return O.createElement(\"svg\",Object.assign({height:\"1em\",viewBox:\"0 0 14 14\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":r},i),n?O.createElement(\"title\",{id:r},n):null,O.createElement(\"path\",{d:\"M1 1L12.9998 12.9997\",stroke:\"currentColor\",strokeWidth:1.5}),O.createElement(\"path\",{d:\"M13 1L1.00079 13.0003\",stroke:\"currentColor\",strokeWidth:1.5}))}E(l5,\"SvgClose\");function u5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return O.createElement(\"svg\",Object.assign({height:\"1em\",viewBox:\"-2 -2 22 22\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":r},i),n?O.createElement(\"title\",{id:r},n):null,O.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}),O.createElement(\"rect\",{x:6.75,y:.75,width:10.5,height:10.5,rx:2.2069,stroke:\"currentColor\",strokeWidth:1.5}))}E(u5,\"SvgCopy\");function c5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return O.createElement(\"svg\",Object.assign({height:\"1em\",viewBox:\"0 0 14 14\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":r},i),n?O.createElement(\"title\",{id:r},n):null,O.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}),O.createElement(\"path\",{d:\"M5 9L9 5\",stroke:\"currentColor\",strokeWidth:1.2}),O.createElement(\"path\",{d:\"M5 5L9 9\",stroke:\"currentColor\",strokeWidth:1.2}))}E(c5,\"SvgDeprecatedArgument\");function f5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return O.createElement(\"svg\",Object.assign({height:\"1em\",viewBox:\"0 0 12 12\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":r},i),n?O.createElement(\"title\",{id:r},n):null,O.createElement(\"path\",{d:\"M4 8L8 4\",stroke:\"currentColor\",strokeWidth:1.2}),O.createElement(\"path\",{d:\"M4 4L8 8\",stroke:\"currentColor\",strokeWidth:1.2}),O.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\"}))}E(f5,\"SvgDeprecatedEnumValue\");function d5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return O.createElement(\"svg\",Object.assign({height:\"1em\",viewBox:\"0 0 12 12\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":r},i),n?O.createElement(\"title\",{id:r},n):null,O.createElement(\"rect\",{x:.6,y:.6,width:10.8,height:10.8,rx:3.4,stroke:\"currentColor\",strokeWidth:1.2}),O.createElement(\"path\",{d:\"M4 8L8 4\",stroke:\"currentColor\",strokeWidth:1.2}),O.createElement(\"path\",{d:\"M4 4L8 8\",stroke:\"currentColor\",strokeWidth:1.2}))}E(d5,\"SvgDeprecatedField\");function p5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return O.createElement(\"svg\",Object.assign({height:\"1em\",viewBox:\"0 0.5 12 12\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":r},i),n?O.createElement(\"title\",{id:r},n):null,O.createElement(\"rect\",{x:7,y:5.5,width:2,height:2,rx:1,transform:\"rotate(90 7 5.5)\",fill:\"currentColor\"}),O.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\"}))}E(p5,\"SvgDirective\");function h5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return O.createElement(\"svg\",Object.assign({height:\"1em\",viewBox:\"0 0 20 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":r},i),n?O.createElement(\"title\",{id:r},n):null,O.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}),O.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}),O.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\"}))}E(h5,\"SvgDocsFilled\");function v5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return O.createElement(\"svg\",Object.assign({height:\"1em\",viewBox:\"0 0 20 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":r},i),n?O.createElement(\"title\",{id:r},n):null,O.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}),O.createElement(\"line\",{x1:13,y1:11.75,x2:6,y2:11.75,stroke:\"currentColor\",strokeWidth:1.5}))}E(v5,\"SvgDocs\");function m5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return O.createElement(\"svg\",Object.assign({height:\"1em\",viewBox:\"0 0 12 12\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":r},i),n?O.createElement(\"title\",{id:r},n):null,O.createElement(\"rect\",{x:5,y:5,width:2,height:2,rx:1,fill:\"currentColor\"}),O.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\"}))}E(m5,\"SvgEnumValue\");function g5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return O.createElement(\"svg\",Object.assign({height:\"1em\",viewBox:\"0 0 12 13\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":r},i),n?O.createElement(\"title\",{id:r},n):null,O.createElement(\"rect\",{x:.6,y:1.1,width:10.8,height:10.8,rx:2.4,stroke:\"currentColor\",strokeWidth:1.2}),O.createElement(\"rect\",{x:5,y:5.5,width:2,height:2,rx:1,fill:\"currentColor\"}))}E(g5,\"SvgField\");function y5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return O.createElement(\"svg\",Object.assign({height:\"1em\",viewBox:\"0 0 24 20\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":r},i),n?O.createElement(\"title\",{id:r},n):null,O.createElement(\"path\",{d:\"M1.59375 9.52344L4.87259 12.9944L8.07872 9.41249\",stroke:\"currentColor\",strokeWidth:1.5,strokeLinecap:\"square\"}),O.createElement(\"path\",{d:\"M13.75 5.25V10.75H18.75\",stroke:\"currentColor\",strokeWidth:1.5,strokeLinecap:\"square\"}),O.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}))}E(y5,\"SvgHistory\");function b5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return O.createElement(\"svg\",Object.assign({height:\"1em\",viewBox:\"0 0 12 12\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":r},i),n?O.createElement(\"title\",{id:r},n):null,O.createElement(\"circle\",{cx:6,cy:6,r:5.4,stroke:\"currentColor\",strokeWidth:1.2,strokeDasharray:\"4.241025 4.241025\",transform:\"rotate(22.5)\",\"transform-origin\":\"center\"}),O.createElement(\"circle\",{cx:6,cy:6,r:1,fill:\"currentColor\"}))}E(b5,\"SvgImplements\");function E5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return O.createElement(\"svg\",Object.assign({height:\"1em\",viewBox:\"0 0 19 18\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":r},i),n?O.createElement(\"title\",{id:r},n):null,O.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\"}),O.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\"}),O.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\"}),O.createElement(\"path\",{d:\"M12.6318 5.86775H6.36955V12.1285H12.6318V5.86775Z\",stroke:\"currentColor\",strokeWidth:1.125,strokeLinecap:\"round\",strokeLinejoin:\"round\"}),O.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\"}))}E(E5,\"SvgKeyboardShortcut\");function w5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return O.createElement(\"svg\",Object.assign({height:\"1em\",viewBox:\"0 0 13 13\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":r},i),n?O.createElement(\"title\",{id:r},n):null,O.createElement(\"circle\",{cx:5,cy:5,r:4.35,stroke:\"currentColor\",strokeWidth:1.3}),O.createElement(\"line\",{x1:8.45962,y1:8.54038,x2:11.7525,y2:11.8333,stroke:\"currentColor\",strokeWidth:1.3}))}E(w5,\"SvgMagnifyingGlass\");function S5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return O.createElement(\"svg\",Object.assign({height:\"1em\",viewBox:\"-2 -2 22 22\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":r},i),n?O.createElement(\"title\",{id:r},n):null,O.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}),O.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}),O.createElement(\"path\",{d:\"M6 4.5L9 7.5L12 4.5\",stroke:\"currentColor\",strokeWidth:1.5}),O.createElement(\"path\",{d:\"M12 13.5L9 10.5L6 13.5\",stroke:\"currentColor\",strokeWidth:1.5}))}E(S5,\"SvgMerge\");function T5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return O.createElement(\"svg\",Object.assign({height:\"1em\",viewBox:\"0 0 14 14\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":r},i),n?O.createElement(\"title\",{id:r},n):null,O.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\"}),O.createElement(\"path\",{d:\"M11.5 4.5L9.5 2.5\",stroke:\"currentColor\",strokeWidth:1.4026,strokeLinecap:\"round\",strokeLinejoin:\"round\"}),O.createElement(\"path\",{d:\"M5.5 10.5L3.5 8.5\",stroke:\"currentColor\",strokeWidth:1.4026,strokeLinecap:\"round\",strokeLinejoin:\"round\"}))}E(T5,\"SvgPen\");function _5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return O.createElement(\"svg\",Object.assign({height:\"1em\",viewBox:\"0 0 16 18\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":r},i),n?O.createElement(\"title\",{id:r},n):null,O.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\"}))}E(_5,\"SvgPlay\");function C5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return O.createElement(\"svg\",Object.assign({height:\"1em\",viewBox:\"0 0 10 16\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":r},i),n?O.createElement(\"title\",{id:r},n):null,O.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\",fill:\"currentColor\"}))}E(C5,\"SvgPlus\");function x5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return O.createElement(\"svg\",Object.assign({width:25,height:25,viewBox:\"0 0 25 25\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":r},i),n?O.createElement(\"title\",{id:r},n):null,O.createElement(\"path\",{d:\"M10.2852 24.0745L13.7139 18.0742\",stroke:\"currentColor\",strokeWidth:1.5625}),O.createElement(\"path\",{d:\"M14.5742 24.0749L17.1457 19.7891\",stroke:\"currentColor\",strokeWidth:1.5625}),O.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}),O.createElement(\"path\",{d:\"M4 15L5 13L7 12L5 11L4 9L3 11L1 12L3 13L4 15Z\",stroke:\"currentColor\",strokeWidth:1.5625,strokeLinejoin:\"round\"}),O.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\"}))}E(x5,\"SvgPrettify\");function k5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return O.createElement(\"svg\",Object.assign({height:\"1em\",viewBox:\"0 0 16 16\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":r},i),n?O.createElement(\"title\",{id:r},n):null,O.createElement(\"path\",{d:\"M4.75 9.25H1.25V12.75\",stroke:\"currentColor\",strokeWidth:1,strokeLinecap:\"square\"}),O.createElement(\"path\",{d:\"M11.25 6.75H14.75V3.25\",stroke:\"currentColor\",strokeWidth:1,strokeLinecap:\"square\"}),O.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}),O.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}))}E(k5,\"SvgReload\");function N5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return O.createElement(\"svg\",Object.assign({height:\"1em\",viewBox:\"0 0 13 13\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":r},i),n?O.createElement(\"title\",{id:r},n):null,O.createElement(\"rect\",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:\"currentColor\",strokeWidth:1.2}),O.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}))}E(N5,\"SvgRootType\");function D5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return O.createElement(\"svg\",Object.assign({height:\"1em\",viewBox:\"0 0 21 20\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":r},i),n?O.createElement(\"title\",{id:r},n):null,O.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\"}))}E(D5,\"SvgSettings\");function A5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return O.createElement(\"svg\",Object.assign({height:\"1em\",viewBox:\"0 0 14 14\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":r},i),n?O.createElement(\"title\",{id:r},n):null,O.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\"}))}E(A5,\"SvgStarFilled\");function O5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return O.createElement(\"svg\",Object.assign({height:\"1em\",viewBox:\"0 0 14 14\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":r},i),n?O.createElement(\"title\",{id:r},n):null,O.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}))}E(O5,\"SvgStar\");function I5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return O.createElement(\"svg\",Object.assign({height:\"1em\",viewBox:\"0 0 16 16\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":r},i),n?O.createElement(\"title\",{id:r},n):null,O.createElement(\"rect\",{width:16,height:16,rx:2,fill:\"currentColor\"}))}E(I5,\"SvgStop\");function L5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return O.createElement(\"svg\",Object.assign({height:\"1em\",viewBox:\"0 0 13 13\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":r},i),n?O.createElement(\"title\",{id:r},n):null,O.createElement(\"rect\",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:\"currentColor\",strokeWidth:1.2}),O.createElement(\"rect\",{x:5.5,y:5.5,width:2,height:2,rx:1,fill:\"currentColor\"}))}E(L5,\"SvgType\");var LG=Object.defineProperty,F5=E((e,t)=>LG(e,\"name\",{value:t,configurable:!0}),\"__name$F\");const FG=At(i5,\"argument icon\"),RG=At(o5,\"chevron down icon\"),PG=At(a5,\"chevron left icon\"),MG=At(s5,\"chevron up icon\"),QT=At(l5,\"close icon\"),$G=At(u5,\"copy icon\"),VG=At(c5,\"deprecated argument icon\"),BG=At(f5,\"deprecated enum value icon\"),jG=At(d5,\"deprecated field icon\"),UG=At(p5,\"directive icon\"),qG=At(h5,\"filled docs icon\"),HG=At(v5,\"docs icon\"),zG=At(m5,\"enum value icon\"),GG=At(g5,\"field icon\"),WG=At(y5,\"history icon\"),QG=At(b5,\"implements icon\"),YG=At(E5,\"keyboard shortcut icon\"),JG=At(w5,\"magnifying glass icon\"),KG=At(S5,\"merge icon\"),XG=At(T5,\"pen icon\"),ZG=At(_5,\"play icon\"),R5=At(C5,\"plus icon\"),eW=At(x5,\"prettify icon\"),tW=At(k5,\"reload icon\"),nW=At(N5,\"root type icon\"),rW=At(D5,\"settings icon\"),iW=At(A5,\"filled star icon\"),oW=At(O5,\"star icon\"),aW=At(I5,\"stop icon\"),YT=At(L5,\"type icon\");function At(e,t){const n=F5(E(function(i){return ie(e,Kt(Dt({},i),{title:t}))},\"IconComponent\"),\"IconComponent\");return Object.defineProperty(n,\"name\",{value:e.name}),n}E(At,\"generateIcon\"),F5(At,\"generateIcon\");var sW=Object.defineProperty,lW=E((e,t)=>sW(e,\"name\",{value:t,configurable:!0}),\"__name$E\");function Jr(...e){let t=\"\";for(const n of e)n&&(t+=(t?\" \":\"\")+n);return t}E(Jr,\"compose\"),lW(Jr,\"compose\");const ir=O.forwardRef((e,t)=>ie(\"button\",Kt(Dt({},e),{ref:t,className:Jr(\"graphiql-un-styled\",e.className)})));ir.displayName=\"UnStyledButton\";const Cl=O.forwardRef((e,t)=>ie(\"button\",Kt(Dt({},e),{ref:t,className:Jr(\"graphiql-button\",e.state===\"success\"?\"graphiql-button-success\":e.state===\"error\"?\"graphiql-button-error\":\"\",e.className)})));Cl.displayName=\"Button\";const P5=O.forwardRef((e,t)=>ie(\"div\",Kt(Dt({},e),{ref:t,className:`graphiql-button-group ${e.className||\"\"}`.trim()})));P5.displayName=\"ButtonGroup\";function JT(){return!!(typeof window<\"u\"&&window.document&&window.document.createElement)}E(JT,\"canUseDOM\");var bs=JT()?O.useLayoutEffect:O.useEffect;function KT(){var e=O.useState(Object.create(null)),t=e[1];return O.useCallback(function(){t(Object.create(null))},[])}E(KT,\"useForceUpdate\");function M5(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}E(M5,\"_objectWithoutPropertiesLoose$b\");var uW=[\"unstable_skipInitialRender\"],cW=E(function(t){var n=t.children,r=t.type,i=r===void 0?\"reach-portal\":r,o=t.containerRef,s=O.useRef(null),l=O.useRef(null),c=KT();return bs(function(){if(s.current){var f=s.current.ownerDocument,h=(o==null?void 0:o.current)||f.body;return l.current=f==null?void 0:f.createElement(i),h.appendChild(l.current),c(),function(){l.current&&h&&h.removeChild(l.current)}}},[i,c,o]),l.current?wm.createPortal(n,l.current):O.createElement(\"span\",{ref:s})},\"PortalImpl\"),XT=E(function(t){var n=t.unstable_skipInitialRender,r=M5(t,uW),i=O.useState(!1),o=i[0],s=i[1];return O.useEffect(function(){n&&s(!0)},[n]),n&&!o?null:O.createElement(cW,r)},\"Portal\");function ia(e){return JT()?e?e.ownerDocument:document:null}E(ia,\"getOwnerDocument\");function ZT(e){return typeof e==\"boolean\"}E(ZT,\"isBoolean\");function Da(e){return!!(e&&{}.toString.call(e)==\"[object Function]\")}E(Da,\"isFunction$1\");function My(e){return typeof e==\"string\"}E(My,\"isString$1\");function Bu(){}E(Bu,\"noop\");function e_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}E(e_,\"_arrayLikeToArray\");function $5(e,t){if(e){if(typeof e==\"string\")return e_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===\"Object\"&&e.constructor&&(n=e.constructor.name),n===\"Map\"||n===\"Set\")return Array.from(e);if(n===\"Arguments\"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e_(e,t)}}E($5,\"_unsupportedIterableToArray\");function V5(e,t){var n;if(typeof Symbol>\"u\"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=$5(e))||t&&e&&typeof e.length==\"number\"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return n=e[Symbol.iterator](),n.next.bind(n)}E(V5,\"_createForOfIteratorHelperLoose\");function B5(e,t){if(e!=null)if(Da(e))e(t);else try{e.current=t}catch{throw new Error('Cannot assign value \"'+t+'\" to ref \"'+e+'\"')}}E(B5,\"assignRef$1\");function Lr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O.useCallback(function(r){for(var i=V5(t),o;!(o=i()).done;){var s=o.value;B5(s,r)}},t)}E(Lr,\"useComposedRefs\");function it(e,t){return function(n){if(e&&e(n),!n.defaultPrevented)return t(n)}}E(it,\"composeEventHandlers\");function j5(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}E(j5,\"_objectWithoutPropertiesLoose$a\");function wf(){return wf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wf.apply(this,arguments)}E(wf,\"_extends$a\");var fW=\"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED\",dW=fW,pW=dW;function t_(){}E(t_,\"emptyFunction$1\");function n_(){}E(n_,\"emptyFunctionWithReset$1\"),n_.resetWarningCache=t_;var hW=E(function(){function e(r,i,o,s,l,c){if(c!==pW){var f=new Error(\"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types\");throw f.name=\"Invariant Violation\",f}}E(e,\"shim\"),e.isRequired=e;function t(){return e}E(t,\"getShim\");var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:n_,resetWarningCache:t_};return n.PropTypes=n,n},\"factoryWithThrowingShims$1\");hW();var r_=\"data-focus-lock\",U5=\"data-focus-lock-disabled\",vW=\"data-no-focus-lock\",mW=\"data-autofocus-inside\",gW=\"data-no-autofocus\";function q5(e,t){return typeof e==\"function\"?e(t):e&&(e.current=t),e}E(q5,\"assignRef\");function H5(e,t){var n=O.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}E(H5,\"useCallbackRef\");function i_(e,t){return H5(t||null,function(n){return e.forEach(function(r){return q5(r,n)})})}E(i_,\"useMergeRefs\");var o_={width:\"1px\",height:\"0px\",padding:0,overflow:\"hidden\",position:\"fixed\",top:\"1px\",left:\"1px\"},Aa=E(function(){return Aa=Object.assign||E(function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},\"__assign\"),Aa.apply(this,arguments)},\"__assign\");function a_(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==\"function\")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}E(a_,\"__rest\");function z5(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}E(z5,\"__spreadArray\");function s_(e){return e}E(s_,\"ItoI\");function l_(e,t){t===void 0&&(t=s_);var n=[],r=!1,i={read:function(){if(r)throw new Error(\"Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.\");return n.length?n[n.length-1]:e},useMedium:function(o){var s=t(o,r);return n.push(s),function(){n=n.filter(function(l){return l!==s})}},assignSyncMedium:function(o){for(r=!0;n.length;){var s=n;n=[],s.forEach(o)}n={push:function(l){return o(l)},filter:function(){return n}}},assignMedium:function(o){r=!0;var s=[];if(n.length){var l=n;n=[],l.forEach(o),s=n}var c=E(function(){var h=s;s=[],h.forEach(o)},\"executeQueue\"),f=E(function(){return Promise.resolve().then(c)},\"cycle\");f(),n={push:function(h){s.push(h),f()},filter:function(h){return s=s.filter(h),n}}}};return i}E(l_,\"innerCreateMedium\");function $y(e,t){return t===void 0&&(t=s_),l_(e,t)}E($y,\"createMedium\");function u_(e){e===void 0&&(e={});var t=l_(null);return t.options=Aa({async:!0,ssr:!1},e),t}E(u_,\"createSidecarMedium\");var G5=E(function(e){var t=e.sideCar,n=a_(e,[\"sideCar\"]);if(!t)throw new Error(\"Sidecar: please provide `sideCar` property to import the right car\");var r=t.read();if(!r)throw new Error(\"Sidecar medium not found\");return O.createElement(r,Aa({},n))},\"SideCar$1\");G5.isSideCarExport=!0;function W5(e,t){return e.useMedium(t),G5}E(W5,\"exportSidecar\");var Q5=$y({},function(e){var t=e.target,n=e.currentTarget;return{target:t,currentTarget:n}}),Y5=$y(),yW=$y(),bW=u_({async:!0}),EW=[],c_=O.forwardRef(E(function(t,n){var r,i=O.useState(),o=i[0],s=i[1],l=O.useRef(),c=O.useRef(!1),f=O.useRef(null),h=t.children,g=t.disabled,m=t.noFocusGuards,y=t.persistentFocus,S=t.crossFrame,x=t.autoFocus;t.allowTextSelection;var D=t.group,_=t.className,b=t.whiteList,C=t.hasPositiveIndices,T=t.shards,N=T===void 0?EW:T,F=t.as,L=F===void 0?\"div\":F,A=t.lockProps,P=A===void 0?{}:A,V=t.sideCar,H=t.returnFocus,G=t.focusOptions,z=t.onActivation,U=t.onDeactivation,j=O.useState({}),X=j[0],ne=O.useCallback(function(){f.current=f.current||document&&document.activeElement,l.current&&z&&z(l.current),c.current=!0},[z]),J=O.useCallback(function(){c.current=!1,U&&U(l.current)},[U]);O.useEffect(function(){g||(f.current=null)},[]);var re=O.useCallback(function(we){var Ce=f.current;if(Ce&&Ce.focus){var qe=typeof H==\"function\"?H(Ce):H;if(qe){var un=typeof qe==\"object\"?qe:void 0;f.current=null,we?Promise.resolve().then(function(){return Ce.focus(un)}):Ce.focus(un)}}},[H]),Z=O.useCallback(function(we){c.current&&Q5.useMedium(we)},[]),de=Y5.useMedium,K=O.useCallback(function(we){l.current!==we&&(l.current=we,s(we))},[]),ve=wf((r={},r[U5]=g&&\"disabled\",r[r_]=D,r),P),ue=m!==!0,ce=ue&&m!==\"tail\",le=i_([n,K]);return O.createElement(O.Fragment,null,ue&&[O.createElement(\"div\",{key:\"guard-first\",\"data-focus-guard\":!0,tabIndex:g?-1:0,style:o_}),C?O.createElement(\"div\",{key:\"guard-nearest\",\"data-focus-guard\":!0,tabIndex:g?-1:1,style:o_}):null],!g&&O.createElement(V,{id:X,sideCar:bW,observed:o,disabled:g,persistentFocus:y,crossFrame:S,autoFocus:x,whiteList:b,shards:N,onActivation:ne,onDeactivation:J,returnFocus:re,focusOptions:G}),O.createElement(L,wf({ref:le},ve,{className:_,onBlur:de,onFocus:Z}),h),ce&&O.createElement(\"div\",{\"data-focus-guard\":!0,tabIndex:g?-1:0,style:o_}))},\"FocusLockUI\"));c_.propTypes={},c_.defaultProps={children:void 0,disabled:!1,returnFocus:!1,focusOptions:void 0,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,hasPositiveIndices:void 0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:\"div\",lockProps:{},onActivation:void 0,onDeactivation:void 0};var J5=c_;function Vy(e,t){return Vy=Object.setPrototypeOf?Object.setPrototypeOf.bind():E(function(r,i){return r.__proto__=i,r},\"_setPrototypeOf\"),Vy(e,t)}E(Vy,\"_setPrototypeOf\");function K5(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Vy(e,t)}E(K5,\"_inheritsLoose\");function X5(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}E(X5,\"_defineProperty\");function Z5(e,t){function n(r){return r.displayName||r.name||\"Component\"}return E(n,\"getDisplayName\"),E(function(i){var o=[],s;function l(){s=e(o.map(function(f){return f.props})),t(s)}E(l,\"emitChange\");var c=function(f){K5(h,f);function h(){return f.apply(this,arguments)||this}E(h,\"SideEffect\"),h.peek=E(function(){return s},\"peek\");var g=h.prototype;return g.componentDidMount=E(function(){o.push(this),l()},\"componentDidMount\"),g.componentDidUpdate=E(function(){l()},\"componentDidUpdate\"),g.componentWillUnmount=E(function(){var y=o.indexOf(this);o.splice(y,1),l()},\"componentWillUnmount\"),g.render=E(function(){return ie(i,Dt({},this.props))},\"render\"),h}(O.PureComponent);return X5(c,\"displayName\",\"SideEffect(\"+n(i)+\")\"),c},\"wrap\")}E(Z5,\"withSideEffect\");var Oa=E(function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},\"toArray\"),f_=E(function(e){return Array.isArray(e)?e:[e]},\"asArray\"),wW=E(function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!t||!t.getPropertyValue?!1:t.getPropertyValue(\"display\")===\"none\"||t.getPropertyValue(\"visibility\")===\"hidden\"},\"isElementHidden\"),e3=E(function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},\"getParentNode\"),t3=E(function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},\"isTopNode\"),SW=E(function(e,t){return!e||t3(e)||!wW(e)&&t(e3(e))},\"isVisibleUncached\"),n3=E(function(e,t){var n=e.get(t);if(n!==void 0)return n;var r=SW(t,n3.bind(void 0,e));return e.set(t,r),r},\"isVisibleCached\"),TW=E(function(e,t){return e&&!t3(e)?xW(e)?t(e3(e)):!1:!0},\"isAutoFocusAllowedUncached\"),r3=E(function(e,t){var n=e.get(t);if(n!==void 0)return n;var r=TW(t,r3.bind(void 0,e));return e.set(t,r),r},\"isAutoFocusAllowedCached\"),i3=E(function(e){return e.dataset},\"getDataset\"),_W=E(function(e){return e.tagName===\"BUTTON\"},\"isHTMLButtonElement\"),o3=E(function(e){return e.tagName===\"INPUT\"},\"isHTMLInputElement\"),a3=E(function(e){return o3(e)&&e.type===\"radio\"},\"isRadioElement\"),CW=E(function(e){return!((o3(e)||_W(e))&&(e.type===\"hidden\"||e.disabled))},\"notHiddenInput\"),xW=E(function(e){var t=e.getAttribute(gW);return![!0,\"true\",\"\"].includes(t)},\"isAutoFocusAllowed\"),d_=E(function(e){var t;return Boolean(e&&((t=i3(e))===null||t===void 0?void 0:t.focusGuard))},\"isGuard\"),By=E(function(e){return!d_(e)},\"isNotAGuard\"),kW=E(function(e){return Boolean(e)},\"isDefined\"),NW=E(function(e,t){var n=e.tabIndex-t.tabIndex,r=e.index-t.index;if(n){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return n||r},\"tabSort\"),s3=E(function(e,t,n){return Oa(e).map(function(r,i){return{node:r,index:i,tabIndex:n&&r.tabIndex===-1?(r.dataset||{}).focusGuard?0:-1:r.tabIndex}}).filter(function(r){return!t||r.tabIndex>=0}).sort(NW)},\"orderByTabIndex\"),DW=[\"button:enabled\",\"select:enabled\",\"textarea:enabled\",\"input:enabled\",\"a[href]\",\"area[href]\",\"summary\",\"iframe\",\"object\",\"embed\",\"audio[controls]\",\"video[controls]\",\"[tabindex]\",\"[contenteditable]\",\"[autofocus]\"],p_=DW.join(\",\"),AW=\"\".concat(p_,\", [data-focus-guard]\"),l3=E(function(e,t){var n;return Oa(((n=e.shadowRoot)===null||n===void 0?void 0:n.children)||e.children).reduce(function(r,i){return r.concat(i.matches(t?AW:p_)?[i]:[],l3(i))},[])},\"getFocusablesWithShadowDom\"),h_=E(function(e,t){return e.reduce(function(n,r){return n.concat(l3(r,t),r.parentNode?Oa(r.parentNode.querySelectorAll(p_)).filter(function(i){return i===r}):[])},[])},\"getFocusables\"),OW=E(function(e){var t=e.querySelectorAll(\"[\".concat(mW,\"]\"));return Oa(t).map(function(n){return h_([n])}).reduce(function(n,r){return n.concat(r)},[])},\"getParentAutofocusables\"),v_=E(function(e,t){return Oa(e).filter(function(n){return n3(t,n)}).filter(function(n){return CW(n)})},\"filterFocusable\"),u3=E(function(e,t){return t===void 0&&(t=new Map),Oa(e).filter(function(n){return r3(t,n)})},\"filterAutoFocusable\"),m_=E(function(e,t,n){return s3(v_(h_(e,n),t),!0,n)},\"getTabbableNodes\"),c3=E(function(e,t){return s3(v_(h_(e),t),!1)},\"getAllTabbableNodes\"),IW=E(function(e,t){return v_(OW(e),t)},\"parentAutofocusables\"),vh=E(function(e,t){return(e.shadowRoot?vh(e.shadowRoot,t):Object.getPrototypeOf(e).contains.call(e,t))||Oa(e.children).some(function(n){return vh(n,t)})},\"contains\"),LW=E(function(e){for(var t=new Set,n=e.length,r=0;r<n;r+=1)for(var i=r+1;i<n;i+=1){var o=e[r].compareDocumentPosition(e[i]);(o&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(i),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(s,l){return!t.has(l)})},\"filterNested\"),f3=E(function(e){return e.parentNode?f3(e.parentNode):e},\"getTopParent\"),g_=E(function(e){var t=f_(e);return t.filter(Boolean).reduce(function(n,r){var i=r.getAttribute(r_);return n.push.apply(n,i?LW(Oa(f3(r).querySelectorAll(\"[\".concat(r_,'=\"').concat(i,'\"]:not([').concat(U5,'=\"disabled\"])')))):[r]),n},[])},\"getAllAffectedNodes\"),d3=E(function(e){return e.activeElement?e.activeElement.shadowRoot?d3(e.activeElement.shadowRoot):e.activeElement:void 0},\"getNestedShadowActiveElement\"),y_=E(function(){return document.activeElement?document.activeElement.shadowRoot?d3(document.activeElement.shadowRoot):document.activeElement:void 0},\"getActiveElement\"),FW=E(function(e){return e===document.activeElement},\"focusInFrame\"),RW=E(function(e){return Boolean(Oa(e.querySelectorAll(\"iframe\")).some(function(t){return FW(t)}))},\"focusInsideIframe\"),p3=E(function(e){var t=document&&y_();return!t||t.dataset&&t.dataset.focusGuard?!1:g_(e).some(function(n){return vh(n,t)||RW(n)})},\"focusInside\"),PW=E(function(){var e=document&&y_();return e?Oa(document.querySelectorAll(\"[\".concat(vW,\"]\"))).some(function(t){return vh(t,e)}):!1},\"focusIsHidden\"),MW=E(function(e,t){return t.filter(a3).filter(function(n){return n.name===e.name}).filter(function(n){return n.checked})[0]||e},\"findSelectedRadio\"),b_=E(function(e,t){return a3(e)&&e.name?MW(e,t):e},\"correctNode\"),$W=E(function(e){var t=new Set;return e.forEach(function(n){return t.add(b_(n,e))}),e.filter(function(n){return t.has(n)})},\"correctNodes\"),h3=E(function(e){return e[0]&&e.length>1?b_(e[0],e):e[0]},\"pickFirstFocus\"),v3=E(function(e,t){return e.length>1?e.indexOf(b_(e[t],e)):t},\"pickFocusable\"),m3=\"NEW_FOCUS\",VW=E(function(e,t,n,r){var i=e.length,o=e[0],s=e[i-1],l=d_(n);if(!(n&&e.indexOf(n)>=0)){var c=n!==void 0?t.indexOf(n):-1,f=r?t.indexOf(r):c,h=r?e.indexOf(r):-1,g=c-f,m=t.indexOf(o),y=t.indexOf(s),S=$W(t),x=n!==void 0?S.indexOf(n):-1,D=x-(r?S.indexOf(r):c),_=v3(e,0),b=v3(e,i-1);if(c===-1||h===-1)return m3;if(!g&&h>=0)return h;if(c<=m&&l&&Math.abs(g)>1)return b;if(c>=y&&l&&Math.abs(g)>1)return _;if(g&&Math.abs(D)>1)return h;if(c<=m)return b;if(c>y)return _;if(g)return Math.abs(g)>1?h:(i+h+g)%i}},\"newFocus\"),E_=E(function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&E_(e.parentNode.host||e.parentNode,t),t},\"getParents\"),w_=E(function(e,t){for(var n=E_(e),r=E_(t),i=0;i<n.length;i+=1){var o=n[i];if(r.indexOf(o)>=0)return o}return!1},\"getCommonParent\"),g3=E(function(e,t,n){var r=f_(e),i=f_(t),o=r[0],s=!1;return i.filter(Boolean).forEach(function(l){s=w_(s||l,l)||s,n.filter(Boolean).forEach(function(c){var f=w_(o,c);f&&(!s||vh(f,s)?s=f:s=w_(f,s))})}),s},\"getTopCommonParent\"),BW=E(function(e,t){return e.reduce(function(n,r){return n.concat(IW(r,t))},[])},\"allParentAutofocusables\"),jW=E(function(e){return function(t){var n;return t.autofocus||!!(!((n=i3(t))===null||n===void 0)&&n.autofocus)||e.indexOf(t)>=0}},\"findAutoFocused\"),UW=E(function(e,t){var n=new Map;return t.forEach(function(r){return n.set(r.node,r)}),e.map(function(r){return n.get(r)}).filter(kW)},\"reorderNodes\"),qW=E(function(e,t){var n=document&&y_(),r=g_(e).filter(By),i=g3(n||e,e,r),o=new Map,s=c3(r,o),l=m_(r,o).filter(function(y){var S=y.node;return By(S)});if(!(!l[0]&&(l=s,!l[0]))){var c=c3([i],o).map(function(y){var S=y.node;return S}),f=UW(c,l),h=f.map(function(y){var S=y.node;return S}),g=VW(h,c,n,t);if(g===m3){var m=u3(s.map(function(y){var S=y.node;return S})).filter(jW(BW(r,o)));return{node:m&&m.length?h3(m):h3(u3(h))}}return g===void 0?g:f[g]}},\"getFocusMerge\"),HW=E(function(e){var t=g_(e).filter(By),n=g3(e,e,t),r=new Map,i=m_([n],r,!0),o=m_(t,r).filter(function(s){var l=s.node;return By(l)}).map(function(s){var l=s.node;return l});return i.map(function(s){var l=s.node,c=s.index;return{node:l,index:c,lockItem:o.indexOf(l)>=0,guard:d_(l)}})},\"getFocusabledIn\"),zW=E(function(e,t){\"focus\"in e&&e.focus(t),\"contentWindow\"in e&&e.contentWindow&&e.contentWindow.focus()},\"focusOn\"),S_=0,T_=!1,GW=E(function(e,t,n){n===void 0&&(n={});var r=qW(e,t);if(!T_&&r){if(S_>2){console.error(\"FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting\"),T_=!0,setTimeout(function(){T_=!1},1);return}S_++,zW(r.node,n.focusOptions),S_--}},\"setFocus\"),y3=GW;function __(e){var t=window,n=t.setImmediate;typeof n<\"u\"?n(e):setTimeout(e,1)}E(__,\"deferAction\");var WW=E(function(){return document&&document.activeElement===document.body},\"focusOnBody\"),QW=E(function(){return WW()||PW()},\"isFreeFocus\"),Sf=null,Tf=null,_f=null,mh=!1,YW=E(function(){return!0},\"defaultWhitelist\"),JW=E(function(t){return(Sf.whiteList||YW)(t)},\"focusWhitelisted\"),KW=E(function(t,n){_f={observerNode:t,portaledElement:n}},\"recordPortal\"),XW=E(function(t){return _f&&_f.portaledElement===t},\"focusIsPortaledPair\");function C_(e,t,n,r){var i=null,o=e;do{var s=r[o];if(s.guard)s.node.dataset.focusAutoGuard&&(i=s);else if(s.lockItem){if(o!==e)return;i=null}else break}while((o+=n)!==t);i&&(i.node.tabIndex=0)}E(C_,\"autoGuard\");var ZW=E(function(t){return t&&\"current\"in t?t.current:t},\"extractRef\"),eQ=E(function(t){return t?Boolean(mh):mh===\"meanwhile\"},\"focusWasOutside\"),tQ=E(function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))},\"checkInHost\"),nQ=E(function(t,n){return n.some(function(r){return tQ(t,r,r)})},\"withinHost\"),jy=E(function(){var t=!1;if(Sf){var n=Sf,r=n.observed,i=n.persistentFocus,o=n.autoFocus,s=n.shards,l=n.crossFrame,c=n.focusOptions,f=r||_f&&_f.portaledElement,h=document&&document.activeElement;if(f){var g=[f].concat(s.map(ZW).filter(Boolean));if((!h||JW(h))&&(i||eQ(l)||!QW()||!Tf&&o)&&(f&&!(p3(g)||h&&nQ(h,g)||XW(h))&&(document&&!Tf&&h&&!o?(h.blur&&h.blur(),document.body.focus()):(t=y3(g,Tf,{focusOptions:c}),_f={})),mh=!1,Tf=document&&document.activeElement),document){var m=document&&document.activeElement,y=HW(g),S=y.map(function(x){var D=x.node;return D}).indexOf(m);S>-1&&(y.filter(function(x){var D=x.guard,_=x.node;return D&&_.dataset.focusAutoGuard}).forEach(function(x){var D=x.node;return D.removeAttribute(\"tabIndex\")}),C_(S,y.length,1,y),C_(S,-1,-1,y))}}}return t},\"activateTrap\"),b3=E(function(t){jy()&&t&&(t.stopPropagation(),t.preventDefault())},\"onTrap\"),x_=E(function(){return __(jy)},\"onBlur\"),rQ=E(function(t){var n=t.target,r=t.currentTarget;r.contains(n)||KW(r,n)},\"onFocus\"),iQ=E(function(){return null},\"FocusWatcher\"),E3=E(function(){mh=\"just\",setTimeout(function(){mh=\"meanwhile\"},0)},\"onWindowBlur\"),oQ=E(function(){document.addEventListener(\"focusin\",b3),document.addEventListener(\"focusout\",x_),window.addEventListener(\"blur\",E3)},\"attachHandler\"),aQ=E(function(){document.removeEventListener(\"focusin\",b3),document.removeEventListener(\"focusout\",x_),window.removeEventListener(\"blur\",E3)},\"detachHandler\");function w3(e){return e.filter(function(t){var n=t.disabled;return!n})}E(w3,\"reducePropsToState\");function S3(e){var t=e.slice(-1)[0];t&&!Sf&&oQ();var n=Sf,r=n&&t&&t.id===n.id;Sf=t,n&&!r&&(n.onDeactivation(),e.filter(function(i){var o=i.id;return o===n.id}).length||n.returnFocus(!t)),t?(Tf=null,(!r||n.observed!==t.observed)&&t.onActivation(),jy(),__(jy)):(aQ(),Tf=null)}E(S3,\"handleStateChangeOnClient\"),Q5.assignSyncMedium(rQ),Y5.assignMedium(x_),yW.assignMedium(function(e){return e({moveFocusInside:y3,focusInside:p3})});var sQ=Z5(w3,S3)(iQ),T3=O.forwardRef(E(function(t,n){return O.createElement(J5,wf({sideCar:sQ,ref:n},t))},\"FocusLockUICombination\")),_3=J5.propTypes||{};_3.sideCar,j5(_3,[\"sideCar\"]),T3.propTypes={};var lQ=T3,Uy=\"right-scroll-bar-position\",qy=\"width-before-scroll-bar\",uQ=\"with-scroll-bars-hidden\",cQ=\"--removed-body-scroll-bar-size\",C3=u_(),k_=E(function(){},\"nothing\"),Hy=O.forwardRef(function(e,t){var n=O.useRef(null),r=O.useState({onScrollCapture:k_,onWheelCapture:k_,onTouchMoveCapture:k_}),i=r[0],o=r[1],s=e.forwardProps,l=e.children,c=e.className,f=e.removeScrollBar,h=e.enabled,g=e.shards,m=e.sideCar,y=e.noIsolation,S=e.inert,x=e.allowPinchZoom,D=e.as,_=D===void 0?\"div\":D,b=a_(e,[\"forwardProps\",\"children\",\"className\",\"removeScrollBar\",\"enabled\",\"shards\",\"sideCar\",\"noIsolation\",\"inert\",\"allowPinchZoom\",\"as\"]),C=m,T=i_([n,t]),N=Aa(Aa({},b),i);return O.createElement(O.Fragment,null,h&&O.createElement(C,{sideCar:C3,removeScrollBar:f,shards:g,noIsolation:y,inert:S,setCallbacks:o,allowPinchZoom:!!x,lockRef:n}),s?O.cloneElement(O.Children.only(l),Aa(Aa({},N),{ref:T})):O.createElement(_,Aa({},N,{className:c,ref:T}),l))});Hy.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Hy.classNames={fullWidth:qy,zeroRight:Uy};var fQ=E(function(){if(typeof __webpack_nonce__<\"u\")return __webpack_nonce__},\"getNonce\");function x3(){if(!document)return null;var e=document.createElement(\"style\");e.type=\"text/css\";var t=fQ();return t&&e.setAttribute(\"nonce\",t),e}E(x3,\"makeStyleTag\");function k3(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}E(k3,\"injectStyles\");function N3(e){var t=document.head||document.getElementsByTagName(\"head\")[0];t.appendChild(e)}E(N3,\"insertStyleTag\");var dQ=E(function(){var e=0,t=null;return{add:function(n){e==0&&(t=x3())&&(k3(t,n),N3(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},\"stylesheetSingleton\"),pQ=E(function(){var e=dQ();return function(t,n){O.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},\"styleHookSingleton\"),D3=E(function(){var e=pQ(),t=E(function(n){var r=n.styles,i=n.dynamic;return e(r,i),null},\"Sheet\");return t},\"styleSingleton\"),hQ={left:0,top:0,right:0,gap:0},N_=E(function(e){return parseInt(e||\"\",10)||0},\"parse$1\"),vQ=E(function(e){var t=window.getComputedStyle(document.body),n=t[e===\"padding\"?\"paddingLeft\":\"marginLeft\"],r=t[e===\"padding\"?\"paddingTop\":\"marginTop\"],i=t[e===\"padding\"?\"paddingRight\":\"marginRight\"];return[N_(n),N_(r),N_(i)]},\"getOffset\"),mQ=E(function(e){if(e===void 0&&(e=\"margin\"),typeof window>\"u\")return hQ;var t=vQ(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},\"getGapWidth\"),gQ=D3(),yQ=E(function(e,t,n,r){var i=e.left,o=e.top,s=e.right,l=e.gap;return n===void 0&&(n=\"margin\"),`\n .`.concat(uQ,` {\n overflow: hidden `).concat(r,`;\n padding-right: `).concat(l,\"px \").concat(r,`;\n }\n body {\n overflow: hidden `).concat(r,`;\n overscroll-behavior: contain;\n `).concat([t&&\"position: relative \".concat(r,\";\"),n===\"margin\"&&`\n padding-left: `.concat(i,`px;\n padding-top: `).concat(o,`px;\n padding-right: `).concat(s,`px;\n margin-left:0;\n margin-top:0;\n margin-right: `).concat(l,\"px \").concat(r,`;\n `),n===\"padding\"&&\"padding-right: \".concat(l,\"px \").concat(r,\";\")].filter(Boolean).join(\"\"),`\n }\n \n .`).concat(Uy,` {\n right: `).concat(l,\"px \").concat(r,`;\n }\n \n .`).concat(qy,` {\n margin-right: `).concat(l,\"px \").concat(r,`;\n }\n \n .`).concat(Uy,\" .\").concat(Uy,` {\n right: 0 `).concat(r,`;\n }\n \n .`).concat(qy,\" .\").concat(qy,` {\n margin-right: 0 `).concat(r,`;\n }\n \n body {\n `).concat(cQ,\": \").concat(l,`px;\n }\n`)},\"getStyles$2\"),bQ=E(function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?\"margin\":r,o=O.useMemo(function(){return mQ(i)},[i]);return O.createElement(gQ,{styles:yQ(o,!t,i,n?\"\":\"!important\")})},\"RemoveScrollBar\"),D_=!1;if(typeof window<\"u\")try{var zy=Object.defineProperty({},\"passive\",{get:function(){return D_=!0,!0}});window.addEventListener(\"test\",zy,zy),window.removeEventListener(\"test\",zy,zy)}catch{D_=!1}var Cf=D_?{passive:!1}:!1,EQ=E(function(e){return e.tagName===\"TEXTAREA\"},\"alwaysContainsScroll\"),A3=E(function(e,t){var n=window.getComputedStyle(e);return n[t]!==\"hidden\"&&!(n.overflowY===n.overflowX&&!EQ(e)&&n[t]===\"visible\")},\"elementCanBeScrolled\"),wQ=E(function(e){return A3(e,\"overflowY\")},\"elementCouldBeVScrolled\"),SQ=E(function(e){return A3(e,\"overflowX\")},\"elementCouldBeHScrolled\"),O3=E(function(e,t){var n=t;do{typeof ShadowRoot<\"u\"&&n instanceof ShadowRoot&&(n=n.host);var r=I3(e,n);if(r){var i=L3(e,n),o=i[1],s=i[2];if(o>s)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},\"locationCouldBeScrolled\"),TQ=E(function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},\"getVScrollVariables\"),_Q=E(function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},\"getHScrollVariables\"),I3=E(function(e,t){return e===\"v\"?wQ(t):SQ(t)},\"elementCouldBeScrolled\"),L3=E(function(e,t){return e===\"v\"?TQ(t):_Q(t)},\"getScrollVariables\"),CQ=E(function(e,t){return e===\"h\"&&t===\"rtl\"?-1:1},\"getDirectionFactor\"),xQ=E(function(e,t,n,r,i){var o=CQ(e,window.getComputedStyle(t).direction),s=o*r,l=n.target,c=t.contains(l),f=!1,h=s>0,g=0,m=0;do{var y=L3(e,l),S=y[0],x=y[1],D=y[2],_=x-D-o*S;(S||_)&&I3(e,l)&&(g+=_,m+=S),l=l.parentNode}while(!c&&l!==document.body||c&&(t.contains(l)||t===l));return(h&&(i&&g===0||!i&&s>g)||!h&&(i&&m===0||!i&&-s>m))&&(f=!0),f},\"handleScroll\"),Gy=E(function(e){return\"changedTouches\"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},\"getTouchXY\"),F3=E(function(e){return[e.deltaX,e.deltaY]},\"getDeltaXY\"),R3=E(function(e){return e&&\"current\"in e?e.current:e},\"extractRef\"),kQ=E(function(e,t){return e[0]===t[0]&&e[1]===t[1]},\"deltaCompare\"),NQ=E(function(e){return`\n .block-interactivity-`.concat(e,` {pointer-events: none;}\n .allow-interactivity-`).concat(e,` {pointer-events: all;}\n`)},\"generateStyle\"),DQ=0,xf=[];function P3(e){var t=O.useRef([]),n=O.useRef([0,0]),r=O.useRef(),i=O.useState(DQ++)[0],o=O.useState(function(){return D3()})[0],s=O.useRef(e);O.useEffect(function(){s.current=e},[e]),O.useEffect(function(){if(e.inert){document.body.classList.add(\"block-interactivity-\".concat(i));var x=z5([e.lockRef.current],(e.shards||[]).map(R3),!0).filter(Boolean);return x.forEach(function(D){return D.classList.add(\"allow-interactivity-\".concat(i))}),function(){document.body.classList.remove(\"block-interactivity-\".concat(i)),x.forEach(function(D){return D.classList.remove(\"allow-interactivity-\".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=O.useCallback(function(x,D){if(\"touches\"in x&&x.touches.length===2)return!s.current.allowPinchZoom;var _=Gy(x),b=n.current,C=\"deltaX\"in x?x.deltaX:b[0]-_[0],T=\"deltaY\"in x?x.deltaY:b[1]-_[1],N,F=x.target,L=Math.abs(C)>Math.abs(T)?\"h\":\"v\";if(\"touches\"in x&&L===\"h\"&&F.type===\"range\")return!1;var A=O3(L,F);if(!A)return!0;if(A?N=L:(N=L===\"v\"?\"h\":\"v\",A=O3(L,F)),!A)return!1;if(!r.current&&\"changedTouches\"in x&&(C||T)&&(r.current=N),!N)return!0;var P=r.current||N;return xQ(P,D,x,P===\"h\"?C:T,!0)},[]),c=O.useCallback(function(x){var D=x;if(!(!xf.length||xf[xf.length-1]!==o)){var _=\"deltaY\"in D?F3(D):Gy(D),b=t.current.filter(function(N){return N.name===D.type&&N.target===D.target&&kQ(N.delta,_)})[0];if(b&&b.should){D.cancelable&&D.preventDefault();return}if(!b){var C=(s.current.shards||[]).map(R3).filter(Boolean).filter(function(N){return N.contains(D.target)}),T=C.length>0?l(D,C[0]):!s.current.noIsolation;T&&D.cancelable&&D.preventDefault()}}},[]),f=O.useCallback(function(x,D,_,b){var C={name:x,delta:D,target:_,should:b};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(T){return T!==C})},1)},[]),h=O.useCallback(function(x){n.current=Gy(x),r.current=void 0},[]),g=O.useCallback(function(x){f(x.type,F3(x),x.target,l(x,e.lockRef.current))},[]),m=O.useCallback(function(x){f(x.type,Gy(x),x.target,l(x,e.lockRef.current))},[]);O.useEffect(function(){return xf.push(o),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:m}),document.addEventListener(\"wheel\",c,Cf),document.addEventListener(\"touchmove\",c,Cf),document.addEventListener(\"touchstart\",h,Cf),function(){xf=xf.filter(function(x){return x!==o}),document.removeEventListener(\"wheel\",c,Cf),document.removeEventListener(\"touchmove\",c,Cf),document.removeEventListener(\"touchstart\",h,Cf)}},[]);var y=e.removeScrollBar,S=e.inert;return O.createElement(O.Fragment,null,S?O.createElement(o,{styles:NQ(i)}):null,y?O.createElement(bQ,{gapMode:\"margin\"}):null)}E(P3,\"RemoveScrollSideCar\");var AQ=W5(C3,P3),M3=O.forwardRef(function(e,t){return O.createElement(Hy,Aa({},e,{ref:t,sideCar:AQ}))});M3.classNames=Hy.classNames;var OQ=M3,$3={exports:{}},IQ=\"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED\",LQ=IQ,FQ=LQ;function A_(){}E(A_,\"emptyFunction\");function O_(){}E(O_,\"emptyFunctionWithReset\"),O_.resetWarningCache=A_;var RQ=E(function(){function e(r,i,o,s,l,c){if(c!==FQ){var f=new Error(\"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types\");throw f.name=\"Invariant Violation\",f}}E(e,\"shim\"),e.isRequired=e;function t(){return e}E(t,\"getShim\");var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:O_,resetWarningCache:A_};return n.PropTypes=n,n},\"factoryWithThrowingShims\");$3.exports=RQ();var Wy=$3.exports;function ju(){return ju=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ju.apply(this,arguments)}E(ju,\"_extends$9\");function gh(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}E(gh,\"_objectWithoutPropertiesLoose$9\");var PQ=[\"as\",\"isOpen\"],MQ=[\"allowPinchZoom\",\"as\",\"dangerouslyBypassFocusLock\",\"dangerouslyBypassScrollLock\",\"initialFocusRef\",\"onClick\",\"onDismiss\",\"onKeyDown\",\"onMouseDown\",\"unstable_lockFocusAcrossFrames\"],$Q=[\"as\",\"onClick\",\"onKeyDown\"],VQ=[\"allowPinchZoom\",\"initialFocusRef\",\"isOpen\",\"onDismiss\"];Wy.bool,Wy.bool,Wy.bool,Wy.func;var BQ=O.forwardRef(E(function(t,n){var r=t.as,i=r===void 0?\"div\":r,o=t.isOpen,s=o===void 0?!0:o,l=gh(t,PQ);return O.useEffect(function(){s?window.__REACH_DISABLE_TOOLTIPS=!0:window.requestAnimationFrame(function(){window.__REACH_DISABLE_TOOLTIPS=!1})},[s]),s?O.createElement(XT,{\"data-reach-dialog-wrapper\":\"\"},O.createElement(jQ,ju({ref:n,as:i},l))):null},\"DialogOverlay\")),jQ=O.forwardRef(E(function(t,n){var r=t.allowPinchZoom,i=t.as,o=i===void 0?\"div\":i,s=t.dangerouslyBypassFocusLock,l=s===void 0?!1:s,c=t.dangerouslyBypassScrollLock,f=c===void 0?!1:c,h=t.initialFocusRef,g=t.onClick,m=t.onDismiss,y=m===void 0?Bu:m,S=t.onKeyDown,x=t.onMouseDown,D=t.unstable_lockFocusAcrossFrames,_=gh(t,MQ),b=O.useRef(null),C=O.useRef(null),T=Lr(C,n),N=O.useCallback(function(){h&&h.current&&h.current.focus()},[h]);function F(P){b.current===P.target&&(P.stopPropagation(),y(P))}E(F,\"handleClick\");function L(P){P.key===\"Escape\"&&(P.stopPropagation(),y(P))}E(L,\"handleKeyDown\");function A(P){b.current=P.target}return E(A,\"handleMouseDown\"),O.useEffect(function(){return C.current?V3(C.current):void 0},[]),O.createElement(lQ,{autoFocus:!0,returnFocus:!0,onActivation:N,disabled:l,crossFrame:D??!0},O.createElement(OQ,{allowPinchZoom:r,enabled:!f},O.createElement(o,ju({},_,{ref:T,\"data-reach-dialog-overlay\":\"\",onClick:it(g,F),onKeyDown:it(S,L),onMouseDown:it(x,A)}))))},\"DialogInner\")),UQ=O.forwardRef(E(function(t,n){var r=t.as,i=r===void 0?\"div\":r,o=t.onClick;t.onKeyDown;var s=gh(t,$Q);return O.createElement(i,ju({\"aria-modal\":\"true\",role:\"dialog\",tabIndex:-1},s,{ref:n,\"data-reach-dialog-content\":\"\",onClick:it(o,function(l){l.stopPropagation()})}))},\"DialogContent\")),qQ=O.forwardRef(E(function(t,n){var r=t.allowPinchZoom,i=r===void 0?!1:r,o=t.initialFocusRef,s=t.isOpen,l=t.onDismiss,c=l===void 0?Bu:l,f=gh(t,VQ);return O.createElement(BQ,{allowPinchZoom:i,initialFocusRef:o,isOpen:s,onDismiss:c},O.createElement(UQ,ju({ref:n},f)))},\"Dialog\"));function V3(e){var t=[],n=[],r=ia(e);return e?(Array.prototype.forEach.call(r.querySelectorAll(\"body > *\"),function(i){var o,s,l=(o=e.parentNode)==null||(s=o.parentNode)==null?void 0:s.parentNode;if(i!==l){var c=i.getAttribute(\"aria-hidden\"),f=c!==null&&c!==\"false\";f||(t.push(c),n.push(i),i.setAttribute(\"aria-hidden\",\"true\"))}}),function(){n.forEach(function(i,o){var s=t[o];s===null?i.removeAttribute(\"aria-hidden\"):i.setAttribute(\"aria-hidden\",s)})}):Bu}E(V3,\"createAriaHider\");function yh(){return yh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yh.apply(this,arguments)}E(yh,\"_extends$8\");function B3(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}E(B3,\"_objectWithoutPropertiesLoose$8\");var HQ=[\"as\",\"style\"],j3=O.forwardRef(E(function(t,n){var r=t.as,i=r===void 0?\"span\":r,o=t.style,s=o===void 0?{}:o,l=B3(t,HQ);return O.createElement(i,yh({ref:n,style:yh({border:0,clip:\"rect(0 0 0 0)\",height:\"1px\",margin:\"-1px\",overflow:\"hidden\",padding:0,position:\"absolute\",width:\"1px\",whiteSpace:\"nowrap\",wordWrap:\"normal\"},s)},l))},\"VisuallyHidden\")),zQ=Object.defineProperty,GQ=E((e,t)=>zQ(e,\"name\",{value:t,configurable:!0}),\"__name$D\");const kf=GQ((e,t)=>Object.entries(t).reduce((n,[r,i])=>(n[r]=i,n),e),\"createComponentGroup\"),U3=O.forwardRef((e,t)=>ie(qQ,Kt(Dt({},e),{ref:t})));U3.displayName=\"Dialog\";const q3=O.forwardRef((e,t)=>lt(ir,Kt(Dt({},e),{ref:t,type:\"button\",className:Jr(\"graphiql-dialog-close\",e.className),children:[ie(j3,{children:\"Close dialog\"}),ie(QT,{})]})));q3.displayName=\"Dialog.Close\";const Qy=kf(U3,{Close:q3});var I_=!1,WQ=0;function L_(){return++WQ}E(L_,\"genId\");function bh(e){var t;if(typeof O.useId==\"function\"){var n=O.useId(e);return e??n}var r=e??(I_?L_():null),i=O.useState(r),o=i[0],s=i[1];return bs(function(){o===null&&s(L_())},[]),O.useEffect(function(){I_===!1&&(I_=!0)},[]),(t=e??o)!=null?t:void 0}E(bh,\"useId\");var QQ=[\"bottom\",\"height\",\"left\",\"right\",\"top\",\"width\"],YQ=E(function(t,n){return t===void 0&&(t={}),n===void 0&&(n={}),QQ.some(function(r){return t[r]!==n[r]})},\"rectChanged\"),xl=new Map,H3,JQ=E(function e(){var t=[];xl.forEach(function(n,r){var i=r.getBoundingClientRect();YQ(i,n.rect)&&(n.rect=i,t.push(n))}),t.forEach(function(n){n.callbacks.forEach(function(r){return r(n.rect)})}),H3=window.requestAnimationFrame(e)},\"run\");function z3(e,t){return{observe:E(function(){var r=xl.size===0;xl.has(e)?xl.get(e).callbacks.push(t):xl.set(e,{rect:void 0,hasRectChanged:!1,callbacks:[t]}),r&&JQ()},\"observe\"),unobserve:E(function(){var r=xl.get(e);if(r){var i=r.callbacks.indexOf(t);i>=0&&r.callbacks.splice(i,1),r.callbacks.length||xl.delete(e),xl.size||cancelAnimationFrame(H3)}},\"unobserve\")}}E(z3,\"observeRect\");function Eh(e,t,n){var r,i;if(ZT(t))r=t;else{var o;r=(o=t==null?void 0:t.observe)!=null?o:!0,i=t==null?void 0:t.onChange}Da(n)&&(i=n);var s=O.useState(e.current),l=s[0],c=s[1],f=O.useRef(!1),h=O.useRef(!1),g=O.useState(null),m=g[0],y=g[1],S=O.useRef(i);return bs(function(){S.current=i,e.current!==l&&c(e.current)}),bs(function(){l&&!f.current&&(f.current=!0,y(l.getBoundingClientRect()))},[l]),bs(function(){if(r){var x=l;if(h.current||(h.current=!0,x=e.current),!!x){var D=z3(x,function(_){S.current==null||S.current(_),y(_)});return D.observe(),function(){D.unobserve()}}}},[r,l,e]),m}E(Eh,\"useRect\");var G3=[\"input\",\"select\",\"textarea\",\"a[href]\",\"button\",\"[tabindex]\",\"audio[controls]\",\"video[controls]\",'[contenteditable]:not([contenteditable=\"false\"])'],F_=G3.join(\",\"),R_=typeof Element>\"u\"?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;function Yy(e,t){t=t||{};var n=[],r=[],i=e.querySelectorAll(F_);t.includeContainer&&R_.call(e,F_)&&(i=Array.prototype.slice.apply(i),i.unshift(e));var o,s,l;for(o=0;o<i.length;o++)s=i[o],P_(s)&&(l=$_(s),l===0?n.push(s):r.push({documentOrder:o,tabIndex:l,node:s}));var c=r.sort(Y3).map(function(f){return f.node}).concat(n);return c}E(Yy,\"tabbable\"),Yy.isTabbable=W3,Yy.isFocusable=Q3;function P_(e){return!(!M_(e)||Z3(e)||$_(e)<0)}E(P_,\"isNodeMatchingSelectorTabbable\");function W3(e){if(!e)throw new Error(\"No node provided\");return R_.call(e,F_)===!1?!1:P_(e)}E(W3,\"isTabbable\");function M_(e){return!(e.disabled||K3(e)||nP(e))}E(M_,\"isNodeMatchingSelectorFocusable\");var KQ=G3.concat(\"iframe\").join(\",\");function Q3(e){if(!e)throw new Error(\"No node provided\");return R_.call(e,KQ)===!1?!1:M_(e)}E(Q3,\"isFocusable\");function $_(e){var t=parseInt(e.getAttribute(\"tabindex\"),10);return isNaN(t)?J3(e)?0:e.tabIndex:t}E($_,\"getTabindex\");function Y3(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}E(Y3,\"sortOrderedTabbables\");function J3(e){return e.contentEditable===\"true\"}E(J3,\"isContentEditable\");function V_(e){return e.tagName===\"INPUT\"}E(V_,\"isInput\");function K3(e){return V_(e)&&e.type===\"hidden\"}E(K3,\"isHiddenInput\");function X3(e){return V_(e)&&e.type===\"radio\"}E(X3,\"isRadio\");function Z3(e){return X3(e)&&!tP(e)}E(Z3,\"isNonTabbableRadio\");function eP(e){for(var t=0;t<e.length;t++)if(e[t].checked)return e[t]}E(eP,\"getCheckedRadio\");function tP(e){if(!e.name)return!0;var t=e.ownerDocument.querySelectorAll('input[type=\"radio\"][name=\"'+e.name+'\"]'),n=eP(t);return!n||n===e}E(tP,\"isTabbableRadio\");function nP(e){return e.offsetParent===null||getComputedStyle(e).visibility===\"hidden\"}E(nP,\"isHidden\");var Es=Yy;function kl(){return kl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kl.apply(this,arguments)}E(kl,\"_extends$7\");function B_(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}E(B_,\"_objectWithoutPropertiesLoose$7\");var XQ=[\"unstable_skipInitialPortalRender\"],ZQ=[\"as\",\"targetRef\",\"position\",\"unstable_observableRefs\"],j_=O.forwardRef(E(function(t,n){var r=t.unstable_skipInitialPortalRender,i=B_(t,XQ);return O.createElement(XT,{unstable_skipInitialRender:r},O.createElement(eY,kl({ref:n},i)))},\"Popover\")),eY=O.forwardRef(E(function(t,n){var r=t.as,i=r===void 0?\"div\":r,o=t.targetRef,s=t.position,l=s===void 0?tY:s,c=t.unstable_observableRefs,f=c===void 0?[]:c,h=B_(t,ZQ),g=O.useRef(null),m=Eh(g,{observe:!h.hidden}),y=Eh(o,{observe:!h.hidden}),S=Lr(g,n);return oP(o,g),O.createElement(i,kl({\"data-reach-popover\":\"\",ref:S},h,{style:kl({position:\"absolute\"},rP.apply(void 0,[l,y,m].concat(f)),h.style)}))},\"PopoverImpl\"));function rP(e,t,n){for(var r=arguments.length,i=new Array(r>3?r-3:0),o=3;o<r;o++)i[o-3]=arguments[o];return n?e.apply(void 0,[t,n].concat(i.map(function(s){return s.current}))):{visibility:\"hidden\"}}E(rP,\"getStyles$1\");function U_(e,t,n){return{top:n?e.top-t.height+window.pageYOffset+\"px\":e.top+e.height+window.pageYOffset+\"px\"}}E(U_,\"getTopPosition\");var tY=E(function(t,n){if(!t||!n)return{};var r=q_(t,n),i=r.directionRight,o=r.directionUp;return kl({left:i?t.right-n.width+window.pageXOffset+\"px\":t.left+window.pageXOffset+\"px\"},U_(t,n,o))},\"positionDefault\"),iP=E(function(t,n){if(!t||!n)return{};var r=q_(t,n),i=r.directionUp;return kl({width:t.width,left:t.left},U_(t,n,i))},\"positionMatchWidth\");function q_(e,t,n,r){n===void 0&&(n=0),r===void 0&&(r=0);var i={top:e.top-t.height<0,right:window.innerWidth<e.left+t.width-n,bottom:window.innerHeight<e.bottom+t.height-r,left:e.left+e.width-t.width<0},o=i.right&&!i.left,s=i.left&&!i.right,l=i.bottom&&!i.top,c=i.top&&!i.bottom;return{directionRight:o,directionLeft:s,directionUp:l,directionDown:c}}E(q_,\"getCollisions\");function oP(e,t){var n=ia(e.current);function r(b){b.key===\"Tab\"&&t.current&&Es(t.current).length===0||(b.key===\"Tab\"&&b.shiftKey?f(b)?h(b):g(b)?m(b):S(b)&&D():b.key===\"Tab\"&&(o()?s(b):l()?c(b):y(b)&&D()))}E(r,\"handleKeyDown\"),O.useEffect(function(){return n.addEventListener(\"keydown\",r),function(){n.removeEventListener(\"keydown\",r)}},[]);function i(){var b=Es(n),C=b&&e.current?b.indexOf(e.current):-1,T=b&&b[C+1];return t.current&&t.current.contains(T||null)?!1:T}E(i,\"getElementAfterTrigger\");function o(){return e.current?e.current===n.activeElement:!1}E(o,\"tabbedFromTriggerToPopover\");function s(b){var C=t.current&&Es(t.current);C&&C[0]&&(b.preventDefault(),C[0].focus())}E(s,\"focusFirstPopoverTabbable\");function l(){var b=t.current?t.current.contains(n.activeElement||null):!1;if(b){var C=t.current&&Es(t.current);return Boolean(C&&C[C.length-1]===n.activeElement)}return!1}E(l,\"tabbedOutOfPopover\");function c(b){var C=i();C&&(b.preventDefault(),C.focus())}E(c,\"focusTabbableAfterTrigger\");function f(b){if(b.shiftKey){var C=i();return b.target===C}}E(f,\"shiftTabbedFromElementAfterTrigger\");function h(b){var C=t.current&&Es(t.current),T=C&&C[C.length-1];T&&(b.preventDefault(),T.focus())}E(h,\"focusLastTabbableInPopover\");function g(b){var C=t.current&&Es(t.current);return C?C.length===0?!1:b.target===C[0]:!1}E(g,\"shiftTabbedOutOfPopover\");function m(b){var C;b.preventDefault(),(C=e.current)==null||C.focus()}E(m,\"focusTriggerRef\");function y(b){var C=t.current?Es(n).filter(function(T){return!t.current.contains(T)}):null;return C?b.target===C[C.length-1]:!1}E(y,\"tabbedToBrowserChrome\");function S(b){return b.target===Es(n)[0]}E(S,\"shiftTabbedToBrowserChrome\");var x=[];function D(){var b=t.current&&Es(t.current);b&&(b.forEach(function(C){x.push([C,C.tabIndex]),C.tabIndex=-1}),n.addEventListener(\"focusin\",_))}E(D,\"disableTabbablesInPopover\");function _(){n.removeEventListener(\"focusin\",_),x.forEach(function(b){var C=b[0],T=b[1];C.tabIndex=T})}E(_,\"enableTabbablesInPopover\")}E(oP,\"useSimulateTabNavigationForReactTree\");function aP(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}E(aP,\"_objectWithoutPropertiesLoose$6\");function ws(){return ws=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ws.apply(this,arguments)}E(ws,\"_extends$6\");var nY=[\"element\",\"index\"];function Jy(e,t){t===void 0&&(t={});var n=[],r=O.createContext(ws({descendants:n,registerDescendant:Bu,unregisterDescendant:Bu},t));return r}E(Jy,\"createDescendantContext\");function Ky(e,t,n){var r=KT(),i=O.useContext(t),o=i.registerDescendant,s=i.unregisterDescendant,l=i.descendants,c=n??l.findIndex(function(f){return f.element===e.element});return bs(function(){return e.element||r(),o(ws({},e,{index:c})),function(){s(e.element)}},[e,r,c,o,s].concat(Object.values(e))),c}E(Ky,\"useDescendant\");function Xy(){return O.useState([])}E(Xy,\"useDescendantsInit\");function Zy(e){return O.useContext(e).descendants}E(Zy,\"useDescendants\");function e0(e){var t=e.context,n=e.children,r=e.items,i=e.set,o=O.useCallback(function(l){var c=l.element,f=l.index,h=aP(l,nY);c&&i(function(g){var m;if(f!=null)return[].concat(g,[ws({},h,{element:c,index:f})]).sort(function(x,D){return x.index-D.index});if(g.length===0)m=[ws({},h,{element:c,index:0})];else if(g.find(function(x){return x.element===c}))m=g;else{var y=g.findIndex(function(x){return!x.element||!c?!1:Boolean(x.element.compareDocumentPosition(c)&Node.DOCUMENT_POSITION_PRECEDING)}),S=ws({},h,{element:c,index:y});y===-1?m=[].concat(g,[S]):m=[].concat(g.slice(0,y),[S],g.slice(y))}return m.map(function(x,D){return ws({},x,{index:D})})})},[]),s=O.useCallback(function(l){l&&i(function(c){return c.filter(function(f){return l!==f.element})})},[]);return O.createElement(t.Provider,{value:O.useMemo(function(){return{descendants:r,registerDescendant:o,unregisterDescendant:s}},[r,o,s])},n)}E(e0,\"DescendantProvider\");function H_(e,t){var n=O.useContext(e),r=n.descendants,i=t.callback,o=t.currentIndex,s=t.filter,l=t.key,c=l===void 0?\"index\":l,f=t.orientation,h=f===void 0?\"vertical\":f,g=t.rotate,m=g===void 0?!0:g,y=t.rtl,S=y===void 0?!1:y;return E(function(D){if(![\"ArrowDown\",\"ArrowUp\",\"ArrowLeft\",\"ArrowRight\",\"PageUp\",\"PageDown\",\"Home\",\"End\"].includes(D.key))return;var _=o??-1,b=s?r.filter(s):r;if(!b.length)return;var C=b.findIndex(function(X){return X.index===o});function T(){var X=_===L().index;return X?m?F():b[C]:b[(C+1)%b.length]}E(T,\"getNextOption\");function N(){var X=_===F().index;return X?m?L():b[C]:b[(C-1+b.length)%b.length]}E(N,\"getPreviousOption\");function F(){return b[0]}E(F,\"getFirstOption\");function L(){return b[b.length-1]}switch(E(L,\"getLastOption\"),D.key){case\"ArrowDown\":if(h===\"vertical\"||h===\"both\"){D.preventDefault();var A=T();i(c===\"option\"?A:A[c])}break;case\"ArrowUp\":if(h===\"vertical\"||h===\"both\"){D.preventDefault();var P=N();i(c===\"option\"?P:P[c])}break;case\"ArrowLeft\":if(h===\"horizontal\"||h===\"both\"){D.preventDefault();var V=(S?T:N)();i(c===\"option\"?V:V[c])}break;case\"ArrowRight\":if(h===\"horizontal\"||h===\"both\"){D.preventDefault();var H=(S?N:T)();i(c===\"option\"?H:H[c])}break;case\"PageUp\":D.preventDefault();var G=(D.ctrlKey?N:F)();i(c===\"option\"?G:G[c]);break;case\"Home\":D.preventDefault();var z=F();i(c===\"option\"?z:z[c]);break;case\"PageDown\":D.preventDefault();var U=(D.ctrlKey?T:L)();i(c===\"option\"?U:U[c]);break;case\"End\":D.preventDefault();var j=L();i(c===\"option\"?j:j[c]);break}},\"handleKeyDown\")}E(H_,\"useDescendantKeyDown\");function Ia(e){return\"which\"in e?e.which===3:\"button\"in e?e.button===2:!1}E(Ia,\"isRightClick\");function sP(e,t){var n=O.useRef(t);return e(function(){n.current=t}),O.useCallback(function(){n.current&&n.current.apply(n,arguments)},[])}E(sP,\"createStableCallbackHook\");function lP(e){return sP(O.useEffect,e)}E(lP,\"useStableCallback\");function uP(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}E(uP,\"_objectWithoutPropertiesLoose$5\");var rY=[\"children\"];function t0(e,t){var n=O.createContext(t);return n}E(t0,\"createNamedContext\");function cP(e,t){var n=O.createContext(t);function r(o){var s=o.children,l=uP(o,rY),c=O.useMemo(function(){return l},Object.values(l));return O.createElement(n.Provider,{value:c},s)}E(r,\"Provider\");function i(o){var s=O.useContext(n);if(s)return s;if(t)return t;throw Error(o+\" must be rendered inside of a \"+e+\" component.\")}return E(i,\"useContext$1\"),[r,i]}E(cP,\"createContext\");function oa(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(function(r){return r!=null}).join(\"--\")}E(oa,\"makeId\");function n0(e,t){var n=O.useState(t),r=n[0],i=n[1],o=O.useCallback(function(s){e.current=s,i(s)},[]);return[r,o]}E(n0,\"useStatefulRefValue\");/*! *****************************************************************************\n\tCopyright (c) Microsoft Corporation. All rights reserved.\n\tLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\n\tthis file except in compliance with the License. You may obtain a copy of the\n\tLicense at http://www.apache.org/licenses/LICENSE-2.0\n\n\tTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n\tKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\n\tWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\n\tMERCHANTABLITY OR NON-INFRINGEMENT.\n\n\tSee the Apache Version 2.0 License for specific language governing permissions\n\tand limitations under the License.\n\t***************************************************************************** */var Nf;(function(e){e[e.NotStarted=0]=\"NotStarted\",e[e.Running=1]=\"Running\",e[e.Stopped=2]=\"Stopped\"})(Nf||(Nf={}));var iY={type:\"xstate.init\"};function z_(e){return e===void 0?[]:[].concat(e)}E(z_,\"e$1\");function La(e){return{type:\"xstate.assign\",assignment:e}}E(La,\"r$1\");function G_(e,t){return typeof(e=typeof e==\"string\"&&t&&t[e]?t[e]:e)==\"string\"?{type:e}:typeof e==\"function\"?{type:e.name,exec:e}:e}E(G_,\"i$1\");function r0(e){return function(t){return e===t}}E(r0,\"o\");function W_(e){return typeof e==\"string\"?{type:e}:e}E(W_,\"a\");function Q_(e,t){return{value:e,context:t,actions:[],changed:!1,matches:r0(e)}}E(Q_,\"u\");function fP(e,t){t===void 0&&(t={});var n={config:e,_options:t,initialState:{value:e.initial,actions:z_(e.states[e.initial].entry).map(function(r){return G_(r,t.actions)}),context:e.context,matches:r0(e.initial)},transition:function(r,i){var o,s,l=typeof r==\"string\"?{value:r,context:e.context}:r,c=l.value,f=l.context,h=W_(i),g=e.states[c];if(g.on){var m=z_(g.on[h.type]),y=E(function(_){if(_===void 0)return{value:Q_(c,f)};var b=typeof _==\"string\"?{target:_}:_,C=b.target,T=C===void 0?c:C,N=b.actions,F=N===void 0?[]:N,L=b.cond,A=f;if((L===void 0?function(){return!0}:L)(f,h)){var P=e.states[T],V=!1,H=[].concat(g.exit,F,P.entry).filter(function(G){return G}).map(function(G){return G_(G,n._options.actions)}).filter(function(G){if(G.type===\"xstate.assign\"){V=!0;var z=Object.assign({},A);return typeof G.assignment==\"function\"?z=G.assignment(A,h):Object.keys(G.assignment).forEach(function(U){z[U]=typeof G.assignment[U]==\"function\"?G.assignment[U](A,h):G.assignment[U]}),A=z,!1}return!0});return{value:{value:T,context:A,actions:H,changed:T!==c||H.length>0||V,matches:r0(T)}}}},\"x\");try{for(var S=function(_){var b=typeof Symbol==\"function\"&&_[Symbol.iterator],C=0;return b?b.call(_):{next:function(){return _&&C>=_.length&&(_=void 0),{value:_&&_[C++],done:!_}}}}(m),x=S.next();!x.done;x=S.next()){var D=y(x.value);if(typeof D==\"object\")return D.value}}catch(_){o={error:_}}finally{try{x&&!x.done&&(s=S.return)&&s.call(S)}finally{if(o)throw o.error}}}return Q_(c,f)}};return n}E(fP,\"c$1\");var dP=E(function(e,t){return e.actions.forEach(function(n){var r=n.exec;return r&&r(e.context,t)})},\"s\");function pP(e){var t=e.initialState,n=Nf.NotStarted,r=new Set,i={_machine:e,send:function(o){n===Nf.Running&&(t=e.transition(t,o),dP(t,W_(o)),r.forEach(function(s){return s(t)}))},subscribe:function(o){return r.add(o),o(t),{unsubscribe:function(){return r.delete(o)}}},start:function(){return n=Nf.Running,dP(t,iY),i},stop:function(){return n=Nf.Stopped,r.clear(),i},get state(){return t},get status(){return n}};return i}E(pP,\"f$1\");function Y_(e){var t=O.useRef();return t.current||(t.current={v:e()}),t.current.v}E(Y_,\"useConstant\");function wh(){return wh=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wh.apply(this,arguments)}E(wh,\"_extends$5\");var oY=E(function(t){var n;return t.subscribe(function(r){n=r}).unsubscribe(),n},\"getServiceState\");function hP(e,t,n){var r=O.useRef(e),i=Y_(function(){return pP(r.current).start()}),o=O.useRef(null),s=O.useState(function(){return oY(i)}),l=s[0],c=s[1],f=O.useCallback(function(g){var m=My(g)?{type:g}:g,y=vP(t);i.send(wh({},m,{lastEventType:o.current,refs:y})),o.current=m.type},[n]);O.useEffect(function(){return i.subscribe(E(function(m){m.changed&&c(m)},\"setStateIfChanged\")),function(){i.stop()}},[i]),O.useEffect(function(){},[n,l]);var h=O.useMemo(function(){return wh({},l,{matches:E(function(m){return m===l.value},\"matches\")})},[l.changed,l.context,l.value]);return[h,f,i]}E(hP,\"useMachine\");function vP(e){return Object.entries(e).reduce(function(t,n){var r=n[0],i=n[1];return t[r]=i.current,t},{})}E(vP,\"unwrapRefs\");function mP(e,t){return Y_(function(){return fP(e,t)})}E(mP,\"useCreateMachine\");function Fr(){return Fr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fr.apply(this,arguments)}E(Fr,\"_extends$4\");function Nl(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}E(Nl,\"_objectWithoutPropertiesLoose$4\");var i0,Te;(function(e){e.Idle=\"IDLE\",e.Open=\"OPEN\",e.Navigating=\"NAVIGATING\",e.Dragging=\"DRAGGING\",e.Interacting=\"INTERACTING\"})(Te||(Te={}));var Ee;(function(e){e.ButtonMouseDown=\"BUTTON_MOUSE_DOWN\",e.ButtonMouseUp=\"BUTTON_MOUSE_UP\",e.Blur=\"BLUR\",e.ClearNavSelection=\"CLEAR_NAV_SELECTION\",e.ClearTypeahead=\"CLEAR_TYPEAHEAD\",e.GetDerivedData=\"GET_DERIVED_DATA\",e.KeyDownEscape=\"KEY_DOWN_ESCAPE\",e.KeyDownEnter=\"KEY_DOWN_ENTER\",e.KeyDownSpace=\"KEY_DOWN_SPACE\",e.KeyDownNavigate=\"KEY_DOWN_NAVIGATE\",e.KeyDownSearch=\"KEY_DOWN_SEARCH\",e.KeyDownTab=\"KEY_DOWN_TAB\",e.KeyDownShiftTab=\"KEY_DOWN_SHIFT_TAB\",e.OptionTouchStart=\"OPTION_TOUCH_START\",e.OptionMouseMove=\"OPTION_MOUSE_MOVE\",e.OptionMouseEnter=\"OPTION_MOUSE_ENTER\",e.OptionMouseDown=\"OPTION_MOUSE_DOWN\",e.OptionMouseUp=\"OPTION_MOUSE_UP\",e.OptionClick=\"OPTION_CLICK\",e.ListMouseUp=\"LIST_MOUSE_UP\",e.OptionPress=\"OPTION_PRESS\",e.OutsideMouseDown=\"OUTSIDE_MOUSE_DOWN\",e.OutsideMouseUp=\"OUTSIDE_MOUSE_UP\",e.ValueChange=\"VALUE_CHANGE\",e.PopoverPointerDown=\"POPOVER_POINTER_DOWN\",e.PopoverPointerUp=\"POPOVER_POINTER_UP\",e.UpdateAfterTypeahead=\"UPDATE_AFTER_TYPEAHEAD\"})(Ee||(Ee={}));var Sh=La({navigationValue:null}),We=La({typeaheadQuery:null}),br=La({value:E(function(t,n){return n.value},\"value\")}),Ii=La({navigationValue:E(function(t,n){return n.value},\"navigationValue\")}),Uu=La({navigationValue:E(function(t){var n=yP(t.value,t.options);if(n&&!n.disabled)return t.value;var r;return((r=t.options.find(function(i){return!i.disabled}))==null?void 0:r.value)||null},\"navigationValue\")});function Th(e,t){if(t.type===Ee.Blur){var n=t.refs,r=n.list,i=n.popover,o=t.relatedTarget,s=ia(i);return!!((s==null?void 0:s.activeElement)!==r&&i&&!i.contains(o||(s==null?void 0:s.activeElement)))}return!1}E(Th,\"listboxLostFocus\");function Ss(e,t){if(t.type===Ee.OutsideMouseDown||t.type===Ee.OutsideMouseUp){var n=t.refs,r=n.button,i=n.popover,o=t.relatedTarget;return!!(o!==r&&r&&!r.contains(o)&&i&&!i.contains(o))}return!1}E(Ss,\"clickedOutsideOfListbox\");function Fa(e,t){return!!e.options.find(function(n){return n.value===e.navigationValue})}E(Fa,\"optionIsActive\");function _h(e,t){var n=t.refs,r=n.popover,i=n.list,o=t.relatedTarget;return r&&o&&r.contains(o)&&o!==i?!1:Fa(e)}E(_h,\"shouldNavigate\");function pi(e,t){requestAnimationFrame(function(){t.refs.list&&t.refs.list.focus()})}E(pi,\"focusList\");function Xt(e,t){t.refs.button&&t.refs.button.focus()}E(Xt,\"focusButton\");function qu(e,t){return!t.disabled}E(qu,\"listboxIsNotDisabled\");function aa(e,t){return!(t.type===Ee.OptionTouchStart&&t&&t.disabled)}E(aa,\"optionIsNavigable\");function Er(e,t){return\"disabled\"in t&&t.disabled?!1:\"value\"in t?t.value!=null:e.navigationValue!=null}E(Er,\"optionIsSelectable\");function or(e,t){t.callback&&t.callback(t.value)}E(or,\"selectOption\");function gP(e,t){if(t.type===Ee.KeyDownEnter){var n=t.refs.hiddenInput;if(n&&n.form){var r=n.form.querySelector(\"button:not([type]),[type='submit']\");r&&r.click()}}}E(gP,\"submitForm\");var o0=La({typeaheadQuery:E(function(t,n){return(t.typeaheadQuery||\"\")+n.query},\"typeaheadQuery\")}),aY=La({value:E(function(t,n){if(n.type===Ee.UpdateAfterTypeahead&&n.query){var r=K_(t.options,n.query);if(r&&!r.disabled)return n.callback&&n.callback(r.value),r.value}return t.value},\"value\")}),J_=La({navigationValue:E(function(t,n){if(n.type===Ee.UpdateAfterTypeahead&&n.query){var r=K_(t.options,n.query);if(r&&!r.disabled)return r.value}return t.navigationValue},\"navigationValue\")}),Ch=(i0={},i0[Ee.GetDerivedData]={actions:La(function(e,t){return Fr({},e,t.data)})},i0[Ee.ValueChange]={actions:[br,or]},i0),sY=E(function(t){var n,r,i,o,s,l,c=t.value;return{id:\"listbox\",initial:Te.Idle,context:{value:c,options:[],navigationValue:null,typeaheadQuery:null},states:(l={},l[Te.Idle]={on:Fr({},Ch,(n={},n[Ee.ButtonMouseDown]={target:Te.Open,actions:[Uu],cond:qu},n[Ee.KeyDownSpace]={target:Te.Navigating,actions:[Uu,pi],cond:qu},n[Ee.KeyDownSearch]={target:Te.Idle,actions:o0,cond:qu},n[Ee.UpdateAfterTypeahead]={target:Te.Idle,actions:[aY],cond:qu},n[Ee.ClearTypeahead]={target:Te.Idle,actions:We},n[Ee.KeyDownNavigate]={target:Te.Navigating,actions:[Uu,We,pi],cond:qu},n[Ee.KeyDownEnter]={actions:[gP],cond:qu},n))},l[Te.Interacting]={entry:[Sh],on:Fr({},Ch,(r={},r[Ee.ClearNavSelection]={actions:[Sh,pi]},r[Ee.KeyDownEnter]={target:Te.Idle,actions:[br,We,Xt,or],cond:Er},r[Ee.KeyDownSpace]={target:Te.Idle,actions:[br,We,Xt,or],cond:Er},r[Ee.ButtonMouseDown]={target:Te.Idle,actions:[Xt]},r[Ee.KeyDownEscape]={target:Te.Idle,actions:[Xt]},r[Ee.OptionMouseDown]={target:Te.Dragging},r[Ee.OutsideMouseDown]=[{target:Te.Idle,cond:Ss,actions:We},{target:Te.Dragging,actions:We,cond:Fa}],r[Ee.OutsideMouseUp]=[{target:Te.Idle,cond:Ss,actions:We},{target:Te.Navigating,cond:Fa},{target:Te.Interacting,actions:We}],r[Ee.KeyDownEnter]=Te.Interacting,r[Ee.Blur]=[{target:Te.Idle,cond:Th,actions:We},{target:Te.Navigating,cond:_h},{target:Te.Interacting,actions:We}],r[Ee.OptionTouchStart]={target:Te.Navigating,actions:[Ii,We],cond:aa},r[Ee.OptionClick]={target:Te.Idle,actions:[br,We,Xt,or],cond:Er},r[Ee.OptionPress]={target:Te.Idle,actions:[br,We,Xt,or],cond:Er},r[Ee.OptionMouseEnter]={target:Te.Navigating,actions:[Ii,We],cond:aa},r[Ee.KeyDownNavigate]={target:Te.Navigating,actions:[Ii,We,pi]},r))},l[Te.Open]={on:Fr({},Ch,(i={},i[Ee.ClearNavSelection]={actions:[Sh]},i[Ee.KeyDownEnter]={target:Te.Idle,actions:[br,We,Xt,or],cond:Er},i[Ee.KeyDownSpace]={target:Te.Idle,actions:[br,We,Xt,or],cond:Er},i[Ee.ButtonMouseDown]={target:Te.Idle,actions:[Xt]},i[Ee.KeyDownEscape]={target:Te.Idle,actions:[Xt]},i[Ee.OptionMouseDown]={target:Te.Dragging},i[Ee.OutsideMouseDown]=[{target:Te.Idle,cond:Ss,actions:We},{target:Te.Dragging,cond:Fa},{target:Te.Interacting,actions:We}],i[Ee.OutsideMouseUp]=[{target:Te.Idle,cond:Ss,actions:We},{target:Te.Navigating,cond:Fa},{target:Te.Interacting,actions:We}],i[Ee.Blur]=[{target:Te.Idle,cond:Th,actions:We},{target:Te.Navigating,cond:_h},{target:Te.Interacting,actions:We}],i[Ee.ButtonMouseUp]={target:Te.Navigating,actions:[Uu,pi]},i[Ee.ListMouseUp]={target:Te.Navigating,actions:[Uu,pi]},i[Ee.OptionTouchStart]={target:Te.Navigating,actions:[Ii,We],cond:aa},i[Ee.OptionClick]={target:Te.Idle,actions:[br,We,Xt,or],cond:Er},i[Ee.OptionPress]={target:Te.Idle,actions:[br,We,Xt,or],cond:Er},i[Ee.KeyDownNavigate]={target:Te.Navigating,actions:[Ii,We,pi]},i[Ee.KeyDownSearch]={target:Te.Navigating,actions:o0},i[Ee.UpdateAfterTypeahead]={actions:[J_]},i[Ee.ClearTypeahead]={actions:We},i[Ee.OptionMouseMove]=[{target:Te.Dragging,actions:[Ii],cond:aa},{target:Te.Dragging}],i))},l[Te.Dragging]={on:Fr({},Ch,(o={},o[Ee.ClearNavSelection]={actions:[Sh]},o[Ee.KeyDownEnter]={target:Te.Idle,actions:[br,We,Xt,or],cond:Er},o[Ee.KeyDownSpace]={target:Te.Idle,actions:[br,We,Xt,or],cond:Er},o[Ee.ButtonMouseDown]={target:Te.Idle,actions:[Xt]},o[Ee.KeyDownEscape]={target:Te.Idle,actions:[Xt]},o[Ee.OptionMouseDown]={target:Te.Dragging},o[Ee.OutsideMouseDown]=[{target:Te.Idle,cond:Ss,actions:We},{target:Te.Navigating,cond:Fa},{target:Te.Interacting,actions:We}],o[Ee.OutsideMouseUp]=[{target:Te.Idle,cond:Ss,actions:We},{target:Te.Navigating,cond:Fa,actions:pi},{target:Te.Interacting,actions:[We,pi]}],o[Ee.Blur]=[{target:Te.Idle,cond:Th,actions:We},{target:Te.Navigating,cond:_h},{target:Te.Interacting,actions:We}],o[Ee.ButtonMouseUp]={target:Te.Navigating,actions:[Uu,pi]},o[Ee.OptionTouchStart]={target:Te.Navigating,actions:[Ii,We],cond:aa},o[Ee.OptionClick]={target:Te.Idle,actions:[br,We,Xt,or],cond:Er},o[Ee.OptionPress]={target:Te.Idle,actions:[br,We,Xt,or],cond:Er},o[Ee.OptionMouseEnter]={target:Te.Dragging,actions:[Ii,We],cond:aa},o[Ee.KeyDownNavigate]={target:Te.Navigating,actions:[Ii,We,pi]},o[Ee.KeyDownSearch]={target:Te.Navigating,actions:o0},o[Ee.UpdateAfterTypeahead]={actions:[J_]},o[Ee.ClearTypeahead]={actions:We},o[Ee.OptionMouseMove]=[{target:Te.Navigating,actions:[Ii],cond:aa},{target:Te.Navigating}],o[Ee.OptionMouseUp]={target:Te.Idle,actions:[br,We,Xt,or],cond:Er},o))},l[Te.Navigating]={on:Fr({},Ch,(s={},s[Ee.ClearNavSelection]={actions:[Sh,pi]},s[Ee.KeyDownEnter]={target:Te.Idle,actions:[br,We,Xt,or],cond:Er},s[Ee.KeyDownSpace]={target:Te.Idle,actions:[br,We,Xt,or],cond:Er},s[Ee.ButtonMouseDown]={target:Te.Idle,actions:[Xt]},s[Ee.KeyDownEscape]={target:Te.Idle,actions:[Xt]},s[Ee.OptionMouseDown]={target:Te.Dragging},s[Ee.OutsideMouseDown]=[{target:Te.Idle,cond:Ss,actions:We},{target:Te.Navigating,cond:Fa},{target:Te.Interacting,actions:We}],s[Ee.OutsideMouseUp]=[{target:Te.Idle,cond:Ss,actions:We},{target:Te.Navigating,cond:Fa},{target:Te.Interacting,actions:We}],s[Ee.Blur]=[{target:Te.Idle,cond:Th,actions:We},{target:Te.Navigating,cond:_h},{target:Te.Interacting,actions:We}],s[Ee.ButtonMouseUp]={target:Te.Navigating,actions:[Uu,pi]},s[Ee.OptionTouchStart]={target:Te.Navigating,actions:[Ii,We],cond:aa},s[Ee.OptionClick]={target:Te.Idle,actions:[br,We,Xt,or],cond:Er},s[Ee.OptionPress]={target:Te.Idle,actions:[br,We,Xt,or],cond:Er},s[Ee.OptionMouseEnter]={target:Te.Navigating,actions:[Ii,We],cond:aa},s[Ee.KeyDownNavigate]={target:Te.Navigating,actions:[Ii,We,pi]},s[Ee.KeyDownSearch]={target:Te.Navigating,actions:o0},s[Ee.UpdateAfterTypeahead]={actions:[J_]},s[Ee.ClearTypeahead]={actions:We},s[Ee.OptionMouseMove]=[{target:Te.Navigating,actions:[Ii],cond:aa},{target:Te.Navigating}],s))},l)}},\"createMachineDefinition\");function K_(e,t){if(t===void 0&&(t=\"\"),!t)return null;var n=e.find(function(r){return!r.disabled&&r.label&&r.label.toLowerCase().startsWith(t.toLowerCase())});return n||null}E(K_,\"findOptionFromTypeahead\");function yP(e,t){return e?t.find(function(n){return n.value===e}):void 0}E(yP,\"findOptionFromValue\");var lY=[\"as\",\"aria-labelledby\",\"aria-label\",\"children\",\"defaultValue\",\"disabled\",\"form\",\"name\",\"onChange\",\"required\",\"value\",\"__componentName\"],uY=[\"arrow\",\"button\",\"children\",\"portal\"],cY=[\"aria-label\",\"arrow\",\"as\",\"children\",\"onKeyDown\",\"onMouseDown\",\"onMouseUp\"],fY=[\"as\",\"children\"],dY=[\"as\",\"position\",\"onBlur\",\"onKeyDown\",\"onMouseUp\",\"portal\",\"unstable_observableRefs\"],pY=[\"as\"],hY=[\"as\",\"children\",\"disabled\",\"index\",\"label\",\"onClick\",\"onMouseDown\",\"onMouseEnter\",\"onMouseLeave\",\"onMouseMove\",\"onMouseUp\",\"onTouchStart\",\"value\"],vY=!1,a0=Jy(),Dl=t0(\"ListboxContext\",{}),bP=O.forwardRef(E(function(t,n){var r=t.as,i=r===void 0?\"div\":r,o=t[\"aria-labelledby\"],s=t[\"aria-label\"],l=t.children,c=t.defaultValue,f=t.disabled,h=f===void 0?!1:f,g=t.form,m=t.name,y=t.onChange,S=t.required,x=t.value;t.__componentName;var D=Nl(t,lY),_=O.useRef(x!=null),b=Xy(),C=b[0],T=b[1],N=O.useRef(null),F=O.useRef(null),L=O.useRef(null),A=O.useRef(null),P=O.useRef(null),V=O.useRef(null),H=O.useRef(null),G=mP(sY({value:(_.current?x:c)||null})),z=hP(G,{button:N,hiddenInput:F,highlightedOption:L,input:A,list:P,popover:V,selectedOption:H},vY),U=z[0],j=z[1];function X(ce){ce!==U.context.value&&(y==null||y(ce))}E(X,\"handleValueChange\");var ne=bh(D.id),J=D.id||oa(\"listbox-input\",ne),re=Lr(A,n),Z=O.useMemo(function(){var ce=C.find(function(le){return le.value===U.context.value});return ce?ce.label:null},[C,U.context.value]),de=SP(U.value),K={ariaLabel:s,ariaLabelledBy:o,buttonRef:N,disabled:h,highlightedOptionRef:L,isExpanded:de,listboxId:J,listboxValueLabel:Z,listRef:P,onValueChange:X,popoverRef:V,selectedOptionRef:H,send:j,state:U.value,stateData:U.context},ve=O.useRef(!1);if(!_.current&&c==null&&!ve.current&&C.length){ve.current=!0;var ue=C.find(function(ce){return!ce.disabled});ue&&ue.value&&j({type:Ee.ValueChange,value:ue.value})}return TP(x,U.context.value,function(){j({type:Ee.ValueChange,value:x})}),bs(function(){j({type:Ee.GetDerivedData,data:{options:C}})},[C,j]),O.useEffect(function(){function ce(le){var we=le.target,Ce=le.relatedTarget;eC(V.current,we)||j({type:Ee.OutsideMouseDown,relatedTarget:Ce||we})}return E(ce,\"handleMouseDown\"),de&&window.addEventListener(\"mousedown\",ce),function(){window.removeEventListener(\"mousedown\",ce)}},[j,de]),O.useEffect(function(){function ce(le){var we=le.target,Ce=le.relatedTarget;eC(V.current,we)||j({type:Ee.OutsideMouseUp,relatedTarget:Ce||we})}return E(ce,\"handleMouseUp\"),de&&window.addEventListener(\"mouseup\",ce),function(){window.removeEventListener(\"mouseup\",ce)}},[j,de]),O.createElement(i,Fr({},D,{ref:re,\"data-reach-listbox-input\":\"\",\"data-state\":de?\"expanded\":\"closed\",\"data-value\":U.context.value,id:J}),O.createElement(Dl.Provider,{value:K},O.createElement(e0,{context:a0,items:C,set:T},Da(l)?l({id:J,isExpanded:de,value:U.context.value,selectedOptionRef:H,highlightedOptionRef:L,valueLabel:Z,expanded:de}):l,(g||m||S)&&O.createElement(\"input\",{ref:F,\"data-reach-listbox-hidden-input\":\"\",disabled:h,form:g,name:m,readOnly:!0,required:S,tabIndex:-1,type:\"hidden\",value:U.context.value||\"\"}))))},\"ListboxInput\")),mY=O.forwardRef(E(function(t,n){var r=t.arrow,i=r===void 0?\"▼\":r,o=t.button,s=t.children,l=t.portal,c=l===void 0?!0:l,f=Nl(t,uY);return O.createElement(bP,Fr({},f,{__componentName:\"Listbox\",ref:n}),function(h){var g=h.value,m=h.valueLabel;return O.createElement(O.Fragment,null,O.createElement(EP,{arrow:i,children:o?Da(o)?o({value:g,label:m}):o:void 0}),O.createElement(wP,{portal:c},O.createElement(wY,null,s)))})},\"Listbox\")),gY=O.forwardRef(E(function(t,n){var r=t[\"aria-label\"],i=t.arrow,o=i===void 0?!1:i,s=t.as,l=s===void 0?\"span\":s,c=t.children,f=t.onKeyDown,h=t.onMouseDown,g=t.onMouseUp,m=Nl(t,cY),y=O.useContext(Dl),S=y.buttonRef,x=y.send,D=y.ariaLabelledBy,_=y.disabled,b=y.isExpanded,C=y.listboxId,T=y.stateData,N=y.listboxValueLabel,F=T.value,L=Lr(S,n),A=X_();function P(z){Ia(z.nativeEvent)||(z.preventDefault(),z.stopPropagation(),x({type:Ee.ButtonMouseDown,disabled:_}))}E(P,\"handleMouseDown\");function V(z){Ia(z.nativeEvent)||(z.preventDefault(),z.stopPropagation(),x({type:Ee.ButtonMouseUp}))}E(V,\"handleMouseUp\");var H=oa(\"button\",C),G=O.useMemo(function(){if(c){if(Da(c))return c({isExpanded:b,label:N,value:F,expanded:b})}else return N;return c},[c,N,b,F]);return O.createElement(l,Fr({\"aria-disabled\":_||void 0,\"aria-expanded\":b||void 0,\"aria-haspopup\":\"listbox\",\"aria-labelledby\":r?void 0:[D,H].filter(Boolean).join(\" \"),\"aria-label\":r,role:\"button\",tabIndex:_?-1:0},m,{ref:L,\"data-reach-listbox-button\":\"\",id:H,onKeyDown:it(f,A),onMouseDown:it(h,P),onMouseUp:it(g,V)}),G,o&&O.createElement(bY,null,ZT(o)?null:o))},\"ListboxButton\")),EP=O.memo(gY),yY=O.forwardRef(E(function(t,n){var r=t.as,i=r===void 0?\"span\":r,o=t.children,s=Nl(t,fY),l=O.useContext(Dl),c=l.isExpanded;return O.createElement(i,Fr({\"aria-hidden\":!0},s,{ref:n,\"data-reach-listbox-arrow\":\"\",\"data-expanded\":c?\"\":void 0}),Da(o)?o({isExpanded:c,expanded:c}):o||\"▼\")},\"ListboxArrow\")),bY=O.memo(yY),EY=O.forwardRef(E(function(t,n){var r=t.as,i=r===void 0?\"div\":r,o=t.position,s=o===void 0?iP:o,l=t.onBlur,c=t.onKeyDown,f=t.onMouseUp,h=t.portal,g=h===void 0?!0:h,m=t.unstable_observableRefs,y=Nl(t,dY),S=O.useContext(Dl),x=S.isExpanded,D=S.buttonRef,_=S.popoverRef,b=S.send,C=Lr(_,n),T=X_();function N(){b({type:Ee.ListMouseUp})}E(N,\"handleMouseUp\");var F=Fr({hidden:!x,tabIndex:-1},y,{ref:C,\"data-reach-listbox-popover\":\"\",onMouseUp:it(f,N),onBlur:it(l,L),onKeyDown:it(c,T)});function L(A){var P=A.nativeEvent;requestAnimationFrame(function(){b({type:Ee.Blur,relatedTarget:P.relatedTarget||P.target})})}return E(L,\"handleBlur\"),g?O.createElement(j_,Fr({},F,{as:i,targetRef:D,position:s,unstable_observableRefs:m,unstable_skipInitialPortalRender:!0})):O.createElement(i,F)},\"ListboxPopover\")),wP=O.memo(EY),wY=O.forwardRef(E(function(t,n){var r=t.as,i=r===void 0?\"ul\":r,o=Nl(t,pY),s=O.useContext(Dl),l=s.listRef,c=s.ariaLabel,f=s.ariaLabelledBy,h=s.isExpanded,g=s.listboxId,m=s.stateData,y=m.value,S=m.navigationValue,x=Lr(n,l);return O.createElement(i,Fr({\"aria-activedescendant\":Z_(h?S:y),\"aria-labelledby\":c?void 0:f,\"aria-label\":c,role:\"listbox\",tabIndex:-1},o,{ref:x,\"data-reach-listbox-list\":\"\",id:oa(\"listbox\",g)}))},\"ListboxList\")),SY=O.forwardRef(E(function(t,n){var r=t.as,i=r===void 0?\"li\":r,o=t.children,s=t.disabled,l=t.index,c=t.label,f=t.onClick,h=t.onMouseDown,g=t.onMouseEnter,m=t.onMouseLeave,y=t.onMouseMove,S=t.onMouseUp,x=t.onTouchStart,D=t.value,_=Nl(t,hY),b=O.useContext(Dl),C=b.highlightedOptionRef,T=b.selectedOptionRef,N=b.send,F=b.isExpanded,L=b.onValueChange,A=b.state,P=b.stateData,V=P.value,H=P.navigationValue,G=O.useState(c),z=G[0],U=G[1],j=c||z||\"\",X=O.useRef(null),ne=n0(X,null),J=ne[0],re=ne[1],Z=O.useMemo(function(){return{element:J,value:D,label:j,disabled:!!s}},[s,J,j,D]);Ky(Z,a0,l);var de=O.useCallback(function(et){!c&&et&&U(function(vt){return et.textContent&&vt!==et.textContent?et.textContent:vt||\"\"})},[c]),K=H?H===D:!1,ve=V===D,ue=Lr(de,n,re,ve?T:null,K?C:null);function ce(){N({type:Ee.OptionMouseEnter,value:D,disabled:!!s})}E(ce,\"handleMouseEnter\");function le(){N({type:Ee.OptionTouchStart,value:D,disabled:!!s})}E(le,\"handleTouchStart\");function we(){N({type:Ee.ClearNavSelection})}E(we,\"handleMouseLeave\");function Ce(et){Ia(et.nativeEvent)||(et.preventDefault(),N({type:Ee.OptionMouseDown}))}E(Ce,\"handleMouseDown\");function qe(et){Ia(et.nativeEvent)||N({type:Ee.OptionMouseUp,value:D,callback:L,disabled:!!s})}E(qe,\"handleMouseUp\");function un(et){Ia(et.nativeEvent)||N({type:Ee.OptionClick,value:D,callback:L,disabled:!!s})}E(un,\"handleClick\");function nt(){(A===Te.Open||H!==D)&&N({type:Ee.OptionMouseMove,value:D,disabled:!!s})}return E(nt,\"handleMouseMove\"),O.createElement(i,Fr({\"aria-selected\":(F?K:ve)||void 0,\"aria-disabled\":s||void 0,role:\"option\"},_,{ref:ue,id:Z_(D),\"data-reach-listbox-option\":\"\",\"data-current-nav\":K?\"\":void 0,\"data-current-selected\":ve?\"\":void 0,\"data-label\":j,\"data-value\":D,onClick:it(f,un),onMouseDown:it(h,Ce),onMouseEnter:it(g,ce),onMouseLeave:it(m,we),onMouseMove:it(y,nt),onMouseUp:it(S,qe),onTouchStart:it(x,le)}),o)},\"ListboxOption\"));function SP(e){return[Te.Navigating,Te.Open,Te.Dragging,Te.Interacting].includes(e)}E(SP,\"isListboxExpanded\");function X_(){var e=O.useContext(Dl),t=e.send,n=e.disabled,r=e.onValueChange,i=e.stateData,o=i.navigationValue,s=i.typeaheadQuery,l=Zy(a0),c=lP(r);O.useEffect(function(){s&&t({type:Ee.UpdateAfterTypeahead,query:s,callback:c});var g=window.setTimeout(function(){s!=null&&t({type:Ee.ClearTypeahead})},1e3);return function(){window.clearTimeout(g)}},[c,t,s]);var f=l.findIndex(function(g){var m=g.value;return m===o}),h=it(function(g){var m=g.key,y=My(m)&&m.length===1,S=l.find(function(D){return D.value===o});switch(m){case\"Enter\":t({type:Ee.KeyDownEnter,value:o,callback:r,disabled:!!(S!=null&&S.disabled||n)});return;case\" \":g.preventDefault(),t({type:Ee.KeyDownSpace,value:o,callback:r,disabled:!!(S!=null&&S.disabled||n)});return;case\"Escape\":t({type:Ee.KeyDownEscape});return;case\"Tab\":var x=g.shiftKey?Ee.KeyDownShiftTab:Ee.KeyDownTab;t({type:x});return;default:y&&t({type:Ee.KeyDownSearch,query:m,disabled:n});return}},H_(a0,{currentIndex:f,orientation:\"vertical\",key:\"index\",rotate:!0,filter:E(function(m){return!m.disabled},\"filter\"),callback:E(function(m){t({type:Ee.KeyDownNavigate,value:l[m].value,disabled:n})},\"callback\")}));return h}E(X_,\"useKeyDown$1\");function Z_(e){var t=O.useContext(Dl),n=t.listboxId;return e?oa(\"option-\"+e,n):void 0}E(Z_,\"useOptionId\");function eC(e,t){return!!(e&&e.contains(t))}E(eC,\"popoverContainsEventTarget$1\");function TP(e,t,n){var r=O.useRef(e!=null),i=r.current;i&&e!==t&&n()}E(TP,\"useControlledStateSync\");function s0(e){var t=O.useRef(null);return O.useEffect(function(){t.current=e},[e]),t.current}E(s0,\"usePrevious\");function xh(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}E(xh,\"_objectWithoutPropertiesLoose$3\");function Rr(){return Rr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rr.apply(this,arguments)}E(Rr,\"_extends$3\");var TY=[\"onKeyDown\",\"onMouseDown\",\"id\",\"ref\"],_Y=[\"index\",\"isLink\",\"onClick\",\"onDragStart\",\"onMouseDown\",\"onMouseEnter\",\"onMouseLeave\",\"onMouseMove\",\"onMouseUp\",\"onSelect\",\"disabled\",\"onFocus\",\"valueText\",\"ref\"],CY=[\"id\",\"onKeyDown\",\"ref\"],xY=[\"onBlur\",\"portal\",\"position\",\"ref\"],_P=\"CLEAR_SELECTION_INDEX\",tC=\"CLICK_MENU_ITEM\",kh=\"CLOSE_MENU\",kY=\"OPEN_MENU_AT_FIRST_ITEM\",nC=\"OPEN_MENU_AT_INDEX\",CP=\"OPEN_MENU_CLEARED\",rC=\"SEARCH_FOR_ITEM\",Al=\"SELECT_ITEM_AT_INDEX\",xP=\"SET_BUTTON_ID\",l0=Jy(),kP=cP(\"Dropdown\"),NY=kP[0],Nh=kP[1],DY={triggerId:null,isExpanded:!1,typeaheadQuery:\"\",selectionIndex:-1},AY=E(function(t){var n=t.id,r=t.children,i=O.useRef(null),o=O.useRef(null),s=O.useRef(null),l=Xy(),c=l[0],f=l[1],h=bh(n),g=n||oa(\"menu\",h),m=oa(\"menu-button\",g),y=O.useReducer(FP,Rr({},DY,{triggerId:m})),S=y[0],x=y[1],D=O.useRef(!1),_=O.useRef([]),b=O.useRef(!1),C=O.useRef({x:0,y:0});return O.useEffect(function(){S.isExpanded?(window.__REACH_DISABLE_TOOLTIPS=!0,window.requestAnimationFrame(function(){Dh(o.current)})):window.__REACH_DISABLE_TOOLTIPS=!1},[S.isExpanded]),O.createElement(e0,{context:l0,items:c,set:f},O.createElement(NY,{dispatch:x,dropdownId:g,dropdownRef:o,mouseDownStartPosRef:C,popoverRef:s,readyToSelect:b,selectCallbacks:_,state:S,triggerClickedRef:D,triggerRef:i},Da(r)?r({isExpanded:S.isExpanded,isOpen:S.isExpanded}):r))},\"DropdownProvider_\");function NP(e){var t=e.onKeyDown,n=e.onMouseDown,r=e.id,i=e.ref,o=xh(e,TY),s=Nh(\"useDropdownTrigger\"),l=s.dispatch,c=s.dropdownId,f=s.mouseDownStartPosRef,h=s.triggerClickedRef,g=s.triggerRef,m=s.state,y=m.triggerId,S=m.isExpanded,x=Lr(g,i),D=oC(),_=O.useMemo(function(){return D.findIndex(function(T){return!T.disabled})},[D]);O.useEffect(function(){r!=null&&r!==y&&l({type:xP,payload:r})},[y,l,r]);function b(T){switch(T.key){case\"ArrowDown\":case\"ArrowUp\":T.preventDefault(),l({type:nC,payload:{index:_}});break;case\"Enter\":case\" \":l({type:nC,payload:{index:_}});break}}E(b,\"handleKeyDown\");function C(T){Ia(T.nativeEvent)||(f.current={x:T.clientX,y:T.clientY},S||(h.current=!0),l(S?{type:kh}:{type:CP}))}return E(C,\"handleMouseDown\"),{data:{isExpanded:S,controls:c},props:Rr({},o,{ref:x,id:y||void 0,onKeyDown:it(t,b),onMouseDown:it(n,C),type:\"button\"})}}E(NP,\"useDropdownTrigger\");function DP(e){var t=e.index,n=e.isLink,r=n===void 0?!1:n,i=e.onClick,o=e.onDragStart,s=e.onMouseDown,l=e.onMouseEnter,c=e.onMouseLeave,f=e.onMouseMove,h=e.onMouseUp,g=e.onSelect,m=e.disabled,y=e.onFocus,S=e.valueText,x=e.ref,D=xh(e,_Y),_=Nh(\"useDropdownItem\"),b=_.dispatch,C=_.dropdownRef,T=_.mouseDownStartPosRef,N=_.readyToSelect,F=_.selectCallbacks,L=_.triggerRef,A=_.state,P=A.selectionIndex,V=A.isExpanded,H=O.useRef(null),G=O.useState(S||\"\"),z=G[0],U=G[1],j=O.useCallback(function(vt){!S&&vt!=null&&vt.textContent&&U(vt.textContent)},[S]),X=O.useRef(!1),ne=n0(H,null),J=ne[0],re=ne[1],Z=O.useMemo(function(){return{element:J,key:z,disabled:m,isLink:r}},[m,J,r,z]),de=Ky(Z,l0,t),K=de===P&&!m,ve=Lr(x,re,j);F.current[de]=g;function ue(){Dh(L.current),g&&g(),b({type:tC})}E(ue,\"select\");function ce(vt){Ia(vt.nativeEvent)||r&&(m?vt.preventDefault():ue())}E(ce,\"handleClick\");function le(vt){r&&vt.preventDefault()}E(le,\"handleDragStart\");function we(vt){Ia(vt.nativeEvent)||(r?X.current=!0:vt.preventDefault())}E(we,\"handleMouseDown\");function Ce(vt){var xn=ia(C.current);!K&&de!=null&&!m&&(C!=null&&C.current&&C.current!==xn.activeElement&&H.current!==xn.activeElement&&C.current.focus(),b({type:Al,payload:{index:de}}))}E(Ce,\"handleMouseEnter\");function qe(vt){b({type:_P})}E(qe,\"handleMouseLeave\");function un(vt){if(!N.current){var xn=8,st=Math.abs(vt.clientX-T.current.x),ur=Math.abs(vt.clientY-T.current.y);(st>xn||ur>xn)&&(N.current=!0)}!K&&de!=null&&!m&&b({type:Al,payload:{index:de,dropdownRef:C}})}E(un,\"handleMouseMove\");function nt(){N.current=!0,!K&&de!=null&&!m&&b({type:Al,payload:{index:de}})}E(nt,\"handleFocus\");function et(vt){if(!Ia(vt.nativeEvent)){if(!N.current){N.current=!0;return}r?X.current?X.current=!1:H.current&&H.current.click():m||ue()}}return E(et,\"handleMouseUp\"),O.useEffect(function(){if(V){var vt=window.setTimeout(function(){N.current=!0},400);return function(){window.clearTimeout(vt)}}else N.current=!1},[V,N]),O.useEffect(function(){var vt=ia(H.current);return vt.addEventListener(\"mouseup\",xn),function(){vt.removeEventListener(\"mouseup\",xn)};function xn(){X.current=!1}},[]),{data:{disabled:m},props:Rr({id:iC(de),tabIndex:-1},D,{ref:ve,\"data-disabled\":m?\"\":void 0,\"data-selected\":K?\"\":void 0,\"data-valuetext\":z,onClick:it(i,ce),onDragStart:it(o,le),onMouseDown:it(s,we),onMouseEnter:it(l,Ce),onMouseLeave:it(c,qe),onMouseMove:it(f,un),onFocus:it(y,nt),onMouseUp:it(h,et)})}}E(DP,\"useDropdownItem\");function AP(e){e.id;var t=e.onKeyDown,n=e.ref,r=xh(e,CY),i=Nh(\"useDropdownItems\"),o=i.dispatch,s=i.triggerRef,l=i.dropdownRef,c=i.selectCallbacks,f=i.dropdownId,h=i.state,g=h.isExpanded,m=h.triggerId,y=h.selectionIndex,S=h.typeaheadQuery,x=oC(),D=Lr(l,n);O.useEffect(function(){var N=IP(x,S);S&&N!=null&&o({type:Al,payload:{index:N,dropdownRef:l}});var F=window.setTimeout(function(){return S&&o({type:rC,payload:\"\"})},1e3);return function(){return window.clearTimeout(F)}},[o,x,S,l]);var _=s0(x.length),b=s0(x[y]),C=s0(y);O.useEffect(function(){y>x.length-1?o({type:Al,payload:{index:x.length-1,dropdownRef:l}}):_!==x.length&&y>-1&&b&&C===y&&x[y]!==b&&o({type:Al,payload:{index:x.findIndex(function(N){return N.key===(b==null?void 0:b.key)}),dropdownRef:l}})},[l,o,x,_,b,C,y]);var T=it(E(function(F){var L=F.key;if(g)switch(L){case\"Enter\":case\" \":var A=x.find(function(V){return V.index===y});A&&!A.disabled&&(F.preventDefault(),A.isLink&&A.element?A.element.click():(Dh(s.current),c.current[A.index]&&c.current[A.index](),o({type:tC})));break;case\"Escape\":Dh(s.current),o({type:kh});break;case\"Tab\":F.preventDefault();break;default:if(My(L)&&L.length===1){var P=S+L.toLowerCase();o({type:rC,payload:P})}break}},\"handleKeyDown\"),H_(l0,{currentIndex:y,orientation:\"vertical\",rotate:!1,filter:E(function(F){return!F.disabled},\"filter\"),callback:E(function(F){o({type:Al,payload:{index:F,dropdownRef:l}})},\"callback\"),key:\"index\"}));return{data:{activeDescendant:iC(y)||void 0,triggerId:m},props:Rr({tabIndex:-1},r,{ref:D,id:f,onKeyDown:it(t,T)})}}E(AP,\"useDropdownItems\");function OP(e){var t=e.onBlur,n=e.portal,r=n===void 0?!0:n,i=e.position,o=e.ref,s=xh(e,xY),l=Nh(\"useDropdownPopover\"),c=l.triggerRef,f=l.triggerClickedRef,h=l.dispatch,g=l.dropdownRef,m=l.popoverRef,y=l.state.isExpanded,S=Lr(m,o);return O.useEffect(function(){if(!y)return;var x=ia(m.current);function D(_){f.current?f.current=!1:LP(m.current,_.target)||h({type:kh})}return E(D,\"listener\"),x.addEventListener(\"mousedown\",D),function(){x.removeEventListener(\"mousedown\",D)}},[f,c,h,g,m,y]),{data:{portal:r,position:i,targetRef:c,isExpanded:y},props:Rr({ref:S,hidden:!y,onBlur:it(t,function(x){x.currentTarget.contains(x.relatedTarget)||h({type:kh})})},s)}}E(OP,\"useDropdownPopover\");function IP(e,t){if(t===void 0&&(t=\"\"),!t)return null;var n=e.find(function(r){var i,o,s;return r.disabled?!1:(i=r.element)==null||(o=i.dataset)==null||(s=o.valuetext)==null?void 0:s.toLowerCase().startsWith(t)});return n?e.indexOf(n):null}E(IP,\"findItemFromTypeahead\");function iC(e){var t=Nh(\"useItemId\"),n=t.dropdownId;return e!=null&&e>-1?oa(\"option-\"+e,n):void 0}E(iC,\"useItemId\");function Dh(e){e&&e.focus()}E(Dh,\"focus\");function LP(e,t){return!!(e&&e.contains(t))}E(LP,\"popoverContainsEventTarget\");function FP(e,t){switch(t===void 0&&(t={}),t.type){case tC:return Rr({},e,{isExpanded:!1,selectionIndex:-1});case kh:return Rr({},e,{isExpanded:!1,selectionIndex:-1});case kY:return Rr({},e,{isExpanded:!0,selectionIndex:0});case nC:return Rr({},e,{isExpanded:!0,selectionIndex:t.payload.index});case CP:return Rr({},e,{isExpanded:!0,selectionIndex:-1});case Al:{var n=t.payload.dropdownRef,r=n===void 0?{current:null}:n;if(t.payload.index>=0&&t.payload.index!==e.selectionIndex){if(r.current){var i=ia(r.current);r.current!==(i==null?void 0:i.activeElement)&&r.current.focus()}return Rr({},e,{selectionIndex:t.payload.max!=null?Math.min(Math.max(t.payload.index,0),t.payload.max):Math.max(t.payload.index,0)})}return e}case _P:return Rr({},e,{selectionIndex:-1});case xP:return Rr({},e,{triggerId:t.payload});case rC:return typeof t.payload<\"u\"?Rr({},e,{typeaheadQuery:t.payload}):e;default:return e}}E(FP,\"reducer$1\");function oC(){return Zy(l0)}E(oC,\"useDropdownDescendants\");var RP={exports:{}},Ut={};/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */var wr=typeof Symbol==\"function\"&&Symbol.for,aC=wr?Symbol.for(\"react.element\"):60103,sC=wr?Symbol.for(\"react.portal\"):60106,u0=wr?Symbol.for(\"react.fragment\"):60107,c0=wr?Symbol.for(\"react.strict_mode\"):60108,f0=wr?Symbol.for(\"react.profiler\"):60114,d0=wr?Symbol.for(\"react.provider\"):60109,p0=wr?Symbol.for(\"react.context\"):60110,lC=wr?Symbol.for(\"react.async_mode\"):60111,h0=wr?Symbol.for(\"react.concurrent_mode\"):60111,v0=wr?Symbol.for(\"react.forward_ref\"):60112,m0=wr?Symbol.for(\"react.suspense\"):60113,OY=wr?Symbol.for(\"react.suspense_list\"):60120,g0=wr?Symbol.for(\"react.memo\"):60115,y0=wr?Symbol.for(\"react.lazy\"):60116,IY=wr?Symbol.for(\"react.block\"):60121,LY=wr?Symbol.for(\"react.fundamental\"):60117,FY=wr?Symbol.for(\"react.responder\"):60118,RY=wr?Symbol.for(\"react.scope\"):60119;function Li(e){if(typeof e==\"object\"&&e!==null){var t=e.$$typeof;switch(t){case aC:switch(e=e.type,e){case lC:case h0:case u0:case f0:case c0:case m0:return e;default:switch(e=e&&e.$$typeof,e){case p0:case v0:case y0:case g0:case d0:return e;default:return t}}case sC:return t}}}E(Li,\"z\");function uC(e){return Li(e)===h0}E(uC,\"A\"),Ut.AsyncMode=lC,Ut.ConcurrentMode=h0,Ut.ContextConsumer=p0,Ut.ContextProvider=d0,Ut.Element=aC,Ut.ForwardRef=v0,Ut.Fragment=u0,Ut.Lazy=y0,Ut.Memo=g0,Ut.Portal=sC,Ut.Profiler=f0,Ut.StrictMode=c0,Ut.Suspense=m0,Ut.isAsyncMode=function(e){return uC(e)||Li(e)===lC},Ut.isConcurrentMode=uC,Ut.isContextConsumer=function(e){return Li(e)===p0},Ut.isContextProvider=function(e){return Li(e)===d0},Ut.isElement=function(e){return typeof e==\"object\"&&e!==null&&e.$$typeof===aC},Ut.isForwardRef=function(e){return Li(e)===v0},Ut.isFragment=function(e){return Li(e)===u0},Ut.isLazy=function(e){return Li(e)===y0},Ut.isMemo=function(e){return Li(e)===g0},Ut.isPortal=function(e){return Li(e)===sC},Ut.isProfiler=function(e){return Li(e)===f0},Ut.isStrictMode=function(e){return Li(e)===c0},Ut.isSuspense=function(e){return Li(e)===m0},Ut.isValidElementType=function(e){return typeof e==\"string\"||typeof e==\"function\"||e===u0||e===h0||e===f0||e===c0||e===m0||e===OY||typeof e==\"object\"&&e!==null&&(e.$$typeof===y0||e.$$typeof===g0||e.$$typeof===d0||e.$$typeof===p0||e.$$typeof===v0||e.$$typeof===LY||e.$$typeof===FY||e.$$typeof===RY||e.$$typeof===IY)},Ut.typeOf=Li,RP.exports=Ut;function hi(){return hi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hi.apply(this,arguments)}E(hi,\"_extends$2\");function Ol(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}E(Ol,\"_objectWithoutPropertiesLoose$2\");var PY=[\"as\",\"id\",\"children\"],MY=[\"as\"],$Y=[\"as\"],VY=[\"as\"],BY=[\"as\"],jY=[\"portal\"],UY=[\"as\"],qY=O.forwardRef(function(e,t){var n=e.as,r=n===void 0?O.Fragment:n,i=e.id,o=e.children,s=Ol(e,PY),l=O.useMemo(function(){try{return RP.exports.isFragment(O.createElement(r,null))}catch{return!1}},[r]),c=l?{}:hi({ref:t,id:i,\"data-reach-menu\":\"\"},s);return O.createElement(r,c,O.createElement(AY,{id:i,children:o}))}),HY=O.forwardRef(function(e,t){var n=e.as,r=n===void 0?\"button\":n,i=Ol(e,MY),o=NP(hi({},i,{ref:t})),s=o.data,l=s.isExpanded,c=s.controls,f=o.props;return O.createElement(r,hi({\"aria-expanded\":l?!0:void 0,\"aria-haspopup\":!0,\"aria-controls\":c},f,{\"data-reach-menu-button\":\"\"}))}),zY=O.forwardRef(function(e,t){var n=e.as,r=n===void 0?\"div\":n,i=Ol(e,$Y),o=DP(hi({},i,{ref:t})),s=o.data.disabled,l=o.props;return O.createElement(r,hi({role:\"menuitem\"},l,{\"aria-disabled\":s||void 0,\"data-reach-menu-item\":\"\"}))}),GY=O.forwardRef(function(e,t){var n=e.as,r=n===void 0?\"div\":n,i=Ol(e,VY);return O.createElement(zY,hi({},i,{ref:t,as:r}))}),WY=O.forwardRef(function(e,t){var n=e.as,r=n===void 0?\"div\":n,i=Ol(e,BY),o=AP(hi({},i,{ref:t})),s=o.data,l=s.activeDescendant,c=s.triggerId,f=o.props;return O.createElement(r,hi({\"aria-activedescendant\":l,\"aria-labelledby\":c||void 0,role:\"menu\"},f,{\"data-reach-menu-items\":\"\"}))}),QY=O.forwardRef(function(e,t){var n=e.portal,r=n===void 0?!0:n,i=Ol(e,jY);return O.createElement(YY,{portal:r},O.createElement(WY,hi({},i,{ref:t,\"data-reach-menu-list\":\"\"})))}),YY=O.forwardRef(function(e,t){var n=e.as,r=n===void 0?\"div\":n,i=Ol(e,UY),o=OP(hi({},i,{ref:t})),s=o.data,l=s.portal,c=s.targetRef,f=s.position,h=o.props,g={\"data-reach-menu-popover\":\"\"};return l?O.createElement(j_,hi({},h,g,{as:r,targetRef:c,position:f,unstable_skipInitialPortalRender:!0})):O.createElement(r,hi({},h,g))});const PP=O.forwardRef((e,t)=>ie(HY,Kt(Dt({},e),{ref:t,className:Jr(\"graphiql-un-styled\",e.className)})));PP.displayName=\"MenuButton\";const Il=kf(qY,{Button:PP,Item:GY,List:QY}),MP=O.forwardRef((e,t)=>ie(EP,Kt(Dt({},e),{ref:t,className:Jr(\"graphiql-un-styled\",e.className)})));MP.displayName=\"ListboxButton\";const b0=kf(mY,{Button:MP,Input:bP,Option:SY,Popover:wP});var Pt={},JY={Aacute:\"Á\",aacute:\"á\",Abreve:\"Ă\",abreve:\"ă\",ac:\"∾\",acd:\"∿\",acE:\"∾̳\",Acirc:\"Â\",acirc:\"â\",acute:\"´\",Acy:\"А\",acy:\"а\",AElig:\"Æ\",aelig:\"æ\",af:\"\",Afr:\"𝔄\",afr:\"𝔞\",Agrave:\"À\",agrave:\"à\",alefsym:\"ℵ\",aleph:\"ℵ\",Alpha:\"Α\",alpha:\"α\",Amacr:\"Ā\",amacr:\"ā\",amalg:\"⨿\",amp:\"&\",AMP:\"&\",andand:\"⩕\",And:\"⩓\",and:\"∧\",andd:\"⩜\",andslope:\"⩘\",andv:\"⩚\",ang:\"∠\",ange:\"⦤\",angle:\"∠\",angmsdaa:\"⦨\",angmsdab:\"⦩\",angmsdac:\"⦪\",angmsdad:\"⦫\",angmsdae:\"⦬\",angmsdaf:\"⦭\",angmsdag:\"⦮\",angmsdah:\"⦯\",angmsd:\"∡\",angrt:\"∟\",angrtvb:\"⊾\",angrtvbd:\"⦝\",angsph:\"∢\",angst:\"Å\",angzarr:\"⍼\",Aogon:\"Ą\",aogon:\"ą\",Aopf:\"𝔸\",aopf:\"𝕒\",apacir:\"⩯\",ap:\"≈\",apE:\"⩰\",ape:\"≊\",apid:\"≋\",apos:\"'\",ApplyFunction:\"\",approx:\"≈\",approxeq:\"≊\",Aring:\"Å\",aring:\"å\",Ascr:\"𝒜\",ascr:\"𝒶\",Assign:\"≔\",ast:\"*\",asymp:\"≈\",asympeq:\"≍\",Atilde:\"Ã\",atilde:\"ã\",Auml:\"Ä\",auml:\"ä\",awconint:\"∳\",awint:\"⨑\",backcong:\"≌\",backepsilon:\"϶\",backprime:\"‵\",backsim:\"∽\",backsimeq:\"⋍\",Backslash:\"∖\",Barv:\"⫧\",barvee:\"⊽\",barwed:\"⌅\",Barwed:\"⌆\",barwedge:\"⌅\",bbrk:\"⎵\",bbrktbrk:\"⎶\",bcong:\"≌\",Bcy:\"Б\",bcy:\"б\",bdquo:\"„\",becaus:\"∵\",because:\"∵\",Because:\"∵\",bemptyv:\"⦰\",bepsi:\"϶\",bernou:\"ℬ\",Bernoullis:\"ℬ\",Beta:\"Β\",beta:\"β\",beth:\"ℶ\",between:\"≬\",Bfr:\"𝔅\",bfr:\"𝔟\",bigcap:\"⋂\",bigcirc:\"◯\",bigcup:\"⋃\",bigodot:\"⨀\",bigoplus:\"⨁\",bigotimes:\"⨂\",bigsqcup:\"⨆\",bigstar:\"★\",bigtriangledown:\"▽\",bigtriangleup:\"△\",biguplus:\"⨄\",bigvee:\"⋁\",bigwedge:\"⋀\",bkarow:\"⤍\",blacklozenge:\"⧫\",blacksquare:\"▪\",blacktriangle:\"▴\",blacktriangledown:\"▾\",blacktriangleleft:\"◂\",blacktriangleright:\"▸\",blank:\"␣\",blk12:\"▒\",blk14:\"░\",blk34:\"▓\",block:\"█\",bne:\"=⃥\",bnequiv:\"≡⃥\",bNot:\"⫭\",bnot:\"⌐\",Bopf:\"𝔹\",bopf:\"𝕓\",bot:\"⊥\",bottom:\"⊥\",bowtie:\"⋈\",boxbox:\"⧉\",boxdl:\"┐\",boxdL:\"╕\",boxDl:\"╖\",boxDL:\"╗\",boxdr:\"┌\",boxdR:\"╒\",boxDr:\"╓\",boxDR:\"╔\",boxh:\"─\",boxH:\"═\",boxhd:\"┬\",boxHd:\"╤\",boxhD:\"╥\",boxHD:\"╦\",boxhu:\"┴\",boxHu:\"╧\",boxhU:\"╨\",boxHU:\"╩\",boxminus:\"⊟\",boxplus:\"⊞\",boxtimes:\"⊠\",boxul:\"┘\",boxuL:\"╛\",boxUl:\"╜\",boxUL:\"╝\",boxur:\"└\",boxuR:\"╘\",boxUr:\"╙\",boxUR:\"╚\",boxv:\"│\",boxV:\"║\",boxvh:\"┼\",boxvH:\"╪\",boxVh:\"╫\",boxVH:\"╬\",boxvl:\"┤\",boxvL:\"╡\",boxVl:\"╢\",boxVL:\"╣\",boxvr:\"├\",boxvR:\"╞\",boxVr:\"╟\",boxVR:\"╠\",bprime:\"‵\",breve:\"˘\",Breve:\"˘\",brvbar:\"¦\",bscr:\"𝒷\",Bscr:\"ℬ\",bsemi:\"⁏\",bsim:\"∽\",bsime:\"⋍\",bsolb:\"⧅\",bsol:\"\\\\\",bsolhsub:\"⟈\",bull:\"•\",bullet:\"•\",bump:\"≎\",bumpE:\"⪮\",bumpe:\"≏\",Bumpeq:\"≎\",bumpeq:\"≏\",Cacute:\"Ć\",cacute:\"ć\",capand:\"⩄\",capbrcup:\"⩉\",capcap:\"⩋\",cap:\"∩\",Cap:\"⋒\",capcup:\"⩇\",capdot:\"⩀\",CapitalDifferentialD:\"ⅅ\",caps:\"∩︀\",caret:\"⁁\",caron:\"ˇ\",Cayleys:\"ℭ\",ccaps:\"⩍\",Ccaron:\"Č\",ccaron:\"č\",Ccedil:\"Ç\",ccedil:\"ç\",Ccirc:\"Ĉ\",ccirc:\"ĉ\",Cconint:\"∰\",ccups:\"⩌\",ccupssm:\"⩐\",Cdot:\"Ċ\",cdot:\"ċ\",cedil:\"¸\",Cedilla:\"¸\",cemptyv:\"⦲\",cent:\"¢\",centerdot:\"·\",CenterDot:\"·\",cfr:\"𝔠\",Cfr:\"ℭ\",CHcy:\"Ч\",chcy:\"ч\",check:\"✓\",checkmark:\"✓\",Chi:\"Χ\",chi:\"χ\",circ:\"ˆ\",circeq:\"≗\",circlearrowleft:\"↺\",circlearrowright:\"↻\",circledast:\"⊛\",circledcirc:\"⊚\",circleddash:\"⊝\",CircleDot:\"⊙\",circledR:\"®\",circledS:\"Ⓢ\",CircleMinus:\"⊖\",CirclePlus:\"⊕\",CircleTimes:\"⊗\",cir:\"○\",cirE:\"⧃\",cire:\"≗\",cirfnint:\"⨐\",cirmid:\"⫯\",cirscir:\"⧂\",ClockwiseContourIntegral:\"∲\",CloseCurlyDoubleQuote:\"”\",CloseCurlyQuote:\"’\",clubs:\"♣\",clubsuit:\"♣\",colon:\":\",Colon:\"∷\",Colone:\"⩴\",colone:\"≔\",coloneq:\"≔\",comma:\",\",commat:\"@\",comp:\"∁\",compfn:\"∘\",complement:\"∁\",complexes:\"ℂ\",cong:\"≅\",congdot:\"⩭\",Congruent:\"≡\",conint:\"∮\",Conint:\"∯\",ContourIntegral:\"∮\",copf:\"𝕔\",Copf:\"ℂ\",coprod:\"∐\",Coproduct:\"∐\",copy:\"©\",COPY:\"©\",copysr:\"℗\",CounterClockwiseContourIntegral:\"∳\",crarr:\"↵\",cross:\"✗\",Cross:\"⨯\",Cscr:\"𝒞\",cscr:\"𝒸\",csub:\"⫏\",csube:\"⫑\",csup:\"⫐\",csupe:\"⫒\",ctdot:\"⋯\",cudarrl:\"⤸\",cudarrr:\"⤵\",cuepr:\"⋞\",cuesc:\"⋟\",cularr:\"↶\",cularrp:\"⤽\",cupbrcap:\"⩈\",cupcap:\"⩆\",CupCap:\"≍\",cup:\"∪\",Cup:\"⋓\",cupcup:\"⩊\",cupdot:\"⊍\",cupor:\"⩅\",cups:\"∪︀\",curarr:\"↷\",curarrm:\"⤼\",curlyeqprec:\"⋞\",curlyeqsucc:\"⋟\",curlyvee:\"⋎\",curlywedge:\"⋏\",curren:\"¤\",curvearrowleft:\"↶\",curvearrowright:\"↷\",cuvee:\"⋎\",cuwed:\"⋏\",cwconint:\"∲\",cwint:\"∱\",cylcty:\"⌭\",dagger:\"†\",Dagger:\"‡\",daleth:\"ℸ\",darr:\"↓\",Darr:\"↡\",dArr:\"⇓\",dash:\"‐\",Dashv:\"⫤\",dashv:\"⊣\",dbkarow:\"⤏\",dblac:\"˝\",Dcaron:\"Ď\",dcaron:\"ď\",Dcy:\"Д\",dcy:\"д\",ddagger:\"‡\",ddarr:\"⇊\",DD:\"ⅅ\",dd:\"ⅆ\",DDotrahd:\"⤑\",ddotseq:\"⩷\",deg:\"°\",Del:\"∇\",Delta:\"Δ\",delta:\"δ\",demptyv:\"⦱\",dfisht:\"⥿\",Dfr:\"𝔇\",dfr:\"𝔡\",dHar:\"⥥\",dharl:\"⇃\",dharr:\"⇂\",DiacriticalAcute:\"´\",DiacriticalDot:\"˙\",DiacriticalDoubleAcute:\"˝\",DiacriticalGrave:\"`\",DiacriticalTilde:\"˜\",diam:\"⋄\",diamond:\"⋄\",Diamond:\"⋄\",diamondsuit:\"♦\",diams:\"♦\",die:\"¨\",DifferentialD:\"ⅆ\",digamma:\"ϝ\",disin:\"⋲\",div:\"÷\",divide:\"÷\",divideontimes:\"⋇\",divonx:\"⋇\",DJcy:\"Ђ\",djcy:\"ђ\",dlcorn:\"⌞\",dlcrop:\"⌍\",dollar:\"$\",Dopf:\"𝔻\",dopf:\"𝕕\",Dot:\"¨\",dot:\"˙\",DotDot:\"⃜\",doteq:\"≐\",doteqdot:\"≑\",DotEqual:\"≐\",dotminus:\"∸\",dotplus:\"∔\",dotsquare:\"⊡\",doublebarwedge:\"⌆\",DoubleContourIntegral:\"∯\",DoubleDot:\"¨\",DoubleDownArrow:\"⇓\",DoubleLeftArrow:\"⇐\",DoubleLeftRightArrow:\"⇔\",DoubleLeftTee:\"⫤\",DoubleLongLeftArrow:\"⟸\",DoubleLongLeftRightArrow:\"⟺\",DoubleLongRightArrow:\"⟹\",DoubleRightArrow:\"⇒\",DoubleRightTee:\"⊨\",DoubleUpArrow:\"⇑\",DoubleUpDownArrow:\"⇕\",DoubleVerticalBar:\"∥\",DownArrowBar:\"⤓\",downarrow:\"↓\",DownArrow:\"↓\",Downarrow:\"⇓\",DownArrowUpArrow:\"⇵\",DownBreve:\"̑\",downdownarrows:\"⇊\",downharpoonleft:\"⇃\",downharpoonright:\"⇂\",DownLeftRightVector:\"⥐\",DownLeftTeeVector:\"⥞\",DownLeftVectorBar:\"⥖\",DownLeftVector:\"↽\",DownRightTeeVector:\"⥟\",DownRightVectorBar:\"⥗\",DownRightVector:\"⇁\",DownTeeArrow:\"↧\",DownTee:\"⊤\",drbkarow:\"⤐\",drcorn:\"⌟\",drcrop:\"⌌\",Dscr:\"𝒟\",dscr:\"𝒹\",DScy:\"Ѕ\",dscy:\"ѕ\",dsol:\"⧶\",Dstrok:\"Đ\",dstrok:\"đ\",dtdot:\"⋱\",dtri:\"▿\",dtrif:\"▾\",duarr:\"⇵\",duhar:\"⥯\",dwangle:\"⦦\",DZcy:\"Џ\",dzcy:\"џ\",dzigrarr:\"⟿\",Eacute:\"É\",eacute:\"é\",easter:\"⩮\",Ecaron:\"Ě\",ecaron:\"ě\",Ecirc:\"Ê\",ecirc:\"ê\",ecir:\"≖\",ecolon:\"≕\",Ecy:\"Э\",ecy:\"э\",eDDot:\"⩷\",Edot:\"Ė\",edot:\"ė\",eDot:\"≑\",ee:\"ⅇ\",efDot:\"≒\",Efr:\"𝔈\",efr:\"𝔢\",eg:\"⪚\",Egrave:\"È\",egrave:\"è\",egs:\"⪖\",egsdot:\"⪘\",el:\"⪙\",Element:\"∈\",elinters:\"⏧\",ell:\"ℓ\",els:\"⪕\",elsdot:\"⪗\",Emacr:\"Ē\",emacr:\"ē\",empty:\"∅\",emptyset:\"∅\",EmptySmallSquare:\"◻\",emptyv:\"∅\",EmptyVerySmallSquare:\"▫\",emsp13:\" \",emsp14:\" \",emsp:\" \",ENG:\"Ŋ\",eng:\"ŋ\",ensp:\" \",Eogon:\"Ę\",eogon:\"ę\",Eopf:\"𝔼\",eopf:\"𝕖\",epar:\"⋕\",eparsl:\"⧣\",eplus:\"⩱\",epsi:\"ε\",Epsilon:\"Ε\",epsilon:\"ε\",epsiv:\"ϵ\",eqcirc:\"≖\",eqcolon:\"≕\",eqsim:\"≂\",eqslantgtr:\"⪖\",eqslantless:\"⪕\",Equal:\"⩵\",equals:\"=\",EqualTilde:\"≂\",equest:\"≟\",Equilibrium:\"⇌\",equiv:\"≡\",equivDD:\"⩸\",eqvparsl:\"⧥\",erarr:\"⥱\",erDot:\"≓\",escr:\"ℯ\",Escr:\"ℰ\",esdot:\"≐\",Esim:\"⩳\",esim:\"≂\",Eta:\"Η\",eta:\"η\",ETH:\"Ð\",eth:\"ð\",Euml:\"Ë\",euml:\"ë\",euro:\"€\",excl:\"!\",exist:\"∃\",Exists:\"∃\",expectation:\"ℰ\",exponentiale:\"ⅇ\",ExponentialE:\"ⅇ\",fallingdotseq:\"≒\",Fcy:\"Ф\",fcy:\"ф\",female:\"♀\",ffilig:\"ffi\",fflig:\"ff\",ffllig:\"ffl\",Ffr:\"𝔉\",ffr:\"𝔣\",filig:\"fi\",FilledSmallSquare:\"◼\",FilledVerySmallSquare:\"▪\",fjlig:\"fj\",flat:\"♭\",fllig:\"fl\",fltns:\"▱\",fnof:\"ƒ\",Fopf:\"𝔽\",fopf:\"𝕗\",forall:\"∀\",ForAll:\"∀\",fork:\"⋔\",forkv:\"⫙\",Fouriertrf:\"ℱ\",fpartint:\"⨍\",frac12:\"½\",frac13:\"⅓\",frac14:\"¼\",frac15:\"⅕\",frac16:\"⅙\",frac18:\"⅛\",frac23:\"⅔\",frac25:\"⅖\",frac34:\"¾\",frac35:\"⅗\",frac38:\"⅜\",frac45:\"⅘\",frac56:\"⅚\",frac58:\"⅝\",frac78:\"⅞\",frasl:\"⁄\",frown:\"⌢\",fscr:\"𝒻\",Fscr:\"ℱ\",gacute:\"ǵ\",Gamma:\"Γ\",gamma:\"γ\",Gammad:\"Ϝ\",gammad:\"ϝ\",gap:\"⪆\",Gbreve:\"Ğ\",gbreve:\"ğ\",Gcedil:\"Ģ\",Gcirc:\"Ĝ\",gcirc:\"ĝ\",Gcy:\"Г\",gcy:\"г\",Gdot:\"Ġ\",gdot:\"ġ\",ge:\"≥\",gE:\"≧\",gEl:\"⪌\",gel:\"⋛\",geq:\"≥\",geqq:\"≧\",geqslant:\"⩾\",gescc:\"⪩\",ges:\"⩾\",gesdot:\"⪀\",gesdoto:\"⪂\",gesdotol:\"⪄\",gesl:\"⋛︀\",gesles:\"⪔\",Gfr:\"𝔊\",gfr:\"𝔤\",gg:\"≫\",Gg:\"⋙\",ggg:\"⋙\",gimel:\"ℷ\",GJcy:\"Ѓ\",gjcy:\"ѓ\",gla:\"⪥\",gl:\"≷\",glE:\"⪒\",glj:\"⪤\",gnap:\"⪊\",gnapprox:\"⪊\",gne:\"⪈\",gnE:\"≩\",gneq:\"⪈\",gneqq:\"≩\",gnsim:\"⋧\",Gopf:\"𝔾\",gopf:\"𝕘\",grave:\"`\",GreaterEqual:\"≥\",GreaterEqualLess:\"⋛\",GreaterFullEqual:\"≧\",GreaterGreater:\"⪢\",GreaterLess:\"≷\",GreaterSlantEqual:\"⩾\",GreaterTilde:\"≳\",Gscr:\"𝒢\",gscr:\"ℊ\",gsim:\"≳\",gsime:\"⪎\",gsiml:\"⪐\",gtcc:\"⪧\",gtcir:\"⩺\",gt:\">\",GT:\">\",Gt:\"≫\",gtdot:\"⋗\",gtlPar:\"⦕\",gtquest:\"⩼\",gtrapprox:\"⪆\",gtrarr:\"⥸\",gtrdot:\"⋗\",gtreqless:\"⋛\",gtreqqless:\"⪌\",gtrless:\"≷\",gtrsim:\"≳\",gvertneqq:\"≩︀\",gvnE:\"≩︀\",Hacek:\"ˇ\",hairsp:\" \",half:\"½\",hamilt:\"ℋ\",HARDcy:\"Ъ\",hardcy:\"ъ\",harrcir:\"⥈\",harr:\"↔\",hArr:\"⇔\",harrw:\"↭\",Hat:\"^\",hbar:\"ℏ\",Hcirc:\"Ĥ\",hcirc:\"ĥ\",hearts:\"♥\",heartsuit:\"♥\",hellip:\"…\",hercon:\"⊹\",hfr:\"𝔥\",Hfr:\"ℌ\",HilbertSpace:\"ℋ\",hksearow:\"⤥\",hkswarow:\"⤦\",hoarr:\"⇿\",homtht:\"∻\",hookleftarrow:\"↩\",hookrightarrow:\"↪\",hopf:\"𝕙\",Hopf:\"ℍ\",horbar:\"―\",HorizontalLine:\"─\",hscr:\"𝒽\",Hscr:\"ℋ\",hslash:\"ℏ\",Hstrok:\"Ħ\",hstrok:\"ħ\",HumpDownHump:\"≎\",HumpEqual:\"≏\",hybull:\"⁃\",hyphen:\"‐\",Iacute:\"Í\",iacute:\"í\",ic:\"\",Icirc:\"Î\",icirc:\"î\",Icy:\"И\",icy:\"и\",Idot:\"İ\",IEcy:\"Е\",iecy:\"е\",iexcl:\"¡\",iff:\"⇔\",ifr:\"𝔦\",Ifr:\"ℑ\",Igrave:\"Ì\",igrave:\"ì\",ii:\"ⅈ\",iiiint:\"⨌\",iiint:\"∭\",iinfin:\"⧜\",iiota:\"℩\",IJlig:\"IJ\",ijlig:\"ij\",Imacr:\"Ī\",imacr:\"ī\",image:\"ℑ\",ImaginaryI:\"ⅈ\",imagline:\"ℐ\",imagpart:\"ℑ\",imath:\"ı\",Im:\"ℑ\",imof:\"⊷\",imped:\"Ƶ\",Implies:\"⇒\",incare:\"℅\",in:\"∈\",infin:\"∞\",infintie:\"⧝\",inodot:\"ı\",intcal:\"⊺\",int:\"∫\",Int:\"∬\",integers:\"ℤ\",Integral:\"∫\",intercal:\"⊺\",Intersection:\"⋂\",intlarhk:\"⨗\",intprod:\"⨼\",InvisibleComma:\"\",InvisibleTimes:\"\",IOcy:\"Ё\",iocy:\"ё\",Iogon:\"Į\",iogon:\"į\",Iopf:\"𝕀\",iopf:\"𝕚\",Iota:\"Ι\",iota:\"ι\",iprod:\"⨼\",iquest:\"¿\",iscr:\"𝒾\",Iscr:\"ℐ\",isin:\"∈\",isindot:\"⋵\",isinE:\"⋹\",isins:\"⋴\",isinsv:\"⋳\",isinv:\"∈\",it:\"\",Itilde:\"Ĩ\",itilde:\"ĩ\",Iukcy:\"І\",iukcy:\"і\",Iuml:\"Ï\",iuml:\"ï\",Jcirc:\"Ĵ\",jcirc:\"ĵ\",Jcy:\"Й\",jcy:\"й\",Jfr:\"𝔍\",jfr:\"𝔧\",jmath:\"ȷ\",Jopf:\"𝕁\",jopf:\"𝕛\",Jscr:\"𝒥\",jscr:\"𝒿\",Jsercy:\"Ј\",jsercy:\"ј\",Jukcy:\"Є\",jukcy:\"є\",Kappa:\"Κ\",kappa:\"κ\",kappav:\"ϰ\",Kcedil:\"Ķ\",kcedil:\"ķ\",Kcy:\"К\",kcy:\"к\",Kfr:\"𝔎\",kfr:\"𝔨\",kgreen:\"ĸ\",KHcy:\"Х\",khcy:\"х\",KJcy:\"Ќ\",kjcy:\"ќ\",Kopf:\"𝕂\",kopf:\"𝕜\",Kscr:\"𝒦\",kscr:\"𝓀\",lAarr:\"⇚\",Lacute:\"Ĺ\",lacute:\"ĺ\",laemptyv:\"⦴\",lagran:\"ℒ\",Lambda:\"Λ\",lambda:\"λ\",lang:\"⟨\",Lang:\"⟪\",langd:\"⦑\",langle:\"⟨\",lap:\"⪅\",Laplacetrf:\"ℒ\",laquo:\"«\",larrb:\"⇤\",larrbfs:\"⤟\",larr:\"←\",Larr:\"↞\",lArr:\"⇐\",larrfs:\"⤝\",larrhk:\"↩\",larrlp:\"↫\",larrpl:\"⤹\",larrsim:\"⥳\",larrtl:\"↢\",latail:\"⤙\",lAtail:\"⤛\",lat:\"⪫\",late:\"⪭\",lates:\"⪭︀\",lbarr:\"⤌\",lBarr:\"⤎\",lbbrk:\"❲\",lbrace:\"{\",lbrack:\"[\",lbrke:\"⦋\",lbrksld:\"⦏\",lbrkslu:\"⦍\",Lcaron:\"Ľ\",lcaron:\"ľ\",Lcedil:\"Ļ\",lcedil:\"ļ\",lceil:\"⌈\",lcub:\"{\",Lcy:\"Л\",lcy:\"л\",ldca:\"⤶\",ldquo:\"“\",ldquor:\"„\",ldrdhar:\"⥧\",ldrushar:\"⥋\",ldsh:\"↲\",le:\"≤\",lE:\"≦\",LeftAngleBracket:\"⟨\",LeftArrowBar:\"⇤\",leftarrow:\"←\",LeftArrow:\"←\",Leftarrow:\"⇐\",LeftArrowRightArrow:\"⇆\",leftarrowtail:\"↢\",LeftCeiling:\"⌈\",LeftDoubleBracket:\"⟦\",LeftDownTeeVector:\"⥡\",LeftDownVectorBar:\"⥙\",LeftDownVector:\"⇃\",LeftFloor:\"⌊\",leftharpoondown:\"↽\",leftharpoonup:\"↼\",leftleftarrows:\"⇇\",leftrightarrow:\"↔\",LeftRightArrow:\"↔\",Leftrightarrow:\"⇔\",leftrightarrows:\"⇆\",leftrightharpoons:\"⇋\",leftrightsquigarrow:\"↭\",LeftRightVector:\"⥎\",LeftTeeArrow:\"↤\",LeftTee:\"⊣\",LeftTeeVector:\"⥚\",leftthreetimes:\"⋋\",LeftTriangleBar:\"⧏\",LeftTriangle:\"⊲\",LeftTriangleEqual:\"⊴\",LeftUpDownVector:\"⥑\",LeftUpTeeVector:\"⥠\",LeftUpVectorBar:\"⥘\",LeftUpVector:\"↿\",LeftVectorBar:\"⥒\",LeftVector:\"↼\",lEg:\"⪋\",leg:\"⋚\",leq:\"≤\",leqq:\"≦\",leqslant:\"⩽\",lescc:\"⪨\",les:\"⩽\",lesdot:\"⩿\",lesdoto:\"⪁\",lesdotor:\"⪃\",lesg:\"⋚︀\",lesges:\"⪓\",lessapprox:\"⪅\",lessdot:\"⋖\",lesseqgtr:\"⋚\",lesseqqgtr:\"⪋\",LessEqualGreater:\"⋚\",LessFullEqual:\"≦\",LessGreater:\"≶\",lessgtr:\"≶\",LessLess:\"⪡\",lesssim:\"≲\",LessSlantEqual:\"⩽\",LessTilde:\"≲\",lfisht:\"⥼\",lfloor:\"⌊\",Lfr:\"𝔏\",lfr:\"𝔩\",lg:\"≶\",lgE:\"⪑\",lHar:\"⥢\",lhard:\"↽\",lharu:\"↼\",lharul:\"⥪\",lhblk:\"▄\",LJcy:\"Љ\",ljcy:\"љ\",llarr:\"⇇\",ll:\"≪\",Ll:\"⋘\",llcorner:\"⌞\",Lleftarrow:\"⇚\",llhard:\"⥫\",lltri:\"◺\",Lmidot:\"Ŀ\",lmidot:\"ŀ\",lmoustache:\"⎰\",lmoust:\"⎰\",lnap:\"⪉\",lnapprox:\"⪉\",lne:\"⪇\",lnE:\"≨\",lneq:\"⪇\",lneqq:\"≨\",lnsim:\"⋦\",loang:\"⟬\",loarr:\"⇽\",lobrk:\"⟦\",longleftarrow:\"⟵\",LongLeftArrow:\"⟵\",Longleftarrow:\"⟸\",longleftrightarrow:\"⟷\",LongLeftRightArrow:\"⟷\",Longleftrightarrow:\"⟺\",longmapsto:\"⟼\",longrightarrow:\"⟶\",LongRightArrow:\"⟶\",Longrightarrow:\"⟹\",looparrowleft:\"↫\",looparrowright:\"↬\",lopar:\"⦅\",Lopf:\"𝕃\",lopf:\"𝕝\",loplus:\"⨭\",lotimes:\"⨴\",lowast:\"∗\",lowbar:\"_\",LowerLeftArrow:\"↙\",LowerRightArrow:\"↘\",loz:\"◊\",lozenge:\"◊\",lozf:\"⧫\",lpar:\"(\",lparlt:\"⦓\",lrarr:\"⇆\",lrcorner:\"⌟\",lrhar:\"⇋\",lrhard:\"⥭\",lrm:\"\",lrtri:\"⊿\",lsaquo:\"‹\",lscr:\"𝓁\",Lscr:\"ℒ\",lsh:\"↰\",Lsh:\"↰\",lsim:\"≲\",lsime:\"⪍\",lsimg:\"⪏\",lsqb:\"[\",lsquo:\"‘\",lsquor:\"‚\",Lstrok:\"Ł\",lstrok:\"ł\",ltcc:\"⪦\",ltcir:\"⩹\",lt:\"<\",LT:\"<\",Lt:\"≪\",ltdot:\"⋖\",lthree:\"⋋\",ltimes:\"⋉\",ltlarr:\"⥶\",ltquest:\"⩻\",ltri:\"◃\",ltrie:\"⊴\",ltrif:\"◂\",ltrPar:\"⦖\",lurdshar:\"⥊\",luruhar:\"⥦\",lvertneqq:\"≨︀\",lvnE:\"≨︀\",macr:\"¯\",male:\"♂\",malt:\"✠\",maltese:\"✠\",Map:\"⤅\",map:\"↦\",mapsto:\"↦\",mapstodown:\"↧\",mapstoleft:\"↤\",mapstoup:\"↥\",marker:\"▮\",mcomma:\"⨩\",Mcy:\"М\",mcy:\"м\",mdash:\"—\",mDDot:\"∺\",measuredangle:\"∡\",MediumSpace:\" \",Mellintrf:\"ℳ\",Mfr:\"𝔐\",mfr:\"𝔪\",mho:\"℧\",micro:\"µ\",midast:\"*\",midcir:\"⫰\",mid:\"∣\",middot:\"·\",minusb:\"⊟\",minus:\"−\",minusd:\"∸\",minusdu:\"⨪\",MinusPlus:\"∓\",mlcp:\"⫛\",mldr:\"…\",mnplus:\"∓\",models:\"⊧\",Mopf:\"𝕄\",mopf:\"𝕞\",mp:\"∓\",mscr:\"𝓂\",Mscr:\"ℳ\",mstpos:\"∾\",Mu:\"Μ\",mu:\"μ\",multimap:\"⊸\",mumap:\"⊸\",nabla:\"∇\",Nacute:\"Ń\",nacute:\"ń\",nang:\"∠⃒\",nap:\"≉\",napE:\"⩰̸\",napid:\"≋̸\",napos:\"ʼn\",napprox:\"≉\",natural:\"♮\",naturals:\"ℕ\",natur:\"♮\",nbsp:\" \",nbump:\"≎̸\",nbumpe:\"≏̸\",ncap:\"⩃\",Ncaron:\"Ň\",ncaron:\"ň\",Ncedil:\"Ņ\",ncedil:\"ņ\",ncong:\"≇\",ncongdot:\"⩭̸\",ncup:\"⩂\",Ncy:\"Н\",ncy:\"н\",ndash:\"–\",nearhk:\"⤤\",nearr:\"↗\",neArr:\"⇗\",nearrow:\"↗\",ne:\"≠\",nedot:\"≐̸\",NegativeMediumSpace:\"\",NegativeThickSpace:\"\",NegativeThinSpace:\"\",NegativeVeryThinSpace:\"\",nequiv:\"≢\",nesear:\"⤨\",nesim:\"≂̸\",NestedGreaterGreater:\"≫\",NestedLessLess:\"≪\",NewLine:`\n`,nexist:\"∄\",nexists:\"∄\",Nfr:\"𝔑\",nfr:\"𝔫\",ngE:\"≧̸\",nge:\"≱\",ngeq:\"≱\",ngeqq:\"≧̸\",ngeqslant:\"⩾̸\",nges:\"⩾̸\",nGg:\"⋙̸\",ngsim:\"≵\",nGt:\"≫⃒\",ngt:\"≯\",ngtr:\"≯\",nGtv:\"≫̸\",nharr:\"↮\",nhArr:\"⇎\",nhpar:\"⫲\",ni:\"∋\",nis:\"⋼\",nisd:\"⋺\",niv:\"∋\",NJcy:\"Њ\",njcy:\"њ\",nlarr:\"↚\",nlArr:\"⇍\",nldr:\"‥\",nlE:\"≦̸\",nle:\"≰\",nleftarrow:\"↚\",nLeftarrow:\"⇍\",nleftrightarrow:\"↮\",nLeftrightarrow:\"⇎\",nleq:\"≰\",nleqq:\"≦̸\",nleqslant:\"⩽̸\",nles:\"⩽̸\",nless:\"≮\",nLl:\"⋘̸\",nlsim:\"≴\",nLt:\"≪⃒\",nlt:\"≮\",nltri:\"⋪\",nltrie:\"⋬\",nLtv:\"≪̸\",nmid:\"∤\",NoBreak:\"\",NonBreakingSpace:\" \",nopf:\"𝕟\",Nopf:\"ℕ\",Not:\"⫬\",not:\"¬\",NotCongruent:\"≢\",NotCupCap:\"≭\",NotDoubleVerticalBar:\"∦\",NotElement:\"∉\",NotEqual:\"≠\",NotEqualTilde:\"≂̸\",NotExists:\"∄\",NotGreater:\"≯\",NotGreaterEqual:\"≱\",NotGreaterFullEqual:\"≧̸\",NotGreaterGreater:\"≫̸\",NotGreaterLess:\"≹\",NotGreaterSlantEqual:\"⩾̸\",NotGreaterTilde:\"≵\",NotHumpDownHump:\"≎̸\",NotHumpEqual:\"≏̸\",notin:\"∉\",notindot:\"⋵̸\",notinE:\"⋹̸\",notinva:\"∉\",notinvb:\"⋷\",notinvc:\"⋶\",NotLeftTriangleBar:\"⧏̸\",NotLeftTriangle:\"⋪\",NotLeftTriangleEqual:\"⋬\",NotLess:\"≮\",NotLessEqual:\"≰\",NotLessGreater:\"≸\",NotLessLess:\"≪̸\",NotLessSlantEqual:\"⩽̸\",NotLessTilde:\"≴\",NotNestedGreaterGreater:\"⪢̸\",NotNestedLessLess:\"⪡̸\",notni:\"∌\",notniva:\"∌\",notnivb:\"⋾\",notnivc:\"⋽\",NotPrecedes:\"⊀\",NotPrecedesEqual:\"⪯̸\",NotPrecedesSlantEqual:\"⋠\",NotReverseElement:\"∌\",NotRightTriangleBar:\"⧐̸\",NotRightTriangle:\"⋫\",NotRightTriangleEqual:\"⋭\",NotSquareSubset:\"⊏̸\",NotSquareSubsetEqual:\"⋢\",NotSquareSuperset:\"⊐̸\",NotSquareSupersetEqual:\"⋣\",NotSubset:\"⊂⃒\",NotSubsetEqual:\"⊈\",NotSucceeds:\"⊁\",NotSucceedsEqual:\"⪰̸\",NotSucceedsSlantEqual:\"⋡\",NotSucceedsTilde:\"≿̸\",NotSuperset:\"⊃⃒\",NotSupersetEqual:\"⊉\",NotTilde:\"≁\",NotTildeEqual:\"≄\",NotTildeFullEqual:\"≇\",NotTildeTilde:\"≉\",NotVerticalBar:\"∤\",nparallel:\"∦\",npar:\"∦\",nparsl:\"⫽⃥\",npart:\"∂̸\",npolint:\"⨔\",npr:\"⊀\",nprcue:\"⋠\",nprec:\"⊀\",npreceq:\"⪯̸\",npre:\"⪯̸\",nrarrc:\"⤳̸\",nrarr:\"↛\",nrArr:\"⇏\",nrarrw:\"↝̸\",nrightarrow:\"↛\",nRightarrow:\"⇏\",nrtri:\"⋫\",nrtrie:\"⋭\",nsc:\"⊁\",nsccue:\"⋡\",nsce:\"⪰̸\",Nscr:\"𝒩\",nscr:\"𝓃\",nshortmid:\"∤\",nshortparallel:\"∦\",nsim:\"≁\",nsime:\"≄\",nsimeq:\"≄\",nsmid:\"∤\",nspar:\"∦\",nsqsube:\"⋢\",nsqsupe:\"⋣\",nsub:\"⊄\",nsubE:\"⫅̸\",nsube:\"⊈\",nsubset:\"⊂⃒\",nsubseteq:\"⊈\",nsubseteqq:\"⫅̸\",nsucc:\"⊁\",nsucceq:\"⪰̸\",nsup:\"⊅\",nsupE:\"⫆̸\",nsupe:\"⊉\",nsupset:\"⊃⃒\",nsupseteq:\"⊉\",nsupseteqq:\"⫆̸\",ntgl:\"≹\",Ntilde:\"Ñ\",ntilde:\"ñ\",ntlg:\"≸\",ntriangleleft:\"⋪\",ntrianglelefteq:\"⋬\",ntriangleright:\"⋫\",ntrianglerighteq:\"⋭\",Nu:\"Ν\",nu:\"ν\",num:\"#\",numero:\"№\",numsp:\" \",nvap:\"≍⃒\",nvdash:\"⊬\",nvDash:\"⊭\",nVdash:\"⊮\",nVDash:\"⊯\",nvge:\"≥⃒\",nvgt:\">⃒\",nvHarr:\"⤄\",nvinfin:\"⧞\",nvlArr:\"⤂\",nvle:\"≤⃒\",nvlt:\"<⃒\",nvltrie:\"⊴⃒\",nvrArr:\"⤃\",nvrtrie:\"⊵⃒\",nvsim:\"∼⃒\",nwarhk:\"⤣\",nwarr:\"↖\",nwArr:\"⇖\",nwarrow:\"↖\",nwnear:\"⤧\",Oacute:\"Ó\",oacute:\"ó\",oast:\"⊛\",Ocirc:\"Ô\",ocirc:\"ô\",ocir:\"⊚\",Ocy:\"О\",ocy:\"о\",odash:\"⊝\",Odblac:\"Ő\",odblac:\"ő\",odiv:\"⨸\",odot:\"⊙\",odsold:\"⦼\",OElig:\"Œ\",oelig:\"œ\",ofcir:\"⦿\",Ofr:\"𝔒\",ofr:\"𝔬\",ogon:\"˛\",Ograve:\"Ò\",ograve:\"ò\",ogt:\"⧁\",ohbar:\"⦵\",ohm:\"Ω\",oint:\"∮\",olarr:\"↺\",olcir:\"⦾\",olcross:\"⦻\",oline:\"‾\",olt:\"⧀\",Omacr:\"Ō\",omacr:\"ō\",Omega:\"Ω\",omega:\"ω\",Omicron:\"Ο\",omicron:\"ο\",omid:\"⦶\",ominus:\"⊖\",Oopf:\"𝕆\",oopf:\"𝕠\",opar:\"⦷\",OpenCurlyDoubleQuote:\"“\",OpenCurlyQuote:\"‘\",operp:\"⦹\",oplus:\"⊕\",orarr:\"↻\",Or:\"⩔\",or:\"∨\",ord:\"⩝\",order:\"ℴ\",orderof:\"ℴ\",ordf:\"ª\",ordm:\"º\",origof:\"⊶\",oror:\"⩖\",orslope:\"⩗\",orv:\"⩛\",oS:\"Ⓢ\",Oscr:\"𝒪\",oscr:\"ℴ\",Oslash:\"Ø\",oslash:\"ø\",osol:\"⊘\",Otilde:\"Õ\",otilde:\"õ\",otimesas:\"⨶\",Otimes:\"⨷\",otimes:\"⊗\",Ouml:\"Ö\",ouml:\"ö\",ovbar:\"⌽\",OverBar:\"‾\",OverBrace:\"⏞\",OverBracket:\"⎴\",OverParenthesis:\"⏜\",para:\"¶\",parallel:\"∥\",par:\"∥\",parsim:\"⫳\",parsl:\"⫽\",part:\"∂\",PartialD:\"∂\",Pcy:\"П\",pcy:\"п\",percnt:\"%\",period:\".\",permil:\"‰\",perp:\"⊥\",pertenk:\"‱\",Pfr:\"𝔓\",pfr:\"𝔭\",Phi:\"Φ\",phi:\"φ\",phiv:\"ϕ\",phmmat:\"ℳ\",phone:\"☎\",Pi:\"Π\",pi:\"π\",pitchfork:\"⋔\",piv:\"ϖ\",planck:\"ℏ\",planckh:\"ℎ\",plankv:\"ℏ\",plusacir:\"⨣\",plusb:\"⊞\",pluscir:\"⨢\",plus:\"+\",plusdo:\"∔\",plusdu:\"⨥\",pluse:\"⩲\",PlusMinus:\"±\",plusmn:\"±\",plussim:\"⨦\",plustwo:\"⨧\",pm:\"±\",Poincareplane:\"ℌ\",pointint:\"⨕\",popf:\"𝕡\",Popf:\"ℙ\",pound:\"£\",prap:\"⪷\",Pr:\"⪻\",pr:\"≺\",prcue:\"≼\",precapprox:\"⪷\",prec:\"≺\",preccurlyeq:\"≼\",Precedes:\"≺\",PrecedesEqual:\"⪯\",PrecedesSlantEqual:\"≼\",PrecedesTilde:\"≾\",preceq:\"⪯\",precnapprox:\"⪹\",precneqq:\"⪵\",precnsim:\"⋨\",pre:\"⪯\",prE:\"⪳\",precsim:\"≾\",prime:\"′\",Prime:\"″\",primes:\"ℙ\",prnap:\"⪹\",prnE:\"⪵\",prnsim:\"⋨\",prod:\"∏\",Product:\"∏\",profalar:\"⌮\",profline:\"⌒\",profsurf:\"⌓\",prop:\"∝\",Proportional:\"∝\",Proportion:\"∷\",propto:\"∝\",prsim:\"≾\",prurel:\"⊰\",Pscr:\"𝒫\",pscr:\"𝓅\",Psi:\"Ψ\",psi:\"ψ\",puncsp:\" \",Qfr:\"𝔔\",qfr:\"𝔮\",qint:\"⨌\",qopf:\"𝕢\",Qopf:\"ℚ\",qprime:\"⁗\",Qscr:\"𝒬\",qscr:\"𝓆\",quaternions:\"ℍ\",quatint:\"⨖\",quest:\"?\",questeq:\"≟\",quot:'\"',QUOT:'\"',rAarr:\"⇛\",race:\"∽̱\",Racute:\"Ŕ\",racute:\"ŕ\",radic:\"√\",raemptyv:\"⦳\",rang:\"⟩\",Rang:\"⟫\",rangd:\"⦒\",range:\"⦥\",rangle:\"⟩\",raquo:\"»\",rarrap:\"⥵\",rarrb:\"⇥\",rarrbfs:\"⤠\",rarrc:\"⤳\",rarr:\"→\",Rarr:\"↠\",rArr:\"⇒\",rarrfs:\"⤞\",rarrhk:\"↪\",rarrlp:\"↬\",rarrpl:\"⥅\",rarrsim:\"⥴\",Rarrtl:\"⤖\",rarrtl:\"↣\",rarrw:\"↝\",ratail:\"⤚\",rAtail:\"⤜\",ratio:\"∶\",rationals:\"ℚ\",rbarr:\"⤍\",rBarr:\"⤏\",RBarr:\"⤐\",rbbrk:\"❳\",rbrace:\"}\",rbrack:\"]\",rbrke:\"⦌\",rbrksld:\"⦎\",rbrkslu:\"⦐\",Rcaron:\"Ř\",rcaron:\"ř\",Rcedil:\"Ŗ\",rcedil:\"ŗ\",rceil:\"⌉\",rcub:\"}\",Rcy:\"Р\",rcy:\"р\",rdca:\"⤷\",rdldhar:\"⥩\",rdquo:\"”\",rdquor:\"”\",rdsh:\"↳\",real:\"ℜ\",realine:\"ℛ\",realpart:\"ℜ\",reals:\"ℝ\",Re:\"ℜ\",rect:\"▭\",reg:\"®\",REG:\"®\",ReverseElement:\"∋\",ReverseEquilibrium:\"⇋\",ReverseUpEquilibrium:\"⥯\",rfisht:\"⥽\",rfloor:\"⌋\",rfr:\"𝔯\",Rfr:\"ℜ\",rHar:\"⥤\",rhard:\"⇁\",rharu:\"⇀\",rharul:\"⥬\",Rho:\"Ρ\",rho:\"ρ\",rhov:\"ϱ\",RightAngleBracket:\"⟩\",RightArrowBar:\"⇥\",rightarrow:\"→\",RightArrow:\"→\",Rightarrow:\"⇒\",RightArrowLeftArrow:\"⇄\",rightarrowtail:\"↣\",RightCeiling:\"⌉\",RightDoubleBracket:\"⟧\",RightDownTeeVector:\"⥝\",RightDownVectorBar:\"⥕\",RightDownVector:\"⇂\",RightFloor:\"⌋\",rightharpoondown:\"⇁\",rightharpoonup:\"⇀\",rightleftarrows:\"⇄\",rightleftharpoons:\"⇌\",rightrightarrows:\"⇉\",rightsquigarrow:\"↝\",RightTeeArrow:\"↦\",RightTee:\"⊢\",RightTeeVector:\"⥛\",rightthreetimes:\"⋌\",RightTriangleBar:\"⧐\",RightTriangle:\"⊳\",RightTriangleEqual:\"⊵\",RightUpDownVector:\"⥏\",RightUpTeeVector:\"⥜\",RightUpVectorBar:\"⥔\",RightUpVector:\"↾\",RightVectorBar:\"⥓\",RightVector:\"⇀\",ring:\"˚\",risingdotseq:\"≓\",rlarr:\"⇄\",rlhar:\"⇌\",rlm:\"\",rmoustache:\"⎱\",rmoust:\"⎱\",rnmid:\"⫮\",roang:\"⟭\",roarr:\"⇾\",robrk:\"⟧\",ropar:\"⦆\",ropf:\"𝕣\",Ropf:\"ℝ\",roplus:\"⨮\",rotimes:\"⨵\",RoundImplies:\"⥰\",rpar:\")\",rpargt:\"⦔\",rppolint:\"⨒\",rrarr:\"⇉\",Rrightarrow:\"⇛\",rsaquo:\"›\",rscr:\"𝓇\",Rscr:\"ℛ\",rsh:\"↱\",Rsh:\"↱\",rsqb:\"]\",rsquo:\"’\",rsquor:\"’\",rthree:\"⋌\",rtimes:\"⋊\",rtri:\"▹\",rtrie:\"⊵\",rtrif:\"▸\",rtriltri:\"⧎\",RuleDelayed:\"⧴\",ruluhar:\"⥨\",rx:\"℞\",Sacute:\"Ś\",sacute:\"ś\",sbquo:\"‚\",scap:\"⪸\",Scaron:\"Š\",scaron:\"š\",Sc:\"⪼\",sc:\"≻\",sccue:\"≽\",sce:\"⪰\",scE:\"⪴\",Scedil:\"Ş\",scedil:\"ş\",Scirc:\"Ŝ\",scirc:\"ŝ\",scnap:\"⪺\",scnE:\"⪶\",scnsim:\"⋩\",scpolint:\"⨓\",scsim:\"≿\",Scy:\"С\",scy:\"с\",sdotb:\"⊡\",sdot:\"⋅\",sdote:\"⩦\",searhk:\"⤥\",searr:\"↘\",seArr:\"⇘\",searrow:\"↘\",sect:\"§\",semi:\";\",seswar:\"⤩\",setminus:\"∖\",setmn:\"∖\",sext:\"✶\",Sfr:\"𝔖\",sfr:\"𝔰\",sfrown:\"⌢\",sharp:\"♯\",SHCHcy:\"Щ\",shchcy:\"щ\",SHcy:\"Ш\",shcy:\"ш\",ShortDownArrow:\"↓\",ShortLeftArrow:\"←\",shortmid:\"∣\",shortparallel:\"∥\",ShortRightArrow:\"→\",ShortUpArrow:\"↑\",shy:\"\",Sigma:\"Σ\",sigma:\"σ\",sigmaf:\"ς\",sigmav:\"ς\",sim:\"∼\",simdot:\"⩪\",sime:\"≃\",simeq:\"≃\",simg:\"⪞\",simgE:\"⪠\",siml:\"⪝\",simlE:\"⪟\",simne:\"≆\",simplus:\"⨤\",simrarr:\"⥲\",slarr:\"←\",SmallCircle:\"∘\",smallsetminus:\"∖\",smashp:\"⨳\",smeparsl:\"⧤\",smid:\"∣\",smile:\"⌣\",smt:\"⪪\",smte:\"⪬\",smtes:\"⪬︀\",SOFTcy:\"Ь\",softcy:\"ь\",solbar:\"⌿\",solb:\"⧄\",sol:\"/\",Sopf:\"𝕊\",sopf:\"𝕤\",spades:\"♠\",spadesuit:\"♠\",spar:\"∥\",sqcap:\"⊓\",sqcaps:\"⊓︀\",sqcup:\"⊔\",sqcups:\"⊔︀\",Sqrt:\"√\",sqsub:\"⊏\",sqsube:\"⊑\",sqsubset:\"⊏\",sqsubseteq:\"⊑\",sqsup:\"⊐\",sqsupe:\"⊒\",sqsupset:\"⊐\",sqsupseteq:\"⊒\",square:\"□\",Square:\"□\",SquareIntersection:\"⊓\",SquareSubset:\"⊏\",SquareSubsetEqual:\"⊑\",SquareSuperset:\"⊐\",SquareSupersetEqual:\"⊒\",SquareUnion:\"⊔\",squarf:\"▪\",squ:\"□\",squf:\"▪\",srarr:\"→\",Sscr:\"𝒮\",sscr:\"𝓈\",ssetmn:\"∖\",ssmile:\"⌣\",sstarf:\"⋆\",Star:\"⋆\",star:\"☆\",starf:\"★\",straightepsilon:\"ϵ\",straightphi:\"ϕ\",strns:\"¯\",sub:\"⊂\",Sub:\"⋐\",subdot:\"⪽\",subE:\"⫅\",sube:\"⊆\",subedot:\"⫃\",submult:\"⫁\",subnE:\"⫋\",subne:\"⊊\",subplus:\"⪿\",subrarr:\"⥹\",subset:\"⊂\",Subset:\"⋐\",subseteq:\"⊆\",subseteqq:\"⫅\",SubsetEqual:\"⊆\",subsetneq:\"⊊\",subsetneqq:\"⫋\",subsim:\"⫇\",subsub:\"⫕\",subsup:\"⫓\",succapprox:\"⪸\",succ:\"≻\",succcurlyeq:\"≽\",Succeeds:\"≻\",SucceedsEqual:\"⪰\",SucceedsSlantEqual:\"≽\",SucceedsTilde:\"≿\",succeq:\"⪰\",succnapprox:\"⪺\",succneqq:\"⪶\",succnsim:\"⋩\",succsim:\"≿\",SuchThat:\"∋\",sum:\"∑\",Sum:\"∑\",sung:\"♪\",sup1:\"¹\",sup2:\"²\",sup3:\"³\",sup:\"⊃\",Sup:\"⋑\",supdot:\"⪾\",supdsub:\"⫘\",supE:\"⫆\",supe:\"⊇\",supedot:\"⫄\",Superset:\"⊃\",SupersetEqual:\"⊇\",suphsol:\"⟉\",suphsub:\"⫗\",suplarr:\"⥻\",supmult:\"⫂\",supnE:\"⫌\",supne:\"⊋\",supplus:\"⫀\",supset:\"⊃\",Supset:\"⋑\",supseteq:\"⊇\",supseteqq:\"⫆\",supsetneq:\"⊋\",supsetneqq:\"⫌\",supsim:\"⫈\",supsub:\"⫔\",supsup:\"⫖\",swarhk:\"⤦\",swarr:\"↙\",swArr:\"⇙\",swarrow:\"↙\",swnwar:\"⤪\",szlig:\"ß\",Tab:\"\t\",target:\"⌖\",Tau:\"Τ\",tau:\"τ\",tbrk:\"⎴\",Tcaron:\"Ť\",tcaron:\"ť\",Tcedil:\"Ţ\",tcedil:\"ţ\",Tcy:\"Т\",tcy:\"т\",tdot:\"⃛\",telrec:\"⌕\",Tfr:\"𝔗\",tfr:\"𝔱\",there4:\"∴\",therefore:\"∴\",Therefore:\"∴\",Theta:\"Θ\",theta:\"θ\",thetasym:\"ϑ\",thetav:\"ϑ\",thickapprox:\"≈\",thicksim:\"∼\",ThickSpace:\" \",ThinSpace:\" \",thinsp:\" \",thkap:\"≈\",thksim:\"∼\",THORN:\"Þ\",thorn:\"þ\",tilde:\"˜\",Tilde:\"∼\",TildeEqual:\"≃\",TildeFullEqual:\"≅\",TildeTilde:\"≈\",timesbar:\"⨱\",timesb:\"⊠\",times:\"×\",timesd:\"⨰\",tint:\"∭\",toea:\"⤨\",topbot:\"⌶\",topcir:\"⫱\",top:\"⊤\",Topf:\"𝕋\",topf:\"𝕥\",topfork:\"⫚\",tosa:\"⤩\",tprime:\"‴\",trade:\"™\",TRADE:\"™\",triangle:\"▵\",triangledown:\"▿\",triangleleft:\"◃\",trianglelefteq:\"⊴\",triangleq:\"≜\",triangleright:\"▹\",trianglerighteq:\"⊵\",tridot:\"◬\",trie:\"≜\",triminus:\"⨺\",TripleDot:\"⃛\",triplus:\"⨹\",trisb:\"⧍\",tritime:\"⨻\",trpezium:\"⏢\",Tscr:\"𝒯\",tscr:\"𝓉\",TScy:\"Ц\",tscy:\"ц\",TSHcy:\"Ћ\",tshcy:\"ћ\",Tstrok:\"Ŧ\",tstrok:\"ŧ\",twixt:\"≬\",twoheadleftarrow:\"↞\",twoheadrightarrow:\"↠\",Uacute:\"Ú\",uacute:\"ú\",uarr:\"↑\",Uarr:\"↟\",uArr:\"⇑\",Uarrocir:\"⥉\",Ubrcy:\"Ў\",ubrcy:\"ў\",Ubreve:\"Ŭ\",ubreve:\"ŭ\",Ucirc:\"Û\",ucirc:\"û\",Ucy:\"У\",ucy:\"у\",udarr:\"⇅\",Udblac:\"Ű\",udblac:\"ű\",udhar:\"⥮\",ufisht:\"⥾\",Ufr:\"𝔘\",ufr:\"𝔲\",Ugrave:\"Ù\",ugrave:\"ù\",uHar:\"⥣\",uharl:\"↿\",uharr:\"↾\",uhblk:\"▀\",ulcorn:\"⌜\",ulcorner:\"⌜\",ulcrop:\"⌏\",ultri:\"◸\",Umacr:\"Ū\",umacr:\"ū\",uml:\"¨\",UnderBar:\"_\",UnderBrace:\"⏟\",UnderBracket:\"⎵\",UnderParenthesis:\"⏝\",Union:\"⋃\",UnionPlus:\"⊎\",Uogon:\"Ų\",uogon:\"ų\",Uopf:\"𝕌\",uopf:\"𝕦\",UpArrowBar:\"⤒\",uparrow:\"↑\",UpArrow:\"↑\",Uparrow:\"⇑\",UpArrowDownArrow:\"⇅\",updownarrow:\"↕\",UpDownArrow:\"↕\",Updownarrow:\"⇕\",UpEquilibrium:\"⥮\",upharpoonleft:\"↿\",upharpoonright:\"↾\",uplus:\"⊎\",UpperLeftArrow:\"↖\",UpperRightArrow:\"↗\",upsi:\"υ\",Upsi:\"ϒ\",upsih:\"ϒ\",Upsilon:\"Υ\",upsilon:\"υ\",UpTeeArrow:\"↥\",UpTee:\"⊥\",upuparrows:\"⇈\",urcorn:\"⌝\",urcorner:\"⌝\",urcrop:\"⌎\",Uring:\"Ů\",uring:\"ů\",urtri:\"◹\",Uscr:\"𝒰\",uscr:\"𝓊\",utdot:\"⋰\",Utilde:\"Ũ\",utilde:\"ũ\",utri:\"▵\",utrif:\"▴\",uuarr:\"⇈\",Uuml:\"Ü\",uuml:\"ü\",uwangle:\"⦧\",vangrt:\"⦜\",varepsilon:\"ϵ\",varkappa:\"ϰ\",varnothing:\"∅\",varphi:\"ϕ\",varpi:\"ϖ\",varpropto:\"∝\",varr:\"↕\",vArr:\"⇕\",varrho:\"ϱ\",varsigma:\"ς\",varsubsetneq:\"⊊︀\",varsubsetneqq:\"⫋︀\",varsupsetneq:\"⊋︀\",varsupsetneqq:\"⫌︀\",vartheta:\"ϑ\",vartriangleleft:\"⊲\",vartriangleright:\"⊳\",vBar:\"⫨\",Vbar:\"⫫\",vBarv:\"⫩\",Vcy:\"В\",vcy:\"в\",vdash:\"⊢\",vDash:\"⊨\",Vdash:\"⊩\",VDash:\"⊫\",Vdashl:\"⫦\",veebar:\"⊻\",vee:\"∨\",Vee:\"⋁\",veeeq:\"≚\",vellip:\"⋮\",verbar:\"|\",Verbar:\"‖\",vert:\"|\",Vert:\"‖\",VerticalBar:\"∣\",VerticalLine:\"|\",VerticalSeparator:\"❘\",VerticalTilde:\"≀\",VeryThinSpace:\" \",Vfr:\"𝔙\",vfr:\"𝔳\",vltri:\"⊲\",vnsub:\"⊂⃒\",vnsup:\"⊃⃒\",Vopf:\"𝕍\",vopf:\"𝕧\",vprop:\"∝\",vrtri:\"⊳\",Vscr:\"𝒱\",vscr:\"𝓋\",vsubnE:\"⫋︀\",vsubne:\"⊊︀\",vsupnE:\"⫌︀\",vsupne:\"⊋︀\",Vvdash:\"⊪\",vzigzag:\"⦚\",Wcirc:\"Ŵ\",wcirc:\"ŵ\",wedbar:\"⩟\",wedge:\"∧\",Wedge:\"⋀\",wedgeq:\"≙\",weierp:\"℘\",Wfr:\"𝔚\",wfr:\"𝔴\",Wopf:\"𝕎\",wopf:\"𝕨\",wp:\"℘\",wr:\"≀\",wreath:\"≀\",Wscr:\"𝒲\",wscr:\"𝓌\",xcap:\"⋂\",xcirc:\"◯\",xcup:\"⋃\",xdtri:\"▽\",Xfr:\"𝔛\",xfr:\"𝔵\",xharr:\"⟷\",xhArr:\"⟺\",Xi:\"Ξ\",xi:\"ξ\",xlarr:\"⟵\",xlArr:\"⟸\",xmap:\"⟼\",xnis:\"⋻\",xodot:\"⨀\",Xopf:\"𝕏\",xopf:\"𝕩\",xoplus:\"⨁\",xotime:\"⨂\",xrarr:\"⟶\",xrArr:\"⟹\",Xscr:\"𝒳\",xscr:\"𝓍\",xsqcup:\"⨆\",xuplus:\"⨄\",xutri:\"△\",xvee:\"⋁\",xwedge:\"⋀\",Yacute:\"Ý\",yacute:\"ý\",YAcy:\"Я\",yacy:\"я\",Ycirc:\"Ŷ\",ycirc:\"ŷ\",Ycy:\"Ы\",ycy:\"ы\",yen:\"¥\",Yfr:\"𝔜\",yfr:\"𝔶\",YIcy:\"Ї\",yicy:\"ї\",Yopf:\"𝕐\",yopf:\"𝕪\",Yscr:\"𝒴\",yscr:\"𝓎\",YUcy:\"Ю\",yucy:\"ю\",yuml:\"ÿ\",Yuml:\"Ÿ\",Zacute:\"Ź\",zacute:\"ź\",Zcaron:\"Ž\",zcaron:\"ž\",Zcy:\"З\",zcy:\"з\",Zdot:\"Ż\",zdot:\"ż\",zeetrf:\"ℨ\",ZeroWidthSpace:\"\",Zeta:\"Ζ\",zeta:\"ζ\",zfr:\"𝔷\",Zfr:\"ℨ\",ZHcy:\"Ж\",zhcy:\"ж\",zigrarr:\"⇝\",zopf:\"𝕫\",Zopf:\"ℤ\",Zscr:\"𝒵\",zscr:\"𝓏\",zwj:\"\",zwnj:\"\"},$P=JY,cC=/[!-#%-\\*,-\\/:;\\?@\\[-\\]_\\{\\}\\xA1\\xA7\\xAB\\xB6\\xB7\\xBB\\xBF\\u037E\\u0387\\u055A-\\u055F\\u0589\\u058A\\u05BE\\u05C0\\u05C3\\u05C6\\u05F3\\u05F4\\u0609\\u060A\\u060C\\u060D\\u061B\\u061E\\u061F\\u066A-\\u066D\\u06D4\\u0700-\\u070D\\u07F7-\\u07F9\\u0830-\\u083E\\u085E\\u0964\\u0965\\u0970\\u09FD\\u0A76\\u0AF0\\u0C84\\u0DF4\\u0E4F\\u0E5A\\u0E5B\\u0F04-\\u0F12\\u0F14\\u0F3A-\\u0F3D\\u0F85\\u0FD0-\\u0FD4\\u0FD9\\u0FDA\\u104A-\\u104F\\u10FB\\u1360-\\u1368\\u1400\\u166D\\u166E\\u169B\\u169C\\u16EB-\\u16ED\\u1735\\u1736\\u17D4-\\u17D6\\u17D8-\\u17DA\\u1800-\\u180A\\u1944\\u1945\\u1A1E\\u1A1F\\u1AA0-\\u1AA6\\u1AA8-\\u1AAD\\u1B5A-\\u1B60\\u1BFC-\\u1BFF\\u1C3B-\\u1C3F\\u1C7E\\u1C7F\\u1CC0-\\u1CC7\\u1CD3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205E\\u207D\\u207E\\u208D\\u208E\\u2308-\\u230B\\u2329\\u232A\\u2768-\\u2775\\u27C5\\u27C6\\u27E6-\\u27EF\\u2983-\\u2998\\u29D8-\\u29DB\\u29FC\\u29FD\\u2CF9-\\u2CFC\\u2CFE\\u2CFF\\u2D70\\u2E00-\\u2E2E\\u2E30-\\u2E4E\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301F\\u3030\\u303D\\u30A0\\u30FB\\uA4FE\\uA4FF\\uA60D-\\uA60F\\uA673\\uA67E\\uA6F2-\\uA6F7\\uA874-\\uA877\\uA8CE\\uA8CF\\uA8F8-\\uA8FA\\uA8FC\\uA92E\\uA92F\\uA95F\\uA9C1-\\uA9CD\\uA9DE\\uA9DF\\uAA5C-\\uAA5F\\uAADE\\uAADF\\uAAF0\\uAAF1\\uABEB\\uFD3E\\uFD3F\\uFE10-\\uFE19\\uFE30-\\uFE52\\uFE54-\\uFE61\\uFE63\\uFE68\\uFE6A\\uFE6B\\uFF01-\\uFF03\\uFF05-\\uFF0A\\uFF0C-\\uFF0F\\uFF1A\\uFF1B\\uFF1F\\uFF20\\uFF3B-\\uFF3D\\uFF3F\\uFF5B\\uFF5D\\uFF5F-\\uFF65]|\\uD800[\\uDD00-\\uDD02\\uDF9F\\uDFD0]|\\uD801\\uDD6F|\\uD802[\\uDC57\\uDD1F\\uDD3F\\uDE50-\\uDE58\\uDE7F\\uDEF0-\\uDEF6\\uDF39-\\uDF3F\\uDF99-\\uDF9C]|\\uD803[\\uDF55-\\uDF59]|\\uD804[\\uDC47-\\uDC4D\\uDCBB\\uDCBC\\uDCBE-\\uDCC1\\uDD40-\\uDD43\\uDD74\\uDD75\\uDDC5-\\uDDC8\\uDDCD\\uDDDB\\uDDDD-\\uDDDF\\uDE38-\\uDE3D\\uDEA9]|\\uD805[\\uDC4B-\\uDC4F\\uDC5B\\uDC5D\\uDCC6\\uDDC1-\\uDDD7\\uDE41-\\uDE43\\uDE60-\\uDE6C\\uDF3C-\\uDF3E]|\\uD806[\\uDC3B\\uDE3F-\\uDE46\\uDE9A-\\uDE9C\\uDE9E-\\uDEA2]|\\uD807[\\uDC41-\\uDC45\\uDC70\\uDC71\\uDEF7\\uDEF8]|\\uD809[\\uDC70-\\uDC74]|\\uD81A[\\uDE6E\\uDE6F\\uDEF5\\uDF37-\\uDF3B\\uDF44]|\\uD81B[\\uDE97-\\uDE9A]|\\uD82F\\uDC9F|\\uD836[\\uDE87-\\uDE8B]|\\uD83A[\\uDD5E\\uDD5F]/,Df={},VP={};function BP(e){var t,n,r=VP[e];if(r)return r;for(r=VP[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?r.push(n):r.push(\"%\"+(\"0\"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)r[e.charCodeAt(t)]=e[t];return r}E(BP,\"getEncodeCache\");function Ah(e,t,n){var r,i,o,s,l,c=\"\";for(typeof t!=\"string\"&&(n=t,t=Ah.defaultChars),typeof n>\"u\"&&(n=!0),l=BP(t),r=0,i=e.length;r<i;r++){if(o=e.charCodeAt(r),n&&o===37&&r+2<i&&/^[0-9a-f]{2}$/i.test(e.slice(r+1,r+3))){c+=e.slice(r,r+3),r+=2;continue}if(o<128){c+=l[o];continue}if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&r+1<i&&(s=e.charCodeAt(r+1),s>=56320&&s<=57343)){c+=encodeURIComponent(e[r]+e[r+1]),r++;continue}c+=\"%EF%BF%BD\";continue}c+=encodeURIComponent(e[r])}return c}E(Ah,\"encode$1\"),Ah.defaultChars=\";/?:@&=+$,-_.!~*'()#\",Ah.componentChars=\"-_.!~*'()\";var KY=Ah,jP={};function UP(e){var t,n,r=jP[e];if(r)return r;for(r=jP[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),r.push(n);for(t=0;t<e.length;t++)n=e.charCodeAt(t),r[n]=\"%\"+(\"0\"+n.toString(16).toUpperCase()).slice(-2);return r}E(UP,\"getDecodeCache\");function Oh(e,t){var n;return typeof t!=\"string\"&&(t=Oh.defaultChars),n=UP(t),e.replace(/(%[a-f0-9]{2})+/gi,function(r){var i,o,s,l,c,f,h,g=\"\";for(i=0,o=r.length;i<o;i+=3){if(s=parseInt(r.slice(i+1,i+3),16),s<128){g+=n[s];continue}if((s&224)===192&&i+3<o&&(l=parseInt(r.slice(i+4,i+6),16),(l&192)===128)){h=s<<6&1984|l&63,h<128?g+=\"��\":g+=String.fromCharCode(h),i+=3;continue}if((s&240)===224&&i+6<o&&(l=parseInt(r.slice(i+4,i+6),16),c=parseInt(r.slice(i+7,i+9),16),(l&192)===128&&(c&192)===128)){h=s<<12&61440|l<<6&4032|c&63,h<2048||h>=55296&&h<=57343?g+=\"���\":g+=String.fromCharCode(h),i+=6;continue}if((s&248)===240&&i+9<o&&(l=parseInt(r.slice(i+4,i+6),16),c=parseInt(r.slice(i+7,i+9),16),f=parseInt(r.slice(i+10,i+12),16),(l&192)===128&&(c&192)===128&&(f&192)===128)){h=s<<18&1835008|l<<12&258048|c<<6&4032|f&63,h<65536||h>1114111?g+=\"����\":(h-=65536,g+=String.fromCharCode(55296+(h>>10),56320+(h&1023))),i+=9;continue}g+=\"�\"}return g})}E(Oh,\"decode$1\"),Oh.defaultChars=\";/?:@&=+$,#\",Oh.componentChars=\"\";var XY=Oh,ZY=E(function(t){var n=\"\";return n+=t.protocol||\"\",n+=t.slashes?\"//\":\"\",n+=t.auth?t.auth+\"@\":\"\",t.hostname&&t.hostname.indexOf(\":\")!==-1?n+=\"[\"+t.hostname+\"]\":n+=t.hostname||\"\",n+=t.port?\":\"+t.port:\"\",n+=t.pathname||\"\",n+=t.search||\"\",n+=t.hash||\"\",n},\"format\");function Ih(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}E(Ih,\"Url\");var eJ=/^([a-z0-9.+-]+:)/i,tJ=/:[0-9]*$/,nJ=/^(\\/\\/?(?!\\/)[^\\?\\s]*)(\\?[^\\s]*)?$/,rJ=[\"<\",\">\",'\"',\"`\",\" \",\"\\r\",`\n`,\"\t\"],iJ=[\"{\",\"}\",\"|\",\"\\\\\",\"^\",\"`\"].concat(rJ),oJ=[\"'\"].concat(iJ),qP=[\"%\",\"/\",\"?\",\";\",\"#\"].concat(oJ),HP=[\"/\",\"?\",\"#\"],aJ=255,zP=/^[+a-z0-9A-Z_-]{0,63}$/,sJ=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,GP={javascript:!0,\"javascript:\":!0},WP={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,\"http:\":!0,\"https:\":!0,\"ftp:\":!0,\"gopher:\":!0,\"file:\":!0};function QP(e,t){if(e&&e instanceof Ih)return e;var n=new Ih;return n.parse(e,t),n}E(QP,\"urlParse\"),Ih.prototype.parse=function(e,t){var n,r,i,o,s,l=e;if(l=l.trim(),!t&&e.split(\"#\").length===1){var c=nJ.exec(l);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var f=eJ.exec(l);if(f&&(f=f[0],i=f.toLowerCase(),this.protocol=f,l=l.substr(f.length)),(t||f||l.match(/^\\/\\/[^@\\/]+@[^@\\/]+/))&&(s=l.substr(0,2)===\"//\",s&&!(f&&GP[f])&&(l=l.substr(2),this.slashes=!0)),!GP[f]&&(s||f&&!WP[f])){var h=-1;for(n=0;n<HP.length;n++)o=l.indexOf(HP[n]),o!==-1&&(h===-1||o<h)&&(h=o);var g,m;for(h===-1?m=l.lastIndexOf(\"@\"):m=l.lastIndexOf(\"@\",h),m!==-1&&(g=l.slice(0,m),l=l.slice(m+1),this.auth=g),h=-1,n=0;n<qP.length;n++)o=l.indexOf(qP[n]),o!==-1&&(h===-1||o<h)&&(h=o);h===-1&&(h=l.length),l[h-1]===\":\"&&h--;var y=l.slice(0,h);l=l.slice(h),this.parseHost(y),this.hostname=this.hostname||\"\";var S=this.hostname[0]===\"[\"&&this.hostname[this.hostname.length-1]===\"]\";if(!S){var x=this.hostname.split(/\\./);for(n=0,r=x.length;n<r;n++){var D=x[n];if(D&&!D.match(zP)){for(var _=\"\",b=0,C=D.length;b<C;b++)D.charCodeAt(b)>127?_+=\"x\":_+=D[b];if(!_.match(zP)){var T=x.slice(0,n),N=x.slice(n+1),F=D.match(sJ);F&&(T.push(F[1]),N.unshift(F[2])),N.length&&(l=N.join(\".\")+l),this.hostname=T.join(\".\");break}}}}this.hostname.length>aJ&&(this.hostname=\"\"),S&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var L=l.indexOf(\"#\");L!==-1&&(this.hash=l.substr(L),l=l.slice(0,L));var A=l.indexOf(\"?\");return A!==-1&&(this.search=l.substr(A),l=l.slice(0,A)),l&&(this.pathname=l),WP[i]&&this.hostname&&!this.pathname&&(this.pathname=\"\"),this},Ih.prototype.parseHost=function(e){var t=tJ.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 lJ=QP;Df.encode=KY,Df.decode=XY,Df.format=ZY,Df.parse=lJ;var Af={},YP=/[\\0-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]/,JP=/[\\0-\\x1F\\x7F-\\x9F]/,uJ=/[\\xAD\\u0600-\\u0605\\u061C\\u06DD\\u070F\\u08E2\\u180E\\u200B-\\u200F\\u202A-\\u202E\\u2060-\\u2064\\u2066-\\u206F\\uFEFF\\uFFF9-\\uFFFB]|\\uD804[\\uDCBD\\uDCCD]|\\uD82F[\\uDCA0-\\uDCA3]|\\uD834[\\uDD73-\\uDD7A]|\\uDB40[\\uDC01\\uDC20-\\uDC7F]/,KP=/[ \\xA0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000]/;Af.Any=YP,Af.Cc=JP,Af.Cf=uJ,Af.P=cC,Af.Z=KP,function(e){function t(U){return Object.prototype.toString.call(U)}E(t,\"_class\");function n(U){return t(U)===\"[object String]\"}E(n,\"isString\");var r=Object.prototype.hasOwnProperty;function i(U,j){return r.call(U,j)}E(i,\"has\");function o(U){var j=Array.prototype.slice.call(arguments,1);return j.forEach(function(X){if(X){if(typeof X!=\"object\")throw new TypeError(X+\"must be object\");Object.keys(X).forEach(function(ne){U[ne]=X[ne]})}}),U}E(o,\"assign\");function s(U,j,X){return[].concat(U.slice(0,j),X,U.slice(j+1))}E(s,\"arrayReplaceAt\");function l(U){return!(U>=55296&&U<=57343||U>=64976&&U<=65007||(U&65535)===65535||(U&65535)===65534||U>=0&&U<=8||U===11||U>=14&&U<=31||U>=127&&U<=159||U>1114111)}E(l,\"isValidEntityCode\");function c(U){if(U>65535){U-=65536;var j=55296+(U>>10),X=56320+(U&1023);return String.fromCharCode(j,X)}return String.fromCharCode(U)}E(c,\"fromCodePoint\");var f=/\\\\([!\"#$%&'()*+,\\-.\\/:;<=>?@[\\\\\\]^_`{|}~])/g,h=/&([a-z#][a-z0-9]{1,31});/gi,g=new RegExp(f.source+\"|\"+h.source,\"gi\"),m=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,y=$P;function S(U,j){var X=0;return i(y,j)?y[j]:j.charCodeAt(0)===35&&m.test(j)&&(X=j[1].toLowerCase()===\"x\"?parseInt(j.slice(2),16):parseInt(j.slice(1),10),l(X))?c(X):U}E(S,\"replaceEntityPattern\");function x(U){return U.indexOf(\"\\\\\")<0?U:U.replace(f,\"$1\")}E(x,\"unescapeMd\");function D(U){return U.indexOf(\"\\\\\")<0&&U.indexOf(\"&\")<0?U:U.replace(g,function(j,X,ne){return X||S(j,ne)})}E(D,\"unescapeAll\");var _=/[&<>\"]/,b=/[&<>\"]/g,C={\"&\":\"&\",\"<\":\"<\",\">\":\">\",'\"':\""\"};function T(U){return C[U]}E(T,\"replaceUnsafeChar\");function N(U){return _.test(U)?U.replace(b,T):U}E(N,\"escapeHtml\");var F=/[.?*+^$[\\]\\\\(){}|-]/g;function L(U){return U.replace(F,\"\\\\$&\")}E(L,\"escapeRE\");function A(U){switch(U){case 9:case 32:return!0}return!1}E(A,\"isSpace\");function P(U){if(U>=8192&&U<=8202)return!0;switch(U){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}E(P,\"isWhiteSpace\");var V=cC;function H(U){return V.test(U)}E(H,\"isPunctChar\");function G(U){switch(U){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}}E(G,\"isMdAsciiPunct\");function z(U){return U=U.trim().replace(/\\s+/g,\" \"),\"ẞ\".toLowerCase()===\"Ṿ\"&&(U=U.replace(/ẞ/g,\"ß\")),U.toLowerCase().toUpperCase()}E(z,\"normalizeReference\"),e.lib={},e.lib.mdurl=Df,e.lib.ucmicro=Af,e.assign=o,e.isString=n,e.has=i,e.unescapeMd=x,e.unescapeAll=D,e.isValidEntityCode=l,e.fromCodePoint=c,e.escapeHtml=N,e.arrayReplaceAt=s,e.isSpace=A,e.isWhiteSpace=P,e.isMdAsciiPunct=G,e.isPunctChar=H,e.escapeRE=L,e.normalizeReference=z}(Pt);var E0={},cJ=E(function(t,n,r){var i,o,s,l,c=-1,f=t.posMax,h=t.pos;for(t.pos=n+1,i=1;t.pos<f;){if(s=t.src.charCodeAt(t.pos),s===93&&(i--,i===0)){o=!0;break}if(l=t.pos,t.md.inline.skipToken(t),s===91){if(l===t.pos-1)i++;else if(r)return t.pos=h,-1}}return o&&(c=t.pos),t.pos=h,c},\"parseLinkLabel\"),XP=Pt.unescapeAll,fJ=E(function(t,n,r){var i,o,s=0,l=n,c={ok:!1,pos:0,lines:0,str:\"\"};if(t.charCodeAt(n)===60){for(n++;n<r;){if(i=t.charCodeAt(n),i===10||i===60)return c;if(i===62)return c.pos=n+1,c.str=XP(t.slice(l+1,n)),c.ok=!0,c;if(i===92&&n+1<r){n+=2;continue}n++}return c}for(o=0;n<r&&(i=t.charCodeAt(n),!(i===32||i<32||i===127));){if(i===92&&n+1<r){if(t.charCodeAt(n+1)===32)break;n+=2;continue}if(i===40&&(o++,o>32))return c;if(i===41){if(o===0)break;o--}n++}return l===n||o!==0||(c.str=XP(t.slice(l,n)),c.lines=s,c.pos=n,c.ok=!0),c},\"parseLinkDestination\"),dJ=Pt.unescapeAll,pJ=E(function(t,n,r){var i,o,s=0,l=n,c={ok:!1,pos:0,lines:0,str:\"\"};if(n>=r||(o=t.charCodeAt(n),o!==34&&o!==39&&o!==40))return c;for(n++,o===40&&(o=41);n<r;){if(i=t.charCodeAt(n),i===o)return c.pos=n+1,c.lines=s,c.str=dJ(t.slice(l+1,n)),c.ok=!0,c;if(i===40&&o===41)return c;i===10?s++:i===92&&n+1<r&&(n++,t.charCodeAt(n)===10&&s++),n++}return c},\"parseLinkTitle\");E0.parseLinkLabel=cJ,E0.parseLinkDestination=fJ,E0.parseLinkTitle=pJ;var hJ=Pt.assign,vJ=Pt.unescapeAll,Hu=Pt.escapeHtml,Ra={};Ra.code_inline=function(e,t,n,r,i){var o=e[t];return\"<code\"+i.renderAttrs(o)+\">\"+Hu(e[t].content)+\"</code>\"},Ra.code_block=function(e,t,n,r,i){var o=e[t];return\"<pre\"+i.renderAttrs(o)+\"><code>\"+Hu(e[t].content)+`</code></pre>\n`},Ra.fence=function(e,t,n,r,i){var o=e[t],s=o.info?vJ(o.info).trim():\"\",l=\"\",c=\"\",f,h,g,m,y;return s&&(g=s.split(/(\\s+)/g),l=g[0],c=g.slice(2).join(\"\")),n.highlight?f=n.highlight(o.content,l,c)||Hu(o.content):f=Hu(o.content),f.indexOf(\"<pre\")===0?f+`\n`:s?(h=o.attrIndex(\"class\"),m=o.attrs?o.attrs.slice():[],h<0?m.push([\"class\",n.langPrefix+l]):(m[h]=m[h].slice(),m[h][1]+=\" \"+n.langPrefix+l),y={attrs:m},\"<pre><code\"+i.renderAttrs(y)+\">\"+f+`</code></pre>\n`):\"<pre><code\"+i.renderAttrs(o)+\">\"+f+`</code></pre>\n`},Ra.image=function(e,t,n,r,i){var o=e[t];return o.attrs[o.attrIndex(\"alt\")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)},Ra.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />\n`:`<br>\n`},Ra.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />\n`:`<br>\n`:`\n`},Ra.text=function(e,t){return Hu(e[t].content)},Ra.html_block=function(e,t){return e[t].content},Ra.html_inline=function(e,t){return e[t].content};function zu(){this.rules=hJ({},Ra)}E(zu,\"Renderer$1\"),zu.prototype.renderAttrs=E(function(t){var n,r,i;if(!t.attrs)return\"\";for(i=\"\",n=0,r=t.attrs.length;n<r;n++)i+=\" \"+Hu(t.attrs[n][0])+'=\"'+Hu(t.attrs[n][1])+'\"';return i},\"renderAttrs\"),zu.prototype.renderToken=E(function(t,n,r){var i,o=\"\",s=!1,l=t[n];return l.hidden?\"\":(l.block&&l.nesting!==-1&&n&&t[n-1].hidden&&(o+=`\n`),o+=(l.nesting===-1?\"</\":\"<\")+l.tag,o+=this.renderAttrs(l),l.nesting===0&&r.xhtmlOut&&(o+=\" /\"),l.block&&(s=!0,l.nesting===1&&n+1<t.length&&(i=t[n+1],(i.type===\"inline\"||i.hidden||i.nesting===-1&&i.tag===l.tag)&&(s=!1))),o+=s?`>\n`:\">\",o)},\"renderToken\"),zu.prototype.renderInline=function(e,t,n){for(var r,i=\"\",o=this.rules,s=0,l=e.length;s<l;s++)r=e[s].type,typeof o[r]<\"u\"?i+=o[r](e,s,t,n,this):i+=this.renderToken(e,s,t);return i},zu.prototype.renderInlineAsText=function(e,t,n){for(var r=\"\",i=0,o=e.length;i<o;i++)e[i].type===\"text\"?r+=e[i].content:e[i].type===\"image\"?r+=this.renderInlineAsText(e[i].children,t,n):e[i].type===\"softbreak\"&&(r+=`\n`);return r},zu.prototype.render=function(e,t,n){var r,i,o,s=\"\",l=this.rules;for(r=0,i=e.length;r<i;r++)o=e[r].type,o===\"inline\"?s+=this.renderInline(e[r].children,t,n):typeof l[o]<\"u\"?s+=l[e[r].type](e,r,t,n,this):s+=this.renderToken(e,r,t,n);return s};var mJ=zu;function _o(){this.__rules__=[],this.__cache__=null}E(_o,\"Ruler$3\"),_o.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},_o.prototype.__compile__=function(){var e=this,t=[\"\"];e.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(r){t.indexOf(r)<0&&t.push(r)})}),e.__cache__={},t.forEach(function(n){e.__cache__[n]=[],e.__rules__.forEach(function(r){r.enabled&&(n&&r.alt.indexOf(n)<0||e.__cache__[n].push(r.fn))})})},_o.prototype.at=function(e,t,n){var r=this.__find__(e),i=n||{};if(r===-1)throw new Error(\"Parser rule not found: \"+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null},_o.prototype.before=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(i===-1)throw new Error(\"Parser rule not found: \"+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},_o.prototype.after=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(i===-1)throw new Error(\"Parser rule not found: \"+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},_o.prototype.push=function(e,t,n){var r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},_o.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach(function(r){var i=this.__find__(r);if(i<0){if(t)return;throw new Error(\"Rules manager: invalid rule name \"+r)}this.__rules__[i].enabled=!0,n.push(r)},this),this.__cache__=null,n},_o.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)},_o.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach(function(r){var i=this.__find__(r);if(i<0){if(t)return;throw new Error(\"Rules manager: invalid rule name \"+r)}this.__rules__[i].enabled=!1,n.push(r)},this),this.__cache__=null,n},_o.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};var fC=_o,gJ=/\\r\\n?|\\n/g,yJ=/\\0/g,bJ=E(function(t){var n;n=t.src.replace(gJ,`\n`),n=n.replace(yJ,\"�\"),t.src=n},\"normalize\"),EJ=E(function(t){var n;t.inlineMode?(n=new t.Token(\"inline\",\"\",0),n.content=t.src,n.map=[0,1],n.children=[],t.tokens.push(n)):t.md.block.parse(t.src,t.md,t.env,t.tokens)},\"block\"),wJ=E(function(t){var n=t.tokens,r,i,o;for(i=0,o=n.length;i<o;i++)r=n[i],r.type===\"inline\"&&t.md.inline.parse(r.content,t.md,t.env,r.children)},\"inline\"),SJ=Pt.arrayReplaceAt;function ZP(e){return/^<a[>\\s]/i.test(e)}E(ZP,\"isLinkOpen\");function eM(e){return/^<\\/a\\s*>/i.test(e)}E(eM,\"isLinkClose\");var TJ=E(function(t){var n,r,i,o,s,l,c,f,h,g,m,y,S,x,D,_,b=t.tokens,C;if(t.md.options.linkify){for(r=0,i=b.length;r<i;r++)if(!(b[r].type!==\"inline\"||!t.md.linkify.pretest(b[r].content)))for(o=b[r].children,S=0,n=o.length-1;n>=0;n--){if(l=o[n],l.type===\"link_close\"){for(n--;o[n].level!==l.level&&o[n].type!==\"link_open\";)n--;continue}if(l.type===\"html_inline\"&&(ZP(l.content)&&S>0&&S--,eM(l.content)&&S++),!(S>0)&&l.type===\"text\"&&t.md.linkify.test(l.content)){for(h=l.content,C=t.md.linkify.match(h),c=[],y=l.level,m=0,f=0;f<C.length;f++)x=C[f].url,D=t.md.normalizeLink(x),t.md.validateLink(D)&&(_=C[f].text,C[f].schema?C[f].schema===\"mailto:\"&&!/^mailto:/i.test(_)?_=t.md.normalizeLinkText(\"mailto:\"+_).replace(/^mailto:/,\"\"):_=t.md.normalizeLinkText(_):_=t.md.normalizeLinkText(\"http://\"+_).replace(/^http:\\/\\//,\"\"),g=C[f].index,g>m&&(s=new t.Token(\"text\",\"\",0),s.content=h.slice(m,g),s.level=y,c.push(s)),s=new t.Token(\"link_open\",\"a\",1),s.attrs=[[\"href\",D]],s.level=y++,s.markup=\"linkify\",s.info=\"auto\",c.push(s),s=new t.Token(\"text\",\"\",0),s.content=_,s.level=y,c.push(s),s=new t.Token(\"link_close\",\"a\",-1),s.level=--y,s.markup=\"linkify\",s.info=\"auto\",c.push(s),m=C[f].lastIndex);m<h.length&&(s=new t.Token(\"text\",\"\",0),s.content=h.slice(m),s.level=y,c.push(s)),b[r].children=o=SJ(o,n,c)}}}},\"linkify\"),tM=/\\+-|\\.\\.|\\?\\?\\?\\?|!!!!|,,|--/,_J=/\\((c|tm|r|p)\\)/i,CJ=/\\((c|tm|r|p)\\)/ig,xJ={c:\"©\",r:\"®\",p:\"§\",tm:\"™\"};function nM(e,t){return xJ[t.toLowerCase()]}E(nM,\"replaceFn\");function rM(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)n=e[t],n.type===\"text\"&&!r&&(n.content=n.content.replace(CJ,nM)),n.type===\"link_open\"&&n.info===\"auto\"&&r--,n.type===\"link_close\"&&n.info===\"auto\"&&r++}E(rM,\"replace_scoped\");function iM(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)n=e[t],n.type===\"text\"&&!r&&tM.test(n.content)&&(n.content=n.content.replace(/\\+-/g,\"±\").replace(/\\.{2,}/g,\"…\").replace(/([?!])…/g,\"$1..\").replace(/([?!]){4,}/g,\"$1$1$1\").replace(/,{2,}/g,\",\").replace(/(^|[^-])---(?=[^-]|$)/mg,\"$1—\").replace(/(^|\\s)--(?=\\s|$)/mg,\"$1–\").replace(/(^|[^-\\s])--(?=[^-\\s]|$)/mg,\"$1–\")),n.type===\"link_open\"&&n.info===\"auto\"&&r--,n.type===\"link_close\"&&n.info===\"auto\"&&r++}E(iM,\"replace_rare\");var kJ=E(function(t){var n;if(t.md.options.typographer)for(n=t.tokens.length-1;n>=0;n--)t.tokens[n].type===\"inline\"&&(_J.test(t.tokens[n].content)&&rM(t.tokens[n].children),tM.test(t.tokens[n].content)&&iM(t.tokens[n].children))},\"replace\"),oM=Pt.isWhiteSpace,aM=Pt.isPunctChar,sM=Pt.isMdAsciiPunct,NJ=/['\"]/,lM=/['\"]/g,uM=\"’\";function Lh(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}E(Lh,\"replaceAt\");function cM(e,t){var n,r,i,o,s,l,c,f,h,g,m,y,S,x,D,_,b,C,T,N,F;for(T=[],n=0;n<e.length;n++){for(r=e[n],c=e[n].level,b=T.length-1;b>=0&&!(T[b].level<=c);b--);if(T.length=b+1,r.type!==\"text\")continue;i=r.content,s=0,l=i.length;e:for(;s<l&&(lM.lastIndex=s,o=lM.exec(i),!!o);){if(D=_=!0,s=o.index+1,C=o[0]===\"'\",h=32,o.index-1>=0)h=i.charCodeAt(o.index-1);else for(b=n-1;b>=0&&!(e[b].type===\"softbreak\"||e[b].type===\"hardbreak\");b--)if(e[b].content){h=e[b].content.charCodeAt(e[b].content.length-1);break}if(g=32,s<l)g=i.charCodeAt(s);else for(b=n+1;b<e.length&&!(e[b].type===\"softbreak\"||e[b].type===\"hardbreak\");b++)if(e[b].content){g=e[b].content.charCodeAt(0);break}if(m=sM(h)||aM(String.fromCharCode(h)),y=sM(g)||aM(String.fromCharCode(g)),S=oM(h),x=oM(g),x?D=!1:y&&(S||m||(D=!1)),S?_=!1:m&&(x||y||(_=!1)),g===34&&o[0]==='\"'&&h>=48&&h<=57&&(_=D=!1),D&&_&&(D=m,_=y),!D&&!_){C&&(r.content=Lh(r.content,o.index,uM));continue}if(_){for(b=T.length-1;b>=0&&(f=T[b],!(T[b].level<c));b--)if(f.single===C&&T[b].level===c){f=T[b],C?(N=t.md.options.quotes[2],F=t.md.options.quotes[3]):(N=t.md.options.quotes[0],F=t.md.options.quotes[1]),r.content=Lh(r.content,o.index,F),e[f.token].content=Lh(e[f.token].content,f.pos,N),s+=F.length-1,f.token===n&&(s+=N.length-1),i=r.content,l=i.length,T.length=b;continue e}}D?T.push({token:n,pos:o.index,single:C,level:c}):_&&C&&(r.content=Lh(r.content,o.index,uM))}}}E(cM,\"process_inlines\");var DJ=E(function(t){var n;if(t.md.options.typographer)for(n=t.tokens.length-1;n>=0;n--)t.tokens[n].type!==\"inline\"||!NJ.test(t.tokens[n].content)||cM(t.tokens[n].children,t)},\"smartquotes\");function Gu(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}E(Gu,\"Token$3\"),Gu.prototype.attrIndex=E(function(t){var n,r,i;if(!this.attrs)return-1;for(n=this.attrs,r=0,i=n.length;r<i;r++)if(n[r][0]===t)return r;return-1},\"attrIndex\"),Gu.prototype.attrPush=E(function(t){this.attrs?this.attrs.push(t):this.attrs=[t]},\"attrPush\"),Gu.prototype.attrSet=E(function(t,n){var r=this.attrIndex(t),i=[t,n];r<0?this.attrPush(i):this.attrs[r]=i},\"attrSet\"),Gu.prototype.attrGet=E(function(t){var n=this.attrIndex(t),r=null;return n>=0&&(r=this.attrs[n][1]),r},\"attrGet\"),Gu.prototype.attrJoin=E(function(t,n){var r=this.attrIndex(t);r<0?this.attrPush([t,n]):this.attrs[r][1]=this.attrs[r][1]+\" \"+n},\"attrJoin\");var dC=Gu,AJ=dC;function pC(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}E(pC,\"StateCore\"),pC.prototype.Token=AJ;var OJ=pC,IJ=fC,hC=[[\"normalize\",bJ],[\"block\",EJ],[\"inline\",wJ],[\"linkify\",TJ],[\"replacements\",kJ],[\"smartquotes\",DJ]];function w0(){this.ruler=new IJ;for(var e=0;e<hC.length;e++)this.ruler.push(hC[e][0],hC[e][1])}E(w0,\"Core\"),w0.prototype.process=function(e){var t,n,r;for(r=this.ruler.getRules(\"\"),t=0,n=r.length;t<n;t++)r[t](e)},w0.prototype.State=OJ;var LJ=w0,vC=Pt.isSpace;function S0(e,t){var n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.substr(n,r-n)}E(S0,\"getLine\");function mC(e){var t=[],n=0,r=e.length,i,o=!1,s=0,l=\"\";for(i=e.charCodeAt(n);n<r;)i===124&&(o?(l+=e.substring(s,n-1),s=n):(t.push(l+e.substring(s,n)),l=\"\",s=n+1)),o=i===92,n++,i=e.charCodeAt(n);return t.push(l+e.substring(s)),t}E(mC,\"escapedSplit\");var FJ=E(function(t,n,r,i){var o,s,l,c,f,h,g,m,y,S,x,D,_,b,C,T,N,F;if(n+2>r||(h=n+1,t.sCount[h]<t.blkIndent)||t.sCount[h]-t.blkIndent>=4||(l=t.bMarks[h]+t.tShift[h],l>=t.eMarks[h])||(N=t.src.charCodeAt(l++),N!==124&&N!==45&&N!==58)||l>=t.eMarks[h]||(F=t.src.charCodeAt(l++),F!==124&&F!==45&&F!==58&&!vC(F))||N===45&&vC(F))return!1;for(;l<t.eMarks[h];){if(o=t.src.charCodeAt(l),o!==124&&o!==45&&o!==58&&!vC(o))return!1;l++}for(s=S0(t,n+1),g=s.split(\"|\"),S=[],c=0;c<g.length;c++){if(x=g[c].trim(),!x){if(c===0||c===g.length-1)continue;return!1}if(!/^:?-+:?$/.test(x))return!1;x.charCodeAt(x.length-1)===58?S.push(x.charCodeAt(0)===58?\"center\":\"right\"):x.charCodeAt(0)===58?S.push(\"left\"):S.push(\"\")}if(s=S0(t,n).trim(),s.indexOf(\"|\")===-1||t.sCount[n]-t.blkIndent>=4||(g=mC(s),g.length&&g[0]===\"\"&&g.shift(),g.length&&g[g.length-1]===\"\"&&g.pop(),m=g.length,m===0||m!==S.length))return!1;if(i)return!0;for(b=t.parentType,t.parentType=\"table\",T=t.md.block.ruler.getRules(\"blockquote\"),y=t.push(\"table_open\",\"table\",1),y.map=D=[n,0],y=t.push(\"thead_open\",\"thead\",1),y.map=[n,n+1],y=t.push(\"tr_open\",\"tr\",1),y.map=[n,n+1],c=0;c<g.length;c++)y=t.push(\"th_open\",\"th\",1),S[c]&&(y.attrs=[[\"style\",\"text-align:\"+S[c]]]),y=t.push(\"inline\",\"\",0),y.content=g[c].trim(),y.children=[],y=t.push(\"th_close\",\"th\",-1);for(y=t.push(\"tr_close\",\"tr\",-1),y=t.push(\"thead_close\",\"thead\",-1),h=n+2;h<r&&!(t.sCount[h]<t.blkIndent);h++){for(C=!1,c=0,f=T.length;c<f;c++)if(T[c](t,h,r,!0)){C=!0;break}if(C||(s=S0(t,h).trim(),!s)||t.sCount[h]-t.blkIndent>=4)break;for(g=mC(s),g.length&&g[0]===\"\"&&g.shift(),g.length&&g[g.length-1]===\"\"&&g.pop(),h===n+2&&(y=t.push(\"tbody_open\",\"tbody\",1),y.map=_=[n+2,0]),y=t.push(\"tr_open\",\"tr\",1),y.map=[h,h+1],c=0;c<m;c++)y=t.push(\"td_open\",\"td\",1),S[c]&&(y.attrs=[[\"style\",\"text-align:\"+S[c]]]),y=t.push(\"inline\",\"\",0),y.content=g[c]?g[c].trim():\"\",y.children=[],y=t.push(\"td_close\",\"td\",-1);y=t.push(\"tr_close\",\"tr\",-1)}return _&&(y=t.push(\"tbody_close\",\"tbody\",-1),_[1]=h),y=t.push(\"table_close\",\"table\",-1),D[1]=h,t.parentType=b,t.line=h,!0},\"table\"),RJ=E(function(t,n,r){var i,o,s;if(t.sCount[n]-t.blkIndent<4)return!1;for(o=i=n+1;i<r;){if(t.isEmpty(i)){i++;continue}if(t.sCount[i]-t.blkIndent>=4){i++,o=i;continue}break}return t.line=o,s=t.push(\"code_block\",\"code\",0),s.content=t.getLines(n,o,4+t.blkIndent,!1)+`\n`,s.map=[n,t.line],!0},\"code\"),PJ=E(function(t,n,r,i){var o,s,l,c,f,h,g,m=!1,y=t.bMarks[n]+t.tShift[n],S=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||y+3>S||(o=t.src.charCodeAt(y),o!==126&&o!==96)||(f=y,y=t.skipChars(y,o),s=y-f,s<3)||(g=t.src.slice(f,y),l=t.src.slice(y,S),o===96&&l.indexOf(String.fromCharCode(o))>=0))return!1;if(i)return!0;for(c=n;c++,!(c>=r||(y=f=t.bMarks[c]+t.tShift[c],S=t.eMarks[c],y<S&&t.sCount[c]<t.blkIndent));)if(t.src.charCodeAt(y)===o&&!(t.sCount[c]-t.blkIndent>=4)&&(y=t.skipChars(y,o),!(y-f<s)&&(y=t.skipSpaces(y),!(y<S)))){m=!0;break}return s=t.sCount[n],t.line=c+(m?1:0),h=t.push(\"fence\",\"code\",0),h.info=l,h.content=t.getLines(n+1,c,s,!0),h.markup=g,h.map=[n,t.line],!0},\"fence\"),fM=Pt.isSpace,MJ=E(function(t,n,r,i){var o,s,l,c,f,h,g,m,y,S,x,D,_,b,C,T,N,F,L,A,P=t.lineMax,V=t.bMarks[n]+t.tShift[n],H=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||t.src.charCodeAt(V++)!==62)return!1;if(i)return!0;for(c=y=t.sCount[n]+1,t.src.charCodeAt(V)===32?(V++,c++,y++,o=!1,T=!0):t.src.charCodeAt(V)===9?(T=!0,(t.bsCount[n]+y)%4===3?(V++,c++,y++,o=!1):o=!0):T=!1,S=[t.bMarks[n]],t.bMarks[n]=V;V<H&&(s=t.src.charCodeAt(V),fM(s));){s===9?y+=4-(y+t.bsCount[n]+(o?1:0))%4:y++;V++}for(x=[t.bsCount[n]],t.bsCount[n]=t.sCount[n]+1+(T?1:0),h=V>=H,b=[t.sCount[n]],t.sCount[n]=y-c,C=[t.tShift[n]],t.tShift[n]=V-t.bMarks[n],F=t.md.block.ruler.getRules(\"blockquote\"),_=t.parentType,t.parentType=\"blockquote\",m=n+1;m<r&&(A=t.sCount[m]<t.blkIndent,V=t.bMarks[m]+t.tShift[m],H=t.eMarks[m],!(V>=H));m++){if(t.src.charCodeAt(V++)===62&&!A){for(c=y=t.sCount[m]+1,t.src.charCodeAt(V)===32?(V++,c++,y++,o=!1,T=!0):t.src.charCodeAt(V)===9?(T=!0,(t.bsCount[m]+y)%4===3?(V++,c++,y++,o=!1):o=!0):T=!1,S.push(t.bMarks[m]),t.bMarks[m]=V;V<H&&(s=t.src.charCodeAt(V),fM(s));){s===9?y+=4-(y+t.bsCount[m]+(o?1:0))%4:y++;V++}h=V>=H,x.push(t.bsCount[m]),t.bsCount[m]=t.sCount[m]+1+(T?1:0),b.push(t.sCount[m]),t.sCount[m]=y-c,C.push(t.tShift[m]),t.tShift[m]=V-t.bMarks[m];continue}if(h)break;for(N=!1,l=0,f=F.length;l<f;l++)if(F[l](t,m,r,!0)){N=!0;break}if(N){t.lineMax=m,t.blkIndent!==0&&(S.push(t.bMarks[m]),x.push(t.bsCount[m]),C.push(t.tShift[m]),b.push(t.sCount[m]),t.sCount[m]-=t.blkIndent);break}S.push(t.bMarks[m]),x.push(t.bsCount[m]),C.push(t.tShift[m]),b.push(t.sCount[m]),t.sCount[m]=-1}for(D=t.blkIndent,t.blkIndent=0,L=t.push(\"blockquote_open\",\"blockquote\",1),L.markup=\">\",L.map=g=[n,0],t.md.block.tokenize(t,n,m),L=t.push(\"blockquote_close\",\"blockquote\",-1),L.markup=\">\",t.lineMax=P,t.parentType=_,g[1]=t.line,l=0;l<C.length;l++)t.bMarks[l+n]=S[l],t.tShift[l+n]=C[l],t.sCount[l+n]=b[l],t.bsCount[l+n]=x[l];return t.blkIndent=D,!0},\"blockquote\"),$J=Pt.isSpace,VJ=E(function(t,n,r,i){var o,s,l,c,f=t.bMarks[n]+t.tShift[n],h=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||(o=t.src.charCodeAt(f++),o!==42&&o!==45&&o!==95))return!1;for(s=1;f<h;){if(l=t.src.charCodeAt(f++),l!==o&&!$J(l))return!1;l===o&&s++}return s<3?!1:(i||(t.line=n+1,c=t.push(\"hr\",\"hr\",0),c.map=[n,t.line],c.markup=Array(s+1).join(String.fromCharCode(o))),!0)},\"hr\"),dM=Pt.isSpace;function gC(e,t){var n,r,i,o;return r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],n=e.src.charCodeAt(r++),n!==42&&n!==45&&n!==43||r<i&&(o=e.src.charCodeAt(r),!dM(o))?-1:r}E(gC,\"skipBulletListMarker\");function yC(e,t){var n,r=e.bMarks[t]+e.tShift[t],i=r,o=e.eMarks[t];if(i+1>=o||(n=e.src.charCodeAt(i++),n<48||n>57))return-1;for(;;){if(i>=o)return-1;if(n=e.src.charCodeAt(i++),n>=48&&n<=57){if(i-r>=10)return-1;continue}if(n===41||n===46)break;return-1}return i<o&&(n=e.src.charCodeAt(i),!dM(n))?-1:i}E(yC,\"skipOrderedListMarker\");function pM(e,t){var n,r,i=e.level+2;for(n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===i&&e.tokens[n].type===\"paragraph_open\"&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}E(pM,\"markTightParagraphs\");var BJ=E(function(t,n,r,i){var o,s,l,c,f,h,g,m,y,S,x,D,_,b,C,T,N,F,L,A,P,V,H,G,z,U,j,X,ne=!1,J=!0;if(t.sCount[n]-t.blkIndent>=4||t.listIndent>=0&&t.sCount[n]-t.listIndent>=4&&t.sCount[n]<t.blkIndent)return!1;if(i&&t.parentType===\"paragraph\"&&t.tShift[n]>=t.blkIndent&&(ne=!0),(H=yC(t,n))>=0){if(g=!0,z=t.bMarks[n]+t.tShift[n],_=Number(t.src.slice(z,H-1)),ne&&_!==1)return!1}else if((H=gC(t,n))>=0)g=!1;else return!1;if(ne&&t.skipSpaces(H)>=t.eMarks[n])return!1;if(D=t.src.charCodeAt(H-1),i)return!0;for(x=t.tokens.length,g?(X=t.push(\"ordered_list_open\",\"ol\",1),_!==1&&(X.attrs=[[\"start\",_]])):X=t.push(\"bullet_list_open\",\"ul\",1),X.map=S=[n,0],X.markup=String.fromCharCode(D),C=n,G=!1,j=t.md.block.ruler.getRules(\"list\"),F=t.parentType,t.parentType=\"list\";C<r;){for(V=H,b=t.eMarks[C],h=T=t.sCount[C]+H-(t.bMarks[n]+t.tShift[n]);V<b;){if(o=t.src.charCodeAt(V),o===9)T+=4-(T+t.bsCount[C])%4;else if(o===32)T++;else break;V++}if(s=V,s>=b?f=1:f=T-h,f>4&&(f=1),c=h+f,X=t.push(\"list_item_open\",\"li\",1),X.markup=String.fromCharCode(D),X.map=m=[n,0],g&&(X.info=t.src.slice(z,H-1)),P=t.tight,A=t.tShift[n],L=t.sCount[n],N=t.listIndent,t.listIndent=t.blkIndent,t.blkIndent=c,t.tight=!0,t.tShift[n]=s-t.bMarks[n],t.sCount[n]=T,s>=b&&t.isEmpty(n+1)?t.line=Math.min(t.line+2,r):t.md.block.tokenize(t,n,r,!0),(!t.tight||G)&&(J=!1),G=t.line-n>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=N,t.tShift[n]=A,t.sCount[n]=L,t.tight=P,X=t.push(\"list_item_close\",\"li\",-1),X.markup=String.fromCharCode(D),C=n=t.line,m[1]=C,s=t.bMarks[n],C>=r||t.sCount[C]<t.blkIndent||t.sCount[n]-t.blkIndent>=4)break;for(U=!1,l=0,y=j.length;l<y;l++)if(j[l](t,C,r,!0)){U=!0;break}if(U)break;if(g){if(H=yC(t,C),H<0)break;z=t.bMarks[C]+t.tShift[C]}else if(H=gC(t,C),H<0)break;if(D!==t.src.charCodeAt(H-1))break}return g?X=t.push(\"ordered_list_close\",\"ol\",-1):X=t.push(\"bullet_list_close\",\"ul\",-1),X.markup=String.fromCharCode(D),S[1]=C,t.line=C,t.parentType=F,J&&pM(t,x),!0},\"list\"),jJ=Pt.normalizeReference,T0=Pt.isSpace,UJ=E(function(t,n,r,i){var o,s,l,c,f,h,g,m,y,S,x,D,_,b,C,T,N=0,F=t.bMarks[n]+t.tShift[n],L=t.eMarks[n],A=n+1;if(t.sCount[n]-t.blkIndent>=4||t.src.charCodeAt(F)!==91)return!1;for(;++F<L;)if(t.src.charCodeAt(F)===93&&t.src.charCodeAt(F-1)!==92){if(F+1===L||t.src.charCodeAt(F+1)!==58)return!1;break}for(c=t.lineMax,C=t.md.block.ruler.getRules(\"reference\"),S=t.parentType,t.parentType=\"reference\";A<c&&!t.isEmpty(A);A++)if(!(t.sCount[A]-t.blkIndent>3)&&!(t.sCount[A]<0)){for(b=!1,h=0,g=C.length;h<g;h++)if(C[h](t,A,c,!0)){b=!0;break}if(b)break}for(_=t.getLines(n,A,t.blkIndent,!1).trim(),L=_.length,F=1;F<L;F++){if(o=_.charCodeAt(F),o===91)return!1;if(o===93){y=F;break}else o===10?N++:o===92&&(F++,F<L&&_.charCodeAt(F)===10&&N++)}if(y<0||_.charCodeAt(y+1)!==58)return!1;for(F=y+2;F<L;F++)if(o=_.charCodeAt(F),o===10)N++;else if(!T0(o))break;if(x=t.md.helpers.parseLinkDestination(_,F,L),!x.ok||(f=t.md.normalizeLink(x.str),!t.md.validateLink(f)))return!1;for(F=x.pos,N+=x.lines,s=F,l=N,D=F;F<L;F++)if(o=_.charCodeAt(F),o===10)N++;else if(!T0(o))break;for(x=t.md.helpers.parseLinkTitle(_,F,L),F<L&&D!==F&&x.ok?(T=x.str,F=x.pos,N+=x.lines):(T=\"\",F=s,N=l);F<L&&(o=_.charCodeAt(F),!!T0(o));)F++;if(F<L&&_.charCodeAt(F)!==10&&T)for(T=\"\",F=s,N=l;F<L&&(o=_.charCodeAt(F),!!T0(o));)F++;return F<L&&_.charCodeAt(F)!==10||(m=jJ(_.slice(1,y)),!m)?!1:(i||(typeof t.env.references>\"u\"&&(t.env.references={}),typeof t.env.references[m]>\"u\"&&(t.env.references[m]={title:T,href:f}),t.parentType=S,t.line=n+N+1),!0)},\"reference\"),qJ=[\"address\",\"article\",\"aside\",\"base\",\"basefont\",\"blockquote\",\"body\",\"caption\",\"center\",\"col\",\"colgroup\",\"dd\",\"details\",\"dialog\",\"dir\",\"div\",\"dl\",\"dt\",\"fieldset\",\"figcaption\",\"figure\",\"footer\",\"form\",\"frame\",\"frameset\",\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\",\"head\",\"header\",\"hr\",\"html\",\"iframe\",\"legend\",\"li\",\"link\",\"main\",\"menu\",\"menuitem\",\"nav\",\"noframes\",\"ol\",\"optgroup\",\"option\",\"p\",\"param\",\"section\",\"source\",\"summary\",\"table\",\"tbody\",\"td\",\"tfoot\",\"th\",\"thead\",\"title\",\"tr\",\"track\",\"ul\"],_0={},HJ=\"[a-zA-Z_:][a-zA-Z0-9:._-]*\",zJ=\"[^\\\"'=<>`\\\\x00-\\\\x20]+\",GJ=\"'[^']*'\",WJ='\"[^\"]*\"',QJ=\"(?:\"+zJ+\"|\"+GJ+\"|\"+WJ+\")\",YJ=\"(?:\\\\s+\"+HJ+\"(?:\\\\s*=\\\\s*\"+QJ+\")?)\",hM=\"<[A-Za-z][A-Za-z0-9\\\\-]*\"+YJ+\"*\\\\s*\\\\/?>\",vM=\"<\\\\/[A-Za-z][A-Za-z0-9\\\\-]*\\\\s*>\",JJ=\"<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->\",KJ=\"<[?][\\\\s\\\\S]*?[?]>\",XJ=\"<![A-Z]+\\\\s+[^>]*>\",ZJ=\"<!\\\\[CDATA\\\\[[\\\\s\\\\S]*?\\\\]\\\\]>\",eK=new RegExp(\"^(?:\"+hM+\"|\"+vM+\"|\"+JJ+\"|\"+KJ+\"|\"+XJ+\"|\"+ZJ+\")\"),tK=new RegExp(\"^(?:\"+hM+\"|\"+vM+\")\");_0.HTML_TAG_RE=eK,_0.HTML_OPEN_CLOSE_TAG_RE=tK;var nK=qJ,rK=_0.HTML_OPEN_CLOSE_TAG_RE,Of=[[/^<(script|pre|style|textarea)(?=(\\s|>|$))/i,/<\\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\\?/,/\\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\\[CDATA\\[/,/\\]\\]>/,!0],[new RegExp(\"^</?(\"+nK.join(\"|\")+\")(?=(\\\\s|/?>|$))\",\"i\"),/^$/,!0],[new RegExp(rK.source+\"\\\\s*$\"),/^$/,!1]],iK=E(function(t,n,r,i){var o,s,l,c,f=t.bMarks[n]+t.tShift[n],h=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||!t.md.options.html||t.src.charCodeAt(f)!==60)return!1;for(c=t.src.slice(f,h),o=0;o<Of.length&&!Of[o][0].test(c);o++);if(o===Of.length)return!1;if(i)return Of[o][2];if(s=n+1,!Of[o][1].test(c)){for(;s<r&&!(t.sCount[s]<t.blkIndent);s++)if(f=t.bMarks[s]+t.tShift[s],h=t.eMarks[s],c=t.src.slice(f,h),Of[o][1].test(c)){c.length!==0&&s++;break}}return t.line=s,l=t.push(\"html_block\",\"\",0),l.map=[n,s],l.content=t.getLines(n,s,t.blkIndent,!0),!0},\"html_block\"),mM=Pt.isSpace,oK=E(function(t,n,r,i){var o,s,l,c,f=t.bMarks[n]+t.tShift[n],h=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||(o=t.src.charCodeAt(f),o!==35||f>=h))return!1;for(s=1,o=t.src.charCodeAt(++f);o===35&&f<h&&s<=6;)s++,o=t.src.charCodeAt(++f);return s>6||f<h&&!mM(o)?!1:(i||(h=t.skipSpacesBack(h,f),l=t.skipCharsBack(h,35,f),l>f&&mM(t.src.charCodeAt(l-1))&&(h=l),t.line=n+1,c=t.push(\"heading_open\",\"h\"+String(s),1),c.markup=\"########\".slice(0,s),c.map=[n,t.line],c=t.push(\"inline\",\"\",0),c.content=t.src.slice(f,h).trim(),c.map=[n,t.line],c.children=[],c=t.push(\"heading_close\",\"h\"+String(s),-1),c.markup=\"########\".slice(0,s)),!0)},\"heading\"),aK=E(function(t,n,r){var i,o,s,l,c,f,h,g,m,y=n+1,S,x=t.md.block.ruler.getRules(\"paragraph\");if(t.sCount[n]-t.blkIndent>=4)return!1;for(S=t.parentType,t.parentType=\"paragraph\";y<r&&!t.isEmpty(y);y++)if(!(t.sCount[y]-t.blkIndent>3)){if(t.sCount[y]>=t.blkIndent&&(f=t.bMarks[y]+t.tShift[y],h=t.eMarks[y],f<h&&(m=t.src.charCodeAt(f),(m===45||m===61)&&(f=t.skipChars(f,m),f=t.skipSpaces(f),f>=h)))){g=m===61?1:2;break}if(!(t.sCount[y]<0)){for(o=!1,s=0,l=x.length;s<l;s++)if(x[s](t,y,r,!0)){o=!0;break}if(o)break}}return g?(i=t.getLines(n,y,t.blkIndent,!1).trim(),t.line=y+1,c=t.push(\"heading_open\",\"h\"+String(g),1),c.markup=String.fromCharCode(m),c.map=[n,t.line],c=t.push(\"inline\",\"\",0),c.content=i,c.map=[n,t.line-1],c.children=[],c=t.push(\"heading_close\",\"h\"+String(g),-1),c.markup=String.fromCharCode(m),t.parentType=S,!0):!1},\"lheading\"),sK=E(function(t,n){var r,i,o,s,l,c,f=n+1,h=t.md.block.ruler.getRules(\"paragraph\"),g=t.lineMax;for(c=t.parentType,t.parentType=\"paragraph\";f<g&&!t.isEmpty(f);f++)if(!(t.sCount[f]-t.blkIndent>3)&&!(t.sCount[f]<0)){for(i=!1,o=0,s=h.length;o<s;o++)if(h[o](t,f,g,!0)){i=!0;break}if(i)break}return r=t.getLines(n,f,t.blkIndent,!1).trim(),t.line=f,l=t.push(\"paragraph_open\",\"p\",1),l.map=[n,t.line],l=t.push(\"inline\",\"\",0),l.content=r,l.map=[n,t.line],l.children=[],l=t.push(\"paragraph_close\",\"p\",-1),t.parentType=c,!0},\"paragraph\"),gM=dC,C0=Pt.isSpace;function sa(e,t,n,r){var i,o,s,l,c,f,h,g;for(this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType=\"root\",this.level=0,this.result=\"\",o=this.src,g=!1,s=l=f=h=0,c=o.length;l<c;l++){if(i=o.charCodeAt(l),!g)if(C0(i)){f++,i===9?h+=4-h%4:h++;continue}else g=!0;(i===10||l===c-1)&&(i!==10&&l++,this.bMarks.push(s),this.eMarks.push(l),this.tShift.push(f),this.sCount.push(h),this.bsCount.push(0),g=!1,f=0,h=0,s=l+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}E(sa,\"StateBlock\"),sa.prototype.push=function(e,t,n){var r=new gM(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},sa.prototype.isEmpty=E(function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},\"isEmpty\"),sa.prototype.skipEmptyLines=E(function(t){for(var n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t},\"skipEmptyLines\"),sa.prototype.skipSpaces=E(function(t){for(var n,r=this.src.length;t<r&&(n=this.src.charCodeAt(t),!!C0(n));t++);return t},\"skipSpaces\"),sa.prototype.skipSpacesBack=E(function(t,n){if(t<=n)return t;for(;t>n;)if(!C0(this.src.charCodeAt(--t)))return t+1;return t},\"skipSpacesBack\"),sa.prototype.skipChars=E(function(t,n){for(var r=this.src.length;t<r&&this.src.charCodeAt(t)===n;t++);return t},\"skipChars\"),sa.prototype.skipCharsBack=E(function(t,n,r){if(t<=r)return t;for(;t>r;)if(n!==this.src.charCodeAt(--t))return t+1;return t},\"skipCharsBack\"),sa.prototype.getLines=E(function(t,n,r,i){var o,s,l,c,f,h,g,m=t;if(t>=n)return\"\";for(h=new Array(n-t),o=0;m<n;m++,o++){for(s=0,g=c=this.bMarks[m],m+1<n||i?f=this.eMarks[m]+1:f=this.eMarks[m];c<f&&s<r;){if(l=this.src.charCodeAt(c),C0(l))l===9?s+=4-(s+this.bsCount[m])%4:s++;else if(c-g<this.tShift[m])s++;else break;c++}s>r?h[o]=new Array(s-r+1).join(\" \")+this.src.slice(c,f):h[o]=this.src.slice(c,f)}return h.join(\"\")},\"getLines\"),sa.prototype.Token=gM;var lK=sa,uK=fC,x0=[[\"table\",FJ,[\"paragraph\",\"reference\"]],[\"code\",RJ],[\"fence\",PJ,[\"paragraph\",\"reference\",\"blockquote\",\"list\"]],[\"blockquote\",MJ,[\"paragraph\",\"reference\",\"blockquote\",\"list\"]],[\"hr\",VJ,[\"paragraph\",\"reference\",\"blockquote\",\"list\"]],[\"list\",BJ,[\"paragraph\",\"reference\",\"blockquote\"]],[\"reference\",UJ],[\"html_block\",iK,[\"paragraph\",\"reference\",\"blockquote\"]],[\"heading\",oK,[\"paragraph\",\"reference\",\"blockquote\"]],[\"lheading\",aK],[\"paragraph\",sK]];function Fh(){this.ruler=new uK;for(var e=0;e<x0.length;e++)this.ruler.push(x0[e][0],x0[e][1],{alt:(x0[e][2]||[]).slice()})}E(Fh,\"ParserBlock$1\"),Fh.prototype.tokenize=function(e,t,n){for(var r,i,o=this.ruler.getRules(\"\"),s=o.length,l=t,c=!1,f=e.md.options.maxNesting;l<n&&(e.line=l=e.skipEmptyLines(l),!(l>=n||e.sCount[l]<e.blkIndent));){if(e.level>=f){e.line=n;break}for(i=0;i<s&&(r=o[i](e,l,n,!1),!r);i++);e.tight=!c,e.isEmpty(e.line-1)&&(c=!0),l=e.line,l<n&&e.isEmpty(l)&&(c=!0,l++,e.line=l)}},Fh.prototype.parse=function(e,t,n,r){var i;e&&(i=new this.State(e,t,n,r),this.tokenize(i,i.line,i.lineMax))},Fh.prototype.State=lK;var cK=Fh;function yM(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}E(yM,\"isTerminatorChar\");for(var fK=E(function(t,n){for(var r=t.pos;r<t.posMax&&!yM(t.src.charCodeAt(r));)r++;return r===t.pos?!1:(n||(t.pending+=t.src.slice(t.pos,r)),t.pos=r,!0)},\"text\"),dK=Pt.isSpace,pK=E(function(t,n){var r,i,o=t.pos;if(t.src.charCodeAt(o)!==10)return!1;for(r=t.pending.length-1,i=t.posMax,n||(r>=0&&t.pending.charCodeAt(r)===32?r>=1&&t.pending.charCodeAt(r-1)===32?(t.pending=t.pending.replace(/ +$/,\"\"),t.push(\"hardbreak\",\"br\",0)):(t.pending=t.pending.slice(0,-1),t.push(\"softbreak\",\"br\",0)):t.push(\"softbreak\",\"br\",0)),o++;o<i&&dK(t.src.charCodeAt(o));)o++;return t.pos=o,!0},\"newline\"),hK=Pt.isSpace,bC=[],bM=0;bM<256;bM++)bC.push(0);\"\\\\!\\\"#$%&'()*+,./:;<=>?@[]^_`{|}~-\".split(\"\").forEach(function(e){bC[e.charCodeAt(0)]=1});var vK=E(function(t,n){var r,i=t.pos,o=t.posMax;if(t.src.charCodeAt(i)!==92)return!1;if(i++,i<o){if(r=t.src.charCodeAt(i),r<256&&bC[r]!==0)return n||(t.pending+=t.src[i]),t.pos+=2,!0;if(r===10){for(n||t.push(\"hardbreak\",\"br\",0),i++;i<o&&(r=t.src.charCodeAt(i),!!hK(r));)i++;return t.pos=i,!0}}return n||(t.pending+=\"\\\\\"),t.pos++,!0},\"escape\"),mK=E(function(t,n){var r,i,o,s,l,c,f,h,g=t.pos,m=t.src.charCodeAt(g);if(m!==96)return!1;for(r=g,g++,i=t.posMax;g<i&&t.src.charCodeAt(g)===96;)g++;if(o=t.src.slice(r,g),f=o.length,t.backticksScanned&&(t.backticks[f]||0)<=r)return n||(t.pending+=o),t.pos+=f,!0;for(l=c=g;(l=t.src.indexOf(\"`\",c))!==-1;){for(c=l+1;c<i&&t.src.charCodeAt(c)===96;)c++;if(h=c-l,h===f)return n||(s=t.push(\"code_inline\",\"code\",0),s.markup=o,s.content=t.src.slice(g,l).replace(/\\n/g,\" \").replace(/^ (.+) $/,\"$1\")),t.pos=c,!0;t.backticks[h]=l}return t.backticksScanned=!0,n||(t.pending+=o),t.pos+=f,!0},\"backtick\"),k0={};k0.tokenize=E(function(t,n){var r,i,o,s,l,c=t.pos,f=t.src.charCodeAt(c);if(n||f!==126||(i=t.scanDelims(t.pos,!0),s=i.length,l=String.fromCharCode(f),s<2))return!1;for(s%2&&(o=t.push(\"text\",\"\",0),o.content=l,s--),r=0;r<s;r+=2)o=t.push(\"text\",\"\",0),o.content=l+l,t.delimiters.push({marker:f,length:0,jump:r/2,token:t.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return t.pos+=i.length,!0},\"strikethrough\");function EC(e,t){var n,r,i,o,s,l=[],c=t.length;for(n=0;n<c;n++)i=t[n],i.marker===126&&i.end!==-1&&(o=t[i.end],s=e.tokens[i.token],s.type=\"s_open\",s.tag=\"s\",s.nesting=1,s.markup=\"~~\",s.content=\"\",s=e.tokens[o.token],s.type=\"s_close\",s.tag=\"s\",s.nesting=-1,s.markup=\"~~\",s.content=\"\",e.tokens[o.token-1].type===\"text\"&&e.tokens[o.token-1].content===\"~\"&&l.push(o.token-1));for(;l.length;){for(n=l.pop(),r=n+1;r<e.tokens.length&&e.tokens[r].type===\"s_close\";)r++;r--,n!==r&&(s=e.tokens[r],e.tokens[r]=e.tokens[n],e.tokens[n]=s)}}E(EC,\"postProcess$1\"),k0.postProcess=E(function(t){var n,r=t.tokens_meta,i=t.tokens_meta.length;for(EC(t,t.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&EC(t,r[n].delimiters)},\"strikethrough\");var N0={};N0.tokenize=E(function(t,n){var r,i,o,s=t.pos,l=t.src.charCodeAt(s);if(n||l!==95&&l!==42)return!1;for(i=t.scanDelims(t.pos,l===42),r=0;r<i.length;r++)o=t.push(\"text\",\"\",0),o.content=String.fromCharCode(l),t.delimiters.push({marker:l,length:i.length,jump:r,token:t.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return t.pos+=i.length,!0},\"emphasis\");function wC(e,t){var n,r,i,o,s,l,c=t.length;for(n=c-1;n>=0;n--)r=t[n],!(r.marker!==95&&r.marker!==42)&&r.end!==-1&&(i=t[r.end],l=n>0&&t[n-1].end===r.end+1&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1&&t[n-1].marker===r.marker,s=String.fromCharCode(r.marker),o=e.tokens[r.token],o.type=l?\"strong_open\":\"em_open\",o.tag=l?\"strong\":\"em\",o.nesting=1,o.markup=l?s+s:s,o.content=\"\",o=e.tokens[i.token],o.type=l?\"strong_close\":\"em_close\",o.tag=l?\"strong\":\"em\",o.nesting=-1,o.markup=l?s+s:s,o.content=\"\",l&&(e.tokens[t[n-1].token].content=\"\",e.tokens[t[r.end+1].token].content=\"\",n--))}E(wC,\"postProcess\"),N0.postProcess=E(function(t){var n,r=t.tokens_meta,i=t.tokens_meta.length;for(wC(t,t.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&wC(t,r[n].delimiters)},\"emphasis\");var gK=Pt.normalizeReference,SC=Pt.isSpace,yK=E(function(t,n){var r,i,o,s,l,c,f,h,g,m=\"\",y=\"\",S=t.pos,x=t.posMax,D=t.pos,_=!0;if(t.src.charCodeAt(t.pos)!==91||(l=t.pos+1,s=t.md.helpers.parseLinkLabel(t,t.pos,!0),s<0))return!1;if(c=s+1,c<x&&t.src.charCodeAt(c)===40){for(_=!1,c++;c<x&&(i=t.src.charCodeAt(c),!(!SC(i)&&i!==10));c++);if(c>=x)return!1;if(D=c,f=t.md.helpers.parseLinkDestination(t.src,c,t.posMax),f.ok){for(m=t.md.normalizeLink(f.str),t.md.validateLink(m)?c=f.pos:m=\"\",D=c;c<x&&(i=t.src.charCodeAt(c),!(!SC(i)&&i!==10));c++);if(f=t.md.helpers.parseLinkTitle(t.src,c,t.posMax),c<x&&D!==c&&f.ok)for(y=f.str,c=f.pos;c<x&&(i=t.src.charCodeAt(c),!(!SC(i)&&i!==10));c++);}(c>=x||t.src.charCodeAt(c)!==41)&&(_=!0),c++}if(_){if(typeof t.env.references>\"u\")return!1;if(c<x&&t.src.charCodeAt(c)===91?(D=c+1,c=t.md.helpers.parseLinkLabel(t,c),c>=0?o=t.src.slice(D,c++):c=s+1):c=s+1,o||(o=t.src.slice(l,s)),h=t.env.references[gK(o)],!h)return t.pos=S,!1;m=h.href,y=h.title}return n||(t.pos=l,t.posMax=s,g=t.push(\"link_open\",\"a\",1),g.attrs=r=[[\"href\",m]],y&&r.push([\"title\",y]),t.md.inline.tokenize(t),g=t.push(\"link_close\",\"a\",-1)),t.pos=c,t.posMax=x,!0},\"link\"),bK=Pt.normalizeReference,TC=Pt.isSpace,EK=E(function(t,n){var r,i,o,s,l,c,f,h,g,m,y,S,x,D=\"\",_=t.pos,b=t.posMax;if(t.src.charCodeAt(t.pos)!==33||t.src.charCodeAt(t.pos+1)!==91||(c=t.pos+2,l=t.md.helpers.parseLinkLabel(t,t.pos+1,!1),l<0))return!1;if(f=l+1,f<b&&t.src.charCodeAt(f)===40){for(f++;f<b&&(i=t.src.charCodeAt(f),!(!TC(i)&&i!==10));f++);if(f>=b)return!1;for(x=f,g=t.md.helpers.parseLinkDestination(t.src,f,t.posMax),g.ok&&(D=t.md.normalizeLink(g.str),t.md.validateLink(D)?f=g.pos:D=\"\"),x=f;f<b&&(i=t.src.charCodeAt(f),!(!TC(i)&&i!==10));f++);if(g=t.md.helpers.parseLinkTitle(t.src,f,t.posMax),f<b&&x!==f&&g.ok)for(m=g.str,f=g.pos;f<b&&(i=t.src.charCodeAt(f),!(!TC(i)&&i!==10));f++);else m=\"\";if(f>=b||t.src.charCodeAt(f)!==41)return t.pos=_,!1;f++}else{if(typeof t.env.references>\"u\")return!1;if(f<b&&t.src.charCodeAt(f)===91?(x=f+1,f=t.md.helpers.parseLinkLabel(t,f),f>=0?s=t.src.slice(x,f++):f=l+1):f=l+1,s||(s=t.src.slice(c,l)),h=t.env.references[bK(s)],!h)return t.pos=_,!1;D=h.href,m=h.title}return n||(o=t.src.slice(c,l),t.md.inline.parse(o,t.md,t.env,S=[]),y=t.push(\"image\",\"img\",0),y.attrs=r=[[\"src\",D],[\"alt\",\"\"]],y.children=S,y.content=o,m&&r.push([\"title\",m])),t.pos=f,t.posMax=b,!0},\"image\"),wK=/^([a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,SK=/^([a-zA-Z][a-zA-Z0-9+.\\-]{1,31}):([^<>\\x00-\\x20]*)$/,TK=E(function(t,n){var r,i,o,s,l,c,f=t.pos;if(t.src.charCodeAt(f)!==60)return!1;for(l=t.pos,c=t.posMax;;){if(++f>=c||(s=t.src.charCodeAt(f),s===60))return!1;if(s===62)break}return r=t.src.slice(l+1,f),SK.test(r)?(i=t.md.normalizeLink(r),t.md.validateLink(i)?(n||(o=t.push(\"link_open\",\"a\",1),o.attrs=[[\"href\",i]],o.markup=\"autolink\",o.info=\"auto\",o=t.push(\"text\",\"\",0),o.content=t.md.normalizeLinkText(r),o=t.push(\"link_close\",\"a\",-1),o.markup=\"autolink\",o.info=\"auto\"),t.pos+=r.length+2,!0):!1):wK.test(r)?(i=t.md.normalizeLink(\"mailto:\"+r),t.md.validateLink(i)?(n||(o=t.push(\"link_open\",\"a\",1),o.attrs=[[\"href\",i]],o.markup=\"autolink\",o.info=\"auto\",o=t.push(\"text\",\"\",0),o.content=t.md.normalizeLinkText(r),o=t.push(\"link_close\",\"a\",-1),o.markup=\"autolink\",o.info=\"auto\"),t.pos+=r.length+2,!0):!1):!1},\"autolink\"),_K=_0.HTML_TAG_RE;function EM(e){var t=e|32;return t>=97&&t<=122}E(EM,\"isLetter\");var CK=E(function(t,n){var r,i,o,s,l=t.pos;return!t.md.options.html||(o=t.posMax,t.src.charCodeAt(l)!==60||l+2>=o)||(r=t.src.charCodeAt(l+1),r!==33&&r!==63&&r!==47&&!EM(r))||(i=t.src.slice(l).match(_K),!i)?!1:(n||(s=t.push(\"html_inline\",\"\",0),s.content=t.src.slice(l,l+i[0].length)),t.pos+=i[0].length,!0)},\"html_inline\"),wM=$P,xK=Pt.has,kK=Pt.isValidEntityCode,SM=Pt.fromCodePoint,NK=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,DK=/^&([a-z][a-z0-9]{1,31});/i,AK=E(function(t,n){var r,i,o,s=t.pos,l=t.posMax;if(t.src.charCodeAt(s)!==38)return!1;if(s+1<l){if(r=t.src.charCodeAt(s+1),r===35){if(o=t.src.slice(s).match(NK),o)return n||(i=o[1][0].toLowerCase()===\"x\"?parseInt(o[1].slice(1),16):parseInt(o[1],10),t.pending+=kK(i)?SM(i):SM(65533)),t.pos+=o[0].length,!0}else if(o=t.src.slice(s).match(DK),o&&xK(wM,o[1]))return n||(t.pending+=wM[o[1]]),t.pos+=o[0].length,!0}return n||(t.pending+=\"&\"),t.pos++,!0},\"entity\");function _C(e,t){var n,r,i,o,s,l,c,f,h={},g=t.length;for(n=0;n<g;n++)if(i=t[n],i.length=i.length||0,!!i.close){for(h.hasOwnProperty(i.marker)||(h[i.marker]=[-1,-1,-1,-1,-1,-1]),s=h[i.marker][(i.open?3:0)+i.length%3],r=n-i.jump-1,r<-1&&(r=-1),l=r;r>s;r-=o.jump+1)if(o=t[r],o.marker===i.marker&&o.open&&o.end<0&&(c=!1,(o.close||i.open)&&(o.length+i.length)%3===0&&(o.length%3!==0||i.length%3!==0)&&(c=!0),!c)){f=r>0&&!t[r-1].open?t[r-1].jump+1:0,i.jump=n-r+f,i.open=!1,o.end=n,o.jump=f,o.close=!1,l=-1;break}l!==-1&&(h[i.marker][(i.open?3:0)+(i.length||0)%3]=l)}}E(_C,\"processDelimiters\");var OK=E(function(t){var n,r=t.tokens_meta,i=t.tokens_meta.length;for(_C(t,t.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&_C(t,r[n].delimiters)},\"link_pairs\"),IK=E(function(t){var n,r,i=0,o=t.tokens,s=t.tokens.length;for(n=r=0;n<s;n++)o[n].nesting<0&&i--,o[n].level=i,o[n].nesting>0&&i++,o[n].type===\"text\"&&n+1<s&&o[n+1].type===\"text\"?o[n+1].content=o[n].content+o[n+1].content:(n!==r&&(o[r]=o[n]),r++);n!==r&&(o.length=r)},\"text_collapse\"),CC=dC,TM=Pt.isWhiteSpace,_M=Pt.isPunctChar,CM=Pt.isMdAsciiPunct;function If(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending=\"\",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}E(If,\"StateInline\"),If.prototype.pushPending=function(){var e=new CC(\"text\",\"\",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending=\"\",e},If.prototype.push=function(e,t,n){this.pending&&this.pushPending();var r=new CC(e,t,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(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},If.prototype.scanDelims=function(e,t){var n=e,r,i,o,s,l,c,f,h,g,m=!0,y=!0,S=this.posMax,x=this.src.charCodeAt(e);for(r=e>0?this.src.charCodeAt(e-1):32;n<S&&this.src.charCodeAt(n)===x;)n++;return o=n-e,i=n<S?this.src.charCodeAt(n):32,f=CM(r)||_M(String.fromCharCode(r)),g=CM(i)||_M(String.fromCharCode(i)),c=TM(r),h=TM(i),h?m=!1:g&&(c||f||(m=!1)),c?y=!1:f&&(h||g||(y=!1)),t?(s=m,l=y):(s=m&&(!y||f),l=y&&(!m||g)),{can_open:s,can_close:l,length:o}},If.prototype.Token=CC;var LK=If,xM=fC,xC=[[\"text\",fK],[\"newline\",pK],[\"escape\",vK],[\"backticks\",mK],[\"strikethrough\",k0.tokenize],[\"emphasis\",N0.tokenize],[\"link\",yK],[\"image\",EK],[\"autolink\",TK],[\"html_inline\",CK],[\"entity\",AK]],kC=[[\"balance_pairs\",OK],[\"strikethrough\",k0.postProcess],[\"emphasis\",N0.postProcess],[\"text_collapse\",IK]];function Lf(){var e;for(this.ruler=new xM,e=0;e<xC.length;e++)this.ruler.push(xC[e][0],xC[e][1]);for(this.ruler2=new xM,e=0;e<kC.length;e++)this.ruler2.push(kC[e][0],kC[e][1])}E(Lf,\"ParserInline$1\"),Lf.prototype.skipToken=function(e){var t,n,r=e.pos,i=this.ruler.getRules(\"\"),o=i.length,s=e.md.options.maxNesting,l=e.cache;if(typeof l[r]<\"u\"){e.pos=l[r];return}if(e.level<s)for(n=0;n<o&&(e.level++,t=i[n](e,!0),e.level--,!t);n++);else e.pos=e.posMax;t||e.pos++,l[r]=e.pos},Lf.prototype.tokenize=function(e){for(var t,n,r=this.ruler.getRules(\"\"),i=r.length,o=e.posMax,s=e.md.options.maxNesting;e.pos<o;){if(e.level<s)for(n=0;n<i&&(t=r[n](e,!1),!t);n++);if(t){if(e.pos>=o)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},Lf.prototype.parse=function(e,t,n,r){var i,o,s,l=new this.State(e,t,n,r);for(this.tokenize(l),o=this.ruler2.getRules(\"\"),s=o.length,i=0;i<s;i++)o[i](l)},Lf.prototype.State=LK;var FK=Lf,RK=E(function(e){var t={};t.src_Any=YP.source,t.src_Cc=JP.source,t.src_Z=KP.source,t.src_P=cC.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join(\"|\"),t.src_ZCc=[t.src_Z,t.src_Cc].join(\"|\");var n=\"[><|]\";return t.src_pseudo_letter=\"(?:(?!\"+n+\"|\"+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=\"(?=$|\"+n+\"|\"+t.src_ZPCc+\")(?!-|_|:\\\\d|\\\\.-|\\\\.(?!$|\"+t.src_ZPCc+\"))\",t.src_path=\"(?:[/?#](?:(?!\"+t.src_ZCc+\"|\"+n+`|[()[\\\\]{}.,\"'?!\\\\-;]).|\\\\[(?:(?!`+t.src_ZCc+\"|\\\\]).)*\\\\]|\\\\((?:(?!\"+t.src_ZCc+\"|[)]).)*\\\\)|\\\\{(?:(?!\"+t.src_ZCc+'|[}]).)*\\\\}|\\\\\"(?:(?!'+t.src_ZCc+`|[\"]).)+\\\\\"|\\\\'(?:(?!`+t.src_ZCc+\"|[']).)+\\\\'|\\\\'(?=\"+t.src_pseudo_letter+\"|[-]).|\\\\.{2,}[a-zA-Z0-9%/&]|\\\\.(?!\"+t.src_ZCc+\"|[.]).|\"+(e&&e[\"---\"]?\"\\\\-(?!--(?:[^-]|$))(?:-*)|\":\"\\\\-+|\")+\",(?!\"+t.src_ZCc+\").|;(?!\"+t.src_ZCc+\").|\\\\!+(?!\"+t.src_ZCc+\"|[!]).|\\\\?(?!\"+t.src_ZCc+\"|[?]).)+|\\\\/)?\",t.src_email_name='[\\\\-;:&=\\\\+\\\\$,\\\\.a-zA-Z0-9_][\\\\-;:&=\\\\+\\\\$,\\\\\"\\\\.a-zA-Z0-9_]*',t.src_xn=\"xn--[a-z0-9\\\\-]{1,59}\",t.src_domain_root=\"(?:\"+t.src_xn+\"|\"+t.src_pseudo_letter+\"{1,63})\",t.src_domain=\"(?:\"+t.src_xn+\"|(?:\"+t.src_pseudo_letter+\")|(?:\"+t.src_pseudo_letter+\"(?:-|\"+t.src_pseudo_letter+\"){0,61}\"+t.src_pseudo_letter+\"))\",t.src_host=\"(?:(?:(?:(?:\"+t.src_domain+\")\\\\.)*\"+t.src_domain+\"))\",t.tpl_host_fuzzy=\"(?:\"+t.src_ip4+\"|(?:(?:(?:\"+t.src_domain+\")\\\\.)+(?:%TLDS%)))\",t.tpl_host_no_ip_fuzzy=\"(?:(?:(?:\"+t.src_domain+\")\\\\.)+(?:%TLDS%))\",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test=\"localhost|www\\\\.|\\\\.\\\\d{1,3}\\\\.|(?:\\\\.(?:%TLDS%)(?:\"+t.src_ZPCc+\"|>|$))\",t.tpl_email_fuzzy=\"(^|\"+n+'|\"|\\\\(|'+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},\"re\");function D0(e){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(n){n&&Object.keys(n).forEach(function(r){e[r]=n[r]})}),e}E(D0,\"assign\");function Rh(e){return Object.prototype.toString.call(e)}E(Rh,\"_class\");function kM(e){return Rh(e)===\"[object String]\"}E(kM,\"isString\");function NM(e){return Rh(e)===\"[object Object]\"}E(NM,\"isObject\");function DM(e){return Rh(e)===\"[object RegExp]\"}E(DM,\"isRegExp\");function NC(e){return Rh(e)===\"[object Function]\"}E(NC,\"isFunction\");function AM(e){return e.replace(/[.?*+^$[\\]\\\\(){}|-]/g,\"\\\\$&\")}E(AM,\"escapeRE\");var OM={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function IM(e){return Object.keys(e||{}).reduce(function(t,n){return t||OM.hasOwnProperty(n)},!1)}E(IM,\"isOptionsObj\");var PK={\"http:\":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp(\"^\\\\/\\\\/\"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,\"i\")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},\"https:\":\"http:\",\"ftp:\":\"http:\",\"//\":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp(\"^\"+n.re.src_auth+\"(?:localhost|(?:(?:\"+n.re.src_domain+\")\\\\.)+\"+n.re.src_domain_root+\")\"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,\"i\")),n.re.no_http.test(r)?t>=3&&e[t-3]===\":\"||t>=3&&e[t-3]===\"/\"?0:r.match(n.re.no_http)[0].length:0}},\"mailto:\":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp(\"^\"+n.re.src_email_name+\"@\"+n.re.src_host_strict,\"i\")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},MK=\"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]\",$K=\"biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф\".split(\"|\");function LM(e){e.__index__=-1,e.__text_cache__=\"\"}E(LM,\"resetScanCache\");function FM(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}E(FM,\"createValidator\");function DC(){return function(e,t){t.normalize(e)}}E(DC,\"createNormalizer\");function Ph(e){var t=e.re=RK(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(MK),n.push(t.src_xn),t.src_tlds=n.join(\"|\");function r(l){return l.replace(\"%TLDS%\",t.src_tlds)}E(r,\"untpl\"),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\");var i=[];e.__compiled__={};function o(l,c){throw new Error('(LinkifyIt) Invalid schema \"'+l+'\": '+c)}E(o,\"schemaError\"),Object.keys(e.__schemas__).forEach(function(l){var c=e.__schemas__[l];if(c!==null){var f={validate:null,link:null};if(e.__compiled__[l]=f,NM(c)){DM(c.validate)?f.validate=FM(c.validate):NC(c.validate)?f.validate=c.validate:o(l,c),NC(c.normalize)?f.normalize=c.normalize:c.normalize?o(l,c):f.normalize=DC();return}if(kM(c)){i.push(l);return}o(l,c)}}),i.forEach(function(l){e.__compiled__[e.__schemas__[l]]&&(e.__compiled__[l].validate=e.__compiled__[e.__schemas__[l]].validate,e.__compiled__[l].normalize=e.__compiled__[e.__schemas__[l]].normalize)}),e.__compiled__[\"\"]={validate:null,normalize:DC()};var s=Object.keys(e.__compiled__).filter(function(l){return l.length>0&&e.__compiled__[l]}).map(AM).join(\"|\");e.re.schema_test=RegExp(\"(^|(?!_)(?:[><|]|\"+t.src_ZPCc+\"))(\"+s+\")\",\"i\"),e.re.schema_search=RegExp(\"(^|(?!_)(?:[><|]|\"+t.src_ZPCc+\"))(\"+s+\")\",\"ig\"),e.re.pretest=RegExp(\"(\"+e.re.schema_test.source+\")|(\"+e.re.host_fuzzy_test.source+\")|@\",\"i\"),LM(e)}E(Ph,\"compile\");function RM(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}E(RM,\"Match\");function AC(e,t){var n=new RM(e,t);return e.__compiled__[n.schema].normalize(n,e),n}E(AC,\"createMatch\");function Zi(e,t){if(!(this instanceof Zi))return new Zi(e,t);t||IM(e)&&(t=e,e={}),this.__opts__=D0({},OM,t),this.__index__=-1,this.__last_index__=-1,this.__schema__=\"\",this.__text_cache__=\"\",this.__schemas__=D0({},PK,e),this.__compiled__={},this.__tlds__=$K,this.__tlds_replaced__=!1,this.re={},Ph(this)}E(Zi,\"LinkifyIt$1\"),Zi.prototype.add=E(function(t,n){return this.__schemas__[t]=n,Ph(this),this},\"add\"),Zi.prototype.set=E(function(t){return this.__opts__=D0(this.__opts__,t),this},\"set\"),Zi.prototype.test=E(function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;var n,r,i,o,s,l,c,f,h;if(this.re.schema_test.test(t)){for(c=this.re.schema_search,c.lastIndex=0;(n=c.exec(t))!==null;)if(o=this.testSchemaAt(t,n[2],c.lastIndex),o){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o;break}}return this.__opts__.fuzzyLink&&this.__compiled__[\"http:\"]&&(f=t.search(this.re.host_fuzzy_test),f>=0&&(this.__index__<0||f<this.__index__)&&(r=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(s=r.index+r[1].length,(this.__index__<0||s<this.__index__)&&(this.__schema__=\"\",this.__index__=s,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__[\"mailto:\"]&&(h=t.indexOf(\"@\"),h>=0&&(i=t.match(this.re.email_fuzzy))!==null&&(s=i.index+i[1].length,l=i.index+i[0].length,(this.__index__<0||s<this.__index__||s===this.__index__&&l>this.__last_index__)&&(this.__schema__=\"mailto:\",this.__index__=s,this.__last_index__=l))),this.__index__>=0},\"test\"),Zi.prototype.pretest=E(function(t){return this.re.pretest.test(t)},\"pretest\"),Zi.prototype.testSchemaAt=E(function(t,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,r,this):0},\"testSchemaAt\"),Zi.prototype.match=E(function(t){var n=0,r=[];this.__index__>=0&&this.__text_cache__===t&&(r.push(AC(this,n)),n=this.__last_index__);for(var i=n?t.slice(n):t;this.test(i);)r.push(AC(this,n)),i=i.slice(this.__last_index__),n+=this.__last_index__;return r.length?r:null},\"match\"),Zi.prototype.tlds=E(function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(r,i,o){return r!==o[i-1]}).reverse(),Ph(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Ph(this),this)},\"tlds\"),Zi.prototype.normalize=E(function(t){t.schema||(t.url=\"http://\"+t.url),t.schema===\"mailto:\"&&!/^mailto:/i.test(t.url)&&(t.url=\"mailto:\"+t.url)},\"normalize\"),Zi.prototype.onCompile=E(function(){},\"onCompile\");var VK=Zi;const Ff=2147483647,Pa=36,OC=1,Mh=26,BK=38,jK=700,PM=72,MM=128,$M=\"-\",UK=/^xn--/,qK=/[^\\0-\\x7E]/,HK=/[\\x2E\\u3002\\uFF0E\\uFF61]/g,zK={overflow:\"Overflow: input needs wider integers to process\",\"not-basic\":\"Illegal input >= 0x80 (not a basic code point)\",\"invalid-input\":\"Invalid input\"},IC=Pa-OC,Ma=Math.floor,LC=String.fromCharCode;function Ll(e){throw new RangeError(zK[e])}E(Ll,\"error\");function VM(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}E(VM,\"map\");function FC(e,t){const n=e.split(\"@\");let r=\"\";n.length>1&&(r=n[0]+\"@\",e=n[1]),e=e.replace(HK,\".\");const i=e.split(\".\"),o=VM(i,t).join(\".\");return r+o}E(FC,\"mapDomain\");function A0(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const o=e.charCodeAt(n++);(o&64512)==56320?t.push(((i&1023)<<10)+(o&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}E(A0,\"ucs2decode\");const BM=E(e=>String.fromCodePoint(...e),\"ucs2encode\"),GK=E(function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:Pa},\"basicToDigit\"),jM=E(function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},\"digitToBasic\"),UM=E(function(e,t,n){let r=0;for(e=n?Ma(e/jK):e>>1,e+=Ma(e/t);e>IC*Mh>>1;r+=Pa)e=Ma(e/IC);return Ma(r+(IC+1)*e/(e+BK))},\"adapt\"),RC=E(function(e){const t=[],n=e.length;let r=0,i=MM,o=PM,s=e.lastIndexOf($M);s<0&&(s=0);for(let l=0;l<s;++l)e.charCodeAt(l)>=128&&Ll(\"not-basic\"),t.push(e.charCodeAt(l));for(let l=s>0?s+1:0;l<n;){let c=r;for(let h=1,g=Pa;;g+=Pa){l>=n&&Ll(\"invalid-input\");const m=GK(e.charCodeAt(l++));(m>=Pa||m>Ma((Ff-r)/h))&&Ll(\"overflow\"),r+=m*h;const y=g<=o?OC:g>=o+Mh?Mh:g-o;if(m<y)break;const S=Pa-y;h>Ma(Ff/S)&&Ll(\"overflow\"),h*=S}const f=t.length+1;o=UM(r-c,f,c==0),Ma(r/f)>Ff-i&&Ll(\"overflow\"),i+=Ma(r/f),r%=f,t.splice(r++,0,i)}return String.fromCodePoint(...t)},\"decode\"),PC=E(function(e){const t=[];e=A0(e);let n=e.length,r=MM,i=0,o=PM;for(const c of e)c<128&&t.push(LC(c));let s=t.length,l=s;for(s&&t.push($M);l<n;){let c=Ff;for(const h of e)h>=r&&h<c&&(c=h);const f=l+1;c-r>Ma((Ff-i)/f)&&Ll(\"overflow\"),i+=(c-r)*f,r=c;for(const h of e)if(h<r&&++i>Ff&&Ll(\"overflow\"),h==r){let g=i;for(let m=Pa;;m+=Pa){const y=m<=o?OC:m>=o+Mh?Mh:m-o;if(g<y)break;const S=g-y,x=Pa-y;t.push(LC(jM(y+S%x,0))),g=Ma(S/x)}t.push(LC(jM(g,0))),o=UM(i,f,l==s),i=0,++l}++i,++r}return t.join(\"\")},\"encode\"),qM=E(function(e){return FC(e,function(t){return UK.test(t)?RC(t.slice(4).toLowerCase()):t})},\"toUnicode\"),HM=E(function(e){return FC(e,function(t){return qK.test(t)?\"xn--\"+PC(t):t})},\"toASCII\");var WK=Object.freeze(Object.defineProperty({__proto__:null,ucs2decode:A0,ucs2encode:BM,decode:RC,encode:PC,toASCII:HM,toUnicode:qM,default:{version:\"2.1.0\",ucs2:{decode:A0,encode:BM},decode:RC,encode:PC,toASCII:HM,toUnicode:qM}},Symbol.toStringTag,{value:\"Module\"})),QK=zF(WK),YK={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:\"language-\",linkify:!1,typographer:!1,quotes:\"“”‘’\",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},JK={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:\"language-\",linkify:!1,typographer:!1,quotes:\"“”‘’\",highlight:null,maxNesting:20},components:{core:{rules:[\"normalize\",\"block\",\"inline\"]},block:{rules:[\"paragraph\"]},inline:{rules:[\"text\"],rules2:[\"balance_pairs\",\"text_collapse\"]}}},KK={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:\"language-\",linkify:!1,typographer:!1,quotes:\"“”‘’\",highlight:null,maxNesting:20},components:{core:{rules:[\"normalize\",\"block\",\"inline\"]},block:{rules:[\"blockquote\",\"code\",\"fence\",\"heading\",\"hr\",\"html_block\",\"lheading\",\"list\",\"reference\",\"paragraph\"]},inline:{rules:[\"autolink\",\"backticks\",\"emphasis\",\"entity\",\"escape\",\"html_inline\",\"image\",\"link\",\"newline\",\"text\"],rules2:[\"balance_pairs\",\"emphasis\",\"text_collapse\"]}}},$h=Pt,XK=E0,ZK=mJ,eX=LJ,tX=cK,nX=FK,rX=VK,Wu=Df,zM=QK,iX={default:YK,zero:JK,commonmark:KK},oX=/^(vbscript|javascript|file|data):/,aX=/^data:image\\/(gif|png|jpeg|webp);/;function GM(e){var t=e.trim().toLowerCase();return oX.test(t)?!!aX.test(t):!0}E(GM,\"validateLink\");var WM=[\"http:\",\"https:\",\"mailto:\"];function QM(e){var t=Wu.parse(e,!0);if(t.hostname&&(!t.protocol||WM.indexOf(t.protocol)>=0))try{t.hostname=zM.toASCII(t.hostname)}catch{}return Wu.encode(Wu.format(t))}E(QM,\"normalizeLink\");function YM(e){var t=Wu.parse(e,!0);if(t.hostname&&(!t.protocol||WM.indexOf(t.protocol)>=0))try{t.hostname=zM.toUnicode(t.hostname)}catch{}return Wu.decode(Wu.format(t),Wu.decode.defaultChars+\"%\")}E(YM,\"normalizeLinkText\");function eo(e,t){if(!(this instanceof eo))return new eo(e,t);t||$h.isString(e)||(t=e||{},e=\"default\"),this.inline=new nX,this.block=new tX,this.core=new eX,this.renderer=new ZK,this.linkify=new rX,this.validateLink=GM,this.normalizeLink=QM,this.normalizeLinkText=YM,this.utils=$h,this.helpers=$h.assign({},XK),this.options={},this.configure(e),t&&this.set(t)}E(eo,\"MarkdownIt\"),eo.prototype.set=function(e){return $h.assign(this.options,e),this},eo.prototype.configure=function(e){var t=this,n;if($h.isString(e)&&(n=e,e=iX[n],!e))throw new Error('Wrong `markdown-it` preset \"'+n+'\", 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(r){e.components[r].rules&&t[r].ruler.enableOnly(e.components[r].rules),e.components[r].rules2&&t[r].ruler2.enableOnly(e.components[r].rules2)}),this},eo.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),[\"core\",\"block\",\"inline\"].forEach(function(i){n=n.concat(this[i].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter(function(i){return n.indexOf(i)<0});if(r.length&&!t)throw new Error(\"MarkdownIt. Failed to enable unknown rule(s): \"+r);return this},eo.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),[\"core\",\"block\",\"inline\"].forEach(function(i){n=n.concat(this[i].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter(function(i){return n.indexOf(i)<0});if(r.length&&!t)throw new Error(\"MarkdownIt. Failed to disable unknown rule(s): \"+r);return this},eo.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},eo.prototype.parse=function(e,t){if(typeof e!=\"string\")throw new Error(\"Input data should be a String\");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},eo.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},eo.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},eo.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var sX=eo,lX=sX;const O0=new lX({breaks:!0,linkify:!0}),$a=O.forwardRef((e,t)=>{var n=e,{children:r,onlyShowFirstChild:i,type:o}=n,s=mt(n,[\"children\",\"onlyShowFirstChild\",\"type\"]);return ie(\"div\",Kt(Dt({},s),{ref:t,className:Jr(`graphiql-markdown-${o}`,i?\" graphiql-markdown-preview\":\"\",s.className),dangerouslySetInnerHTML:{__html:O0.render(r)}}))});$a.displayName=\"MarkdownContent\";const MC=O.forwardRef((e,t)=>ie(\"div\",Kt(Dt({},e),{ref:t,className:Jr(\"graphiql-spinner\",e.className)})));MC.displayName=\"Spinner\";function JM(e){var t,n,r=ia(e),i=r.defaultView||window;return r?{width:(t=r.documentElement.clientWidth)!=null?t:i.innerWidth,height:(n=r.documentElement.clientHeight)!=null?n:i.innerHeight}:{width:0,height:0}}E(JM,\"getDocumentDimensions\");function Ts(){return Ts=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ts.apply(this,arguments)}E(Ts,\"_extends$1\");function Vh(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}E(Vh,\"_objectWithoutPropertiesLoose$1\");var uX=[\"children\",\"label\",\"ariaLabel\",\"id\",\"DEBUG_STYLE\"],cX=[\"label\",\"ariaLabel\",\"isVisible\",\"id\"],fX=[\"ariaLabel\",\"aria-label\",\"as\",\"id\",\"isVisible\",\"label\",\"position\",\"style\",\"triggerRect\"],dX=[\"type\"],I0,Qu,_s,Bh,L0,Yu,pX=100,hX=500,Mt;(function(e){e.Idle=\"IDLE\",e.Focused=\"FOCUSED\",e.Visible=\"VISIBLE\",e.LeavingVisible=\"LEAVING_VISIBLE\",e.Dismissed=\"DISMISSED\"})(Mt||(Mt={}));var Ot;(function(e){e.Blur=\"BLUR\",e.Focus=\"FOCUS\",e.GlobalMouseMove=\"GLOBAL_MOUSE_MOVE\",e.MouseDown=\"MOUSE_DOWN\",e.MouseEnter=\"MOUSE_ENTER\",e.MouseLeave=\"MOUSE_LEAVE\",e.MouseMove=\"MOUSE_MOVE\",e.Rest=\"REST\",e.SelectWithKeyboard=\"SELECT_WITH_KEYBOARD\",e.TimeComplete=\"TIME_COMPLETE\"})(Ot||(Ot={}));var $C={initial:Mt.Idle,states:(Yu={},Yu[Mt.Idle]={enter:R0,on:(I0={},I0[Ot.MouseEnter]=Mt.Focused,I0[Ot.Focus]=Mt.Visible,I0)},Yu[Mt.Focused]={enter:ZM,leave:e4,on:(Qu={},Qu[Ot.MouseMove]=Mt.Focused,Qu[Ot.MouseLeave]=Mt.Idle,Qu[Ot.MouseDown]=Mt.Dismissed,Qu[Ot.Blur]=Mt.Idle,Qu[Ot.Rest]=Mt.Visible,Qu)},Yu[Mt.Visible]={on:(_s={},_s[Ot.Focus]=Mt.Focused,_s[Ot.MouseEnter]=Mt.Focused,_s[Ot.MouseLeave]=Mt.LeavingVisible,_s[Ot.Blur]=Mt.LeavingVisible,_s[Ot.MouseDown]=Mt.Dismissed,_s[Ot.SelectWithKeyboard]=Mt.Dismissed,_s[Ot.GlobalMouseMove]=Mt.LeavingVisible,_s)},Yu[Mt.LeavingVisible]={enter:t4,leave:E(function(){n4(),R0()},\"leave\"),on:(Bh={},Bh[Ot.MouseEnter]=Mt.Visible,Bh[Ot.Focus]=Mt.Visible,Bh[Ot.TimeComplete]=Mt.Idle,Bh)},Yu[Mt.Dismissed]={leave:E(function(){R0()},\"leave\"),on:(L0={},L0[Ot.MouseLeave]=Mt.Idle,L0[Ot.Blur]=Mt.Idle,L0)},Yu)},Co={value:$C.initial,context:{id:null}},F0=[];function KM(e){return F0.push(e),function(){F0.splice(F0.indexOf(e),1)}}E(KM,\"subscribe\");function XM(){F0.forEach(function(e){return e(Co)})}E(XM,\"notify\");var VC;function ZM(){window.clearTimeout(VC),VC=window.setTimeout(function(){xo({type:Ot.Rest})},pX)}E(ZM,\"startRestTimer\");function e4(){window.clearTimeout(VC)}E(e4,\"clearRestTimer\");var BC;function t4(){window.clearTimeout(BC),BC=window.setTimeout(function(){return xo({type:Ot.TimeComplete})},hX)}E(t4,\"startLeavingVisibleTimer\");function n4(){window.clearTimeout(BC)}E(n4,\"clearLeavingVisibleTimer\");function R0(){Co.context.id=null}E(R0,\"clearContextId\");function r4(e){var t=e===void 0?{}:e,n=t.id,r=t.onPointerEnter,i=t.onPointerMove,o=t.onPointerLeave,s=t.onPointerDown,l=t.onMouseEnter,c=t.onMouseMove,f=t.onMouseLeave,h=t.onMouseDown,g=t.onFocus,m=t.onBlur,y=t.onKeyDown,S=t.disabled,x=t.ref,D=t.DEBUG_STYLE,_=String(bh(n)),b=O.useState(D?!0:jC(_,!0)),C=b[0],T=b[1],N=O.useRef(null),F=Lr(x,N),L=Eh(N,{observe:C});O.useEffect(function(){return KM(function(){T(jC(_))})},[_]),O.useEffect(function(){var re=ia(N.current);function Z(de){(de.key===\"Escape\"||de.key===\"Esc\")&&Co.value===Mt.Visible&&xo({type:Ot.SelectWithKeyboard})}return E(Z,\"listener\"),re.addEventListener(\"keydown\",Z),function(){return re.removeEventListener(\"keydown\",Z)}},[]),o4({disabled:S,isVisible:C,ref:N});function A(re,Z){return typeof window<\"u\"&&\"PointerEvent\"in window?re:it(re,Z)}E(A,\"wrapMouseEvent\");function P(re){return E(function(de){de.pointerType===\"mouse\"&&re(de)},\"onPointerEvent\")}E(P,\"wrapPointerEventHandler\");function V(){xo({type:Ot.MouseEnter,id:_})}E(V,\"handleMouseEnter\");function H(){xo({type:Ot.MouseMove,id:_})}E(H,\"handleMouseMove\");function G(){xo({type:Ot.MouseLeave})}E(G,\"handleMouseLeave\");function z(){Co.context.id===_&&xo({type:Ot.MouseDown})}E(z,\"handleMouseDown\");function U(){window.__REACH_DISABLE_TOOLTIPS||xo({type:Ot.Focus,id:_})}E(U,\"handleFocus\");function j(){Co.context.id===_&&xo({type:Ot.Blur})}E(j,\"handleBlur\");function X(re){(re.key===\"Enter\"||re.key===\" \")&&xo({type:Ot.SelectWithKeyboard})}E(X,\"handleKeyDown\");var ne={\"aria-describedby\":C?oa(\"tooltip\",_):void 0,\"data-state\":C?\"tooltip-visible\":\"tooltip-hidden\",\"data-reach-tooltip-trigger\":\"\",ref:F,onPointerEnter:it(r,P(V)),onPointerMove:it(i,P(H)),onPointerLeave:it(o,P(G)),onPointerDown:it(s,P(z)),onMouseEnter:A(l,V),onMouseMove:A(c,H),onMouseLeave:A(f,G),onMouseDown:A(h,z),onFocus:it(g,U),onBlur:it(m,j),onKeyDown:it(y,X)},J={id:_,triggerRect:L,isVisible:C};return[ne,J,C]}E(r4,\"useTooltip\");var vi=O.forwardRef(function(e,t){var n=e.children,r=e.label,i=e.ariaLabel,o=e.id,s=e.DEBUG_STYLE,l=Vh(e,uX),c=O.Children.only(n),f=r4({id:o,onPointerEnter:c.props.onPointerEnter,onPointerMove:c.props.onPointerMove,onPointerLeave:c.props.onPointerLeave,onPointerDown:c.props.onPointerDown,onMouseEnter:c.props.onMouseEnter,onMouseMove:c.props.onMouseMove,onMouseLeave:c.props.onMouseLeave,onMouseDown:c.props.onMouseDown,onFocus:c.props.onFocus,onBlur:c.props.onBlur,onKeyDown:c.props.onKeyDown,disabled:c.props.disabled,ref:c.ref,DEBUG_STYLE:s}),h=f[0],g=f[1];return O.createElement(O.Fragment,null,O.cloneElement(c,h),O.createElement(vX,Ts({ref:t,label:r,\"aria-label\":i},g,l)))}),vX=O.forwardRef(E(function(t,n){var r=t.label,i=t.ariaLabel,o=t.isVisible,s=t.id,l=Vh(t,cX);return o?O.createElement(XT,null,O.createElement(mX,Ts({ref:n,label:r,\"aria-label\":i,isVisible:o},l,{id:oa(\"tooltip\",String(s))}))):null},\"TooltipPopup\")),mX=O.forwardRef(E(function(t,n){var r=t.ariaLabel,i=t[\"aria-label\"],o=t.as,s=o===void 0?\"div\":o,l=t.id,c=t.isVisible,f=t.label,h=t.position,g=h===void 0?yX:h,m=t.style,y=t.triggerRect,S=Vh(t,fX),x=(i||r)!=null,D=O.useRef(null),_=Lr(n,D),b=Eh(D,{observe:c});return O.createElement(O.Fragment,null,O.createElement(s,Ts({role:x?void 0:\"tooltip\"},S,{ref:_,\"data-reach-tooltip\":\"\",id:x?void 0:l,style:Ts({},m,i4(g,y,b))}),f),x&&O.createElement(j3,{role:\"tooltip\",id:l},i||r))},\"TooltipContent\"));function i4(e,t,n){var r=!n;return r?{visibility:\"hidden\"}:e(t,n)}E(i4,\"getStyles\");var gX=8,yX=E(function(t,n,r){r===void 0&&(r=gX);var i=JM(),o=i.width,s=i.height;if(!t||!n)return{};var l={top:t.top-n.height<0,right:o<t.left+n.width,bottom:s<t.bottom+n.height+r,left:t.left-n.width<0},c=l.right&&!l.left,f=l.bottom&&!l.top;return{left:c?t.right-n.width+window.pageXOffset+\"px\":t.left+window.pageXOffset+\"px\",top:f?t.top-r-n.height+window.pageYOffset+\"px\":t.top+r+t.height+window.pageYOffset+\"px\"}},\"positionTooltip\");function o4(e){var t=e.disabled,n=e.isVisible,r=e.ref;O.useEffect(function(){if(!(typeof window<\"u\"&&\"PointerEvent\"in window)||!t||!n)return;var i=ia(r.current);function o(s){n&&(s.target instanceof Element&&s.target.closest(\"[data-reach-tooltip-trigger][data-state='tooltip-visible']\")||xo({type:Ot.GlobalMouseMove}))}return E(o,\"handleMouseMove\"),i.addEventListener(\"mousemove\",o),function(){i.removeEventListener(\"mousemove\",o)}},[t,n,r])}E(o4,\"useDisabledTriggerOnSafari\");function xo(e){var t=a4(Co,e),n=t.value,r=t.context,i=t.changed;i&&(Co={value:n,context:r},XM())}E(xo,\"send\");function a4(e,t){var n=$C.states[e.value],r=n&&n.on&&n.on[t.type];if(!r)return Ts({},e,{changed:!1});n&&n.leave&&n.leave(e.context,t),t.type;var i=Vh(t,dX),o=Ts({},Co.context,i),s=typeof r==\"string\"?r:r.target,l=$C.states[s];return l&&l.enter&&l.enter(e.context,t),{value:s,context:o,changed:!0}}E(a4,\"transition\");function jC(e,t){return Co.context.id===e&&(t?Co.value===Mt.Visible:Co.value===Mt.Visible||Co.value===Mt.LeavingVisible)}E(jC,\"isTooltipVisible\");const s4=O.forwardRef((e,t)=>{var n=e,{isActive:r}=n,i=mt(n,[\"isActive\"]);return ie(\"div\",Kt(Dt({},i),{ref:t,role:\"tab\",\"aria-selected\":r,className:Jr(\"graphiql-tab\",r?\"graphiql-tab-active\":\"\",i.className),children:i.children}))});s4.displayName=\"Tab\";const l4=O.forwardRef((e,t)=>ie(ir,Kt(Dt({},e),{ref:t,type:\"button\",className:Jr(\"graphiql-tab-button\",e.className),children:e.children})));l4.displayName=\"Tab.Button\";const u4=O.forwardRef((e,t)=>ie(vi,{label:\"Close Tab\",children:ie(ir,Kt(Dt({\"aria-label\":\"Close Tab\"},e),{ref:t,type:\"button\",className:Jr(\"graphiql-tab-close\",e.className),children:ie(QT,{})}))}));u4.displayName=\"Tab.Close\";const UC=kf(s4,{Button:l4,Close:u4}),c4=O.forwardRef((e,t)=>ie(\"div\",Kt(Dt({},e),{ref:t,role:\"tablist\",className:Jr(\"graphiql-tabs\",e.className),children:e.children})));c4.displayName=\"Tabs\";var bX=Object.defineProperty,EX=E((e,t)=>bX(e,\"name\",{value:t,configurable:!0}),\"__name$C\");const f4=ms(\"HistoryContext\");function qC(e){var t;const n=Tl(),r=O.useRef(new qF(n||new Cy(null),e.maxHistoryLength||wX)),[i,o]=O.useState(((t=r.current)==null?void 0:t.queries)||[]),s=O.useCallback(({query:h,variables:g,headers:m,operationName:y})=>{var S;(S=r.current)==null||S.updateHistory(h,g,m,y),o(r.current.queries)},[]),l=O.useCallback(({query:h,variables:g,headers:m,operationName:y,label:S,favorite:x})=>{r.current.editLabel(h,g,m,y,S,x),o(r.current.queries)},[]),c=O.useCallback(({query:h,variables:g,headers:m,operationName:y,label:S,favorite:x})=>{r.current.toggleFavorite(h,g,m,y,S,x),o(r.current.queries)},[]),f=O.useMemo(()=>({addToHistory:s,editLabel:l,items:i,toggleFavorite:c}),[s,l,i,c]);return ie(f4.Provider,{value:f,children:e.children})}E(qC,\"HistoryContextProvider\"),EX(qC,\"HistoryContextProvider\");const P0=gs(f4),wX=20;var SX=Object.defineProperty,HC=E((e,t)=>SX(e,\"name\",{value:t,configurable:!0}),\"__name$B\");function zC(){const{items:e}=P0({nonNull:!0}),t=e.slice().reverse();return lt(\"section\",{\"aria-label\":\"History\",className:\"graphiql-history\",children:[ie(\"div\",{className:\"graphiql-history-header\",children:\"History\"}),ie(\"ul\",{className:\"graphiql-history-items\",children:t.map((n,r)=>lt(O.Fragment,{children:[ie(jh,{item:n}),n.favorite&&t[r+1]&&!t[r+1].favorite?ie(\"div\",{className:\"graphiql-history-item-spacer\"}):null]},`${r}:${n.label||n.query}`))})]})}E(zC,\"History\"),HC(zC,\"History\");function jh(e){const{editLabel:t,toggleFavorite:n}=P0({nonNull:!0,caller:jh}),{headerEditor:r,queryEditor:i,variableEditor:o}=Pr({nonNull:!0,caller:jh}),s=O.useRef(null),l=O.useRef(null),[c,f]=O.useState(!1);O.useEffect(()=>{c&&s.current&&s.current.focus()},[c]);const h=e.item.label||e.item.operationName||GC(e.item.query);return ie(\"li\",{className:\"graphiql-history-item\"+(c?\" editable\":\"\"),children:c?lt(Oi,{children:[ie(\"input\",{type:\"text\",defaultValue:e.item.label,ref:s,onKeyDown:g=>{g.keyCode===27?f(!1):g.keyCode===13&&(f(!1),t(Kt(Dt({},e.item),{label:g.currentTarget.value})))},placeholder:\"Type a label\"}),ie(ir,{type:\"button\",ref:l,onClick:()=>{var g;f(!1),t(Kt(Dt({},e.item),{label:(g=s.current)==null?void 0:g.value}))},children:\"Save\"}),ie(ir,{type:\"button\",ref:l,onClick:()=>{f(!1)},children:ie(QT,{})})]}):lt(Oi,{children:[ie(ir,{type:\"button\",className:\"graphiql-history-item-label\",onClick:()=>{var g,m,y;i==null||i.setValue((g=e.item.query)!=null?g:\"\"),o==null||o.setValue((m=e.item.variables)!=null?m:\"\"),r==null||r.setValue((y=e.item.headers)!=null?y:\"\")},children:h}),ie(vi,{label:\"Edit label\",children:ie(ir,{type:\"button\",className:\"graphiql-history-item-action\",onClick:g=>{g.stopPropagation(),f(!0)},\"aria-label\":\"Edit label\",children:ie(XG,{\"aria-hidden\":\"true\"})})}),ie(vi,{label:e.item.favorite?\"Remove favorite\":\"Add favorite\",children:ie(ir,{type:\"button\",className:\"graphiql-history-item-action\",onClick:g=>{g.stopPropagation(),n(e.item)},\"aria-label\":e.item.favorite?\"Remove favorite\":\"Add favorite\",children:e.item.favorite?ie(iW,{\"aria-hidden\":\"true\"}):ie(oW,{\"aria-hidden\":\"true\"})})})]})})}E(jh,\"HistoryItem\"),HC(jh,\"HistoryItem\");function GC(e){return e==null?void 0:e.split(`\n`).map(t=>t.replace(/#(.*)/,\"\")).join(\" \").replace(/{/g,\" { \").replace(/}/g,\" } \").replace(/[\\s]{2,}/g,\" \")}E(GC,\"formatQuery\"),HC(GC,\"formatQuery\");var TX=Object.defineProperty,M0=E((e,t)=>TX(e,\"name\",{value:t,configurable:!0}),\"__name$A\");const d4=ms(\"ExecutionContext\");function Uh(e){if(!e.fetcher)throw new TypeError(\"The `ExecutionContextProvider` component requires a `fetcher` function to be passed as prop.\");const{externalFragments:t,headerEditor:n,queryEditor:r,responseEditor:i,variableEditor:o,updateActiveTabValues:s}=Pr({nonNull:!0,caller:Uh}),l=P0(),c=Kh({getDefaultFieldNames:e.getDefaultFieldNames,caller:Uh}),[f,h]=O.useState(!1),[g,m]=O.useState(null),y=O.useRef(0),S=O.useCallback(()=>{g==null||g.unsubscribe(),h(!1),m(null)},[g]),{fetcher:x}=e,D=O.useCallback(async()=>{var b,C,T;if(!r||!i)return;if(g){S();return}const N=M0(z=>{i.setValue(z),s({response:z})},\"setResponse\");y.current+=1;const F=y.current;let L=c()||r.getValue();const A=o==null?void 0:o.getValue();let P;try{P=$0({json:A,errorMessageParse:\"Variables are invalid JSON\",errorMessageType:\"Variables are not a JSON object.\"})}catch(z){N(z instanceof Error?z.message:`${z}`);return}const V=n==null?void 0:n.getValue();let H;try{H=$0({json:V,errorMessageParse:\"Headers are invalid JSON\",errorMessageType:\"Headers are not a JSON object.\"})}catch(z){N(z instanceof Error?z.message:`${z}`);return}if(t){const z=r.documentAST?bG(r.documentAST,t):[];z.length>0&&(L+=`\n`+z.map(U=>gt(U)).join(`\n`))}N(\"\"),h(!0);const G=(C=(b=e.operationName)!=null?b:r.operationName)!=null?C:void 0;l==null||l.addToHistory({query:L,variables:A,headers:V,operationName:G});try{let z={data:{}};const U=M0(ne=>{if(F!==y.current)return;let J=Array.isArray(ne)?ne:!1;if(!J&&typeof ne==\"object\"&&ne!==null&&\"hasNext\"in ne&&(J=[ne]),J){const re={data:z.data},Z=[...(z==null?void 0:z.errors)||[],...J.map(de=>de.errors).flat().filter(Boolean)];Z.length&&(re.errors=Z);for(const de of J){const K=de,{path:ve,data:ue,errors:ce}=K,le=mt(K,[\"path\",\"data\",\"errors\"]);if(ve){if(!ue)throw new Error(`Expected part to contain a data property, but got ${de}`);IG(re.data,ve,ue,{merge:!0})}else ue&&(re.data=de.data);z=Dt(Dt({},re),le)}h(!1),N(uh(z))}else{const re=uh(ne);h(!1),N(re)}},\"handleResponse\"),j=x({query:L,variables:P,operationName:G},{headers:H??void 0,documentAST:(T=r.documentAST)!=null?T:void 0}),X=await Promise.resolve(j);if(kT(X))m(X.subscribe({next(ne){U(ne)},error(ne){h(!1),ne&&N($u(ne)),m(null)},complete(){h(!1),m(null)}}));else if(NT(X)){m({unsubscribe:()=>{var ne,J;return(J=(ne=X[Symbol.asyncIterator]()).return)==null?void 0:J.call(ne)}});try{for await(const ne of X)ne&&N(uh(ne));h(!1),m(null)}catch(ne){h(!1),N($u(ne)),m(null)}}else U(X)}catch(z){h(!1),N($u(z)),m(null)}},[c,t,x,n,l,e.operationName,r,i,S,g,s,o]),_=O.useMemo(()=>{var b;return{isFetching:f,operationName:(b=e.operationName)!=null?b:null,run:D,stop:S}},[f,e.operationName,D,S]);return ie(d4.Provider,{value:_,children:e.children})}E(Uh,\"ExecutionContextProvider\"),M0(Uh,\"ExecutionContextProvider\");const Rf=gs(d4);function $0({json:e,errorMessageParse:t,errorMessageType:n}){let r;try{r=e&&e.trim()!==\"\"?JSON.parse(e):void 0}catch(o){throw new Error(`${t}: ${o instanceof Error?o.message:o}.`)}const i=typeof r==\"object\"&&r!==null&&!Array.isArray(r);if(r!==void 0&&!i)throw new Error(n);return r}E($0,\"tryParseJsonObject\"),M0($0,\"tryParseJsonObject\");var _X=Object.defineProperty,CX=E((e,t)=>_X(e,\"name\",{value:t,configurable:!0}),\"__name$z\");const V0=\"graphiql\",B0=\"sublime\";let p4=!1;typeof window==\"object\"&&(p4=window.navigator.platform.toLowerCase().indexOf(\"mac\")===0);const j0={[p4?\"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 Ju(e,t){const n=await Promise.resolve().then(()=>xie).then(function(r){return r.c}).then(r=>typeof r==\"function\"?r:r.default);return await Promise.all((t==null?void 0:t.useCommonAddons)===!1?e:[Promise.resolve().then(()=>Aie).then(function(r){return r.s}),Promise.resolve().then(()=>Fie).then(function(r){return r.m}),Promise.resolve().then(()=>$ie).then(function(r){return r.c}),Promise.resolve().then(()=>M6).then(function(r){return r.b}),Promise.resolve().then(()=>B6).then(function(r){return r.f}),Promise.resolve().then(()=>Yie).then(function(r){return r.l}),Promise.resolve().then(()=>H6).then(function(r){return r.s}),Promise.resolve().then(()=>Y6).then(function(r){return r.j}),Promise.resolve().then(()=>G6).then(function(r){return r.d}),Promise.resolve().then(()=>X6).then(function(r){return r.s}),...e]),n}E(Ju,\"importCodeMirror\"),CX(Ju,\"importCodeMirror\");var xX=E(function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case\"INPUT\":case\"TEXTAREA\":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type===\"Caret\"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(i){e.addRange(i)}),t&&t.focus()}},\"toggleSelection\"),kX=xX,h4={\"text/plain\":\"Text\",\"text/html\":\"Url\",default:\"Text\"},NX=\"Copy to clipboard: #{key}, Enter\";function v4(e){var t=(/mac os x/i.test(navigator.userAgent)?\"⌘\":\"Ctrl\")+\"+C\";return e.replace(/#{\\s*key\\s*}/g,t)}E(v4,\"format\");function m4(e,t){var n,r,i,o,s,l,c=!1;t||(t={}),n=t.debug||!1;try{i=kX(),o=document.createRange(),s=document.getSelection(),l=document.createElement(\"span\"),l.textContent=e,l.style.all=\"unset\",l.style.position=\"fixed\",l.style.top=0,l.style.clip=\"rect(0, 0, 0, 0)\",l.style.whiteSpace=\"pre\",l.style.webkitUserSelect=\"text\",l.style.MozUserSelect=\"text\",l.style.msUserSelect=\"text\",l.style.userSelect=\"text\",l.addEventListener(\"copy\",function(h){if(h.stopPropagation(),t.format)if(h.preventDefault(),typeof h.clipboardData>\"u\"){n&&console.warn(\"unable to use e.clipboardData\"),n&&console.warn(\"trying IE specific stuff\"),window.clipboardData.clearData();var g=h4[t.format]||h4.default;window.clipboardData.setData(g,e)}else h.clipboardData.clearData(),h.clipboardData.setData(t.format,e);t.onCopy&&(h.preventDefault(),t.onCopy(h.clipboardData))}),document.body.appendChild(l),o.selectNodeContents(l),s.addRange(o);var f=document.execCommand(\"copy\");if(!f)throw new Error(\"copy command was unsuccessful\");c=!0}catch(h){n&&console.error(\"unable to copy using execCommand: \",h),n&&console.warn(\"trying IE specific stuff\");try{window.clipboardData.setData(t.format||\"text\",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(g){n&&console.error(\"unable to copy using clipboardData: \",g),n&&console.error(\"falling back to prompt\"),r=v4(\"message\"in t?t.message:NX),window.prompt(r,e)}}finally{s&&(typeof s.removeRange==\"function\"?s.removeRange(o):s.removeAllRanges()),l&&document.body.removeChild(l),i()}return c}E(m4,\"copy\");var DX=m4,AX=Object.defineProperty,g4=E((e,t)=>AX(e,\"name\",{value:t,configurable:!0}),\"__name$y\");const OX=g4(e=>e?gt(e):\"\",\"printDefault\");function U0({field:e}){if(!(\"defaultValue\"in e)||e.defaultValue===void 0)return null;const t=fs(e.defaultValue,e.type);return t?lt(Oi,{children:[\" = \",ie(\"span\",{className:\"graphiql-doc-explorer-default-value\",children:OX(t)})]}):null}E(U0,\"DefaultValue\"),g4(U0,\"DefaultValue\");var IX=Object.defineProperty,qh=E((e,t)=>IX(e,\"name\",{value:t,configurable:!0}),\"__name$x\");const y4=ms(\"SchemaContext\");function q0(e){if(!e.fetcher)throw new TypeError(\"The `SchemaContextProvider` component requires a `fetcher` function to be passed as prop.\");const{initialHeaders:t,headerEditor:n}=Pr({nonNull:!0,caller:q0}),[r,i]=O.useState(),[o,s]=O.useState(!1),[l,c]=O.useState(null),f=O.useRef(0);O.useEffect(()=>{i(Xg(e.schema)||e.schema===null||e.schema===void 0?e.schema:void 0),f.current++},[e.schema]);const h=O.useRef(t);O.useEffect(()=>{n&&(h.current=n.getValue())});const{introspectionQuery:g,introspectionQueryName:m,introspectionQuerySansSubscriptions:y}=WC({inputValueDeprecation:e.inputValueDeprecation,introspectionQueryName:e.introspectionQueryName,schemaDescription:e.schemaDescription}),{fetcher:S,onSchemaChange:x}=e,D=O.useCallback(()=>{if(Xg(e.schema)||e.schema===null)return;const C=++f.current;i(void 0);const T=e.schema;async function N(){if(T)return T;const F=QC(h.current);if(!F.isValidJSON){c(\"Introspection failed as headers are invalid.\");return}const L=F.headers?{headers:F.headers}:{},A=DT(S({query:g,operationName:m},L));if(!xT(A)){c(\"Fetcher did not return a Promise for introspection.\");return}s(!0),c(null);let P=await A;if(typeof P!=\"object\"||P===null||!(\"data\"in P)){const H=DT(S({query:y,operationName:m},L));if(!xT(H))throw new Error(\"Fetcher did not return a Promise for introspection.\");P=await H}if(s(!1),P!=null&&P.data&&\"__schema\"in P.data)return P.data;const V=typeof P==\"string\"?P:uh(P);c(V)}E(N,\"fetchIntrospectionData\"),qh(N,\"fetchIntrospectionData\"),N().then(F=>{if(!(C!==f.current||!F))try{const L=ET(F);i(L),x==null||x(L)}catch(L){c($u(L))}}).catch(F=>{C===f.current&&(c($u(F)),s(!1))})},[S,m,g,y,x,e.schema]);O.useEffect(()=>{D()},[D]),O.useEffect(()=>{function C(T){T.keyCode===82&&T.shiftKey&&T.ctrlKey&&D()}return E(C,\"triggerIntrospection\"),qh(C,\"triggerIntrospection\"),window.addEventListener(\"keydown\",C),()=>window.removeEventListener(\"keydown\",C)});const _=O.useMemo(()=>!r||e.dangerouslyAssumeSchemaIsValid?[]:Zg(r),[r,e.dangerouslyAssumeSchemaIsValid]),b=O.useMemo(()=>({fetchError:l,introspect:D,isFetching:o,schema:r,validationErrors:_}),[l,D,o,r,_]);return ie(y4.Provider,{value:b,children:e.children})}E(q0,\"SchemaContextProvider\"),qh(q0,\"SchemaContextProvider\");const la=gs(y4);function WC({inputValueDeprecation:e,introspectionQueryName:t,schemaDescription:n}){return O.useMemo(()=>{const r=t||\"IntrospectionQuery\";let i=by({inputValueDeprecation:e,schemaDescription:n});t&&(i=i.replace(\"query IntrospectionQuery\",`query ${r}`));const o=i.replace(\"subscriptionType { name }\",\"\");return{introspectionQueryName:r,introspectionQuery:i,introspectionQuerySansSubscriptions:o}},[e,t,n])}E(WC,\"useIntrospectionQuery\"),qh(WC,\"useIntrospectionQuery\");function QC(e){let t=null,n=!0;try{e&&(t=JSON.parse(e))}catch{n=!1}return{headers:t,isValidJSON:n}}E(QC,\"parseHeaderString\"),qh(QC,\"parseHeaderString\");var LX=Object.defineProperty,FX=E((e,t)=>LX(e,\"name\",{value:t,configurable:!0}),\"__name$w\");const b4={name:\"Docs\"},E4=ms(\"ExplorerContext\");function H0(e){const{isFetching:t}=la({nonNull:!0,caller:H0}),[n,r]=O.useState([b4]),i=O.useCallback(c=>{r(f=>f[f.length-1].def===c.def?f:[...f,c])},[]),o=O.useCallback(()=>{r(c=>c.length>1?c.slice(0,-1):c)},[]),s=O.useCallback(()=>{r(c=>c.length===1?c:[b4])},[]);O.useEffect(()=>{t&&s()},[t,s]);const l=O.useMemo(()=>({explorerNavStack:n,push:i,pop:o,reset:s}),[n,i,o,s]);return ie(E4.Provider,{value:l,children:e.children})}E(H0,\"ExplorerContextProvider\"),FX(H0,\"ExplorerContextProvider\");const Fl=gs(E4);var RX=Object.defineProperty,PX=E((e,t)=>RX(e,\"name\",{value:t,configurable:!0}),\"__name$v\");function Pf(e,t){return Ge(e)?lt(Oi,{children:[Pf(e.ofType,t),\"!\"]}):St(e)?lt(Oi,{children:[\"[\",Pf(e.ofType,t),\"]\"]}):t(e)}E(Pf,\"renderType\"),PX(Pf,\"renderType\");var MX=Object.defineProperty,$X=E((e,t)=>MX(e,\"name\",{value:t,configurable:!0}),\"__name$u\");function ua(e){const{push:t}=Fl({nonNull:!0,caller:ua});return e.type?Pf(e.type,n=>ie(\"a\",{className:\"graphiql-doc-explorer-type-name\",onClick:r=>{r.preventDefault(),t({name:n.name,def:n})},href:\"#\",children:n.name})):null}E(ua,\"TypeLink\"),$X(ua,\"TypeLink\");var VX=Object.defineProperty,BX=E((e,t)=>VX(e,\"name\",{value:t,configurable:!0}),\"__name$t\");function Mf({arg:e,showDefaultValue:t,inline:n}){const r=lt(\"span\",{children:[ie(\"span\",{className:\"graphiql-doc-explorer-argument-name\",children:e.name}),\": \",ie(ua,{type:e.type}),t!==!1&&ie(U0,{field:e})]});return n?r:lt(\"div\",{className:\"graphiql-doc-explorer-argument\",children:[r,e.description?ie($a,{type:\"description\",children:e.description}):null,e.deprecationReason?lt(\"div\",{className:\"graphiql-doc-explorer-argument-deprecation\",children:[ie(\"div\",{className:\"graphiql-doc-explorer-argument-deprecation-label\",children:\"Deprecated\"}),ie($a,{type:\"deprecation\",children:e.deprecationReason})]}):null]})}E(Mf,\"Argument\"),BX(Mf,\"Argument\");var jX=Object.defineProperty,UX=E((e,t)=>jX(e,\"name\",{value:t,configurable:!0}),\"__name$s\");function z0(e){return e.children?lt(\"div\",{className:\"graphiql-doc-explorer-deprecation\",children:[ie(\"div\",{className:\"graphiql-doc-explorer-deprecation-label\",children:\"Deprecated\"}),ie($a,{type:\"deprecation\",onlyShowFirstChild:!0,children:e.children})]}):null}E(z0,\"DeprecationReason\"),UX(z0,\"DeprecationReason\");var qX=Object.defineProperty,HX=E((e,t)=>qX(e,\"name\",{value:t,configurable:!0}),\"__name$r\");function YC({directive:e}){return lt(\"span\",{className:\"graphiql-doc-explorer-directive\",children:[\"@\",e.name.value]})}E(YC,\"Directive\"),HX(YC,\"Directive\");var zX=Object.defineProperty,GX=E((e,t)=>zX(e,\"name\",{value:t,configurable:!0}),\"__name$q\");function to(e){const t=WX[e.title];return lt(\"div\",{children:[lt(\"div\",{className:\"graphiql-doc-explorer-section-title\",children:[ie(t,{}),e.title]}),ie(\"div\",{className:\"graphiql-doc-explorer-section-content\",children:e.children})]})}E(to,\"ExplorerSection\"),GX(to,\"ExplorerSection\");const WX={Arguments:FG,\"Deprecated Arguments\":VG,\"Deprecated Enum Values\":BG,\"Deprecated Fields\":jG,Directives:UG,\"Enum Values\":zG,Fields:GG,Implements:QG,Implementations:YT,\"Possible Types\":YT,\"Root Types\":nW,Type:YT};var QX=Object.defineProperty,JC=E((e,t)=>QX(e,\"name\",{value:t,configurable:!0}),\"__name$p\");function KC(e){return lt(Oi,{children:[e.field.description?ie($a,{type:\"description\",children:e.field.description}):null,ie(z0,{children:e.field.deprecationReason}),ie(to,{title:\"Type\",children:ie(ua,{type:e.field.type})}),ie(XC,{field:e.field}),ie(ZC,{field:e.field})]})}E(KC,\"FieldDocumentation\"),JC(KC,\"FieldDocumentation\");function XC({field:e}){const[t,n]=O.useState(!1);if(!(\"args\"in e))return null;const r=[],i=[];for(const o of e.args)o.deprecationReason?i.push(o):r.push(o);return lt(Oi,{children:[r.length>0?ie(to,{title:\"Arguments\",children:r.map(o=>ie(Mf,{arg:o},o.name))}):null,i.length>0?t||r.length===0?ie(to,{title:\"Deprecated Arguments\",children:i.map(o=>ie(Mf,{arg:o},o.name))}):ie(Cl,{type:\"button\",onClick:()=>{n(!0)},children:\"Show Deprecated Arguments\"}):null]})}E(XC,\"Arguments\"),JC(XC,\"Arguments\");function ZC({field:e}){var t;const n=((t=e.astNode)==null?void 0:t.directives)||[];return!n||n.length===0?null:ie(to,{title:\"Directives\",children:n.map(r=>ie(\"div\",{children:ie(YC,{directive:r})},r.name.value))})}E(ZC,\"Directives\"),JC(ZC,\"Directives\");var YX=Object.defineProperty,JX=E((e,t)=>YX(e,\"name\",{value:t,configurable:!0}),\"__name$o\");function ex(e){var t,n,r,i;const o=e.schema.getQueryType(),s=(n=(t=e.schema).getMutationType)==null?void 0:n.call(t),l=(i=(r=e.schema).getSubscriptionType)==null?void 0:i.call(r);return lt(Oi,{children:[ie($a,{type:\"description\",children:e.schema.description||\"A GraphQL schema provides a root type for each kind of operation.\"}),lt(to,{title:\"Root Types\",children:[o?lt(\"div\",{children:[ie(\"span\",{className:\"graphiql-doc-explorer-root-type\",children:\"query\"}),\": \",ie(ua,{type:o})]}):null,s&<(\"div\",{children:[ie(\"span\",{className:\"graphiql-doc-explorer-root-type\",children:\"mutation\"}),\": \",ie(ua,{type:s})]}),l&<(\"div\",{children:[ie(\"span\",{className:\"graphiql-doc-explorer-root-type\",children:\"subscription\"}),\": \",ie(ua,{type:l})]})]})]})}E(ex,\"SchemaDocumentation\"),JX(ex,\"SchemaDocumentation\");function w4(e,t){var n=O.useRef(!1);O.useEffect(function(){n.current?e():n.current=!0},t)}E(w4,\"useUpdateEffect\");function $f(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}E($f,\"_objectWithoutPropertiesLoose\");function ar(){return ar=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ar.apply(this,arguments)}E(ar,\"_extends\");function S4(e){var t=e.autoEscape,n=e.caseSensitive,r=n===void 0?!1:n,i=e.findChunks,o=i===void 0?nx:i,s=e.sanitize,l=e.searchWords,c=e.textToHighlight;return rx({chunksToHighlight:tx({chunks:o({autoEscape:t,caseSensitive:r,sanitize:s,searchWords:l,textToHighlight:c})}),totalLength:c?c.length:0})}E(S4,\"findAll\");function tx(e){var t=e.chunks;return t.sort(function(n,r){return n.start-r.start}).reduce(function(n,r){if(n.length===0)return[r];var i=n.pop();if(r.start<=i.end){var o=Math.max(i.end,r.end);n.push({highlight:!1,start:i.start,end:o})}else n.push(i,r);return n},[])}E(tx,\"combineChunks\");function nx(e){var t=e.autoEscape,n=e.caseSensitive,r=e.sanitize,i=r===void 0?T4:r,o=e.searchWords,s=e.textToHighlight;return s=i(s||\"\"),o.filter(function(l){return l}).reduce(function(l,c){c=i(c),t&&(c=_4(c));for(var f=new RegExp(c,n?\"g\":\"gi\"),h;h=f.exec(s||\"\");){var g=h.index,m=f.lastIndex;m>g&&l.push({highlight:!1,start:g,end:m}),h.index===f.lastIndex&&f.lastIndex++}return l},[])}E(nx,\"defaultFindChunks\");function rx(e){var t=e.chunksToHighlight,n=e.totalLength,r=[];if(t.length===0)o(0,n,!1);else{var i=0;t.forEach(function(s){o(i,s.start,!1),o(s.start,s.end,!0),i=s.end}),o(i,n,!1)}return r;function o(s,l,c){l-s>0&&r.push({start:s,end:l,highlight:c})}}E(rx,\"fillInChunks\");function T4(e){return e}E(T4,\"defaultSanitize\");function _4(e){return e.replace(/[-[\\]/{}()*+?.\\\\^$|]/g,\"\\\\$&\")}E(_4,\"escapeRegExpFn\");var KX={combineChunks:tx,fillInChunks:rx,findAll:S4,findChunks:nx},XX=[\"onSelect\",\"openOnFocus\",\"children\",\"as\",\"aria-label\",\"aria-labelledby\"],ZX=[\"as\",\"selectOnClick\",\"autocomplete\",\"onClick\",\"onChange\",\"onKeyDown\",\"onBlur\",\"onFocus\",\"value\"],eZ=[\"as\",\"children\",\"portal\",\"onKeyDown\",\"onBlur\",\"position\"],tZ=[\"persistSelection\",\"as\"],nZ=[\"as\",\"children\",\"index\",\"value\",\"onClick\"],Va,ca,ko,Ba,Vf,Gt=\"IDLE\",No=\"SUGGESTING\",Rl=\"NAVIGATING\",Bf=\"INTERACTING\",jf=\"CLEAR\",Uf=\"CHANGE\",ix=\"INITIAL_CHANGE\",Fi=\"NAVIGATE\",ox=\"SELECT_WITH_KEYBOARD\",Ku=\"SELECT_WITH_CLICK\",qf=\"ESCAPE\",Hf=\"BLUR\",G0=\"INTERACT\",zf=\"FOCUS\",ax=\"OPEN_WITH_BUTTON\",sx=\"OPEN_WITH_INPUT_CLICK\",W0=\"CLOSE_WITH_BUTTON\",rZ={initial:Gt,states:(Vf={},Vf[Gt]={on:(Va={},Va[Hf]=Gt,Va[jf]=Gt,Va[Uf]=No,Va[ix]=Gt,Va[zf]=No,Va[Fi]=Rl,Va[ax]=No,Va[sx]=No,Va)},Vf[No]={on:(ca={},ca[Uf]=No,ca[zf]=No,ca[Fi]=Rl,ca[jf]=Gt,ca[qf]=Gt,ca[Hf]=Gt,ca[Ku]=Gt,ca[G0]=Bf,ca[W0]=Gt,ca)},Vf[Rl]={on:(ko={},ko[Uf]=No,ko[zf]=No,ko[jf]=Gt,ko[Hf]=Gt,ko[qf]=Gt,ko[Fi]=Rl,ko[Ku]=Gt,ko[ox]=Gt,ko[W0]=Gt,ko[G0]=Bf,ko)},Vf[Bf]={on:(Ba={},Ba[jf]=Gt,Ba[Uf]=No,Ba[zf]=No,Ba[Hf]=Gt,Ba[qf]=Gt,Ba[Fi]=Rl,Ba[W0]=Gt,Ba[Ku]=Gt,Ba)},Vf)},iZ=E(function(t,n){var r=ar({},t,{lastEventType:n.type});switch(n.type){case Uf:case ix:return ar({},r,{navigationValue:null,value:n.value});case Fi:case ax:case sx:return ar({},r,{navigationValue:lx(r,n)});case jf:return ar({},r,{value:\"\",navigationValue:null});case Hf:case qf:return ar({},r,{navigationValue:null});case Ku:return ar({},r,{value:n.isControlled?t.value:n.value,navigationValue:null});case ox:return ar({},r,{value:n.isControlled?t.value:t.navigationValue,navigationValue:null});case W0:return ar({},r,{navigationValue:null});case G0:return r;case zf:return ar({},r,{navigationValue:lx(r,n)});default:return r}},\"reducer\");function C4(e){return[No,Rl,Bf].includes(e)}E(C4,\"popoverIsExpanded\");function lx(e,t){return t.value?t.value:t.persistSelection?e.value:null}E(lx,\"findNavigationValue\");var ux=Jy(),Pl=t0(\"ComboboxContext\",{}),x4=t0(\"OptionContext\",{}),oZ=O.forwardRef(function(e,t){var n,r=e.onSelect,i=e.openOnFocus,o=i===void 0?!1:i,s=e.children,l=e.as,c=l===void 0?\"div\":l,f=e[\"aria-label\"],h=e[\"aria-labelledby\"],g=$f(e,XX),m=Xy(),y=m[0],S=m[1],x=O.useRef(),D=O.useRef(),_=O.useRef(),b=O.useRef(!1),C=O.useRef(!1),T={value:\"\",navigationValue:null},N=D4(rZ,iZ,T),F=N[0],L=N[1],A=N[2];N4(L.lastEventType,x);var P=bh(g.id),V=P?oa(\"listbox\",P):\"listbox\",H=O.useRef(!1),G=C4(F),z={ariaLabel:f,ariaLabelledby:h,autocompletePropRef:b,buttonRef:_,comboboxId:P,data:L,inputRef:x,isExpanded:G,listboxId:V,onSelect:r||Bu,openOnFocus:o,persistSelectionRef:C,popoverRef:D,state:F,transition:A,isControlledRef:H};return O.createElement(e0,{context:ux,items:y,set:S},O.createElement(Pl.Provider,{value:z},O.createElement(c,ar({},g,{\"data-reach-combobox\":\"\",\"data-state\":Q0(F),\"data-expanded\":G||void 0,ref:t}),Da(s)?s({id:P,isExpanded:G,navigationValue:(n=L.navigationValue)!=null?n:null,state:F}):s)))}),aZ=O.forwardRef(function(e,t){var n=e.as,r=n===void 0?\"input\":n,i=e.selectOnClick,o=i===void 0?!1:i,s=e.autocomplete,l=s===void 0?!0:s,c=e.onClick,f=e.onChange,h=e.onKeyDown,g=e.onBlur,m=e.onFocus,y=e.value,S=$f(e,ZX),x=O.useRef(y),D=x.current,_=O.useRef(!1);w4(function(){_.current=!0},[y]);var b=O.useContext(Pl),C=b.data,T=C.navigationValue,N=C.value,F=C.lastEventType,L=b.inputRef,A=b.state,P=b.transition,V=b.listboxId,H=b.autocompletePropRef,G=b.openOnFocus,z=b.isExpanded,U=b.ariaLabel,j=b.ariaLabelledby,X=b.persistSelectionRef,ne=b.isControlledRef,J=Lr(L,t),re=O.useRef(!1),Z=fx(),de=dx(),K=typeof y<\"u\";O.useEffect(function(){ne.current=K},[K]),bs(function(){H.current=l},[l,H]);var ve=O.useCallback(function(Ce){Ce.trim()===\"\"?P(jf,{isControlled:K}):Ce===D&&!_.current?P(ix,{value:Ce}):P(Uf,{value:Ce})},[D,P,K]);O.useEffect(function(){K&&y!==N&&(y.trim()!==\"\"||(N||\"\").trim()!==\"\")&&ve(y)},[y,ve,K,N]);function ue(Ce){var qe=Ce.target.value;K||ve(qe)}E(ue,\"handleChange\");function ce(){o&&(re.current=!0),G&&F!==Ku&&P(zf,{persistSelection:X.current})}E(ce,\"handleFocus\");function le(){if(re.current){var Ce;re.current=!1,(Ce=L.current)==null||Ce.select()}G&&A===Gt&&P(sx)}E(le,\"handleClick\");var we=l&&(A===Rl||A===Bf)?T||y||N:y||N;return O.createElement(r,ar({\"aria-activedescendant\":T?String(px(T)):void 0,\"aria-autocomplete\":\"both\",\"aria-controls\":V,\"aria-expanded\":z,\"aria-haspopup\":\"listbox\",\"aria-label\":U,\"aria-labelledby\":U?void 0:j,role:\"combobox\"},S,{\"data-reach-combobox-input\":\"\",\"data-state\":Q0(A),ref:J,onBlur:it(g,de),onChange:it(f,ue),onClick:it(c,le),onFocus:it(m,ce),onKeyDown:it(h,Z),value:we||\"\"}))}),sZ=O.forwardRef(function(e,t){var n=e.as,r=n===void 0?\"div\":n,i=e.children,o=e.portal,s=o===void 0?!0:o,l=e.onKeyDown,c=e.onBlur,f=e.position,h=f===void 0?iP:f,g=$f(e,eZ),m=O.useContext(Pl),y=m.popoverRef,S=m.inputRef,x=m.isExpanded,D=m.state,_=Lr(y,t),b=fx(),C=dx(),T={\"data-reach-combobox-popover\":\"\",\"data-state\":Q0(D),onKeyDown:it(l,b),onBlur:it(c,C),hidden:!x,tabIndex:-1,children:i};return s?O.createElement(j_,ar({as:r},g,{ref:_,\"data-expanded\":x||void 0,position:h,targetRef:S,unstable_skipInitialPortalRender:!0},T)):O.createElement(r,ar({ref:_},g,T))}),lZ=O.forwardRef(function(e,t){var n=e.persistSelection,r=n===void 0?!1:n,i=e.as,o=i===void 0?\"ul\":i,s=$f(e,tZ),l=O.useContext(Pl),c=l.persistSelectionRef,f=l.listboxId;return r&&(c.current=!0),O.createElement(o,ar({role:\"listbox\"},s,{ref:t,\"data-reach-combobox-list\":\"\",id:f}))}),cx=O.forwardRef(function(e,t){var n=e.as,r=n===void 0?\"li\":n,i=e.children,o=e.index,s=e.value,l=e.onClick,c=$f(e,nZ),f=O.useContext(Pl),h=f.onSelect,g=f.data.navigationValue,m=f.transition,y=f.isControlledRef,S=O.useRef(null),x=n0(S,null),D=x[0],_=x[1],b=O.useMemo(function(){return{element:D,value:s}},[s,D]),C=Ky(b,ux,o),T=Lr(t,_),N=g===s,F=E(function(){h&&h(s),m(Ku,{value:s,isControlled:y.current})},\"handleClick\");return O.createElement(x4.Provider,{value:{value:s,index:C}},O.createElement(r,ar({\"aria-selected\":N,role:\"option\"},c,{\"data-reach-combobox-option\":\"\",ref:T,id:String(px(s)),\"data-highlighted\":N?\"\":void 0,tabIndex:-1,onClick:it(l,F)}),i?Da(i)?i({value:s,index:C}):i:O.createElement(k4,null)))});function k4(){var e=O.useContext(x4),t=e.value,n=O.useContext(Pl),r=n.data.value,i=O.useMemo(function(){return KX.findAll({searchWords:A4(r||\"\").split(/\\s+/),textToHighlight:t})},[r,t]);return O.createElement(O.Fragment,null,i.length?i.map(function(o,s){var l=t.slice(o.start,o.end);return O.createElement(\"span\",{key:s,\"data-reach-combobox-option-text\":\"\",\"data-user-value\":o.highlight?!0:void 0,\"data-suggested-value\":o.highlight?void 0:!0},l)}):t)}E(k4,\"ComboboxOptionText\");function N4(e,t){bs(function(){if(e===Fi||e===qf||e===Ku||e===ax){var n;(n=t.current)==null||n.focus()}},[t,e])}E(N4,\"useFocusManagement\");function fx(){var e=O.useContext(Pl),t=e.data.navigationValue,n=e.onSelect,r=e.state,i=e.transition,o=e.autocompletePropRef,s=e.persistSelectionRef,l=e.isControlledRef,c=Zy(ux);return E(function(h){var g=c.findIndex(function(b){var C=b.value;return C===t});function m(){var b=g===c.length-1;return b?o.current?null:S():c[(g+1)%c.length]}E(m,\"getNextOption\");function y(){var b=g===0;return b?o.current?null:x():g===-1?x():c[(g-1+c.length)%c.length]}E(y,\"getPreviousOption\");function S(){return c[0]}E(S,\"getFirstOption\");function x(){return c[c.length-1]}switch(E(x,\"getLastOption\"),h.key){case\"ArrowDown\":if(h.preventDefault(),!c||!c.length)return;if(r===Gt)i(Fi,{persistSelection:s.current});else{var D=m();i(Fi,{value:D?D.value:null})}break;case\"ArrowUp\":if(h.preventDefault(),!c||c.length===0)return;if(r===Gt)i(Fi);else{var _=y();i(Fi,{value:_?_.value:null})}break;case\"Home\":case\"PageUp\":if(h.preventDefault(),!c||c.length===0)return;r===Gt?i(Fi):i(Fi,{value:S().value});break;case\"End\":case\"PageDown\":if(h.preventDefault(),!c||c.length===0)return;r===Gt?i(Fi):i(Fi,{value:x().value});break;case\"Escape\":r!==Gt&&i(qf);break;case\"Enter\":r===Rl&&t!==null&&(h.preventDefault(),n&&n(t),i(ox,{isControlled:l.current}));break}},\"handleKeyDown\")}E(fx,\"useKeyDown\");function dx(){var e=O.useContext(Pl),t=e.state,n=e.transition,r=e.popoverRef,i=e.inputRef,o=e.buttonRef;return E(function(l){var c=r.current,f=i.current,h=o.current,g=l.relatedTarget;g!==f&&g!==h&&c&&(c.contains(g)?t!==Bf&&n(G0):n(Hf))},\"handleBlur\")}E(dx,\"useBlur\");function D4(e,t,n){var r=O.useState(e.initial),i=r[0],o=r[1],s=O.useReducer(t,n),l=s[0],c=s[1],f=E(function(g,m){m===void 0&&(m={});var y=e.states[i],S=y&&y.on[g];if(S){c(ar({type:g,state:i,nextState:i},m)),o(S);return}},\"transition\");return[i,l,f]}E(D4,\"useReducerMachine\");function px(e){var t=0;if(e.length===0)return t;for(var n=0;n<e.length;n++){var r=e.charCodeAt(n);t=(t<<5)-t+r,t=t&t}return t}E(px,\"makeHash\");function Q0(e){return e.toLowerCase()}E(Q0,\"getDataState\");function A4(e){return String(e).replace(/([.*+?=^!:${}()|[\\]/\\\\])/g,\"\\\\$1\")}E(A4,\"escapeRegexp\");var uZ=Object.defineProperty,cZ=E((e,t)=>uZ(e,\"name\",{value:t,configurable:!0}),\"__name$n\");function Ml(e,t){let n;return function(...r){n&&window.clearTimeout(n),n=window.setTimeout(()=>{n=null,t(...r)},e)}}E(Ml,\"debounce\"),cZ(Ml,\"debounce\");var fZ=Object.defineProperty,Gf=E((e,t)=>fZ(e,\"name\",{value:t,configurable:!0}),\"__name$m\");function Y0(){const{explorerNavStack:e,push:t}=Fl({nonNull:!0,caller:Y0}),n=O.useRef(null),r=O.useRef(null),i=Hh(),[o,s]=O.useState(\"\"),[l,c]=O.useState(i(o)),f=O.useMemo(()=>Ml(200,m=>{c(i(m))}),[i]);O.useEffect(()=>{f(o)},[f,o]),O.useEffect(()=>{function m(y){y.metaKey&&y.keyCode===75&&n.current&&n.current.focus()}return E(m,\"handleKeyDown\"),Gf(m,\"handleKeyDown\"),window.addEventListener(\"keydown\",m),()=>window.removeEventListener(\"keydown\",m)},[]);const h=e[e.length-1];return e.length===1||Xe(h.def)||ot(h.def)||Tt(h.def)?lt(oZ,{\"aria-label\":`Search ${h.name}...`,onSelect:m=>{const y=m;t(\"field\"in y?{name:y.field.name,def:y.field}:{name:y.type.name,def:y.type})},children:[lt(\"div\",{className:\"graphiql-doc-explorer-search-input\",onClick:()=>{n.current&&n.current.focus()},children:[ie(JG,{}),ie(aZ,{autocomplete:!1,onChange:m=>{s(m.target.value)},onKeyDown:m=>{if(!m.isDefaultPrevented()){const y=r.current;if(!y)return;window.requestAnimationFrame(()=>{const S=y.querySelector(\"[aria-selected=true]\");if(!(S instanceof HTMLElement))return;const x=S.offsetTop-y.scrollTop,D=y.scrollTop+y.clientHeight-(S.offsetTop+S.clientHeight);D<0&&(y.scrollTop-=D),x<0&&(y.scrollTop+=x)})}m.stopPropagation()},placeholder:\"⌘ K\",ref:n,value:o})]}),ie(sZ,{portal:!1,ref:r,children:lt(lZ,{children:[l.within.map((m,y)=>ie(cx,{index:y,value:m,children:ie(J0,{field:m.field,argument:m.argument})},`within-${y}`)),l.within.length>0&&l.types.length+l.fields.length>0?ie(\"div\",{className:\"graphiql-doc-explorer-search-divider\",children:\"Other results\"}):null,l.types.map((m,y)=>ie(cx,{index:l.within.length+y,value:m,children:ie(Gh,{type:m.type})},`type-${y}`)),l.fields.map((m,y)=>lt(cx,{index:l.within.length+l.types.length+y,value:m,children:[ie(Gh,{type:m.type}),\".\",ie(J0,{field:m.field,argument:m.argument})]},`field-${y}`)),l.within.length+l.types.length+l.fields.length===0?ie(\"div\",{className:\"graphiql-doc-explorer-search-empty\",children:\"No results found\"}):null]})})]}):null}E(Y0,\"Search\"),Gf(Y0,\"Search\");function Hh(e){const{explorerNavStack:t}=Fl({nonNull:!0,caller:e||Hh}),{schema:n}=la({nonNull:!0,caller:e||Hh}),r=t[t.length-1];return O.useCallback(i=>{const o={within:[],types:[],fields:[]};if(!n)return o;const s=r.def,l=n.getTypeMap();let c=Object.keys(l);s&&(c=c.filter(f=>f!==s.name),c.unshift(s.name));for(const f of c){if(o.within.length+o.types.length+o.fields.length>=100)break;const h=l[f];if(s!==h&&zh(f,i)&&o.types.push({type:h}),!Xe(h)&&!ot(h)&&!Tt(h))continue;const g=h.getFields();for(const m in g){const y=g[m];let S;if(!zh(m,i))if(\"args\"in y){if(S=y.args.filter(x=>zh(x.name,i)),S.length===0)continue}else continue;o[s===h?\"within\":\"fields\"].push(...S?S.map(x=>({type:h,field:y,argument:x})):[{type:h,field:y}])}}return o},[r.def,n])}E(Hh,\"useSearchResults\"),Gf(Hh,\"useSearchResults\");function zh(e,t){try{const n=t.replace(/[^_0-9A-Za-z]/g,r=>\"\\\\\"+r);return e.search(new RegExp(n,\"i\"))!==-1}catch{return e.toLowerCase().indexOf(t.toLowerCase())!==-1}}E(zh,\"isMatch\"),Gf(zh,\"isMatch\");function Gh(e){return ie(\"span\",{className:\"graphiql-doc-explorer-search-type\",children:e.type.name})}E(Gh,\"Type\"),Gf(Gh,\"Type\");function J0(e){return lt(Oi,{children:[ie(\"span\",{className:\"graphiql-doc-explorer-search-field\",children:e.field.name}),e.argument?lt(Oi,{children:[\"(\",ie(\"span\",{className:\"graphiql-doc-explorer-search-argument\",children:e.argument.name}),\":\",\" \",Pf(e.argument.type,t=>ie(Gh,{type:t})),\")\"]}):null]})}E(J0,\"Field$1\"),Gf(J0,\"Field\");var dZ=Object.defineProperty,pZ=E((e,t)=>dZ(e,\"name\",{value:t,configurable:!0}),\"__name$l\");function hx(e){const{push:t}=Fl({nonNull:!0});return ie(\"a\",{className:\"graphiql-doc-explorer-field-name\",onClick:n=>{n.preventDefault(),t({name:e.field.name,def:e.field})},href:\"#\",children:e.field.name})}E(hx,\"FieldLink\"),pZ(hx,\"FieldLink\");var hZ=Object.defineProperty,Xu=E((e,t)=>hZ(e,\"name\",{value:t,configurable:!0}),\"__name$k\");function vx(e){return gl(e.type)?lt(Oi,{children:[e.type.description?ie($a,{type:\"description\",children:e.type.description}):null,ie(mx,{type:e.type}),ie(gx,{type:e.type}),ie(yx,{type:e.type}),ie(bx,{type:e.type})]}):null}E(vx,\"TypeDocumentation\"),Xu(vx,\"TypeDocumentation\");function mx({type:e}){return Xe(e)&&e.getInterfaces().length>0?ie(to,{title:\"Implements\",children:e.getInterfaces().map(n=>ie(\"div\",{children:ie(ua,{type:n})},n.name))}):null}E(mx,\"ImplementsInterfaces\"),Xu(mx,\"ImplementsInterfaces\");function gx({type:e}){const[t,n]=O.useState(!1);if(!Xe(e)&&!ot(e)&&!Tt(e))return null;const r=e.getFields(),i=[],o=[];for(const s of Object.keys(r).map(l=>r[l]))s.deprecationReason?o.push(s):i.push(s);return lt(Oi,{children:[i.length>0?ie(to,{title:\"Fields\",children:i.map(s=>ie(K0,{field:s},s.name))}):null,o.length>0?t||i.length===0?ie(to,{title:\"Deprecated Fields\",children:o.map(s=>ie(K0,{field:s},s.name))}):ie(Cl,{type:\"button\",onClick:()=>{n(!0)},children:\"Show Deprecated Fields\"}):null]})}E(gx,\"Fields\"),Xu(gx,\"Fields\");function K0({field:e}){const t=\"args\"in e?e.args.filter(n=>!n.deprecationReason):[];return lt(\"div\",{className:\"graphiql-doc-explorer-item\",children:[lt(\"div\",{children:[ie(hx,{field:e}),t.length>0?lt(Oi,{children:[\"(\",ie(\"span\",{children:t.map(n=>t.length===1?ie(Mf,{arg:n,inline:!0},n.name):ie(\"div\",{className:\"graphiql-doc-explorer-argument-multiple\",children:ie(Mf,{arg:n,inline:!0})},n.name))}),\")\"]}):null,\": \",ie(ua,{type:e.type}),ie(U0,{field:e})]}),e.description?ie($a,{type:\"description\",onlyShowFirstChild:!0,children:e.description}):null,ie(z0,{children:e.deprecationReason})]})}E(K0,\"Field\"),Xu(K0,\"Field\");function yx({type:e}){const[t,n]=O.useState(!1);if(!rn(e))return null;const r=[],i=[];for(const o of e.getValues())o.deprecationReason?i.push(o):r.push(o);return lt(Oi,{children:[r.length>0?ie(to,{title:\"Enum Values\",children:r.map(o=>ie(X0,{value:o},o.name))}):null,i.length>0?t||r.length===0?ie(to,{title:\"Deprecated Enum Values\",children:i.map(o=>ie(X0,{value:o},o.name))}):ie(Cl,{type:\"button\",onClick:()=>{n(!0)},children:\"Show Deprecated Values\"}):null]})}E(yx,\"EnumValues\"),Xu(yx,\"EnumValues\");function X0({value:e}){return lt(\"div\",{className:\"graphiql-doc-explorer-item\",children:[ie(\"div\",{className:\"graphiql-doc-explorer-enum-value\",children:e.name}),e.description?ie($a,{type:\"description\",children:e.description}):null,e.deprecationReason?ie($a,{type:\"deprecation\",children:e.deprecationReason}):null]})}E(X0,\"EnumValue\"),Xu(X0,\"EnumValue\");function bx({type:e}){const{schema:t}=la({nonNull:!0});return!t||!nr(e)?null:ie(to,{title:ot(e)?\"Implementations\":\"Possible Types\",children:t.getPossibleTypes(e).map(n=>ie(\"div\",{children:ie(ua,{type:n})},n.name))})}E(bx,\"PossibleTypes\"),Xu(bx,\"PossibleTypes\");var vZ=Object.defineProperty,mZ=E((e,t)=>vZ(e,\"name\",{value:t,configurable:!0}),\"__name$j\");function Wh(){const{fetchError:e,isFetching:t,schema:n,validationErrors:r}=la({nonNull:!0,caller:Wh}),{explorerNavStack:i,pop:o}=Fl({nonNull:!0,caller:Wh}),s=i[i.length-1];let l=null;e?l=ie(\"div\",{className:\"graphiql-doc-explorer-error\",children:\"Error fetching schema\"}):r.length>0?l=lt(\"div\",{className:\"graphiql-doc-explorer-error\",children:[\"Schema is invalid: \",r[0].message]}):t?l=ie(MC,{}):n?i.length===1?l=ie(ex,{schema:n}):vf(s.def)?l=ie(vx,{type:s.def}):s.def&&(l=ie(KC,{field:s.def})):l=ie(\"div\",{className:\"graphiql-doc-explorer-error\",children:\"No GraphQL schema available\"});let c;return i.length>1&&(c=i[i.length-2].name),lt(\"section\",{className:\"graphiql-doc-explorer\",\"aria-label\":\"Documentation Explorer\",children:[lt(\"div\",{className:\"graphiql-doc-explorer-header\",children:[lt(\"div\",{className:\"graphiql-doc-explorer-header-content\",children:[c&<(\"a\",{href:\"#\",className:\"graphiql-doc-explorer-back\",onClick:o,\"aria-label\":`Go back to ${c}`,children:[ie(PG,{}),c]}),ie(\"div\",{className:\"graphiql-doc-explorer-title\",children:s.name})]}),ie(\"div\",{className:\"graphiql-doc-explorer-search\",children:ie(Y0,{},s.name)})]}),ie(\"div\",{className:\"graphiql-doc-explorer-content\",children:l})]})}E(Wh,\"DocExplorer\"),mZ(Wh,\"DocExplorer\");var gZ=Object.defineProperty,O4=E((e,t)=>gZ(e,\"name\",{value:t,configurable:!0}),\"__name$i\");const Qh={title:\"Documentation Explorer\",icon:O4(E(function(){const t=Z0();return(t==null?void 0:t.visiblePlugin)===Qh?ie(qG,{}):ie(HG,{})},\"Icon\"),\"Icon\"),content:Wh},I4={title:\"History\",icon:WG,content:zC},L4=ms(\"PluginContext\");function Ex(e){const t=Tl(),n=Fl(),r=P0(),i=Boolean(n),o=Boolean(r),s=O.useMemo(()=>{const m=[],y={};i&&(m.push(Qh),y[Qh.title]=!0),o&&(m.push(I4),y[I4.title]=!0);for(const S of e.plugins||[]){if(typeof S.title!=\"string\"||!S.title)throw new Error(\"All GraphiQL plugins must have a unique title\");if(y[S.title])throw new Error(`All GraphiQL plugins must have a unique title, found two plugins with the title '${S.title}'`);m.push(S),y[S.title]=!0}return m},[i,o,e.plugins]),[l,c]=O.useState(()=>{const m=t==null?void 0:t.get(F4),y=s.find(S=>S.title===m);return y||(m&&(t==null||t.set(F4,\"\")),e.visiblePlugin&&s.find(S=>(typeof e.visiblePlugin==\"string\"?S.title:S)===e.visiblePlugin)||null)}),{onTogglePluginVisibility:f}=e,h=O.useCallback(m=>{const y=m&&s.find(S=>(typeof m==\"string\"?S.title:S)===m)||null;c(S=>y===S?S:(f==null||f(y),y))},[f,s]);O.useEffect(()=>{e.visiblePlugin&&h(e.visiblePlugin)},[s,e.visiblePlugin,h]);const g=O.useMemo(()=>({plugins:s,setVisiblePlugin:h,visiblePlugin:l}),[s,h,l]);return ie(L4.Provider,{value:g,children:e.children})}E(Ex,\"PluginContextProvider\"),O4(Ex,\"PluginContextProvider\");const Z0=gs(L4),F4=\"visiblePlugin\";var yZ=Object.defineProperty,Yh=E((e,t)=>yZ(e,\"name\",{value:t,configurable:!0}),\"__name$h\");function wx(e,t,n,r,i,o){Ju([],{useCommonAddons:!1}).then(l=>{let c,f,h,g,m,y,S,x,D;l.on(t,\"select\",(_,b)=>{if(!c){const C=b.parentNode;c=document.createElement(\"div\"),c.className=\"CodeMirror-hint-information\",C.appendChild(c);const T=document.createElement(\"header\");T.className=\"CodeMirror-hint-information-header\",c.appendChild(T),f=document.createElement(\"span\"),f.className=\"CodeMirror-hint-information-field-name\",T.appendChild(f),h=document.createElement(\"span\"),h.className=\"CodeMirror-hint-information-type-name-pill\",T.appendChild(h),g=document.createElement(\"span\"),h.appendChild(g),m=document.createElement(\"a\"),m.className=\"CodeMirror-hint-information-type-name\",m.href=\"javascript:void 0\",m.addEventListener(\"click\",s),h.appendChild(m),y=document.createElement(\"span\"),h.appendChild(y),S=document.createElement(\"div\"),S.className=\"CodeMirror-hint-information-description\",c.appendChild(S),x=document.createElement(\"div\"),x.className=\"CodeMirror-hint-information-deprecation\",c.appendChild(x);const N=document.createElement(\"span\");N.className=\"CodeMirror-hint-information-deprecation-label\",N.innerText=\"Deprecated\",x.appendChild(N),D=document.createElement(\"div\"),D.className=\"CodeMirror-hint-information-deprecation-reason\",x.appendChild(D);const F=parseInt(window.getComputedStyle(c).paddingBottom.replace(/px$/,\"\"),10)||0,L=Yh(()=>{c&&(c.style.paddingTop=C.scrollTop+F+\"px\")},\"handleScroll\");C.addEventListener(\"scroll\",L);let A;C.addEventListener(\"DOMNodeRemoved\",A=Yh(P=>{P.target===C&&(C.removeEventListener(\"scroll\",L),C.removeEventListener(\"DOMNodeRemoved\",A),c&&c.removeEventListener(\"click\",s),c=null,f=null,h=null,g=null,m=null,y=null,S=null,x=null,D=null,A=null)},\"onRemoveFn\"))}if(f&&(f.innerText=_.text),h&&g&&m&&y)if(_.type){h.style.display=\"inline\";const C=Yh(T=>{Ge(T)?(y.innerText=\"!\"+y.innerText,C(T.ofType)):St(T)?(g.innerText+=\"[\",y.innerText=\"]\"+y.innerText,C(T.ofType)):m.innerText=T.name},\"renderType\");g.innerText=\"\",y.innerText=\"\",C(_.type)}else g.innerText=\"\",m.innerText=\"\",y.innerText=\"\",h.style.display=\"none\";S&&(_.description?(S.style.display=\"block\",S.innerHTML=O0.render(_.description)):(S.style.display=\"none\",S.innerHTML=\"\")),x&&D&&(_.deprecationReason?(x.style.display=\"block\",D.innerHTML=O0.render(_.deprecationReason)):(x.style.display=\"none\",D.innerHTML=\"\"))})});function s(l){if(!n||!r||!i||!(l.currentTarget instanceof HTMLElement))return;const c=l.currentTarget.innerText,f=n.getType(c);f&&(i.setVisiblePlugin(Qh),r.push({name:f.name,def:f}),o==null||o(f))}E(s,\"onClickHintInformation\"),Yh(s,\"onClickHintInformation\")}E(wx,\"onHasCompletion\"),Yh(wx,\"onHasCompletion\");var bZ=Object.defineProperty,fa=E((e,t)=>bZ(e,\"name\",{value:t,configurable:!0}),\"__name$g\");function Wf(e,t){O.useEffect(()=>{e&&typeof t==\"string\"&&t!==e.getValue()&&e.setValue(t)},[e,t])}E(Wf,\"useSynchronizeValue\"),fa(Wf,\"useSynchronizeValue\");function Qf(e,t,n){O.useEffect(()=>{e&&e.setOption(t,n)},[e,t,n])}E(Qf,\"useSynchronizeOption\"),fa(Qf,\"useSynchronizeOption\");function e1(e,t,n,r,i){const{updateActiveTabValues:o}=Pr({nonNull:!0,caller:i}),s=Tl();O.useEffect(()=>{if(!e)return;const l=Ml(500,h=>{!s||n===null||s.set(n,h)}),c=Ml(100,h=>{o({[r]:h})}),f=fa((h,g)=>{if(!g)return;const m=h.getValue();l(m),c(m),t==null||t(m)},\"handleChange\");return e.on(\"change\",f),()=>e.off(\"change\",f)},[t,e,s,n,r,o])}E(e1,\"useChangeHandler\"),fa(e1,\"useChangeHandler\");function t1(e,t,n){const{schema:r}=la({nonNull:!0,caller:n}),i=Fl(),o=Z0();O.useEffect(()=>{if(!e)return;const s=fa((l,c)=>{wx(l,c,r,i,o,f=>{t==null||t({kind:\"Type\",type:f,schema:r||void 0})})},\"handleCompletion\");return e.on(\"hasCompletion\",s),()=>e.off(\"hasCompletion\",s)},[t,e,i,o,r])}E(t1,\"useCompletion\"),fa(t1,\"useCompletion\");function Do(e,t,n){O.useEffect(()=>{if(e){for(const r of t)e.removeKeyMap(r);if(n){const r={};for(const i of t)r[i]=()=>n();e.addKeyMap(r)}}},[e,t,n])}E(Do,\"useKeyMap\"),fa(Do,\"useKeyMap\");function Jh({caller:e,onCopyQuery:t}={}){const{queryEditor:n}=Pr({nonNull:!0,caller:e||Jh});return O.useCallback(()=>{if(!n)return;const r=n.getValue();DX(r),t==null||t(r)},[n,t])}E(Jh,\"useCopyQuery\"),fa(Jh,\"useCopyQuery\");function $l({caller:e}={}){const{queryEditor:t}=Pr({nonNull:!0,caller:e||$l}),{schema:n}=la({nonNull:!0,caller:$l});return O.useCallback(()=>{const r=t==null?void 0:t.documentAST,i=t==null?void 0:t.getValue();!r||!i||t.setValue(gt(BF(r,n)))},[t,n])}E($l,\"useMergeQuery\"),fa($l,\"useMergeQuery\");function Zu({caller:e}={}){const{queryEditor:t,headerEditor:n,variableEditor:r}=Pr({nonNull:!0,caller:e||Zu});return O.useCallback(()=>{if(r){const i=r.getValue();try{const o=JSON.stringify(JSON.parse(i),null,2);o!==i&&r.setValue(o)}catch{}}if(n){const i=n.getValue();try{const o=JSON.stringify(JSON.parse(i),null,2);o!==i&&n.setValue(o)}catch{}}if(t){const i=t.getValue(),o=gt(zr(i));o!==i&&t.setValue(o)}},[t,r,n])}E(Zu,\"usePrettifyEditors\"),fa(Zu,\"usePrettifyEditors\");function Kh({getDefaultFieldNames:e,caller:t}={}){const{schema:n}=la({nonNull:!0,caller:t||Kh}),{queryEditor:r}=Pr({nonNull:!0,caller:t||Kh});return O.useCallback(()=>{if(!r)return;const i=r.getValue(),{insertions:o,result:s}=FF(n,i,e);return o&&o.length>0&&r.operation(()=>{const l=r.getCursor(),c=r.indexFromPos(l);r.setValue(s||\"\");let f=0;const h=o.map(({index:m,string:y})=>r.markText(r.posFromIndex(m+f),r.posFromIndex(m+(f+=y.length)),{className:\"auto-inserted-leaf\",clearOnEnter:!0,title:\"Automatically added leaf fields\"}));setTimeout(()=>h.forEach(m=>m.clear()),7e3);let g=c;o.forEach(({index:m,string:y})=>{m<c&&(g+=y.length)}),r.setCursor(r.posFromIndex(g))}),s},[e,r,n])}E(Kh,\"useAutoCompleteLeafs\"),fa(Kh,\"useAutoCompleteLeafs\");var EZ=Object.defineProperty,wZ=E((e,t)=>EZ(e,\"name\",{value:t,configurable:!0}),\"__name$f\");function ec({editorTheme:e=V0,keyMap:t=B0,onEdit:n,readOnly:r=!1}={},i){const{initialHeaders:o,headerEditor:s,setHeaderEditor:l,shouldPersistHeaders:c}=Pr({nonNull:!0,caller:i||ec}),f=Rf(),h=$l({caller:i||ec}),g=Zu({caller:i||ec}),m=O.useRef(null);return O.useEffect(()=>{let y=!0;return Ju([Promise.resolve().then(()=>foe).then(function(S){return S.j})]).then(S=>{if(!y)return;const x=m.current;if(!x)return;const D=S(x,{value:o,lineNumbers:!0,tabSize:2,mode:{name:\"javascript\",json:!0},theme:e,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:r?\"nocursor\":!1,foldGutter:!0,gutters:[\"CodeMirror-linenumbers\",\"CodeMirror-foldgutter\"],extraKeys:j0});D.addKeyMap({\"Cmd-Space\"(){D.showHint({completeSingle:!1,container:x})},\"Ctrl-Space\"(){D.showHint({completeSingle:!1,container:x})},\"Alt-Space\"(){D.showHint({completeSingle:!1,container:x})},\"Shift-Space\"(){D.showHint({completeSingle:!1,container:x})}}),D.on(\"keyup\",(_,b)=>{const C=b.keyCode;(C>=65&&C<=90||!b.shiftKey&&C>=48&&C<=57||b.shiftKey&&C===189||b.shiftKey&&C===222)&&_.execCommand(\"autocomplete\")}),l(D)}),()=>{y=!1}},[e,o,r,l]),Qf(s,\"keyMap\",t),e1(s,n,c?R4:null,\"headers\",ec),Do(s,[\"Cmd-Enter\",\"Ctrl-Enter\"],f==null?void 0:f.run),Do(s,[\"Shift-Ctrl-P\"],g),Do(s,[\"Shift-Ctrl-M\"],h),m}E(ec,\"useHeaderEditor\"),wZ(ec,\"useHeaderEditor\");const R4=\"headers\";var SZ=Object.defineProperty,TZ=E((e,t)=>SZ(e,\"name\",{value:t,configurable:!0}),\"__name$e\");const _Z=Array.from({length:11},(e,t)=>String.fromCharCode(8192+t)).concat([\"\\u2028\",\"\\u2029\",\" \",\" \"]),CZ=new RegExp(\"[\"+_Z.join(\"\")+\"]\",\"g\");function Sx(e){return e.replace(CZ,\" \")}E(Sx,\"normalizeWhitespace\"),TZ(Sx,\"normalizeWhitespace\");var xZ=Object.defineProperty,Xh=E((e,t)=>xZ(e,\"name\",{value:t,configurable:!0}),\"__name$d\");function Cs({editorTheme:e=V0,keyMap:t=B0,onClickReference:n,onCopyQuery:r,onEdit:i,readOnly:o=!1}={},s){const{schema:l}=la({nonNull:!0,caller:s||Cs}),{externalFragments:c,initialQuery:f,queryEditor:h,setOperationName:g,setQueryEditor:m,validationRules:y,variableEditor:S,updateActiveTabValues:x}=Pr({nonNull:!0,caller:s||Cs}),D=Rf(),_=Tl(),b=Fl(),C=Z0(),T=Jh({caller:s||Cs,onCopyQuery:r}),N=$l({caller:s||Cs}),F=Zu({caller:s||Cs}),L=O.useRef(null),A=O.useRef(),P=O.useRef(()=>{});O.useEffect(()=>{P.current=G=>{!b||!C||(C.setVisiblePlugin(Qh),G&&G.kind===\"Type\"?b.push({name:G.type.name,def:G.type}):G.kind===\"Field\"?b.push({name:G.field.name,def:G.field}):G.kind===\"Argument\"&&G.field?b.push({name:G.field.name,def:G.field}):G.kind===\"EnumValue\"&&G.type&&b.push({name:G.type.name,def:G.type}),n==null||n(G))}},[b,n,C]),O.useEffect(()=>{let G=!0;return Ju([Promise.resolve().then(()=>voe).then(function(z){return z.c}),Promise.resolve().then(()=>o$).then(function(z){return z.s}),Promise.resolve().then(()=>zoe),Promise.resolve().then(()=>Yoe),Promise.resolve().then(()=>nae),Promise.resolve().then(()=>oae),Promise.resolve().then(()=>lae)]).then(z=>{if(!G)return;A.current=z;const U=L.current;if(!U)return;const j=z(U,{value:f,lineNumbers:!0,tabSize:2,foldGutter:!0,mode:\"graphql\",theme:e,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:o?\"nocursor\":!1,lint:{schema:void 0,validationRules:null,externalFragments:void 0},hintOptions:{schema:void 0,closeOnUnfocus:!1,completeSingle:!1,container:U,externalFragments:void 0},info:{schema:void 0,renderDescription:X=>O0.render(X),onClick:X=>{P.current(X)}},jump:{schema:void 0,onClick:X=>{P.current(X)}},gutters:[\"CodeMirror-linenumbers\",\"CodeMirror-foldgutter\"],extraKeys:Kt(Dt({},j0),{\"Cmd-S\"(){},\"Ctrl-S\"(){}})});j.addKeyMap({\"Cmd-Space\"(){j.showHint({completeSingle:!0,container:U})},\"Ctrl-Space\"(){j.showHint({completeSingle:!0,container:U})},\"Alt-Space\"(){j.showHint({completeSingle:!0,container:U})},\"Shift-Space\"(){j.showHint({completeSingle:!0,container:U})},\"Shift-Alt-Space\"(){j.showHint({completeSingle:!0,container:U})}}),j.on(\"keyup\",(X,ne)=>{kZ.test(ne.key)&&X.execCommand(\"autocomplete\")}),j.on(\"beforeChange\",(X,ne)=>{var J;if(ne.origin===\"paste\"){const re=ne.text.map(Sx);(J=ne.update)==null||J.call(ne,ne.from,ne.to,re)}}),j.documentAST=null,j.operationName=null,j.operations=null,j.variableToType=null,m(j)}),()=>{G=!1}},[e,f,o,m]),Qf(h,\"keyMap\",t),O.useEffect(()=>{if(!h)return;function G(U){var j,X,ne,J,re;const Z=e5(l,U.getValue()),de=jF((j=U.operations)!=null?j:void 0,(X=U.operationName)!=null?X:void 0,Z==null?void 0:Z.operations);return U.documentAST=(ne=Z==null?void 0:Z.documentAST)!=null?ne:null,U.operationName=de??null,U.operations=(J=Z==null?void 0:Z.operations)!=null?J:null,S&&(S.state.lint.linterOptions.variableToType=Z==null?void 0:Z.variableToType,S.options.lint.variableToType=Z==null?void 0:Z.variableToType,S.options.hintOptions.variableToType=Z==null?void 0:Z.variableToType,(re=A.current)==null||re.signal(S,\"change\",S)),Z?Kt(Dt({},Z),{operationName:de}):null}E(G,\"getAndUpdateOperationFacts\"),Xh(G,\"getAndUpdateOperationFacts\");const z=Ml(100,U=>{var j;const X=U.getValue();_==null||_.set(P4,X);const ne=U.operationName,J=G(U);(J==null?void 0:J.operationName)!==void 0&&(_==null||_.set(NZ,J.operationName)),i==null||i(X,J==null?void 0:J.documentAST),J!=null&&J.operationName&&ne!==J.operationName&&g(J.operationName),x({query:X,operationName:(j=J==null?void 0:J.operationName)!=null?j:null})});return G(h),h.on(\"change\",z),()=>h.off(\"change\",z)},[i,h,l,g,_,S,x]),Tx(h,l??null,A),_x(h,y??null,A),Cx(h,c,A),t1(h,n||null,Cs);const V=D==null?void 0:D.run,H=O.useCallback(()=>{var G;if(!V||!h||!h.operations||!h.hasFocus()){V==null||V();return}const z=h.indexFromPos(h.getCursor());let U;for(const j of h.operations)j.loc&&j.loc.start<=z&&j.loc.end>=z&&(U=(G=j.name)==null?void 0:G.value);U&&U!==h.operationName&&g(U),V()},[h,V,g]);return Do(h,[\"Cmd-Enter\",\"Ctrl-Enter\"],H),Do(h,[\"Shift-Ctrl-C\"],T),Do(h,[\"Shift-Ctrl-P\",\"Shift-Ctrl-F\"],F),Do(h,[\"Shift-Ctrl-M\"],N),L}E(Cs,\"useQueryEditor\"),Xh(Cs,\"useQueryEditor\");function Tx(e,t,n){O.useEffect(()=>{if(!e)return;const r=e.options.lint.schema!==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,r&&n.current&&n.current.signal(e,\"change\",e)},[e,t,n])}E(Tx,\"useSynchronizeSchema\"),Xh(Tx,\"useSynchronizeSchema\");function _x(e,t,n){O.useEffect(()=>{if(!e)return;const r=e.options.lint.validationRules!==t;e.state.lint.linterOptions.validationRules=t,e.options.lint.validationRules=t,r&&n.current&&n.current.signal(e,\"change\",e)},[e,t,n])}E(_x,\"useSynchronizeValidationRules\"),Xh(_x,\"useSynchronizeValidationRules\");function Cx(e,t,n){const r=O.useMemo(()=>[...t.values()],[t]);O.useEffect(()=>{if(!e)return;const i=e.options.lint.externalFragments!==r;e.state.lint.linterOptions.externalFragments=r,e.options.lint.externalFragments=r,e.options.hintOptions.externalFragments=r,i&&n.current&&n.current.signal(e,\"change\",e)},[e,r,n])}E(Cx,\"useSynchronizeExternalFragments\"),Xh(Cx,\"useSynchronizeExternalFragments\");const kZ=/^[a-zA-Z0-9_@(]$/,P4=\"query\",NZ=\"operationName\";var DZ=Object.defineProperty,mi=E((e,t)=>DZ(e,\"name\",{value:t,configurable:!0}),\"__name$c\");function xx({defaultQuery:e,headers:t,query:n,variables:r,storage:i}){const o=i==null?void 0:i.get(M4);try{if(!o)throw new Error(\"Storage for tabs is empty\");const s=JSON.parse(o);if(kx(s)){const l=Yf({query:n,variables:r,headers:t});let c=-1;for(let f=0;f<s.tabs.length;f++){const h=s.tabs[f];h.hash=Yf({query:h.query,variables:h.variables,headers:h.headers}),h.hash===l&&(c=f)}if(c>=0)s.activeTabIndex=c;else{const f=n?a1(n):null;s.tabs.push({id:o1(),hash:l,title:f||Lx,query:n,variables:r,headers:t,operationName:f,response:null}),s.activeTabIndex=s.tabs.length-1}return s}else throw new Error(\"Storage for tabs is invalid\")}catch{return{activeTabIndex:0,tabs:[r1({query:n??e,variables:r,headers:t})]}}}E(xx,\"getDefaultTabState\"),mi(xx,\"getDefaultTabState\");function kx(e){return e&&typeof e==\"object\"&&!Array.isArray(e)&&Dx(e,\"activeTabIndex\")&&\"tabs\"in e&&Array.isArray(e.tabs)&&e.tabs.every(Nx)}E(kx,\"isTabsState\"),mi(kx,\"isTabsState\");function Nx(e){return e&&typeof e==\"object\"&&!Array.isArray(e)&&n1(e,\"id\")&&n1(e,\"title\")&&tc(e,\"query\")&&tc(e,\"variables\")&&tc(e,\"headers\")&&tc(e,\"operationName\")&&tc(e,\"response\")}E(Nx,\"isTabState\"),mi(Nx,\"isTabState\");function Dx(e,t){return t in e&&typeof e[t]==\"number\"}E(Dx,\"hasNumberKey\"),mi(Dx,\"hasNumberKey\");function n1(e,t){return t in e&&typeof e[t]==\"string\"}E(n1,\"hasStringKey\"),mi(n1,\"hasStringKey\");function tc(e,t){return t in e&&(typeof e[t]==\"string\"||e[t]===null)}E(tc,\"hasStringOrNullKey\"),mi(tc,\"hasStringOrNullKey\"),window.g={};function Ax({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r}){return window.g.resultComponent={viewer:r},O.useCallback(i=>{var o,s,l,c,f;const h=(o=e==null?void 0:e.getValue())!=null?o:null,g=(s=t==null?void 0:t.getValue())!=null?s:null,m=(l=n==null?void 0:n.getValue())!=null?l:null,y=(c=e==null?void 0:e.operationName)!=null?c:null,S=(f=r==null?void 0:r.getValue())!=null?f:null;return i1(i,{query:h,variables:g,headers:m,response:S,operationName:y})},[e,t,n,r])}E(Ax,\"useSynchronizeActiveTabValues\"),mi(Ax,\"useSynchronizeActiveTabValues\");function Ox({storage:e,shouldPersistHeaders:t}){const n=O.useMemo(()=>Ml(500,r=>{e==null||e.set(M4,r)}),[e]);return O.useCallback(r=>{n(JSON.stringify(r,(i,o)=>i===\"hash\"||i===\"response\"||!t&&i===\"headers\"?null:o))},[t,n])}E(Ox,\"useStoreTabs\"),mi(Ox,\"useStoreTabs\");function Ix({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r}){return O.useCallback(({query:i,variables:o,headers:s,response:l})=>{e==null||e.setValue(i??\"\"),t==null||t.setValue(o??\"\"),n==null||n.setValue(s??\"\"),r==null||r.setValue(l??\"\")},[n,e,r,t])}E(Ix,\"useSetEditorValues\"),mi(Ix,\"useSetEditorValues\");function r1({query:e=null,variables:t=null,headers:n=null}={}){return{id:o1(),hash:Yf({query:e,variables:t,headers:n}),title:Lx,query:e,variables:t,headers:n,operationName:null,response:null}}E(r1,\"createTab\"),mi(r1,\"createTab\");function i1(e,t){return Kt(Dt({},e),{tabs:e.tabs.map((n,r)=>{if(r!==e.activeTabIndex)return n;const i=Dt(Dt({},n),t);return Kt(Dt({},i),{hash:Yf(i),title:i.operationName||(i.query?a1(i.query):void 0)||Lx})})})}E(i1,\"setPropertiesInActiveTab\"),mi(i1,\"setPropertiesInActiveTab\");function o1(){const e=mi(()=>Math.floor((1+Math.random())*65536).toString(16).substring(1),\"s4\");return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}E(o1,\"guid\"),mi(o1,\"guid\");function Yf(e){var t,n,r;return[(t=e.query)!=null?t:\"\",(n=e.variables)!=null?n:\"\",(r=e.headers)!=null?r:\"\"].join(\"|\")}E(Yf,\"hashFromTabContents\"),mi(Yf,\"hashFromTabContents\");function a1(e){var t;const r=/^(?!.*#).*(query|subscription|mutation)\\s+([a-zA-Z0-9_]+)/.exec(e);return(t=r==null?void 0:r[2])!=null?t:null}E(a1,\"fuzzyExtractOperationName\"),mi(a1,\"fuzzyExtractOperationName\");const Lx=\"<untitled>\",M4=\"tabState\";var AZ=Object.defineProperty,OZ=E((e,t)=>AZ(e,\"name\",{value:t,configurable:!0}),\"__name$b\");function Vl({editorTheme:e=V0,keyMap:t=B0,onClickReference:n,onEdit:r,readOnly:i=!1}={},o){const{initialVariables:s,variableEditor:l,setVariableEditor:c}=Pr({nonNull:!0,caller:o||Vl}),f=Rf(),h=$l({caller:o||Vl}),g=Zu({caller:o||Vl}),m=O.useRef(null),y=O.useRef();return O.useEffect(()=>{let S=!0;return Ju([Promise.resolve().then(()=>cae),Promise.resolve().then(()=>dae),Promise.resolve().then(()=>mae)]).then(x=>{if(!S)return;y.current=x;const D=m.current;if(!D)return;const _=x(D,{value:s,lineNumbers:!0,tabSize:2,mode:\"graphql-variables\",theme:e,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:i?\"nocursor\":!1,foldGutter:!0,lint:{variableToType:void 0},hintOptions:{closeOnUnfocus:!1,completeSingle:!1,container:D,variableToType:void 0},gutters:[\"CodeMirror-linenumbers\",\"CodeMirror-foldgutter\"],extraKeys:j0});_.addKeyMap({\"Cmd-Space\"(){_.showHint({completeSingle:!1,container:D})},\"Ctrl-Space\"(){_.showHint({completeSingle:!1,container:D})},\"Alt-Space\"(){_.showHint({completeSingle:!1,container:D})},\"Shift-Space\"(){_.showHint({completeSingle:!1,container:D})}}),_.on(\"keyup\",(b,C)=>{const T=C.keyCode;(T>=65&&T<=90||!C.shiftKey&&T>=48&&T<=57||C.shiftKey&&T===189||C.shiftKey&&T===222)&&b.execCommand(\"autocomplete\")}),c(_)}),()=>{S=!1}},[e,s,i,c]),Qf(l,\"keyMap\",t),e1(l,r,$4,\"variables\",Vl),t1(l,n||null,Vl),Do(l,[\"Cmd-Enter\",\"Ctrl-Enter\"],f==null?void 0:f.run),Do(l,[\"Shift-Ctrl-P\"],g),Do(l,[\"Shift-Ctrl-M\"],h),m}E(Vl,\"useVariableEditor\"),OZ(Vl,\"useVariableEditor\");const $4=\"variables\";var IZ=Object.defineProperty,LZ=E((e,t)=>IZ(e,\"name\",{value:t,configurable:!0}),\"__name$a\");const V4=ms(\"EditorContext\");function Fx(e){const t=Tl(),[n,r]=O.useState(null),[i,o]=O.useState(null),[s,l]=O.useState(null),[c,f]=O.useState(null);Wf(n,e.headers),Wf(i,e.query),Wf(s,e.response),Wf(c,e.variables);const h=Ox({storage:t,shouldPersistHeaders:e.shouldPersistHeaders}),[g]=O.useState(()=>{var V,H,G,z,U,j,X,ne;const J=(H=(V=e.query)!=null?V:t==null?void 0:t.get(P4))!=null?H:null,re=(z=(G=e.variables)!=null?G:t==null?void 0:t.get($4))!=null?z:null,Z=(j=(U=e.headers)!=null?U:t==null?void 0:t.get(R4))!=null?j:null,de=(X=e.response)!=null?X:\"\",K=xx({query:J,variables:re,headers:Z,defaultQuery:e.defaultQuery||FZ,storage:t});return h(K),{query:(ne=J??(K.activeTabIndex===0?K.tabs[0].query:null))!=null?ne:\"\",variables:re??\"\",headers:Z??\"\",response:de,tabState:K}}),[m,y]=O.useState(g.tabState),S=Ax({queryEditor:i,variableEditor:c,headerEditor:n,responseEditor:s}),x=Ix({queryEditor:i,variableEditor:c,headerEditor:n,responseEditor:s}),{onTabChange:D}=e,_=O.useCallback(()=>{y(V=>{const H=S(V),G={tabs:[...H.tabs,r1()],activeTabIndex:H.tabs.length};return h(G),x(G.tabs[G.activeTabIndex]),D==null||D(G),G})},[D,x,h,S]),b=O.useCallback(V=>{y(H=>{const G=Kt(Dt({},S(H)),{activeTabIndex:V});return h(G),x(G.tabs[G.activeTabIndex]),D==null||D(G),G})},[D,x,h,S]),C=O.useCallback(V=>{y(H=>{const G={tabs:H.tabs.filter((z,U)=>V!==U),activeTabIndex:Math.max(H.activeTabIndex-1,0)};return h(G),x(G.tabs[G.activeTabIndex]),D==null||D(G),G})},[D,x,h]),T=O.useCallback(V=>{y(H=>{const G=i1(H,V);return h(G),D==null||D(G),G})},[D,h]),{onEditOperationName:N}=e,F=O.useCallback(V=>{i&&(i.operationName=V,T({operationName:V}),N==null||N(V))},[N,i,T]),L=O.useMemo(()=>{const V=new Map;if(Array.isArray(e.externalFragments))for(const H of e.externalFragments)V.set(H.name.value,H);else if(typeof e.externalFragments==\"string\")Hn(zr(e.externalFragments,{}),{FragmentDefinition(H){V.set(H.name.value,H)}});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.\");return V},[e.externalFragments]),A=O.useMemo(()=>e.validationRules||[],[e.validationRules]),P=O.useMemo(()=>Kt(Dt({},m),{addTab:_,changeTab:b,closeTab:C,updateActiveTabValues:T,headerEditor:n,queryEditor:i,responseEditor:s,variableEditor:c,setHeaderEditor:r,setQueryEditor:o,setResponseEditor:l,setVariableEditor:f,setOperationName:F,initialQuery:g.query,initialVariables:g.variables,initialHeaders:g.headers,initialResponse:g.response,externalFragments:L,validationRules:A,shouldPersistHeaders:e.shouldPersistHeaders||!1}),[m,_,b,C,T,n,i,s,c,F,g,L,A,e.shouldPersistHeaders]);return ie(V4.Provider,{value:P,children:e.children})}E(Fx,\"EditorContextProvider\"),LZ(Fx,\"EditorContextProvider\");const Pr=gs(V4),FZ=`# 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`;var RZ=Object.defineProperty,PZ=E((e,t)=>RZ(e,\"name\",{value:t,configurable:!0}),\"__name$9\");function Zh(e){var t=e,{isHidden:n}=t,r=mt(t,[\"isHidden\"]);const{headerEditor:i}=Pr({nonNull:!0,caller:Zh}),o=ec(r,Zh);return O.useEffect(()=>{i&&!n&&i.refresh()},[i,n]),ie(\"div\",{className:`graphiql-editor${n?\" hidden\":\"\"}`,ref:o})}E(Zh,\"HeaderEditor\"),PZ(Zh,\"HeaderEditor\");var MZ=Object.defineProperty,s1=E((e,t)=>MZ(e,\"name\",{value:t,configurable:!0}),\"__name$8\");function ev(e){var t;const[n,r]=O.useState({width:null,height:null}),[i,o]=O.useState(null),s=O.useRef(null),l=(t=l1(e.token))==null?void 0:t.href;O.useEffect(()=>{if(s.current){if(!l){r({width:null,height:null}),o(null);return}fetch(l,{method:\"HEAD\"}).then(f=>{o(f.headers.get(\"Content-Type\"))}).catch(()=>{o(null)})}},[l]);const c=n.width!==null&&n.height!==null?lt(\"div\",{children:[n.width,\"x\",n.height,i!==null?\" \"+i:null]}):null;return lt(\"div\",{children:[ie(\"img\",{onLoad:()=>{var f,h,g,m;r({width:(h=(f=s.current)==null?void 0:f.naturalWidth)!=null?h:null,height:(m=(g=s.current)==null?void 0:g.naturalHeight)!=null?m:null})},ref:s,src:l}),c]})}E(ev,\"ImagePreview\"),s1(ev,\"ImagePreview\"),ev.shouldRender=s1(E(function(t){const n=l1(t);return n?Rx(n):!1},\"shouldRender\"),\"shouldRender\");function l1(e){if(e.type!==\"string\")return;const t=e.string.slice(1).slice(0,-1).trim();try{const n=window.location;return new URL(t,n.protocol+\"//\"+n.host)}catch{return}}E(l1,\"tokenToURL\"),s1(l1,\"tokenToURL\");function Rx(e){return/(bmp|gif|jpeg|jpg|png|svg)$/.test(e.pathname)}E(Rx,\"isImageURL\"),s1(Rx,\"isImageURL\");var $Z=Object.defineProperty,VZ=E((e,t)=>$Z(e,\"name\",{value:t,configurable:!0}),\"__name$7\");function u1(e){const t=Cs(e,u1);return ie(\"div\",{className:\"graphiql-editor\",ref:t})}E(u1,\"QueryEditor\"),VZ(u1,\"QueryEditor\");var BZ=Object.defineProperty,jZ=E((e,t)=>BZ(e,\"name\",{value:t,configurable:!0}),\"__name$6\");function tv({responseTooltip:e,editorTheme:t=V0,keyMap:n=B0}={},r){const{fetchError:i,validationErrors:o}=la({nonNull:!0,caller:r||tv}),{initialResponse:s,responseEditor:l,setResponseEditor:c}=Pr({nonNull:!0,caller:r||tv}),f=O.useRef(null),h=O.useRef(e);return O.useEffect(()=>{h.current=e},[e]),O.useEffect(()=>{let g=!0;return Ju([Promise.resolve().then(()=>B6).then(function(m){return m.f}),Promise.resolve().then(()=>M6).then(function(m){return m.b}),Promise.resolve().then(()=>G6).then(function(m){return m.d}),Promise.resolve().then(()=>o$).then(function(m){return m.s}),Promise.resolve().then(()=>H6).then(function(m){return m.s}),Promise.resolve().then(()=>Y6).then(function(m){return m.j}),Promise.resolve().then(()=>X6).then(function(m){return m.s}),Promise.resolve().then(()=>wae),Promise.resolve().then(()=>eae)],{useCommonAddons:!1}).then(m=>{if(!g)return;const y=document.createElement(\"div\");m.registerHelper(\"info\",\"graphql-results\",(D,_,b,C)=>{const T=[],N=h.current;return N&&T.push(ie(N,{pos:C,token:D})),ev.shouldRender(D)&&T.push(ie(ev,{token:D},\"image-preview\")),T.length?(CS.render(T,y),y):(CS.unmountComponentAtNode(y),null)});const S=f.current;if(!S)return;const x=m(S,{value:s,lineWrapping:!0,readOnly:!0,theme:t,mode:\"graphql-results\",foldGutter:!0,gutters:[\"CodeMirror-foldgutter\"],info:!0,extraKeys:j0});c(x)}),()=>{g=!1}},[t,s,c]),Qf(l,\"keyMap\",n),O.useEffect(()=>{i&&(l==null||l.setValue(i)),o.length>0&&(l==null||l.setValue($u(o)))},[l,i,o]),f}E(tv,\"useResponseEditor\"),jZ(tv,\"useResponseEditor\");var UZ=Object.defineProperty,qZ=E((e,t)=>UZ(e,\"name\",{value:t,configurable:!0}),\"__name$5\");function c1(e){const t=tv(e,c1);return ie(\"section\",{className:\"result-window\",\"aria-label\":\"Result Window\",\"aria-live\":\"polite\",\"aria-atomic\":\"true\",ref:t})}E(c1,\"ResponseEditor\"),qZ(c1,\"ResponseEditor\");var HZ=Object.defineProperty,zZ=E((e,t)=>HZ(e,\"name\",{value:t,configurable:!0}),\"__name$4\");function nv(e){var t=e,{isHidden:n}=t,r=mt(t,[\"isHidden\"]);const{variableEditor:i}=Pr({nonNull:!0,caller:nv}),o=Vl(r,nv);return O.useEffect(()=>{i&&!n&&i.refresh()},[i,n]),ie(\"div\",{className:`graphiql-editor${n?\" hidden\":\"\"}`,ref:o})}E(nv,\"VariableEditor\"),zZ(nv,\"VariableEditor\");var GZ=Object.defineProperty,WZ=E((e,t)=>GZ(e,\"name\",{value:t,configurable:!0}),\"__name$3\");function f1({children:e,dangerouslyAssumeSchemaIsValid:t,defaultQuery:n,externalFragments:r,fetcher:i,getDefaultFieldNames:o,headers:s,inputValueDeprecation:l,introspectionQueryName:c,maxHistoryLength:f,onEditOperationName:h,onSchemaChange:g,onTabChange:m,onTogglePluginVisibility:y,operationName:S,plugins:x,query:D,response:_,schema:b,schemaDescription:C,shouldPersistHeaders:T,storage:N,validationRules:F,variables:L,visiblePlugin:A}){return ie(MT,{storage:N,children:ie(qC,{maxHistoryLength:f,children:ie(Fx,{defaultQuery:n,externalFragments:r,headers:s,onEditOperationName:h,onTabChange:m,query:D,response:_,shouldPersistHeaders:T,validationRules:F,variables:L,children:ie(q0,{dangerouslyAssumeSchemaIsValid:t,fetcher:i,inputValueDeprecation:l,introspectionQueryName:c,onSchemaChange:g,schema:b,schemaDescription:C,children:ie(Uh,{getDefaultFieldNames:o,fetcher:i,operationName:S,children:ie(H0,{children:ie(Ex,{onTogglePluginVisibility:y,plugins:x,visiblePlugin:A,children:e})})})})})})})}E(f1,\"GraphiQLProvider\"),WZ(f1,\"GraphiQLProvider\");var QZ=Object.defineProperty,YZ=E((e,t)=>QZ(e,\"name\",{value:t,configurable:!0}),\"__name$2\");function Px(){const e=Tl(),[t,n]=O.useState(()=>{if(!e)return null;const i=e.get(Mx);switch(i){case\"light\":return\"light\";case\"dark\":return\"dark\";default:return typeof i==\"string\"&&e.set(Mx,\"\"),null}});O.useLayoutEffect(()=>{typeof window>\"u\"||(document.body.classList.remove(\"graphiql-light\"),document.body.classList.remove(\"graphiql-dark\"),t&&document.body.classList.add(`graphiql-${t}`))},[t]);const r=O.useCallback(i=>{e==null||e.set(Mx,i||\"\"),n(i)},[e]);return O.useMemo(()=>({theme:t,setTheme:r}),[t,r])}E(Px,\"useTheme\"),YZ(Px,\"useTheme\");const Mx=\"theme\";var JZ=Object.defineProperty,rv=E((e,t)=>JZ(e,\"name\",{value:t,configurable:!0}),\"__name$1\");function iv({defaultSizeRelation:e=KZ,direction:t,initiallyHidden:n,onHiddenElementChange:r,sizeThresholdFirst:i=100,sizeThresholdSecond:o=100,storageKey:s}){const l=Tl(),c=O.useMemo(()=>Ml(500,b=>{l&&s&&l.set(s,b)}),[l,s]),[f,h]=O.useState(()=>{const b=l&&s?l.get(s):null;return b===d1||n===\"first\"?\"first\":b===p1||n===\"second\"?\"second\":null}),g=O.useCallback(b=>{b!==f&&(h(b),r==null||r(b))},[f,r]),m=O.useRef(null),y=O.useRef(null),S=O.useRef(null),x=O.useRef(`${e}`);O.useLayoutEffect(()=>{const b=l&&s&&l.get(s)||x.current,C=t===\"horizontal\"?\"row\":\"column\";m.current&&(m.current.style.display=\"flex\",m.current.style.flexDirection=C,m.current.style.flex=b===d1||b===p1?x.current:b),S.current&&(S.current.style.display=\"flex\",S.current.style.flexDirection=C,S.current.style.flex=\"1\"),y.current&&(y.current.style.display=\"flex\",y.current.style.flexDirection=C)},[t,l,s]);const D=O.useCallback(b=>{const C=b===\"first\"?m.current:S.current;if(C&&(C.style.left=\"-1000px\",C.style.position=\"absolute\",C.style.opacity=\"0\",C.style.height=\"500px\",C.style.width=\"500px\",m.current)){const T=parseFloat(m.current.style.flex);(!Number.isFinite(T)||T<1)&&(m.current.style.flex=\"1\"),m.current.style.flex}},[]),_=O.useCallback(b=>{const C=b===\"first\"?m.current:S.current;if(C&&(C.style.width=\"\",C.style.height=\"\",C.style.opacity=\"\",C.style.position=\"\",C.style.left=\"\",m.current&&l&&s)){const T=l==null?void 0:l.get(s);T!==d1&&T!==p1&&(m.current.style.flex=T||x.current)}},[l,s]);return O.useLayoutEffect(()=>{f===\"first\"?D(\"first\"):_(\"first\"),f===\"second\"?D(\"second\"):_(\"second\")},[f,D,_]),O.useEffect(()=>{if(!y.current||!m.current||!S.current)return;const b=y.current,C=m.current,T=C.parentElement,N=t===\"horizontal\"?\"clientX\":\"clientY\",F=t===\"horizontal\"?\"left\":\"top\",L=t===\"horizontal\"?\"right\":\"bottom\",A=t===\"horizontal\"?\"clientWidth\":\"clientHeight\";function P(H){H.preventDefault();const G=H[N]-b.getBoundingClientRect()[F];function z(j){if(j.buttons===0)return U();const X=j[N]-T.getBoundingClientRect()[F]-G,ne=T.getBoundingClientRect()[L]-j[N]+G-b[A];if(X<i)g(\"first\"),c(d1);else if(ne<o)g(\"second\"),c(p1);else{g(null);const J=`${X/ne}`;C.style.flex=J,c(J)}}E(z,\"handleMouseMove\"),rv(z,\"handleMouseMove\");function U(){document.removeEventListener(\"mousemove\",z),document.removeEventListener(\"mouseup\",U)}E(U,\"handleMouseUp\"),rv(U,\"handleMouseUp\"),document.addEventListener(\"mousemove\",z),document.addEventListener(\"mouseup\",U)}E(P,\"handleMouseDown\"),rv(P,\"handleMouseDown\"),b.addEventListener(\"mousedown\",P);function V(){m.current&&(m.current.style.flex=x.current),c(x.current),g(null)}return E(V,\"reset\"),rv(V,\"reset\"),b.addEventListener(\"dblclick\",V),()=>{b.removeEventListener(\"mousedown\",P),b.removeEventListener(\"dblclick\",V)}},[t,g,i,o,c]),O.useMemo(()=>({dragBarRef:y,hiddenElement:f,firstRef:m,setHiddenElement:h,secondRef:S}),[f,h])}E(iv,\"useDragResize\"),rv(iv,\"useDragResize\");const KZ=1,d1=\"hide-first\",p1=\"hide-second\",h1=O.forwardRef((e,t)=>{var n=e,{label:r}=n,i=mt(n,[\"label\"]);const[o,s]=O.useState(null);return ie(vi,{label:r,children:ie(ir,Kt(Dt({},i),{ref:t,type:\"button\",className:Jr(\"graphiql-toolbar-button\",o?\"error\":\"\",i.className),onClick:l=>{var c;try{(c=i.onClick)==null||c.call(i,l),s(null)}catch(f){s(f instanceof Error?f:new Error(`Toolbar button click failed: ${f}`))}},\"aria-label\":o?o.message:r,\"aria-invalid\":o?\"true\":i[\"aria-invalid\"]}))})});h1.displayName=\"ToolbarButton\";var XZ=Object.defineProperty,ZZ=E((e,t)=>XZ(e,\"name\",{value:t,configurable:!0}),\"__name\");function ov(){const{queryEditor:e,setOperationName:t}=Pr({nonNull:!0,caller:ov}),{isFetching:n,operationName:r,run:i,stop:o}=Rf({nonNull:!0,caller:ov}),s=(e==null?void 0:e.operations)||[],l=s.length>1&&typeof r!=\"string\",c=`${n?\"Stop\":\"Execute\"} query (Ctrl-Enter)`,f={type:\"button\",className:\"graphiql-execute-button\",children:n?ie(aW,{}):ie(ZG,{}),\"aria-label\":c};return l?lt(Il,{children:[ie(vi,{label:c,children:ie(Il.Button,Dt({},f))}),ie(Il.List,{children:s.map((h,g)=>{const m=h.name?h.name.value:`<Unnamed ${h.operation}>`;return ie(Il.Item,{onSelect:()=>{var y;const S=(y=h.name)==null?void 0:y.value;e&&S&&S!==e.operationName&&t(S),i()},children:m},`${m}-${g}`)})})]}):ie(vi,{label:c,children:ie(\"button\",Kt(Dt({},f),{onClick:()=>{n?o():i()}}))})}E(ov,\"ExecuteButton\"),ZZ(ov,\"ExecuteButton\");const B4=O.forwardRef((e,t)=>{var n=e,{button:r,children:i,label:o}=n,s=mt(n,[\"button\",\"children\",\"label\"]);const l=`${o}${s.value?`: ${s.value}`:\"\"}`;return lt(b0.Input,Kt(Dt({},s),{ref:t,className:Jr(\"graphiql-toolbar-listbox\",s.className),\"aria-label\":l,children:[ie(vi,{label:l,children:ie(b0.Button,{children:r})}),ie(b0.Popover,{children:i})]}))});B4.displayName=\"ToolbarListbox\",kf(B4,{Option:b0.Option});const j4=O.forwardRef((e,t)=>{var n=e,{button:r,children:i,label:o}=n,s=mt(n,[\"button\",\"children\",\"label\"]);return lt(Il,Kt(Dt({},s),{ref:t,children:[ie(vi,{label:o,children:ie(Il.Button,{className:Jr(\"graphiql-un-styled graphiql-toolbar-menu\",s.className),\"aria-label\":o,children:r})}),ie(Il.List,{children:i})]}))});j4.displayName=\"ToolbarMenu\",kf(j4,{Item:Il.Item});var eee=Object.defineProperty,U4=Object.getOwnPropertySymbols,tee=Object.prototype.hasOwnProperty,nee=Object.prototype.propertyIsEnumerable,q4=(e,t,n)=>t in e?eee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,H4=(e,t)=>{for(var n in t||(t={}))tee.call(t,n)&&q4(e,n,t[n]);if(U4)for(var n of U4(t))nee.call(t,n)&&q4(e,n,t[n]);return e};function z4(e){return e&&Object.prototype.hasOwnProperty.call(e,\"default\")&&Object.keys(e).length===1?e.default:e}var v1={},m1={},G4=z4(fj),ree=z4(rG);Object.defineProperty(m1,\"__esModule\",{value:!0});var iee=typeof Symbol==\"function\"&&typeof Symbol.iterator==\"symbol\"?function(e){return typeof e}:function(e){return e&&typeof Symbol==\"function\"&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},W4=function(){function e(t,n){var r=[],i=!0,o=!1,s=void 0;try{for(var l=t[Symbol.iterator](),c;!(i=(c=l.next()).done)&&(r.push(c.value),!(n&&r.length===n));i=!0);}catch(f){o=!0,s=f}finally{try{!i&&l.return&&l.return()}finally{if(o)throw s}}return r}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError(\"Invalid attempt to destructure non-iterable instance\")}}(),$t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},da=function(){function e(t,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();m1.defaultValue=Vx;var oee=G4,Se=aee(oee),ut=ree;function aee(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function Q4(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ao(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}else return Array.from(e)}function pa(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}function Fn(e,t){if(!e)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return t&&(typeof t==\"object\"||typeof t==\"function\")?t:e}function ha(e,t){if(typeof t!=\"function\"&&t!==null)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function $x(e){return e.charAt(0).toUpperCase()+e.slice(1)}var see={keyword:\"#B11A04\",def:\"#D2054E\",property:\"#1F61A0\",qualifier:\"#1C92A9\",attribute:\"#8B2BB9\",number:\"#2882F9\",string:\"#D64292\",builtin:\"#D47509\",string2:\"#0B7FC7\",variable:\"#397D13\",atom:\"#CA9800\"},lee=Se.createElement(\"svg\",{width:\"12\",height:\"9\"},Se.createElement(\"path\",{fill:\"#666\",d:\"M 0 2 L 9 2 L 4.5 7.5 z\"})),uee=Se.createElement(\"svg\",{width:\"12\",height:\"9\"},Se.createElement(\"path\",{fill:\"#666\",d:\"M 0 0 L 0 9 L 5.5 4.5 z\"})),cee=Se.createElement(\"svg\",{style:{marginRight:\"3px\",marginLeft:\"-3px\"},width:\"12\",height:\"12\",viewBox:\"0 0 18 18\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},Se.createElement(\"path\",{d:\"M16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.1 0 16 0ZM16 16H2V2H16V16ZM14.99 6L13.58 4.58L6.99 11.17L4.41 8.6L2.99 10.01L6.99 14L14.99 6Z\",fill:\"#666\"})),fee=Se.createElement(\"svg\",{style:{marginRight:\"3px\",marginLeft:\"-3px\"},width:\"12\",height:\"12\",viewBox:\"0 0 18 18\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},Se.createElement(\"path\",{d:\"M16 2V16H2V2H16ZM16 0H2C0.9 0 0 0.9 0 2V16C0 17.1 0.9 18 2 18H16C17.1 18 18 17.1 18 16V2C18 0.9 17.1 0 16 0Z\",fill:\"#CCC\"}));function g1(e){return e.checked?e.styleConfig.checkboxChecked:e.styleConfig.checkboxUnchecked}function Y4(e){var t=e.getFields();if(t.id){var n=[\"id\"];return t.email?n.push(\"email\"):t.name&&n.push(\"name\"),n}if(t.edges)return[\"edges\"];if(t.node)return[\"node\"];if(t.nodes)return[\"nodes\"];var r=[];return Object.keys(t).forEach(function(i){(0,ut.isLeafType)(t[i].type)&&r.push(i)}),r.length?r.slice(0,2):[\"__typename\"]}function J4(e){return(0,ut.isNonNullType)(e.type)&&e.defaultValue===void 0}function dee(e){for(var t=e;(0,ut.isWrappingType)(t);)t=t.ofType;return t}function Bl(e){for(var t=e;(0,ut.isWrappingType)(t);)t=t.ofType;return t}function K4(e,t){if(typeof t!=\"string\"&&t.kind===\"VariableDefinition\")return t.variable;if((0,ut.isScalarType)(e))try{switch(e.name){case\"String\":return{kind:\"StringValue\",value:String(e.parseValue(t))};case\"Float\":return{kind:\"FloatValue\",value:String(e.parseValue(parseFloat(t)))};case\"Int\":return{kind:\"IntValue\",value:String(e.parseValue(parseInt(t,10)))};case\"Boolean\":try{var n=JSON.parse(t);return typeof n==\"boolean\"?{kind:\"BooleanValue\",value:n}:{kind:\"BooleanValue\",value:!1}}catch{return{kind:\"BooleanValue\",value:!1}}default:return{kind:\"StringValue\",value:String(e.parseValue(t))}}}catch(i){return console.error(\"error coercing arg value\",i,t),{kind:\"StringValue\",value:t}}else try{var r=e.parseValue(t);return r?{kind:\"EnumValue\",value:String(r)}:{kind:\"EnumValue\",value:e.getValues()[0].name}}catch{return{kind:\"EnumValue\",value:e.getValues()[0].name}}}var pee=function(e){ha(t,e);function t(){var n,r,i,o;pa(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return o=(r=(i=Fn(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(l))),i),i._getArgSelection=function(){return i.props.selection.fields.find(function(f){return f.name.value===i.props.arg.name})},i._removeArg=function(){var f=i.props.selection,h=i._getArgSelection();i._previousArgSelection=h,i.props.modifyFields(f.fields.filter(function(g){return g!==h}),!0)},i._addArg=function(){var f=i.props,h=f.selection,g=f.arg,m=f.getDefaultScalarArgValue,y=f.parentField,S=f.makeDefaultArg,x=Bl(g.type),D=null;if(i._previousArgSelection)D=i._previousArgSelection;else if((0,ut.isInputObjectType)(x)){var _=x.getFields();D={kind:\"ObjectField\",name:{kind:\"Name\",value:g.name},value:{kind:\"ObjectValue\",fields:y1(m,S,y,Object.keys(_).map(function(b){return _[b]}))}}}else(0,ut.isLeafType)(x)&&(D={kind:\"ObjectField\",name:{kind:\"Name\",value:g.name},value:m(y,g,x)});if(!D)console.error(\"Unable to add arg for argType\",x);else return i.props.modifyFields([].concat(Ao(h.fields||[]),[D]),!0)},i._setArgValue=function(f,h){var g=!1,m=!1,y=!1;try{f.kind===\"VariableDefinition\"?m=!0:f===null||typeof f>\"u\"?g=!0:typeof f.kind==\"string\"&&(y=!0)}catch{}var S=i.props.selection,x=i._getArgSelection();if(!x){console.error(\"missing arg selection when setting arg value\");return}var D=Bl(i.props.arg.type),_=(0,ut.isLeafType)(D)||m||g||y;if(!_){console.warn(\"Unable to handle non leaf types in InputArgView.setArgValue\",f);return}var b=void 0,C=void 0;f===null||typeof f>\"u\"?C=null:!f.target&&f.kind&&f.kind===\"VariableDefinition\"?(b=f,C=b.variable):typeof f.kind==\"string\"?C=f:f.target&&typeof f.target.value==\"string\"&&(b=f.target.value,C=K4(D,b));var T=i.props.modifyFields((S.fields||[]).map(function(N){var F=N===x,L=F?$t({},N,{value:C}):N;return L}),h);return T},i._modifyChildFields=function(f){return i.props.modifyFields(i.props.selection.fields.map(function(h){return h.name.value===i.props.arg.name?$t({},h,{value:{kind:\"ObjectValue\",fields:f}}):h}),!0)},r),Fn(i,o)}return da(t,[{key:\"render\",value:function(){var r=this.props,i=r.arg,o=r.parentField,s=this._getArgSelection();return Se.createElement(Z4,{argValue:s?s.value:null,arg:i,parentField:o,addArg:this._addArg,removeArg:this._removeArg,setArgFields:this._modifyChildFields,setArgValue:this._setArgValue,getDefaultScalarArgValue:this.props.getDefaultScalarArgValue,makeDefaultArg:this.props.makeDefaultArg,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig,onCommit:this.props.onCommit,definition:this.props.definition})}}]),t}(Se.PureComponent);function Vx(e){if((0,ut.isEnumType)(e))return{kind:\"EnumValue\",value:e.getValues()[0].name};switch(e.name){case\"String\":return{kind:\"StringValue\",value:\"\"};case\"Float\":return{kind:\"FloatValue\",value:\"1.5\"};case\"Int\":return{kind:\"IntValue\",value:\"10\"};case\"Boolean\":return{kind:\"BooleanValue\",value:!1};default:return{kind:\"StringValue\",value:\"\"}}}function X4(e,t,n){return Vx(n)}var hee=function(e){ha(t,e);function t(){var n,r,i,o;pa(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return o=(r=(i=Fn(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(l))),i),i._getArgSelection=function(){var f=i.props.selection;return(f.arguments||[]).find(function(h){return h.name.value===i.props.arg.name})},i._removeArg=function(f){var h=i.props.selection,g=i._getArgSelection();return i._previousArgSelection=g,i.props.modifyArguments((h.arguments||[]).filter(function(m){return m!==g}),f)},i._addArg=function(f){var h=i.props,g=h.selection,m=h.getDefaultScalarArgValue,y=h.makeDefaultArg,S=h.parentField,x=h.arg,D=Bl(x.type),_=null;if(i._previousArgSelection)_=i._previousArgSelection;else if((0,ut.isInputObjectType)(D)){var b=D.getFields();_={kind:\"Argument\",name:{kind:\"Name\",value:x.name},value:{kind:\"ObjectValue\",fields:y1(m,y,S,Object.keys(b).map(function(C){return b[C]}))}}}else(0,ut.isLeafType)(D)&&(_={kind:\"Argument\",name:{kind:\"Name\",value:x.name},value:m(S,x,D)});return _?i.props.modifyArguments([].concat(Ao(g.arguments||[]),[_]),f):(console.error(\"Unable to add arg for argType\",D),null)},i._setArgValue=function(f,h){var g=!1,m=!1,y=!1;try{f.kind===\"VariableDefinition\"?m=!0:f===null||typeof f>\"u\"?g=!0:typeof f.kind==\"string\"&&(y=!0)}catch{}var S=i.props.selection,x=i._getArgSelection();if(!x&&!m){console.error(\"missing arg selection when setting arg value\");return}var D=Bl(i.props.arg.type),_=(0,ut.isLeafType)(D)||m||g||y;if(!_){console.warn(\"Unable to handle non leaf types in ArgView._setArgValue\");return}var b=void 0,C=void 0;return f===null||typeof f>\"u\"?C=null:f.target&&typeof f.target.value==\"string\"?(b=f.target.value,C=K4(D,b)):!f.target&&f.kind===\"VariableDefinition\"?(b=f,C=b.variable):typeof f.kind==\"string\"&&(C=f),i.props.modifyArguments((S.arguments||[]).map(function(T){return T===x?$t({},T,{value:C}):T}),h)},i._setArgFields=function(f,h){var g=i.props.selection,m=i._getArgSelection();if(!m){console.error(\"missing arg selection when setting arg value\");return}return i.props.modifyArguments((g.arguments||[]).map(function(y){return y===m?$t({},y,{value:{kind:\"ObjectValue\",fields:f}}):y}),h)},r),Fn(i,o)}return da(t,[{key:\"render\",value:function(){var r=this.props,i=r.arg,o=r.parentField,s=this._getArgSelection();return Se.createElement(Z4,{argValue:s?s.value:null,arg:i,parentField:o,addArg:this._addArg,removeArg:this._removeArg,setArgFields:this._setArgFields,setArgValue:this._setArgValue,getDefaultScalarArgValue:this.props.getDefaultScalarArgValue,makeDefaultArg:this.props.makeDefaultArg,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig,onCommit:this.props.onCommit,definition:this.props.definition})}}]),t}(Se.PureComponent);function vee(e){return e.ctrlKey&&e.key===\"Enter\"}function mee(e){return e!==\"FragmentDefinition\"}var gee=function(e){ha(t,e);function t(){var n,r,i,o;pa(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return o=(r=(i=Fn(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(l))),i),i._handleChange=function(f){i.props.setArgValue(f,!0)},r),Fn(i,o)}return da(t,[{key:\"componentDidMount\",value:function(){var r=this._ref,i=document.activeElement;r&&i&&!(i instanceof HTMLTextAreaElement)&&(r.focus(),r.setSelectionRange(0,r.value.length))}},{key:\"render\",value:function(){var r=this,i=this.props,o=i.arg,s=i.argValue,l=i.styleConfig,c=Bl(o.type),f=typeof s.value==\"string\"?s.value:\"\",h=this.props.argValue.kind===\"StringValue\"?l.colors.string:l.colors.number;return Se.createElement(\"span\",{style:{color:h}},c.name===\"String\"?'\"':\"\",Se.createElement(\"input\",{style:{border:\"none\",borderBottom:\"1px solid #888\",outline:\"none\",width:Math.max(1,Math.min(15,f.length))+\"ch\",color:h},ref:function(m){r._ref=m},type:\"text\",onChange:this._handleChange,value:f}),c.name===\"String\"?'\"':\"\")}}]),t}(Se.PureComponent),Z4=function(e){ha(t,e);function t(){var n,r,i,o;pa(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return o=(r=(i=Fn(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(l))),i),i.state={displayArgActions:!1},r),Fn(i,o)}return da(t,[{key:\"render\",value:function(){var r=this,i=this.props,o=i.argValue,s=i.arg,l=i.styleConfig,c=Bl(s.type),f=null;if(o){if(o.kind===\"Variable\")f=Se.createElement(\"span\",{style:{color:l.colors.variable}},\"$\",o.name.value);else if((0,ut.isScalarType)(c))c.name===\"Boolean\"?f=Se.createElement(\"select\",{style:{color:l.colors.builtin},onChange:this.props.setArgValue,value:o.kind===\"BooleanValue\"?o.value:void 0},Se.createElement(\"option\",{key:\"true\",value:\"true\"},\"true\"),Se.createElement(\"option\",{key:\"false\",value:\"false\"},\"false\")):f=Se.createElement(gee,{setArgValue:this.props.setArgValue,arg:s,argValue:o,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig});else if((0,ut.isEnumType)(c))o.kind===\"EnumValue\"?f=Se.createElement(\"select\",{style:{backgroundColor:\"white\",color:l.colors.string2},onChange:this.props.setArgValue,value:o.value},c.getValues().map(function(x){return Se.createElement(\"option\",{key:x.name,value:x.name},x.name)})):console.error(\"arg mismatch between arg and selection\",c,o);else if((0,ut.isInputObjectType)(c))if(o.kind===\"ObjectValue\"){var h=c.getFields();f=Se.createElement(\"div\",{style:{marginLeft:16}},Object.keys(h).sort().map(function(x){return Se.createElement(pee,{key:x,arg:h[x],parentField:r.props.parentField,selection:o,modifyFields:r.props.setArgFields,getDefaultScalarArgValue:r.props.getDefaultScalarArgValue,makeDefaultArg:r.props.makeDefaultArg,onRunOperation:r.props.onRunOperation,styleConfig:r.props.styleConfig,onCommit:r.props.onCommit,definition:r.props.definition})}))}else console.error(\"arg mismatch between arg and selection\",c,o)}var g=function(){var D=s.name,_=(r.props.definition.variableDefinitions||[]).filter(function(Z){return Z.variable.name.value.startsWith(D)}).length,b=void 0;_>0?b=\"\"+D+_:b=D;var C=s.type.toString(),T=(0,ut.parseType)(C),N={kind:\"VariableDefinition\",variable:{kind:\"Variable\",name:{kind:\"Name\",value:b}},type:T,directives:[]},F=function(de){return(r.props.definition.variableDefinitions||[]).find(function(K){return K.variable.name.value===de})},L=void 0,A={};if(typeof o<\"u\"&&o!==null){var P=(0,ut.visit)(o,{Variable:function(de){var K=de.name.value,ve=F(K);if(A[K]=A[K]+1||1,!!ve)return ve.defaultValue}}),V=N.type.kind===\"NonNullType\",H=V?$t({},N,{type:N.type.type}):N;L=$t({},H,{defaultValue:P})}else L=N;var G=Object.entries(A).filter(function(Z){var de=W4(Z,2);de[0];var K=de[1];return K<2}).map(function(Z){var de=W4(Z,2),K=de[0];return de[1],K});if(L){var z=r.props.setArgValue(L,!1);if(z){var U=z.definitions.find(function(Z){return Z.operation&&Z.name&&Z.name.value&&r.props.definition.name&&r.props.definition.name.value?Z.name.value===r.props.definition.name.value:!1}),j=[].concat(Ao(U.variableDefinitions||[]),[L]).filter(function(Z){return G.indexOf(Z.variable.name.value)===-1}),X=$t({},U,{variableDefinitions:j}),ne=z.definitions,J=ne.map(function(Z){return U===Z?X:Z}),re=$t({},z,{definitions:J});r.props.onCommit(re)}}},m=function(){if(!(!o||!o.name||!o.name.value)){var D=o.name.value,_=(r.props.definition.variableDefinitions||[]).find(function(H){return H.variable.name.value===D});if(_){var b=_.defaultValue,C=r.props.setArgValue(b,{commit:!1});if(C){var T=C.definitions.find(function(H){return H.name.value===r.props.definition.name.value});if(!T)return;var N=0;(0,ut.visit)(T,{Variable:function(G){G.name.value===D&&(N=N+1)}});var F=T.variableDefinitions||[];N<2&&(F=F.filter(function(H){return H.variable.name.value!==D}));var L=$t({},T,{variableDefinitions:F}),A=C.definitions,P=A.map(function(H){return T===H?L:H}),V=$t({},C,{definitions:P});r.props.onCommit(V)}}}},y=o&&o.kind===\"Variable\",S=this.state.displayArgActions?Se.createElement(\"button\",{type:\"submit\",className:\"toolbar-button\",title:y?\"Remove the variable\":\"Extract the current value into a GraphQL variable\",onClick:function(D){D.preventDefault(),D.stopPropagation(),y?m():g()},style:l.styles.actionButtonStyle},Se.createElement(\"span\",{style:{color:l.colors.variable}},\"$\")):null;return Se.createElement(\"div\",{style:{cursor:\"pointer\",minHeight:\"16px\",WebkitUserSelect:\"none\",userSelect:\"none\"},\"data-arg-name\":s.name,\"data-arg-type\":c.name,className:\"graphiql-explorer-\"+s.name},Se.createElement(\"span\",{style:{cursor:\"pointer\"},onClick:function(D){var _=!o;_?r.props.addArg(!0):r.props.removeArg(!0),r.setState({displayArgActions:_})}},(0,ut.isInputObjectType)(c)?Se.createElement(\"span\",null,o?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):Se.createElement(g1,{checked:!!o,styleConfig:this.props.styleConfig}),Se.createElement(\"span\",{style:{color:l.colors.attribute},title:s.description,onMouseEnter:function(){o!==null&&typeof o<\"u\"&&r.setState({displayArgActions:!0})},onMouseLeave:function(){return r.setState({displayArgActions:!1})}},s.name,J4(s)?\"*\":\"\",\": \",S,\" \"),\" \"),f||Se.createElement(\"span\",null),\" \")}}]),t}(Se.PureComponent),yee=function(e){ha(t,e);function t(){var n,r,i,o;pa(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return o=(r=(i=Fn(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(l))),i),i._addFragment=function(){i.props.modifySelections([].concat(Ao(i.props.selections),[i._previousSelection||{kind:\"InlineFragment\",typeCondition:{kind:\"NamedType\",name:{kind:\"Name\",value:i.props.implementingType.name}},selectionSet:{kind:\"SelectionSet\",selections:i.props.getDefaultFieldNames(i.props.implementingType).map(function(f){return{kind:\"Field\",name:{kind:\"Name\",value:f}}})}}]))},i._removeFragment=function(){var f=i._getSelection();i._previousSelection=f,i.props.modifySelections(i.props.selections.filter(function(h){return h!==f}))},i._getSelection=function(){var f=i.props.selections.find(function(h){return h.kind===\"InlineFragment\"&&h.typeCondition&&i.props.implementingType.name===h.typeCondition.name.value});if(!f)return null;if(f.kind===\"InlineFragment\")return f},i._modifyChildSelections=function(f,h){var g=i._getSelection();return i.props.modifySelections(i.props.selections.map(function(m){return m===g?{directives:m.directives,kind:\"InlineFragment\",typeCondition:{kind:\"NamedType\",name:{kind:\"Name\",value:i.props.implementingType.name}},selectionSet:{kind:\"SelectionSet\",selections:f}}:m}),h)},r),Fn(i,o)}return da(t,[{key:\"render\",value:function(){var r=this,i=this.props,o=i.implementingType,s=i.schema,l=i.getDefaultFieldNames,c=i.styleConfig,f=this._getSelection(),h=o.getFields(),g=f?f.selectionSet?f.selectionSet.selections:[]:[];return Se.createElement(\"div\",{className:\"graphiql-explorer-\"+o.name},Se.createElement(\"span\",{style:{cursor:\"pointer\"},onClick:f?this._removeFragment:this._addFragment},Se.createElement(g1,{checked:!!f,styleConfig:this.props.styleConfig}),Se.createElement(\"span\",{style:{color:c.colors.atom}},this.props.implementingType.name)),f?Se.createElement(\"div\",{style:{marginLeft:16}},Object.keys(h).sort().map(function(m){return Se.createElement(t9,{key:m,field:h[m],selections:g,modifySelections:r._modifyChildSelections,schema:s,getDefaultFieldNames:l,getDefaultScalarArgValue:r.props.getDefaultScalarArgValue,makeDefaultArg:r.props.makeDefaultArg,onRunOperation:r.props.onRunOperation,onCommit:r.props.onCommit,styleConfig:r.props.styleConfig,definition:r.props.definition,availableFragments:r.props.availableFragments})})):null)}}]),t}(Se.PureComponent),bee=function(e){ha(t,e);function t(){var n,r,i,o;pa(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return o=(r=(i=Fn(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(l))),i),i._addFragment=function(){i.props.modifySelections([].concat(Ao(i.props.selections),[i._previousSelection||{kind:\"FragmentSpread\",name:i.props.fragment.name}]))},i._removeFragment=function(){var f=i._getSelection();i._previousSelection=f,i.props.modifySelections(i.props.selections.filter(function(h){var g=h.kind===\"FragmentSpread\"&&h.name.value===i.props.fragment.name.value;return!g}))},i._getSelection=function(){var f=i.props.selections.find(function(h){return h.kind===\"FragmentSpread\"&&h.name.value===i.props.fragment.name.value});return f},r),Fn(i,o)}return da(t,[{key:\"render\",value:function(){var r=this.props.styleConfig,i=this._getSelection();return Se.createElement(\"div\",{className:\"graphiql-explorer-\"+this.props.fragment.name.value},Se.createElement(\"span\",{style:{cursor:\"pointer\"},onClick:i?this._removeFragment:this._addFragment},Se.createElement(g1,{checked:!!i,styleConfig:this.props.styleConfig}),Se.createElement(\"span\",{style:{color:r.colors.def},className:\"graphiql-explorer-\"+this.props.fragment.name.value},this.props.fragment.name.value)))}}]),t}(Se.PureComponent);function y1(e,t,n,r){var i=[],o=!0,s=!1,l=void 0;try{for(var c=r[Symbol.iterator](),f;!(o=(f=c.next()).done);o=!0){var h=f.value;if((0,ut.isRequiredInputField)(h)||t&&t(n,h)){var g=Bl(h.type);(0,ut.isInputObjectType)(g)?function(){var m=g.getFields();i.push({kind:\"ObjectField\",name:{kind:\"Name\",value:h.name},value:{kind:\"ObjectValue\",fields:y1(e,t,n,Object.keys(m).map(function(y){return m[y]}))}})}():(0,ut.isLeafType)(g)&&i.push({kind:\"ObjectField\",name:{kind:\"Name\",value:h.name},value:e(n,h,g)})}}}catch(m){s=!0,l=m}finally{try{!o&&c.return&&c.return()}finally{if(s)throw l}}return i}function e9(e,t,n){var r=[],i=!0,o=!1,s=void 0;try{for(var l=n.args[Symbol.iterator](),c;!(i=(c=l.next()).done);i=!0){var f=c.value;if(J4(f)||t&&t(n,f)){var h=Bl(f.type);(0,ut.isInputObjectType)(h)?function(){var g=h.getFields();r.push({kind:\"Argument\",name:{kind:\"Name\",value:f.name},value:{kind:\"ObjectValue\",fields:y1(e,t,n,Object.keys(g).map(function(m){return g[m]}))}})}():(0,ut.isLeafType)(h)&&r.push({kind:\"Argument\",name:{kind:\"Name\",value:f.name},value:e(n,f,h)})}}}catch(g){o=!0,s=g}finally{try{!i&&l.return&&l.return()}finally{if(o)throw s}}return r}var t9=function(e){ha(t,e);function t(){var n,r,i,o;pa(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return o=(r=(i=Fn(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(l))),i),i.state={displayFieldActions:!1},i._addAllFieldsToSelections=function(f){var h=f?Object.keys(f).map(function(y){return{kind:\"Field\",name:{kind:\"Name\",value:y},arguments:[]}}):[],g={kind:\"SelectionSet\",selections:h},m=[].concat(Ao(i.props.selections.filter(function(y){return y.kind===\"InlineFragment\"?!0:y.name.value!==i.props.field.name})),[{kind:\"Field\",name:{kind:\"Name\",value:i.props.field.name},arguments:e9(i.props.getDefaultScalarArgValue,i.props.makeDefaultArg,i.props.field),selectionSet:g}]);i.props.modifySelections(m)},i._addFieldToSelections=function(f){var h=[].concat(Ao(i.props.selections),[i._previousSelection||{kind:\"Field\",name:{kind:\"Name\",value:i.props.field.name},arguments:e9(i.props.getDefaultScalarArgValue,i.props.makeDefaultArg,i.props.field)}]);i.props.modifySelections(h)},i._handleUpdateSelections=function(f){var h=i._getSelection();if(h&&!f.altKey)i._removeFieldFromSelections();else{var g=(0,ut.getNamedType)(i.props.field.type),m=(0,ut.isObjectType)(g)&&g.getFields(),y=!!m&&f.altKey;y?i._addAllFieldsToSelections(m):i._addFieldToSelections(m)}},i._removeFieldFromSelections=function(){var f=i._getSelection();i._previousSelection=f,i.props.modifySelections(i.props.selections.filter(function(h){return h!==f}))},i._getSelection=function(){var f=i.props.selections.find(function(h){return h.kind===\"Field\"&&i.props.field.name===h.name.value});if(!f)return null;if(f.kind===\"Field\")return f},i._setArguments=function(f,h){var g=i._getSelection();if(!g){console.error(\"Missing selection when setting arguments\",f);return}return i.props.modifySelections(i.props.selections.map(function(m){return m===g?{alias:g.alias,arguments:f,directives:g.directives,kind:\"Field\",name:g.name,selectionSet:g.selectionSet}:m}),h)},i._modifyChildSelections=function(f,h){return i.props.modifySelections(i.props.selections.map(function(g){if(g.kind===\"Field\"&&i.props.field.name===g.name.value){if(g.kind!==\"Field\")throw new Error(\"invalid selection\");return{alias:g.alias,arguments:g.arguments,directives:g.directives,kind:\"Field\",name:g.name,selectionSet:{kind:\"SelectionSet\",selections:f}}}return g}),h)},r),Fn(i,o)}return da(t,[{key:\"render\",value:function(){var r=this,i=this.props,o=i.field,s=i.schema,l=i.getDefaultFieldNames,c=i.styleConfig,f=this._getSelection(),h=dee(o.type),g=o.args.sort(function(_,b){return _.name.localeCompare(b.name)}),m=\"graphiql-explorer-node graphiql-explorer-\"+o.name;o.isDeprecated&&(m+=\" graphiql-explorer-deprecated\");var y=(0,ut.isObjectType)(h)||(0,ut.isInterfaceType)(h)||(0,ut.isUnionType)(h)?this.props.availableFragments&&this.props.availableFragments[h.name]:null,S=Se.createElement(\"div\",{className:m},Se.createElement(\"span\",{title:o.description,style:{cursor:\"pointer\",display:\"inline-flex\",alignItems:\"center\",minHeight:\"16px\",WebkitUserSelect:\"none\",userSelect:\"none\"},\"data-field-name\":o.name,\"data-field-type\":h.name,onClick:this._handleUpdateSelections,onMouseEnter:function(){var b=(0,ut.isObjectType)(h)&&f&&f.selectionSet&&f.selectionSet.selections.filter(function(C){return C.kind!==\"FragmentSpread\"}).length>0;b&&r.setState({displayFieldActions:!0})},onMouseLeave:function(){return r.setState({displayFieldActions:!1})}},(0,ut.isObjectType)(h)?Se.createElement(\"span\",null,f?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):null,(0,ut.isObjectType)(h)?null:Se.createElement(g1,{checked:!!f,styleConfig:this.props.styleConfig}),Se.createElement(\"span\",{style:{color:c.colors.property},className:\"graphiql-explorer-field-view\"},o.name),this.state.displayFieldActions?Se.createElement(\"button\",{type:\"submit\",className:\"toolbar-button\",title:\"Extract selections into a new reusable fragment\",onClick:function(b){b.preventDefault(),b.stopPropagation();var C=h.name,T=C+\"Fragment\",N=(y||[]).filter(function(H){return H.name.value.startsWith(T)}).length;N>0&&(T=\"\"+T+N);var F=f?f.selectionSet?f.selectionSet.selections:[]:[],L=[{kind:\"FragmentSpread\",name:{kind:\"Name\",value:T},directives:[]}],A={kind:\"FragmentDefinition\",name:{kind:\"Name\",value:T},typeCondition:{kind:\"NamedType\",name:{kind:\"Name\",value:h.name}},directives:[],selectionSet:{kind:\"SelectionSet\",selections:F}},P=r._modifyChildSelections(L,!1);if(P){var V=$t({},P,{definitions:[].concat(Ao(P.definitions),[A])});r.props.onCommit(V)}else console.warn(\"Unable to complete extractFragment operation\")},style:$t({},c.styles.actionButtonStyle)},Se.createElement(\"span\",null,\"…\")):null),f&&g.length?Se.createElement(\"div\",{style:{marginLeft:16},className:\"graphiql-explorer-graphql-arguments\"},g.map(function(_){return Se.createElement(hee,{key:_.name,parentField:o,arg:_,selection:f,modifyArguments:r._setArguments,getDefaultScalarArgValue:r.props.getDefaultScalarArgValue,makeDefaultArg:r.props.makeDefaultArg,onRunOperation:r.props.onRunOperation,styleConfig:r.props.styleConfig,onCommit:r.props.onCommit,definition:r.props.definition})})):null);if(f&&((0,ut.isObjectType)(h)||(0,ut.isInterfaceType)(h)||(0,ut.isUnionType)(h))){var x=(0,ut.isUnionType)(h)?{}:h.getFields(),D=f?f.selectionSet?f.selectionSet.selections:[]:[];return Se.createElement(\"div\",{className:\"graphiql-explorer-\"+o.name},S,Se.createElement(\"div\",{style:{marginLeft:16}},y?y.map(function(_){var b=s.getType(_.typeCondition.name.value),C=_.name.value;return b?Se.createElement(bee,{key:C,fragment:_,selections:D,modifySelections:r._modifyChildSelections,schema:s,styleConfig:r.props.styleConfig,onCommit:r.props.onCommit}):null}):null,Object.keys(x).sort().map(function(_){return Se.createElement(t,{key:_,field:x[_],selections:D,modifySelections:r._modifyChildSelections,schema:s,getDefaultFieldNames:l,getDefaultScalarArgValue:r.props.getDefaultScalarArgValue,makeDefaultArg:r.props.makeDefaultArg,onRunOperation:r.props.onRunOperation,styleConfig:r.props.styleConfig,onCommit:r.props.onCommit,definition:r.props.definition,availableFragments:r.props.availableFragments})}),(0,ut.isInterfaceType)(h)||(0,ut.isUnionType)(h)?s.getPossibleTypes(h).map(function(_){return Se.createElement(yee,{key:_.name,implementingType:_,selections:D,modifySelections:r._modifyChildSelections,schema:s,getDefaultFieldNames:l,getDefaultScalarArgValue:r.props.getDefaultScalarArgValue,makeDefaultArg:r.props.makeDefaultArg,onRunOperation:r.props.onRunOperation,styleConfig:r.props.styleConfig,onCommit:r.props.onCommit,definition:r.props.definition})}):null))}return S}}]),t}(Se.PureComponent);function Eee(e){try{return e.trim()?(0,ut.parse)(e,{noLocation:!0}):null}catch(t){return new Error(t)}}var wee={kind:\"OperationDefinition\",operation:\"query\",variableDefinitions:[],name:{kind:\"Name\",value:\"MyQuery\"},directives:[],selectionSet:{kind:\"SelectionSet\",selections:[]}},b1={kind:\"Document\",definitions:[wee]},Jf=null;function See(e){if(Jf&&Jf[0]===e)return Jf[1];var t=Eee(e);return t?t instanceof Error?Jf?Jf[1]:b1:(Jf=[e,t],t):b1}var n9={buttonStyle:{fontSize:\"1.2em\",padding:\"0px\",backgroundColor:\"white\",border:\"none\",margin:\"5px 0px\",height:\"40px\",width:\"100%\",display:\"block\",maxWidth:\"none\"},actionButtonStyle:{padding:\"0px\",backgroundColor:\"white\",border:\"none\",margin:\"0px\",maxWidth:\"none\",height:\"15px\",width:\"15px\",display:\"inline-block\",fontSize:\"smaller\"},explorerActionsStyle:{margin:\"4px -8px -8px\",paddingLeft:\"8px\",bottom:\"0px\",width:\"100%\",textAlign:\"center\",background:\"none\",borderTop:\"none\",borderBottom:\"none\"}},Tee=function(e){ha(t,e);function t(){var n,r,i,o;pa(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return o=(r=(i=Fn(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(l))),i),i.state={newOperationType:\"query\",displayTitleActions:!1},i._modifySelections=function(f,h){var g=i.props.definition;g.selectionSet.selections.length===0&&i._previousOperationDef&&(g=i._previousOperationDef);var m=void 0;if(g.kind===\"FragmentDefinition\")m=$t({},g,{selectionSet:$t({},g.selectionSet,{selections:f})});else if(g.kind===\"OperationDefinition\"){var y=f.filter(function(S){return!(S.kind===\"Field\"&&S.name.value===\"__typename\")});y.length===0&&(y=[{kind:\"Field\",name:{kind:\"Name\",value:\"__typename ## Placeholder value\"}}]),m=$t({},g,{selectionSet:$t({},g.selectionSet,{selections:y})})}return i.props.onEdit(m,h)},i._onOperationRename=function(f){return i.props.onOperationRename(f.target.value)},i._handlePotentialRun=function(f){vee(f)&&mee(i.props.definition.kind)&&i.props.onRunOperation(i.props.name)},i._rootViewElId=function(){var f=i.props,h=f.operationType,g=f.name,m=h+\"-\"+(g||\"unknown\");return m},r),Fn(i,o)}return da(t,[{key:\"componentDidMount\",value:function(){var r=this._rootViewElId();this.props.onMount(r)}},{key:\"render\",value:function(){var r=this,i=this.props,o=i.operationType,s=i.definition,l=i.schema,c=i.getDefaultFieldNames,f=i.styleConfig,h=this._rootViewElId(),g=this.props.fields||{},m=s,y=m.selectionSet.selections,S=this.props.name||$x(o)+\" Name\";return Se.createElement(\"div\",{id:h,tabIndex:\"0\",onKeyDown:this._handlePotentialRun,style:{borderBottom:this.props.isLast?\"none\":\"1px solid #d6d6d6\",marginBottom:\"0em\",paddingBottom:\"1em\"}},Se.createElement(\"div\",{style:{color:f.colors.keyword,paddingBottom:4},className:\"graphiql-operation-title-bar\",onMouseEnter:function(){return r.setState({displayTitleActions:!0})},onMouseLeave:function(){return r.setState({displayTitleActions:!1})}},o,\" \",Se.createElement(\"span\",{style:{color:f.colors.def}},Se.createElement(\"input\",{style:{color:f.colors.def,border:\"none\",borderBottom:\"1px solid #888\",outline:\"none\",width:Math.max(4,S.length)+\"ch\"},autoComplete:\"false\",placeholder:$x(o)+\" Name\",value:this.props.name,onKeyDown:this._handlePotentialRun,onChange:this._onOperationRename})),this.props.onTypeName?Se.createElement(\"span\",null,Se.createElement(\"br\",null),\"on \"+this.props.onTypeName):\"\",this.state.displayTitleActions?Se.createElement(Se.Fragment,null,Se.createElement(\"button\",{type:\"submit\",className:\"toolbar-button\",onClick:function(){return r.props.onOperationDestroy()},style:$t({},f.styles.actionButtonStyle)},Se.createElement(\"span\",null,\"✕\")),Se.createElement(\"button\",{type:\"submit\",className:\"toolbar-button\",onClick:function(){return r.props.onOperationClone()},style:$t({},f.styles.actionButtonStyle)},Se.createElement(\"span\",null,\"⎘\"))):\"\"),Object.keys(g).sort().map(function(x){return Se.createElement(t9,{key:x,field:g[x],selections:y,modifySelections:r._modifySelections,schema:l,getDefaultFieldNames:c,getDefaultScalarArgValue:r.props.getDefaultScalarArgValue,makeDefaultArg:r.props.makeDefaultArg,onRunOperation:r.props.onRunOperation,styleConfig:r.props.styleConfig,onCommit:r.props.onCommit,definition:r.props.definition,availableFragments:r.props.availableFragments})}))}}]),t}(Se.PureComponent);function _ee(){return Se.createElement(\"div\",{style:{fontFamily:\"sans-serif\",display:\"flex\",flexDirection:\"column\",alignItems:\"center\",margin:\"1em\",marginTop:0,flexGrow:1,justifyContent:\"flex-end\"}},Se.createElement(\"div\",{style:{borderTop:\"1px solid #d6d6d6\",paddingTop:\"1em\",width:\"100%\",textAlign:\"center\"}},\"GraphiQL Explorer by \",Se.createElement(\"a\",{href:\"https://www.onegraph.com\"},\"OneGraph\")),Se.createElement(\"div\",null,\"Contribute on\",\" \",Se.createElement(\"a\",{href:\"https://github.com/OneGraph/graphiql-explorer\"},\"GitHub\")))}var r9=function(e){ha(t,e);function t(){var n,r,i,o;pa(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return o=(r=(i=Fn(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(l))),i),i.state={newOperationType:\"query\",operation:null,operationToScrollTo:null},i._resetScroll=function(){var f=i._ref;f&&(f.scrollLeft=0)},i._onEdit=function(f){return i.props.onEdit(f)},i._setAddOperationType=function(f){i.setState({newOperationType:f})},i._handleRootViewMount=function(f){if(i.state.operationToScrollTo&&i.state.operationToScrollTo===f){var h=\".graphiql-explorer-root #\"+f,g=document.querySelector(h);g&&g.scrollIntoView()}},r),Fn(i,o)}return da(t,[{key:\"componentDidMount\",value:function(){this._resetScroll()}},{key:\"render\",value:function(){var r=this,i=this.props,o=i.schema,s=i.query,l=i.makeDefaultArg;if(!o)return Se.createElement(\"div\",{style:{fontFamily:\"sans-serif\"},className:\"error-container\"},\"No Schema Available\");var c={colors:this.props.colors||see,checkboxChecked:this.props.checkboxChecked||cee,checkboxUnchecked:this.props.checkboxUnchecked||fee,arrowClosed:this.props.arrowClosed||uee,arrowOpen:this.props.arrowOpen||lee,styles:this.props.styles?$t({},n9,this.props.styles):n9},f=o.getQueryType(),h=o.getMutationType(),g=o.getSubscriptionType();if(!f&&!h&&!g)return Se.createElement(\"div\",null,\"Missing query type\");var m=f&&f.getFields(),y=h&&h.getFields(),S=g&&g.getFields(),x=See(s),D=this.props.getDefaultFieldNames||Y4,_=this.props.getDefaultScalarArgValue||X4,b=x.definitions,C=b.map(function(j){return j.kind===\"FragmentDefinition\"||j.kind===\"OperationDefinition\"?j:null}).filter(Boolean),T=C.length===0?b1.definitions:C,N=function(X,ne){var J=ne==null||ne===\"\"?null:{kind:\"Name\",value:ne,loc:void 0},re=$t({},X,{name:J}),Z=x.definitions,de=Z.map(function(K){return X===K?re:K});return $t({},x,{definitions:de})},F=function(X){var ne=void 0;X.kind===\"FragmentDefinition\"?ne=\"fragment\":ne=X.operation;var J=(X.name&&X.name.value||\"\")+\"Copy\",re={kind:\"Name\",value:J,loc:void 0},Z=$t({},X,{name:re}),de=x.definitions,K=[].concat(Ao(de),[Z]);return r.setState({operationToScrollTo:ne+\"-\"+J}),$t({},x,{definitions:K})},L=function(X){var ne=x.definitions,J=ne.filter(function(re){return X!==re});return $t({},x,{definitions:J})},A=function(X){var ne=x.definitions,J=x.definitions.length===1&&x.definitions[0]===b1.definitions[0],re=J?[]:ne.filter(function(le){return le.kind===\"OperationDefinition\"?le.operation===X:!1}),Z=\"My\"+$x(X)+(re.length===0?\"\":re.length+1),de=\"__typename # Placeholder value\",K={kind:\"SelectionSet\",selections:[{kind:\"Field\",name:{kind:\"Name\",value:de,loc:null},arguments:[],directives:[],selectionSet:null,loc:null}],loc:null},ve={kind:\"OperationDefinition\",operation:X,name:{kind:\"Name\",value:Z},variableDefinitions:[],directives:[],selectionSet:K,loc:null},ue=J?[ve]:[].concat(Ao(x.definitions),[ve]),ce=$t({},x,{definitions:ue});r.setState({operationToScrollTo:X+\"-\"+Z}),r.props.onEdit((0,ut.print)(ce))},P=[m?Se.createElement(\"option\",{key:\"query\",className:\"toolbar-button\",style:c.styles.buttonStyle,type:\"link\",value:\"query\"},\"Query\"):null,y?Se.createElement(\"option\",{key:\"mutation\",className:\"toolbar-button\",style:c.styles.buttonStyle,type:\"link\",value:\"mutation\"},\"Mutation\"):null,S?Se.createElement(\"option\",{key:\"subscription\",className:\"toolbar-button\",style:c.styles.buttonStyle,type:\"link\",value:\"subscription\"},\"Subscription\"):null].filter(Boolean),V=P.length===0||this.props.hideActions?null:Se.createElement(\"div\",{style:{minHeight:\"50px\",maxHeight:\"50px\",overflow:\"none\"}},Se.createElement(\"form\",{className:\"variable-editor-title graphiql-explorer-actions\",style:$t({},c.styles.explorerActionsStyle,{display:\"flex\",flexDirection:\"row\",alignItems:\"center\",borderTop:\"1px solid rgb(214, 214, 214)\"}),onSubmit:function(X){return X.preventDefault()}},Se.createElement(\"span\",{style:{display:\"inline-block\",flexGrow:\"0\",textAlign:\"right\"}},\"Add new\",\" \"),Se.createElement(\"select\",{onChange:function(X){return r._setAddOperationType(X.target.value)},value:this.state.newOperationType,style:{flexGrow:\"2\"}},P),Se.createElement(\"button\",{type:\"submit\",className:\"toolbar-button\",onClick:function(){return r.state.newOperationType?A(r.state.newOperationType):null},style:$t({},c.styles.buttonStyle,{height:\"22px\",width:\"22px\"})},Se.createElement(\"span\",null,\"+\")))),H=this.props.externalFragments&&this.props.externalFragments.reduce(function(j,X){if(X.kind===\"FragmentDefinition\"){var ne=X.typeCondition.name.value,J=j[ne]||[],re=[].concat(Ao(J),[X]).sort(function(Z,de){return Z.name.value.localeCompare(de.name.value)});return $t({},j,Q4({},ne,re))}return j},{}),G=T.reduce(function(j,X){if(X.kind===\"FragmentDefinition\"){var ne=X.typeCondition.name.value,J=j[ne]||[],re=[].concat(Ao(J),[X]).sort(function(Z,de){return Z.name.value.localeCompare(de.name.value)});return $t({},j,Q4({},ne,re))}return j},{}),z=$t({},G,H),U=this.props.showAttribution?Se.createElement(_ee,null):null;return Se.createElement(\"div\",{ref:function(X){r._ref=X},style:{fontSize:12,textOverflow:\"ellipsis\",whiteSpace:\"nowrap\",margin:0,padding:8,fontFamily:'Consolas, Inconsolata, \"Droid Sans Mono\", Monaco, monospace',display:\"flex\",flexDirection:\"column\",height:\"100%\"},className:\"graphiql-explorer-root\"},Se.createElement(\"div\",{style:{flexGrow:\"1\",overflow:\"scroll\"}},T.map(function(j,X){var ne=j&&j.name&&j.name.value,J=j.kind===\"FragmentDefinition\"?\"fragment\":j&&j.operation||\"query\",re=function(Ce){var qe=N(j,Ce);r.props.onEdit((0,ut.print)(qe))},Z=function(){var Ce=F(j);r.props.onEdit((0,ut.print)(Ce))},de=function(){var Ce=L(j);r.props.onEdit((0,ut.print)(Ce))},K=j.kind===\"FragmentDefinition\"&&j.typeCondition.kind===\"NamedType\"&&o.getType(j.typeCondition.name.value),ve=K instanceof ut.GraphQLObjectType?K.getFields():null,ue=J===\"query\"?m:J===\"mutation\"?y:J===\"subscription\"?S:j.kind===\"FragmentDefinition\"?ve:null,ce=j.kind===\"FragmentDefinition\"?j.typeCondition.name.value:null,le=function(Ce){var qe=(0,ut.print)(Ce);r.props.onEdit(qe)};return Se.createElement(Tee,{key:X,isLast:X===T.length-1,fields:ue,operationType:J,name:ne,definition:j,onOperationRename:re,onOperationDestroy:de,onOperationClone:Z,onTypeName:ce,onMount:r._handleRootViewMount,onCommit:le,onEdit:function(Ce,qe){var un=void 0;if((typeof qe>\"u\"?\"undefined\":iee(qe))===\"object\"&&typeof qe.commit<\"u\"?un=qe.commit:un=!0,Ce){var nt=$t({},x,{definitions:x.definitions.map(function(et){return et===j?Ce:et})});return un&&le(nt),nt}else return x},schema:o,getDefaultFieldNames:D,getDefaultScalarArgValue:_,makeDefaultArg:l,onRunOperation:function(){r.props.onRunOperation&&r.props.onRunOperation(ne)},styleConfig:c,availableFragments:z})}),U),V)}}]),t}(Se.PureComponent);r9.defaultProps={getDefaultFieldNames:Y4,getDefaultScalarArgValue:X4};var Cee=function(e){ha(t,e);function t(){var n,r,i,o;pa(this,t);for(var s=arguments.length,l=Array(s),c=0;c<s;c++)l[c]=arguments[c];return o=(r=(i=Fn(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(l))),i),i.state={hasError:!1,error:null,errorInfo:null},r),Fn(i,o)}return da(t,[{key:\"componentDidCatch\",value:function(r,i){this.setState({hasError:!0,error:r,errorInfo:i}),console.error(\"Error in component\",r,i)}},{key:\"render\",value:function(){return this.state.hasError?Se.createElement(\"div\",{style:{padding:18,fontFamily:\"sans-serif\"}},Se.createElement(\"div\",null,\"Something went wrong\"),Se.createElement(\"details\",{style:{whiteSpace:\"pre-wrap\"}},this.state.error?this.state.error.toString():null,Se.createElement(\"br\",null),this.state.errorInfo?this.state.errorInfo.componentStack:null)):this.props.children}}]),t}(Se.Component),Bx=function(e){ha(t,e);function t(){return pa(this,t),Fn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return da(t,[{key:\"render\",value:function(){return Se.createElement(\"div\",{className:\"docExplorerWrap\",style:{height:\"100%\",width:this.props.width,minWidth:this.props.width,zIndex:7,display:this.props.explorerIsOpen?\"flex\":\"none\",flexDirection:\"column\",overflow:\"hidden\"}},Se.createElement(\"div\",{className:\"doc-explorer-title-bar\"},Se.createElement(\"div\",{className:\"doc-explorer-title\"},this.props.title),Se.createElement(\"div\",{className:\"doc-explorer-rhs\"},Se.createElement(\"div\",{className:\"docExplorerHide\",onClick:this.props.onToggleExplorer},\"✕\"))),Se.createElement(\"div\",{className:\"doc-explorer-contents\",style:{padding:\"0px\",overflowY:\"unset\"}},Se.createElement(Cee,null,Se.createElement(r9,this.props))))}}]),t}(Se.PureComponent);Bx.defaultValue=Vx,Bx.defaultProps={width:320,title:\"Explorer\"},m1.default=Bx,Object.defineProperty(v1,\"__esModule\",{value:!0}),v1.Explorer=void 0;var xee=m1,i9=kee(xee);function kee(e){return e&&e.__esModule?e:{default:e}}v1.Explorer=i9.default;var Nee=v1.default=i9.default,jx={exports:{}},av={};/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/var o9=Object.getOwnPropertySymbols,Dee=Object.prototype.hasOwnProperty,Aee=Object.prototype.propertyIsEnumerable;function Oee(e){if(e==null)throw new TypeError(\"Object.assign cannot be called with null or undefined\");return Object(e)}function Iee(){try{if(!Object.assign)return!1;var e=new String(\"abc\");if(e[5]=\"de\",Object.getOwnPropertyNames(e)[0]===\"5\")return!1;for(var t={},n=0;n<10;n++)t[\"_\"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(o){return t[o]});if(r.join(\"\")!==\"0123456789\")return!1;var i={};return\"abcdefghijklmnopqrst\".split(\"\").forEach(function(o){i[o]=o}),Object.keys(Object.assign({},i)).join(\"\")===\"abcdefghijklmnopqrst\"}catch{return!1}}Iee();/** @license React v17.0.2\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */var Lee=G4,a9=60103;if(av.Fragment=60107,typeof Symbol==\"function\"&&Symbol.for){var s9=Symbol.for;a9=s9(\"react.element\"),av.Fragment=s9(\"react.fragment\")}var Fee=Lee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ree=Object.prototype.hasOwnProperty,Pee={key:!0,ref:!0,__self:!0,__source:!0};function l9(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=\"\"+n),t.key!==void 0&&(o=\"\"+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Ree.call(t,r)&&!Pee.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:a9,type:e,key:o,ref:s,props:i,_owner:Fee.current}}av.jsx=l9,av.jsxs=l9,jx.exports=av;const no=jx.exports.jsx,u9=jx.exports.jsxs;function Mee(e){const{setOperationName:t}=Pr({nonNull:!0}),{schema:n}=la({nonNull:!0}),{run:r}=Rf({nonNull:!0});return no(Nee,H4({schema:n,onRunOperation:i=>{i&&t(i),r()},explorerIsOpen:!0,colors:{keyword:\"hsl(var(--color-primary))\",def:\"hsl(var(--color-tertiary))\",property:\"hsl(var(--color-info))\",qualifier:\"hsl(var(--color-secondary))\",attribute:\"hsl(var(--color-tertiary))\",number:\"hsl(var(--color-success))\",string:\"hsl(var(--color-warning))\",builtin:\"hsl(var(--color-success))\",string2:\"hsl(var(--color-secondary))\",variable:\"hsl(var(--color-secondary))\",atom:\"hsl(var(--color-tertiary))\"},arrowOpen:no(\"svg\",{viewBox:\"0 -4 13 15\",style:{color:\"hsla(var(--color-neutral), var(--alpha-tertiary, 0.4))\",marginRight:\"var(--px-4)\",height:\"var(--px-16)\",width:\"var(--px-16)\"},children:no(\"path\",{d:\"M3.35355 6.85355L6.14645 9.64645C6.34171 9.84171 6.65829 9.84171 6.85355 9.64645L9.64645 6.85355C9.96143 6.53857 9.73835 6 9.29289 6L3.70711 6C3.26165 6 3.03857 6.53857 3.35355 6.85355Z\",fill:\"currentColor\"})}),arrowClosed:no(\"svg\",{viewBox:\"0 -2 13 15\",style:{color:\"hsla(var(--color-neutral), var(--alpha-tertiary, 0.4))\",marginRight:\"var(--px-4)\",height:\"var(--px-16)\",width:\"var(--px-16)\"},children:no(\"path\",{d:\"M6.35355 11.1464L9.14645 8.35355C9.34171 8.15829 9.34171 7.84171 9.14645 7.64645L6.35355 4.85355C6.03857 4.53857 5.5 4.76165 5.5 5.20711V10.7929C5.5 11.2383 6.03857 11.4614 6.35355 11.1464Z\",fill:\"currentColor\"})}),checkboxUnchecked:no(\"svg\",{viewBox:\"0 0 15 15\",style:{color:\"hsla(var(--color-neutral), var(--alpha-tertiary, 0.4))\",marginRight:\"var(--px-4)\",height:\"var(--px-16)\",width:\"var(--px-16)\"},children:no(\"circle\",{cx:\"7.5\",cy:\"7.5\",r:\"6\",stroke:\"currentColor\",fill:\"none\"})}),checkboxChecked:u9(\"svg\",{viewBox:\"0 0 15 15\",style:{color:\"hsl(var(--color-info))\",marginRight:\"var(--px-4)\",height:\"var(--px-16)\",width:\"var(--px-16)\"},children:[no(\"circle\",{cx:\"7.5\",cy:\"7.5\",r:\"7.5\",fill:\"currentColor\"}),no(\"path\",{d:\"M4.64641 7.00106L6.8801 9.23256L10.5017 5.61325\",fill:\"none\",stroke:\"white\",strokeWidth:\"1.5\"})]}),styles:{buttonStyle:{backgroundColor:\"transparent\",border:\"none\",color:\"hsla(var(--color-neutral), var(--alpha-secondary, 0.6))\",cursor:\"pointer\",fontSize:\"1em\"},explorerActionsStyle:{padding:\"var(--px-8) var(--px-4)\"},actionButtonStyle:{backgroundColor:\"transparent\",border:\"none\",color:\"hsla(var(--color-neutral), var(--alpha-secondary, 0.6))\",cursor:\"pointer\",fontSize:\"1em\"}}},e))}function $ee(e){const t=O.useRef(e);return t.current=e,O.useMemo(()=>({title:\"GraphiQL Explorer\",icon:()=>u9(\"svg\",{height:\"1em\",strokeWidth:\"1.5\",viewBox:\"0 0 24 24\",fill:\"none\",children:[no(\"path\",{d:\"M18 6H20M22 6H20M20 6V4M20 6V8\",stroke:\"currentColor\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}),no(\"path\",{d:\"M21.4 20H2.6C2.26863 20 2 19.7314 2 19.4V11H21.4C21.7314 11 22 11.2686 22 11.6V19.4C22 19.7314 21.7314 20 21.4 20Z\",stroke:\"currentColor\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}),no(\"path\",{d:\"M2 11V4.6C2 4.26863 2.26863 4 2.6 4H8.77805C8.92127 4 9.05977 4.05124 9.16852 4.14445L12.3315 6.85555C12.4402 6.94876 12.5787 7 12.722 7H14\",stroke:\"currentColor\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})]}),content:()=>no(Mee,H4({},t.current))}),[])}const Vee=e=>Array.isArray(e)?e:e?[e]:[];function Bee(e){return e!=null&&typeof e==\"object\"&&Symbol.iterator in e}function Ux(e){return typeof e==\"object\"&&e!==null}function sr(e){return Ux(e)&&typeof e.then==\"function\"}function jee(e,t,n){let r=n;for(const i of e)r=sr(r)?r.then(o=>t(o,i)):t(r,i);return r}function c9(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ct(e,t){return kS.major>=17?new he(e,t):new he(e,t==null?void 0:t.nodes,t==null?void 0:t.source,t==null?void 0:t.positions,t==null?void 0:t.path,t==null?void 0:t.originalError,t==null?void 0:t.extensions)}function qx(e,t){return Ct(e.message,{nodes:e.nodes,source:e.source,positions:e.positions,path:t??e.path,originalError:e,extensions:e.extensions})}let Kf;if(typeof AggregateError>\"u\"){class e extends Error{constructor(n,r=\"\"){super(r),this.errors=n,this.name=\"AggregateError\",Error.captureStackTrace(this,e)}}Kf=function(t,n){return new e(t,n)}}else Kf=AggregateError;function Uee(e){return\"errors\"in e&&Array.isArray(e.errors)}const f9=3;function Sr(e){return E1(e,[])}function E1(e,t){switch(typeof e){case\"string\":return JSON.stringify(e);case\"function\":return e.name?`[function ${e.name}]`:\"[function]\";case\"object\":return qee(e,t);default:return String(e)}}function d9(e){return e instanceof he?e.toString():`${e.name}: ${e.message};\n ${e.stack}`}function qee(e,t){if(e===null)return\"null\";if(e instanceof Error)return Uee(e)?d9(e)+`\n`+p9(e.errors,t):d9(e);if(t.includes(e))return\"[Circular]\";const n=[...t,e];if(Hee(e)){const r=e.toJSON();if(r!==e)return typeof r==\"string\"?r:E1(r,n)}else if(Array.isArray(e))return p9(e,n);return zee(e,n)}function Hee(e){return typeof e.toJSON==\"function\"}function zee(e,t){const n=Object.entries(e);return n.length===0?\"{}\":t.length>f9?\"[\"+Gee(e)+\"]\":\"{ \"+n.map(([i,o])=>i+\": \"+E1(o,t)).join(\", \")+\" }\"}function p9(e,t){if(e.length===0)return\"[]\";if(t.length>f9)return\"[Array]\";const n=e.length,r=[];for(let i=0;i<n;++i)r.push(E1(e[i],t));return\"[\"+r.join(\", \")+\"]\"}function Gee(e){const t=Object.prototype.toString.call(e).replace(/^\\[object /,\"\").replace(/]$/,\"\");if(t===\"Object\"&&typeof e.constructor==\"function\"){const n=e.constructor.name;if(typeof n==\"string\"&&n!==\"\")return n}return t}function h9(e,t,n={}){var r;const i={},s=((r=t.arguments)!==null&&r!==void 0?r:[]).reduce((l,c)=>({...l,[c.name.value]:c}),{});for(const{name:l,type:c,defaultValue:f}of e.args){const h=s[l];if(!h){if(f!==void 0)i[l]=f;else if(Ge(c))throw Ct(`Argument \"${l}\" of required type \"${Sr(c)}\" was not provided.`,{nodes:[t]});continue}const g=h.value;let m=g.kind===q.NULL;if(g.kind===q.VARIABLE){const S=g.name.value;if(n==null||!c9(n,S)){if(f!==void 0)i[l]=f;else if(Ge(c))throw Ct(`Argument \"${l}\" of required type \"${Sr(c)}\" was provided the variable \"$${S}\" which was not provided a runtime value.`,{nodes:[g]});continue}m=n[S]==null}if(m&&Ge(c))throw Ct(`Argument \"${l}\" of non-null type \"${Sr(c)}\" must not be null.`,{nodes:[g]});const y=So(g,c,n);if(y===void 0)throw Ct(`Argument \"${l}\" has invalid value ${gt(g)}.`,{nodes:[g]});i[l]=y}return i}function Hx(e){if(Ge(e)){const t=Hx(e.ofType);if(t.kind===q.NON_NULL_TYPE)throw new Error(`Invalid type node ${Sr(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:q.NON_NULL_TYPE,type:t}}else if(St(e))return{kind:q.LIST_TYPE,type:Hx(e.ofType)};return{kind:q.NAMED_TYPE,name:{kind:q.NAME,value:e.name}}}function nc(e){const t=new WeakMap;return function(r){const i=t.get(r);if(i===void 0){const o=e(r);return t.set(r,o),o}return i}}function zx(e){const t=new WeakMap;return function(r,i){let o=t.get(r);if(!o){o=new WeakMap,t.set(r,o);const l=e(r,i);return o.set(i,l),l}const s=o.get(i);if(s===void 0){const l=e(r,i);return o.set(i,l),l}return s}}function Wee(e){const t=new WeakMap;return function(r,i,o){let s=t.get(r);if(!s){s=new WeakMap,t.set(r,s);const f=new WeakMap;s.set(i,f);const h=e(r,i,o);return f.set(o,h),h}let l=s.get(i);if(!l){l=new WeakMap,s.set(i,l);const f=e(r,i,o);return l.set(o,f),f}const c=l.get(o);if(c===void 0){const f=e(r,i,o);return l.set(o,f),f}return c}}function Qee(e){const t=new WeakMap;return function(r,i,o,s,l){let c=t.get(r);if(!c){c=new WeakMap,t.set(r,c);const y=new WeakMap;c.set(i,y);const S=new WeakMap;y.set(o,S);const x=new WeakMap;S.set(s,x);const D=e(r,i,o,s,l);return x.set(l,D),D}let f=c.get(i);if(!f){f=new WeakMap,c.set(i,f);const y=new WeakMap;f.set(o,y);const S=new WeakMap;y.set(s,S);const x=e(r,i,o,s,l);return S.set(l,x),x}let h=f.get(o);if(!h){h=new WeakMap,f.set(o,h);const y=new WeakMap;h.set(s,y);const S=e(r,i,o,s,l);return y.set(l,S),S}let g=h.get(s);if(!g){g=new WeakMap,h.set(s,g);const y=e(r,i,o,s,l);return g.set(l,y),y}const m=g.get(l);if(m===void 0){const y=e(r,i,o,s,l);return g.set(l,y),y}return m}}function Yee(e){const t=new WeakMap;return function(r,i,o,s){let l=t.get(r);if(!l){l=new WeakMap,t.set(r,l);const f=e(r,i,o,s);return l.set(i,f),f}const c=l.get(i);if(c===void 0){const f=e(r,i,o,s);return l.set(i,f),f}return c}}function w1(e,t,n){const i=Gx(e).get(t);if(i==null)throw Ct(`Schema is not configured to execute ${t} operation.`,{nodes:n});return i}const Jee=nc(function(t){const n=Kee(t);return new Set([...n].map(r=>r.name))}),Kee=nc(function(t){const n=Gx(t);return new Set(n.values())}),Gx=nc(function(t){const n=new Map,r=t.getQueryType();r&&n.set(\"query\",r);const i=t.getMutationType();i&&n.set(\"mutation\",i);const o=t.getSubscriptionType();return o&&n.set(\"subscription\",o),n}),Xee=80;let v9={};function Zee(e){return`\n# `+e.replace(/\\n/g,`\n# `)}function je(e,t){return e?e.filter(n=>n).join(t||\"\"):\"\"}function m9(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(`\n`)))!==null&&t!==void 0?t:!1}function ete(e){return(t,n,r,i,o)=>{var s;const l=[],c=i.reduce((g,m)=>([\"fields\",\"arguments\",\"values\"].includes(m)&&g.name&&l.push(g.name.value),g[m]),o[0]),f=[...l,(s=c==null?void 0:c.name)===null||s===void 0?void 0:s.value].filter(Boolean).join(\".\"),h=[];return t.kind.includes(\"Definition\")&&v9[f]&&h.push(...v9[f]),je([...h.map(Zee),t.description,e(t,n,r,i,o)],`\n`)}}function sv(e){return e&&` ${e.replace(/\\n/g,`\n `)}`}function va(e){return e&&e.length!==0?`{\n${sv(je(e,`\n`))}\n}`:\"\"}function bn(e,t,n){return t?e+t+(n||\"\"):\"\"}function tte(e,t=!1){const n=e.replace(/\"\"\"/g,'\\\\\"\"\"');return(e[0]===\" \"||e[0]===\"\t\")&&e.indexOf(`\n`)===-1?`\"\"\"${n.replace(/\"$/,`\"\n`)}\"\"\"`:`\"\"\"\n${t?n:sv(n)}\n\"\"\"`}const g9={Name:{leave:e=>e.value},Variable:{leave:e=>\"$\"+e.name},Document:{leave:e=>je(e.definitions,`\n\n`)},OperationDefinition:{leave:e=>{const t=bn(\"(\",je(e.variableDefinitions,\", \"),\")\");return je([e.operation,je([e.name,t]),je(e.directives,\" \")],\" \")+\" \"+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+\": \"+t+bn(\" = \",n)+bn(\" \",je(r,\" \"))},SelectionSet:{leave:({selections:e})=>va(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=bn(\"\",e,\": \")+t;let s=o+bn(\"(\",je(n,\", \"),\")\");return s.length>Xee&&(s=o+bn(`(\n`,sv(je(n,`\n`)),`\n)`)),je([s,je(r,\" \"),i],\" \")}},Argument:{leave:({name:e,value:t})=>e+\": \"+t},FragmentSpread:{leave:({name:e,directives:t})=>\"...\"+e+bn(\" \",je(t,\" \"))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>je([\"...\",bn(\"on \",e),je(t,\" \"),n],\" \")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${bn(\"(\",je(n,\", \"),\")\")} on ${t} ${bn(\"\",je(r,\" \"),\" \")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?tte(e):JSON.stringify(e)},BooleanValue:{leave:({value:e})=>e?\"true\":\"false\"},NullValue:{leave:()=>\"null\"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>\"[\"+je(e,\", \")+\"]\"},ObjectValue:{leave:({fields:e})=>\"{\"+je(e,\", \")+\"}\"},ObjectField:{leave:({name:e,value:t})=>e+\": \"+t},Directive:{leave:({name:e,arguments:t})=>\"@\"+e+bn(\"(\",je(t,\", \"),\")\")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>\"[\"+e+\"]\"},NonNullType:{leave:({type:e})=>e+\"!\"},SchemaDefinition:{leave:({directives:e,operationTypes:t})=>je([\"schema\",je(e,\" \"),va(t)],\" \")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+\": \"+t},ScalarTypeDefinition:{leave:({name:e,directives:t})=>je([\"scalar\",e,je(t,\" \")],\" \")},ObjectTypeDefinition:{leave:({name:e,interfaces:t,directives:n,fields:r})=>je([\"type\",e,bn(\"implements \",je(t,\" & \")),je(n,\" \"),va(r)],\" \")},FieldDefinition:{leave:({name:e,arguments:t,type:n,directives:r})=>e+(m9(t)?bn(`(\n`,sv(je(t,`\n`)),`\n)`):bn(\"(\",je(t,\", \"),\")\"))+\": \"+n+bn(\" \",je(r,\" \"))},InputValueDefinition:{leave:({name:e,type:t,defaultValue:n,directives:r})=>je([e+\": \"+t,bn(\"= \",n),je(r,\" \")],\" \")},InterfaceTypeDefinition:{leave:({name:e,interfaces:t,directives:n,fields:r})=>je([\"interface\",e,bn(\"implements \",je(t,\" & \")),je(n,\" \"),va(r)],\" \")},UnionTypeDefinition:{leave:({name:e,directives:t,types:n})=>je([\"union\",e,je(t,\" \"),bn(\"= \",je(n,\" | \"))],\" \")},EnumTypeDefinition:{leave:({name:e,directives:t,values:n})=>je([\"enum\",e,je(t,\" \"),va(n)],\" \")},EnumValueDefinition:{leave:({name:e,directives:t})=>je([e,je(t,\" \")],\" \")},InputObjectTypeDefinition:{leave:({name:e,directives:t,fields:n})=>je([\"input\",e,je(t,\" \"),va(n)],\" \")},DirectiveDefinition:{leave:({name:e,arguments:t,repeatable:n,locations:r})=>\"directive @\"+e+(m9(t)?bn(`(\n`,sv(je(t,`\n`)),`\n)`):bn(\"(\",je(t,\", \"),\")\"))+(n?\" repeatable\":\"\")+\" on \"+je(r,\" | \")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>je([\"extend schema\",je(e,\" \"),va(t)],\" \")},ScalarTypeExtension:{leave:({name:e,directives:t})=>je([\"extend scalar\",e,je(t,\" \")],\" \")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>je([\"extend type\",e,bn(\"implements \",je(t,\" & \")),je(n,\" \"),va(r)],\" \")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>je([\"extend interface\",e,bn(\"implements \",je(t,\" & \")),je(n,\" \"),va(r)],\" \")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>je([\"extend union\",e,je(t,\" \"),bn(\"= \",je(n,\" | \"))],\" \")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>je([\"extend enum\",e,je(t,\" \"),va(n)],\" \")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>je([\"extend input\",e,je(t,\" \"),va(n)],\" \")}};Object.keys(g9).reduce((e,t)=>({...e,[t]:{leave:ete(g9[t].leave)}}),{});function nte(e){const t=e.loc;if(!t)return;const n=[];let r=t.startToken.prev;for(;r!=null&&r.kind===ge.COMMENT&&r.next!=null&&r.prev!=null&&r.line+1===r.next.line&&r.line!==r.prev.line;){const i=String(r.value);n.push(i),r=r.prev}return n.length>0?n.reverse().join(`\n`):void 0}function rte(e){const t=e.split(/\\r\\n|[\\n\\r]/g),n=ite(t);if(n!==0)for(let r=1;r<t.length;r++)t[r]=t[r].slice(n);for(;t.length>0&&b9(t[0]);)t.shift();for(;t.length>0&&b9(t[t.length-1]);)t.pop();return t.join(`\n`)}function ite(e){let t=null;for(let n=1;n<e.length;n++){const r=e[n],i=y9(r);if(i!==r.length&&(t===null||i<t)&&(t=i,t===0))break}return t===null?0:t}function y9(e){let t=0;for(;t<e.length&&(e[t]===\" \"||e[t]===\"\t\");)t++;return t}function b9(e){return y9(e)===e.length}function ote(e,t,n={}){let r;try{n.commentDescriptions&&t.includes(\"#\")?(r=ate(t,n),n.noLocation&&(r=zr(gt(r),n))):r=zr(new zp(t,e),n)}catch(i){if(i.message.includes(\"EOF\")&&t.replace(/(\\#[^*]*)/g,\"\").trim()===\"\")r={kind:q.DOCUMENT,definitions:[]};else throw i}return{location:e,document:r}}function ate(e,t={}){const n=zr(e,{...t,noLocation:!1});return Hn(n,{leave:i=>{if(ste(i)){const o=nte(i);if(o!==void 0){const s=rte(`\n`+o),l=s.includes(`\n`);return i.description?{...i,description:{...i.description,value:i.description.value+`\n`+s,block:!0}}:{...i,description:{kind:q.STRING,value:s,block:l}}}}}})}function ste(e){return ty(e)||e.kind===q.FIELD_DEFINITION||e.kind===q.INPUT_VALUE_DEFINITION||e.kind===q.ENUM_VALUE_DEFINITION}var ft;(function(e){e.TYPE=\"MapperKind.TYPE\",e.SCALAR_TYPE=\"MapperKind.SCALAR_TYPE\",e.ENUM_TYPE=\"MapperKind.ENUM_TYPE\",e.COMPOSITE_TYPE=\"MapperKind.COMPOSITE_TYPE\",e.OBJECT_TYPE=\"MapperKind.OBJECT_TYPE\",e.INPUT_OBJECT_TYPE=\"MapperKind.INPUT_OBJECT_TYPE\",e.ABSTRACT_TYPE=\"MapperKind.ABSTRACT_TYPE\",e.UNION_TYPE=\"MapperKind.UNION_TYPE\",e.INTERFACE_TYPE=\"MapperKind.INTERFACE_TYPE\",e.ROOT_OBJECT=\"MapperKind.ROOT_OBJECT\",e.QUERY=\"MapperKind.QUERY\",e.MUTATION=\"MapperKind.MUTATION\",e.SUBSCRIPTION=\"MapperKind.SUBSCRIPTION\",e.DIRECTIVE=\"MapperKind.DIRECTIVE\",e.FIELD=\"MapperKind.FIELD\",e.COMPOSITE_FIELD=\"MapperKind.COMPOSITE_FIELD\",e.OBJECT_FIELD=\"MapperKind.OBJECT_FIELD\",e.ROOT_FIELD=\"MapperKind.ROOT_FIELD\",e.QUERY_ROOT_FIELD=\"MapperKind.QUERY_ROOT_FIELD\",e.MUTATION_ROOT_FIELD=\"MapperKind.MUTATION_ROOT_FIELD\",e.SUBSCRIPTION_ROOT_FIELD=\"MapperKind.SUBSCRIPTION_ROOT_FIELD\",e.INTERFACE_FIELD=\"MapperKind.INTERFACE_FIELD\",e.INPUT_OBJECT_FIELD=\"MapperKind.INPUT_OBJECT_FIELD\",e.ARGUMENT=\"MapperKind.ARGUMENT\",e.ENUM_VALUE=\"MapperKind.ENUM_VALUE\"})(ft||(ft={}));function Xf(e,t){if(t){const n=e[t.name];if(Xe(n))return n}}function lte(e){if(\"getFields\"in e){const t=e.getFields();for(const n in t)return t[n].name===\"_fake\"}return!1}function ute(e){switch(e.name){case Yp.name:return Yp;case Jp.name:return Jp;case Jt.name:return Jt;case an.name:return an;case Kp.name:return Kp;default:return e}}function cte(e,t){const n=Object.create(null);for(const m in e)n[m]=e[m];const r=Object.create(null);for(const m in n){const y=n[m];if(y==null||m.startsWith(\"__\"))continue;const S=y.name;if(!S.startsWith(\"__\")){if(r[S]!=null){console.warn(`Duplicate schema type name ${S} found; keeping the existing one found in the schema`);continue}r[S]=y}}for(const m in r)r[m]=l(r[m]);const i=t.map(m=>o(m));return{typeMap:r,directives:i};function o(m){if(Jg(m))return m;const y=m.toConfig();return y.args=s(y.args),new Xi(y)}function s(m){const y={};for(const S in m){const x=m[S],D=g(x.type);D!=null&&(x.type=D,y[S]=x)}return y}function l(m){if(Xe(m)){const y=m.toConfig(),S={...y,fields:()=>c(y.fields),interfaces:()=>h(y.interfaces)};return new rr(S)}else if(ot(m)){const y=m.toConfig(),S={...y,fields:()=>c(y.fields)};return\"interfaces\"in S&&(S.interfaces=()=>h(y.interfaces)),new ci(S)}else if(On(m)){const y=m.toConfig(),S={...y,types:()=>h(y.types)};return new bl(S)}else if(Tt(m)){const y=m.toConfig(),S={...y,fields:()=>f(y.fields)};return new fi(S)}else if(rn(m)){const y=m.toConfig();return new Qr(y)}else if(ui(m)){if(Zp(m))return m;const y=m.toConfig();return new Eo(y)}throw new Error(`Unexpected schema type: ${m}`)}function c(m){const y={};for(const S in m){const x=m[S],D=g(x.type);D!=null&&x.args&&(x.type=D,x.args=s(x.args),y[S]=x)}return y}function f(m){const y={};for(const S in m){const x=m[S],D=g(x.type);D!=null&&(x.type=D,y[S]=x)}return y}function h(m){const y=[];for(const S of m){const x=g(S);x!=null&&y.push(x)}return y}function g(m){if(St(m)){const y=g(m.ofType);return y!=null?new on(y):null}else if(Ge(m)){const y=g(m.ofType);return y!=null?new rt(y):null}else if(gl(m)){let y=n[m.name];return y===void 0&&(y=lte(m)?ute(m):l(m),r[y.name]=n[m.name]=y),y!=null?r[y.name]:null}return null}}function S1(e,t,n=null,r=null){if(t==null)return t;const i=ml(e);if(Wr(i))return n!=null?n(i,t):t;if(St(i))return Vee(t).map(o=>S1(i.ofType,o,n,r));if(Tt(i)){const o=i.getFields(),s={};for(const l in t){const c=o[l];c!=null&&(s[l]=S1(c.type,t[l],n,r))}return r!=null?r(i,s):s}}function T1(e,t){return S1(e,t,(n,r)=>{try{return n.serialize(r)}catch{return r}})}function fte(e,t){return S1(e,t,(n,r)=>{try{return n.parseValue(r)}catch{return r}})}function dte(e,t={}){const n=S9(w9(Wx(E9(pte(Wx(E9(e.getTypeMap(),e,T1),e,t,l=>Wr(l)),e,t),e,fte),e,t,l=>!Wr(l)),e,t),e,t),r=e.getDirectives(),i=hte(r,e,t),{typeMap:o,directives:s}=cte(n,i);return new Fu({...e.toConfig(),query:Xf(o,Xf(n,e.getQueryType())),mutation:Xf(o,Xf(n,e.getMutationType())),subscription:Xf(o,Xf(n,e.getSubscriptionType())),types:Object.values(o),directives:s})}function Wx(e,t,n,r=()=>!0){const i={};for(const o in e)if(!o.startsWith(\"__\")){const s=e[o];if(s==null||!r(s)){i[o]=s;continue}const l=mte(t,n,o);if(l==null){i[o]=s;continue}const c=l(s,t);if(c===void 0){i[o]=s;continue}i[o]=c}return i}function pte(e,t,n){const r=wte(n);return r?Wx(e,t,{[ft.ENUM_TYPE]:i=>{const o=i.toConfig(),s=o.values,l={};for(const c in s){const f=s[c],h=r(f,i.name,t,c);if(h===void 0)l[c]=f;else if(Array.isArray(h)){const[g,m]=h;l[g]=m===void 0?f:m}else h!==null&&(l[c]=h)}return C1(new Qr({...o,values:l}))}},i=>rn(i)):e}function E9(e,t,n){const r=S9(e,t,{[ft.ARGUMENT]:i=>{if(i.defaultValue===void 0)return i;const o=_1(e,i.type);if(o!=null)return{...i,defaultValue:n(o,i.defaultValue)}}});return w9(r,t,{[ft.INPUT_OBJECT_FIELD]:i=>{if(i.defaultValue===void 0)return i;const o=_1(r,i.type);if(o!=null)return{...i,defaultValue:n(o,i.defaultValue)}}})}function _1(e,t){if(St(t)){const n=_1(e,t.ofType);return n!=null?new on(n):null}else if(Ge(t)){const n=_1(e,t.ofType);return n!=null?new rt(n):null}else if(gl(t)){const n=e[t.name];return n??null}return null}function w9(e,t,n){const r={};for(const i in e)if(!i.startsWith(\"__\")){const o=e[i];if(!Xe(o)&&!ot(o)&&!Tt(o)){r[i]=o;continue}const s=yte(t,n,i);if(s==null){r[i]=o;continue}const l=o.toConfig(),c=l.fields,f={};for(const h in c){const g=c[h],m=s(g,h,i,t);if(m===void 0)f[h]=g;else if(Array.isArray(m)){const[y,S]=m;S.astNode!=null&&(S.astNode={...S.astNode,name:{...S.astNode.name,value:y}}),f[y]=S===void 0?g:S}else m!==null&&(f[h]=m)}Xe(o)?r[i]=C1(new rr({...l,fields:f})):ot(o)?r[i]=C1(new ci({...l,fields:f})):r[i]=C1(new fi({...l,fields:f}))}return r}function S9(e,t,n){const r={};for(const i in e)if(!i.startsWith(\"__\")){const o=e[i];if(!Xe(o)&&!ot(o)){r[i]=o;continue}const s=bte(n);if(s==null){r[i]=o;continue}const l=o.toConfig(),c=l.fields,f={};for(const h in c){const g=c[h],m=g.args;if(m==null){f[h]=g;continue}const y=Object.keys(m);if(!y.length){f[h]=g;continue}const S={};for(const x of y){const D=m[x],_=s(D,h,i,t);if(_===void 0)S[x]=D;else if(Array.isArray(_)){const[b,C]=_;S[b]=C}else _!==null&&(S[x]=_)}f[h]={...g,args:S}}Xe(o)?r[i]=new rr({...l,fields:f}):ot(o)?r[i]=new ci({...l,fields:f}):r[i]=new fi({...l,fields:f})}return r}function hte(e,t,n){const r=Ete(n);if(r==null)return e.slice();const i=[];for(const o of e){const s=r(o,t);s===void 0?i.push(o):s!==null&&i.push(s)}return i}function vte(e,t){var n,r,i;const o=e.getType(t),s=[ft.TYPE];return Xe(o)?(s.push(ft.COMPOSITE_TYPE,ft.OBJECT_TYPE),t===((n=e.getQueryType())===null||n===void 0?void 0:n.name)?s.push(ft.ROOT_OBJECT,ft.QUERY):t===((r=e.getMutationType())===null||r===void 0?void 0:r.name)?s.push(ft.ROOT_OBJECT,ft.MUTATION):t===((i=e.getSubscriptionType())===null||i===void 0?void 0:i.name)&&s.push(ft.ROOT_OBJECT,ft.SUBSCRIPTION)):Tt(o)?s.push(ft.INPUT_OBJECT_TYPE):ot(o)?s.push(ft.COMPOSITE_TYPE,ft.ABSTRACT_TYPE,ft.INTERFACE_TYPE):On(o)?s.push(ft.COMPOSITE_TYPE,ft.ABSTRACT_TYPE,ft.UNION_TYPE):rn(o)?s.push(ft.ENUM_TYPE):ui(o)&&s.push(ft.SCALAR_TYPE),s}function mte(e,t,n){const r=vte(e,n);let i;const o=[...r];for(;!i&&o.length>0;){const s=o.pop();i=t[s]}return i??null}function gte(e,t){var n,r,i;const o=e.getType(t),s=[ft.FIELD];return Xe(o)?(s.push(ft.COMPOSITE_FIELD,ft.OBJECT_FIELD),t===((n=e.getQueryType())===null||n===void 0?void 0:n.name)?s.push(ft.ROOT_FIELD,ft.QUERY_ROOT_FIELD):t===((r=e.getMutationType())===null||r===void 0?void 0:r.name)?s.push(ft.ROOT_FIELD,ft.MUTATION_ROOT_FIELD):t===((i=e.getSubscriptionType())===null||i===void 0?void 0:i.name)&&s.push(ft.ROOT_FIELD,ft.SUBSCRIPTION_ROOT_FIELD)):ot(o)?s.push(ft.COMPOSITE_FIELD,ft.INTERFACE_FIELD):Tt(o)&&s.push(ft.INPUT_OBJECT_FIELD),s}function yte(e,t,n){const r=gte(e,n);let i;const o=[...r];for(;!i&&o.length>0;){const s=o.pop();i=t[s]}return i??null}function bte(e){const t=e[ft.ARGUMENT];return t??null}function Ete(e){const t=e[ft.DIRECTIVE];return t??null}function wte(e){const t=e[ft.ENUM_VALUE];return t??null}function C1(e){if(Xe(e)){const t=e.toConfig();if(t.astNode!=null){const n=[];for(const r in t.fields){const i=t.fields[r];i.astNode!=null&&n.push(i.astNode)}t.astNode={...t.astNode,kind:q.OBJECT_TYPE_DEFINITION,fields:n}}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>({...n,kind:q.OBJECT_TYPE_EXTENSION,fields:void 0}))),new rr(t)}else if(ot(e)){const t=e.toConfig();if(t.astNode!=null){const n=[];for(const r in t.fields){const i=t.fields[r];i.astNode!=null&&n.push(i.astNode)}t.astNode={...t.astNode,kind:q.INTERFACE_TYPE_DEFINITION,fields:n}}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>({...n,kind:q.INTERFACE_TYPE_EXTENSION,fields:void 0}))),new ci(t)}else if(Tt(e)){const t=e.toConfig();if(t.astNode!=null){const n=[];for(const r in t.fields){const i=t.fields[r];i.astNode!=null&&n.push(i.astNode)}t.astNode={...t.astNode,kind:q.INPUT_OBJECT_TYPE_DEFINITION,fields:n}}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>({...n,kind:q.INPUT_OBJECT_TYPE_EXTENSION,fields:void 0}))),new fi(t)}else if(rn(e)){const t=e.toConfig();if(t.astNode!=null){const n=[];for(const r in t.values){const i=t.values[r];i.astNode!=null&&n.push(i.astNode)}t.astNode={...t.astNode,values:n}}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>({...n,values:void 0}))),new Qr(t)}else return e}function Qx(e){return e.fieldNodes[0].alias!=null?e.fieldNodes[0].alias.value:e.fieldName}function Yx(e,t,n){let r,i;typeof e.return==\"function\"&&(r=e.return,i=l=>{const c=()=>Promise.reject(l);return r.call(e).then(c,c)});function o(l){return l.done?l:T9(l.value,t).then(_9,i)}let s;if(n){const l=n;s=c=>T9(c,l).then(_9,i)}return{next(){return e.next().then(o,s)},return(){return r?r.call(e).then(o,s):Promise.resolve({value:void 0,done:!0})},throw(l){return typeof e.throw==\"function\"?e.throw(l).then(o,s):Promise.reject(l).catch(i)},[Symbol.asyncIterator](){return this}}}function T9(e,t){return new Promise(n=>n(t(e)))}function _9(e){return{value:e,done:!1}}function C9(e,t,n,r,i,o,s){if(e[r]={kind:q.ARGUMENT,name:{kind:q.NAME,value:r},value:{kind:q.VARIABLE,name:{kind:q.NAME,value:i}}},t[i]={kind:q.VARIABLE_DEFINITION,variable:{kind:q.VARIABLE,name:{kind:q.NAME,value:i}},type:Hx(o)},s!==void 0){n[i]=s;return}i in n&&delete n[i]}function x9(e){let t=0;return n=>{let r;do r=`_v${(t++).toString()}_${n}`;while(r in e);return r}}function x1(e,t,n){return n==null||t==null?!1:t===n?!0:pn(t)&&pn(n)?Qp(e,t,n):!1}function Ste(e){const t=[],n=[];let r=!0;const i=h=>{t.length!==0?t.shift()({value:h,done:!1}):n.push({value:h,done:!1})},o=h=>{t.length!==0?t.shift()({value:{errors:[h]},done:!1}):n.push({value:{errors:[h]},done:!1})},s=()=>{t.length!==0?t.shift()({done:!0}):n.push({done:!0})},l=()=>new Promise(h=>{if(n.length!==0){const g=n.shift();h(g)}else t.push(h)}),c=e.subscribe({next(h){i(h)},error(h){o(h)},complete(){s()}}),f=()=>{if(r){r=!1,c.unsubscribe();for(const h of t)h({value:void 0,done:!0});t.length=0,n.length=0}};return{next(){return r?l():this.return()},return(){return f(),Promise.resolve({value:void 0,done:!0})},throw(h){return f(),Promise.reject(h)},[Symbol.asyncIterator](){return this}}}function Tte(e,t){const n=bT(e,t);if(!n)throw new Error(`Cannot infer operation ${t||\"\"}`);return n}const xs=nc(function(t){return Tte(t.document,t.operationName)}),_te=new Xi({name:\"defer\",description:\"Directs the executor to defer this fragment when the `if` argument is true or undefined.\",locations:[Pe.FRAGMENT_SPREAD,Pe.INLINE_FRAGMENT],args:{if:{type:new rt(an),description:\"Deferred when true or undefined.\",defaultValue:!0},label:{type:Jt,description:\"Unique name\"}}}),Cte=new Xi({name:\"stream\",description:\"Directs the executor to stream plural fields when the `if` argument is true or undefined.\",locations:[Pe.FIELD],args:{if:{type:new rt(an),description:\"Stream when true or undefined.\",defaultValue:!0},label:{type:Jt,description:\"Unique name\"},initialCount:{defaultValue:0,type:Yp,description:\"Number of items to return immediately\"}}});class k1 extends Map{get[Symbol.toStringTag](){return\"AccumulatorMap\"}add(t,n){const r=this.get(t);r===void 0?this.set(t,[n]):r.push(n)}}function Zf(e,t,n,r,i,o,s,l){for(const c of i.selections)switch(c.kind){case q.FIELD:{if(!Kx(n,c))continue;o.add(xte(c),c);break}case q.INLINE_FRAGMENT:{if(!Kx(n,c)||!k9(e,c,r))continue;const f=N9(n,c);if(f){const h=new k1;Zf(e,t,n,r,c.selectionSet,h,s,l),s.push({label:f.label,fields:h})}else Zf(e,t,n,r,c.selectionSet,o,s,l);break}case q.FRAGMENT_SPREAD:{const f=c.name.value;if(!Kx(n,c))continue;const h=N9(n,c);if(l.has(f)&&!h)continue;const g=t[f];if(!g||!k9(e,g,r))continue;if(h||l.add(f),h){const m=new k1;Zf(e,t,n,r,g.selectionSet,m,s,l),s.push({label:h.label,fields:m})}else Zf(e,t,n,r,g.selectionSet,o,s,l);break}}}function Jx(e,t,n,r,i){const o=new k1,s=[];return Zf(e,t,n,r,i,o,s,new Set),{fields:o,patches:s}}function Kx(e,t){const n=hs(Qg,t,e);if((n==null?void 0:n.if)===!0)return!1;const r=hs(Wg,t,e);return(r==null?void 0:r.if)!==!1}function k9(e,t,n){const r=t.typeCondition;if(!r)return!0;const i=gr(e,r);return i===n?!0:nr(i)?e.getPossibleTypes(i).includes(n):!1}function xte(e){return e.alias?e.alias.value:e.name.value}function N9(e,t){const n=hs(_te,t,e);if(n&&n.if!==!1)return{label:typeof n.label==\"string\"?n.label:void 0}}const kte=Qee(function(t,n,r,i,o){const s=new k1,l=new Set,c=[],f={fields:s,patches:c};for(const h of o)h.selectionSet&&Zf(t,n,r,i,h.selectionSet,s,c,l);return f});function rc(e){return typeof e==\"object\"&&e!=null&&Symbol.asyncIterator in e&&typeof e[Symbol.asyncIterator]==\"function\"}async function Nte(e){return{value:e,done:!0}}const D9=zx(function(t,n){return function(...i){return Reflect.apply(n,t,i)}});function Dte(e,t){return new Proxy(e,{has(n,r){return r===\"return\"?!0:Reflect.has(n,r)},get(n,r,i){const o=Reflect.get(n,r,i);if(r===\"return\"){const s=o||Nte;return async function(c){const f=await t(c);return Reflect.apply(s,n,[f])}}else if(typeof o==\"function\")return D9(n,o);return o}})}function Ate(e,t){return new Proxy(e,{get(n,r,i){const o=Reflect.get(n,r,i);return Symbol.asyncIterator===r?function(){const l=Reflect.apply(o,n,[]);return Dte(l,t)}:typeof o==\"function\"?D9(n,o):o}})}function ed(e,t,n){return{prev:e,key:t,typename:n}}function gi(e){const t=[];let n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}function Ote(e){return e.map(t=>typeof t==\"number\"?\"[\"+t.toString()+\"]\":\".\"+t).join(\"\")}const Xx=zx(function(t,n){const r=n.transforms;return r==null?t:r.reduce((i,o)=>{var s;return((s=o.transformSchema)===null||s===void 0?void 0:s.call(o,i,n))||i},t)});class Ite{constructor(t){var n;this.schema=t.schema,this.executor=t.executor,this.batch=t.batch,this.batchingOptions=t.batchingOptions,this.createProxyingResolver=t.createProxyingResolver,this.transforms=(n=t.transforms)!==null&&n!==void 0?n:[],this.merge=t.merge}get transformedSchema(){var t,n;return this._transformedSchema||(((n=(t=globalThis.process)===null||t===void 0?void 0:t.env)===null||n===void 0?void 0:n.DEBUG)!=null&&console.warn(\"Transformed schema is not set yet. Returning a dummy one.\"),this._transformedSchema=Xx(this.schema,this)),this._transformedSchema}set transformedSchema(t){this._transformedSchema=t}}function A9(e){const t=[],n=[],r=new Set;for(let i=0;i<e.definitions.length;i++){const o=e.definitions[i];o.kind===q.FRAGMENT_DEFINITION?(n.push(o),r.add(o.name.value)):o.kind===q.OPERATION_DEFINITION&&t.push(o)}return{operations:t,fragments:n,fragmentNames:r}}function Lte(e,t,n,r){const i=$te(n,t,e);if(r==null)return i;const{possibleTypesMap:o,reversePossibleTypesMap:s,interfaceExtensionsMap:l,fieldNodesByType:c,fieldNodesByField:f,dynamicSelectionSetsByField:h}=Rte(r,t),{operations:g,fragments:m,fragmentNames:y}=A9(i),{expandedFragments:S,fragmentReplacements:x}=Mte(m,y,o),D=new ps(t),_={kind:q.DOCUMENT,definitions:[...g,...m,...S]},b={Document:[\"definitions\"],OperationDefinition:[\"selectionSet\"],SelectionSet:[\"selections\"],Field:[\"selectionSet\"],InlineFragment:[\"selectionSet\"],FragmentDefinition:[\"selectionSet\"]};return Hn(_,Pu(D,{[q.SELECTION_SET]:C=>Fte(C,x,t,D,o,s,l,c,f,h)}),b)}function Fte(e,t,n,r,i,o,s,l,c,f){var h,g;const m=new Set,y=r.getParentType();if(y!=null){const S=Nt(y),x=S.name,D=l[x];if(D)for(const C of D)m.add(C);const _=s[S.name],b=[];for(const C of e.selections)if(C.kind===q.INLINE_FRAGMENT){if(C.typeCondition!=null){const T=i[C.typeCondition.name.value];if(T==null){m.add(C);continue}for(const N of T){const F=n.getType(N);F!=null&&x1(n,S,F)&&m.add(O9(N,C.selectionSet))}}}else if(C.kind===q.FRAGMENT_SPREAD){const T=C.name.value;if(!t[T]){m.add(C);continue}for(const N of t[T]){const F=N.typeName;n.getType(F)!=null&&x1(n,S,y)&&m.add({kind:q.FRAGMENT_SPREAD,name:{kind:q.NAME,value:N.fragmentName}})}}else{const T=C.name.value,N=(h=c[x])===null||h===void 0?void 0:h[T];if(N!=null)for(const L of N)m.add(L);const F=(g=f[x])===null||g===void 0?void 0:g[T];if(F!=null)for(const L of F){const A=L(C);if(A!=null)for(const P of A.selections)m.add(P)}_!=null&&_[T]?b.push(C):m.add(C)}if(o[S.name]&&m.add({kind:q.FIELD,name:{kind:q.NAME,value:\"__typename\"}}),b.length){const C=i[S.name];if(C!=null)for(const T of C)m.add(O9(T,{kind:q.SELECTION_SET,selections:b}))}return{...e,selections:Array.from(m)}}return e}function O9(e,t){return{kind:q.INLINE_FRAGMENT,typeCondition:{kind:q.NAMED_TYPE,name:{kind:q.NAME,value:e}},selectionSet:t}}const Rte=zx((e,t)=>{var n,r,i,o;const s=e.getTypeMap(),l=t.getTypeMap(),c=Object.create(null),f=Object.create(null);for(const g in s){const m=s[g];if(nr(m)){const y=l[g];if(ot(m)&&ot(y)){const S=y.getFields(),x=m.getFields(),D=Object.create(null);let _=!0;for(const b in x)S[b]||(D[b]=!0,_=!1);_||(f[g]=D)}if(f[g]||!nr(y)){const S=e.getPossibleTypes(m);c[g]=[];for(const x of S)l[x.name]&&c[g].push(x.name)}}}const h=(n=e.extensions)===null||n===void 0?void 0:n.stitchingInfo;return{possibleTypesMap:c,reversePossibleTypesMap:Pte(c),interfaceExtensionsMap:f,fieldNodesByType:(r=h==null?void 0:h.fieldNodesByType)!==null&&r!==void 0?r:{},fieldNodesByField:(i=h==null?void 0:h.fieldNodesByField)!==null&&i!==void 0?i:{},dynamicSelectionSetsByField:(o=h==null?void 0:h.dynamicSelectionSetsByField)!==null&&o!==void 0?o:{}}});function Pte(e){const t=Object.create(null);for(const n in e){const r=e[n];for(const i of r)t[i]||(t[i]=[]),t[i].push(n)}return t}function Mte(e,t,n){let r=0;function i(l){let c;do c=`_${l}_Fragment${r.toString()}`,r++;while(t.has(c));return c}const o=[],s=Object.create(null);for(const l of e){const c=n[l.typeCondition.name.value];if(c!=null){const f=l.name.value;s[f]=[];for(const h of c){const g=i(h);t.add(g),o.push({kind:q.FRAGMENT_DEFINITION,name:{kind:q.NAME,value:g},typeCondition:{kind:q.NAMED_TYPE,name:{kind:q.NAME,value:h}},selectionSet:l.selectionSet}),s[f].push({fragmentName:g,typeName:h})}}}return{expandedFragments:o,fragmentReplacements:s}}function $te(e,t,n){const r=Nt(e);if(!pn(r))return n;const i=Jee(t),o=new ps(t),s={Document:[\"definitions\"],OperationDefinition:[\"selectionSet\"],SelectionSet:[\"selections\"],InlineFragment:[\"selectionSet\"],FragmentDefinition:[\"selectionSet\"]};return Hn(n,Pu(o,{[q.FRAGMENT_DEFINITION]:l=>{const c=l.typeCondition.name.value;if(!i.has(c))return!1},[q.FIELD]:l=>{const c=o.getType();if(c!=null&&nr(Nt(c)))return{...l,selectionSet:{kind:q.SELECTION_SET,selections:[{kind:q.INLINE_FRAGMENT,typeCondition:{kind:q.NAMED_TYPE,name:{kind:q.NAME,value:r.name}},selectionSet:l.selectionSet}]}}}}),s)}function Vte(e,t,n){var r;let i=[],o=[];const s=[];let l=[];const c=[],f=Object.create(null);for(const m of t){const y=m.typeCondition.name.value,S=e.getType(y);S!=null&&(c.push(m),f[m.name.value]=S)}let h=Object.create(null);for(const m of n){const y=w1(e,m.operation),{selectionSet:S,usedFragments:x,usedVariables:D}=I9(e,y,f,m.selectionSet);o=lv(o,x);const{usedVariables:_,newFragments:b,fragmentSet:C}=qte(e,h,c,f,o),T=lv(D,_);i=lv(i,T),l=b,h=C;const N=((r=m.variableDefinitions)!==null&&r!==void 0?r:[]).filter(F=>T.indexOf(F.variable.name.value)!==-1);s.push({kind:q.OPERATION_DEFINITION,operation:m.operation,name:m.name,directives:m.directives,variableDefinitions:N,selectionSet:S})}const g={kind:q.DOCUMENT,definitions:[...s,...l]};return{usedVariables:i,newDocument:g}}function Bte(e,t){let{document:n,variables:r}=e,{operations:i,fragments:o}=A9(n);const{targetSchema:s,args:l}=t;if(l){const g=jte(s,i,l);i=g.newOperations,r=Object.assign({},r??{},g.newVariables)}const{usedVariables:c,newDocument:f}=Vte(s,o,i),h={};if(r!=null)for(const g of c){const m=r[g];m!==void 0&&(h[g]=m)}return{...e,document:f,variables:h}}function jte(e,t,n){const r=Object.create(null);return{newOperations:t.map(o=>{var s,l;const c=((s=o.variableDefinitions)!==null&&s!==void 0?s:[]).reduce((m,y)=>({...m,[y.variable.name.value]:y}),{}),f=w1(e,o.operation),h=[];for(const m of o.selectionSet.selections)if(m.kind===q.FIELD){const S=((l=m.arguments)!==null&&l!==void 0?l:[]).reduce((D,_)=>({...D,[_.name.value]:_}),{}),x=f.getFields()[m.name.value];x!=null&&Ute(x,S,c,r,n),h.push({...m,arguments:Object.values(S)})}else h.push(m);const g={kind:q.SELECTION_SET,selections:h};return{...o,variableDefinitions:Object.values(c),selectionSet:g}}),newVariables:r}}function Ute(e,t,n,r,i){const o=x9(n);for(const s of e.args){const l=s.name,c=s.type;l in i&&C9(t,n,r,l,o(l),c,T1(c,i[l]))}}function qte(e,t,n,r,i){let o=i.slice(),s=[];const l=[];for(;o.length!==0;){const c=o.pop(),f=n.find(h=>h.name.value===c);if(f!=null){const h=c,g=f.typeCondition.name.value,m=e.getType(g);if(m==null)throw new Error(`Fragment reference type \"${g}\", but the type is not contained within the target schema.`);const{selectionSet:y,usedFragments:S,usedVariables:x}=I9(e,m,r,f.selectionSet);o=lv(o,S),s=lv(s,x),h&&!(h in t)&&(t[h]=!0,l.push({kind:q.FRAGMENT_DEFINITION,name:{kind:q.NAME,value:h},typeCondition:f.typeCondition,selectionSet:y}))}}return{usedVariables:s,newFragments:l,fragmentSet:t}}const Hte={SelectionSet:[\"selections\"],Field:[\"selectionSet\"],InlineFragment:[\"selectionSet\"],FragmentDefinition:[\"selectionSet\"]},zte={SelectionSet:[\"selections\"],Field:[\"arguments\",\"directives\",\"selectionSet\"],Argument:[\"value\"],InlineFragment:[\"directives\",\"selectionSet\"],FragmentSpread:[\"directives\"],FragmentDefinition:[\"selectionSet\"],ObjectValue:[\"fields\"],ObjectField:[\"name\",\"value\"],Directive:[\"arguments\"],ListValue:[\"values\"]};function I9(e,t,n,r){const i=[],o=[],s=kS.major<16?new ps(e,void 0,t):new ps(e,t),l=Hn(r,Pu(s,{[q.FIELD]:{enter:c=>{const f=s.getParentType();if(Xe(f)||ot(f)){const h=f.getFields(),g=c.name.value===\"__typename\"?ds:h[c.name.value];if(!g)return null;const m=g.args!=null?g.args:[],y=Object.create(null);for(const S of m)y[S.name]=S;if(c.arguments!=null){const S=[];for(const x of c.arguments)x.name.value in y&&S.push(x);if(S.length!==c.arguments.length)return{...c,arguments:S}}}},leave:c=>{const f=s.getType();if(f==null)throw new Error(`No type was found for field node ${Sr(c)}.`);const h=Nt(f);if(!e.getType(h.name)==null)return null;if(Xe(h)||ot(h)){const g=c.selectionSet!=null?c.selectionSet.selections:null;if(g==null||g.length===0)return null}}},[q.FRAGMENT_SPREAD]:{enter:c=>{if(!(c.name.value in n))return null;const f=s.getParentType(),h=n[c.name.value];if(!x1(e,f,h))return null;i.push(c.name.value)}},[q.INLINE_FRAGMENT]:{enter:c=>{if(c.typeCondition!=null){const f=s.getParentType(),h=e.getType(c.typeCondition.name.value);if(!x1(e,f,h))return null}}},[q.SELECTION_SET]:{leave:c=>{const f=s.getParentType();if(f!=null&&nr(f)){const h=c.selections.concat([{kind:q.FIELD,name:{kind:q.NAME,value:\"__typename\"}}]);return{...c,selections:h}}}}}),Hte);return Hn(l,{[q.VARIABLE]:c=>{o.push(c.name.value)}},zte),{selectionSet:l,usedFragments:i,usedVariables:o}}function lv(...e){const t=Object.create(null),n=[];for(const r of e)for(const i of r)i in t||(t[i]=!0,n.push(i));return n}const td=Symbol(\"subschemaErrors\"),Zx=Symbol(\"initialSubschema\"),N1=Symbol(\"subschemaMap\");function ek(e){return e[td]!==void 0}function Gte(e,t,n,r){return Object.defineProperties(e,{[Zx]:{value:n},[N1]:{value:r},[td]:{value:t}}),e}function L9(e,t){var n;return(n=e[N1][t])!==null&&n!==void 0?n:e[Zx]}function F9(e){return e[td]}const Wte=[],D1=Object.create(null);async function Qte(e,t,n,r,i){var o;const s=e.delegationPlanBuilder(i.schema,n,i.variableValues!=null&&Object.keys(i.variableValues).length>0?i.variableValues:D1,i.fragments!=null&&Object.keys(i.fragments).length>0?i.fragments:D1,!((o=i.fieldNodes)===null||o===void 0)&&o.length?i.fieldNodes:Wte);for(const l of s)await Yte(e,l,t,r,i);return t}async function Yte(e,t,n,r,i){const o=n[td],s=di(i.path),l=n[N1];await Promise.all([...t.entries()].map(async([c,f])=>{var h;const g=c.transformedSchema||i.schema,m=g.getType(n.__typename),y=e.resolvers.get(c);if(y){let S;try{S=await y(n,r,i,c,f,void 0,m)}catch(_){S=_}if(S instanceof Error||S==null){const{fields:_}=Jx(g,D1,D1,m,f),b={};for(const[C,T]of _){const N=[...s,C];S instanceof he?b[C]=qx(S,N):S instanceof Error?b[C]=In(S,T,N):b[C]=null}S=b}else S[td]&&o.push(...S[td]);const x=S[Zx],D=S[N1];for(const _ in S)n[_]=S[_],l[_]=(h=D==null?void 0:D[_])!==null&&h!==void 0?h:x}}))}function uv(e,t,n,r,i,o=Zte(i),s){const l=ml(o);if(e instanceof Error)return e;if(e==null)return Xte(t);if(\"parseValue\"in l)return l.parseValue(e);if(pn(l))return Jte(l,e,t,n,r,i,s);if(St(l))return Array.isArray(e)?Kte(l,e,t,n,r,i,s):uv(e,t,n,r,i,l.ofType,s)}function Jte(e,t,n,r,i,o,s){var l;if(ek(t)||Gte(t,n,r,Object.create(null)),s||o==null)return t;const c=(l=o.schema.extensions)===null||l===void 0?void 0:l.stitchingInfo;if(c==null)return t;const f=nr(e)?t.__typename:e.name,h=c.mergedTypes[f];let g;return h!=null&&(g=h.targetSubschemas.get(r)),!g||!g.length?t:Qte(h,t,r,i,o)}function Kte(e,t,n,r,i,o,s){return t.map(l=>uv(l,n,r,i,o,e.ofType,s))}const R9=new WeakMap;function Xte(e){if(e.length){const t=[];for(const n of e)R9.has(n)||(t.push(n),R9.set(n,!0));if(t.length){if(t.length===1)return t[0];const n=new Kf(t,t.map(r=>r.message).join(`, \n`));return In(n,void 0,t[0].path)}}return null}function Zte(e){if(e==null)throw new Error(\"Return type cannot be inferred without a source schema.\");return e.returnType}function ene(e,t){const{context:n,info:r,fieldName:i=tne(r),subschema:o,returnType:s=nne(r),skipTypeMerging:l,onLocatedError:c}=t,{data:f,unpathedErrors:h}=P9(e.data==null?void 0:e.data[i],e.errors==null?[]:e.errors,r!=null&&r.path?di(r.path):void 0,c);return uv(f,h,o,n,r,s,l)}function P9(e,t,n,r,i=1){var o;if(e==null){if(!t.length)return{data:null,unpathedErrors:[]};if(t.length===1){const h=r?r(t[0]):t[0],g=n===void 0?h.path:h.path?n.concat(h.path.slice(1)):n;return{data:qx(t[0],g),unpathedErrors:[]}}const c=new Kf(t,t.map(h=>h.message).join(`, \n`));return{data:In(c,void 0,n),unpathedErrors:[]}}if(!t.length)return{data:e,unpathedErrors:[]};const s=[],l=new Map;for(const c of t){const f=(o=c.path)===null||o===void 0?void 0:o[i];if(f!=null){let h=l.get(f);h===void 0?(h=[c],l.set(f,h)):h.push(c)}else s.push(c)}for(const[c,f]of l)if(e[c]!==void 0){const{data:h,unpathedErrors:g}=P9(e[c],f,n,r,i+1);e[c]=h,s.push(...g)}else s.push(...f);return{data:e,unpathedErrors:s}}function tne(e){if(e==null)throw new Error(\"Data cannot be extracted from result without an explicit key or source schema.\");return Qx(e)}function nne(e){if(e==null)throw new Error(\"Return type cannot be inferred without a source schema.\");return e.returnType}class rne{constructor(t){this.transformations=[],this.delegationContext=t;const r=t.transforms.slice().reverse();for(const i of r)this.addTransform(i,{})}addTransform(t,n={}){this.transformations.push({transform:t,context:n})}transformRequest(t){var n;let r={...t,document:Lte(t.document,this.delegationContext.transformedSchema,this.delegationContext.returnType,(n=this.delegationContext.info)===null||n===void 0?void 0:n.schema)};for(const i of this.transformations)i.transform.transformRequest&&(r=i.transform.transformRequest(r,this.delegationContext,i.context));return Bte(r,this.delegationContext)}transformResult(t){let n=t;for(let r=this.transformations.length-1;r>=0;r--){const i=this.transformations[r];i.transform.transformResult&&(n=i.transform.transformResult(n,this.delegationContext,i.context))}return ene(n,this.delegationContext)}}function ine(e,t){return e===t.getMutationType()?\"mutation\":e===t.getSubscriptionType()?\"subscription\":\"query\"}function one({sourceSchema:e,sourceParentType:t,sourceFieldName:n,fragments:r,variableDefinitions:i,variableValues:o,targetRootValue:s,targetOperationName:l,targetOperation:c,targetFieldName:f,selectionSet:h,fieldNodes:g,context:m,info:y}){var S,x;let D;const _=Object.create(null);if(h!=null)D=h;else{const V=[];for(const G of g||[])if(G.selectionSet)for(const z of G.selectionSet.selections)V.push(z);D=V.length?{kind:q.SELECTION_SET,selections:V}:void 0;const H=(S=g==null?void 0:g[0])===null||S===void 0?void 0:S.arguments;if(H)for(const G of H)_[G.name.value]=G}const b=Object.create(null),C=Object.create(null);if(e!=null&&i!=null)for(const V of i){const H=V.variable.name.value;C[H]=V;const G=gr(e,V.type),z=T1(G,o==null?void 0:o[H]);z!==void 0&&(b[H]=z)}t!=null&&n!=null&&ane(t,n,_,C,b);const T=f??((x=g==null?void 0:g[0])===null||x===void 0?void 0:x.name.value);if(T===void 0)throw new Error('Either \"targetFieldName\" or a non empty \"fieldNodes\" array must be provided.');const N={kind:q.FIELD,arguments:Object.values(_),name:{kind:q.NAME,value:T},selectionSet:D},F=l?{kind:q.NAME,value:l}:void 0,A=[{kind:q.OPERATION_DEFINITION,name:F,operation:c,variableDefinitions:Object.values(C),selectionSet:{kind:q.SELECTION_SET,selections:[N]}}];if(r!=null)for(const V in r){const H=r[V];A.push(H)}return{document:{kind:q.DOCUMENT,definitions:A},variables:b,rootValue:s,operationName:l,context:m,info:y,operationType:c}}function ane(e,t,n,r,i){const o=x9(r),s=e.getFields()[t];for(const l of s.args){const c=l.name,f=l.type;if(n[c]===void 0){const h=l.defaultValue;h!==void 0&&C9(n,r,i,c,o(c),f,T1(f,h))}}}function sne(e,t,n,r){if(!e)return null;const i=Qx(r);if(!ek(e))return yy(e,t,n,r);const o=e[i],s=F9(e),l=L9(e,i);return uv(o,s,l,n,r)}function lne(e){return e!=null&&typeof e.then==\"function\"}const une=e=>{throw e};class hn{constructor(t){GB(this,\"state\");let n;try{n=t()}catch(r){this.state={status:\"rejected\",value:r};return}if(lne(n)){this.state={status:\"pending\",value:n};return}this.state={status:\"fulfilled\",value:n}}then(t,n){const r=this.state;if(r.status===\"pending\")return new hn(()=>r.value.then(t,n));const i=typeof n==\"function\"?n:une;if(r.status===\"rejected\")return new hn(()=>i(r.value));try{const o=typeof t==\"function\"?t:void 0;return o===void 0?new hn(()=>r.value):new hn(()=>o(r.value))}catch(o){return new hn(()=>i(o))}}catch(t){return this.then(void 0,t)}resolve(){const t=this.state;if(t.status===\"pending\")return Promise.resolve(t.value);if(t.status===\"rejected\")throw t.value;return t.value}static all(t){let n=!1,r,i=!1;const o=[];for(const s of t){const l=s.state;if(l.status===\"rejected\"){if(n)continue;n=!0,r=l.value;continue}l.status===\"pending\"&&(i=!0),o.push(l.value)}return i?n?(Promise.all(o).catch(()=>{}),new hn(()=>{throw r})):new hn(()=>Promise.all(o)):new hn(()=>o)}}var cne=function(){function e(n,r){if(typeof n!=\"function\")throw new TypeError(\"DataLoader must be constructed with a function which accepts \"+(\"Array<key> and returns Promise<Array<value>>, but got: \"+n+\".\"));this._batchLoadFn=n,this._maxBatchSize=hne(r),this._batchScheduleFn=vne(r),this._cacheKeyFn=mne(r),this._cacheMap=gne(r),this._batch=null,this.name=yne(r)}var t=e.prototype;return t.load=function(r){if(r==null)throw new TypeError(\"The loader.load() function must be called with a value, \"+(\"but got: \"+String(r)+\".\"));var i=dne(this),o=this._cacheMap,s=this._cacheKeyFn(r);if(o){var l=o.get(s);if(l){var c=i.cacheHits||(i.cacheHits=[]);return new Promise(function(h){c.push(function(){h(l)})})}}i.keys.push(r);var f=new Promise(function(h,g){i.callbacks.push({resolve:h,reject:g})});return o&&o.set(s,f),f},t.loadMany=function(r){if(!M9(r))throw new TypeError(\"The loader.loadMany() function must be called with Array<key> \"+(\"but got: \"+r+\".\"));for(var i=[],o=0;o<r.length;o++)i.push(this.load(r[o]).catch(function(s){return s}));return Promise.all(i)},t.clear=function(r){var i=this._cacheMap;if(i){var o=this._cacheKeyFn(r);i.delete(o)}return this},t.clearAll=function(){var r=this._cacheMap;return r&&r.clear(),this},t.prime=function(r,i){var o=this._cacheMap;if(o){var s=this._cacheKeyFn(r);if(o.get(s)===void 0){var l;i instanceof Error?(l=Promise.reject(i),l.catch(function(){})):l=Promise.resolve(i),o.set(s,l)}}return this},e}(),fne=typeof process==\"object\"&&typeof process.nextTick==\"function\"?function(e){tk||(tk=Promise.resolve()),tk.then(function(){process.nextTick(e)})}:typeof setImmediate==\"function\"?function(e){setImmediate(e)}:function(e){setTimeout(e)},tk;function dne(e){var t=e._batch;if(t!==null&&!t.hasDispatched&&t.keys.length<e._maxBatchSize)return t;var n={hasDispatched:!1,keys:[],callbacks:[]};return e._batch=n,e._batchScheduleFn(function(){pne(e,n)}),n}function pne(e,t){if(t.hasDispatched=!0,t.keys.length===0){rk(t);return}var n;try{n=e._batchLoadFn(t.keys)}catch(r){return nk(e,t,new TypeError(\"DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function \"+(\"errored synchronously: \"+String(r)+\".\")))}if(!n||typeof n.then!=\"function\")return nk(e,t,new TypeError(\"DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did \"+(\"not return a Promise: \"+String(n)+\".\")));n.then(function(r){if(!M9(r))throw new TypeError(\"DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did \"+(\"not return a Promise of an Array: \"+String(r)+\".\"));if(r.length!==t.keys.length)throw new TypeError(\"DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function did not return a Promise of an Array of the same length as the Array of keys.\"+(`\n\nKeys:\n`+String(t.keys))+(`\n\nValues:\n`+String(r)));rk(t);for(var i=0;i<t.callbacks.length;i++){var o=r[i];o instanceof Error?t.callbacks[i].reject(o):t.callbacks[i].resolve(o)}}).catch(function(r){nk(e,t,r)})}function nk(e,t,n){rk(t);for(var r=0;r<t.keys.length;r++)e.clear(t.keys[r]),t.callbacks[r].reject(n)}function rk(e){if(e.cacheHits)for(var t=0;t<e.cacheHits.length;t++)e.cacheHits[t]()}function hne(e){var t=!e||e.batch!==!1;if(!t)return 1;var n=e&&e.maxBatchSize;if(n===void 0)return 1/0;if(typeof n!=\"number\"||n<1)throw new TypeError(\"maxBatchSize must be a positive number: \"+n);return n}function vne(e){var t=e&&e.batchScheduleFn;if(t===void 0)return fne;if(typeof t!=\"function\")throw new TypeError(\"batchScheduleFn must be a function: \"+t);return t}function mne(e){var t=e&&e.cacheKeyFn;if(t===void 0)return function(n){return n};if(typeof t!=\"function\")throw new TypeError(\"cacheKeyFn must be a function: \"+t);return t}function gne(e){var t=!e||e.cache!==!1;if(!t)return null;var n=e&&e.cacheMap;if(n===void 0)return new Map;if(n!==null){var r=[\"get\",\"set\",\"delete\",\"clear\"],i=r.filter(function(o){return n&&typeof n[o]!=\"function\"});if(i.length!==0)throw new TypeError(\"Custom cacheMap missing methods: \"+i.join(\", \"))}return n}function yne(e){return e&&e.name?e.name:null}function M9(e){return typeof e==\"object\"&&e!==null&&typeof e.length==\"number\"&&(e.length===0||e.length>0&&Object.prototype.hasOwnProperty.call(e,e.length-1))}var bne=cne;function Ene(e){return`_${e}_`}function $9(e){const t=/^_([\\d]+)_(.*)$/.exec(e);if(t&&t.length===3&&!isNaN(Number(t[1]))&&t[2])return{index:Number(t[1]),originalKey:t[2]};throw new Error(`Key ${e} is not correctly prefixed`)}function wne(e,t){var n,r,i,o,s;const l=Object.create(null),c=[],f=[],h=[];let g=Object.create(null);for(const D in e){const _=e[D],b=Sne(Ene(D),_);for(const C of b.document.definitions)xne(C)&&(f.push(...C.selectionSet.selections),C.variableDefinitions&&c.push(...C.variableDefinitions)),A1(C)&&h.push(C);Object.assign(l,b.variables),g=t(g,_)}const m=e[0],y=(n=m.operationType)!==null&&n!==void 0?n:xs(m).operation,S={kind:q.OPERATION_DEFINITION,operation:y,variableDefinitions:c,selectionSet:{kind:q.SELECTION_SET,selections:f}},x=(r=m.operationName)!==null&&r!==void 0?r:(s=(o=(i=m.info)===null||i===void 0?void 0:i.operation)===null||o===void 0?void 0:o.name)===null||s===void 0?void 0:s.value;return x&&(S.name={kind:q.NAME,value:x}),{document:{kind:q.DOCUMENT,definitions:[S,...h]},variables:l,extensions:g,context:e[0].context,info:e[0].info,operationType:y}}function Sne(e,t){var n;const r=(n=t.variables)!==null&&n!==void 0?n:{};function i(h){return j9(h,e)}let o=Tne(e,t.document);const s=Object.keys(r),l=t.document.definitions.some(h=>A1(h)),c={};(s.length>0||l)&&(o=Hn(o,{[q.VARIABLE]:i,[q.FRAGMENT_DEFINITION]:i,[q.FRAGMENT_SPREAD]:h=>(h=j9(h,e),c[h.name.value]=!0,h)}));const f={};for(const h of s)f[e+h]=r[h];return l&&(o={...o,definitions:o.definitions.filter(h=>!A1(h)||c[h.name.value])}),{document:o,variables:f}}function Tne(e,t){const n={[q.OPERATION_DEFINITION]:r=>{const{selections:i}=r.selectionSet;return{...r,selectionSet:{...r.selectionSet,selections:V9(e,i,t)}}}};return Hn(t,n,{[q.DOCUMENT]:[\"definitions\"]})}function V9(e,t,n){return t.map(r=>{switch(r.kind){case q.INLINE_FRAGMENT:return B9(e,r,n);case q.FRAGMENT_SPREAD:{const i=_ne(r,n);return B9(e,i,n)}case q.FIELD:default:return Cne(r,e)}})}function B9(e,t,n){const{selections:r}=t.selectionSet;return{...t,selectionSet:{...t.selectionSet,selections:V9(e,r,n)}}}function _ne(e,t){const n=t.definitions.find(o=>A1(o)&&o.name.value===e.name.value);if(!n)throw new Error(`Fragment ${e.name.value} does not exist`);const{typeCondition:r,selectionSet:i}=n;return{kind:q.INLINE_FRAGMENT,typeCondition:r,selectionSet:i,directives:e.directives}}function j9(e,t){return{...e,name:{...e.name,value:t+e.name.value}}}function Cne(e,t){const n=e.alias?e.alias:e.name;return{...e,alias:{...n,value:t+n.value}}}function xne(e){return e.kind===q.OPERATION_DEFINITION}function A1(e){return e.kind===q.FRAGMENT_DEFINITION}function kne({data:e,errors:t},n){const r=[];for(let i=0;i<n;i++)r.push({});if(e)for(const i in e){const{index:o,originalKey:s}=$9(i),l=r[o];l!=null&&(l.data==null?l.data={[s]:e[i]}:l.data[s]=e[i])}if(t)for(const i of t)if(i.path){const o=$9(i.path[0]),{index:s,originalKey:l}=o,c=qx(i,[l,...i.path.slice(1)]);(r[s].errors=r[s].errors||[]).push(c)}else r.forEach(o=>{(o.errors=o.errors||[]).push(Ct(i.message))});return r}function Nne(e,t,n=Ane){const r=Dne(e,n),i=new bne(r,t);return function(s){return xs(s).operation===\"subscription\"?e(s):i.load(s)}}function Dne(e,t){return async function(r){const i=[];let o=0;const s=r[o];let l=[s];i.push(l);const f=xs(s).operation;if(f==null)throw new Error(\"could not identify operation type of document\");for(;++o<r.length;){const g=r[o],y=xs(g).operation;f===y?l.push(g):(l=[g],i.push(l))}return(await Promise.all(i.map(async g=>{const m=wne(g,t),y=await e(m);return kne(y,g.length)}))).flat()}}function Ane(e,t){const n=t.extensions;return n!=null&&Object.assign(e,n),e}const One=Yee(function(t,n,r,i){return Nne(n,r,i)});function Ine(e){return Boolean(e==null?void 0:e.schema)}function Lne(e,t,n,r){const i=[],o=r==null?void 0:r.maxErrors;try{const s=Fne(e,t,n,l=>{if(o!=null&&i.length>=o)throw Ct(\"Too many errors processing variables, error limit reached. Execution aborted.\");i.push(l)});if(i.length===0)return{coerced:s}}catch(s){i.push(s)}return{errors:i}}function Fne(e,t,n,r){const i={};for(const o of t){const s=o.variable.name.value,l=gr(e,o.type);if(!Gr(l)){const f=gt(o.type);r(Ct(`Variable \"$${s}\" expected value of type \"${f}\" which cannot be used as an input type.`,{nodes:o.type}));continue}if(!c9(n,s)){if(o.defaultValue)i[s]=So(o.defaultValue,l);else if(Ge(l)){const f=Sr(l);r(Ct(`Variable \"$${s}\" of required type \"${f}\" was not provided.`,{nodes:o}))}continue}const c=n[s];if(c===null&&Ge(l)){const f=Sr(l);r(Ct(`Variable \"$${s}\" of non-null type \"${f}\" must not be null.`,{nodes:o}));continue}i[s]=lT(c,l,(f,h,g)=>{let m=`Variable \"$${s}\" got invalid value `+Sr(h);f.length>0&&(m+=` at \"${s}${Ote(f)}\"`),r(Ct(m+\"; \"+g.message,{nodes:o,originalError:g.originalError}))})}return i}async function U9(e){const t=Object.keys(e),n=Object.values(e),r=await Promise.all(n),i=Object.create(null);for(let o=0;o<t.length;++o)i[t[o]]=r[o];return i}function Rne(e){const t=e[Symbol.asyncIterator]();let n,r,i=!1;async function o(){if(i)return{value:void 0,done:!0};try{if(!n){if(r)return await r,await o();let c;r=new Promise(h=>{c=h});const f=await t.next();return f.done?(i=!0,await o()):(n=f.value[Symbol.asyncIterator](),r=void 0,c(),await o())}const s=n,l=await n.next();return l.done?(n===s&&(n=void 0),await o()):l}catch(s){throw i=!0,s}}return{next:o,async return(){var s,l;return i=!0,await Promise.all([(s=n==null?void 0:n.return)===null||s===void 0?void 0:s.call(n),(l=t.return)===null||l===void 0?void 0:l.call(t)]),{value:void 0,done:!0}},async throw(s){var l,c;throw i=!0,await Promise.all([(l=n==null?void 0:n.throw)===null||l===void 0?void 0:l.call(n,s),(c=t.throw)===null||c===void 0?void 0:c.call(t,s)]),s},[Symbol.asyncIterator](){return this}}}function q9(e,t){if(!e)throw new Error(t??\"Unexpected invariant triggered.\")}const Pne=Wee((e,t,n)=>kte(e.schema,e.fragments,e.variableValues,t,n));function Mne(e){const t=G9(e);return\"schema\"in t?H9(t):{errors:t.map(n=>{var r;return Object.defineProperty(n,\"extensions\",{value:{...n.extensions,http:{...(r=n.extensions)===null||r===void 0?void 0:r.http,status:400}}}),n})}}function H9(e){return new hn(()=>Vne(e)).then(t=>{const n=z9(t,e.errors);return e.subsequentPayloads.size>0?{initialResult:{...n,hasNext:!0},subsequentResults:ere(e)}:n},t=>(e.errors.push(t),z9(null,e.errors))).resolve()}function z9(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function G9(e){var t,n;const{schema:r,document:i,rootValue:o,contextValue:s,variableValues:l,operationName:c,fieldResolver:f,typeResolver:h,subscribeFieldResolver:g}=e;ey(r);let m;const y=Object.create(null);for(const D of i.definitions)switch(D.kind){case q.OPERATION_DEFINITION:if(c==null){if(m!==void 0)return[Ct(\"Must provide operation name if query contains multiple operations.\")];m=D}else((t=D.name)===null||t===void 0?void 0:t.value)===c&&(m=D);break;case q.FRAGMENT_DEFINITION:y[D.name.value]=D;break}if(!m)return c!=null?[Ct(`Unknown operation named \"${c}\".`)]:[Ct(\"Must provide an operation.\")];const S=(n=m.variableDefinitions)!==null&&n!==void 0?n:[],x=Lne(r,S,l??{},{maxErrors:50});return x.errors?x.errors:{schema:r,fragments:y,rootValue:o,contextValue:s,operation:m,variableValues:x.coerced,fieldResolver:f??e6,typeResolver:h??zne,subscribeFieldResolver:g??e6,subsequentPayloads:new Set,errors:[]}}function $ne(e,t){return{...e,rootValue:t,subsequentPayloads:new Set,errors:[]}}function Vne(e){const{operation:t,schema:n,fragments:r,variableValues:i,rootValue:o}=e,s=w1(n,t.operation,[t]);s==null&&Ct(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});const{fields:l,patches:c}=Jx(n,r,i,s,t.selectionSet),f=void 0;let h;t.operation===\"mutation\"?h=Bne(e,s,o,f,l):h=ik(e,s,o,f,l);for(const g of c){const{label:m,fields:y}=g;i6(e,s,o,y,m,f)}return h}function Bne(e,t,n,r,i){return jee(i,(o,[s,l])=>{const c=ed(r,s,t.name);return new hn(()=>W9(e,t,n,l,c)).then(f=>(f===void 0||(o[s]=f),o)).resolve()},Object.create(null))}function ik(e,t,n,r,i,o){const s=Object.create(null);let l=!1;try{for(const[c,f]of i){const h=ed(r,c,t.name),g=W9(e,t,n,f,h,o);g!==void 0&&(s[c]=g,sr(g)&&(l=!0))}}catch(c){if(l)return U9(s).finally(()=>{throw c});throw c}return l?U9(s):s}function W9(e,t,n,r,i,o){var s,l;const c=(s=o==null?void 0:o.errors)!==null&&s!==void 0?s:e.errors,f=a6(e.schema,t,r[0]);if(!f)return;const h=f.type,g=(l=f.resolve)!==null&&l!==void 0?l:e.fieldResolver,m=Q9(e,f,r,t,i);try{const y=h9(f,r[0],e.variableValues),S=e.contextValue,x=g(n,y,S,m);let D;return sr(x)?D=x.then(_=>jl(e,h,r,m,i,_,o)):D=jl(e,h,r,m,i,x,o),sr(D)?D.then(void 0,_=>{const b=In(_,r,gi(i)),C=ja(b,h,c);return Oo(e,i,o),C}):D}catch(y){const S=In(y,r,gi(i)),x=ja(S,h,c);return Oo(e,i,o),x}}function Q9(e,t,n,r,i){return{fieldName:t.name,fieldNodes:n,returnType:t.type,parentType:r,path:i,schema:e.schema,fragments:e.fragments,rootValue:e.rootValue,operation:e.operation,variableValues:e.variableValues}}function ja(e,t,n){if(Ge(t))throw e;return n.push(e),null}function jl(e,t,n,r,i,o,s){if(o instanceof Error)throw o;if(Ge(t)){const l=jl(e,t.ofType,n,r,i,o,s);if(l===null)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return l}if(o==null)return null;if(St(t))return Une(e,t,n,r,i,o,s);if(Wr(t))return qne(t,o);if(nr(t))return Hne(e,t,n,r,i,o,s);if(Xe(t))return ok(e,t,n,r,i,o,s);console.assert(!1,\"Cannot complete value of unexpected output type: \"+Sr(t))}function Y9(e,t,n){if(typeof n.key==\"number\")return;const r=hs(Cte,t[0],e.variableValues);if(r&&r.if!==!1)return q9(typeof r.initialCount==\"number\",\"initialCount must be a number\"),q9(r.initialCount>=0,\"initialCount must be a positive integer\"),{initialCount:r.initialCount,label:typeof r.label==\"string\"?r.label:void 0}}async function jne(e,t,n,r,i,o,s){var l;const c=(l=s==null?void 0:s.errors)!==null&&l!==void 0?l:e.errors,f=Y9(e,n,i);let h=!1;const g=[];let m=0;for(;;){if(f&&typeof f.initialCount==\"number\"&&m>=f.initialCount){Xne(m,o,e,n,r,t,i,f.label,s);break}const y=ed(i,m,void 0);let S;try{if(S=await o.next(),S.done)break}catch(x){const D=In(x,n,gi(y));g.push(ja(D,t,c));break}J9(S.value,g,c,e,t,n,r,y,s)&&(h=!0),m+=1}return h?Promise.all(g):g}function Une(e,t,n,r,i,o,s){var l;const c=t.ofType,f=(l=s==null?void 0:s.errors)!==null&&l!==void 0?l:e.errors;if(rc(o)){const x=o[Symbol.asyncIterator]();return jne(e,c,n,r,i,x,s)}if(!Bee(o))throw Ct(`Expected Iterable, but did not find one for field \"${r.parentType.name}.${r.fieldName}\".`);const h=Y9(e,n,i);let g=!1,m=s;const y=[];let S=0;for(const x of o){const D=ed(i,S,void 0);if(h&&typeof h.initialCount==\"number\"&&S>=h.initialCount){m=Jne(i,D,x,e,n,r,c,h.label,m),S++;continue}J9(x,y,f,e,c,n,r,D,s)&&(g=!0),S++}return g?Promise.all(y):y}function J9(e,t,n,r,i,o,s,l,c){try{let f;if(sr(e)?f=e.then(h=>jl(r,i,o,s,l,h,c)):f=jl(r,i,o,s,l,e,c),sr(f))return t.push(f.then(void 0,h=>{const g=In(h,o,gi(l)),m=ja(g,i,n);return Oo(r,l,c),m})),!0;t.push(f)}catch(f){const h=In(f,o,gi(l)),g=ja(h,i,n);Oo(r,l,c),t.push(g)}return!1}function qne(e,t){const n=e.serialize(t);if(n==null)throw new Error(`Expected \\`${Sr(e)}.serialize(${Sr(t)})\\` to return non-nullable value, returned: ${Sr(n)}`);return n}function Hne(e,t,n,r,i,o,s){var l;const c=(l=t.resolveType)!==null&&l!==void 0?l:e.typeResolver,f=e.contextValue,h=c(o,f,r,t);return sr(h)?h.then(g=>ok(e,K9(g,e,t,n,r,o),n,r,i,o,s)):ok(e,K9(h,e,t,n,r,o),n,r,i,o,s)}function K9(e,t,n,r,i,o){if(e==null)throw Ct(`Abstract type \"${n.name}\" must resolve to an Object type at runtime for field \"${i.parentType.name}.${i.fieldName}\". Either the \"${n.name}\" type should provide a \"resolveType\" function or each possible type should provide an \"isTypeOf\" function.`,{nodes:r});if(Xe(e))throw Ct(\"Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.\");if(typeof e!=\"string\")throw Ct(`Abstract type \"${n.name}\" must resolve to an Object type at runtime for field \"${i.parentType.name}.${i.fieldName}\" with value ${Sr(o)}, received \"${Sr(e)}\".`);const s=t.schema.getType(e);if(s==null)throw Ct(`Abstract type \"${n.name}\" was resolved to a type \"${e}\" that does not exist inside the schema.`,{nodes:r});if(!Xe(s))throw Ct(`Abstract type \"${n.name}\" was resolved to a non-object type \"${e}\".`,{nodes:r});if(!t.schema.isSubType(n,s))throw Ct(`Runtime Object type \"${s.name}\" is not a possible type for \"${n.name}\".`,{nodes:r});return s}function ok(e,t,n,r,i,o,s){if(t.isTypeOf){const l=t.isTypeOf(o,e.contextValue,r);if(sr(l))return l.then(c=>{if(!c)throw X9(t,o,n);return Z9(e,t,n,i,o,s)});if(!l)throw X9(t,o,n)}return Z9(e,t,n,i,o,s)}function X9(e,t,n){return Ct(`Expected value of type \"${e.name}\" but got: ${Sr(t)}.`,{nodes:n})}function Z9(e,t,n,r,i,o){const{fields:s,patches:l}=Pne(e,t,n),c=ik(e,t,i,r,s,o);for(const f of l){const{label:h,fields:g}=f;i6(e,t,i,g,h,r,o)}return c}const zne=function(e,t,n,r){if(Ux(e)&&typeof e.__typename==\"string\")return e.__typename;const i=n.schema.getPossibleTypes(r),o=[];for(let s=0;s<i.length;s++){const l=i[s];if(l.isTypeOf){const c=l.isTypeOf(e,t,n);if(sr(c))o[s]=c;else if(c)return l.name}}if(o.length)return Promise.all(o).then(s=>{for(let l=0;l<s.length;l++)if(s[l])return i[l].name})},e6=function(e,t,n,r){if(Ux(e)||typeof e==\"function\"){const i=e[r.fieldName];return typeof i==\"function\"?e[r.fieldName](t,n,r):i}};function Gne(e){const t=G9(e);if(!(\"schema\"in t))return{errors:t.map(r=>{var i;return Object.defineProperty(r,\"extensions\",{value:{...r.extensions,http:{...(i=r.extensions)===null||i===void 0?void 0:i.http,status:400}}}),r})};const n=Qne(t);return sr(n)?n.then(r=>n6(t,r)):n6(t,n)}function t6(e){const t=e.subsequentResults;let n=!1,r=!1;return{[Symbol.asyncIterator](){return this},async next(){return r?{value:void 0,done:r}:n?t.next():(n=!0,Promise.resolve({value:e.initialResult,done:r}))},return(){return r=!0,t.return()},throw(i){return r=!0,t.throw(i)}}}async function*Wne(e){\"initialResult\"in e?yield*t6(e):yield e}function n6(e,t){return rc(t)?Rne(Yx(t[Symbol.asyncIterator](),async n=>Wne(await H9($ne(e,n))))):t}function Qne(e){try{const t=Yne(e);return sr(t)?t.then(void 0,n=>({errors:[n]})):t}catch(t){return{errors:[t]}}}function Yne(e){var t;const{schema:n,fragments:r,operation:i,variableValues:o,rootValue:s}=e,l=n.getSubscriptionType();if(l==null)throw Ct(\"Schema is not configured to execute subscription operation.\",{nodes:i});const{fields:c}=Jx(n,r,o,l,i.selectionSet),[f,h]=[...c.entries()][0],g=h[0].name.value,m=a6(n,l,h[0]);if(!m)throw Ct(`The subscription field \"${g}\" is not defined.`,{nodes:h});const y=ed(void 0,f,l.name),S=Q9(e,m,h,l,y);try{const x=h9(m,h[0],o),D=e.contextValue,b=((t=m.subscribe)!==null&&t!==void 0?t:e.subscribeFieldResolver)(s,x,D,S);return sr(b)?b.then(r6).then(void 0,C=>{throw In(C,h,gi(y))}):r6(b)}catch(x){throw In(x,h,gi(y))}}function r6(e){if(e instanceof Error)throw e;if(!rc(e))throw Ct(`Subscription field must return Async Iterable. Received: ${Sr(e)}.`);return e}function i6(e,t,n,r,i,o,s){const l=new tre({label:i,path:o,parentContext:s,exeContext:e});let c;try{c=ik(e,t,n,o,r,l),sr(c)&&(c=c.then(null,f=>(l.errors.push(f),null)))}catch(f){l.errors.push(f),c=null}l.addData(c)}function Jne(e,t,n,r,i,o,s,l,c){const f=new o6({label:l,path:t,parentContext:c,exeContext:r});let h;try{try{sr(n)?h=n.then(m=>jl(r,s,i,o,t,m,f)):h=jl(r,s,i,o,t,n,f),sr(h)&&(h=h.then(void 0,m=>{const y=In(m,i,gi(t)),S=ja(y,s,f.errors);return Oo(r,t,f),S}))}catch(m){const y=In(m,i,gi(t));h=ja(y,s,f.errors),Oo(r,t,f)}}catch(m){return f.errors.push(m),Oo(r,e,f),f.addItems(null),f}let g;return sr(h)?g=h.then(m=>[m],m=>(f.errors.push(m),Oo(r,e,f),null)):g=[h],f.addItems(g),f}async function Kne(e,t,n,r,i,o,s){let l;try{const{value:f,done:h}=await e.next();if(h)return o.setIsCompletedIterator(),{done:h,value:void 0};l=f}catch(f){const h=In(f,n,gi(s));return{done:!0,value:ja(h,i,o.errors)}}let c;try{return c=jl(t,i,n,r,s,l,o),sr(c)&&(c=c.then(void 0,f=>{const h=In(f,n,gi(s)),g=ja(h,i,o.errors);return Oo(t,s,o),g})),{done:!1,value:c}}catch(f){const h=In(f,n,gi(s)),g=ja(h,i,o.errors);return Oo(t,s,o),{done:!1,value:g}}}async function Xne(e,t,n,r,i,o,s,l,c){let f=e,h=c??void 0;for(;;){const g=ed(s,f,void 0),m=new o6({label:l,path:g,parentContext:h,iterator:t,exeContext:n});let y;try{y=await Kne(t,n,r,i,o,m,g)}catch(_){m.errors.push(_),Oo(n,s,m),m.addItems(null),t!=null&&t.return&&t.return().catch(()=>{});return}const{done:S,value:x}=y;let D;if(sr(x)?D=x.then(_=>[_],_=>(m.errors.push(_),Oo(n,s,m),null)):D=[x],m.addItems(D),S)break;h=m,f++}}function Oo(e,t,n){const r=gi(t);e.subsequentPayloads.forEach(i=>{var o;if(i!==n){for(let s=0;s<r.length;s++)if(i.path[s]!==r[s])return;ak(i)&&(!((o=i.iterator)===null||o===void 0)&&o.return)&&i.iterator.return().catch(()=>{}),e.subsequentPayloads.delete(i)}})}function Zne(e){const t=[];for(const n of e.subsequentPayloads){const r={};if(n.isCompleted){if(e.subsequentPayloads.delete(n),ak(n)){const i=n.items;if(n.isCompletedIterator)continue;r.items=i}else{const i=n.data;r.data=i??null}r.path=n.path,n.label&&(r.label=n.label),n.errors.length>0&&(r.errors=n.errors),t.push(r)}}return t}function ere(e){let t=!1;async function n(){if(t)return{value:void 0,done:!0};if(await Promise.race(Array.from(e.subsequentPayloads).map(s=>s.promise)),t)return{value:void 0,done:!0};const i=Zne(e),o=e.subsequentPayloads.size>0;return!i.length&&o?n():(o||(t=!0),{value:i.length?{incremental:i,hasNext:o}:{hasNext:o},done:!1})}function r(){const i=[];return e.subsequentPayloads.forEach(o=>{var s;ak(o)&&(!((s=o.iterator)===null||s===void 0)&&s.return)&&i.push(o.iterator.return())}),Promise.all(i)}return{[Symbol.asyncIterator](){return this},next:n,async return(){return await r(),t=!0,{value:void 0,done:!0}},async throw(i){return await r(),t=!0,Promise.reject(i)}}}class tre{constructor(t){this.type=\"defer\",this.label=t.label,this.path=gi(t.path),this.parentContext=t.parentContext,this.errors=[],this._exeContext=t.exeContext,this._exeContext.subsequentPayloads.add(this),this.isCompleted=!1,this.data=null,this.promise=new Promise(n=>{this._resolve=r=>{n(r)}}).then(n=>{this.data=n,this.isCompleted=!0})}addData(t){var n,r,i;const o=(n=this.parentContext)===null||n===void 0?void 0:n.promise;if(o){(r=this._resolve)===null||r===void 0||r.call(this,o.then(()=>t));return}(i=this._resolve)===null||i===void 0||i.call(this,t)}}class o6{constructor(t){this.type=\"stream\",this.items=null,this.label=t.label,this.path=gi(t.path),this.parentContext=t.parentContext,this.iterator=t.iterator,this.errors=[],this._exeContext=t.exeContext,this._exeContext.subsequentPayloads.add(this),this.isCompleted=!1,this.items=null,this.promise=new Promise(n=>{this._resolve=r=>{n(r)}}).then(n=>{this.items=n,this.isCompleted=!0})}addItems(t){var n,r,i;const o=(n=this.parentContext)===null||n===void 0?void 0:n.promise;if(o){(r=this._resolve)===null||r===void 0||r.call(this,o.then(()=>t));return}(i=this._resolve)===null||i===void 0||i.call(this,t)}setIsCompletedIterator(){this.isCompletedIterator=!0}}function ak(e){return e.type===\"stream\"}function a6(e,t,n){const r=n.name.value;return r===wl.name&&e.getQueryType()===t?wl:r===Sl.name&&e.getQueryType()===t?Sl:r===ds.name?ds:t.getFields()[r]}function nre(e){const t=bT(e.document,e.operationName);if(t==null)throw new Error(\"Must provide an operation.\");return t.operation===\"subscription\"?Gne(e):new hn(()=>Mne(e)).then(n=>\"initialResult\"in n?t6(n):n).resolve()}function rre(e){var t,n;const{info:r,schema:i,rootValue:o=(t=i.rootValue)!==null&&t!==void 0?t:r.rootValue,operationName:s=(n=r.operation.name)===null||n===void 0?void 0:n.value,operation:l=ine(r.parentType,r.schema),fieldName:c=r.fieldName,selectionSet:f,fieldNodes:h=r.fieldNodes,context:g}=e,m=one({sourceSchema:r.schema,sourceParentType:r.parentType,sourceFieldName:r.fieldName,fragments:r.fragments,variableDefinitions:r.operation.variableDefinitions,variableValues:r.variableValues,targetRootValue:o,targetOperationName:s,targetOperation:l,targetFieldName:c,selectionSet:f,fieldNodes:h,context:g,info:r});return ire({...e,request:m})}function s6(e,t,n){return w1(e,t).getFields()[n].type}function ire(e){const t=ore(e),n=new rne(t),r=n.transformRequest(e.request);e.validateRequest&&are(t,r.document);const i=lre(t);return new hn(()=>i(r)).then(o=>{if(rc(o)){const s=o[Symbol.asyncIterator]();return Yx(s,l=>n.transformResult(l))}return n.transformResult(o)}).resolve()}function ore({request:e,schema:t,fieldName:n,returnType:r,args:i,info:o,transforms:s=[],transformedSchema:l,skipTypeMerging:c=!1}){var f,h,g,m;const y=xs(e);let S;n==null?S=y.selectionSet.selections[0].name.value:S=n;const x=(f=o==null?void 0:o.schema.extensions)===null||f===void 0?void 0:f.stitchingInfo,D=(h=x==null?void 0:x.subschemaMap.get(t))!==null&&h!==void 0?h:t,_=y.operation;if(Ine(D)){const b=D.schema;return{subschema:t,subschemaConfig:D,targetSchema:b,operation:_,fieldName:S,args:i,context:e.context,info:o,returnType:(g=r??(o==null?void 0:o.returnType))!==null&&g!==void 0?g:s6(b,_,S),transforms:D.transforms!=null?D.transforms.concat(s):s,transformedSchema:l??(D instanceof Ite?D.transformedSchema:Xx(b,D)),skipTypeMerging:c}}return{subschema:t,subschemaConfig:void 0,targetSchema:D,operation:_,fieldName:S,args:i,context:e.context,info:o,returnType:(m=r??(o==null?void 0:o.returnType))!==null&&m!==void 0?m:s6(D,_,S),transforms:s,transformedSchema:l??D,skipTypeMerging:c}}function are(e,t){const n=oh(e.targetSchema,t);if(n.length>0){if(n.length>1)throw new Kf(n,n.map(o=>o.message).join(`, \n`));const r=n[0];throw r.originalError||r}}const sre={};function lre(e){const{subschemaConfig:t,targetSchema:n,context:r}=e;let i=(t==null?void 0:t.executor)||ure(n);if(t!=null&&t.batch){const o=t==null?void 0:t.batchingOptions;i=One(r??sre,i,o==null?void 0:o.dataLoaderOptions,o==null?void 0:o.extensionsReducer)}return i}const ure=nc(function(t){return function(r){return nre({schema:t,document:r.document,rootValue:r.rootValue,contextValue:r.context,variableValues:r.variables,operationName:r.operationName})}});function cre(e){var t;const n=e.schema,r=(t=e.createProxyingResolver)!==null&&t!==void 0?t:pre,i=Gx(n),o={};for(const[s,l]of i.entries()){const c=l.name,f=l.getFields();o[c]={};for(const h in f){const g=r({subschemaConfig:e,operation:s,fieldName:h}),m=dre(e,g);s===\"subscription\"?o[c][h]={subscribe:m,resolve:fre}:o[c][h]={resolve:m}}}return o}function fre(e){return e}function dre(e,t){return function(r,i,o,s){if(r!=null){const l=Qx(s);if(ek(r)){const c=F9(r),f=L9(r,l);if(e===f&&r[l]!==void 0)return uv(r[l],c,f,o,s)}}return t(r,i,o,s)}}function pre({subschemaConfig:e,operation:t}){return function(r,i,o,s){return rre({schema:e,operation:t,context:o,info:s})}}const l6=nc(function(t){const n=t.schema,r=cre(t),i=hre(n,r);return Xx(i,t)});function hre(e,t){return dte(e,{[ft.ROOT_FIELD]:(n,r,i)=>{var o;return{...n,...(o=t[i])===null||o===void 0?void 0:o[r]}},[ft.OBJECT_FIELD]:n=>({...n,resolve:sne,subscribe:void 0}),[ft.OBJECT_TYPE]:n=>{const r=n.toConfig();return new rr({...r,isTypeOf:void 0})},[ft.INTERFACE_TYPE]:n=>{const r=n.toConfig();return new ci({...r,resolveType:void 0})},[ft.UNION_TYPE]:n=>{const r=n.toConfig();return new bl({...r,resolveType:void 0})},[ft.ENUM_VALUE]:n=>({...n,value:void 0})})}function vre(e,t){var n;if(!((n=e==null?void 0:e.data)===null||n===void 0)&&n.__schema)return ET(e.data,t);if(e!=null&&e.errors){const r=e.errors.map(i=>Ct(i.message,i));throw e.errors.length===1?r[0]:new Kf(r,\"Could not obtain introspection result\")}throw Ct(`Could not obtain introspection result, received the following as response; \n ${Sr(e)}`)}function u6(e,t,n){const r=zr(by(n),n);return new hn(()=>e({document:r,context:t})).then(i=>rc(i)?i[Symbol.asyncIterator]().next().then(({value:s})=>s):i).then(i=>vre(i,n)).resolve()}var nd=null;typeof WebSocket<\"u\"?nd=WebSocket:typeof MozWebSocket<\"u\"?nd=MozWebSocket:typeof global<\"u\"?nd=global.WebSocket||global.MozWebSocket:typeof window<\"u\"?nd=window.WebSocket||window.MozWebSocket:typeof self<\"u\"&&(nd=self.WebSocket||self.MozWebSocket);const c6=nd;var f6=globalThis.fetch,mre=globalThis.FormData,gre=globalThis.AbortController,yre=globalThis.File,d6=globalThis.TextDecoder;const bre=async(e,t)=>f6(e,t),sk=new TextEncoder;function ks(...e){const t=new ks.Request(...e),n=new XMLHttpRequest;n.withCredentials=t.credentials===\"include\",n.timeout=t[Je].timeout,n.open(t.method,t.url,!1);try{n.responseType=\"arraybuffer\"}catch{}for(const o of t.headers)n.setRequestHeader(...o);n.send(t.body||null);let r=n.getAllResponseHeaders();r=r&&r.split(`\\r\n`).filter(Boolean).map(o=>o.split(\": \",2));const i=new ks.Response(n.response,{headers:r,status:n.status,statusText:n.statusText});return i[Je].url=n.responseURL,i[Je].redirected=n.responseURL!==t.url,i}const Je=Symbol(\"SyncFetch Internals\"),Ere=[\"mode\",\"cache\",\"redirect\",\"referrer\",\"integrity\"],wre={100:\"Continue\",101:\"Switching Protocols\",200:\"OK\",201:\"Created\",202:\"Accepted\",203:\"Non-Authoritative Information\",204:\"No Content\",205:\"Reset Content\",206:\"Partial Content\",300:\"Multiple Choices\",301:\"Moved Permanently\",302:\"Found\",303:\"See Other\",304:\"Not Modified\",305:\"Use Proxy\",307:\"Temporary Redirect\",400:\"Bad Request\",401:\"Unauthorized\",402:\"Payment Required\",403:\"Forbidden\",404:\"Not Found\",405:\"Method Not Allowed\",406:\"Not Acceptable\",407:\"Proxy Authentication Required\",408:\"Request Timeout\",409:\"Conflict\",410:\"Gone\",411:\"Length Required\",412:\"Precondition Failed\",413:\"Payload Too Large\",414:\"URI Too Long\",415:\"Unsupported Media Type\",416:\"Range Not Satisfiable\",417:\"Expectation Failed\",426:\"Upgrade Required\",500:\"Internal Server Error\",501:\"Not Implemented\",502:\"Bad Gateway\",503:\"Service Unavailable\",504:\"Gateway Timeout\",505:\"HTTP Version Not Supported\"};class cv{constructor(t,n={}){for(const r of Ere)if(r in n)throw new TypeError(`option ${r} not supported`);if(n.credentials===\"same-origin\")throw new TypeError(\"option credentials with value 'same-origin' not supported\");if(this[Je]={method:n.method||\"GET\",headers:new ks.Headers(n.headers),body:n.body?sk.encode(n.body):null,credentials:n.credentials||\"omit\",timeout:n.timeout||0},typeof t==\"string\")this[Je].url=t;else if(t instanceof cv)this[Je].url=t.url,n.method||(this[Je].method=t.method),n.headers||(this[Je].headers=t.headers),n.body||(this[Je].body=t[Je].body),n.credentials||(this[Je].credentials=t.credentials);else throw new TypeError(\"Request input should be a URL string or a Request object\")}get cache(){return\"default\"}get credentials(){return this[Je].credentials}get destination(){return\"\"}get headers(){return this[Je].headers}get integrity(){return\"\"}get method(){return this[Je].method}get mode(){return\"cors\"}get priority(){return\"auto\"}get redirect(){return\"follow\"}get referrer(){return\"about:client\"}get referrerPolicy(){return\"\"}get url(){return this[Je].url}clone(){return lk(this),new cv(this.url,this[Je])}}class O1{constructor(t,n={}){this[Je]={body:t?sk.encode(t):null,bodyUsed:!1,headers:new ks.Headers(n.headers),status:n.status,statusText:n.statusText}}get headers(){return this[Je].headers}get ok(){const t=this[Je].status;return t>=200&&t<300}get redirected(){return this[Je].redirected}get status(){return this[Je].status}get statusText(){return this[Je].statusText}get url(){return this[Je].url}clone(){return this.redirect(this[Je].url,this[Je].status)}redirect(t,n){lk(this);const r=new O1(this[Je].body,{headers:this[Je].headers,status:n||this[Je].status,statusText:wre[n]||this[Je].statusText});return r[Je].url=t||this[Je].url,r[Je].redirected=this[Je].redirected,r}}class fv{constructor(t){this[Je]={body:sk.encode(t),bodyUsed:!1}}get bodyUsed(){return this[Je].bodyUsed}static mixin(t){for(const n of Object.getOwnPropertyNames(fv.prototype)){if(n===\"constructor\")continue;const r=Object.getOwnPropertyDescriptor(fv.prototype,n);Object.defineProperty(t,n,{...r,enumerable:!0})}}arrayBuffer(){const t=dv(this);return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}blob(){const t=this.headers&&this.headers.get(\"content-type\");return new Blob([dv(this)],t&&{type:t})}text(){return dv(this).toString()}json(){try{return JSON.parse(dv(this).toString())}catch(t){throw new TypeError(`invalid json response body at ${this.url} reason: ${t.message}`,\"invalid-json\")}}buffer(){return dv(this).clone()}}function lk(e){if(e.bodyUsed)throw new TypeError(`body used already for: ${e.url}`)}function dv(e){return lk(e),e[Je].bodyUsed=!0,e[Je].body||Buffer.alloc(0)}fv.mixin(cv.prototype),fv.mixin(O1.prototype);class Sre{constructor(t){if(t instanceof ks.Headers)this[Je]={...t[Je]};else if(this[Je]={},Array.isArray(t))for(const[n,r]of t)this.append(n,r);else if(typeof t==\"object\")for(const n in t)this.set(n,t[n])}append(t,n){t=t.toLowerCase(),this[Je][t]||(this[Je][t]=[]),this[Je][t].push(n)}delete(t){delete this[Je][t.toLowerCase()]}set(t,n){this[Je][t.toLowerCase()]=[n]}entries(){const t=[];for(const n in this[Je])for(const r of this[Je][n])t.push([n,r]);return t}get(t){return t=t.toLowerCase(),t in this[Je]?this[Je][t].join(\", \"):null}keys(){return Object.keys(this[Je])}has(t){return t.toLowerCase()in this[Je]}values(){const t=[];for(const n in this[Je])for(const r of this[Je][n])t.push(r);return t}*[Symbol.iterator](){for(const t in this[Je])for(const n of this[Je][t])yield[t,n]}}ks.Headers=Sre,ks.Request=cv,ks.Response=O1;var Tre=ks;const _re=Tre,Cre=(e,t)=>(typeof e==\"string\"?t==null||delete t.signal:delete e.signal,_re(e,t));/*! *****************************************************************************\n\tCopyright (c) Microsoft Corporation.\n\n\tPermission to use, copy, modify, and/or distribute this software for any\n\tpurpose with or without fee is hereby granted.\n\n\tTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\n\tREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\n\tAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\n\tINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\n\tLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\n\tOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\n\tPERFORMANCE OF THIS SOFTWARE.\n\t***************************************************************************** */var uk=function(e,t){return uk=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])},uk(e,t)};function xre(e,t){uk(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function rd(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function l(h){try{f(r.next(h))}catch(g){s(g)}}function c(h){try{f(r.throw(h))}catch(g){s(g)}}function f(h){h.done?o(h.value):i(h.value).then(l,c)}f((r=r.apply(e,t||[])).next())})}function Ul(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol==\"function\"&&(s[Symbol.iterator]=function(){return this}),s;function l(f){return function(h){return c([f,h])}}function c(f){if(r)throw new TypeError(\"Generator is already executing.\");for(;n;)try{if(r=1,i&&(o=f[0]&2?i.return:f[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,f[1])).done)return o;switch(i=0,o&&(f=[f[0]&2,o.value]),f[0]){case 0:case 1:o=f;break;case 4:return n.label++,{value:f[1],done:!1};case 5:n.label++,i=f[1],f=[0];continue;case 7:f=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!o||f[1]>o[0]&&f[1]<o[3])){n.label=f[1];break}if(f[0]===6&&n.label<o[1]){n.label=o[1],o=f;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(f);break}o[2]&&n.ops.pop(),n.trys.pop();continue}f=t.call(e,n)}catch(h){f=[6,h],i=0}finally{r=o=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}function id(e){var t=typeof Symbol==\"function\"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==\"number\")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?\"Object is not iterable.\":\"Symbol.iterator is not defined.\")}function pv(e){return this instanceof pv?(this.v=e,this):new pv(e)}function kre(e,t,n){if(!Symbol.asyncIterator)throw new TypeError(\"Symbol.asyncIterator is not defined.\");var r=n.apply(e,t||[]),i,o=[];return i={},s(\"next\"),s(\"throw\"),s(\"return\"),i[Symbol.asyncIterator]=function(){return this},i;function s(m){r[m]&&(i[m]=function(y){return new Promise(function(S,x){o.push([m,y,S,x])>1||l(m,y)})})}function l(m,y){try{c(r[m](y))}catch(S){g(o[0][3],S)}}function c(m){m.value instanceof pv?Promise.resolve(m.value.v).then(f,h):g(o[0][2],m)}function f(m){l(\"next\",m)}function h(m){l(\"throw\",m)}function g(m,y){m(y),o.shift(),o.length&&l(o[0][0],o[0][1])}}var p6=function(e){xre(t,e);function t(n){var r=e.call(this,n)||this;return Object.defineProperty(r,\"name\",{value:\"RepeaterOverflowError\",enumerable:!1}),typeof Object.setPrototypeOf==\"function\"?Object.setPrototypeOf(r,r.constructor.prototype):r.__proto__=r.constructor.prototype,typeof Error.captureStackTrace==\"function\"&&Error.captureStackTrace(r,r.constructor),r}return t}(Error);(function(){function e(t){if(t<0)throw new RangeError(\"Capacity may not be less than 0\");this._c=t,this._q=[]}return Object.defineProperty(e.prototype,\"empty\",{get:function(){return this._q.length===0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"full\",{get:function(){return this._q.length>=this._c},enumerable:!1,configurable:!0}),e.prototype.add=function(t){if(this.full)throw new Error(\"Buffer full\");this._q.push(t)},e.prototype.remove=function(){if(this.empty)throw new Error(\"Buffer empty\");return this._q.shift()},e})(),function(){function e(t){if(t<1)throw new RangeError(\"Capacity may not be less than 1\");this._c=t,this._q=[]}return Object.defineProperty(e.prototype,\"empty\",{get:function(){return this._q.length===0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"full\",{get:function(){return!1},enumerable:!1,configurable:!0}),e.prototype.add=function(t){for(;this._q.length>=this._c;)this._q.shift();this._q.push(t)},e.prototype.remove=function(){if(this.empty)throw new Error(\"Buffer empty\");return this._q.shift()},e}(),function(){function e(t){if(t<1)throw new RangeError(\"Capacity may not be less than 1\");this._c=t,this._q=[]}return Object.defineProperty(e.prototype,\"empty\",{get:function(){return this._q.length===0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,\"full\",{get:function(){return!1},enumerable:!1,configurable:!0}),e.prototype.add=function(t){this._q.length<this._c&&this._q.push(t)},e.prototype.remove=function(){if(this.empty)throw new Error(\"Buffer empty\");return this._q.shift()},e}();function ck(e){e!=null&&typeof e.then==\"function\"&&e.then(F1,F1)}var fk=0,h6=1,ic=2,I1=3,dk=4,L1=1024,F1=function(){};function od(e){var t=e.err,n=Promise.resolve(e.execution).then(function(r){if(t!=null)throw t;return r});return e.err=void 0,e.execution=n.then(function(){},function(){}),e.pending===void 0?n:e.pending.then(function(){return n})}function oc(e,t){var n=e.state>=I1;return Promise.resolve(t).then(function(r){return!n&&e.state>=dk?od(e).then(function(i){return{value:i,done:!0}}):{value:r,done:n}})}function pk(e,t){var n,r;if(!(e.state>=ic))if(e.state=ic,e.onnext(),e.onstop(),e.err==null&&(e.err=t),e.pushes.length===0&&(typeof e.buffer>\"u\"||e.buffer.empty))hv(e);else try{for(var i=id(e.pushes),o=i.next();!o.done;o=i.next()){var s=o.value;s.resolve()}}catch(l){n={error:l}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}function hv(e){var t,n;if(!(e.state>=I1)){e.state<ic&&pk(e),e.state=I1,e.buffer=void 0;try{for(var r=id(e.nexts),i=r.next();!i.done;i=r.next()){var o=i.value,s=e.pending===void 0?od(e):e.pending.then(function(){return od(e)});o.resolve(oc(e,s))}}catch(l){t={error:l}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}e.pushes=[],e.nexts=[]}}function v6(e){e.state>=dk||(e.state<I1&&hv(e),e.state=dk)}function Nre(e,t){if(ck(t),e.pushes.length>=L1)throw new p6(\"No more than \"+L1+\" pending calls to push are allowed on a single repeater.\");if(e.state>=ic)return Promise.resolve(void 0);var n=e.pending===void 0?Promise.resolve(t):e.pending.then(function(){return t});n=n.catch(function(c){e.state<ic&&(e.err=c),v6(e)});var r;if(e.nexts.length){var i=e.nexts.shift();i.resolve(oc(e,n)),e.nexts.length?r=Promise.resolve(e.nexts[0].value):r=new Promise(function(c){return e.onnext=c})}else typeof e.buffer<\"u\"&&!e.buffer.full?(e.buffer.add(n),r=Promise.resolve(void 0)):r=new Promise(function(c){return e.pushes.push({resolve:c,value:n})});var o=!0,s={},l=r.catch(function(c){if(o)throw c});return s.then=function(c,f){return o=!1,Promise.prototype.then.call(r,c,f)},s.catch=function(c){return o=!1,Promise.prototype.catch.call(r,c)},s.finally=r.finally.bind(r),e.pending=n.then(function(){return l}).catch(function(c){e.err=c,v6(e)}),s}function Dre(e){var t=pk.bind(null,e),n=new Promise(function(r){return e.onstop=r});return t.then=n.then.bind(n),t.catch=n.catch.bind(n),t.finally=n.finally.bind(n),t}function Are(e){if(!(e.state>=h6)){e.state=h6;var t=Nre.bind(null,e),n=Dre(e);e.execution=new Promise(function(r){return r(e.executor(t,n))}),e.execution.catch(function(){return pk(e)})}}var R1=new WeakMap,ad=function(){function e(t,n){R1.set(this,{executor:t,buffer:n,err:void 0,state:fk,pushes:[],nexts:[],pending:void 0,execution:void 0,onnext:F1,onstop:F1})}return e.prototype.next=function(t){ck(t);var n=R1.get(this);if(n===void 0)throw new Error(\"WeakMap error\");if(n.nexts.length>=L1)throw new p6(\"No more than \"+L1+\" pending calls to next are allowed on a single repeater.\");if(n.state<=fk&&Are(n),n.onnext(t),typeof n.buffer<\"u\"&&!n.buffer.empty){var r=oc(n,n.buffer.remove());if(n.pushes.length){var i=n.pushes.shift();n.buffer.add(i.value),n.onnext=i.resolve}return r}else if(n.pushes.length){var o=n.pushes.shift();return n.onnext=o.resolve,oc(n,o.value)}else if(n.state>=ic)return hv(n),oc(n,od(n));return new Promise(function(s){return n.nexts.push({resolve:s,value:t})})},e.prototype.return=function(t){ck(t);var n=R1.get(this);if(n===void 0)throw new Error(\"WeakMap error\");return hv(n),n.execution=Promise.resolve(n.execution).then(function(){return t}),oc(n,od(n))},e.prototype.throw=function(t){var n=R1.get(this);if(n===void 0)throw new Error(\"WeakMap error\");return n.state<=fk||n.state>=ic||typeof n.buffer<\"u\"&&!n.buffer.empty?(hv(n),n.err==null&&(n.err=t),oc(n,od(n))):this.next(Promise.reject(t))},e.prototype[Symbol.asyncIterator]=function(){return this},e.race=Ore,e.merge=Ire,e.zip=Lre,e.latest=Fre,e}();function P1(e,t){var n,r,i=[],o=function(f){f!=null&&typeof f[Symbol.asyncIterator]==\"function\"?i.push(f[Symbol.asyncIterator]()):f!=null&&typeof f[Symbol.iterator]==\"function\"?i.push(f[Symbol.iterator]()):i.push(function(){return kre(this,arguments,function(){return Ul(this,function(m){switch(m.label){case 0:return t.yieldValues?[4,pv(f)]:[3,3];case 1:return[4,m.sent()];case 2:m.sent(),m.label=3;case 3:return t.returnValues?[4,pv(f)]:[3,5];case 4:return[2,m.sent()];case 5:return[2]}})})}())};try{for(var s=id(e),l=s.next();!l.done;l=s.next()){var c=l.value;o(c)}}catch(f){n={error:f}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return i}function Ore(e){var t=this,n=P1(e,{returnValues:!0});return new ad(function(r,i){return rd(t,void 0,void 0,function(){var o,s,l,c,f,h;return Ul(this,function(g){switch(g.label){case 0:if(!n.length)return i(),[2];s=!1,i.then(function(){o(),s=!0}),g.label=1;case 1:g.trys.push([1,,5,7]),c=void 0,f=0,h=function(){var m,y,S,x,D,_;return Ul(this,function(b){switch(b.label){case 0:m=f;try{for(y=(D=void 0,id(n)),S=y.next();!S.done;S=y.next())x=S.value,Promise.resolve(x.next()).then(function(C){C.done?(i(),l===void 0&&(l=C)):f===m&&(f++,o(C))},function(C){return i(C)})}catch(C){D={error:C}}finally{try{S&&!S.done&&(_=y.return)&&_.call(y)}finally{if(D)throw D.error}}return[4,new Promise(function(C){return o=C})];case 1:return c=b.sent(),c===void 0?[3,3]:[4,r(c.value)];case 2:b.sent(),b.label=3;case 3:return[2]}})},g.label=2;case 2:return s?[3,4]:[5,h()];case 3:return g.sent(),[3,2];case 4:return[2,l&&l.value];case 5:return i(),[4,Promise.race(n.map(function(m){return m.return&&m.return()}))];case 6:return g.sent(),[7];case 7:return[2]}})})})}function Ire(e){var t=this,n=P1(e,{yieldValues:!0});return new ad(function(r,i){return rd(t,void 0,void 0,function(){var o,s,l,c=this;return Ul(this,function(f){switch(f.label){case 0:if(!n.length)return i(),[2];o=[],s=!1,i.then(function(){var h,g;s=!0;try{for(var m=id(o),y=m.next();!y.done;y=m.next()){var S=y.value;S()}}catch(x){h={error:x}}finally{try{y&&!y.done&&(g=m.return)&&g.call(m)}finally{if(h)throw h.error}}}),f.label=1;case 1:return f.trys.push([1,,3,4]),[4,Promise.all(n.map(function(h,g){return rd(c,void 0,void 0,function(){var m,y;return Ul(this,function(S){switch(S.label){case 0:S.trys.push([0,,6,9]),S.label=1;case 1:return s?[3,5]:(Promise.resolve(h.next()).then(function(x){return o[g](x)},function(x){return i(x)}),[4,new Promise(function(x){o[g]=x})]);case 2:return m=S.sent(),m===void 0?[3,4]:m.done?(l=m,[2]):[4,r(m.value)];case 3:S.sent(),S.label=4;case 4:return[3,1];case 5:return[3,9];case 6:return y=h.return,y?[4,h.return()]:[3,8];case 7:y=S.sent(),S.label=8;case 8:return[7];case 9:return[2]}})})}))];case 2:return f.sent(),[2,l&&l.value];case 3:return i(),[7];case 4:return[2]}})})})}function Lre(e){var t=this,n=P1(e,{returnValues:!0});return new ad(function(r,i){return rd(t,void 0,void 0,function(){var o,s,l,c;return Ul(this,function(f){switch(f.label){case 0:if(!n.length)return i(),[2,[]];s=!1,i.then(function(){o(),s=!0}),f.label=1;case 1:f.trys.push([1,,6,8]),f.label=2;case 2:return s?[3,5]:(Promise.all(n.map(function(h){return h.next()})).then(function(h){return o(h)},function(h){return i(h)}),[4,new Promise(function(h){return o=h})]);case 3:return l=f.sent(),l===void 0?[2]:(c=l.map(function(h){return h.value}),l.some(function(h){return h.done})?[2,c]:[4,r(c)]);case 4:return f.sent(),[3,2];case 5:return[3,8];case 6:return i(),[4,Promise.all(n.map(function(h){return h.return&&h.return()}))];case 7:return f.sent(),[7];case 8:return[2]}})})})}function Fre(e){var t=this,n=P1(e,{yieldValues:!0,returnValues:!0});return new ad(function(r,i){return rd(t,void 0,void 0,function(){var o,s,l,c,f,h=this;return Ul(this,function(g){switch(g.label){case 0:if(!n.length)return i(),[2,[]];s=[],l=!1,i.then(function(){var m,y;o();try{for(var S=id(s),x=S.next();!x.done;x=S.next()){var D=x.value;D()}}catch(_){m={error:_}}finally{try{x&&!x.done&&(y=S.return)&&y.call(S)}finally{if(m)throw m.error}}l=!0}),g.label=1;case 1:return g.trys.push([1,,5,7]),Promise.all(n.map(function(m){return m.next()})).then(function(m){return o(m)},function(m){return i(m)}),[4,new Promise(function(m){return o=m})];case 2:return c=g.sent(),c===void 0?[2]:(f=c.map(function(m){return m.value}),c.every(function(m){return m.done})?[2,f]:[4,r(f.slice())]);case 3:return g.sent(),[4,Promise.all(n.map(function(m,y){return rd(h,void 0,void 0,function(){var S;return Ul(this,function(x){switch(x.label){case 0:if(c[y].done)return[2,c[y].value];x.label=1;case 1:return l?[3,4]:(Promise.resolve(m.next()).then(function(D){return s[y](D)},function(D){return i(D)}),[4,new Promise(function(D){return s[y]=D})]);case 2:return S=x.sent(),S===void 0?[2,c[y].value]:S.done?[2,S.value]:(f[y]=S.value,[4,r(f.slice())]);case 3:return x.sent(),[3,1];case 4:return[2]}})})}))];case 4:return[2,g.sent()];case 5:return i(),[4,Promise.all(n.map(function(m){return m.return&&m.return()}))];case 6:return g.sent(),[7];case 7:return[2]}})})})}function Ri(e){return e===null?\"null\":Array.isArray(e)?\"array\":typeof e}function ac(e){return Ri(e)===\"object\"}function Rre(e){return Array.isArray(e)&&e.length>0&&e.every(t=>\"message\"in t)}function m6(e,t){return e.length<124?e:t}const Pre=\"graphql-transport-ws\";var ro;(function(e){e[e.InternalServerError=4500]=\"InternalServerError\",e[e.InternalClientError=4005]=\"InternalClientError\",e[e.BadRequest=4400]=\"BadRequest\",e[e.BadResponse=4004]=\"BadResponse\",e[e.Unauthorized=4401]=\"Unauthorized\",e[e.Forbidden=4403]=\"Forbidden\",e[e.SubprotocolNotAcceptable=4406]=\"SubprotocolNotAcceptable\",e[e.ConnectionInitialisationTimeout=4408]=\"ConnectionInitialisationTimeout\",e[e.ConnectionAcknowledgementTimeout=4504]=\"ConnectionAcknowledgementTimeout\",e[e.SubscriberAlreadyExists=4409]=\"SubscriberAlreadyExists\",e[e.TooManyInitialisationRequests=4429]=\"TooManyInitialisationRequests\"})(ro||(ro={}));var Rn;(function(e){e.ConnectionInit=\"connection_init\",e.ConnectionAck=\"connection_ack\",e.Ping=\"ping\",e.Pong=\"pong\",e.Subscribe=\"subscribe\",e.Next=\"next\",e.Error=\"error\",e.Complete=\"complete\"})(Rn||(Rn={}));function g6(e){if(!ac(e))throw new Error(`Message is expected to be an object, but got ${Ri(e)}`);if(!e.type)throw new Error(\"Message is missing the 'type' property\");if(typeof e.type!=\"string\")throw new Error(`Message is expects the 'type' property to be a string, but got ${Ri(e.type)}`);switch(e.type){case Rn.ConnectionInit:case Rn.ConnectionAck:case Rn.Ping:case Rn.Pong:{if(\"payload\"in e&&!ac(e.payload))throw new Error(`\"${e.type}\" message expects the 'payload' property to be an object or missing, but got \"${e.payload}\"`);break}case Rn.Subscribe:{if(typeof e.id!=\"string\")throw new Error(`\"${e.type}\" message expects the 'id' property to be a string, but got ${Ri(e.id)}`);if(!e.id)throw new Error(`\"${e.type}\" message requires a non-empty 'id' property`);if(!ac(e.payload))throw new Error(`\"${e.type}\" message expects the 'payload' property to be an object, but got ${Ri(e.payload)}`);if(typeof e.payload.query!=\"string\")throw new Error(`\"${e.type}\" message payload expects the 'query' property to be a string, but got ${Ri(e.payload.query)}`);if(e.payload.variables!=null&&!ac(e.payload.variables))throw new Error(`\"${e.type}\" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${Ri(e.payload.variables)}`);if(e.payload.operationName!=null&&Ri(e.payload.operationName)!==\"string\")throw new Error(`\"${e.type}\" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${Ri(e.payload.operationName)}`);if(e.payload.extensions!=null&&!ac(e.payload.extensions))throw new Error(`\"${e.type}\" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${Ri(e.payload.extensions)}`);break}case Rn.Next:{if(typeof e.id!=\"string\")throw new Error(`\"${e.type}\" message expects the 'id' property to be a string, but got ${Ri(e.id)}`);if(!e.id)throw new Error(`\"${e.type}\" message requires a non-empty 'id' property`);if(!ac(e.payload))throw new Error(`\"${e.type}\" message expects the 'payload' property to be an object, but got ${Ri(e.payload)}`);break}case Rn.Error:{if(typeof e.id!=\"string\")throw new Error(`\"${e.type}\" message expects the 'id' property to be a string, but got ${Ri(e.id)}`);if(!e.id)throw new Error(`\"${e.type}\" message requires a non-empty 'id' property`);if(!Rre(e.payload))throw new Error(`\"${e.type}\" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break}case Rn.Complete:{if(typeof e.id!=\"string\")throw new Error(`\"${e.type}\" message expects the 'id' property to be a string, but got ${Ri(e.id)}`);if(!e.id)throw new Error(`\"${e.type}\" message requires a non-empty 'id' property`);break}default:throw new Error(`Invalid message 'type' property \"${e.type}\"`)}return e}function Mre(e,t){return g6(typeof e==\"string\"?JSON.parse(e,t):e)}function vv(e,t){return g6(e),JSON.stringify(e,t)}function $re(e){const{url:t,connectionParams:n,lazy:r=!0,onNonLazyError:i=console.error,lazyCloseTimeout:o=0,keepAlive:s=0,disablePong:l,connectionAckWaitTimeout:c=0,retryAttempts:f=5,retryWait:h=async function(j){let X=1e3;for(let ne=0;ne<j;ne++)X*=2;await new Promise(ne=>setTimeout(ne,X+Math.floor(Math.random()*(3e3-300)+300)))},shouldRetry:g=M1,isFatalConnectionProblem:m,on:y,webSocketImpl:S,generateID:x=function(){return\"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replace(/[xy]/g,j=>{const X=Math.random()*16|0;return(j==\"x\"?X:X&3|8).toString(16)})},jsonMessageReplacer:D,jsonMessageReviver:_}=e;let b;if(S){if(!Bre(S))throw new Error(\"Invalid WebSocket implementation provided\");b=S}else typeof WebSocket<\"u\"?b=WebSocket:typeof global<\"u\"?b=global.WebSocket||global.MozWebSocket:typeof window<\"u\"&&(b=window.WebSocket||window.MozWebSocket);if(!b)throw new Error(\"WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`\");const C=b,T=(()=>{const U=(()=>{const X={};return{on(ne,J){return X[ne]=J,()=>{delete X[ne]}},emit(ne){var J;\"id\"in ne&&((J=X[ne.id])===null||J===void 0||J.call(X,ne))}}})(),j={connecting:y!=null&&y.connecting?[y.connecting]:[],opened:y!=null&&y.opened?[y.opened]:[],connected:y!=null&&y.connected?[y.connected]:[],ping:y!=null&&y.ping?[y.ping]:[],pong:y!=null&&y.pong?[y.pong]:[],message:y!=null&&y.message?[U.emit,y.message]:[U.emit],closed:y!=null&&y.closed?[y.closed]:[],error:y!=null&&y.error?[y.error]:[]};return{onMessage:U.on,on(X,ne){const J=j[X];return J.push(ne),()=>{J.splice(J.indexOf(ne),1)}},emit(X,...ne){for(const J of[...j[X]])J(...ne)}}})();function N(U){const j=[T.on(\"error\",X=>{j.forEach(ne=>ne()),U(X)}),T.on(\"closed\",X=>{j.forEach(ne=>ne()),U(X)})]}let F,L=0,A,P=!1,V=0,H=!1;async function G(){clearTimeout(A);const[U,j]=await(F??(F=new Promise((J,re)=>(async()=>{if(P){if(await h(V),!L)return F=void 0,re({code:1e3,reason:\"All Subscriptions Gone\"});V++}T.emit(\"connecting\");const Z=new C(typeof t==\"function\"?await t():t,Pre);let de,K;function ve(){isFinite(s)&&s>0&&(clearTimeout(K),K=setTimeout(()=>{Z.readyState===C.OPEN&&(Z.send(vv({type:Rn.Ping})),T.emit(\"ping\",!1,void 0))},s))}N(ce=>{F=void 0,clearTimeout(de),clearTimeout(K),re(ce),M1(ce)&&ce.code===4499&&(Z.close(4499,\"Terminated\"),Z.onerror=null,Z.onclose=null)}),Z.onerror=ce=>T.emit(\"error\",ce),Z.onclose=ce=>T.emit(\"closed\",ce),Z.onopen=async()=>{try{T.emit(\"opened\",Z);const ce=typeof n==\"function\"?await n():n;if(Z.readyState!==C.OPEN)return;Z.send(vv(ce?{type:Rn.ConnectionInit,payload:ce}:{type:Rn.ConnectionInit},D)),isFinite(c)&&c>0&&(de=setTimeout(()=>{Z.close(ro.ConnectionAcknowledgementTimeout,\"Connection acknowledgement timeout\")},c)),ve()}catch(ce){T.emit(\"error\",ce),Z.close(ro.InternalClientError,m6(ce instanceof Error?ce.message:new Error(ce).message,\"Internal client error\"))}};let ue=!1;Z.onmessage=({data:ce})=>{try{const le=Mre(ce,_);if(T.emit(\"message\",le),le.type===\"ping\"||le.type===\"pong\"){T.emit(le.type,!0,le.payload),le.type===\"pong\"?ve():l||(Z.send(vv(le.payload?{type:Rn.Pong,payload:le.payload}:{type:Rn.Pong})),T.emit(\"pong\",!1,le.payload));return}if(ue)return;if(le.type!==Rn.ConnectionAck)throw new Error(`First message cannot be of type ${le.type}`);clearTimeout(de),ue=!0,T.emit(\"connected\",Z,le.payload),P=!1,V=0,J([Z,new Promise((we,Ce)=>N(Ce))])}catch(le){Z.onmessage=null,T.emit(\"error\",le),Z.close(ro.BadResponse,m6(le instanceof Error?le.message:new Error(le).message,\"Bad response\"))}}})())));U.readyState===C.CLOSING&&await j;let X=()=>{};const ne=new Promise(J=>X=J);return[U,X,Promise.race([ne.then(()=>{if(!L){const J=()=>U.close(1e3,\"Normal Closure\");isFinite(o)&&o>0?A=setTimeout(()=>{U.readyState===C.OPEN&&J()},o):J()}}),j])]}function z(U){if(M1(U)&&(Vre(U.code)||[ro.InternalServerError,ro.InternalClientError,ro.BadRequest,ro.BadResponse,ro.Unauthorized,ro.SubprotocolNotAcceptable,ro.SubscriberAlreadyExists,ro.TooManyInitialisationRequests].includes(U.code)))throw U;if(H)return!1;if(M1(U)&&U.code===1e3)return L>0;if(!f||V>=f||!g(U)||m!=null&&m(U))throw U;return P=!0}return r||(async()=>{for(L++;;)try{const[,,U]=await G();await U}catch(U){try{if(!z(U))return}catch(j){return i==null?void 0:i(j)}}})(),{on:T.on,subscribe(U,j){const X=x(U);let ne=!1,J=!1,re=()=>{L--,ne=!0};return(async()=>{for(L++;;)try{const[Z,de,K]=await G();if(ne)return de();const ve=T.onMessage(X,ue=>{switch(ue.type){case Rn.Next:{j.next(ue.payload);return}case Rn.Error:{J=!0,ne=!0,j.error(ue.payload),re();return}case Rn.Complete:{ne=!0,re();return}}});Z.send(vv({id:X,type:Rn.Subscribe,payload:U},D)),re=()=>{!ne&&Z.readyState===C.OPEN&&Z.send(vv({id:X,type:Rn.Complete},D)),L--,ne=!0,de()},await K.finally(ve);return}catch(Z){if(!z(Z))return}})().then(()=>{J||j.complete()}).catch(Z=>{j.error(Z)}),()=>{ne||re()}},async dispose(){if(H=!0,F){const[U]=await F;U.close(1e3,\"Normal Closure\")}},terminate(){F&&T.emit(\"closed\",{code:4499,reason:\"Terminated\",wasClean:!1})}}}function M1(e){return ac(e)&&\"code\"in e&&\"reason\"in e}function Vre(e){return[1e3,1001,1006,1005,1012,1013,1013].includes(e)?!1:e>=1e3&&e<=1999}function Bre(e){return typeof e==\"function\"&&\"constructor\"in e&&\"CLOSED\"in e&&\"CLOSING\"in e&&\"CONNECTING\"in e&&\"OPEN\"in e}function jre(e){return\"subscribe\"in e}function Ure(e){let t;return jre(e)?t=e:(t=$re({webSocketImpl:c6,lazy:!0,...e}),e.onClient&&e.onClient(t)),function(r){const{document:i,variables:o,operationName:s,extensions:l,operationType:c=xs(r).operation}=r,f=gt(i);return c===\"subscription\"?new ad(function(g,m){const y=t.subscribe({query:f,variables:o,operationName:s,extensions:l},{next(S){return g(S)},error(S){return m(S)},complete(){return m()}});return m.finally(y)}):new Promise((h,g)=>{const m=t.subscribe({query:f,variables:o,operationName:s,extensions:l},{next(y){return h(y)},error(y){return g(y)},complete(){m()}})})}}const y6=nc(function(t){var n;return t.operation===\"query\"&&((n=t.directives)===null||n===void 0?void 0:n.some(r=>r.name.value===\"live\"))});function qre({baseUrl:e=\"\",query:t,variables:n,operationName:r,extensions:i}){const o=\"https://dummyhostname.com\",s=e.startsWith(\"http\")?e:e!=null&&e.startsWith(\"/\")?`${o}${e}`:`${o}/${e}`,l=new URL(s);return l.searchParams.set(\"query\",EF(t)),n&&Object.keys(n).length>0&&l.searchParams.set(\"variables\",JSON.stringify(n)),r&&l.searchParams.set(\"operationName\",r),i&&l.searchParams.set(\"extensions\",JSON.stringify(i)),l.toString().replace(o,\"\")}var Hre=class{constructor({uri:t,name:n,type:r}){this.uri=t,this.name=n,this.type=r}};const zre=Hre;var b6=function(t){return typeof File<\"u\"&&t instanceof File||typeof Blob<\"u\"&&t instanceof Blob||t instanceof zre};const Gre=b6,Wre=b6;var Qre=function(t,n=\"\",r=Wre){const i=new Map,o=new Map;function s(l,c,f){let h=l;if(r(l)){h=null;const g=i.get(l);g?g.push(c):i.set(l,[c])}else{const g=Array.isArray(l)||typeof FileList<\"u\"&&l instanceof FileList,m=l&&l.constructor===Object;if(g||m){const y=o.has(l);if(y?h=o.get(l):(h=g?[]:{},o.set(l,h)),!f.has(l)){const S=c?`${c}.`:\"\",x=new Set(f).add(l);if(g){let D=0;for(const _ of l){const b=s(_,S+D++,x);y||h.push(b)}}else for(const D in l){const _=s(l[D],S+D,x);y||(h[D]=_)}}}}return h}return{clone:s(t,n,new Set),files:i}};const Yre=Qre;function Jre(e){return typeof e.createReadStream==\"function\"}function Kre({query:e,variables:t,operationName:n,extensions:r},{File:i=yre,FormData:o=mre}){const s=Object.assign({},t),{clone:l,files:c}=Yre(s,\"variables\",S=>Gre(S)||(S==null?void 0:S.promise)||rc(S)||(S==null?void 0:S.then)||typeof(S==null?void 0:S.arrayBuffer)==\"function\");if(c.size===0)return JSON.stringify({query:e,variables:t,operationName:n,extensions:r});const f={},h=[];let g=0;for(const[S,x]of c)f[g]=x,h[g]=S,g++;const m=new o;m.append(\"operations\",JSON.stringify({query:e,variables:l,operationName:n,extensions:r})),m.append(\"map\",JSON.stringify(f));function y(S,x){const D=x.toString();if(S!=null){const _=S.filename||S.name||S.path||`blob-${D}`;if(sr(S))return S.then(b=>y(b,x));if(Xre(S))m.append(D,S,_);else if(Jre(S)){const b=S.createReadStream(),C=[];return Promise.resolve().then(async()=>{for await(const N of b)N&&C.push(...N);const T=new Uint8Array(C);m.append(D,new i([T],_,{type:S.mimetype}),_)})}else m.append(D,new i([S],_),_)}}return hn.all(h.map((S,x)=>new hn(()=>y(S,x)))).then(()=>m).resolve()}function Xre(e){return typeof e.arrayBuffer==\"function\"}async function*Zre(e){const t=new d6;e:for await(const n of e){const r=typeof n==\"string\"?n:t.decode(n,{stream:!0});for(const i of r.split(`\n\n`))if(i){const o=i.split(\"event: \")[1],s=i.split(\"data: \")[1];if(o===\"complete\")break e;if(s){const l=JSON.parse(s);yield l.payload||l}}}}function E6(e,t){return Ate(e,()=>{t.signal.aborted||t.abort()})}function eie(e){const t=new d6;return new ad(function(r,i){const o=e.getReader();async function s(){const{done:l,value:c}=await o.read();if(l)return i();if(c){const f=typeof c==\"string\"?c:t.decode(c,{stream:!0});for(const h of f.split(`\n\n`))if(h){const g=h.split(\"event: \")[1],m=h.split(\"data: \")[1];if(g===\"complete\")return i();if(m){const y=JSON.parse(m);await r(y.payload||y)}}}return s()}return i.finally(()=>o.cancel()),s()})}function tie(e){return e&&typeof e.getReader==\"function\"}function nie(e,t){const n=e.body;if(n){if(rc(n)){const r=Zre(n);return t?E6(r,t):r}if(tie(n))return eie(n)}throw new Error(\"Response body is expected to be a readable stream but got; \"+Sr(n))}async function rie(e,t){const n=e.headers[\"content-type\"];if(!n||!~n.indexOf(\"multipart/mixed\"))return e;const r=n.indexOf(\"boundary=\"),i=r+9,o=n.indexOf(\";\",i);return async function*(s,l,c){const f=!c||!c.multiple;let h=Buffer.byteLength(l),g=Buffer.alloc(0),m=!0,y=[];e:for await(const S of s){const x=S.indexOf(l);let D=g.byteLength;for(g=Buffer.concat([g,S]),~x?D+=x:D=g.indexOf(l),y=[];~D;){const _=g.slice(0,D),b=g.slice(D+h);if(m)m=!1,l=`\\r\n`+l,h+=2;else{const C={},T=_.indexOf(`\\r\n\\r\n`)+4,N=String(g.slice(0,T)).trim().split(`\\r\n`);let F;for(;F=N.shift();)F=F.split(\": \"),C[F.shift().toLowerCase()]=F.join(\": \");const L=_.lastIndexOf(`\\r\n`,T);let A=_.slice(T,L>-1?void 0:L),P=!1;if(F=C[\"content-type\"],F&&~F.indexOf(\"application/json\"))try{A=JSON.parse(String(A)),P=!0}catch{}if(F={headers:C,body:A,json:P},f?yield F:y.push(F),b[0]===45&&b[1]===45)break e}g=b,D=g.indexOf(l)}y.length&&(yield y)}y.length&&(yield y)}(e,`--${~r?n.substring(i,o>-1?o:void 0).replace(/['\"]/g,\"\").trim():\"-\"}`,t)}var iie=new TextDecoder;async function oie(e,t){if(!e.ok||!e.body||e.bodyUsed)return e;const n=e.headers.get(\"content-type\");if(!n||!~n.indexOf(\"multipart/mixed\"))return e;const r=n.indexOf(\"boundary=\"),i=r+9,o=n.indexOf(\";\",i);return async function*(s,l,c){const f=s.getReader(),h=!c||!c.multiple;let g=l.length,m=\"\",y=!0,S=[];try{let x;e:for(;!(x=await f.read()).done;){const D=iie.decode(x.value),_=D.indexOf(l);let b=m.length;for(m+=D,~_?b+=_:b=m.indexOf(l),S=[];~b;){const C=m.substring(0,b),T=m.substring(b+g);if(y)y=!1,l=`\\r\n`+l,g+=2;else{const N={},F=C.indexOf(`\\r\n\\r\n`)+4,L=String(m.slice(0,F)).trim().split(`\\r\n`);let A;for(;A=L.shift();)A=A.split(\": \"),N[A.shift().toLowerCase()]=A.join(\": \");const P=C.lastIndexOf(`\\r\n`,F);let V=C.substring(F,P>-1?void 0:P),H=!1;if(A=N[\"content-type\"],A&&~A.indexOf(\"application/json\"))try{V=JSON.parse(V),H=!0}catch{}if(A={headers:N,body:V,json:H},h?yield A:S.push(A),T.substring(0,2)===\"--\")break e}m=T,b=m.indexOf(l)}S.length&&(yield S)}}finally{S.length&&(yield S),await f.cancel()}}(e.body,`--${~r?n.substring(i,o>-1?o:void 0).replace(/['\"]/g,\"\").trim():\"-\"}`,t)}function hk(e,t,n){if(typeof e==\"object\"&&typeof t==\"object\"){if(Array.isArray(e)&&Array.isArray(t))for(n=0;n<t.length;n++)e[n]=hk(e[n],t[n]);else for(n in t){if(n===\"__proto__\"||n===\"constructor\"||n===\"prototype\")break;e[n]=hk(e[n],t[n])}return e}return t}function w6(e,t,n){t.split&&(t=t.split(\".\"));for(var r=0,i=t.length,o=e,s,l;r<i&&(l=t[r++],!(l===\"__proto__\"||l===\"constructor\"||l===\"prototype\"));)o=o[l]=r===i?hk(o[l],n):typeof(s=o[l])==typeof t?s:t[r]*0!==0||~(\"\"+t[r]).indexOf(\".\")?{}:[]}function aie(e){return e!=null&&typeof e==\"object\"&&\"pipe\"in e}async function sie(e,t){const n=e.body,r=e.headers.get(\"content-type\")||\"\";let i;if(aie(n)){n.headers={\"content-type\":r};const c=await rie(n);\"next\"in c&&(i=c)}else{const c=await oie(e);\"next\"in c&&(i=c)}const o={};function s(c){if(c.path){const f=[\"data\",...c.path];if(o.data=o.data||{},c.items)for(const h of c.items)w6(o,f,h);c.data&&w6(o,[\"data\",...c.path],c.data)}else c.data&&(o.data=o.data||{},Object.assign(o.data,c.data));c.errors&&(o.errors=o.errors||[],o.errors.push(...c.errors)),c.incremental&&c.incremental.forEach(s)}if(i==null)return o;const l=Yx(i,c=>{if(c.json){const f=c.body;return s(f),o}});return t?E6(l,t):l}function lie(e){const t=n=>{var r,i,o,s,l,c,f;const h=(o=(i=(r=n.extensions)===null||r===void 0?void 0:r.fetch)!==null&&i!==void 0?i:e==null?void 0:e.fetch)!==null&&o!==void 0?o:f6;let g,m=((s=n.extensions)===null||s===void 0?void 0:s.method)||(e==null?void 0:e.method)||\"POST\";const y=xs(n),S=y.operation;(e!=null&&e.useGETForQueries||!((l=n.extensions)===null||l===void 0)&&l.useGETForQueries)&&S===\"query\"&&(m=\"GET\");let x=\"application/graphql-response+json, application/json, multipart/mixed\";(S===\"subscription\"||y6(y))&&(m=\"GET\",x=\"text/event-stream\");const D=((c=n.extensions)===null||c===void 0?void 0:c.endpoint)||(e==null?void 0:e.endpoint)||\"/graphql\",_=Object.assign({accept:x},(typeof(e==null?void 0:e.headers)==\"function\"?e.headers(n):e==null?void 0:e.headers)||{},((f=n.extensions)===null||f===void 0?void 0:f.headers)||{}),C={query:gt(n.document),variables:n.variables,operationName:n.operationName,extensions:n.extensions};let T;return e!=null&&e.timeout&&(g=new gre,T=setTimeout(()=>{g!=null&&g.signal.aborted||g==null||g.abort()},e.timeout)),new hn(()=>{switch(m){case\"GET\":{const N=qre({baseUrl:D,...C});return h(N,{method:\"GET\",...(e==null?void 0:e.credentials)!=null?{credentials:e.credentials}:{},headers:_,signal:g==null?void 0:g.signal},n.context,n.info)}case\"POST\":return new hn(()=>Kre(C,{File:e==null?void 0:e.File,FormData:e==null?void 0:e.FormData})).then(N=>h(D,{method:\"POST\",...(e==null?void 0:e.credentials)!=null?{credentials:e.credentials}:{},body:N,headers:{..._,...typeof N==\"string\"?{\"content-type\":\"application/json\"}:{}},signal:g==null?void 0:g.signal},n.context,n.info)).resolve()}}).then(N=>{if(T!=null&&clearTimeout(T),(e==null?void 0:e.retry)!=null&&!N.status.toString().startsWith(\"2\"))throw new Error(N.statusText||`HTTP Error: ${N.status}`);const F=N.headers.get(\"content-type\");return F!=null&&F.includes(\"text/event-stream\")?nie(N,g):F!=null&&F.includes(\"multipart/mixed\")?sie(N,g):N.text()}).then(N=>{if(typeof N==\"string\"){if(N)return JSON.parse(N)}else return N}).catch(N=>typeof N==\"string\"?{errors:[Ct(N,{extensions:{requestBody:C}})]}:N.name===\"GraphQLError\"?{errors:[N]}:N.name===\"TypeError\"&&N.message===\"fetch failed\"?{errors:[Ct(`fetch failed to ${D}`,{extensions:{requestBody:C},originalError:N})]}:N.message?{errors:[Ct(N.message,{extensions:{requestBody:C},originalError:N})]}:{errors:[Ct(\"Unknown error\",{extensions:{requestBody:C},originalError:N})]}).resolve()};return(e==null?void 0:e.retry)!=null?function(r){let i,o=0;function s(){return o++,o>e.retry?i??{errors:[Ct(\"No response returned from fetch\")]}:new hn(()=>t(r)).then(l=>{var c;return i=l,!((c=i==null?void 0:i.errors)===null||c===void 0)&&c.length?s():i}).resolve()}return s()}:t}var Io;(function(e){e.CONNECTION_INIT=\"connection_init\",e.CONNECTION_ACK=\"connection_ack\",e.CONNECTION_ERROR=\"connection_error\",e.CONNECTION_KEEP_ALIVE=\"ka\",e.START=\"start\",e.STOP=\"stop\",e.CONNECTION_TERMINATE=\"connection_terminate\",e.DATA=\"data\",e.ERROR=\"error\",e.COMPLETE=\"complete\"})(Io||(Io={}));function uie(e,t,n){const r=new Map;let i=null;const o=()=>{i=new t(e,\"graphql-ws\",{followRedirects:!0,headers:n==null?void 0:n.headers,rejectUnauthorized:!1,skipUTF8Validation:!0}),i.onopen=()=>{let l={};switch(typeof(n==null?void 0:n.connectionParams)){case\"function\":l=n==null?void 0:n.connectionParams();break;case\"object\":l=n==null?void 0:n.connectionParams;break}i.send(JSON.stringify({type:Io.CONNECTION_INIT,payload:l}))}},s=()=>{i!=null&&r.size===0&&(i.send(JSON.stringify({type:Io.CONNECTION_TERMINATE})),i.terminate(),i=null)};return function(c){const f=Date.now().toString();return Ste({subscribe(h){if(o(),i==null)throw new Error(\"WebSocket connection is not found!\");return i.onmessage=g=>{const m=JSON.parse(g.data.toString(\"utf-8\"));switch(m.type){case Io.CONNECTION_ACK:{if(i==null)throw new Error(\"WebSocket connection is not found!\");i.send(JSON.stringify({type:Io.START,id:f,payload:{query:gt(c.document),variables:c.variables,operationName:c.operationName}}));break}case Io.CONNECTION_ERROR:{h.error(m.payload);break}case Io.CONNECTION_KEEP_ALIVE:break;case Io.DATA:{h.next(m.payload);break}case Io.COMPLETE:{if(i==null)throw new Error(\"WebSocket connection is not found!\");i.send(JSON.stringify({type:Io.CONNECTION_TERMINATE})),h.complete(),s();break}}},{unsubscribe:()=>{i==null||i.send(JSON.stringify({type:Io.STOP,id:f})),s()}}}})}}const vk=e=>import(e),S6=e=>require(e);var sc;(function(e){e.WS=\"WS\",e.LEGACY_WS=\"LEGACY_WS\",e.SSE=\"SSE\",e.GRAPHQL_SSE=\"GRAPHQL_SSE\"})(sc||(sc={}));function T6(e){try{return new URL(e),!0}catch{return!1}}class cie{buildHTTPExecutor(t,n,r){const i=mk(t,{wss:\"https\",ws:\"http\"});return lie({endpoint:i,fetch:n,...r})}buildWSExecutor(t,n,r){const i=mk(t,{https:\"wss\",http:\"ws\"});return Ure({url:i,webSocketImpl:n,connectionParams:r})}buildWSLegacyExecutor(t,n,r){const i=mk(t,{https:\"wss\",http:\"ws\"});return uie(i,n,r)}getFetch(t,n){if(t){if(typeof t==\"string\"){const[r,i]=t.split(\"#\");return new hn(()=>n(r)).then(o=>i?o[i]:o).resolve()}else if(typeof t==\"function\")return t}return n===vk?bre:Cre}getDefaultMethodFromOptions(t,n){return t&&(n=t),n}getWebSocketImpl(t,n){if(typeof(n==null?void 0:n.webSocketImpl)==\"string\"){const[r,i]=n.webSocketImpl.split(\"#\");return new hn(()=>t(r)).then(o=>i?o[i]:o).resolve()}else return(n==null?void 0:n.webSocketImpl)||c6}buildSubscriptionExecutor(t,n,r,i){if((i==null?void 0:i.subscriptionsProtocol)===sc.SSE)return this.buildHTTPExecutor(t,n,i);if((i==null?void 0:i.subscriptionsProtocol)===sc.GRAPHQL_SSE)return i!=null&&i.subscriptionsEndpoint||(t+=\"/stream\"),this.buildHTTPExecutor(t,n,i);{const s=new hn(()=>this.getWebSocketImpl(r,i)).then(l=>(i==null?void 0:i.subscriptionsProtocol)===sc.LEGACY_WS?this.buildWSLegacyExecutor(t,l,i):this.buildWSExecutor(t,l,i==null?void 0:i.connectionParams));return l=>s.then(c=>c(l)).resolve()}}getExecutor(t,n,r){const i=new hn(()=>this.getFetch(r==null?void 0:r.customFetch,n)),o=i.then(s=>this.buildHTTPExecutor(t,s,r));if((r==null?void 0:r.subscriptionsEndpoint)!=null||(r==null?void 0:r.subscriptionsProtocol)!==sc.SSE){let l=function(c){var f;return c.operationType=c.operationType||((f=xs(c))===null||f===void 0?void 0:f.operation),c.operationType===\"subscription\"&&y6(xs(c))&&(c.operationType=\"subscription\"),c.operationType===\"subscription\"?s:o};const s=i.then(c=>{const f=(r==null?void 0:r.subscriptionsEndpoint)||t;return this.buildSubscriptionExecutor(f,c,n,r)});return c=>l(c).then(f=>f(c)).resolve()}else return s=>o.then(l=>l(s)).resolve()}getExecutorAsync(t,n){return this.getExecutor(t,vk,n)}getExecutorSync(t,n){return this.getExecutor(t,S6,n)}handleSDL(t,n,r){const i=this.getDefaultMethodFromOptions(r==null?void 0:r.method,\"GET\");return new hn(()=>n(t,{method:i,headers:typeof(r==null?void 0:r.headers)==\"function\"?r.headers():r==null?void 0:r.headers})).then(o=>o.text()).then(o=>ote(t,o,r)).resolve()}async load(t,n){if(!T6(t))return[];let r={location:t},i;if(n!=null&&n.handleAsSDL||t.endsWith(\".graphql\")||t.endsWith(\".graphqls\")){const o=await this.getFetch(n==null?void 0:n.customFetch,vk);if(r=await this.handleSDL(t,o,n),!r.schema&&!r.document&&!r.rawSDL)throw new Error(\"Invalid SDL response\");r.schema=r.schema||(r.document?wy(r.document,n):r.rawSDL?wT(r.rawSDL,n):void 0)}else i=this.getExecutorAsync(t,n),r.schema=await u6(i,{},n);if(!r.schema)throw new Error(\"Invalid introspected schema\");return n!=null&&n.endpoint&&(i=this.getExecutorAsync(n.endpoint,n)),i&&(r.schema=l6({schema:r.schema,executor:i,batch:n==null?void 0:n.batch})),[r]}loadSync(t,n){if(!T6(t))return[];let r={location:t},i;if(n!=null&&n.handleAsSDL||t.endsWith(\".graphql\")||t.endsWith(\".graphqls\")){const o=this.getFetch(n==null?void 0:n.customFetch,S6);if(r=this.handleSDL(t,o,n),!r.schema&&!r.document&&!r.rawSDL)throw new Error(\"Invalid SDL response\");r.schema=r.schema||(r.document?wy(r.document,n):r.rawSDL?wT(r.rawSDL,n):void 0)}else i=this.getExecutorSync(t,n),r.schema=u6(i,{},n);if(!r.schema)throw new Error(\"Invalid introspected schema\");return n!=null&&n.endpoint&&(i=this.getExecutorSync(n.endpoint,n)),i&&(r.schema=l6({schema:r.schema,executor:i})),[r]}}function mk(e,t){return Object.entries(t).reduce((n,[r,i])=>n.replace(`${r}://`,`${i}://`).replace(`${r}:\\\\`,`${i}:\\\\`),e)}var gk=globalThis&&globalThis.__assign||function(){return gk=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},gk.apply(this,arguments)},fie=globalThis&&globalThis.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==\"function\")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},yk=globalThis&&globalThis.__read||function(e,t){var n=typeof Symbol==\"function\"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(l){s={error:l}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o},die=parseInt(oe.version.slice(0,2),10);if(die<16)throw Error([\"GraphiQL 0.18.0 and after is not compatible with React 15 or below.\",\"If you are using a CDN source (jsdelivr, unpkg, etc), follow this example:\",\"https://github.com/graphql/graphiql/blob/master/examples/graphiql-cdn/index.html#L49\"].join(`\n`));function ql(e){var t=e.dangerouslyAssumeSchemaIsValid,n=e.defaultQuery,r=e.externalFragments,i=e.fetcher,o=e.getDefaultFieldNames,s=e.headers,l=e.inputValueDeprecation,c=e.introspectionQueryName,f=e.maxHistoryLength,h=e.onEditOperationName,g=e.onSchemaChange,m=e.onTabChange,y=e.onTogglePluginVisibility,S=e.operationName,x=e.plugins,D=e.query,_=e.response,b=e.schema,C=e.schemaDescription,T=e.shouldPersistHeaders,N=e.storage,F=e.validationRules,L=e.variables,A=e.visiblePlugin,P=fie(e,[\"dangerouslyAssumeSchemaIsValid\",\"defaultQuery\",\"externalFragments\",\"fetcher\",\"getDefaultFieldNames\",\"headers\",\"inputValueDeprecation\",\"introspectionQueryName\",\"maxHistoryLength\",\"onEditOperationName\",\"onSchemaChange\",\"onTabChange\",\"onTogglePluginVisibility\",\"operationName\",\"plugins\",\"query\",\"response\",\"schema\",\"schemaDescription\",\"shouldPersistHeaders\",\"storage\",\"validationRules\",\"variables\",\"visiblePlugin\"]);if(typeof i!=\"function\")throw new TypeError(\"The `GraphiQL` component requires a `fetcher` function to be passed as prop.\");return oe.createElement(f1,{getDefaultFieldNames:o,dangerouslyAssumeSchemaIsValid:t,defaultQuery:n,externalFragments:r,fetcher:i,headers:s,inputValueDeprecation:l,introspectionQueryName:c,maxHistoryLength:f,onEditOperationName:h,onSchemaChange:g,onTabChange:m,onTogglePluginVisibility:y,plugins:x,visiblePlugin:A,operationName:S,query:D,response:_,schema:b,schemaDescription:C,shouldPersistHeaders:T,storage:N,validationRules:F,variables:L},oe.createElement(_6,gk({},P)))}ql.Logo=C6,ql.Toolbar=x6,ql.Footer=k6;function _6(e){var t,n,r,i=(t=e.isHeadersEditorEnabled)!==null&&t!==void 0?t:!0,o=Pr({nonNull:!0}),s=Rf({nonNull:!0}),l=la({nonNull:!0}),c=Tl(),f=Z0(),h=Jh({onCopyQuery:e.onCopyQuery}),g=$l(),m=Zu(),y=Px(),S=y.theme,x=y.setTheme,D=(n=f==null?void 0:f.visiblePlugin)===null||n===void 0?void 0:n.content,_=iv({defaultSizeRelation:1/3,direction:\"horizontal\",initiallyHidden:f!=null&&f.visiblePlugin?void 0:\"first\",onHiddenElementChange:function(re){re===\"first\"&&(f==null||f.setVisiblePlugin(null))},sizeThresholdSecond:200,storageKey:\"docExplorerFlex\"}),b=iv({direction:\"horizontal\",storageKey:\"editorFlex\"}),C=iv({defaultSizeRelation:3,direction:\"vertical\",initiallyHidden:function(){if(!(e.defaultEditorToolsVisibility===\"variables\"||e.defaultEditorToolsVisibility===\"headers\"))return typeof e.defaultEditorToolsVisibility==\"boolean\"?e.defaultEditorToolsVisibility?void 0:\"second\":o.initialVariables||o.initialHeaders?void 0:\"second\"}(),sizeThresholdSecond:60,storageKey:\"secondaryEditorFlex\"}),T=yk(O.useState(function(){return e.defaultEditorToolsVisibility===\"variables\"||e.defaultEditorToolsVisibility===\"headers\"?e.defaultEditorToolsVisibility:!o.initialVariables&&o.initialHeaders&&i?\"headers\":\"variables\"}),2),N=T[0],F=T[1],L=yk(O.useState(null),2),A=L[0],P=L[1],V=yk(O.useState(null),2),H=V[0],G=V[1],z=oe.Children.toArray(e.children),U=z.find(function(re){return bk(re,ql.Logo)})||oe.createElement(ql.Logo,null),j=z.find(function(re){return bk(re,ql.Toolbar)})||oe.createElement(oe.Fragment,null,oe.createElement(h1,{onClick:function(){return m()},label:\"Prettify query (Shift-Ctrl-P)\"},oe.createElement(eW,{className:\"graphiql-toolbar-icon\",\"aria-hidden\":\"true\"})),oe.createElement(h1,{onClick:function(){return g()},label:\"Merge fragments into query (Shift-Ctrl-M)\"},oe.createElement(KG,{className:\"graphiql-toolbar-icon\",\"aria-hidden\":\"true\"})),oe.createElement(h1,{onClick:function(){return h()},label:\"Copy query (Shift-Ctrl-C)\"},oe.createElement($G,{className:\"graphiql-toolbar-icon\",\"aria-hidden\":\"true\"})),!((r=e.toolbar)===null||r===void 0)&&r.additionalContent?e.toolbar.additionalContent:null),X=z.find(function(re){return bk(re,ql.Footer)}),ne=function(){_.hiddenElement===\"first\"&&_.setHiddenElement(null)},J=window.navigator.platform.toLowerCase().indexOf(\"mac\")===0?oe.createElement(\"code\",{className:\"graphiql-key\"},\"Cmd\"):oe.createElement(\"code\",{className:\"graphiql-key\"},\"Ctrl\");return oe.createElement(\"div\",{\"data-testid\":\"graphiql-container\",className:\"graphiql-container\"},oe.createElement(\"div\",{className:\"graphiql-sidebar\"},oe.createElement(\"div\",null,f?f==null?void 0:f.plugins.map(function(re){var Z=re===f.visiblePlugin,de=\"\".concat(Z?\"Hide\":\"Show\",\" \").concat(re.title),K=re.icon;return oe.createElement(vi,{key:re.title,label:de},oe.createElement(ir,{type:\"button\",className:Z?\"active\":\"\",onClick:function(){Z?(f.setVisiblePlugin(null),_.setHiddenElement(\"first\")):(f.setVisiblePlugin(re),_.setHiddenElement(null))},\"aria-label\":de},oe.createElement(K,{\"aria-hidden\":\"true\"})))}):null),oe.createElement(\"div\",null,oe.createElement(vi,{label:\"Re-fetch GraphQL schema\"},oe.createElement(ir,{type:\"button\",disabled:l.isFetching,onClick:function(){return l.introspect()},\"aria-label\":\"Re-fetch GraphQL schema\"},oe.createElement(tW,{className:l.isFetching?\"graphiql-spin\":\"\",\"aria-hidden\":\"true\"}))),oe.createElement(vi,{label:\"Open short keys dialog\"},oe.createElement(ir,{type:\"button\",onClick:function(){return P(\"short-keys\")},\"aria-label\":\"Open short keys dialog\"},oe.createElement(YG,{\"aria-hidden\":\"true\"}))),oe.createElement(vi,{label:\"Open settings dialog\"},oe.createElement(ir,{type:\"button\",onClick:function(){return P(\"settings\")},\"aria-label\":\"Open settings dialog\"},oe.createElement(rW,{\"aria-hidden\":\"true\"}))))),oe.createElement(\"div\",{className:\"graphiql-main\"},oe.createElement(\"div\",{ref:_.firstRef,style:{minWidth:\"200px\"}},oe.createElement(\"div\",{className:\"graphiql-plugin\"},D?oe.createElement(D,null):null)),oe.createElement(\"div\",{ref:_.dragBarRef},f!=null&&f.visiblePlugin?oe.createElement(\"div\",{className:\"graphiql-horizontal-drag-bar\"}):null),oe.createElement(\"div\",{ref:_.secondRef},oe.createElement(\"div\",{className:\"graphiql-sessions\"},oe.createElement(\"div\",{className:\"graphiql-session-header\"},oe.createElement(c4,{\"aria-label\":\"Select active operation\"},o.tabs.length>1?oe.createElement(oe.Fragment,null,o.tabs.map(function(re,Z){return oe.createElement(UC,{key:re.id,isActive:Z===o.activeTabIndex},oe.createElement(UC.Button,{\"aria-controls\":\"graphiql-session\",id:\"graphiql-session-tab-\".concat(Z),onClick:function(){s.stop(),o.changeTab(Z)}},re.title),oe.createElement(UC.Close,{onClick:function(){o.activeTabIndex===Z&&s.stop(),o.closeTab(Z)}}))}),oe.createElement(\"div\",null,oe.createElement(vi,{label:\"Add tab\"},oe.createElement(ir,{type:\"button\",className:\"graphiql-tab-add\",onClick:function(){return o.addTab()},\"aria-label\":\"Add tab\"},oe.createElement(R5,{\"aria-hidden\":\"true\"}))))):null),oe.createElement(\"div\",{className:\"graphiql-session-header-right\"},o.tabs.length===1?oe.createElement(\"div\",{className:\"graphiql-add-tab-wrapper\"},oe.createElement(vi,{label:\"Add tab\"},oe.createElement(ir,{type:\"button\",className:\"graphiql-tab-add\",onClick:function(){return o.addTab()},\"aria-label\":\"Add tab\"},oe.createElement(R5,{\"aria-hidden\":\"true\"})))):null,U)),oe.createElement(\"div\",{role:\"tabpanel\",id:\"graphiql-session\",className:\"graphiql-session\",\"aria-labelledby\":\"graphiql-session-tab-\".concat(o.activeTabIndex)},oe.createElement(\"div\",{ref:b.firstRef},oe.createElement(\"div\",{className:\"graphiql-editors\".concat(o.tabs.length===1?\" full-height\":\"\")},oe.createElement(\"div\",{ref:C.firstRef},oe.createElement(\"section\",{className:\"graphiql-query-editor\",\"aria-label\":\"Query Editor\"},oe.createElement(\"div\",{className:\"graphiql-query-editor-wrapper\"},oe.createElement(u1,{editorTheme:e.editorTheme,keyMap:e.keyMap,onClickReference:ne,onCopyQuery:e.onCopyQuery,onEdit:e.onEditQuery,readOnly:e.readOnly})),oe.createElement(\"div\",{className:\"graphiql-toolbar\",role:\"toolbar\",\"aria-label\":\"Editor Commands\"},oe.createElement(ov,null),j))),oe.createElement(\"div\",{ref:C.dragBarRef},oe.createElement(\"div\",{className:\"graphiql-editor-tools\"},oe.createElement(\"div\",{className:\"graphiql-editor-tools-tabs\"},oe.createElement(ir,{type:\"button\",className:N===\"variables\"?\"active\":\"\",onClick:function(){C.hiddenElement===\"second\"&&C.setHiddenElement(null),F(\"variables\")}},\"Variables\"),i?oe.createElement(ir,{type:\"button\",className:N===\"headers\"?\"active\":\"\",onClick:function(){C.hiddenElement===\"second\"&&C.setHiddenElement(null),F(\"headers\")}},\"Headers\"):null),oe.createElement(vi,{label:C.hiddenElement===\"second\"?\"Show editor tools\":\"Hide editor tools\"},oe.createElement(ir,{type:\"button\",onClick:function(){C.setHiddenElement(C.hiddenElement===\"second\"?null:\"second\")},\"aria-label\":C.hiddenElement===\"second\"?\"Show editor tools\":\"Hide editor tools\"},C.hiddenElement===\"second\"?oe.createElement(MG,{className:\"graphiql-chevron-icon\",\"aria-hidden\":\"true\"}):oe.createElement(RG,{className:\"graphiql-chevron-icon\",\"aria-hidden\":\"true\"}))))),oe.createElement(\"div\",{ref:C.secondRef},oe.createElement(\"section\",{className:\"graphiql-editor-tool\",\"aria-label\":N===\"variables\"?\"Variables\":\"Headers\"},oe.createElement(nv,{editorTheme:e.editorTheme,isHidden:N!==\"variables\",keyMap:e.keyMap,onEdit:e.onEditVariables,onClickReference:ne,readOnly:e.readOnly}),i&&oe.createElement(Zh,{editorTheme:e.editorTheme,isHidden:N!==\"headers\",keyMap:e.keyMap,onEdit:e.onEditHeaders,readOnly:e.readOnly}))))),oe.createElement(\"div\",{ref:b.dragBarRef},oe.createElement(\"div\",{className:\"graphiql-horizontal-drag-bar\"})),oe.createElement(\"div\",{ref:b.secondRef},oe.createElement(\"div\",{className:\"graphiql-response\"},s.isFetching?oe.createElement(MC,null):null,oe.createElement(c1,{editorTheme:e.editorTheme,responseTooltip:e.responseTooltip,keyMap:e.keyMap}),X)))))),oe.createElement(Qy,{isOpen:A===\"short-keys\",onDismiss:function(){return P(null)}},oe.createElement(\"div\",{className:\"graphiql-dialog-header\"},oe.createElement(\"div\",{className:\"graphiql-dialog-title\"},\"Short Keys\"),oe.createElement(Qy.Close,{onClick:function(){return P(null)}})),oe.createElement(\"div\",{className:\"graphiql-dialog-section\"},oe.createElement(\"div\",null,oe.createElement(\"table\",{className:\"graphiql-table\"},oe.createElement(\"thead\",null,oe.createElement(\"tr\",null,oe.createElement(\"th\",null,\"Short key\"),oe.createElement(\"th\",null,\"Function\"))),oe.createElement(\"tbody\",null,oe.createElement(\"tr\",null,oe.createElement(\"td\",null,J,\" + \",oe.createElement(\"code\",{className:\"graphiql-key\"},\"F\")),oe.createElement(\"td\",null,\"Search in editor\")),oe.createElement(\"tr\",null,oe.createElement(\"td\",null,J,\" + \",oe.createElement(\"code\",{className:\"graphiql-key\"},\"K\")),oe.createElement(\"td\",null,\"Search in documentation\")),oe.createElement(\"tr\",null,oe.createElement(\"td\",null,J,\" + \",oe.createElement(\"code\",{className:\"graphiql-key\"},\"Enter\")),oe.createElement(\"td\",null,\"Execute query\")),oe.createElement(\"tr\",null,oe.createElement(\"td\",null,oe.createElement(\"code\",{className:\"graphiql-key\"},\"Ctrl\"),\" + \",oe.createElement(\"code\",{className:\"graphiql-key\"},\"Shift\"),\" + \",oe.createElement(\"code\",{className:\"graphiql-key\"},\"P\")),oe.createElement(\"td\",null,\"Prettify editors\")),oe.createElement(\"tr\",null,oe.createElement(\"td\",null,oe.createElement(\"code\",{className:\"graphiql-key\"},\"Ctrl\"),\" + \",oe.createElement(\"code\",{className:\"graphiql-key\"},\"Shift\"),\" + \",oe.createElement(\"code\",{className:\"graphiql-key\"},\"M\")),oe.createElement(\"td\",null,\"Merge fragments definitions into operation definition\")),oe.createElement(\"tr\",null,oe.createElement(\"td\",null,oe.createElement(\"code\",{className:\"graphiql-key\"},\"Ctrl\"),\" + \",oe.createElement(\"code\",{className:\"graphiql-key\"},\"Shift\"),\" + \",oe.createElement(\"code\",{className:\"graphiql-key\"},\"C\")),oe.createElement(\"td\",null,\"Copy query\")),oe.createElement(\"tr\",null,oe.createElement(\"td\",null,oe.createElement(\"code\",{className:\"graphiql-key\"},\"Ctrl\"),\" + \",oe.createElement(\"code\",{className:\"graphiql-key\"},\"Shift\"),\" + \",oe.createElement(\"code\",{className:\"graphiql-key\"},\"R\")),oe.createElement(\"td\",null,\"Re-fetch schema using introspection\")))),oe.createElement(\"p\",null,\"The editors use\",\" \",oe.createElement(\"a\",{href:\"https://codemirror.net/5/doc/manual.html#keymaps\",target:\"_blank\",rel:\"noopener noreferrer\"},\"CodeMirror Key Maps\"),\" \",\"that add more short keys. This instance of Graph\",oe.createElement(\"em\",null,\"i\"),\"QL uses\",\" \",oe.createElement(\"code\",null,e.keyMap||\"sublime\"),\".\")))),oe.createElement(Qy,{isOpen:A===\"settings\",onDismiss:function(){P(null),G(null)}},oe.createElement(\"div\",{className:\"graphiql-dialog-header\"},oe.createElement(\"div\",{className:\"graphiql-dialog-title\"},\"Settings\"),oe.createElement(Qy.Close,{onClick:function(){P(null),G(null)}})),oe.createElement(\"div\",{className:\"graphiql-dialog-section\"},oe.createElement(\"div\",null,oe.createElement(\"div\",{className:\"graphiql-dialog-section-title\"},\"Theme\"),oe.createElement(\"div\",{className:\"graphiql-dialog-section-caption\"},\"Adjust how the interface looks like.\")),oe.createElement(\"div\",null,oe.createElement(P5,null,oe.createElement(Cl,{type:\"button\",className:S===null?\"active\":\"\",onClick:function(){return x(null)}},\"System\"),oe.createElement(Cl,{type:\"button\",className:S===\"light\"?\"active\":\"\",onClick:function(){return x(\"light\")}},\"Light\"),oe.createElement(Cl,{type:\"button\",className:S===\"dark\"?\"active\":\"\",onClick:function(){return x(\"dark\")}},\"Dark\")))),c?oe.createElement(\"div\",{className:\"graphiql-dialog-section\"},oe.createElement(\"div\",null,oe.createElement(\"div\",{className:\"graphiql-dialog-section-title\"},\"Clear storage\"),oe.createElement(\"div\",{className:\"graphiql-dialog-section-caption\"},\"Remove all locally stored data and start fresh.\")),oe.createElement(\"div\",null,oe.createElement(Cl,{type:\"button\",state:H||void 0,disabled:H===\"success\",onClick:function(){try{c==null||c.clear(),G(\"success\")}catch{G(\"error\")}}},H===\"success\"?\"Cleared data\":H===\"error\"?\"Failed\":\"Clear data\"))):null))}function C6(e){return oe.createElement(\"div\",{className:\"graphiql-logo\"},e.children||oe.createElement(\"a\",{className:\"graphiql-logo-link\",href:\"https://github.com/graphql/graphiql\",target:\"_blank\",rel:\"noreferrer\"},\"Graph\",oe.createElement(\"em\",null,\"i\"),\"QL\"))}C6.displayName=\"GraphiQLLogo\";function x6(e){return oe.createElement(oe.Fragment,null,e.children)}x6.displayName=\"GraphiQLToolbar\";function k6(e){return oe.createElement(\"div\",{className:\"graphiql-footer\"},e.children)}k6.displayName=\"GraphiQLFooter\";function bk(e,t){var n;return!((n=e==null?void 0:e.type)===null||n===void 0)&&n.displayName&&e.type.displayName===t.displayName?!0:e.type===t}const $1=function(){},Ek={popstate:[]};let pie={URL:function(){return{searchParams:{set:$1,append:$1,delete:$1}}},location:{href:\"\",search:\"\"},history:{pushState:$1},fireEvent:function(e){Ek[e].forEach(t=>{t()})},addEventListener:function(e,t){Ek[e].push(t)},removeEventListener:function(e,t){const n=Ek[e],r=n.findIndex(i=>i===t);n.splice(r,1)}};function Hl(){return typeof window<\"u\"?window:pie}const N6=[Number,String,Boolean,Date];function hie(e){const{URL:t}=Hl(),n=new t(Hl().location.href);return Object.keys(e).forEach(r=>{const i=e[r];i!=null?Array.isArray(i)?(n.searchParams.delete(r),i.forEach(o=>{n.searchParams.append(r,o)})):i instanceof Date?isNaN(i.getTime())||n.searchParams.set(r,i.toISOString()):typeof i==\"object\"?n.searchParams.set(r,JSON.stringify(i)):n.searchParams.set(r,i):n.searchParams.delete(r)}),n}function vie(e){return Array.isArray(e)&&e.length>0&&e.every(t=>typeof t==\"number\"||typeof t==\"string\"||typeof t==\"boolean\")}function mie(e={}){if(!Object.values(e).every(n=>N6.includes(n)||vie(n)||typeof n==\"function\"))throw new Error(`Unsupported param types. Must be one of [${N6.map(n=>n.name).join(\", \")}]`)}function gie(e={},t={},n=!1){t&&mie(t);const[,r]=O.useState(),i=Hl().location.search,o=O.useMemo(()=>new URLSearchParams(i),[i]),s=O.useMemo(()=>{let f=[];o.forEach((g,m)=>{f.push({key:m,value:g})}),f=f.reduce((g,m)=>((g[m.key]=g[m.key]||[]).push(m),g),{}),f=Object.keys(f).map(g=>{const m=f[g];return m.length===1?[g,m[0].value]:[g,m.map(({value:y})=>y)]});const h=Object.assign({},e);return f.forEach(([g,m])=>{h[g]=bie(g,m,t,e)}),h},[o]);function l(f){const h=hie(f);Hl().location.search!==h.search&&(n?Hl().history.replaceState({},\"\",h.toString()):Hl().history.pushState({},\"\",h.toString())),o.toString()!==h.searchParams.toString()&&r({})}O.useEffect(()=>{l(Object.assign(Object.assign({},e),s))},[s]);const c=f=>{l(f)};return O.useEffect(()=>{const f=()=>{r({})};return Hl().addEventListener(\"popstate\",f),()=>{Hl().removeEventListener(\"popstate\",f)}},[]),[s,c]}const yie={true:!0,false:!1};function bie(e,t,n,r){if(!n)return t;const i=n[e],o=t===void 0?r[e]:t;return i===Number?Number(o):i===Boolean?yie[o]:i===Date?new Date(o):Array.isArray(i)?i.find(s=>s==o)||r[e]:typeof i==\"function\"?i(o):o}const Eie=()=>hr(\"svg\",{viewBox:\"0 0 90 90\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:[Ke(\"path\",{d:\"M21 25.35c.728 0 1.42.156 2.043.435l19.1-10.985c.9-.5 2-.8 3-.8 1.1 0 2.1.3 3 .8l16.4 9.5c-1.2.8-2.1 2-2.7 3.4l-15.9-9.2c-.3-.2-.599-.2-.899-.2-.3 0-.6.1-.9.2L25.823 29.025A5.005 5.005 0 0 1 21 35.35a5 5 0 0 1 0-10Z\",fill:\"url(#a)\"}),Ke(\"path\",{d:\"M67.244 35.033A5.002 5.002 0 0 1 69 25.35a5 5 0 0 1 2.544 9.305V55.2c0 2.2-1.2 4.2-3 5.3l-16.4 9.4c0-1.5-.5-3-1.4-4.1l15.6-9c.6-.3.9-.9.9-1.6V35.033Z\",fill:\"url(#b)\"}),Ke(\"path\",{d:\"M49.844 69.106a5 5 0 1 1-9.78 2.043L21.843 60.6c-1.9-1.1-3-3.1-3-5.3V36.8c.7.2 1.5.4 2.2.4.7 0 1.4-.1 2-.3v18.4c0 .7.4 1.3.9 1.6l17.382 10.058a5.002 5.002 0 0 1 8.516 2.14l.002.002v.006Z\",fill:\"url(#c)\"}),hr(\"mask\",{id:\"g\",style:{maskType:\"alpha\"},maskUnits:\"userSpaceOnUse\",x:16,y:14,width:58,height:62,children:[Ke(\"path\",{d:\"M21 25.35c.728 0 1.42.156 2.043.435l19.1-10.985c.9-.5 2-.8 3-.8 1.1 0 2.1.3 3 .8l16.4 9.5c-1.2.8-2.1 2-2.7 3.4l-15.9-9.2c-.3-.2-.599-.2-.899-.2-.3 0-.6.1-.9.2L25.823 29.025A5.005 5.005 0 0 1 21 35.35a5 5 0 0 1 0-10Z\",fill:\"url(#d)\"}),Ke(\"path\",{d:\"M67.244 35.033A5.002 5.002 0 0 1 69 25.35a5 5 0 0 1 2.544 9.305V55.2c0 2.2-1.2 4.2-3 5.3l-16.4 9.4c0-1.5-.5-3-1.4-4.1l15.6-9c.6-.3.9-.9.9-1.6V35.033Z\",fill:\"url(#e)\"}),Ke(\"path\",{d:\"M49.844 69.106a5 5 0 1 1-9.78 2.043L21.843 60.6c-1.9-1.1-3-3.1-3-5.3V36.8c.7.2 1.5.4 2.2.4.7 0 1.4-.1 2-.3v18.4c0 .7.4 1.3.9 1.6l17.382 10.058a5.002 5.002 0 0 1 8.516 2.14l.002.002v.006Z\",fill:\"url(#f)\"})]}),hr(\"g\",{mask:\"url(#g)\",children:[Ke(\"g\",{filter:\"url(#h)\",children:Ke(\"circle\",{cx:73,cy:25,r:26,fill:\"#ED2E7E\"})}),Ke(\"g\",{filter:\"url(#i)\",children:Ke(\"circle\",{cx:26,cy:69,r:26,fill:\"#1CC8EE\"})})]}),Ke(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M49.395 32.395c0 2.314-1.815 6.152-4.395 6.152-2.573 0-4.395-3.836-4.395-6.152A4.4 4.4 0 0 1 45 28a4.4 4.4 0 0 1 4.395 4.395ZM35.331 49.043v-.828c0-5.403 2.521-7.215 4.548-8.67.513-.368.98-.705 1.369-1.07 1.08 1.19 2.377 1.83 3.751 1.83 1.375 0 2.672-.64 3.753-1.83.388.366.855.702 1.367 1.07 2.027 1.455 4.548 3.267 4.548 8.67v.828l-.827.049c-3.856.227-6.976-2.192-8.841-5.514-1.884 3.357-5.015 5.74-8.84 5.514l-.828-.049Zm22.814 2.032c-1.128-.184-8.133-1.324-13.145 4.618-4.99-5.938-11.804-4.834-13.091-4.625a1.74 1.74 0 0 1-.21.028l.002.023c.024.281.266 3.156 2.355 5.123L30 58h30l-4.104-1.758c1.958-1.766 2.244-3.973 2.355-4.833.019-.146.033-.253.049-.313a1.388 1.388 0 0 1-.154-.021Zm-17.662-.971c1.912-.783 3.19-1.93 4.516-3.494 1.332 1.574 2.616 2.716 4.516 3.494l.06.114.01.021c-1.495.574-3.16 1.586-4.581 2.905-1.414-1.322-3.038-2.324-4.58-2.929l.059-.111Z\",fill:\"url(#j)\"}),Ke(\"mask\",{id:\"k\",style:{maskType:\"alpha\"},maskUnits:\"userSpaceOnUse\",x:30,y:28,width:30,height:30,children:Ke(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M49.395 32.395c0 2.314-1.815 6.152-4.395 6.152-2.573 0-4.395-3.836-4.395-6.152A4.4 4.4 0 0 1 45 28a4.4 4.4 0 0 1 4.395 4.395ZM35.331 49.043v-.828c0-5.403 2.521-7.215 4.548-8.67.513-.368.98-.705 1.369-1.07 1.08 1.19 2.377 1.83 3.751 1.83 1.375 0 2.672-.64 3.753-1.83.388.366.855.702 1.367 1.07 2.027 1.455 4.548 3.267 4.548 8.67v.828l-.827.049c-3.856.227-6.976-2.192-8.841-5.514-1.884 3.357-5.015 5.74-8.84 5.514l-.828-.049Zm22.814 2.032c-1.128-.184-8.133-1.324-13.145 4.618-4.99-5.938-11.804-4.834-13.091-4.625a1.74 1.74 0 0 1-.21.028l.002.023c.024.281.266 3.156 2.355 5.123L30 58h30l-4.104-1.758c1.958-1.766 2.244-3.973 2.355-4.833.019-.146.033-.253.049-.313a1.388 1.388 0 0 1-.154-.021Zm-17.662-.971c1.912-.783 3.19-1.93 4.516-3.494 1.332 1.574 2.616 2.716 4.516 3.494l.06.114.01.021c-1.495.574-3.16 1.586-4.581 2.905-1.414-1.322-3.038-2.324-4.58-2.929l.059-.111Z\",fill:\"#000\"})}),hr(\"g\",{mask:\"url(#k)\",children:[Ke(\"g\",{filter:\"url(#l)\",children:Ke(\"circle\",{cx:38,cy:6,r:26,fill:\"#ED2E7E\"})}),Ke(\"g\",{filter:\"url(#m)\",children:Ke(\"circle\",{cx:63,cy:69,r:26,fill:\"#1CC8EE\"})})]}),hr(\"defs\",{children:[hr(\"linearGradient\",{id:\"a\",x1:16,y1:14,x2:87.213,y2:44.598,gradientUnits:\"userSpaceOnUse\",children:[Ke(\"stop\",{stopColor:\"#7433FF\"}),Ke(\"stop\",{offset:1,stopColor:\"#FFA3FD\"})]}),hr(\"linearGradient\",{id:\"b\",x1:16,y1:14,x2:87.213,y2:44.598,gradientUnits:\"userSpaceOnUse\",children:[Ke(\"stop\",{stopColor:\"#7433FF\"}),Ke(\"stop\",{offset:1,stopColor:\"#FFA3FD\"})]}),hr(\"linearGradient\",{id:\"c\",x1:16,y1:14,x2:87.213,y2:44.598,gradientUnits:\"userSpaceOnUse\",children:[Ke(\"stop\",{stopColor:\"#7433FF\"}),Ke(\"stop\",{offset:1,stopColor:\"#FFA3FD\"})]}),hr(\"linearGradient\",{id:\"d\",x1:16,y1:14,x2:87.213,y2:44.598,gradientUnits:\"userSpaceOnUse\",children:[Ke(\"stop\",{stopColor:\"#7433FF\"}),Ke(\"stop\",{offset:1,stopColor:\"#FFA3FD\"})]}),hr(\"linearGradient\",{id:\"e\",x1:16,y1:14,x2:87.213,y2:44.598,gradientUnits:\"userSpaceOnUse\",children:[Ke(\"stop\",{stopColor:\"#7433FF\"}),Ke(\"stop\",{offset:1,stopColor:\"#FFA3FD\"})]}),hr(\"linearGradient\",{id:\"f\",x1:16,y1:14,x2:87.213,y2:44.598,gradientUnits:\"userSpaceOnUse\",children:[Ke(\"stop\",{stopColor:\"#7433FF\"}),Ke(\"stop\",{offset:1,stopColor:\"#FFA3FD\"})]}),hr(\"linearGradient\",{id:\"j\",x1:30,y1:28,x2:66.165,y2:44.436,gradientUnits:\"userSpaceOnUse\",children:[Ke(\"stop\",{stopColor:\"#7433FF\"}),Ke(\"stop\",{offset:1,stopColor:\"#FFA3FD\"})]}),hr(\"filter\",{id:\"h\",x:23,y:-25,width:100,height:100,filterUnits:\"userSpaceOnUse\",colorInterpolationFilters:\"sRGB\",children:[Ke(\"feFlood\",{floodOpacity:0,result:\"BackgroundImageFix\"}),Ke(\"feBlend\",{in:\"SourceGraphic\",in2:\"BackgroundImageFix\",result:\"shape\"}),Ke(\"feGaussianBlur\",{stdDeviation:12,result:\"effect1_foregroundBlur_1677_11483\"})]}),hr(\"filter\",{id:\"i\",x:-24,y:19,width:100,height:100,filterUnits:\"userSpaceOnUse\",colorInterpolationFilters:\"sRGB\",children:[Ke(\"feFlood\",{floodOpacity:0,result:\"BackgroundImageFix\"}),Ke(\"feBlend\",{in:\"SourceGraphic\",in2:\"BackgroundImageFix\",result:\"shape\"}),Ke(\"feGaussianBlur\",{stdDeviation:12,result:\"effect1_foregroundBlur_1677_11483\"})]}),hr(\"filter\",{id:\"l\",x:-12,y:-44,width:100,height:100,filterUnits:\"userSpaceOnUse\",colorInterpolationFilters:\"sRGB\",children:[Ke(\"feFlood\",{floodOpacity:0,result:\"BackgroundImageFix\"}),Ke(\"feBlend\",{in:\"SourceGraphic\",in2:\"BackgroundImageFix\",result:\"shape\"}),Ke(\"feGaussianBlur\",{stdDeviation:12,result:\"effect1_foregroundBlur_1677_11483\"})]}),hr(\"filter\",{id:\"m\",x:13,y:19,width:100,height:100,filterUnits:\"userSpaceOnUse\",colorInterpolationFilters:\"sRGB\",children:[Ke(\"feFlood\",{floodOpacity:0,result:\"BackgroundImageFix\"}),Ke(\"feBlend\",{in:\"SourceGraphic\",in2:\"BackgroundImageFix\",result:\"shape\"}),Ke(\"feGaussianBlur\",{stdDeviation:12,result:\"effect1_foregroundBlur_1677_11483\"})]})]})]}),Y6e=\"\",J6e=\"\",K6e=\"\",wie=(e,t)=>{const n=e.definitions.filter(r=>{var i;return!(r.kind===q.OPERATION_DEFINITION&&t&&((i=r.name)==null?void 0:i.value)!==t)});return{kind:q.DOCUMENT,definitions:n}};function Sie(e){var g;const t=`#\n# Welcome to ${e.title||\"Yoga GraphiQL\"}\n#\n# ${e.title||\"Yoga 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 above)\n#\n# Merge Query: Shift-Ctrl-M (or press the merge button above)\n#\n# Run Query: Ctrl-Enter (or press the play button above)\n#\n# Auto Complete: Ctrl-Space (or just start typing)\n#\n`,n=new URL(e.endpoint??location.pathname,location.href).toString(),r={query:String},i=O.useMemo(()=>new cie,[]),o=O.useMemo(()=>{const m=i.getExecutorAsync(n,{subscriptionsProtocol:sc.SSE,credentials:\"same-origin\",specifiedByUrl:!0,directiveIsRepeatable:!0,...e,headers:e.additionalHeaders||{}});return function(S,x){const D=wie(zr(S.query),S.operationName??void 0);return m({document:D,operationName:S.operationName??void 0,variables:S.variables,extensions:{headers:x==null?void 0:x.headers}})}},[i,n]),[s,l]=gie({query:e.defaultQuery||t},r,!1),[c,f]=O.useState((g=s.query)==null?void 0:g.toString()),h=$ee({query:c,onEdit:f});return Ke(\"div\",{className:\"graphiql-container\",children:Ke(f1,{plugins:[h],query:c,headers:e.headers,schemaDescription:!0,fetcher:o,children:Ke(_6,{isHeadersEditorEnabled:!0,defaultEditorToolsVisibility:!0,onEditQuery:m=>l({query:m}),children:Ke(ql.Logo,{children:hr(\"div\",{style:{display:\"flex\",alignItems:\"center\"},children:[Ke(\"div\",{style:{width:40,display:\"flex\"},children:Ke(Eie,{})}),Ke(\"span\",{children:e!=null&&e.title?e.title:hr(yj,{children:[\"Yoga Graph\",Ke(\"em\",{children:\"i\"}),\"QL\"]})})]})})})})})}function Tie(e,t){CS.render(Ke(Sie,{...t}),e)}var _ie=Object.defineProperty,M=(e,t)=>_ie(e,\"name\",{value:t,configurable:!0});function D6(e,t){return t.forEach(function(n){n&&typeof n!=\"string\"&&!Array.isArray(n)&&Object.keys(n).forEach(function(r){if(r!==\"default\"&&!(r in e)){var i=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:function(){return n[r]}})}})}),Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}))}M(D6,\"_mergeNamespaces\");var Tr={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(lG,function(){var n=navigator.userAgent,r=navigator.platform,i=/gecko\\/\\d/i.test(n),o=/MSIE \\d/.test(n),s=/Trident\\/(?:[7-9]|\\d{2,})\\..*rv:(\\d+)/.exec(n),l=/Edge\\/(\\d+)/.exec(n),c=o||s||l,f=c&&(o?document.documentMode||6:+(l||s)[1]),h=!l&&/WebKit\\//.test(n),g=h&&/Qt\\/\\d+\\.\\d+/.test(n),m=!l&&/Chrome\\//.test(n),y=/Opera\\//.test(n),S=/Apple Computer/.test(navigator.vendor),x=/Mac OS X 1\\d\\D([8-9]|\\d\\d)\\D/.test(n),D=/PhantomJS/.test(n),_=S&&(/Mobile\\/\\w+/.test(n)||navigator.maxTouchPoints>2),b=/Android/.test(n),C=_||b||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(n),T=_||/Mac/.test(r),N=/\\bCrOS\\b/.test(n),F=/win/i.test(r),L=y&&n.match(/Version\\/(\\d*\\.\\d*)/);L&&(L=Number(L[1])),L&&L>=15&&(y=!1,h=!0);var A=T&&(g||y&&(L==null||L<12.11)),P=i||c&&f>=9;function V(a){return new RegExp(\"(^|\\\\s)\"+a+\"(?:$|\\\\s)\\\\s*\")}M(V,\"classTest\");var H=M(function(a,u){var p=a.className,d=V(u).exec(p);if(d){var v=p.slice(d.index+d[0].length);a.className=p.slice(0,d.index)+(v?d[1]+v:\"\")}},\"rmClass\");function G(a){for(var u=a.childNodes.length;u>0;--u)a.removeChild(a.firstChild);return a}M(G,\"removeChildren\");function z(a,u){return G(a).appendChild(u)}M(z,\"removeChildrenAndAdd\");function U(a,u,p,d){var v=document.createElement(a);if(p&&(v.className=p),d&&(v.style.cssText=d),typeof u==\"string\")v.appendChild(document.createTextNode(u));else if(u)for(var w=0;w<u.length;++w)v.appendChild(u[w]);return v}M(U,\"elt\");function j(a,u,p,d){var v=U(a,u,p,d);return v.setAttribute(\"role\",\"presentation\"),v}M(j,\"eltP\");var X;document.createRange?X=M(function(a,u,p,d){var v=document.createRange();return v.setEnd(d||a,p),v.setStart(a,u),v},\"range\"):X=M(function(a,u,p){var d=document.body.createTextRange();try{d.moveToElementText(a.parentNode)}catch{return d}return d.collapse(!0),d.moveEnd(\"character\",p),d.moveStart(\"character\",u),d},\"range\");function ne(a,u){if(u.nodeType==3&&(u=u.parentNode),a.contains)return a.contains(u);do if(u.nodeType==11&&(u=u.host),u==a)return!0;while(u=u.parentNode)}M(ne,\"contains\");function J(){var a;try{a=document.activeElement}catch{a=document.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}M(J,\"activeElt\");function re(a,u){var p=a.className;V(u).test(p)||(a.className+=(p?\" \":\"\")+u)}M(re,\"addClass\");function Z(a,u){for(var p=a.split(\" \"),d=0;d<p.length;d++)p[d]&&!V(p[d]).test(u)&&(u+=\" \"+p[d]);return u}M(Z,\"joinClasses\");var de=M(function(a){a.select()},\"selectInput\");_?de=M(function(a){a.selectionStart=0,a.selectionEnd=a.value.length},\"selectInput\"):c&&(de=M(function(a){try{a.select()}catch{}},\"selectInput\"));function K(a){var u=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,u)}}M(K,\"bind\");function ve(a,u,p){u||(u={});for(var d in a)a.hasOwnProperty(d)&&(p!==!1||!u.hasOwnProperty(d))&&(u[d]=a[d]);return u}M(ve,\"copyObj\");function ue(a,u,p,d,v){u==null&&(u=a.search(/[^\\s\\u00a0]/),u==-1&&(u=a.length));for(var w=d||0,k=v||0;;){var I=a.indexOf(\"\t\",w);if(I<0||I>=u)return k+(u-w);k+=I-w,k+=p-k%p,w=I+1}}M(ue,\"countColumn\");var ce=M(function(){this.id=null,this.f=null,this.time=0,this.handler=K(this.onTimeout,this)},\"Delayed\");ce.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},ce.prototype.set=function(a,u){this.f=u;var p=+new Date+a;(!this.id||p<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=p)};function le(a,u){for(var p=0;p<a.length;++p)if(a[p]==u)return p;return-1}M(le,\"indexOf\");var we=50,Ce={toString:function(){return\"CodeMirror.Pass\"}},qe={scroll:!1},un={origin:\"*mouse\"},nt={origin:\"+move\"};function et(a,u,p){for(var d=0,v=0;;){var w=a.indexOf(\"\t\",d);w==-1&&(w=a.length);var k=w-d;if(w==a.length||v+k>=u)return d+Math.min(k,u-v);if(v+=w-d,v+=p-v%p,d=w+1,v>=u)return d}}M(et,\"findColumn\");var vt=[\"\"];function xn(a){for(;vt.length<=a;)vt.push(st(vt)+\" \");return vt[a]}M(xn,\"spaceStr\");function st(a){return a[a.length-1]}M(st,\"lst\");function ur(a,u){for(var p=[],d=0;d<a.length;d++)p[d]=u(a[d],d);return p}M(ur,\"map\");function so(a,u,p){for(var d=0,v=p(u);d<a.length&&p(a[d])<=v;)d++;a.splice(d,0,u)}M(so,\"insertSorted\");function kn(){}M(kn,\"nothing\");function cr(a,u){var p;return Object.create?p=Object.create(a):(kn.prototype=a,p=new kn),u&&ve(u,p),p}M(cr,\"createObj\");var Zl=/[\\u00df\\u0587\\u0590-\\u05f4\\u0600-\\u06ff\\u3040-\\u309f\\u30a0-\\u30ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\uac00-\\ud7af]/;function Po(a){return/\\w/.test(a)||a>\"\"&&(a.toUpperCase()!=a.toLowerCase()||Zl.test(a))}M(Po,\"isWordCharBasic\");function eu(a,u){return u?u.source.indexOf(\"\\\\w\")>-1&&Po(a)?!0:u.test(a):Po(a)}M(eu,\"isWordChar\");function Ed(a){for(var u in a)if(a.hasOwnProperty(u)&&a[u])return!1;return!0}M(Ed,\"isEmpty\");var bb=/[\\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 pc(a){return a.charCodeAt(0)>=768&&bb.test(a)}M(pc,\"isExtendingChar\");function wd(a,u,p){for(;(p<0?u>0:u<a.length)&&pc(a.charAt(u));)u+=p;return u}M(wd,\"skipExtendingChars\");function Mo(a,u,p){for(var d=u>p?-1:1;;){if(u==p)return u;var v=(u+p)/2,w=d<0?Math.ceil(v):Math.floor(v);if(w==u)return a(w)?u:p;a(w)?p=w:u=w+d}}M(Mo,\"findFirst\");function Rv(a,u,p,d){if(!a)return d(u,p,\"ltr\",0);for(var v=!1,w=0;w<a.length;++w){var k=a[w];(k.from<p&&k.to>u||u==p&&k.to==u)&&(d(Math.max(k.from,u),Math.min(k.to,p),k.level==1?\"rtl\":\"ltr\",w),v=!0)}v||d(u,p,\"ltr\")}M(Rv,\"iterateBidiSections\");var Vi=null;function cn(a,u,p){var d;Vi=null;for(var v=0;v<a.length;++v){var w=a[v];if(w.from<u&&w.to>u)return v;w.to==u&&(w.from!=w.to&&p==\"before\"?d=v:Vi=v),w.from==u&&(w.from!=w.to&&p!=\"before\"?d=v:Vi=v)}return d??Vi}M(cn,\"getBidiPartAt\");var tu=function(){var a=\"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN\",u=\"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111\";function p($){return $<=247?a.charAt($):1424<=$&&$<=1524?\"R\":1536<=$&&$<=1785?u.charAt($-1536):1774<=$&&$<=2220?\"r\":8192<=$&&$<=8203?\"w\":$==8204?\"b\":\"L\"}M(p,\"charType\");var d=/[\\u0590-\\u05f4\\u0600-\\u06ff\\u0700-\\u08ac]/,v=/[stwN]/,w=/[LRr]/,k=/[Lb1n]/,I=/[1n]/;function R($,W,Q){this.level=$,this.from=W,this.to=Q}return M(R,\"BidiSpan\"),function($,W){var Q=W==\"ltr\"?\"L\":\"R\";if($.length==0||W==\"ltr\"&&!d.test($))return!1;for(var te=$.length,ee=[],fe=0;fe<te;++fe)ee.push(p($.charCodeAt(fe)));for(var ye=0,Ne=Q;ye<te;++ye){var Ae=ee[ye];Ae==\"m\"?ee[ye]=Ne:Ne=Ae}for(var Fe=0,Oe=Q;Fe<te;++Fe){var Me=ee[Fe];Me==\"1\"&&Oe==\"r\"?ee[Fe]=\"n\":w.test(Me)&&(Oe=Me,Me==\"r\"&&(ee[Fe]=\"R\"))}for(var Qe=1,ze=ee[0];Qe<te-1;++Qe){var dt=ee[Qe];dt==\"+\"&&ze==\"1\"&&ee[Qe+1]==\"1\"?ee[Qe]=\"1\":dt==\",\"&&ze==ee[Qe+1]&&(ze==\"1\"||ze==\"n\")&&(ee[Qe]=ze),ze=dt}for(var Ht=0;Ht<te;++Ht){var dr=ee[Ht];if(dr==\",\")ee[Ht]=\"N\";else if(dr==\"%\"){var fn=void 0;for(fn=Ht+1;fn<te&&ee[fn]==\"%\";++fn);for(var Si=Ht&&ee[Ht-1]==\"!\"||fn<te&&ee[fn]==\"1\"?\"1\":\"N\",Ti=Ht;Ti<fn;++Ti)ee[Ti]=Si;Ht=fn-1}}for(var Bn=0,_i=Q;Bn<te;++Bn){var Dr=ee[Bn];_i==\"L\"&&Dr==\"1\"?ee[Bn]=\"L\":w.test(Dr)&&(_i=Dr)}for(var Kn=0;Kn<te;++Kn)if(v.test(ee[Kn])){var jn=void 0;for(jn=Kn+1;jn<te&&v.test(ee[jn]);++jn);for(var wn=(Kn?ee[Kn-1]:Q)==\"L\",Ci=(jn<te?ee[jn]:Q)==\"L\",Kd=wn==Ci?wn?\"L\":\"R\":Q,vu=Kn;vu<jn;++vu)ee[vu]=Kd;Kn=jn-1}for(var Br=[],Ka,pr=0;pr<te;)if(k.test(ee[pr])){var gA=pr;for(++pr;pr<te&&k.test(ee[pr]);++pr);Br.push(new R(0,gA,pr))}else{var zs=pr,Fc=Br.length,Rc=W==\"rtl\"?1:0;for(++pr;pr<te&&ee[pr]!=\"L\";++pr);for(var ii=zs;ii<pr;)if(I.test(ee[ii])){zs<ii&&(Br.splice(Fc,0,new R(1,zs,ii)),Fc+=Rc);var Xd=ii;for(++ii;ii<pr&&I.test(ee[ii]);++ii);Br.splice(Fc,0,new R(2,Xd,ii)),Fc+=Rc,zs=ii}else++ii;zs<pr&&Br.splice(Fc,0,new R(1,zs,pr))}return W==\"ltr\"&&(Br[0].level==1&&(Ka=$.match(/^\\s+/))&&(Br[0].from=Ka[0].length,Br.unshift(new R(0,0,Ka[0].length))),st(Br).level==1&&(Ka=$.match(/\\s+$/))&&(st(Br).to-=Ka[0].length,Br.push(new R(0,te-Ka[0].length,te)))),W==\"rtl\"?Br.reverse():Br}}();function ei(a,u){var p=a.order;return p==null&&(p=a.order=tu(a.text,u)),p}M(ei,\"getOrder\");var za=[],Ye=M(function(a,u,p){if(a.addEventListener)a.addEventListener(u,p,!1);else if(a.attachEvent)a.attachEvent(\"on\"+u,p);else{var d=a._handlers||(a._handlers={});d[u]=(d[u]||za).concat(p)}},\"on\");function nu(a,u){return a._handlers&&a._handlers[u]||za}M(nu,\"getHandlers\");function $r(a,u,p){if(a.removeEventListener)a.removeEventListener(u,p,!1);else if(a.detachEvent)a.detachEvent(\"on\"+u,p);else{var d=a._handlers,v=d&&d[u];if(v){var w=le(v,p);w>-1&&(d[u]=v.slice(0,w).concat(v.slice(w+1)))}}}M($r,\"off\");function Ze(a,u){var p=nu(a,u);if(p.length)for(var d=Array.prototype.slice.call(arguments,2),v=0;v<p.length;++v)p[v].apply(null,d)}M(Ze,\"signal\");function En(a,u,p){return typeof u==\"string\"&&(u={type:u,preventDefault:function(){this.defaultPrevented=!0}}),Ze(a,p||u.type,a,u),yi(u)||u.codemirrorIgnore}M(En,\"signalDOMEvent\");function ru(a){var u=a._handlers&&a._handlers.cursorActivity;if(u)for(var p=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),d=0;d<u.length;++d)le(p,u[d])==-1&&p.push(u[d])}M(ru,\"signalCursorActivity\");function Wn(a,u){return nu(a,u).length>0}M(Wn,\"hasHandler\");function $o(a){a.prototype.on=function(u,p){Ye(this,u,p)},a.prototype.off=function(u,p){$r(this,u,p)}}M($o,\"eventMixin\");function fr(a){a.preventDefault?a.preventDefault():a.returnValue=!1}M(fr,\"e_preventDefault\");function iu(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}M(iu,\"e_stopPropagation\");function yi(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}M(yi,\"e_defaultPrevented\");function Fs(a){fr(a),iu(a)}M(Fs,\"e_stop\");function Ga(a){return a.target||a.srcElement}M(Ga,\"e_target\");function Sd(a){var u=a.which;return u==null&&(a.button&1?u=1:a.button&2?u=3:a.button&4&&(u=2)),T&&a.ctrlKey&&u==1&&(u=3),u}M(Sd,\"e_button\");var Td=function(){if(c&&f<9)return!1;var a=U(\"div\");return\"draggable\"in a||\"dragDrop\"in a}(),ti;function _d(a){if(ti==null){var u=U(\"span\",\"\");z(a,U(\"span\",[u,document.createTextNode(\"x\")])),a.firstChild.offsetHeight!=0&&(ti=u.offsetWidth<=1&&u.offsetHeight>2&&!(c&&f<8))}var p=ti?U(\"span\",\"\"):U(\"span\",\" \",null,\"display: inline-block; width: 1px; margin-right: -1px\");return p.setAttribute(\"cm-text\",\"\"),p}M(_d,\"zeroWidthElement\");var Cd;function Vo(a){if(Cd!=null)return Cd;var u=z(a,document.createTextNode(\"AخA\")),p=X(u,0,1).getBoundingClientRect(),d=X(u,1,2).getBoundingClientRect();return G(a),!p||p.left==p.right?!1:Cd=d.right-p.right<3}M(Vo,\"hasBadBidiRects\");var xd=`\n\nb`.split(/\\n/).length!=3?function(a){for(var u=0,p=[],d=a.length;u<=d;){var v=a.indexOf(`\n`,u);v==-1&&(v=a.length);var w=a.slice(u,a.charAt(v-1)==\"\\r\"?v-1:v),k=w.indexOf(\"\\r\");k!=-1?(p.push(w.slice(0,k)),u+=k+1):(p.push(w),u=v+1)}return p}:function(a){return a.split(/\\r\\n?|\\n/)},Pv=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch{return!1}}:function(a){var u;try{u=a.ownerDocument.selection.createRange()}catch{}return!u||u.parentElement()!=a?!1:u.compareEndPoints(\"StartToEnd\",u)!=0},Mv=function(){var a=U(\"div\");return\"oncopy\"in a?!0:(a.setAttribute(\"oncopy\",\"return;\"),typeof a.oncopy==\"function\")}(),kd=null;function Wa(a){if(kd!=null)return kd;var u=z(a,U(\"span\",\"x\")),p=u.getBoundingClientRect(),d=X(u,0,1).getBoundingClientRect();return kd=Math.abs(p.left-d.left)>1}M(Wa,\"hasBadZoomedRects\");var lo={},Bi={};function Nd(a,u){arguments.length>2&&(u.dependencies=Array.prototype.slice.call(arguments,2)),lo[a]=u}M(Nd,\"defineMode\");function Ea(a,u){Bi[a]=u}M(Ea,\"defineMIME\");function ou(a){if(typeof a==\"string\"&&Bi.hasOwnProperty(a))a=Bi[a];else if(a&&typeof a.name==\"string\"&&Bi.hasOwnProperty(a.name)){var u=Bi[a.name];typeof u==\"string\"&&(u={name:u}),a=cr(u,a),a.name=u.name}else{if(typeof a==\"string\"&&/^[\\w\\-]+\\/[\\w\\-]+\\+xml$/.test(a))return ou(\"application/xml\");if(typeof a==\"string\"&&/^[\\w\\-]+\\/[\\w\\-]+\\+json$/.test(a))return ou(\"application/json\")}return typeof a==\"string\"?{name:a}:a||{name:\"null\"}}M(ou,\"resolveMode\");function au(a,u){u=ou(u);var p=lo[u.name];if(!p)return au(a,\"text/plain\");var d=p(a,u);if(Bo.hasOwnProperty(u.name)){var v=Bo[u.name];for(var w in v)v.hasOwnProperty(w)&&(d.hasOwnProperty(w)&&(d[\"_\"+w]=d[w]),d[w]=v[w])}if(d.name=u.name,u.helperType&&(d.helperType=u.helperType),u.modeProps)for(var k in u.modeProps)d[k]=u.modeProps[k];return d}M(au,\"getMode\");var Bo={};function uo(a,u){var p=Bo.hasOwnProperty(a)?Bo[a]:Bo[a]={};ve(u,p)}M(uo,\"extendMode\");function bi(a,u){if(u===!0)return u;if(a.copyState)return a.copyState(u);var p={};for(var d in u){var v=u[d];v instanceof Array&&(v=v.concat([])),p[d]=v}return p}M(bi,\"copyState\");function hc(a,u){for(var p;a.innerMode&&(p=a.innerMode(u),!(!p||p.mode==a));)u=p.state,a=p.mode;return p||{mode:a,state:u}}M(hc,\"innerMode\");function vc(a,u,p){return a.startState?a.startState(u,p):!0}M(vc,\"startState\");var vn=M(function(a,u,p){this.pos=this.start=0,this.string=a,this.tabSize=u||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=p},\"StringStream\");vn.prototype.eol=function(){return this.pos>=this.string.length},vn.prototype.sol=function(){return this.pos==this.lineStart},vn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},vn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},vn.prototype.eat=function(a){var u=this.string.charAt(this.pos),p;if(typeof a==\"string\"?p=u==a:p=u&&(a.test?a.test(u):a(u)),p)return++this.pos,u},vn.prototype.eatWhile=function(a){for(var u=this.pos;this.eat(a););return this.pos>u},vn.prototype.eatSpace=function(){for(var a=this.pos;/[\\s\\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},vn.prototype.skipToEnd=function(){this.pos=this.string.length},vn.prototype.skipTo=function(a){var u=this.string.indexOf(a,this.pos);if(u>-1)return this.pos=u,!0},vn.prototype.backUp=function(a){this.pos-=a},vn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ue(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ue(this.string,this.lineStart,this.tabSize):0)},vn.prototype.indentation=function(){return ue(this.string,null,this.tabSize)-(this.lineStart?ue(this.string,this.lineStart,this.tabSize):0)},vn.prototype.match=function(a,u,p){if(typeof a==\"string\"){var d=M(function(k){return p?k.toLowerCase():k},\"cased\"),v=this.string.substr(this.pos,a.length);if(d(v)==d(a))return u!==!1&&(this.pos+=a.length),!0}else{var w=this.string.slice(this.pos).match(a);return w&&w.index>0?null:(w&&u!==!1&&(this.pos+=w[0].length),w)}},vn.prototype.current=function(){return this.string.slice(this.start,this.pos)},vn.prototype.hideFirstChars=function(a,u){this.lineStart+=a;try{return u()}finally{this.lineStart-=a}},vn.prototype.lookAhead=function(a){var u=this.lineOracle;return u&&u.lookAhead(a)},vn.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function $e(a,u){if(u-=a.first,u<0||u>=a.size)throw new Error(\"There is no line \"+(u+a.first)+\" in the document.\");for(var p=a;!p.lines;)for(var d=0;;++d){var v=p.children[d],w=v.chunkSize();if(u<w){p=v;break}u-=w}return p.lines[u]}M($e,\"getLine\");function jo(a,u,p){var d=[],v=u.line;return a.iter(u.line,p.line+1,function(w){var k=w.text;v==p.line&&(k=k.slice(0,p.ch)),v==u.line&&(k=k.slice(u.ch)),d.push(k),++v}),d}M(jo,\"getBetween\");function mc(a,u,p){var d=[];return a.iter(u,p,function(v){d.push(v.text)}),d}M(mc,\"getLines\");function ni(a,u){var p=u-a.height;if(p)for(var d=a;d;d=d.parent)d.height+=p}M(ni,\"updateLineHeight\");function xt(a){if(a.parent==null)return null;for(var u=a.parent,p=le(u.lines,a),d=u.parent;d;u=d,d=d.parent)for(var v=0;d.children[v]!=u;++v)p+=d.children[v].chunkSize();return p+u.first}M(xt,\"lineNo\");function Uo(a,u){var p=a.first;e:do{for(var d=0;d<a.children.length;++d){var v=a.children[d],w=v.height;if(u<w){a=v;continue e}u-=w,p+=v.chunkSize()}return p}while(!a.lines);for(var k=0;k<a.lines.length;++k){var I=a.lines[k],R=I.height;if(u<R)break;u-=R}return p+k}M(Uo,\"lineAtHeight\");function Rs(a,u){return u>=a.first&&u<a.first+a.size}M(Rs,\"isLine\");function gc(a,u){return String(a.lineNumberFormatter(u+a.firstLineNumber))}M(gc,\"lineNumberFor\");function _e(a,u,p){if(p===void 0&&(p=null),!(this instanceof _e))return new _e(a,u,p);this.line=a,this.ch=u,this.sticky=p}M(_e,\"Pos\");function B(a,u){return a.line-u.line||a.ch-u.ch}M(B,\"cmp\");function Y(a,u){return a.sticky==u.sticky&&B(a,u)==0}M(Y,\"equalCursorPos\");function me(a){return _e(a.line,a.ch)}M(me,\"copyPos\");function xe(a,u){return B(a,u)<0?u:a}M(xe,\"maxPos\");function tt(a,u){return B(a,u)<0?a:u}M(tt,\"minPos\");function bt(a,u){return Math.max(a.first,Math.min(u,a.first+a.size-1))}M(bt,\"clipLine\");function Re(a,u){if(u.line<a.first)return _e(a.first,0);var p=a.first+a.size-1;return u.line>p?_e(p,$e(a,p).text.length):kr(u,$e(a,u.line).text.length)}M(Re,\"clipPos\");function kr(a,u){var p=a.ch;return p==null||p>u?_e(a.line,u):p<0?_e(a.line,0):a}M(kr,\"clipToLen\");function ji(a,u){for(var p=[],d=0;d<u.length;d++)p[d]=Re(a,u[d]);return p}M(ji,\"clipPosArray\");var Dd=M(function(a,u){this.state=a,this.lookAhead=u},\"SavedContext\"),Qa=M(function(a,u,p,d){this.state=u,this.doc=a,this.line=p,this.maxLookAhead=d||0,this.baseTokens=null,this.baseTokenPos=1},\"Context\");Qa.prototype.lookAhead=function(a){var u=this.doc.getLine(this.line+a);return u!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),u},Qa.prototype.baseToken=function(a){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=a;)this.baseTokenPos+=2;var u=this.baseTokens[this.baseTokenPos+1];return{type:u&&u.replace(/( |^)overlay .*/,\"\"),size:this.baseTokens[this.baseTokenPos]-a}},Qa.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Qa.fromSaved=function(a,u,p){return u instanceof Dd?new Qa(a,bi(a.mode,u.state),p,u.lookAhead):new Qa(a,bi(a.mode,u),p)},Qa.prototype.save=function(a){var u=a!==!1?bi(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Dd(u,this.maxLookAhead):u};function _N(a,u,p,d){var v=[a.state.modeGen],w={};DN(a,u.text,a.doc.mode,p,function($,W){return v.push($,W)},w,d);for(var k=p.state,I=M(function($){p.baseTokens=v;var W=a.state.overlays[$],Q=1,te=0;p.state=!0,DN(a,u.text,W.mode,p,function(ee,fe){for(var ye=Q;te<ee;){var Ne=v[Q];Ne>ee&&v.splice(Q,1,ee,v[Q+1],Ne),Q+=2,te=Math.min(ee,Ne)}if(fe)if(W.opaque)v.splice(ye,Q-ye,ee,\"overlay \"+fe),Q=ye+2;else for(;ye<Q;ye+=2){var Ae=v[ye+1];v[ye+1]=(Ae?Ae+\" \":\"\")+\"overlay \"+fe}},w),p.state=k,p.baseTokens=null,p.baseTokenPos=1},\"loop\"),R=0;R<a.state.overlays.length;++R)I(R);return{styles:v,classes:w.bgClass||w.textClass?w:null}}M(_N,\"highlightLine\");function CN(a,u,p){if(!u.styles||u.styles[0]!=a.state.modeGen){var d=Ad(a,xt(u)),v=u.text.length>a.options.maxHighlightLength&&bi(a.doc.mode,d.state),w=_N(a,u,d);v&&(d.state=v),u.stateAfter=d.save(!v),u.styles=w.styles,w.classes?u.styleClasses=w.classes:u.styleClasses&&(u.styleClasses=null),p===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return u.styles}M(CN,\"getLineStyles\");function Ad(a,u,p){var d=a.doc,v=a.display;if(!d.mode.startState)return new Qa(d,!0,u);var w=Q7(a,u,p),k=w>d.first&&$e(d,w-1).stateAfter,I=k?Qa.fromSaved(d,k,w):new Qa(d,vc(d.mode),w);return d.iter(w,u,function(R){Eb(a,R.text,I);var $=I.line;R.stateAfter=$==u-1||$%5==0||$>=v.viewFrom&&$<v.viewTo?I.save():null,I.nextLine()}),p&&(d.modeFrontier=I.line),I}M(Ad,\"getContextBefore\");function Eb(a,u,p,d){var v=a.doc.mode,w=new vn(u,a.options.tabSize,p);for(w.start=w.pos=d||0,u==\"\"&&xN(v,p.state);!w.eol();)wb(v,w,p.state),w.start=w.pos}M(Eb,\"processLine\");function xN(a,u){if(a.blankLine)return a.blankLine(u);if(a.innerMode){var p=hc(a,u);if(p.mode.blankLine)return p.mode.blankLine(p.state)}}M(xN,\"callBlankLine\");function wb(a,u,p,d){for(var v=0;v<10;v++){d&&(d[0]=hc(a,p).mode);var w=a.token(u,p);if(u.pos>u.start)return w}throw new Error(\"Mode \"+a.name+\" failed to advance stream.\")}M(wb,\"readToken\");var W7=M(function(a,u,p){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=u||null,this.state=p},\"Token\");function kN(a,u,p,d){var v=a.doc,w=v.mode,k;u=Re(v,u);var I=$e(v,u.line),R=Ad(a,u.line,p),$=new vn(I.text,a.options.tabSize,R),W;for(d&&(W=[]);(d||$.pos<u.ch)&&!$.eol();)$.start=$.pos,k=wb(w,$,R.state),d&&W.push(new W7($,k,bi(v.mode,R.state)));return d?W:new W7($,k,R.state)}M(kN,\"takeToken\");function NN(a,u){if(a)for(;;){var p=a.match(/(?:^|\\s+)line-(background-)?(\\S+)/);if(!p)break;a=a.slice(0,p.index)+a.slice(p.index+p[0].length);var d=p[1]?\"bgClass\":\"textClass\";u[d]==null?u[d]=p[2]:new RegExp(\"(?:^|\\\\s)\"+p[2]+\"(?:$|\\\\s)\").test(u[d])||(u[d]+=\" \"+p[2])}return a}M(NN,\"extractLineClasses\");function DN(a,u,p,d,v,w,k){var I=p.flattenSpans;I==null&&(I=a.options.flattenSpans);var R=0,$=null,W=new vn(u,a.options.tabSize,d),Q,te=a.options.addModeClass&&[null];for(u==\"\"&&NN(xN(p,d.state),w);!W.eol();){if(W.pos>a.options.maxHighlightLength?(I=!1,k&&Eb(a,u,d,W.pos),W.pos=u.length,Q=null):Q=NN(wb(p,W,d.state,te),w),te){var ee=te[0].name;ee&&(Q=\"m-\"+(Q?ee+\" \"+Q:ee))}if(!I||$!=Q){for(;R<W.start;)R=Math.min(W.start,R+5e3),v(R,$);$=Q}W.start=W.pos}for(;R<W.pos;){var fe=Math.min(W.pos,R+5e3);v(fe,$),R=fe}}M(DN,\"runMode\");function Q7(a,u,p){for(var d,v,w=a.doc,k=p?-1:u-(a.doc.mode.innerMode?1e3:100),I=u;I>k;--I){if(I<=w.first)return w.first;var R=$e(w,I-1),$=R.stateAfter;if($&&(!p||I+($ instanceof Dd?$.lookAhead:0)<=w.modeFrontier))return I;var W=ue(R.text,null,a.options.tabSize);(v==null||d>W)&&(v=I-1,d=W)}return v}M(Q7,\"findStartLine\");function Y7(a,u){if(a.modeFrontier=Math.min(a.modeFrontier,u),!(a.highlightFrontier<u-10)){for(var p=a.first,d=u-1;d>p;d--){var v=$e(a,d).stateAfter;if(v&&(!(v instanceof Dd)||d+v.lookAhead<u)){p=d+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,p)}}M(Y7,\"retreatFrontier\");var J7=!1,Ps=!1;function K7(){J7=!0}M(K7,\"seeReadOnlySpans\");function X7(){Ps=!0}M(X7,\"seeCollapsedSpans\");function $v(a,u,p){this.marker=a,this.from=u,this.to=p}M($v,\"MarkedSpan\");function Od(a,u){if(a)for(var p=0;p<a.length;++p){var d=a[p];if(d.marker==u)return d}}M(Od,\"getMarkedSpanFor\");function Z7(a,u){for(var p,d=0;d<a.length;++d)a[d]!=u&&(p||(p=[])).push(a[d]);return p}M(Z7,\"removeMarkedSpan\");function eV(a,u,p){var d=p&&window.WeakSet&&(p.markedSpans||(p.markedSpans=new WeakSet));d&&a.markedSpans&&d.has(a.markedSpans)?a.markedSpans.push(u):(a.markedSpans=a.markedSpans?a.markedSpans.concat([u]):[u],d&&d.add(a.markedSpans)),u.marker.attachLine(a)}M(eV,\"addMarkedSpan\");function tV(a,u,p){var d;if(a)for(var v=0;v<a.length;++v){var w=a[v],k=w.marker,I=w.from==null||(k.inclusiveLeft?w.from<=u:w.from<u);if(I||w.from==u&&k.type==\"bookmark\"&&(!p||!w.marker.insertLeft)){var R=w.to==null||(k.inclusiveRight?w.to>=u:w.to>u);(d||(d=[])).push(new $v(k,w.from,R?null:w.to))}}return d}M(tV,\"markedSpansBefore\");function nV(a,u,p){var d;if(a)for(var v=0;v<a.length;++v){var w=a[v],k=w.marker,I=w.to==null||(k.inclusiveRight?w.to>=u:w.to>u);if(I||w.from==u&&k.type==\"bookmark\"&&(!p||w.marker.insertLeft)){var R=w.from==null||(k.inclusiveLeft?w.from<=u:w.from<u);(d||(d=[])).push(new $v(k,R?null:w.from-u,w.to==null?null:w.to-u))}}return d}M(nV,\"markedSpansAfter\");function Sb(a,u){if(u.full)return null;var p=Rs(a,u.from.line)&&$e(a,u.from.line).markedSpans,d=Rs(a,u.to.line)&&$e(a,u.to.line).markedSpans;if(!p&&!d)return null;var v=u.from.ch,w=u.to.ch,k=B(u.from,u.to)==0,I=tV(p,v,k),R=nV(d,w,k),$=u.text.length==1,W=st(u.text).length+($?v:0);if(I)for(var Q=0;Q<I.length;++Q){var te=I[Q];if(te.to==null){var ee=Od(R,te.marker);ee?$&&(te.to=ee.to==null?null:ee.to+W):te.to=v}}if(R)for(var fe=0;fe<R.length;++fe){var ye=R[fe];if(ye.to!=null&&(ye.to+=W),ye.from==null){var Ne=Od(I,ye.marker);Ne||(ye.from=W,$&&(I||(I=[])).push(ye))}else ye.from+=W,$&&(I||(I=[])).push(ye)}I&&(I=AN(I)),R&&R!=I&&(R=AN(R));var Ae=[I];if(!$){var Fe=u.text.length-2,Oe;if(Fe>0&&I)for(var Me=0;Me<I.length;++Me)I[Me].to==null&&(Oe||(Oe=[])).push(new $v(I[Me].marker,null,null));for(var Qe=0;Qe<Fe;++Qe)Ae.push(Oe);Ae.push(R)}return Ae}M(Sb,\"stretchSpansOverChange\");function AN(a){for(var u=0;u<a.length;++u){var p=a[u];p.from!=null&&p.from==p.to&&p.marker.clearWhenEmpty!==!1&&a.splice(u--,1)}return a.length?a:null}M(AN,\"clearEmptySpans\");function rV(a,u,p){var d=null;if(a.iter(u.line,p.line+1,function(ee){if(ee.markedSpans)for(var fe=0;fe<ee.markedSpans.length;++fe){var ye=ee.markedSpans[fe].marker;ye.readOnly&&(!d||le(d,ye)==-1)&&(d||(d=[])).push(ye)}}),!d)return null;for(var v=[{from:u,to:p}],w=0;w<d.length;++w)for(var k=d[w],I=k.find(0),R=0;R<v.length;++R){var $=v[R];if(!(B($.to,I.from)<0||B($.from,I.to)>0)){var W=[R,1],Q=B($.from,I.from),te=B($.to,I.to);(Q<0||!k.inclusiveLeft&&!Q)&&W.push({from:$.from,to:I.from}),(te>0||!k.inclusiveRight&&!te)&&W.push({from:I.to,to:$.to}),v.splice.apply(v,W),R+=W.length-3}}return v}M(rV,\"removeReadOnlyRanges\");function ON(a){var u=a.markedSpans;if(u){for(var p=0;p<u.length;++p)u[p].marker.detachLine(a);a.markedSpans=null}}M(ON,\"detachMarkedSpans\");function IN(a,u){if(u){for(var p=0;p<u.length;++p)u[p].marker.attachLine(a);a.markedSpans=u}}M(IN,\"attachMarkedSpans\");function Vv(a){return a.inclusiveLeft?-1:0}M(Vv,\"extraLeft\");function Bv(a){return a.inclusiveRight?1:0}M(Bv,\"extraRight\");function Tb(a,u){var p=a.lines.length-u.lines.length;if(p!=0)return p;var d=a.find(),v=u.find(),w=B(d.from,v.from)||Vv(a)-Vv(u);if(w)return-w;var k=B(d.to,v.to)||Bv(a)-Bv(u);return k||u.id-a.id}M(Tb,\"compareCollapsedMarkers\");function LN(a,u){var p=Ps&&a.markedSpans,d;if(p)for(var v=void 0,w=0;w<p.length;++w)v=p[w],v.marker.collapsed&&(u?v.from:v.to)==null&&(!d||Tb(d,v.marker)<0)&&(d=v.marker);return d}M(LN,\"collapsedSpanAtSide\");function FN(a){return LN(a,!0)}M(FN,\"collapsedSpanAtStart\");function jv(a){return LN(a,!1)}M(jv,\"collapsedSpanAtEnd\");function iV(a,u){var p=Ps&&a.markedSpans,d;if(p)for(var v=0;v<p.length;++v){var w=p[v];w.marker.collapsed&&(w.from==null||w.from<u)&&(w.to==null||w.to>u)&&(!d||Tb(d,w.marker)<0)&&(d=w.marker)}return d}M(iV,\"collapsedSpanAround\");function RN(a,u,p,d,v){var w=$e(a,u),k=Ps&&w.markedSpans;if(k)for(var I=0;I<k.length;++I){var R=k[I];if(R.marker.collapsed){var $=R.marker.find(0),W=B($.from,p)||Vv(R.marker)-Vv(v),Q=B($.to,d)||Bv(R.marker)-Bv(v);if(!(W>=0&&Q<=0||W<=0&&Q>=0)&&(W<=0&&(R.marker.inclusiveRight&&v.inclusiveLeft?B($.to,p)>=0:B($.to,p)>0)||W>=0&&(R.marker.inclusiveRight&&v.inclusiveLeft?B($.from,d)<=0:B($.from,d)<0)))return!0}}}M(RN,\"conflictingCollapsedRange\");function qo(a){for(var u;u=FN(a);)a=u.find(-1,!0).line;return a}M(qo,\"visualLine\");function oV(a){for(var u;u=jv(a);)a=u.find(1,!0).line;return a}M(oV,\"visualLineEnd\");function aV(a){for(var u,p;u=jv(a);)a=u.find(1,!0).line,(p||(p=[])).push(a);return p}M(aV,\"visualLineContinued\");function _b(a,u){var p=$e(a,u),d=qo(p);return p==d?u:xt(d)}M(_b,\"visualLineNo\");function PN(a,u){if(u>a.lastLine())return u;var p=$e(a,u),d;if(!Ms(a,p))return u;for(;d=jv(p);)p=d.find(1,!0).line;return xt(p)+1}M(PN,\"visualLineEndNo\");function Ms(a,u){var p=Ps&&u.markedSpans;if(p){for(var d=void 0,v=0;v<p.length;++v)if(d=p[v],!!d.marker.collapsed){if(d.from==null)return!0;if(!d.marker.widgetNode&&d.from==0&&d.marker.inclusiveLeft&&Cb(a,u,d))return!0}}}M(Ms,\"lineIsHidden\");function Cb(a,u,p){if(p.to==null){var d=p.marker.find(1,!0);return Cb(a,d.line,Od(d.line.markedSpans,p.marker))}if(p.marker.inclusiveRight&&p.to==u.text.length)return!0;for(var v=void 0,w=0;w<u.markedSpans.length;++w)if(v=u.markedSpans[w],v.marker.collapsed&&!v.marker.widgetNode&&v.from==p.to&&(v.to==null||v.to!=p.from)&&(v.marker.inclusiveLeft||p.marker.inclusiveRight)&&Cb(a,u,v))return!0}M(Cb,\"lineIsHiddenInner\");function Ya(a){a=qo(a);for(var u=0,p=a.parent,d=0;d<p.lines.length;++d){var v=p.lines[d];if(v==a)break;u+=v.height}for(var w=p.parent;w;p=w,w=p.parent)for(var k=0;k<w.children.length;++k){var I=w.children[k];if(I==p)break;u+=I.height}return u}M(Ya,\"heightAtLine\");function Uv(a){if(a.height==0)return 0;for(var u=a.text.length,p,d=a;p=FN(d);){var v=p.find(0,!0);d=v.from.line,u+=v.from.ch-v.to.ch}for(d=a;p=jv(d);){var w=p.find(0,!0);u-=d.text.length-w.from.ch,d=w.to.line,u+=d.text.length-w.to.ch}return u}M(Uv,\"lineLength\");function xb(a){var u=a.display,p=a.doc;u.maxLine=$e(p,p.first),u.maxLineLength=Uv(u.maxLine),u.maxLineChanged=!0,p.iter(function(d){var v=Uv(d);v>u.maxLineLength&&(u.maxLineLength=v,u.maxLine=d)})}M(xb,\"findMaxLine\");var Id=M(function(a,u,p){this.text=a,IN(this,u),this.height=p?p(this):1},\"Line\");Id.prototype.lineNo=function(){return xt(this)},$o(Id);function sV(a,u,p,d){a.text=u,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),ON(a),IN(a,p);var v=d?d(a):1;v!=a.height&&ni(a,v)}M(sV,\"updateLine\");function lV(a){a.parent=null,ON(a)}M(lV,\"cleanUpLine\");var Sae={},Tae={};function MN(a,u){if(!a||/^\\s*$/.test(a))return null;var p=u.addModeClass?Tae:Sae;return p[a]||(p[a]=a.replace(/\\S+/g,\"cm-$&\"))}M(MN,\"interpretTokenStyle\");function $N(a,u){var p=j(\"span\",null,null,h?\"padding-right: .1px\":null),d={pre:j(\"pre\",[p],\"CodeMirror-line\"),content:p,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption(\"lineWrapping\")};u.measure={};for(var v=0;v<=(u.rest?u.rest.length:0);v++){var w=v?u.rest[v-1]:u.line,k=void 0;d.pos=0,d.addToken=cV,Vo(a.display.measure)&&(k=ei(w,a.doc.direction))&&(d.addToken=dV(d.addToken,k)),d.map=[];var I=u!=a.display.externalMeasured&&xt(w);pV(w,d,CN(a,w,I)),w.styleClasses&&(w.styleClasses.bgClass&&(d.bgClass=Z(w.styleClasses.bgClass,d.bgClass||\"\")),w.styleClasses.textClass&&(d.textClass=Z(w.styleClasses.textClass,d.textClass||\"\"))),d.map.length==0&&d.map.push(0,0,d.content.appendChild(_d(a.display.measure))),v==0?(u.measure.map=d.map,u.measure.cache={}):((u.measure.maps||(u.measure.maps=[])).push(d.map),(u.measure.caches||(u.measure.caches=[])).push({}))}if(h){var R=d.content.lastChild;(/\\bcm-tab\\b/.test(R.className)||R.querySelector&&R.querySelector(\".cm-tab\"))&&(d.content.className=\"cm-tab-wrap-hack\")}return Ze(a,\"renderLine\",a,u.line,d.pre),d.pre.className&&(d.textClass=Z(d.pre.className,d.textClass||\"\")),d}M($N,\"buildLineContent\");function uV(a){var u=U(\"span\",\"•\",\"cm-invalidchar\");return u.title=\"\\\\u\"+a.charCodeAt(0).toString(16),u.setAttribute(\"aria-label\",u.title),u}M(uV,\"defaultSpecialCharPlaceholder\");function cV(a,u,p,d,v,w,k){if(u){var I=a.splitSpaces?fV(u,a.trailingSpace):u,R=a.cm.state.specialChars,$=!1,W;if(!R.test(u))a.col+=u.length,W=document.createTextNode(I),a.map.push(a.pos,a.pos+u.length,W),c&&f<9&&($=!0),a.pos+=u.length;else{W=document.createDocumentFragment();for(var Q=0;;){R.lastIndex=Q;var te=R.exec(u),ee=te?te.index-Q:u.length-Q;if(ee){var fe=document.createTextNode(I.slice(Q,Q+ee));c&&f<9?W.appendChild(U(\"span\",[fe])):W.appendChild(fe),a.map.push(a.pos,a.pos+ee,fe),a.col+=ee,a.pos+=ee}if(!te)break;Q+=ee+1;var ye=void 0;if(te[0]==\"\t\"){var Ne=a.cm.options.tabSize,Ae=Ne-a.col%Ne;ye=W.appendChild(U(\"span\",xn(Ae),\"cm-tab\")),ye.setAttribute(\"role\",\"presentation\"),ye.setAttribute(\"cm-text\",\"\t\"),a.col+=Ae}else te[0]==\"\\r\"||te[0]==`\n`?(ye=W.appendChild(U(\"span\",te[0]==\"\\r\"?\"␍\":\"\",\"cm-invalidchar\")),ye.setAttribute(\"cm-text\",te[0]),a.col+=1):(ye=a.cm.options.specialCharPlaceholder(te[0]),ye.setAttribute(\"cm-text\",te[0]),c&&f<9?W.appendChild(U(\"span\",[ye])):W.appendChild(ye),a.col+=1);a.map.push(a.pos,a.pos+1,ye),a.pos++}}if(a.trailingSpace=I.charCodeAt(u.length-1)==32,p||d||v||$||w||k){var Fe=p||\"\";d&&(Fe+=d),v&&(Fe+=v);var Oe=U(\"span\",[W],Fe,w);if(k)for(var Me in k)k.hasOwnProperty(Me)&&Me!=\"style\"&&Me!=\"class\"&&Oe.setAttribute(Me,k[Me]);return a.content.appendChild(Oe)}a.content.appendChild(W)}}M(cV,\"buildToken\");function fV(a,u){if(a.length>1&&!/ /.test(a))return a;for(var p=u,d=\"\",v=0;v<a.length;v++){var w=a.charAt(v);w==\" \"&&p&&(v==a.length-1||a.charCodeAt(v+1)==32)&&(w=\" \"),d+=w,p=w==\" \"}return d}M(fV,\"splitSpaces\");function dV(a,u){return function(p,d,v,w,k,I,R){v=v?v+\" cm-force-border\":\"cm-force-border\";for(var $=p.pos,W=$+d.length;;){for(var Q=void 0,te=0;te<u.length&&(Q=u[te],!(Q.to>$&&Q.from<=$));te++);if(Q.to>=W)return a(p,d,v,w,k,I,R);a(p,d.slice(0,Q.to-$),v,w,null,I,R),w=null,d=d.slice(Q.to-$),$=Q.to}}}M(dV,\"buildTokenBadBidi\");function VN(a,u,p,d){var v=!d&&p.widgetNode;v&&a.map.push(a.pos,a.pos+u,v),!d&&a.cm.display.input.needsContentAttribute&&(v||(v=a.content.appendChild(document.createElement(\"span\"))),v.setAttribute(\"cm-marker\",p.id)),v&&(a.cm.display.input.setUneditable(v),a.content.appendChild(v)),a.pos+=u,a.trailingSpace=!1}M(VN,\"buildCollapsedSpan\");function pV(a,u,p){var d=a.markedSpans,v=a.text,w=0;if(!d){for(var k=1;k<p.length;k+=2)u.addToken(u,v.slice(w,w=p[k]),MN(p[k+1],u.cm.options));return}for(var I=v.length,R=0,$=1,W=\"\",Q,te,ee=0,fe,ye,Ne,Ae,Fe;;){if(ee==R){fe=ye=Ne=te=\"\",Fe=null,Ae=null,ee=1/0;for(var Oe=[],Me=void 0,Qe=0;Qe<d.length;++Qe){var ze=d[Qe],dt=ze.marker;if(dt.type==\"bookmark\"&&ze.from==R&&dt.widgetNode)Oe.push(dt);else if(ze.from<=R&&(ze.to==null||ze.to>R||dt.collapsed&&ze.to==R&&ze.from==R)){if(ze.to!=null&&ze.to!=R&&ee>ze.to&&(ee=ze.to,ye=\"\"),dt.className&&(fe+=\" \"+dt.className),dt.css&&(te=(te?te+\";\":\"\")+dt.css),dt.startStyle&&ze.from==R&&(Ne+=\" \"+dt.startStyle),dt.endStyle&&ze.to==ee&&(Me||(Me=[])).push(dt.endStyle,ze.to),dt.title&&((Fe||(Fe={})).title=dt.title),dt.attributes)for(var Ht in dt.attributes)(Fe||(Fe={}))[Ht]=dt.attributes[Ht];dt.collapsed&&(!Ae||Tb(Ae.marker,dt)<0)&&(Ae=ze)}else ze.from>R&&ee>ze.from&&(ee=ze.from)}if(Me)for(var dr=0;dr<Me.length;dr+=2)Me[dr+1]==ee&&(ye+=\" \"+Me[dr]);if(!Ae||Ae.from==R)for(var fn=0;fn<Oe.length;++fn)VN(u,0,Oe[fn]);if(Ae&&(Ae.from||0)==R){if(VN(u,(Ae.to==null?I+1:Ae.to)-R,Ae.marker,Ae.from==null),Ae.to==null)return;Ae.to==R&&(Ae=!1)}}if(R>=I)break;for(var Si=Math.min(I,ee);;){if(W){var Ti=R+W.length;if(!Ae){var Bn=Ti>Si?W.slice(0,Si-R):W;u.addToken(u,Bn,Q?Q+fe:fe,Ne,R+Bn.length==ee?ye:\"\",te,Fe)}if(Ti>=Si){W=W.slice(Si-R),R=Si;break}R=Ti,Ne=\"\"}W=v.slice(w,w=p[$++]),Q=MN(p[$++],u.cm.options)}}}M(pV,\"insertLineContent\");function BN(a,u,p){this.line=u,this.rest=aV(u),this.size=this.rest?xt(st(this.rest))-p+1:1,this.node=this.text=null,this.hidden=Ms(a,u)}M(BN,\"LineView\");function qv(a,u,p){for(var d=[],v,w=u;w<p;w=v){var k=new BN(a.doc,$e(a.doc,w),w);v=w+k.size,d.push(k)}return d}M(qv,\"buildViewArray\");var Ld=null;function hV(a){Ld?Ld.ops.push(a):a.ownsGroup=Ld={ops:[a],delayedCallbacks:[]}}M(hV,\"pushOperation\");function vV(a){var u=a.delayedCallbacks,p=0;do{for(;p<u.length;p++)u[p].call(null);for(var d=0;d<a.ops.length;d++){var v=a.ops[d];if(v.cursorActivityHandlers)for(;v.cursorActivityCalled<v.cursorActivityHandlers.length;)v.cursorActivityHandlers[v.cursorActivityCalled++].call(null,v.cm)}}while(p<u.length)}M(vV,\"fireCallbacksForOps\");function mV(a,u){var p=a.ownsGroup;if(p)try{vV(p)}finally{Ld=null,u(p)}}M(mV,\"finishOperation\");var Hv=null;function Qn(a,u){var p=nu(a,u);if(p.length){var d=Array.prototype.slice.call(arguments,2),v;Ld?v=Ld.delayedCallbacks:Hv?v=Hv:(v=Hv=[],setTimeout(gV,0));for(var w=M(function(I){v.push(function(){return p[I].apply(null,d)})},\"loop\"),k=0;k<p.length;++k)w(k)}}M(Qn,\"signalLater\");function gV(){var a=Hv;Hv=null;for(var u=0;u<a.length;++u)a[u]()}M(gV,\"fireOrphanDelayed\");function jN(a,u,p,d){for(var v=0;v<u.changes.length;v++){var w=u.changes[v];w==\"text\"?bV(a,u):w==\"gutter\"?qN(a,u,p,d):w==\"class\"?kb(a,u):w==\"widget\"&&EV(a,u,d)}u.changes=null}M(jN,\"updateLineForChanges\");function Fd(a){return a.node==a.text&&(a.node=U(\"div\",null,null,\"position: relative\"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),c&&f<8&&(a.node.style.zIndex=2)),a.node}M(Fd,\"ensureLineWrapped\");function yV(a,u){var p=u.bgClass?u.bgClass+\" \"+(u.line.bgClass||\"\"):u.line.bgClass;if(p&&(p+=\" CodeMirror-linebackground\"),u.background)p?u.background.className=p:(u.background.parentNode.removeChild(u.background),u.background=null);else if(p){var d=Fd(u);u.background=d.insertBefore(U(\"div\",null,p),d.firstChild),a.display.input.setUneditable(u.background)}}M(yV,\"updateLineBackground\");function UN(a,u){var p=a.display.externalMeasured;return p&&p.line==u.line?(a.display.externalMeasured=null,u.measure=p.measure,p.built):$N(a,u)}M(UN,\"getLineContent\");function bV(a,u){var p=u.text.className,d=UN(a,u);u.text==u.node&&(u.node=d.pre),u.text.parentNode.replaceChild(d.pre,u.text),u.text=d.pre,d.bgClass!=u.bgClass||d.textClass!=u.textClass?(u.bgClass=d.bgClass,u.textClass=d.textClass,kb(a,u)):p&&(u.text.className=p)}M(bV,\"updateLineText\");function kb(a,u){yV(a,u),u.line.wrapClass?Fd(u).className=u.line.wrapClass:u.node!=u.text&&(u.node.className=\"\");var p=u.textClass?u.textClass+\" \"+(u.line.textClass||\"\"):u.line.textClass;u.text.className=p||\"\"}M(kb,\"updateLineClasses\");function qN(a,u,p,d){if(u.gutter&&(u.node.removeChild(u.gutter),u.gutter=null),u.gutterBackground&&(u.node.removeChild(u.gutterBackground),u.gutterBackground=null),u.line.gutterClass){var v=Fd(u);u.gutterBackground=U(\"div\",null,\"CodeMirror-gutter-background \"+u.line.gutterClass,\"left: \"+(a.options.fixedGutter?d.fixedPos:-d.gutterTotalWidth)+\"px; width: \"+d.gutterTotalWidth+\"px\"),a.display.input.setUneditable(u.gutterBackground),v.insertBefore(u.gutterBackground,u.text)}var w=u.line.gutterMarkers;if(a.options.lineNumbers||w){var k=Fd(u),I=u.gutter=U(\"div\",null,\"CodeMirror-gutter-wrapper\",\"left: \"+(a.options.fixedGutter?d.fixedPos:-d.gutterTotalWidth)+\"px\");if(I.setAttribute(\"aria-hidden\",\"true\"),a.display.input.setUneditable(I),k.insertBefore(I,u.text),u.line.gutterClass&&(I.className+=\" \"+u.line.gutterClass),a.options.lineNumbers&&(!w||!w[\"CodeMirror-linenumbers\"])&&(u.lineNumber=I.appendChild(U(\"div\",gc(a.options,p),\"CodeMirror-linenumber CodeMirror-gutter-elt\",\"left: \"+d.gutterLeft[\"CodeMirror-linenumbers\"]+\"px; width: \"+a.display.lineNumInnerWidth+\"px\"))),w)for(var R=0;R<a.display.gutterSpecs.length;++R){var $=a.display.gutterSpecs[R].className,W=w.hasOwnProperty($)&&w[$];W&&I.appendChild(U(\"div\",[W],\"CodeMirror-gutter-elt\",\"left: \"+d.gutterLeft[$]+\"px; width: \"+d.gutterWidth[$]+\"px\"))}}}M(qN,\"updateLineGutter\");function EV(a,u,p){u.alignable&&(u.alignable=null);for(var d=V(\"CodeMirror-linewidget\"),v=u.node.firstChild,w=void 0;v;v=w)w=v.nextSibling,d.test(v.className)&&u.node.removeChild(v);HN(a,u,p)}M(EV,\"updateLineWidgets\");function wV(a,u,p,d){var v=UN(a,u);return u.text=u.node=v.pre,v.bgClass&&(u.bgClass=v.bgClass),v.textClass&&(u.textClass=v.textClass),kb(a,u),qN(a,u,p,d),HN(a,u,d),u.node}M(wV,\"buildLineElement\");function HN(a,u,p){if(zN(a,u.line,u,p,!0),u.rest)for(var d=0;d<u.rest.length;d++)zN(a,u.rest[d],u,p,!1)}M(HN,\"insertLineWidgets\");function zN(a,u,p,d,v){if(u.widgets)for(var w=Fd(p),k=0,I=u.widgets;k<I.length;++k){var R=I[k],$=U(\"div\",[R.node],\"CodeMirror-linewidget\"+(R.className?\" \"+R.className:\"\"));R.handleMouseEvents||$.setAttribute(\"cm-ignore-events\",\"true\"),SV(R,$,p,d),a.display.input.setUneditable($),v&&R.above?w.insertBefore($,p.gutter||p.text):w.appendChild($),Qn(R,\"redraw\")}}M(zN,\"insertLineWidgetsFor\");function SV(a,u,p,d){if(a.noHScroll){(p.alignable||(p.alignable=[])).push(u);var v=d.wrapperWidth;u.style.left=d.fixedPos+\"px\",a.coverGutter||(v-=d.gutterTotalWidth,u.style.paddingLeft=d.gutterTotalWidth+\"px\"),u.style.width=v+\"px\"}a.coverGutter&&(u.style.zIndex=5,u.style.position=\"relative\",a.noHScroll||(u.style.marginLeft=-d.gutterTotalWidth+\"px\"))}M(SV,\"positionLineWidget\");function Rd(a){if(a.height!=null)return a.height;var u=a.doc.cm;if(!u)return 0;if(!ne(document.body,a.node)){var p=\"position: relative;\";a.coverGutter&&(p+=\"margin-left: -\"+u.display.gutters.offsetWidth+\"px;\"),a.noHScroll&&(p+=\"width: \"+u.display.wrapper.clientWidth+\"px;\"),z(u.display.measure,U(\"div\",[a.node],null,p))}return a.height=a.node.parentNode.offsetHeight}M(Rd,\"widgetHeight\");function Ja(a,u){for(var p=Ga(u);p!=a.wrapper;p=p.parentNode)if(!p||p.nodeType==1&&p.getAttribute(\"cm-ignore-events\")==\"true\"||p.parentNode==a.sizer&&p!=a.mover)return!0}M(Ja,\"eventInWidget\");function zv(a){return a.lineSpace.offsetTop}M(zv,\"paddingTop\");function Nb(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}M(Nb,\"paddingVert\");function GN(a){if(a.cachedPaddingH)return a.cachedPaddingH;var u=z(a.measure,U(\"pre\",\"x\",\"CodeMirror-line-like\")),p=window.getComputedStyle?window.getComputedStyle(u):u.currentStyle,d={left:parseInt(p.paddingLeft),right:parseInt(p.paddingRight)};return!isNaN(d.left)&&!isNaN(d.right)&&(a.cachedPaddingH=d),d}M(GN,\"paddingH\");function wa(a){return we-a.display.nativeBarWidth}M(wa,\"scrollGap\");function su(a){return a.display.scroller.clientWidth-wa(a)-a.display.barWidth}M(su,\"displayWidth\");function Db(a){return a.display.scroller.clientHeight-wa(a)-a.display.barHeight}M(Db,\"displayHeight\");function TV(a,u,p){var d=a.options.lineWrapping,v=d&&su(a);if(!u.measure.heights||d&&u.measure.width!=v){var w=u.measure.heights=[];if(d){u.measure.width=v;for(var k=u.text.firstChild.getClientRects(),I=0;I<k.length-1;I++){var R=k[I],$=k[I+1];Math.abs(R.bottom-$.bottom)>2&&w.push((R.bottom+$.top)/2-p.top)}}w.push(p.bottom-p.top)}}M(TV,\"ensureLineHeights\");function WN(a,u,p){if(a.line==u)return{map:a.measure.map,cache:a.measure.cache};if(a.rest){for(var d=0;d<a.rest.length;d++)if(a.rest[d]==u)return{map:a.measure.maps[d],cache:a.measure.caches[d]};for(var v=0;v<a.rest.length;v++)if(xt(a.rest[v])>p)return{map:a.measure.maps[v],cache:a.measure.caches[v],before:!0}}}M(WN,\"mapFromLineView\");function _V(a,u){u=qo(u);var p=xt(u),d=a.display.externalMeasured=new BN(a.doc,u,p);d.lineN=p;var v=d.built=$N(a,d);return d.text=v.pre,z(a.display.lineMeasure,v.pre),d}M(_V,\"updateExternalMeasurement\");function QN(a,u,p,d){return Sa(a,yc(a,u),p,d)}M(QN,\"measureChar\");function Ab(a,u){if(u>=a.display.viewFrom&&u<a.display.viewTo)return a.display.view[uu(a,u)];var p=a.display.externalMeasured;if(p&&u>=p.lineN&&u<p.lineN+p.size)return p}M(Ab,\"findViewForLine\");function yc(a,u){var p=xt(u),d=Ab(a,p);d&&!d.text?d=null:d&&d.changes&&(jN(a,d,p,Rb(a)),a.curOp.forceUpdate=!0),d||(d=_V(a,u));var v=WN(d,u,p);return{line:u,view:d,rect:null,map:v.map,cache:v.cache,before:v.before,hasHeights:!1}}M(yc,\"prepareMeasureForLine\");function Sa(a,u,p,d,v){u.before&&(p=-1);var w=p+(d||\"\"),k;return u.cache.hasOwnProperty(w)?k=u.cache[w]:(u.rect||(u.rect=u.view.text.getBoundingClientRect()),u.hasHeights||(TV(a,u.view,u.rect),u.hasHeights=!0),k=kV(a,u,p,d),k.bogus||(u.cache[w]=k)),{left:k.left,right:k.right,top:v?k.rtop:k.top,bottom:v?k.rbottom:k.bottom}}M(Sa,\"measureCharPrepared\");var CV={left:0,right:0,top:0,bottom:0};function YN(a,u,p){for(var d,v,w,k,I,R,$=0;$<a.length;$+=3)if(I=a[$],R=a[$+1],u<I?(v=0,w=1,k=\"left\"):u<R?(v=u-I,w=v+1):($==a.length-3||u==R&&a[$+3]>u)&&(w=R-I,v=w-1,u>=R&&(k=\"right\")),v!=null){if(d=a[$+2],I==R&&p==(d.insertLeft?\"left\":\"right\")&&(k=p),p==\"left\"&&v==0)for(;$&&a[$-2]==a[$-3]&&a[$-1].insertLeft;)d=a[($-=3)+2],k=\"left\";if(p==\"right\"&&v==R-I)for(;$<a.length-3&&a[$+3]==a[$+4]&&!a[$+5].insertLeft;)d=a[($+=3)+2],k=\"right\";break}return{node:d,start:v,end:w,collapse:k,coverStart:I,coverEnd:R}}M(YN,\"nodeAndOffsetInLineMap\");function xV(a,u){var p=CV;if(u==\"left\")for(var d=0;d<a.length&&(p=a[d]).left==p.right;d++);else for(var v=a.length-1;v>=0&&(p=a[v]).left==p.right;v--);return p}M(xV,\"getUsefulRect\");function kV(a,u,p,d){var v=YN(u.map,p,d),w=v.node,k=v.start,I=v.end,R=v.collapse,$;if(w.nodeType==3){for(var W=0;W<4;W++){for(;k&&pc(u.line.text.charAt(v.coverStart+k));)--k;for(;v.coverStart+I<v.coverEnd&&pc(u.line.text.charAt(v.coverStart+I));)++I;if(c&&f<9&&k==0&&I==v.coverEnd-v.coverStart?$=w.parentNode.getBoundingClientRect():$=xV(X(w,k,I).getClientRects(),d),$.left||$.right||k==0)break;I=k,k=k-1,R=\"right\"}c&&f<11&&($=NV(a.display.measure,$))}else{k>0&&(R=d=\"right\");var Q;a.options.lineWrapping&&(Q=w.getClientRects()).length>1?$=Q[d==\"right\"?Q.length-1:0]:$=w.getBoundingClientRect()}if(c&&f<9&&!k&&(!$||!$.left&&!$.right)){var te=w.parentNode.getClientRects()[0];te?$={left:te.left,right:te.left+wc(a.display),top:te.top,bottom:te.bottom}:$=CV}for(var ee=$.top-u.rect.top,fe=$.bottom-u.rect.top,ye=(ee+fe)/2,Ne=u.view.measure.heights,Ae=0;Ae<Ne.length-1&&!(ye<Ne[Ae]);Ae++);var Fe=Ae?Ne[Ae-1]:0,Oe=Ne[Ae],Me={left:(R==\"right\"?$.right:$.left)-u.rect.left,right:(R==\"left\"?$.left:$.right)-u.rect.left,top:Fe,bottom:Oe};return!$.left&&!$.right&&(Me.bogus=!0),a.options.singleCursorHeightPerLine||(Me.rtop=ee,Me.rbottom=fe),Me}M(kV,\"measureCharInner\");function NV(a,u){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Wa(a))return u;var p=screen.logicalXDPI/screen.deviceXDPI,d=screen.logicalYDPI/screen.deviceYDPI;return{left:u.left*p,right:u.right*p,top:u.top*d,bottom:u.bottom*d}}M(NV,\"maybeUpdateRectForZooming\");function JN(a){if(a.measure&&(a.measure.cache={},a.measure.heights=null,a.rest))for(var u=0;u<a.rest.length;u++)a.measure.caches[u]={}}M(JN,\"clearLineMeasurementCacheFor\");function KN(a){a.display.externalMeasure=null,G(a.display.lineMeasure);for(var u=0;u<a.display.view.length;u++)JN(a.display.view[u])}M(KN,\"clearLineMeasurementCache\");function Pd(a){KN(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}M(Pd,\"clearCaches\");function XN(){return m&&b?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}M(XN,\"pageScrollX\");function ZN(){return m&&b?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}M(ZN,\"pageScrollY\");function Ob(a){var u=qo(a),p=u.widgets,d=0;if(p)for(var v=0;v<p.length;++v)p[v].above&&(d+=Rd(p[v]));return d}M(Ob,\"widgetTopHeight\");function Gv(a,u,p,d,v){if(!v){var w=Ob(u);p.top+=w,p.bottom+=w}if(d==\"line\")return p;d||(d=\"local\");var k=Ya(u);if(d==\"local\"?k+=zv(a.display):k-=a.display.viewOffset,d==\"page\"||d==\"window\"){var I=a.display.lineSpace.getBoundingClientRect();k+=I.top+(d==\"window\"?0:ZN());var R=I.left+(d==\"window\"?0:XN());p.left+=R,p.right+=R}return p.top+=k,p.bottom+=k,p}M(Gv,\"intoCoordSystem\");function eD(a,u,p){if(p==\"div\")return u;var d=u.left,v=u.top;if(p==\"page\")d-=XN(),v-=ZN();else if(p==\"local\"||!p){var w=a.display.sizer.getBoundingClientRect();d+=w.left,v+=w.top}var k=a.display.lineSpace.getBoundingClientRect();return{left:d-k.left,top:v-k.top}}M(eD,\"fromCoordSystem\");function Wv(a,u,p,d,v){return d||(d=$e(a.doc,u.line)),Gv(a,d,QN(a,d,u.ch,v),p)}M(Wv,\"charCoords\");function Ho(a,u,p,d,v,w){d=d||$e(a.doc,u.line),v||(v=yc(a,d));function k(fe,ye){var Ne=Sa(a,v,fe,ye?\"right\":\"left\",w);return ye?Ne.left=Ne.right:Ne.right=Ne.left,Gv(a,d,Ne,p)}M(k,\"get\");var I=ei(d,a.doc.direction),R=u.ch,$=u.sticky;if(R>=d.text.length?(R=d.text.length,$=\"before\"):R<=0&&(R=0,$=\"after\"),!I)return k($==\"before\"?R-1:R,$==\"before\");function W(fe,ye,Ne){var Ae=I[ye],Fe=Ae.level==1;return k(Ne?fe-1:fe,Fe!=Ne)}M(W,\"getBidi\");var Q=cn(I,R,$),te=Vi,ee=W(R,Q,$==\"before\");return te!=null&&(ee.other=W(R,te,$!=\"before\")),ee}M(Ho,\"cursorCoords\");function tD(a,u){var p=0;u=Re(a.doc,u),a.options.lineWrapping||(p=wc(a.display)*u.ch);var d=$e(a.doc,u.line),v=Ya(d)+zv(a.display);return{left:p,right:p,top:v,bottom:v+d.height}}M(tD,\"estimateCoords\");function Ib(a,u,p,d,v){var w=_e(a,u,p);return w.xRel=v,d&&(w.outside=d),w}M(Ib,\"PosWithInfo\");function Lb(a,u,p){var d=a.doc;if(p+=a.display.viewOffset,p<0)return Ib(d.first,0,null,-1,-1);var v=Uo(d,p),w=d.first+d.size-1;if(v>w)return Ib(d.first+d.size-1,$e(d,w).text.length,null,1,1);u<0&&(u=0);for(var k=$e(d,v);;){var I=DV(a,k,v,u,p),R=iV(k,I.ch+(I.xRel>0||I.outside>0?1:0));if(!R)return I;var $=R.find(1);if($.line==v)return $;k=$e(d,v=$.line)}}M(Lb,\"coordsChar\");function nD(a,u,p,d){d-=Ob(u);var v=u.text.length,w=Mo(function(k){return Sa(a,p,k-1).bottom<=d},v,0);return v=Mo(function(k){return Sa(a,p,k).top>d},w,v),{begin:w,end:v}}M(nD,\"wrappedLineExtent\");function rD(a,u,p,d){p||(p=yc(a,u));var v=Gv(a,u,Sa(a,p,d),\"line\").top;return nD(a,u,p,v)}M(rD,\"wrappedLineExtentChar\");function Fb(a,u,p,d){return a.bottom<=p?!1:a.top>p?!0:(d?a.left:a.right)>u}M(Fb,\"boxIsAfter\");function DV(a,u,p,d,v){v-=Ya(u);var w=yc(a,u),k=Ob(u),I=0,R=u.text.length,$=!0,W=ei(u,a.doc.direction);if(W){var Q=(a.options.lineWrapping?OV:AV)(a,u,p,w,W,d,v);$=Q.level!=1,I=$?Q.from:Q.to-1,R=$?Q.to:Q.from-1}var te=null,ee=null,fe=Mo(function(Qe){var ze=Sa(a,w,Qe);return ze.top+=k,ze.bottom+=k,Fb(ze,d,v,!1)?(ze.top<=v&&ze.left<=d&&(te=Qe,ee=ze),!0):!1},I,R),ye,Ne,Ae=!1;if(ee){var Fe=d-ee.left<ee.right-d,Oe=Fe==$;fe=te+(Oe?0:1),Ne=Oe?\"after\":\"before\",ye=Fe?ee.left:ee.right}else{!$&&(fe==R||fe==I)&&fe++,Ne=fe==0?\"after\":fe==u.text.length?\"before\":Sa(a,w,fe-($?1:0)).bottom+k<=v==$?\"after\":\"before\";var Me=Ho(a,_e(p,fe,Ne),\"line\",u,w);ye=Me.left,Ae=v<Me.top?-1:v>=Me.bottom?1:0}return fe=wd(u.text,fe,1),Ib(p,fe,Ne,Ae,d-ye)}M(DV,\"coordsCharInner\");function AV(a,u,p,d,v,w,k){var I=Mo(function(Q){var te=v[Q],ee=te.level!=1;return Fb(Ho(a,_e(p,ee?te.to:te.from,ee?\"before\":\"after\"),\"line\",u,d),w,k,!0)},0,v.length-1),R=v[I];if(I>0){var $=R.level!=1,W=Ho(a,_e(p,$?R.from:R.to,$?\"after\":\"before\"),\"line\",u,d);Fb(W,w,k,!0)&&W.top>k&&(R=v[I-1])}return R}M(AV,\"coordsBidiPart\");function OV(a,u,p,d,v,w,k){var I=nD(a,u,d,k),R=I.begin,$=I.end;/\\s/.test(u.text.charAt($-1))&&$--;for(var W=null,Q=null,te=0;te<v.length;te++){var ee=v[te];if(!(ee.from>=$||ee.to<=R)){var fe=ee.level!=1,ye=Sa(a,d,fe?Math.min($,ee.to)-1:Math.max(R,ee.from)).right,Ne=ye<w?w-ye+1e9:ye-w;(!W||Q>Ne)&&(W=ee,Q=Ne)}}return W||(W=v[v.length-1]),W.from<R&&(W={from:R,to:W.to,level:W.level}),W.to>$&&(W={from:W.from,to:$,level:W.level}),W}M(OV,\"coordsBidiPartWrapped\");var bc;function Ec(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(bc==null){bc=U(\"pre\",null,\"CodeMirror-line-like\");for(var u=0;u<49;++u)bc.appendChild(document.createTextNode(\"x\")),bc.appendChild(U(\"br\"));bc.appendChild(document.createTextNode(\"x\"))}z(a.measure,bc);var p=bc.offsetHeight/50;return p>3&&(a.cachedTextHeight=p),G(a.measure),p||1}M(Ec,\"textHeight\");function wc(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var u=U(\"span\",\"xxxxxxxxxx\"),p=U(\"pre\",[u],\"CodeMirror-line-like\");z(a.measure,p);var d=u.getBoundingClientRect(),v=(d.right-d.left)/10;return v>2&&(a.cachedCharWidth=v),v||10}M(wc,\"charWidth\");function Rb(a){for(var u=a.display,p={},d={},v=u.gutters.clientLeft,w=u.gutters.firstChild,k=0;w;w=w.nextSibling,++k){var I=a.display.gutterSpecs[k].className;p[I]=w.offsetLeft+w.clientLeft+v,d[I]=w.clientWidth}return{fixedPos:Pb(u),gutterTotalWidth:u.gutters.offsetWidth,gutterLeft:p,gutterWidth:d,wrapperWidth:u.wrapper.clientWidth}}M(Rb,\"getDimensions\");function Pb(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}M(Pb,\"compensateForHScroll\");function iD(a){var u=Ec(a.display),p=a.options.lineWrapping,d=p&&Math.max(5,a.display.scroller.clientWidth/wc(a.display)-3);return function(v){if(Ms(a.doc,v))return 0;var w=0;if(v.widgets)for(var k=0;k<v.widgets.length;k++)v.widgets[k].height&&(w+=v.widgets[k].height);return p?w+(Math.ceil(v.text.length/d)||1)*u:w+u}}M(iD,\"estimateHeight\");function Mb(a){var u=a.doc,p=iD(a);u.iter(function(d){var v=p(d);v!=d.height&&ni(d,v)})}M(Mb,\"estimateLineHeights\");function lu(a,u,p,d){var v=a.display;if(!p&&Ga(u).getAttribute(\"cm-not-content\")==\"true\")return null;var w,k,I=v.lineSpace.getBoundingClientRect();try{w=u.clientX-I.left,k=u.clientY-I.top}catch{return null}var R=Lb(a,w,k),$;if(d&&R.xRel>0&&($=$e(a.doc,R.line).text).length==R.ch){var W=ue($,$.length,a.options.tabSize)-$.length;R=_e(R.line,Math.max(0,Math.round((w-GN(a.display).left)/wc(a.display))-W))}return R}M(lu,\"posFromMouse\");function uu(a,u){if(u>=a.display.viewTo||(u-=a.display.viewFrom,u<0))return null;for(var p=a.display.view,d=0;d<p.length;d++)if(u-=p[d].size,u<0)return d}M(uu,\"findViewIndex\");function ri(a,u,p,d){u==null&&(u=a.doc.first),p==null&&(p=a.doc.first+a.doc.size),d||(d=0);var v=a.display;if(d&&p<v.viewTo&&(v.updateLineNumbers==null||v.updateLineNumbers>u)&&(v.updateLineNumbers=u),a.curOp.viewChanged=!0,u>=v.viewTo)Ps&&_b(a.doc,u)<v.viewTo&&Vs(a);else if(p<=v.viewFrom)Ps&&PN(a.doc,p+d)>v.viewFrom?Vs(a):(v.viewFrom+=d,v.viewTo+=d);else if(u<=v.viewFrom&&p>=v.viewTo)Vs(a);else if(u<=v.viewFrom){var w=Qv(a,p,p+d,1);w?(v.view=v.view.slice(w.index),v.viewFrom=w.lineN,v.viewTo+=d):Vs(a)}else if(p>=v.viewTo){var k=Qv(a,u,u,-1);k?(v.view=v.view.slice(0,k.index),v.viewTo=k.lineN):Vs(a)}else{var I=Qv(a,u,u,-1),R=Qv(a,p,p+d,1);I&&R?(v.view=v.view.slice(0,I.index).concat(qv(a,I.lineN,R.lineN)).concat(v.view.slice(R.index)),v.viewTo+=d):Vs(a)}var $=v.externalMeasured;$&&(p<$.lineN?$.lineN+=d:u<$.lineN+$.size&&(v.externalMeasured=null))}M(ri,\"regChange\");function $s(a,u,p){a.curOp.viewChanged=!0;var d=a.display,v=a.display.externalMeasured;if(v&&u>=v.lineN&&u<v.lineN+v.size&&(d.externalMeasured=null),!(u<d.viewFrom||u>=d.viewTo)){var w=d.view[uu(a,u)];if(w.node!=null){var k=w.changes||(w.changes=[]);le(k,p)==-1&&k.push(p)}}}M($s,\"regLineChange\");function Vs(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}M(Vs,\"resetView\");function Qv(a,u,p,d){var v=uu(a,u),w,k=a.display.view;if(!Ps||p==a.doc.first+a.doc.size)return{index:v,lineN:p};for(var I=a.display.viewFrom,R=0;R<v;R++)I+=k[R].size;if(I!=u){if(d>0){if(v==k.length-1)return null;w=I+k[v].size-u,v++}else w=I-u;u+=w,p+=w}for(;_b(a.doc,p)!=p;){if(v==(d<0?0:k.length-1))return null;p+=d*k[v-(d<0?1:0)].size,v+=d}return{index:v,lineN:p}}M(Qv,\"viewCuttingPoint\");function IV(a,u,p){var d=a.display,v=d.view;v.length==0||u>=d.viewTo||p<=d.viewFrom?(d.view=qv(a,u,p),d.viewFrom=u):(d.viewFrom>u?d.view=qv(a,u,d.viewFrom).concat(d.view):d.viewFrom<u&&(d.view=d.view.slice(uu(a,u))),d.viewFrom=u,d.viewTo<p?d.view=d.view.concat(qv(a,d.viewTo,p)):d.viewTo>p&&(d.view=d.view.slice(0,uu(a,p)))),d.viewTo=p}M(IV,\"adjustView\");function oD(a){for(var u=a.display.view,p=0,d=0;d<u.length;d++){var v=u[d];!v.hidden&&(!v.node||v.changes)&&++p}return p}M(oD,\"countDirtyView\");function Md(a){a.display.input.showSelection(a.display.input.prepareSelection())}M(Md,\"updateSelection\");function aD(a,u){u===void 0&&(u=!0);var p=a.doc,d={},v=d.cursors=document.createDocumentFragment(),w=d.selection=document.createDocumentFragment(),k=a.options.$customCursor;k&&(u=!0);for(var I=0;I<p.sel.ranges.length;I++)if(!(!u&&I==p.sel.primIndex)){var R=p.sel.ranges[I];if(!(R.from().line>=a.display.viewTo||R.to().line<a.display.viewFrom)){var $=R.empty();if(k){var W=k(a,R);W&&$b(a,W,v)}else($||a.options.showCursorWhenSelecting)&&$b(a,R.head,v);$||LV(a,R,w)}}return d}M(aD,\"prepareSelection\");function $b(a,u,p){var d=Ho(a,u,\"div\",null,null,!a.options.singleCursorHeightPerLine),v=p.appendChild(U(\"div\",\" \",\"CodeMirror-cursor\"));if(v.style.left=d.left+\"px\",v.style.top=d.top+\"px\",v.style.height=Math.max(0,d.bottom-d.top)*a.options.cursorHeight+\"px\",/\\bcm-fat-cursor\\b/.test(a.getWrapperElement().className)){var w=Wv(a,u,\"div\",null,null),k=w.right-w.left;v.style.width=(k>0?k:a.defaultCharWidth())+\"px\"}if(d.other){var I=p.appendChild(U(\"div\",\" \",\"CodeMirror-cursor CodeMirror-secondarycursor\"));I.style.display=\"\",I.style.left=d.other.left+\"px\",I.style.top=d.other.top+\"px\",I.style.height=(d.other.bottom-d.other.top)*.85+\"px\"}}M($b,\"drawSelectionCursor\");function Yv(a,u){return a.top-u.top||a.left-u.left}M(Yv,\"cmpCoords\");function LV(a,u,p){var d=a.display,v=a.doc,w=document.createDocumentFragment(),k=GN(a.display),I=k.left,R=Math.max(d.sizerWidth,su(a)-d.sizer.offsetLeft)-k.right,$=v.direction==\"ltr\";function W(Oe,Me,Qe,ze){Me<0&&(Me=0),Me=Math.round(Me),ze=Math.round(ze),w.appendChild(U(\"div\",null,\"CodeMirror-selected\",\"position: absolute; left: \"+Oe+`px;\n top: `+Me+\"px; width: \"+(Qe??R-Oe)+`px;\n height: `+(ze-Me)+\"px\"))}M(W,\"add\");function Q(Oe,Me,Qe){var ze=$e(v,Oe),dt=ze.text.length,Ht,dr;function fn(Bn,_i){return Wv(a,_e(Oe,Bn),\"div\",ze,_i)}M(fn,\"coords\");function Si(Bn,_i,Dr){var Kn=rD(a,ze,null,Bn),jn=_i==\"ltr\"==(Dr==\"after\")?\"left\":\"right\",wn=Dr==\"after\"?Kn.begin:Kn.end-(/\\s/.test(ze.text.charAt(Kn.end-1))?2:1);return fn(wn,jn)[jn]}M(Si,\"wrapX\");var Ti=ei(ze,v.direction);return Rv(Ti,Me||0,Qe??dt,function(Bn,_i,Dr,Kn){var jn=Dr==\"ltr\",wn=fn(Bn,jn?\"left\":\"right\"),Ci=fn(_i-1,jn?\"right\":\"left\"),Kd=Me==null&&Bn==0,vu=Qe==null&&_i==dt,Br=Kn==0,Ka=!Ti||Kn==Ti.length-1;if(Ci.top-wn.top<=3){var pr=($?Kd:vu)&&Br,gA=($?vu:Kd)&&Ka,zs=pr?I:(jn?wn:Ci).left,Fc=gA?R:(jn?Ci:wn).right;W(zs,wn.top,Fc-zs,wn.bottom)}else{var Rc,ii,Xd,yA;jn?(Rc=$&&Kd&&Br?I:wn.left,ii=$?R:Si(Bn,Dr,\"before\"),Xd=$?I:Si(_i,Dr,\"after\"),yA=$&&vu&&Ka?R:Ci.right):(Rc=$?Si(Bn,Dr,\"before\"):I,ii=!$&&Kd&&Br?R:wn.right,Xd=!$&&vu&&Ka?I:Ci.left,yA=$?Si(_i,Dr,\"after\"):R),W(Rc,wn.top,ii-Rc,wn.bottom),wn.bottom<Ci.top&&W(I,wn.bottom,null,Ci.top),W(Xd,Ci.top,yA-Xd,Ci.bottom)}(!Ht||Yv(wn,Ht)<0)&&(Ht=wn),Yv(Ci,Ht)<0&&(Ht=Ci),(!dr||Yv(wn,dr)<0)&&(dr=wn),Yv(Ci,dr)<0&&(dr=Ci)}),{start:Ht,end:dr}}M(Q,\"drawForLine\");var te=u.from(),ee=u.to();if(te.line==ee.line)Q(te.line,te.ch,ee.ch);else{var fe=$e(v,te.line),ye=$e(v,ee.line),Ne=qo(fe)==qo(ye),Ae=Q(te.line,te.ch,Ne?fe.text.length+1:null).end,Fe=Q(ee.line,Ne?0:null,ee.ch).start;Ne&&(Ae.top<Fe.top-2?(W(Ae.right,Ae.top,null,Ae.bottom),W(I,Fe.top,Fe.left,Fe.bottom)):W(Ae.right,Ae.top,Fe.left-Ae.right,Ae.bottom)),Ae.bottom<Fe.top&&W(I,Ae.bottom,null,Fe.top)}p.appendChild(w)}M(LV,\"drawSelectionRange\");function Vb(a){if(a.state.focused){var u=a.display;clearInterval(u.blinker);var p=!0;u.cursorDiv.style.visibility=\"\",a.options.cursorBlinkRate>0?u.blinker=setInterval(function(){a.hasFocus()||Sc(a),u.cursorDiv.style.visibility=(p=!p)?\"\":\"hidden\"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(u.cursorDiv.style.visibility=\"hidden\")}}M(Vb,\"restartBlink\");function sD(a){a.hasFocus()||(a.display.input.focus(),a.state.focused||jb(a))}M(sD,\"ensureFocus\");function Bb(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,a.state.focused&&Sc(a))},100)}M(Bb,\"delayBlurEvent\");function jb(a,u){a.state.delayingBlurEvent&&!a.state.draggingText&&(a.state.delayingBlurEvent=!1),a.options.readOnly!=\"nocursor\"&&(a.state.focused||(Ze(a,\"focus\",a,u),a.state.focused=!0,re(a.display.wrapper,\"CodeMirror-focused\"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),h&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),Vb(a))}M(jb,\"onFocus\");function Sc(a,u){a.state.delayingBlurEvent||(a.state.focused&&(Ze(a,\"blur\",a,u),a.state.focused=!1,H(a.display.wrapper,\"CodeMirror-focused\")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}M(Sc,\"onBlur\");function Jv(a){for(var u=a.display,p=u.lineDiv.offsetTop,d=Math.max(0,u.scroller.getBoundingClientRect().top),v=u.lineDiv.getBoundingClientRect().top,w=0,k=0;k<u.view.length;k++){var I=u.view[k],R=a.options.lineWrapping,$=void 0,W=0;if(!I.hidden){if(v+=I.line.height,c&&f<8){var Q=I.node.offsetTop+I.node.offsetHeight;$=Q-p,p=Q}else{var te=I.node.getBoundingClientRect();$=te.bottom-te.top,!R&&I.text.firstChild&&(W=I.text.firstChild.getBoundingClientRect().right-te.left-1)}var ee=I.line.height-$;if((ee>.005||ee<-.005)&&(v<d&&(w-=ee),ni(I.line,$),lD(I.line),I.rest))for(var fe=0;fe<I.rest.length;fe++)lD(I.rest[fe]);if(W>a.display.sizerWidth){var ye=Math.ceil(W/wc(a.display));ye>a.display.maxLineLength&&(a.display.maxLineLength=ye,a.display.maxLine=I.line,a.display.maxLineChanged=!0)}}}Math.abs(w)>2&&(u.scroller.scrollTop+=w)}M(Jv,\"updateHeightsInViewport\");function lD(a){if(a.widgets)for(var u=0;u<a.widgets.length;++u){var p=a.widgets[u],d=p.node.parentNode;d&&(p.height=d.offsetHeight)}}M(lD,\"updateWidgetHeight\");function Kv(a,u,p){var d=p&&p.top!=null?Math.max(0,p.top):a.scroller.scrollTop;d=Math.floor(d-zv(a));var v=p&&p.bottom!=null?p.bottom:d+a.wrapper.clientHeight,w=Uo(u,d),k=Uo(u,v);if(p&&p.ensure){var I=p.ensure.from.line,R=p.ensure.to.line;I<w?(w=I,k=Uo(u,Ya($e(u,I))+a.wrapper.clientHeight)):Math.min(R,u.lastLine())>=k&&(w=Uo(u,Ya($e(u,R))-a.wrapper.clientHeight),k=R)}return{from:w,to:Math.max(k,w+1)}}M(Kv,\"visibleLines\");function FV(a,u){if(!En(a,\"scrollCursorIntoView\")){var p=a.display,d=p.sizer.getBoundingClientRect(),v=null;if(u.top+d.top<0?v=!0:u.bottom+d.top>(window.innerHeight||document.documentElement.clientHeight)&&(v=!1),v!=null&&!D){var w=U(\"div\",\"\",null,`position: absolute;\n top: `+(u.top-p.viewOffset-zv(a.display))+`px;\n height: `+(u.bottom-u.top+wa(a)+p.barHeight)+`px;\n left: `+u.left+\"px; width: \"+Math.max(2,u.right-u.left)+\"px;\");a.display.lineSpace.appendChild(w),w.scrollIntoView(v),a.display.lineSpace.removeChild(w)}}}M(FV,\"maybeScrollWindow\");function RV(a,u,p,d){d==null&&(d=0);var v;!a.options.lineWrapping&&u==p&&(p=u.sticky==\"before\"?_e(u.line,u.ch+1,\"before\"):u,u=u.ch?_e(u.line,u.sticky==\"before\"?u.ch-1:u.ch,\"after\"):u);for(var w=0;w<5;w++){var k=!1,I=Ho(a,u),R=!p||p==u?I:Ho(a,p);v={left:Math.min(I.left,R.left),top:Math.min(I.top,R.top)-d,right:Math.max(I.left,R.left),bottom:Math.max(I.bottom,R.bottom)+d};var $=Ub(a,v),W=a.doc.scrollTop,Q=a.doc.scrollLeft;if($.scrollTop!=null&&(Vd(a,$.scrollTop),Math.abs(a.doc.scrollTop-W)>1&&(k=!0)),$.scrollLeft!=null&&(cu(a,$.scrollLeft),Math.abs(a.doc.scrollLeft-Q)>1&&(k=!0)),!k)break}return v}M(RV,\"scrollPosIntoView\");function PV(a,u){var p=Ub(a,u);p.scrollTop!=null&&Vd(a,p.scrollTop),p.scrollLeft!=null&&cu(a,p.scrollLeft)}M(PV,\"scrollIntoView\");function Ub(a,u){var p=a.display,d=Ec(a.display);u.top<0&&(u.top=0);var v=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:p.scroller.scrollTop,w=Db(a),k={};u.bottom-u.top>w&&(u.bottom=u.top+w);var I=a.doc.height+Nb(p),R=u.top<d,$=u.bottom>I-d;if(u.top<v)k.scrollTop=R?0:u.top;else if(u.bottom>v+w){var W=Math.min(u.top,($?I:u.bottom)-w);W!=v&&(k.scrollTop=W)}var Q=a.options.fixedGutter?0:p.gutters.offsetWidth,te=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:p.scroller.scrollLeft-Q,ee=su(a)-p.gutters.offsetWidth,fe=u.right-u.left>ee;return fe&&(u.right=u.left+ee),u.left<10?k.scrollLeft=0:u.left<te?k.scrollLeft=Math.max(0,u.left+Q-(fe?0:10)):u.right>ee+te-3&&(k.scrollLeft=u.right+(fe?0:10)-ee),k}M(Ub,\"calculateScrollPos\");function qb(a,u){u!=null&&(Xv(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+u)}M(qb,\"addToScrollTop\");function Tc(a){Xv(a);var u=a.getCursor();a.curOp.scrollToPos={from:u,to:u,margin:a.options.cursorScrollMargin}}M(Tc,\"ensureCursorVisible\");function $d(a,u,p){(u!=null||p!=null)&&Xv(a),u!=null&&(a.curOp.scrollLeft=u),p!=null&&(a.curOp.scrollTop=p)}M($d,\"scrollToCoords\");function MV(a,u){Xv(a),a.curOp.scrollToPos=u}M(MV,\"scrollToRange\");function Xv(a){var u=a.curOp.scrollToPos;if(u){a.curOp.scrollToPos=null;var p=tD(a,u.from),d=tD(a,u.to);uD(a,p,d,u.margin)}}M(Xv,\"resolveScrollToPos\");function uD(a,u,p,d){var v=Ub(a,{left:Math.min(u.left,p.left),top:Math.min(u.top,p.top)-d,right:Math.max(u.right,p.right),bottom:Math.max(u.bottom,p.bottom)+d});$d(a,v.scrollLeft,v.scrollTop)}M(uD,\"scrollToCoordsRange\");function Vd(a,u){Math.abs(a.doc.scrollTop-u)<2||(i||Gb(a,{top:u}),cD(a,u,!0),i&&Gb(a),jd(a,100))}M(Vd,\"updateScrollTop\");function cD(a,u,p){u=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,u)),!(a.display.scroller.scrollTop==u&&!p)&&(a.doc.scrollTop=u,a.display.scrollbars.setScrollTop(u),a.display.scroller.scrollTop!=u&&(a.display.scroller.scrollTop=u))}M(cD,\"setScrollTop\");function cu(a,u,p,d){u=Math.max(0,Math.min(u,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((p?u==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-u)<2)&&!d)&&(a.doc.scrollLeft=u,hD(a),a.display.scroller.scrollLeft!=u&&(a.display.scroller.scrollLeft=u),a.display.scrollbars.setScrollLeft(u))}M(cu,\"setScrollLeft\");function Bd(a){var u=a.display,p=u.gutters.offsetWidth,d=Math.round(a.doc.height+Nb(a.display));return{clientHeight:u.scroller.clientHeight,viewHeight:u.wrapper.clientHeight,scrollWidth:u.scroller.scrollWidth,clientWidth:u.scroller.clientWidth,viewWidth:u.wrapper.clientWidth,barLeft:a.options.fixedGutter?p:0,docHeight:d,scrollHeight:d+wa(a)+u.barHeight,nativeBarWidth:u.nativeBarWidth,gutterWidth:p}}M(Bd,\"measureForScrollbars\");var _c=M(function(a,u,p){this.cm=p;var d=this.vert=U(\"div\",[U(\"div\",null,null,\"min-width: 1px\")],\"CodeMirror-vscrollbar\"),v=this.horiz=U(\"div\",[U(\"div\",null,null,\"height: 100%; min-height: 1px\")],\"CodeMirror-hscrollbar\");d.tabIndex=v.tabIndex=-1,a(d),a(v),Ye(d,\"scroll\",function(){d.clientHeight&&u(d.scrollTop,\"vertical\")}),Ye(v,\"scroll\",function(){v.clientWidth&&u(v.scrollLeft,\"horizontal\")}),this.checkedZeroWidth=!1,c&&f<8&&(this.horiz.style.minHeight=this.vert.style.minWidth=\"18px\")},\"NativeScrollbars\");_c.prototype.update=function(a){var u=a.scrollWidth>a.clientWidth+1,p=a.scrollHeight>a.clientHeight+1,d=a.nativeBarWidth;if(p){this.vert.style.display=\"block\",this.vert.style.bottom=u?d+\"px\":\"0\";var v=a.viewHeight-(u?d:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+v)+\"px\"}else this.vert.scrollTop=0,this.vert.style.display=\"\",this.vert.firstChild.style.height=\"0\";if(u){this.horiz.style.display=\"block\",this.horiz.style.right=p?d+\"px\":\"0\",this.horiz.style.left=a.barLeft+\"px\";var w=a.viewWidth-a.barLeft-(p?d:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+w)+\"px\"}else this.horiz.style.display=\"\",this.horiz.firstChild.style.width=\"0\";return!this.checkedZeroWidth&&a.clientHeight>0&&(d==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:p?d:0,bottom:u?d:0}},_c.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,\"horiz\")},_c.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,\"vert\")},_c.prototype.zeroWidthHack=function(){var a=T&&!x?\"12px\":\"18px\";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents=\"none\",this.disableHoriz=new ce,this.disableVert=new ce},_c.prototype.enableZeroWidthBar=function(a,u,p){a.style.pointerEvents=\"auto\";function d(){var v=a.getBoundingClientRect(),w=p==\"vert\"?document.elementFromPoint(v.right-1,(v.top+v.bottom)/2):document.elementFromPoint((v.right+v.left)/2,v.bottom-1);w!=a?a.style.pointerEvents=\"none\":u.set(1e3,d)}M(d,\"maybeDisable\"),u.set(1e3,d)},_c.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var Zv=M(function(){},\"NullScrollbars\");Zv.prototype.update=function(){return{bottom:0,right:0}},Zv.prototype.setScrollLeft=function(){},Zv.prototype.setScrollTop=function(){},Zv.prototype.clear=function(){};function Cc(a,u){u||(u=Bd(a));var p=a.display.barWidth,d=a.display.barHeight;fD(a,u);for(var v=0;v<4&&p!=a.display.barWidth||d!=a.display.barHeight;v++)p!=a.display.barWidth&&a.options.lineWrapping&&Jv(a),fD(a,Bd(a)),p=a.display.barWidth,d=a.display.barHeight}M(Cc,\"updateScrollbars\");function fD(a,u){var p=a.display,d=p.scrollbars.update(u);p.sizer.style.paddingRight=(p.barWidth=d.right)+\"px\",p.sizer.style.paddingBottom=(p.barHeight=d.bottom)+\"px\",p.heightForcer.style.borderBottom=d.bottom+\"px solid transparent\",d.right&&d.bottom?(p.scrollbarFiller.style.display=\"block\",p.scrollbarFiller.style.height=d.bottom+\"px\",p.scrollbarFiller.style.width=d.right+\"px\"):p.scrollbarFiller.style.display=\"\",d.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(p.gutterFiller.style.display=\"block\",p.gutterFiller.style.height=d.bottom+\"px\",p.gutterFiller.style.width=u.gutterWidth+\"px\"):p.gutterFiller.style.display=\"\"}M(fD,\"updateScrollbarsInner\");var $V={native:_c,null:Zv};function dD(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&H(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new $V[a.options.scrollbarStyle](function(u){a.display.wrapper.insertBefore(u,a.display.scrollbarFiller),Ye(u,\"mousedown\",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),u.setAttribute(\"cm-not-content\",\"true\")},function(u,p){p==\"horizontal\"?cu(a,u):Vd(a,u)},a),a.display.scrollbars.addClass&&re(a.display.wrapper,a.display.scrollbars.addClass)}M(dD,\"initScrollbars\");var _ae=0;function fu(a){a.curOp={cm:a,viewChanged:!1,startHeight:a.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++_ae,markArrays:null},hV(a.curOp)}M(fu,\"startOperation\");function du(a){var u=a.curOp;u&&mV(u,function(p){for(var d=0;d<p.ops.length;d++)p.ops[d].cm.curOp=null;VV(p)})}M(du,\"endOperation\");function VV(a){for(var u=a.ops,p=0;p<u.length;p++)BV(u[p]);for(var d=0;d<u.length;d++)jV(u[d]);for(var v=0;v<u.length;v++)UV(u[v]);for(var w=0;w<u.length;w++)qV(u[w]);for(var k=0;k<u.length;k++)HV(u[k])}M(VV,\"endOperations\");function BV(a){var u=a.cm,p=u.display;GV(u),a.updateMaxLine&&xb(u),a.mustUpdate=a.viewChanged||a.forceUpdate||a.scrollTop!=null||a.scrollToPos&&(a.scrollToPos.from.line<p.viewFrom||a.scrollToPos.to.line>=p.viewTo)||p.maxLineChanged&&u.options.lineWrapping,a.update=a.mustUpdate&&new Hb(u,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}M(BV,\"endOperation_R1\");function jV(a){a.updatedDisplay=a.mustUpdate&&zb(a.cm,a.update)}M(jV,\"endOperation_W1\");function UV(a){var u=a.cm,p=u.display;a.updatedDisplay&&Jv(u),a.barMeasure=Bd(u),p.maxLineChanged&&!u.options.lineWrapping&&(a.adjustWidthTo=QN(u,p.maxLine,p.maxLine.text.length).left+3,u.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(p.scroller.clientWidth,p.sizer.offsetLeft+a.adjustWidthTo+wa(u)+u.display.barWidth),a.maxScrollLeft=Math.max(0,p.sizer.offsetLeft+a.adjustWidthTo-su(u))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=p.input.prepareSelection())}M(UV,\"endOperation_R2\");function qV(a){var u=a.cm;a.adjustWidthTo!=null&&(u.display.sizer.style.minWidth=a.adjustWidthTo+\"px\",a.maxScrollLeft<u.doc.scrollLeft&&cu(u,Math.min(u.display.scroller.scrollLeft,a.maxScrollLeft),!0),u.display.maxLineChanged=!1);var p=a.focus&&a.focus==J();a.preparedSelection&&u.display.input.showSelection(a.preparedSelection,p),(a.updatedDisplay||a.startHeight!=u.doc.height)&&Cc(u,a.barMeasure),a.updatedDisplay&&Qb(u,a.barMeasure),a.selectionChanged&&Vb(u),u.state.focused&&a.updateInput&&u.display.input.reset(a.typing),p&&sD(a.cm)}M(qV,\"endOperation_W2\");function HV(a){var u=a.cm,p=u.display,d=u.doc;if(a.updatedDisplay&&pD(u,a.update),p.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(p.wheelStartX=p.wheelStartY=null),a.scrollTop!=null&&cD(u,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&cu(u,a.scrollLeft,!0,!0),a.scrollToPos){var v=RV(u,Re(d,a.scrollToPos.from),Re(d,a.scrollToPos.to),a.scrollToPos.margin);FV(u,v)}var w=a.maybeHiddenMarkers,k=a.maybeUnhiddenMarkers;if(w)for(var I=0;I<w.length;++I)w[I].lines.length||Ze(w[I],\"hide\");if(k)for(var R=0;R<k.length;++R)k[R].lines.length&&Ze(k[R],\"unhide\");p.wrapper.offsetHeight&&(d.scrollTop=u.display.scroller.scrollTop),a.changeObjs&&Ze(u,\"changes\",u,a.changeObjs),a.update&&a.update.finish()}M(HV,\"endOperation_finish\");function Ei(a,u){if(a.curOp)return u();fu(a);try{return u()}finally{du(a)}}M(Ei,\"runInOp\");function Yn(a,u){return function(){if(a.curOp)return u.apply(a,arguments);fu(a);try{return u.apply(a,arguments)}finally{du(a)}}}M(Yn,\"operation\");function Vr(a){return function(){if(this.curOp)return a.apply(this,arguments);fu(this);try{return a.apply(this,arguments)}finally{du(this)}}}M(Vr,\"methodOp\");function Jn(a){return function(){var u=this.cm;if(!u||u.curOp)return a.apply(this,arguments);fu(u);try{return a.apply(this,arguments)}finally{du(u)}}}M(Jn,\"docMethodOp\");function jd(a,u){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(u,K(zV,a))}M(jd,\"startWorker\");function zV(a){var u=a.doc;if(!(u.highlightFrontier>=a.display.viewTo)){var p=+new Date+a.options.workTime,d=Ad(a,u.highlightFrontier),v=[];u.iter(d.line,Math.min(u.first+u.size,a.display.viewTo+500),function(w){if(d.line>=a.display.viewFrom){var k=w.styles,I=w.text.length>a.options.maxHighlightLength?bi(u.mode,d.state):null,R=_N(a,w,d,!0);I&&(d.state=I),w.styles=R.styles;var $=w.styleClasses,W=R.classes;W?w.styleClasses=W:$&&(w.styleClasses=null);for(var Q=!k||k.length!=w.styles.length||$!=W&&(!$||!W||$.bgClass!=W.bgClass||$.textClass!=W.textClass),te=0;!Q&&te<k.length;++te)Q=k[te]!=w.styles[te];Q&&v.push(d.line),w.stateAfter=d.save(),d.nextLine()}else w.text.length<=a.options.maxHighlightLength&&Eb(a,w.text,d),w.stateAfter=d.line%5==0?d.save():null,d.nextLine();if(+new Date>p)return jd(a,a.options.workDelay),!0}),u.highlightFrontier=d.line,u.modeFrontier=Math.max(u.modeFrontier,d.line),v.length&&Ei(a,function(){for(var w=0;w<v.length;w++)$s(a,v[w],\"text\")})}}M(zV,\"highlightWorker\");var Hb=M(function(a,u,p){var d=a.display;this.viewport=u,this.visible=Kv(d,a.doc,u),this.editorIsHidden=!d.wrapper.offsetWidth,this.wrapperHeight=d.wrapper.clientHeight,this.wrapperWidth=d.wrapper.clientWidth,this.oldDisplayWidth=su(a),this.force=p,this.dims=Rb(a),this.events=[]},\"DisplayUpdate\");Hb.prototype.signal=function(a,u){Wn(a,u)&&this.events.push(arguments)},Hb.prototype.finish=function(){for(var a=0;a<this.events.length;a++)Ze.apply(null,this.events[a])};function GV(a){var u=a.display;!u.scrollbarsClipped&&u.scroller.offsetWidth&&(u.nativeBarWidth=u.scroller.offsetWidth-u.scroller.clientWidth,u.heightForcer.style.height=wa(a)+\"px\",u.sizer.style.marginBottom=-u.nativeBarWidth+\"px\",u.sizer.style.borderRightWidth=wa(a)+\"px\",u.scrollbarsClipped=!0)}M(GV,\"maybeClipScrollbars\");function WV(a){if(a.hasFocus())return null;var u=J();if(!u||!ne(a.display.lineDiv,u))return null;var p={activeElt:u};if(window.getSelection){var d=window.getSelection();d.anchorNode&&d.extend&&ne(a.display.lineDiv,d.anchorNode)&&(p.anchorNode=d.anchorNode,p.anchorOffset=d.anchorOffset,p.focusNode=d.focusNode,p.focusOffset=d.focusOffset)}return p}M(WV,\"selectionSnapshot\");function QV(a){if(!(!a||!a.activeElt||a.activeElt==J())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&ne(document.body,a.anchorNode)&&ne(document.body,a.focusNode))){var u=window.getSelection(),p=document.createRange();p.setEnd(a.anchorNode,a.anchorOffset),p.collapse(!1),u.removeAllRanges(),u.addRange(p),u.extend(a.focusNode,a.focusOffset)}}M(QV,\"restoreSelection\");function zb(a,u){var p=a.display,d=a.doc;if(u.editorIsHidden)return Vs(a),!1;if(!u.force&&u.visible.from>=p.viewFrom&&u.visible.to<=p.viewTo&&(p.updateLineNumbers==null||p.updateLineNumbers>=p.viewTo)&&p.renderedView==p.view&&oD(a)==0)return!1;vD(a)&&(Vs(a),u.dims=Rb(a));var v=d.first+d.size,w=Math.max(u.visible.from-a.options.viewportMargin,d.first),k=Math.min(v,u.visible.to+a.options.viewportMargin);p.viewFrom<w&&w-p.viewFrom<20&&(w=Math.max(d.first,p.viewFrom)),p.viewTo>k&&p.viewTo-k<20&&(k=Math.min(v,p.viewTo)),Ps&&(w=_b(a.doc,w),k=PN(a.doc,k));var I=w!=p.viewFrom||k!=p.viewTo||p.lastWrapHeight!=u.wrapperHeight||p.lastWrapWidth!=u.wrapperWidth;IV(a,w,k),p.viewOffset=Ya($e(a.doc,p.viewFrom)),a.display.mover.style.top=p.viewOffset+\"px\";var R=oD(a);if(!I&&R==0&&!u.force&&p.renderedView==p.view&&(p.updateLineNumbers==null||p.updateLineNumbers>=p.viewTo))return!1;var $=WV(a);return R>4&&(p.lineDiv.style.display=\"none\"),YV(a,p.updateLineNumbers,u.dims),R>4&&(p.lineDiv.style.display=\"\"),p.renderedView=p.view,QV($),G(p.cursorDiv),G(p.selectionDiv),p.gutters.style.height=p.sizer.style.minHeight=0,I&&(p.lastWrapHeight=u.wrapperHeight,p.lastWrapWidth=u.wrapperWidth,jd(a,400)),p.updateLineNumbers=null,!0}M(zb,\"updateDisplayIfNeeded\");function pD(a,u){for(var p=u.viewport,d=!0;;d=!1){if(!d||!a.options.lineWrapping||u.oldDisplayWidth==su(a)){if(p&&p.top!=null&&(p={top:Math.min(a.doc.height+Nb(a.display)-Db(a),p.top)}),u.visible=Kv(a.display,a.doc,p),u.visible.from>=a.display.viewFrom&&u.visible.to<=a.display.viewTo)break}else d&&(u.visible=Kv(a.display,a.doc,p));if(!zb(a,u))break;Jv(a);var v=Bd(a);Md(a),Cc(a,v),Qb(a,v),u.force=!1}u.signal(a,\"update\",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(u.signal(a,\"viewportChange\",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}M(pD,\"postUpdateDisplay\");function Gb(a,u){var p=new Hb(a,u);if(zb(a,p)){Jv(a),pD(a,p);var d=Bd(a);Md(a),Cc(a,d),Qb(a,d),p.finish()}}M(Gb,\"updateDisplaySimple\");function YV(a,u,p){var d=a.display,v=a.options.lineNumbers,w=d.lineDiv,k=w.firstChild;function I(fe){var ye=fe.nextSibling;return h&&T&&a.display.currentWheelTarget==fe?fe.style.display=\"none\":fe.parentNode.removeChild(fe),ye}M(I,\"rm\");for(var R=d.view,$=d.viewFrom,W=0;W<R.length;W++){var Q=R[W];if(!Q.hidden)if(!Q.node||Q.node.parentNode!=w){var te=wV(a,Q,$,p);w.insertBefore(te,k)}else{for(;k!=Q.node;)k=I(k);var ee=v&&u!=null&&u<=$&&Q.lineNumber;Q.changes&&(le(Q.changes,\"gutter\")>-1&&(ee=!1),jN(a,Q,$,p)),ee&&(G(Q.lineNumber),Q.lineNumber.appendChild(document.createTextNode(gc(a.options,$)))),k=Q.node.nextSibling}$+=Q.size}for(;k;)k=I(k)}M(YV,\"patchDisplay\");function Wb(a){var u=a.gutters.offsetWidth;a.sizer.style.marginLeft=u+\"px\",Qn(a,\"gutterChanged\",a)}M(Wb,\"updateGutterSpace\");function Qb(a,u){a.display.sizer.style.minHeight=u.docHeight+\"px\",a.display.heightForcer.style.top=u.docHeight+\"px\",a.display.gutters.style.height=u.docHeight+a.display.barHeight+wa(a)+\"px\"}M(Qb,\"setDocumentHeight\");function hD(a){var u=a.display,p=u.view;if(!(!u.alignWidgets&&(!u.gutters.firstChild||!a.options.fixedGutter))){for(var d=Pb(u)-u.scroller.scrollLeft+a.doc.scrollLeft,v=u.gutters.offsetWidth,w=d+\"px\",k=0;k<p.length;k++)if(!p[k].hidden){a.options.fixedGutter&&(p[k].gutter&&(p[k].gutter.style.left=w),p[k].gutterBackground&&(p[k].gutterBackground.style.left=w));var I=p[k].alignable;if(I)for(var R=0;R<I.length;R++)I[R].style.left=w}a.options.fixedGutter&&(u.gutters.style.left=d+v+\"px\")}}M(hD,\"alignHorizontally\");function vD(a){if(!a.options.lineNumbers)return!1;var u=a.doc,p=gc(a.options,u.first+u.size-1),d=a.display;if(p.length!=d.lineNumChars){var v=d.measure.appendChild(U(\"div\",[U(\"div\",p)],\"CodeMirror-linenumber CodeMirror-gutter-elt\")),w=v.firstChild.offsetWidth,k=v.offsetWidth-w;return d.lineGutter.style.width=\"\",d.lineNumInnerWidth=Math.max(w,d.lineGutter.offsetWidth-k)+1,d.lineNumWidth=d.lineNumInnerWidth+k,d.lineNumChars=d.lineNumInnerWidth?p.length:-1,d.lineGutter.style.width=d.lineNumWidth+\"px\",Wb(a.display),!0}return!1}M(vD,\"maybeUpdateLineNumberWidth\");function Yb(a,u){for(var p=[],d=!1,v=0;v<a.length;v++){var w=a[v],k=null;if(typeof w!=\"string\"&&(k=w.style,w=w.className),w==\"CodeMirror-linenumbers\")if(u)d=!0;else continue;p.push({className:w,style:k})}return u&&!d&&p.push({className:\"CodeMirror-linenumbers\",style:null}),p}M(Yb,\"getGutters\");function mD(a){var u=a.gutters,p=a.gutterSpecs;G(u),a.lineGutter=null;for(var d=0;d<p.length;++d){var v=p[d],w=v.className,k=v.style,I=u.appendChild(U(\"div\",null,\"CodeMirror-gutter \"+w));k&&(I.style.cssText=k),w==\"CodeMirror-linenumbers\"&&(a.lineGutter=I,I.style.width=(a.lineNumWidth||1)+\"px\")}u.style.display=p.length?\"\":\"none\",Wb(a)}M(mD,\"renderGutters\");function Ud(a){mD(a.display),ri(a),hD(a)}M(Ud,\"updateGutters\");function JV(a,u,p,d){var v=this;this.input=p,v.scrollbarFiller=U(\"div\",null,\"CodeMirror-scrollbar-filler\"),v.scrollbarFiller.setAttribute(\"cm-not-content\",\"true\"),v.gutterFiller=U(\"div\",null,\"CodeMirror-gutter-filler\"),v.gutterFiller.setAttribute(\"cm-not-content\",\"true\"),v.lineDiv=j(\"div\",null,\"CodeMirror-code\"),v.selectionDiv=U(\"div\",null,null,\"position: relative; z-index: 1\"),v.cursorDiv=U(\"div\",null,\"CodeMirror-cursors\"),v.measure=U(\"div\",null,\"CodeMirror-measure\"),v.lineMeasure=U(\"div\",null,\"CodeMirror-measure\"),v.lineSpace=j(\"div\",[v.measure,v.lineMeasure,v.selectionDiv,v.cursorDiv,v.lineDiv],null,\"position: relative; outline: none\");var w=j(\"div\",[v.lineSpace],\"CodeMirror-lines\");v.mover=U(\"div\",[w],null,\"position: relative\"),v.sizer=U(\"div\",[v.mover],\"CodeMirror-sizer\"),v.sizerWidth=null,v.heightForcer=U(\"div\",null,null,\"position: absolute; height: \"+we+\"px; width: 1px;\"),v.gutters=U(\"div\",null,\"CodeMirror-gutters\"),v.lineGutter=null,v.scroller=U(\"div\",[v.sizer,v.heightForcer,v.gutters],\"CodeMirror-scroll\"),v.scroller.setAttribute(\"tabIndex\",\"-1\"),v.wrapper=U(\"div\",[v.scrollbarFiller,v.gutterFiller,v.scroller],\"CodeMirror\"),v.wrapper.setAttribute(\"translate\",\"no\"),c&&f<8&&(v.gutters.style.zIndex=-1,v.scroller.style.paddingRight=0),!h&&!(i&&C)&&(v.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(v.wrapper):a(v.wrapper)),v.viewFrom=v.viewTo=u.first,v.reportedViewFrom=v.reportedViewTo=u.first,v.view=[],v.renderedView=null,v.externalMeasured=null,v.viewOffset=0,v.lastWrapHeight=v.lastWrapWidth=0,v.updateLineNumbers=null,v.nativeBarWidth=v.barHeight=v.barWidth=0,v.scrollbarsClipped=!1,v.lineNumWidth=v.lineNumInnerWidth=v.lineNumChars=null,v.alignWidgets=!1,v.cachedCharWidth=v.cachedTextHeight=v.cachedPaddingH=null,v.maxLine=null,v.maxLineLength=0,v.maxLineChanged=!1,v.wheelDX=v.wheelDY=v.wheelStartX=v.wheelStartY=null,v.shift=!1,v.selForContextMenu=null,v.activeTouch=null,v.gutterSpecs=Yb(d.gutters,d.lineNumbers),mD(v),p.init(v)}M(JV,\"Display\");var Jb=0,Bs=null;c?Bs=-.53:i?Bs=15:m?Bs=-.7:S&&(Bs=-1/3);function gD(a){var u=a.wheelDeltaX,p=a.wheelDeltaY;return u==null&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(u=a.detail),p==null&&a.detail&&a.axis==a.VERTICAL_AXIS?p=a.detail:p==null&&(p=a.wheelDelta),{x:u,y:p}}M(gD,\"wheelEventDelta\");function KV(a){var u=gD(a);return u.x*=Bs,u.y*=Bs,u}M(KV,\"wheelEventPixels\");function yD(a,u){var p=gD(u),d=p.x,v=p.y,w=Bs;u.deltaMode===0&&(d=u.deltaX,v=u.deltaY,w=1);var k=a.display,I=k.scroller,R=I.scrollWidth>I.clientWidth,$=I.scrollHeight>I.clientHeight;if(d&&R||v&&$){if(v&&T&&h){e:for(var W=u.target,Q=k.view;W!=I;W=W.parentNode)for(var te=0;te<Q.length;te++)if(Q[te].node==W){a.display.currentWheelTarget=W;break e}}if(d&&!i&&!y&&w!=null){v&&$&&Vd(a,Math.max(0,I.scrollTop+v*w)),cu(a,Math.max(0,I.scrollLeft+d*w)),(!v||v&&$)&&fr(u),k.wheelStartX=null;return}if(v&&w!=null){var ee=v*w,fe=a.doc.scrollTop,ye=fe+k.wrapper.clientHeight;ee<0?fe=Math.max(0,fe+ee-50):ye=Math.min(a.doc.height,ye+ee+50),Gb(a,{top:fe,bottom:ye})}Jb<20&&u.deltaMode!==0&&(k.wheelStartX==null?(k.wheelStartX=I.scrollLeft,k.wheelStartY=I.scrollTop,k.wheelDX=d,k.wheelDY=v,setTimeout(function(){if(k.wheelStartX!=null){var Ne=I.scrollLeft-k.wheelStartX,Ae=I.scrollTop-k.wheelStartY,Fe=Ae&&k.wheelDY&&Ae/k.wheelDY||Ne&&k.wheelDX&&Ne/k.wheelDX;k.wheelStartX=k.wheelStartY=null,Fe&&(Bs=(Bs*Jb+Fe)/(Jb+1),++Jb)}},200)):(k.wheelDX+=d,k.wheelDY+=v))}}M(yD,\"onScrollWheel\");var co=M(function(a,u){this.ranges=a,this.primIndex=u},\"Selection\");co.prototype.primary=function(){return this.ranges[this.primIndex]},co.prototype.equals=function(a){if(a==this)return!0;if(a.primIndex!=this.primIndex||a.ranges.length!=this.ranges.length)return!1;for(var u=0;u<this.ranges.length;u++){var p=this.ranges[u],d=a.ranges[u];if(!Y(p.anchor,d.anchor)||!Y(p.head,d.head))return!1}return!0},co.prototype.deepCopy=function(){for(var a=[],u=0;u<this.ranges.length;u++)a[u]=new Rt(me(this.ranges[u].anchor),me(this.ranges[u].head));return new co(a,this.primIndex)},co.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},co.prototype.contains=function(a,u){u||(u=a);for(var p=0;p<this.ranges.length;p++){var d=this.ranges[p];if(B(u,d.from())>=0&&B(a,d.to())<=0)return p}return-1};var Rt=M(function(a,u){this.anchor=a,this.head=u},\"Range\");Rt.prototype.from=function(){return tt(this.anchor,this.head)},Rt.prototype.to=function(){return xe(this.anchor,this.head)},Rt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function zo(a,u,p){var d=a&&a.options.selectionsMayTouch,v=u[p];u.sort(function(te,ee){return B(te.from(),ee.from())}),p=le(u,v);for(var w=1;w<u.length;w++){var k=u[w],I=u[w-1],R=B(I.to(),k.from());if(d&&!k.empty()?R>0:R>=0){var $=tt(I.from(),k.from()),W=xe(I.to(),k.to()),Q=I.empty()?k.from()==k.head:I.from()==I.head;w<=p&&--p,u.splice(--w,2,new Rt(Q?W:$,Q?$:W))}}return new co(u,p)}M(zo,\"normalizeSelection\");function js(a,u){return new co([new Rt(a,u||a)],0)}M(js,\"simpleSelection\");function Us(a){return a.text?_e(a.from.line+a.text.length-1,st(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}M(Us,\"changeEnd\");function bD(a,u){if(B(a,u.from)<0)return a;if(B(a,u.to)<=0)return Us(u);var p=a.line+u.text.length-(u.to.line-u.from.line)-1,d=a.ch;return a.line==u.to.line&&(d+=Us(u).ch-u.to.ch),_e(p,d)}M(bD,\"adjustForChange\");function Kb(a,u){for(var p=[],d=0;d<a.sel.ranges.length;d++){var v=a.sel.ranges[d];p.push(new Rt(bD(v.anchor,u),bD(v.head,u)))}return zo(a.cm,p,a.sel.primIndex)}M(Kb,\"computeSelAfterChange\");function ED(a,u,p){return a.line==u.line?_e(p.line,a.ch-u.ch+p.ch):_e(p.line+(a.line-u.line),a.ch)}M(ED,\"offsetPos\");function XV(a,u,p){for(var d=[],v=_e(a.first,0),w=v,k=0;k<u.length;k++){var I=u[k],R=ED(I.from,v,w),$=ED(Us(I),v,w);if(v=I.to,w=$,p==\"around\"){var W=a.sel.ranges[k],Q=B(W.head,W.anchor)<0;d[k]=new Rt(Q?$:R,Q?R:$)}else d[k]=new Rt(R,R)}return new co(d,a.sel.primIndex)}M(XV,\"computeReplacedSel\");function Xb(a){a.doc.mode=au(a.options,a.doc.modeOption),qd(a)}M(Xb,\"loadMode\");function qd(a){a.doc.iter(function(u){u.stateAfter&&(u.stateAfter=null),u.styles&&(u.styles=null)}),a.doc.modeFrontier=a.doc.highlightFrontier=a.doc.first,jd(a,100),a.state.modeGen++,a.curOp&&ri(a)}M(qd,\"resetModeState\");function wD(a,u){return u.from.ch==0&&u.to.ch==0&&st(u.text)==\"\"&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}M(wD,\"isWholeLineUpdate\");function Zb(a,u,p,d){function v(Fe){return p?p[Fe]:null}M(v,\"spansFor\");function w(Fe,Oe,Me){sV(Fe,Oe,Me,d),Qn(Fe,\"change\",Fe,u)}M(w,\"update\");function k(Fe,Oe){for(var Me=[],Qe=Fe;Qe<Oe;++Qe)Me.push(new Id($[Qe],v(Qe),d));return Me}M(k,\"linesFor\");var I=u.from,R=u.to,$=u.text,W=$e(a,I.line),Q=$e(a,R.line),te=st($),ee=v($.length-1),fe=R.line-I.line;if(u.full)a.insert(0,k(0,$.length)),a.remove($.length,a.size-$.length);else if(wD(a,u)){var ye=k(0,$.length-1);w(Q,Q.text,ee),fe&&a.remove(I.line,fe),ye.length&&a.insert(I.line,ye)}else if(W==Q)if($.length==1)w(W,W.text.slice(0,I.ch)+te+W.text.slice(R.ch),ee);else{var Ne=k(1,$.length-1);Ne.push(new Id(te+W.text.slice(R.ch),ee,d)),w(W,W.text.slice(0,I.ch)+$[0],v(0)),a.insert(I.line+1,Ne)}else if($.length==1)w(W,W.text.slice(0,I.ch)+$[0]+Q.text.slice(R.ch),v(0)),a.remove(I.line+1,fe);else{w(W,W.text.slice(0,I.ch)+$[0],v(0)),w(Q,te+Q.text.slice(R.ch),ee);var Ae=k(1,$.length-1);fe>1&&a.remove(I.line+1,fe-1),a.insert(I.line+1,Ae)}Qn(a,\"change\",a,u)}M(Zb,\"updateDoc\");function qs(a,u,p){function d(v,w,k){if(v.linked)for(var I=0;I<v.linked.length;++I){var R=v.linked[I];if(R.doc!=w){var $=k&&R.sharedHist;p&&!$||(u(R.doc,$),d(R.doc,v,$))}}}M(d,\"propagate\"),d(a,null,!0)}M(qs,\"linkedDocs\");function SD(a,u){if(u.cm)throw new Error(\"This document is already in use.\");a.doc=u,u.cm=a,Mb(a),Xb(a),TD(a),a.options.direction=u.direction,a.options.lineWrapping||xb(a),a.options.mode=u.modeOption,ri(a)}M(SD,\"attachDoc\");function TD(a){(a.doc.direction==\"rtl\"?re:H)(a.display.lineDiv,\"CodeMirror-rtl\")}M(TD,\"setDirectionClass\");function ZV(a){Ei(a,function(){TD(a),ri(a)})}M(ZV,\"directionChanged\");function em(a){this.done=[],this.undone=[],this.undoDepth=a?a.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=a?a.maxGeneration:1}M(em,\"History\");function eE(a,u){var p={from:me(u.from),to:Us(u),text:jo(a,u.from,u.to)};return xD(a,p,u.from.line,u.to.line+1),qs(a,function(d){return xD(d,p,u.from.line,u.to.line+1)},!0),p}M(eE,\"historyChangeFromChange\");function _D(a){for(;a.length;){var u=st(a);if(u.ranges)a.pop();else break}}M(_D,\"clearSelectionEvents\");function eB(a,u){if(u)return _D(a.done),st(a.done);if(a.done.length&&!st(a.done).ranges)return st(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),st(a.done)}M(eB,\"lastChangeEvent\");function CD(a,u,p,d){var v=a.history;v.undone.length=0;var w=+new Date,k,I;if((v.lastOp==d||v.lastOrigin==u.origin&&u.origin&&(u.origin.charAt(0)==\"+\"&&v.lastModTime>w-(a.cm?a.cm.options.historyEventDelay:500)||u.origin.charAt(0)==\"*\"))&&(k=eB(v,v.lastOp==d)))I=st(k.changes),B(u.from,u.to)==0&&B(u.from,I.to)==0?I.to=Us(u):k.changes.push(eE(a,u));else{var R=st(v.done);for((!R||!R.ranges)&&tm(a.sel,v.done),k={changes:[eE(a,u)],generation:v.generation},v.done.push(k);v.done.length>v.undoDepth;)v.done.shift(),v.done[0].ranges||v.done.shift()}v.done.push(p),v.generation=++v.maxGeneration,v.lastModTime=v.lastSelTime=w,v.lastOp=v.lastSelOp=d,v.lastOrigin=v.lastSelOrigin=u.origin,I||Ze(a,\"historyAdded\")}M(CD,\"addChangeToHistory\");function tB(a,u,p,d){var v=u.charAt(0);return v==\"*\"||v==\"+\"&&p.ranges.length==d.ranges.length&&p.somethingSelected()==d.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}M(tB,\"selectionEventCanBeMerged\");function nB(a,u,p,d){var v=a.history,w=d&&d.origin;p==v.lastSelOp||w&&v.lastSelOrigin==w&&(v.lastModTime==v.lastSelTime&&v.lastOrigin==w||tB(a,w,st(v.done),u))?v.done[v.done.length-1]=u:tm(u,v.done),v.lastSelTime=+new Date,v.lastSelOrigin=w,v.lastSelOp=p,d&&d.clearRedo!==!1&&_D(v.undone)}M(nB,\"addSelectionToHistory\");function tm(a,u){var p=st(u);p&&p.ranges&&p.equals(a)||u.push(a)}M(tm,\"pushSelectionToHistory\");function xD(a,u,p,d){var v=u[\"spans_\"+a.id],w=0;a.iter(Math.max(a.first,p),Math.min(a.first+a.size,d),function(k){k.markedSpans&&((v||(v=u[\"spans_\"+a.id]={}))[w]=k.markedSpans),++w})}M(xD,\"attachLocalSpans\");function rB(a){if(!a)return null;for(var u,p=0;p<a.length;++p)a[p].marker.explicitlyCleared?u||(u=a.slice(0,p)):u&&u.push(a[p]);return u?u.length?u:null:a}M(rB,\"removeClearedSpans\");function iB(a,u){var p=u[\"spans_\"+a.id];if(!p)return null;for(var d=[],v=0;v<u.text.length;++v)d.push(rB(p[v]));return d}M(iB,\"getOldSpans\");function kD(a,u){var p=iB(a,u),d=Sb(a,u);if(!p)return d;if(!d)return p;for(var v=0;v<p.length;++v){var w=p[v],k=d[v];if(w&&k){e:for(var I=0;I<k.length;++I){for(var R=k[I],$=0;$<w.length;++$)if(w[$].marker==R.marker)continue e;w.push(R)}}else k&&(p[v]=k)}return p}M(kD,\"mergeOldSpans\");function xc(a,u,p){for(var d=[],v=0;v<a.length;++v){var w=a[v];if(w.ranges){d.push(p?co.prototype.deepCopy.call(w):w);continue}var k=w.changes,I=[];d.push({changes:I});for(var R=0;R<k.length;++R){var $=k[R],W=void 0;if(I.push({from:$.from,to:$.to,text:$.text}),u)for(var Q in $)(W=Q.match(/^spans_(\\d+)$/))&&le(u,Number(W[1]))>-1&&(st(I)[Q]=$[Q],delete $[Q])}}return d}M(xc,\"copyHistoryArray\");function tE(a,u,p,d){if(d){var v=a.anchor;if(p){var w=B(u,v)<0;w!=B(p,v)<0?(v=u,u=p):w!=B(u,p)<0&&(u=p)}return new Rt(v,u)}else return new Rt(p||u,u)}M(tE,\"extendRange\");function nm(a,u,p,d,v){v==null&&(v=a.cm&&(a.cm.display.shift||a.extend)),Nr(a,new co([tE(a.sel.primary(),u,p,v)],0),d)}M(nm,\"extendSelection\");function ND(a,u,p){for(var d=[],v=a.cm&&(a.cm.display.shift||a.extend),w=0;w<a.sel.ranges.length;w++)d[w]=tE(a.sel.ranges[w],u[w],null,v);var k=zo(a.cm,d,a.sel.primIndex);Nr(a,k,p)}M(ND,\"extendSelections\");function nE(a,u,p,d){var v=a.sel.ranges.slice(0);v[u]=p,Nr(a,zo(a.cm,v,a.sel.primIndex),d)}M(nE,\"replaceOneSelection\");function DD(a,u,p,d){Nr(a,js(u,p),d)}M(DD,\"setSimpleSelection\");function oB(a,u,p){var d={ranges:u.ranges,update:function(v){this.ranges=[];for(var w=0;w<v.length;w++)this.ranges[w]=new Rt(Re(a,v[w].anchor),Re(a,v[w].head))},origin:p&&p.origin};return Ze(a,\"beforeSelectionChange\",a,d),a.cm&&Ze(a.cm,\"beforeSelectionChange\",a.cm,d),d.ranges!=u.ranges?zo(a.cm,d.ranges,d.ranges.length-1):u}M(oB,\"filterSelectionChange\");function AD(a,u,p){var d=a.history.done,v=st(d);v&&v.ranges?(d[d.length-1]=u,rm(a,u,p)):Nr(a,u,p)}M(AD,\"setSelectionReplaceHistory\");function Nr(a,u,p){rm(a,u,p),nB(a,a.sel,a.cm?a.cm.curOp.id:NaN,p)}M(Nr,\"setSelection\");function rm(a,u,p){(Wn(a,\"beforeSelectionChange\")||a.cm&&Wn(a.cm,\"beforeSelectionChange\"))&&(u=oB(a,u,p));var d=p&&p.bias||(B(u.primary().head,a.sel.primary().head)<0?-1:1);OD(a,LD(a,u,d,!0)),!(p&&p.scroll===!1)&&a.cm&&a.cm.getOption(\"readOnly\")!=\"nocursor\"&&Tc(a.cm)}M(rm,\"setSelectionNoUndo\");function OD(a,u){u.equals(a.sel)||(a.sel=u,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,ru(a.cm)),Qn(a,\"cursorActivity\",a))}M(OD,\"setSelectionInner\");function ID(a){OD(a,LD(a,a.sel,null,!1))}M(ID,\"reCheckSelection\");function LD(a,u,p,d){for(var v,w=0;w<u.ranges.length;w++){var k=u.ranges[w],I=u.ranges.length==a.sel.ranges.length&&a.sel.ranges[w],R=im(a,k.anchor,I&&I.anchor,p,d),$=im(a,k.head,I&&I.head,p,d);(v||R!=k.anchor||$!=k.head)&&(v||(v=u.ranges.slice(0,w)),v[w]=new Rt(R,$))}return v?zo(a.cm,v,u.primIndex):u}M(LD,\"skipAtomicInSelection\");function kc(a,u,p,d,v){var w=$e(a,u.line);if(w.markedSpans)for(var k=0;k<w.markedSpans.length;++k){var I=w.markedSpans[k],R=I.marker,$=\"selectLeft\"in R?!R.selectLeft:R.inclusiveLeft,W=\"selectRight\"in R?!R.selectRight:R.inclusiveRight;if((I.from==null||($?I.from<=u.ch:I.from<u.ch))&&(I.to==null||(W?I.to>=u.ch:I.to>u.ch))){if(v&&(Ze(R,\"beforeCursorEnter\"),R.explicitlyCleared))if(w.markedSpans){--k;continue}else break;if(!R.atomic)continue;if(p){var Q=R.find(d<0?1:-1),te=void 0;if((d<0?W:$)&&(Q=FD(a,Q,-d,Q&&Q.line==u.line?w:null)),Q&&Q.line==u.line&&(te=B(Q,p))&&(d<0?te<0:te>0))return kc(a,Q,u,d,v)}var ee=R.find(d<0?-1:1);return(d<0?$:W)&&(ee=FD(a,ee,d,ee.line==u.line?w:null)),ee?kc(a,ee,u,d,v):null}}return u}M(kc,\"skipAtomicInner\");function im(a,u,p,d,v){var w=d||1,k=kc(a,u,p,w,v)||!v&&kc(a,u,p,w,!0)||kc(a,u,p,-w,v)||!v&&kc(a,u,p,-w,!0);return k||(a.cantEdit=!0,_e(a.first,0))}M(im,\"skipAtomic\");function FD(a,u,p,d){return p<0&&u.ch==0?u.line>a.first?Re(a,_e(u.line-1)):null:p>0&&u.ch==(d||$e(a,u.line)).text.length?u.line<a.first+a.size-1?_e(u.line+1,0):null:new _e(u.line,u.ch+p)}M(FD,\"movePos\");function RD(a){a.setSelection(_e(a.firstLine(),0),_e(a.lastLine()),qe)}M(RD,\"selectAll\");function PD(a,u,p){var d={canceled:!1,from:u.from,to:u.to,text:u.text,origin:u.origin,cancel:function(){return d.canceled=!0}};return p&&(d.update=function(v,w,k,I){v&&(d.from=Re(a,v)),w&&(d.to=Re(a,w)),k&&(d.text=k),I!==void 0&&(d.origin=I)}),Ze(a,\"beforeChange\",a,d),a.cm&&Ze(a.cm,\"beforeChange\",a.cm,d),d.canceled?(a.cm&&(a.cm.curOp.updateInput=2),null):{from:d.from,to:d.to,text:d.text,origin:d.origin}}M(PD,\"filterChange\");function Nc(a,u,p){if(a.cm){if(!a.cm.curOp)return Yn(a.cm,Nc)(a,u,p);if(a.cm.state.suppressEdits)return}if(!((Wn(a,\"beforeChange\")||a.cm&&Wn(a.cm,\"beforeChange\"))&&(u=PD(a,u,!0),!u))){var d=J7&&!p&&rV(a,u.from,u.to);if(d)for(var v=d.length-1;v>=0;--v)MD(a,{from:d[v].from,to:d[v].to,text:v?[\"\"]:u.text,origin:u.origin});else MD(a,u)}}M(Nc,\"makeChange\");function MD(a,u){if(!(u.text.length==1&&u.text[0]==\"\"&&B(u.from,u.to)==0)){var p=Kb(a,u);CD(a,u,p,a.cm?a.cm.curOp.id:NaN),Hd(a,u,p,Sb(a,u));var d=[];qs(a,function(v,w){!w&&le(d,v.history)==-1&&(jD(v.history,u),d.push(v.history)),Hd(v,u,null,Sb(v,u))})}}M(MD,\"makeChangeInner\");function om(a,u,p){var d=a.cm&&a.cm.state.suppressEdits;if(!(d&&!p)){for(var v=a.history,w,k=a.sel,I=u==\"undo\"?v.done:v.undone,R=u==\"undo\"?v.undone:v.done,$=0;$<I.length&&(w=I[$],!(p?w.ranges&&!w.equals(a.sel):!w.ranges));$++);if($!=I.length){for(v.lastOrigin=v.lastSelOrigin=null;;)if(w=I.pop(),w.ranges){if(tm(w,R),p&&!w.equals(a.sel)){Nr(a,w,{clearRedo:!1});return}k=w}else if(d){I.push(w);return}else break;var W=[];tm(k,R),R.push({changes:W,generation:v.generation}),v.generation=w.generation||++v.maxGeneration;for(var Q=Wn(a,\"beforeChange\")||a.cm&&Wn(a.cm,\"beforeChange\"),te=M(function(ye){var Ne=w.changes[ye];if(Ne.origin=u,Q&&!PD(a,Ne,!1))return I.length=0,{};W.push(eE(a,Ne));var Ae=ye?Kb(a,Ne):st(I);Hd(a,Ne,Ae,kD(a,Ne)),!ye&&a.cm&&a.cm.scrollIntoView({from:Ne.from,to:Us(Ne)});var Fe=[];qs(a,function(Oe,Me){!Me&&le(Fe,Oe.history)==-1&&(jD(Oe.history,Ne),Fe.push(Oe.history)),Hd(Oe,Ne,null,kD(Oe,Ne))})},\"loop\"),ee=w.changes.length-1;ee>=0;--ee){var fe=te(ee);if(fe)return fe.v}}}}M(om,\"makeChangeFromHistory\");function $D(a,u){if(u!=0&&(a.first+=u,a.sel=new co(ur(a.sel.ranges,function(v){return new Rt(_e(v.anchor.line+u,v.anchor.ch),_e(v.head.line+u,v.head.ch))}),a.sel.primIndex),a.cm)){ri(a.cm,a.first,a.first-u,u);for(var p=a.cm.display,d=p.viewFrom;d<p.viewTo;d++)$s(a.cm,d,\"gutter\")}}M($D,\"shiftDoc\");function Hd(a,u,p,d){if(a.cm&&!a.cm.curOp)return Yn(a.cm,Hd)(a,u,p,d);if(u.to.line<a.first){$D(a,u.text.length-1-(u.to.line-u.from.line));return}if(!(u.from.line>a.lastLine())){if(u.from.line<a.first){var v=u.text.length-1-(a.first-u.from.line);$D(a,v),u={from:_e(a.first,0),to:_e(u.to.line+v,u.to.ch),text:[st(u.text)],origin:u.origin}}var w=a.lastLine();u.to.line>w&&(u={from:u.from,to:_e(w,$e(a,w).text.length),text:[u.text[0]],origin:u.origin}),u.removed=jo(a,u.from,u.to),p||(p=Kb(a,u)),a.cm?aB(a.cm,u,d):Zb(a,u,d),rm(a,p,qe),a.cantEdit&&im(a,_e(a.firstLine(),0))&&(a.cantEdit=!1)}}M(Hd,\"makeChangeSingleDoc\");function aB(a,u,p){var d=a.doc,v=a.display,w=u.from,k=u.to,I=!1,R=w.line;a.options.lineWrapping||(R=xt(qo($e(d,w.line))),d.iter(R,k.line+1,function(ee){if(ee==v.maxLine)return I=!0,!0})),d.sel.contains(u.from,u.to)>-1&&ru(a),Zb(d,u,p,iD(a)),a.options.lineWrapping||(d.iter(R,w.line+u.text.length,function(ee){var fe=Uv(ee);fe>v.maxLineLength&&(v.maxLine=ee,v.maxLineLength=fe,v.maxLineChanged=!0,I=!1)}),I&&(a.curOp.updateMaxLine=!0)),Y7(d,w.line),jd(a,400);var $=u.text.length-(k.line-w.line)-1;u.full?ri(a):w.line==k.line&&u.text.length==1&&!wD(a.doc,u)?$s(a,w.line,\"text\"):ri(a,w.line,k.line+1,$);var W=Wn(a,\"changes\"),Q=Wn(a,\"change\");if(Q||W){var te={from:w,to:k,text:u.text,removed:u.removed,origin:u.origin};Q&&Qn(a,\"change\",a,te),W&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(te)}a.display.selForContextMenu=null}M(aB,\"makeChangeSingleDocInEditor\");function Dc(a,u,p,d,v){var w;d||(d=p),B(d,p)<0&&(w=[d,p],p=w[0],d=w[1]),typeof u==\"string\"&&(u=a.splitLines(u)),Nc(a,{from:p,to:d,text:u,origin:v})}M(Dc,\"replaceRange\");function VD(a,u,p,d){p<a.line?a.line+=d:u<a.line&&(a.line=u,a.ch=0)}M(VD,\"rebaseHistSelSingle\");function BD(a,u,p,d){for(var v=0;v<a.length;++v){var w=a[v],k=!0;if(w.ranges){w.copied||(w=a[v]=w.deepCopy(),w.copied=!0);for(var I=0;I<w.ranges.length;I++)VD(w.ranges[I].anchor,u,p,d),VD(w.ranges[I].head,u,p,d);continue}for(var R=0;R<w.changes.length;++R){var $=w.changes[R];if(p<$.from.line)$.from=_e($.from.line+d,$.from.ch),$.to=_e($.to.line+d,$.to.ch);else if(u<=$.to.line){k=!1;break}}k||(a.splice(0,v+1),v=0)}}M(BD,\"rebaseHistArray\");function jD(a,u){var p=u.from.line,d=u.to.line,v=u.text.length-(d-p)-1;BD(a.done,p,d,v),BD(a.undone,p,d,v)}M(jD,\"rebaseHist\");function zd(a,u,p,d){var v=u,w=u;return typeof u==\"number\"?w=$e(a,bt(a,u)):v=xt(u),v==null?null:(d(w,v)&&a.cm&&$s(a.cm,v,p),w)}M(zd,\"changeLine\");function Gd(a){this.lines=a,this.parent=null;for(var u=0,p=0;p<a.length;++p)a[p].parent=this,u+=a[p].height;this.height=u}M(Gd,\"LeafChunk\"),Gd.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,u){for(var p=a,d=a+u;p<d;++p){var v=this.lines[p];this.height-=v.height,lV(v),Qn(v,\"delete\")}this.lines.splice(a,u)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,u,p){this.height+=p,this.lines=this.lines.slice(0,a).concat(u).concat(this.lines.slice(a));for(var d=0;d<u.length;++d)u[d].parent=this},iterN:function(a,u,p){for(var d=a+u;a<d;++a)if(p(this.lines[a]))return!0}};function Wd(a){this.children=a;for(var u=0,p=0,d=0;d<a.length;++d){var v=a[d];u+=v.chunkSize(),p+=v.height,v.parent=this}this.size=u,this.height=p,this.parent=null}M(Wd,\"BranchChunk\"),Wd.prototype={chunkSize:function(){return this.size},removeInner:function(a,u){this.size-=u;for(var p=0;p<this.children.length;++p){var d=this.children[p],v=d.chunkSize();if(a<v){var w=Math.min(u,v-a),k=d.height;if(d.removeInner(a,w),this.height-=k-d.height,v==w&&(this.children.splice(p--,1),d.parent=null),(u-=w)==0)break;a=0}else a-=v}if(this.size-u<25&&(this.children.length>1||!(this.children[0]instanceof Gd))){var I=[];this.collapse(I),this.children=[new Gd(I)],this.children[0].parent=this}},collapse:function(a){for(var u=0;u<this.children.length;++u)this.children[u].collapse(a)},insertInner:function(a,u,p){this.size+=u.length,this.height+=p;for(var d=0;d<this.children.length;++d){var v=this.children[d],w=v.chunkSize();if(a<=w){if(v.insertInner(a,u,p),v.lines&&v.lines.length>50){for(var k=v.lines.length%25+25,I=k;I<v.lines.length;){var R=new Gd(v.lines.slice(I,I+=25));v.height-=R.height,this.children.splice(++d,0,R),R.parent=this}v.lines=v.lines.slice(0,k),this.maybeSpill()}break}a-=w}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var u=a.children.splice(a.children.length-5,5),p=new Wd(u);if(a.parent){a.size-=p.size,a.height-=p.height;var v=le(a.parent.children,a);a.parent.children.splice(v+1,0,p)}else{var d=new Wd(a.children);d.parent=a,a.children=[d,p],a=d}p.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,u,p){for(var d=0;d<this.children.length;++d){var v=this.children[d],w=v.chunkSize();if(a<w){var k=Math.min(u,w-a);if(v.iterN(a,k,p))return!0;if((u-=k)==0)break;a=0}else a-=w}}};var am=M(function(a,u,p){if(p)for(var d in p)p.hasOwnProperty(d)&&(this[d]=p[d]);this.doc=a,this.node=u},\"LineWidget\");am.prototype.clear=function(){var a=this.doc.cm,u=this.line.widgets,p=this.line,d=xt(p);if(!(d==null||!u)){for(var v=0;v<u.length;++v)u[v]==this&&u.splice(v--,1);u.length||(p.widgets=null);var w=Rd(this);ni(p,Math.max(0,p.height-w)),a&&(Ei(a,function(){UD(a,p,-w),$s(a,d,\"widget\")}),Qn(a,\"lineWidgetCleared\",a,this,d))}},am.prototype.changed=function(){var a=this,u=this.height,p=this.doc.cm,d=this.line;this.height=null;var v=Rd(this)-u;v&&(Ms(this.doc,d)||ni(d,d.height+v),p&&Ei(p,function(){p.curOp.forceUpdate=!0,UD(p,d,v),Qn(p,\"lineWidgetChanged\",p,a,xt(d))}))},$o(am);function UD(a,u,p){Ya(u)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&qb(a,p)}M(UD,\"adjustScrollWhenAboveVisible\");function sB(a,u,p,d){var v=new am(a,p,d),w=a.cm;return w&&v.noHScroll&&(w.display.alignWidgets=!0),zd(a,u,\"widget\",function(k){var I=k.widgets||(k.widgets=[]);if(v.insertAt==null?I.push(v):I.splice(Math.min(I.length,Math.max(0,v.insertAt)),0,v),v.line=k,w&&!Ms(a,k)){var R=Ya(k)<a.scrollTop;ni(k,k.height+Rd(v)),R&&qb(w,v.height),w.curOp.forceUpdate=!0}return!0}),w&&Qn(w,\"lineWidgetAdded\",w,v,typeof u==\"number\"?u:xt(u)),v}M(sB,\"addLineWidget\");var lB=0,pu=M(function(a,u){this.lines=[],this.type=u,this.doc=a,this.id=++lB},\"TextMarker\");pu.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,u=a&&!a.curOp;if(u&&fu(a),Wn(this,\"clear\")){var p=this.find();p&&Qn(this,\"clear\",p.from,p.to)}for(var d=null,v=null,w=0;w<this.lines.length;++w){var k=this.lines[w],I=Od(k.markedSpans,this);a&&!this.collapsed?$s(a,xt(k),\"text\"):a&&(I.to!=null&&(v=xt(k)),I.from!=null&&(d=xt(k))),k.markedSpans=Z7(k.markedSpans,I),I.from==null&&this.collapsed&&!Ms(this.doc,k)&&a&&ni(k,Ec(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var R=0;R<this.lines.length;++R){var $=qo(this.lines[R]),W=Uv($);W>a.display.maxLineLength&&(a.display.maxLine=$,a.display.maxLineLength=W,a.display.maxLineChanged=!0)}d!=null&&a&&this.collapsed&&ri(a,d,v+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&ID(a.doc)),a&&Qn(a,\"markerCleared\",a,this,d,v),u&&du(a),this.parent&&this.parent.clear()}},pu.prototype.find=function(a,u){a==null&&this.type==\"bookmark\"&&(a=1);for(var p,d,v=0;v<this.lines.length;++v){var w=this.lines[v],k=Od(w.markedSpans,this);if(k.from!=null&&(p=_e(u?w:xt(w),k.from),a==-1))return p;if(k.to!=null&&(d=_e(u?w:xt(w),k.to),a==1))return d}return p&&{from:p,to:d}},pu.prototype.changed=function(){var a=this,u=this.find(-1,!0),p=this,d=this.doc.cm;!u||!d||Ei(d,function(){var v=u.line,w=xt(u.line),k=Ab(d,w);if(k&&(JN(k),d.curOp.selectionChanged=d.curOp.forceUpdate=!0),d.curOp.updateMaxLine=!0,!Ms(p.doc,v)&&p.height!=null){var I=p.height;p.height=null;var R=Rd(p)-I;R&&ni(v,v.height+R)}Qn(d,\"markerChanged\",d,a)})},pu.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var u=this.doc.cm.curOp;(!u.maybeHiddenMarkers||le(u.maybeHiddenMarkers,this)==-1)&&(u.maybeUnhiddenMarkers||(u.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},pu.prototype.detachLine=function(a){if(this.lines.splice(le(this.lines,a),1),!this.lines.length&&this.doc.cm){var u=this.doc.cm.curOp;(u.maybeHiddenMarkers||(u.maybeHiddenMarkers=[])).push(this)}},$o(pu);function Ac(a,u,p,d,v){if(d&&d.shared)return uB(a,u,p,d,v);if(a.cm&&!a.cm.curOp)return Yn(a.cm,Ac)(a,u,p,d,v);var w=new pu(a,v),k=B(u,p);if(d&&ve(d,w,!1),k>0||k==0&&w.clearWhenEmpty!==!1)return w;if(w.replacedWith&&(w.collapsed=!0,w.widgetNode=j(\"span\",[w.replacedWith],\"CodeMirror-widget\"),d.handleMouseEvents||w.widgetNode.setAttribute(\"cm-ignore-events\",\"true\"),d.insertLeft&&(w.widgetNode.insertLeft=!0)),w.collapsed){if(RN(a,u.line,u,p,w)||u.line!=p.line&&RN(a,p.line,u,p,w))throw new Error(\"Inserting collapsed marker partially overlapping an existing one\");X7()}w.addToHistory&&CD(a,{from:u,to:p,origin:\"markText\"},a.sel,NaN);var I=u.line,R=a.cm,$;if(a.iter(I,p.line+1,function(Q){R&&w.collapsed&&!R.options.lineWrapping&&qo(Q)==R.display.maxLine&&($=!0),w.collapsed&&I!=u.line&&ni(Q,0),eV(Q,new $v(w,I==u.line?u.ch:null,I==p.line?p.ch:null),a.cm&&a.cm.curOp),++I}),w.collapsed&&a.iter(u.line,p.line+1,function(Q){Ms(a,Q)&&ni(Q,0)}),w.clearOnEnter&&Ye(w,\"beforeCursorEnter\",function(){return w.clear()}),w.readOnly&&(K7(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),w.collapsed&&(w.id=++lB,w.atomic=!0),R){if($&&(R.curOp.updateMaxLine=!0),w.collapsed)ri(R,u.line,p.line+1);else if(w.className||w.startStyle||w.endStyle||w.css||w.attributes||w.title)for(var W=u.line;W<=p.line;W++)$s(R,W,\"text\");w.atomic&&ID(R.doc),Qn(R,\"markerAdded\",R,w)}return w}M(Ac,\"markText\");var sm=M(function(a,u){this.markers=a,this.primary=u;for(var p=0;p<a.length;++p)a[p].parent=this},\"SharedTextMarker\");sm.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();Qn(this,\"clear\")}},sm.prototype.find=function(a,u){return this.primary.find(a,u)},$o(sm);function uB(a,u,p,d,v){d=ve(d),d.shared=!1;var w=[Ac(a,u,p,d,v)],k=w[0],I=d.widgetNode;return qs(a,function(R){I&&(d.widgetNode=I.cloneNode(!0)),w.push(Ac(R,Re(R,u),Re(R,p),d,v));for(var $=0;$<R.linked.length;++$)if(R.linked[$].isParent)return;k=st(w)}),new sm(w,k)}M(uB,\"markTextShared\");function qD(a){return a.findMarks(_e(a.first,0),a.clipPos(_e(a.lastLine())),function(u){return u.parent})}M(qD,\"findSharedMarkers\");function cB(a,u){for(var p=0;p<u.length;p++){var d=u[p],v=d.find(),w=a.clipPos(v.from),k=a.clipPos(v.to);if(B(w,k)){var I=Ac(a,w,k,d.primary,d.primary.type);d.markers.push(I),I.parent=d}}}M(cB,\"copySharedMarkers\");function fB(a){for(var u=M(function(d){var v=a[d],w=[v.primary.doc];qs(v.primary.doc,function(R){return w.push(R)});for(var k=0;k<v.markers.length;k++){var I=v.markers[k];le(w,I.doc)==-1&&(I.parent=null,v.markers.splice(k--,1))}},\"loop\"),p=0;p<a.length;p++)u(p)}M(fB,\"detachSharedMarkers\");var Cae=0,wi=M(function(a,u,p,d,v){if(!(this instanceof wi))return new wi(a,u,p,d,v);p==null&&(p=0),Wd.call(this,[new Gd([new Id(\"\",null)])]),this.first=p,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=p;var w=_e(p,0);this.sel=js(w),this.history=new em(null),this.id=++Cae,this.modeOption=u,this.lineSep=d,this.direction=v==\"rtl\"?\"rtl\":\"ltr\",this.extend=!1,typeof a==\"string\"&&(a=this.splitLines(a)),Zb(this,{from:w,to:w,text:a}),Nr(this,js(w),qe)},\"Doc\");wi.prototype=cr(Wd.prototype,{constructor:wi,iter:function(a,u,p){p?this.iterN(a-this.first,u-a,p):this.iterN(this.first,this.first+this.size,a)},insert:function(a,u){for(var p=0,d=0;d<u.length;++d)p+=u[d].height;this.insertInner(a-this.first,u,p)},remove:function(a,u){this.removeInner(a-this.first,u)},getValue:function(a){var u=mc(this,this.first,this.first+this.size);return a===!1?u:u.join(a||this.lineSeparator())},setValue:Jn(function(a){var u=_e(this.first,0),p=this.first+this.size-1;Nc(this,{from:u,to:_e(p,$e(this,p).text.length),text:this.splitLines(a),origin:\"setValue\",full:!0},!0),this.cm&&$d(this.cm,0,0),Nr(this,js(u),qe)}),replaceRange:function(a,u,p,d){u=Re(this,u),p=p?Re(this,p):u,Dc(this,a,u,p,d)},getRange:function(a,u,p){var d=jo(this,Re(this,a),Re(this,u));return p===!1?d:p===\"\"?d.join(\"\"):d.join(p||this.lineSeparator())},getLine:function(a){var u=this.getLineHandle(a);return u&&u.text},getLineHandle:function(a){if(Rs(this,a))return $e(this,a)},getLineNumber:function(a){return xt(a)},getLineHandleVisualStart:function(a){return typeof a==\"number\"&&(a=$e(this,a)),qo(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return Re(this,a)},getCursor:function(a){var u=this.sel.primary(),p;return a==null||a==\"head\"?p=u.head:a==\"anchor\"?p=u.anchor:a==\"end\"||a==\"to\"||a===!1?p=u.to():p=u.from(),p},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Jn(function(a,u,p){DD(this,Re(this,typeof a==\"number\"?_e(a,u||0):a),null,p)}),setSelection:Jn(function(a,u,p){DD(this,Re(this,a),Re(this,u||a),p)}),extendSelection:Jn(function(a,u,p){nm(this,Re(this,a),u&&Re(this,u),p)}),extendSelections:Jn(function(a,u){ND(this,ji(this,a),u)}),extendSelectionsBy:Jn(function(a,u){var p=ur(this.sel.ranges,a);ND(this,ji(this,p),u)}),setSelections:Jn(function(a,u,p){if(a.length){for(var d=[],v=0;v<a.length;v++)d[v]=new Rt(Re(this,a[v].anchor),Re(this,a[v].head||a[v].anchor));u==null&&(u=Math.min(a.length-1,this.sel.primIndex)),Nr(this,zo(this.cm,d,u),p)}}),addSelection:Jn(function(a,u,p){var d=this.sel.ranges.slice(0);d.push(new Rt(Re(this,a),Re(this,u||a))),Nr(this,zo(this.cm,d,d.length-1),p)}),getSelection:function(a){for(var u=this.sel.ranges,p,d=0;d<u.length;d++){var v=jo(this,u[d].from(),u[d].to());p=p?p.concat(v):v}return a===!1?p:p.join(a||this.lineSeparator())},getSelections:function(a){for(var u=[],p=this.sel.ranges,d=0;d<p.length;d++){var v=jo(this,p[d].from(),p[d].to());a!==!1&&(v=v.join(a||this.lineSeparator())),u[d]=v}return u},replaceSelection:function(a,u,p){for(var d=[],v=0;v<this.sel.ranges.length;v++)d[v]=a;this.replaceSelections(d,u,p||\"+input\")},replaceSelections:Jn(function(a,u,p){for(var d=[],v=this.sel,w=0;w<v.ranges.length;w++){var k=v.ranges[w];d[w]={from:k.from(),to:k.to(),text:this.splitLines(a[w]),origin:p}}for(var I=u&&u!=\"end\"&&XV(this,d,u),R=d.length-1;R>=0;R--)Nc(this,d[R]);I?AD(this,I):this.cm&&Tc(this.cm)}),undo:Jn(function(){om(this,\"undo\")}),redo:Jn(function(){om(this,\"redo\")}),undoSelection:Jn(function(){om(this,\"undo\",!0)}),redoSelection:Jn(function(){om(this,\"redo\",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,u=0,p=0,d=0;d<a.done.length;d++)a.done[d].ranges||++u;for(var v=0;v<a.undone.length;v++)a.undone[v].ranges||++p;return{undo:u,redo:p}},clearHistory:function(){var a=this;this.history=new em(this.history),qs(this,function(u){return u.history=a.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(a){return a&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(a){return this.history.generation==(a||this.cleanGeneration)},getHistory:function(){return{done:xc(this.history.done),undone:xc(this.history.undone)}},setHistory:function(a){var u=this.history=new em(this.history);u.done=xc(a.done.slice(0),null,!0),u.undone=xc(a.undone.slice(0),null,!0)},setGutterMarker:Jn(function(a,u,p){return zd(this,a,\"gutter\",function(d){var v=d.gutterMarkers||(d.gutterMarkers={});return v[u]=p,!p&&Ed(v)&&(d.gutterMarkers=null),!0})}),clearGutter:Jn(function(a){var u=this;this.iter(function(p){p.gutterMarkers&&p.gutterMarkers[a]&&zd(u,p,\"gutter\",function(){return p.gutterMarkers[a]=null,Ed(p.gutterMarkers)&&(p.gutterMarkers=null),!0})})}),lineInfo:function(a){var u;if(typeof a==\"number\"){if(!Rs(this,a)||(u=a,a=$e(this,a),!a))return null}else if(u=xt(a),u==null)return null;return{line:u,handle:a,text:a.text,gutterMarkers:a.gutterMarkers,textClass:a.textClass,bgClass:a.bgClass,wrapClass:a.wrapClass,widgets:a.widgets}},addLineClass:Jn(function(a,u,p){return zd(this,a,u==\"gutter\"?\"gutter\":\"class\",function(d){var v=u==\"text\"?\"textClass\":u==\"background\"?\"bgClass\":u==\"gutter\"?\"gutterClass\":\"wrapClass\";if(!d[v])d[v]=p;else{if(V(p).test(d[v]))return!1;d[v]+=\" \"+p}return!0})}),removeLineClass:Jn(function(a,u,p){return zd(this,a,u==\"gutter\"?\"gutter\":\"class\",function(d){var v=u==\"text\"?\"textClass\":u==\"background\"?\"bgClass\":u==\"gutter\"?\"gutterClass\":\"wrapClass\",w=d[v];if(w)if(p==null)d[v]=null;else{var k=w.match(V(p));if(!k)return!1;var I=k.index+k[0].length;d[v]=w.slice(0,k.index)+(!k.index||I==w.length?\"\":\" \")+w.slice(I)||null}else return!1;return!0})}),addLineWidget:Jn(function(a,u,p){return sB(this,a,u,p)}),removeLineWidget:function(a){a.clear()},markText:function(a,u,p){return Ac(this,Re(this,a),Re(this,u),p,p&&p.type||\"range\")},setBookmark:function(a,u){var p={replacedWith:u&&(u.nodeType==null?u.widget:u),insertLeft:u&&u.insertLeft,clearWhenEmpty:!1,shared:u&&u.shared,handleMouseEvents:u&&u.handleMouseEvents};return a=Re(this,a),Ac(this,a,a,p,\"bookmark\")},findMarksAt:function(a){a=Re(this,a);var u=[],p=$e(this,a.line).markedSpans;if(p)for(var d=0;d<p.length;++d){var v=p[d];(v.from==null||v.from<=a.ch)&&(v.to==null||v.to>=a.ch)&&u.push(v.marker.parent||v.marker)}return u},findMarks:function(a,u,p){a=Re(this,a),u=Re(this,u);var d=[],v=a.line;return this.iter(a.line,u.line+1,function(w){var k=w.markedSpans;if(k)for(var I=0;I<k.length;I++){var R=k[I];!(R.to!=null&&v==a.line&&a.ch>=R.to||R.from==null&&v!=a.line||R.from!=null&&v==u.line&&R.from>=u.ch)&&(!p||p(R.marker))&&d.push(R.marker.parent||R.marker)}++v}),d},getAllMarks:function(){var a=[];return this.iter(function(u){var p=u.markedSpans;if(p)for(var d=0;d<p.length;++d)p[d].from!=null&&a.push(p[d].marker)}),a},posFromIndex:function(a){var u,p=this.first,d=this.lineSeparator().length;return this.iter(function(v){var w=v.text.length+d;if(w>a)return u=a,!0;a-=w,++p}),Re(this,_e(p,u))},indexFromPos:function(a){a=Re(this,a);var u=a.ch;if(a.line<this.first||a.ch<0)return 0;var p=this.lineSeparator().length;return this.iter(this.first,a.line,function(d){u+=d.text.length+p}),u},copy:function(a){var u=new wi(mc(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return u.scrollTop=this.scrollTop,u.scrollLeft=this.scrollLeft,u.sel=this.sel,u.extend=!1,a&&(u.history.undoDepth=this.history.undoDepth,u.setHistory(this.getHistory())),u},linkedDoc:function(a){a||(a={});var u=this.first,p=this.first+this.size;a.from!=null&&a.from>u&&(u=a.from),a.to!=null&&a.to<p&&(p=a.to);var d=new wi(mc(this,u,p),a.mode||this.modeOption,u,this.lineSep,this.direction);return a.sharedHist&&(d.history=this.history),(this.linked||(this.linked=[])).push({doc:d,sharedHist:a.sharedHist}),d.linked=[{doc:this,isParent:!0,sharedHist:a.sharedHist}],cB(d,qD(this)),d},unlinkDoc:function(a){if(a instanceof en&&(a=a.doc),this.linked)for(var u=0;u<this.linked.length;++u){var p=this.linked[u];if(p.doc==a){this.linked.splice(u,1),a.unlinkDoc(this),fB(qD(this));break}}if(a.history==this.history){var d=[a.id];qs(a,function(v){return d.push(v.id)},!0),a.history=new em(null),a.history.done=xc(this.history.done,d),a.history.undone=xc(this.history.undone,d)}},iterLinkedDocs:function(a){qs(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):xd(a)},lineSeparator:function(){return this.lineSep||`\n`},setDirection:Jn(function(a){a!=\"rtl\"&&(a=\"ltr\"),a!=this.direction&&(this.direction=a,this.iter(function(u){return u.order=null}),this.cm&&ZV(this.cm))})}),wi.prototype.eachLine=wi.prototype.iter;var dB=0;function pB(a){var u=this;if(HD(u),!(En(u,a)||Ja(u.display,a))){fr(a),c&&(dB=+new Date);var p=lu(u,a,!0),d=a.dataTransfer.files;if(!(!p||u.isReadOnly()))if(d&&d.length&&window.FileReader&&window.File)for(var v=d.length,w=Array(v),k=0,I=M(function(){++k==v&&Yn(u,function(){p=Re(u.doc,p);var ee={from:p,to:p,text:u.doc.splitLines(w.filter(function(fe){return fe!=null}).join(u.doc.lineSeparator())),origin:\"paste\"};Nc(u.doc,ee),AD(u.doc,js(Re(u.doc,p),Re(u.doc,Us(ee))))})()},\"markAsReadAndPasteIfAllFilesAreRead\"),R=M(function(ee,fe){if(u.options.allowDropFileTypes&&le(u.options.allowDropFileTypes,ee.type)==-1){I();return}var ye=new FileReader;ye.onerror=function(){return I()},ye.onload=function(){var Ne=ye.result;if(/[\\x00-\\x08\\x0e-\\x1f]{2}/.test(Ne)){I();return}w[fe]=Ne,I()},ye.readAsText(ee)},\"readTextFromFile\"),$=0;$<d.length;$++)R(d[$],$);else{if(u.state.draggingText&&u.doc.sel.contains(p)>-1){u.state.draggingText(a),setTimeout(function(){return u.display.input.focus()},20);return}try{var W=a.dataTransfer.getData(\"Text\");if(W){var Q;if(u.state.draggingText&&!u.state.draggingText.copy&&(Q=u.listSelections()),rm(u.doc,js(p,p)),Q)for(var te=0;te<Q.length;++te)Dc(u.doc,\"\",Q[te].anchor,Q[te].head,\"drag\");u.replaceSelection(W,\"around\",\"paste\"),u.display.input.focus()}}catch{}}}}M(pB,\"onDrop\");function hB(a,u){if(c&&(!a.state.draggingText||+new Date-dB<100)){Fs(u);return}if(!(En(a,u)||Ja(a.display,u))&&(u.dataTransfer.setData(\"Text\",a.getSelection()),u.dataTransfer.effectAllowed=\"copyMove\",u.dataTransfer.setDragImage&&!S)){var p=U(\"img\",null,null,\"position: fixed; left: 0; top: 0;\");p.src=\"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==\",y&&(p.width=p.height=1,a.display.wrapper.appendChild(p),p._top=p.offsetTop),u.dataTransfer.setDragImage(p,0,0),y&&p.parentNode.removeChild(p)}}M(hB,\"onDragStart\");function vB(a,u){var p=lu(a,u);if(p){var d=document.createDocumentFragment();$b(a,p,d),a.display.dragCursor||(a.display.dragCursor=U(\"div\",null,\"CodeMirror-cursors CodeMirror-dragcursors\"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),z(a.display.dragCursor,d)}}M(vB,\"onDragOver\");function HD(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}M(HD,\"clearDragCursor\");function zD(a){if(document.getElementsByClassName){for(var u=document.getElementsByClassName(\"CodeMirror\"),p=[],d=0;d<u.length;d++){var v=u[d].CodeMirror;v&&p.push(v)}p.length&&p[0].operation(function(){for(var w=0;w<p.length;w++)a(p[w])})}}M(zD,\"forEachCodeMirror\");var mB=!1;function gB(){mB||(yB(),mB=!0)}M(gB,\"ensureGlobalHandlers\");function yB(){var a;Ye(window,\"resize\",function(){a==null&&(a=setTimeout(function(){a=null,zD(bB)},100))}),Ye(window,\"blur\",function(){return zD(Sc)})}M(yB,\"registerGlobalHandlers\");function bB(a){var u=a.display;u.cachedCharWidth=u.cachedTextHeight=u.cachedPaddingH=null,u.scrollbarsClipped=!1,a.setSize()}M(bB,\"onResize\");for(var hu={3:\"Pause\",8:\"Backspace\",9:\"Tab\",13:\"Enter\",16:\"Shift\",17:\"Ctrl\",18:\"Alt\",19:\"Pause\",20:\"CapsLock\",27:\"Esc\",32:\"Space\",33:\"PageUp\",34:\"PageDown\",35:\"End\",36:\"Home\",37:\"Left\",38:\"Up\",39:\"Right\",40:\"Down\",44:\"PrintScrn\",45:\"Insert\",46:\"Delete\",59:\";\",61:\"=\",91:\"Mod\",92:\"Mod\",93:\"Mod\",106:\"*\",107:\"=\",109:\"-\",110:\".\",111:\"/\",145:\"ScrollLock\",173:\"-\",186:\";\",187:\"=\",188:\",\",189:\"-\",190:\".\",191:\"/\",192:\"`\",219:\"[\",220:\"\\\\\",221:\"]\",222:\"'\",224:\"Mod\",63232:\"Up\",63233:\"Down\",63234:\"Left\",63235:\"Right\",63272:\"Delete\",63273:\"Home\",63275:\"End\",63276:\"PageUp\",63277:\"PageDown\",63302:\"Insert\"},lm=0;lm<10;lm++)hu[lm+48]=hu[lm+96]=String(lm);for(var rE=65;rE<=90;rE++)hu[rE]=String.fromCharCode(rE);for(var um=1;um<=12;um++)hu[um+111]=hu[um+63235]=\"F\"+um;var Hs={};Hs.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\"},Hs.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\"},Hs.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\"},Hs.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\"]},Hs.default=T?Hs.macDefault:Hs.pcDefault;function EB(a){var u=a.split(/-(?!$)/);a=u[u.length-1];for(var p,d,v,w,k=0;k<u.length-1;k++){var I=u[k];if(/^(cmd|meta|m)$/i.test(I))w=!0;else if(/^a(lt)?$/i.test(I))p=!0;else if(/^(c|ctrl|control)$/i.test(I))d=!0;else if(/^s(hift)?$/i.test(I))v=!0;else throw new Error(\"Unrecognized modifier name: \"+I)}return p&&(a=\"Alt-\"+a),d&&(a=\"Ctrl-\"+a),w&&(a=\"Cmd-\"+a),v&&(a=\"Shift-\"+a),a}M(EB,\"normalizeKeyName\");function wB(a){var u={};for(var p in a)if(a.hasOwnProperty(p)){var d=a[p];if(/^(name|fallthrough|(de|at)tach)$/.test(p))continue;if(d==\"...\"){delete a[p];continue}for(var v=ur(p.split(\" \"),EB),w=0;w<v.length;w++){var k=void 0,I=void 0;w==v.length-1?(I=v.join(\" \"),k=d):(I=v.slice(0,w+1).join(\" \"),k=\"...\");var R=u[I];if(!R)u[I]=k;else if(R!=k)throw new Error(\"Inconsistent bindings for \"+I)}delete a[p]}for(var $ in u)a[$]=u[$];return a}M(wB,\"normalizeKeyMap\");function Oc(a,u,p,d){u=cm(u);var v=u.call?u.call(a,d):u[a];if(v===!1)return\"nothing\";if(v===\"...\")return\"multi\";if(v!=null&&p(v))return\"handled\";if(u.fallthrough){if(Object.prototype.toString.call(u.fallthrough)!=\"[object Array]\")return Oc(a,u.fallthrough,p,d);for(var w=0;w<u.fallthrough.length;w++){var k=Oc(a,u.fallthrough[w],p,d);if(k)return k}}}M(Oc,\"lookupKey\");function GD(a){var u=typeof a==\"string\"?a:hu[a.keyCode];return u==\"Ctrl\"||u==\"Alt\"||u==\"Shift\"||u==\"Mod\"}M(GD,\"isModifierKey\");function WD(a,u,p){var d=a;return u.altKey&&d!=\"Alt\"&&(a=\"Alt-\"+a),(A?u.metaKey:u.ctrlKey)&&d!=\"Ctrl\"&&(a=\"Ctrl-\"+a),(A?u.ctrlKey:u.metaKey)&&d!=\"Mod\"&&(a=\"Cmd-\"+a),!p&&u.shiftKey&&d!=\"Shift\"&&(a=\"Shift-\"+a),a}M(WD,\"addModifierNames\");function QD(a,u){if(y&&a.keyCode==34&&a.char)return!1;var p=hu[a.keyCode];return p==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(p=a.code),WD(p,a,u))}M(QD,\"keyName\");function cm(a){return typeof a==\"string\"?Hs[a]:a}M(cm,\"getKeyMap\");function Ic(a,u){for(var p=a.doc.sel.ranges,d=[],v=0;v<p.length;v++){for(var w=u(p[v]);d.length&&B(w.from,st(d).to)<=0;){var k=d.pop();if(B(k.from,w.from)<0){w.from=k.from;break}}d.push(w)}Ei(a,function(){for(var I=d.length-1;I>=0;I--)Dc(a.doc,\"\",d[I].from,d[I].to,\"+delete\");Tc(a)})}M(Ic,\"deleteNearSelection\");function iE(a,u,p){var d=wd(a.text,u+p,p);return d<0||d>a.text.length?null:d}M(iE,\"moveCharLogically\");function oE(a,u,p){var d=iE(a,u.ch,p);return d==null?null:new _e(u.line,d,p<0?\"after\":\"before\")}M(oE,\"moveLogically\");function aE(a,u,p,d,v){if(a){u.doc.direction==\"rtl\"&&(v=-v);var w=ei(p,u.doc.direction);if(w){var k=v<0?st(w):w[0],I=v<0==(k.level==1),R=I?\"after\":\"before\",$;if(k.level>0||u.doc.direction==\"rtl\"){var W=yc(u,p);$=v<0?p.text.length-1:0;var Q=Sa(u,W,$).top;$=Mo(function(te){return Sa(u,W,te).top==Q},v<0==(k.level==1)?k.from:k.to-1,$),R==\"before\"&&($=iE(p,$,1))}else $=v<0?k.to:k.from;return new _e(d,$,R)}}return new _e(d,v<0?p.text.length:0,v<0?\"before\":\"after\")}M(aE,\"endOfLine\");function SB(a,u,p,d){var v=ei(u,a.doc.direction);if(!v)return oE(u,p,d);p.ch>=u.text.length?(p.ch=u.text.length,p.sticky=\"before\"):p.ch<=0&&(p.ch=0,p.sticky=\"after\");var w=cn(v,p.ch,p.sticky),k=v[w];if(a.doc.direction==\"ltr\"&&k.level%2==0&&(d>0?k.to>p.ch:k.from<p.ch))return oE(u,p,d);var I=M(function(Ae,Fe){return iE(u,Ae instanceof _e?Ae.ch:Ae,Fe)},\"mv\"),R,$=M(function(Ae){return a.options.lineWrapping?(R=R||yc(a,u),rD(a,u,R,Ae)):{begin:0,end:u.text.length}},\"getWrappedLineExtent\"),W=$(p.sticky==\"before\"?I(p,-1):p.ch);if(a.doc.direction==\"rtl\"||k.level==1){var Q=k.level==1==d<0,te=I(p,Q?1:-1);if(te!=null&&(Q?te<=k.to&&te<=W.end:te>=k.from&&te>=W.begin)){var ee=Q?\"before\":\"after\";return new _e(p.line,te,ee)}}var fe=M(function(Ae,Fe,Oe){for(var Me=M(function(Ht,dr){return dr?new _e(p.line,I(Ht,1),\"before\"):new _e(p.line,Ht,\"after\")},\"getRes\");Ae>=0&&Ae<v.length;Ae+=Fe){var Qe=v[Ae],ze=Fe>0==(Qe.level!=1),dt=ze?Oe.begin:I(Oe.end,-1);if(Qe.from<=dt&&dt<Qe.to||(dt=ze?Qe.from:I(Qe.to,-1),Oe.begin<=dt&&dt<Oe.end))return Me(dt,ze)}},\"searchInVisualLine\"),ye=fe(w+d,d,W);if(ye)return ye;var Ne=d>0?W.end:I(W.begin,-1);return Ne!=null&&!(d>0&&Ne==u.text.length)&&(ye=fe(d>0?0:v.length-1,d,$(Ne)),ye)?ye:null}M(SB,\"moveVisually\");var fm={selectAll:RD,singleSelection:function(a){return a.setSelection(a.getCursor(\"anchor\"),a.getCursor(\"head\"),qe)},killLine:function(a){return Ic(a,function(u){if(u.empty()){var p=$e(a.doc,u.head.line).text.length;return u.head.ch==p&&u.head.line<a.lastLine()?{from:u.head,to:_e(u.head.line+1,0)}:{from:u.head,to:_e(u.head.line,p)}}else return{from:u.from(),to:u.to()}})},deleteLine:function(a){return Ic(a,function(u){return{from:_e(u.from().line,0),to:Re(a.doc,_e(u.to().line+1,0))}})},delLineLeft:function(a){return Ic(a,function(u){return{from:_e(u.from().line,0),to:u.from()}})},delWrappedLineLeft:function(a){return Ic(a,function(u){var p=a.charCoords(u.head,\"div\").top+5,d=a.coordsChar({left:0,top:p},\"div\");return{from:d,to:u.from()}})},delWrappedLineRight:function(a){return Ic(a,function(u){var p=a.charCoords(u.head,\"div\").top+5,d=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:p},\"div\");return{from:u.from(),to:d}})},undo:function(a){return a.undo()},redo:function(a){return a.redo()},undoSelection:function(a){return a.undoSelection()},redoSelection:function(a){return a.redoSelection()},goDocStart:function(a){return a.extendSelection(_e(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(_e(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(u){return YD(a,u.head.line)},{origin:\"+move\",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(u){return JD(a,u.head)},{origin:\"+move\",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(u){return TB(a,u.head.line)},{origin:\"+move\",bias:-1})},goLineRight:function(a){return a.extendSelectionsBy(function(u){var p=a.cursorCoords(u.head,\"div\").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:p},\"div\")},nt)},goLineLeft:function(a){return a.extendSelectionsBy(function(u){var p=a.cursorCoords(u.head,\"div\").top+5;return a.coordsChar({left:0,top:p},\"div\")},nt)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(u){var p=a.cursorCoords(u.head,\"div\").top+5,d=a.coordsChar({left:0,top:p},\"div\");return d.ch<a.getLine(d.line).search(/\\S/)?JD(a,u.head):d},nt)},goLineUp:function(a){return a.moveV(-1,\"line\")},goLineDown:function(a){return a.moveV(1,\"line\")},goPageUp:function(a){return a.moveV(-1,\"page\")},goPageDown:function(a){return a.moveV(1,\"page\")},goCharLeft:function(a){return a.moveH(-1,\"char\")},goCharRight:function(a){return a.moveH(1,\"char\")},goColumnLeft:function(a){return a.moveH(-1,\"column\")},goColumnRight:function(a){return a.moveH(1,\"column\")},goWordLeft:function(a){return a.moveH(-1,\"word\")},goGroupRight:function(a){return a.moveH(1,\"group\")},goGroupLeft:function(a){return a.moveH(-1,\"group\")},goWordRight:function(a){return a.moveH(1,\"word\")},delCharBefore:function(a){return a.deleteH(-1,\"codepoint\")},delCharAfter:function(a){return a.deleteH(1,\"char\")},delWordBefore:function(a){return a.deleteH(-1,\"word\")},delWordAfter:function(a){return a.deleteH(1,\"word\")},delGroupBefore:function(a){return a.deleteH(-1,\"group\")},delGroupAfter:function(a){return a.deleteH(1,\"group\")},indentAuto:function(a){return a.indentSelection(\"smart\")},indentMore:function(a){return a.indentSelection(\"add\")},indentLess:function(a){return a.indentSelection(\"subtract\")},insertTab:function(a){return a.replaceSelection(\"\t\")},insertSoftTab:function(a){for(var u=[],p=a.listSelections(),d=a.options.tabSize,v=0;v<p.length;v++){var w=p[v].from(),k=ue(a.getLine(w.line),w.ch,d);u.push(xn(d-k%d))}a.replaceSelections(u)},defaultTab:function(a){a.somethingSelected()?a.indentSelection(\"add\"):a.execCommand(\"insertTab\")},transposeChars:function(a){return Ei(a,function(){for(var u=a.listSelections(),p=[],d=0;d<u.length;d++)if(u[d].empty()){var v=u[d].head,w=$e(a.doc,v.line).text;if(w){if(v.ch==w.length&&(v=new _e(v.line,v.ch-1)),v.ch>0)v=new _e(v.line,v.ch+1),a.replaceRange(w.charAt(v.ch-1)+w.charAt(v.ch-2),_e(v.line,v.ch-2),v,\"+transpose\");else if(v.line>a.doc.first){var k=$e(a.doc,v.line-1).text;k&&(v=new _e(v.line,1),a.replaceRange(w.charAt(0)+a.doc.lineSeparator()+k.charAt(k.length-1),_e(v.line-1,k.length-1),v,\"+transpose\"))}}p.push(new Rt(v,v))}a.setSelections(p)})},newlineAndIndent:function(a){return Ei(a,function(){for(var u=a.listSelections(),p=u.length-1;p>=0;p--)a.replaceRange(a.doc.lineSeparator(),u[p].anchor,u[p].head,\"+input\");u=a.listSelections();for(var d=0;d<u.length;d++)a.indentLine(u[d].from().line,null,!0);Tc(a)})},openLine:function(a){return a.replaceSelection(`\n`,\"start\")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function YD(a,u){var p=$e(a.doc,u),d=qo(p);return d!=p&&(u=xt(d)),aE(!0,a,d,u,1)}M(YD,\"lineStart\");function TB(a,u){var p=$e(a.doc,u),d=oV(p);return d!=p&&(u=xt(d)),aE(!0,a,p,u,-1)}M(TB,\"lineEnd\");function JD(a,u){var p=YD(a,u.line),d=$e(a.doc,p.line),v=ei(d,a.doc.direction);if(!v||v[0].level==0){var w=Math.max(p.ch,d.text.search(/\\S/)),k=u.line==p.line&&u.ch<=w&&u.ch;return _e(p.line,k?0:w,p.sticky)}return p}M(JD,\"lineStartSmart\");function dm(a,u,p){if(typeof u==\"string\"&&(u=fm[u],!u))return!1;a.display.input.ensurePolled();var d=a.display.shift,v=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),p&&(a.display.shift=!1),v=u(a)!=Ce}finally{a.display.shift=d,a.state.suppressEdits=!1}return v}M(dm,\"doHandleBinding\");function _B(a,u,p){for(var d=0;d<a.state.keyMaps.length;d++){var v=Oc(u,a.state.keyMaps[d],p,a);if(v)return v}return a.options.extraKeys&&Oc(u,a.options.extraKeys,p,a)||Oc(u,a.options.keyMap,p,a)}M(_B,\"lookupKeyForEditor\");var xae=new ce;function Qd(a,u,p,d){var v=a.state.keySeq;if(v){if(GD(u))return\"handled\";if(/\\'$/.test(u)?a.state.keySeq=null:xae.set(50,function(){a.state.keySeq==v&&(a.state.keySeq=null,a.display.input.reset())}),KD(a,v+\" \"+u,p,d))return!0}return KD(a,u,p,d)}M(Qd,\"dispatchKey\");function KD(a,u,p,d){var v=_B(a,u,d);return v==\"multi\"&&(a.state.keySeq=u),v==\"handled\"&&Qn(a,\"keyHandled\",a,u,p),(v==\"handled\"||v==\"multi\")&&(fr(p),Vb(a)),!!v}M(KD,\"dispatchKeyInner\");function XD(a,u){var p=QD(u,!0);return p?u.shiftKey&&!a.state.keySeq?Qd(a,\"Shift-\"+p,u,function(d){return dm(a,d,!0)})||Qd(a,p,u,function(d){if(typeof d==\"string\"?/^go[A-Z]/.test(d):d.motion)return dm(a,d)}):Qd(a,p,u,function(d){return dm(a,d)}):!1}M(XD,\"handleKeyBinding\");function CB(a,u,p){return Qd(a,\"'\"+p+\"'\",u,function(d){return dm(a,d,!0)})}M(CB,\"handleCharBinding\");var ZD=null;function eA(a){var u=this;if(!(a.target&&a.target!=u.display.input.getField())&&(u.curOp.focus=J(),!En(u,a))){c&&f<11&&a.keyCode==27&&(a.returnValue=!1);var p=a.keyCode;u.display.shift=p==16||a.shiftKey;var d=XD(u,a);y&&(ZD=d?p:null,!d&&p==88&&!Mv&&(T?a.metaKey:a.ctrlKey)&&u.replaceSelection(\"\",null,\"cut\")),i&&!T&&!d&&p==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand(\"cut\"),p==18&&!/\\bCodeMirror-crosshair\\b/.test(u.display.lineDiv.className)&&xB(u)}}M(eA,\"onKeyDown\");function xB(a){var u=a.display.lineDiv;re(u,\"CodeMirror-crosshair\");function p(d){(d.keyCode==18||!d.altKey)&&(H(u,\"CodeMirror-crosshair\"),$r(document,\"keyup\",p),$r(document,\"mouseover\",p))}M(p,\"up\"),Ye(document,\"keyup\",p),Ye(document,\"mouseover\",p)}M(xB,\"showCrossHair\");function tA(a){a.keyCode==16&&(this.doc.sel.shift=!1),En(this,a)}M(tA,\"onKeyUp\");function nA(a){var u=this;if(!(a.target&&a.target!=u.display.input.getField())&&!(Ja(u.display,a)||En(u,a)||a.ctrlKey&&!a.altKey||T&&a.metaKey)){var p=a.keyCode,d=a.charCode;if(y&&p==ZD){ZD=null,fr(a);return}if(!(y&&(!a.which||a.which<10)&&XD(u,a))){var v=String.fromCharCode(d??p);v!=\"\\b\"&&(CB(u,a,v)||u.display.input.onKeyPress(a))}}}M(nA,\"onKeyPress\");var kae=400,rA=M(function(a,u,p){this.time=a,this.pos=u,this.button=p},\"PastClick\");rA.prototype.compare=function(a,u,p){return this.time+kae>a&&B(u,this.pos)==0&&p==this.button};var pm,hm;function kB(a,u){var p=+new Date;return hm&&hm.compare(p,a,u)?(pm=hm=null,\"triple\"):pm&&pm.compare(p,a,u)?(hm=new rA(p,a,u),pm=null,\"double\"):(pm=new rA(p,a,u),hm=null,\"single\")}M(kB,\"clickRepeat\");function iA(a){var u=this,p=u.display;if(!(En(u,a)||p.activeTouch&&p.input.supportsTouch())){if(p.input.ensurePolled(),p.shift=a.shiftKey,Ja(p,a)){h||(p.scroller.draggable=!1,setTimeout(function(){return p.scroller.draggable=!0},100));return}if(!sE(u,a)){var d=lu(u,a),v=Sd(a),w=d?kB(d,v):\"single\";window.focus(),v==1&&u.state.selectingText&&u.state.selectingText(a),!(d&&NB(u,v,d,w,a))&&(v==1?d?AB(u,d,w,a):Ga(a)==p.scroller&&fr(a):v==2?(d&&nm(u.doc,d),setTimeout(function(){return p.input.focus()},20)):v==3&&(P?u.display.input.onContextMenu(a):Bb(u)))}}}M(iA,\"onMouseDown\");function NB(a,u,p,d,v){var w=\"Click\";return d==\"double\"?w=\"Double\"+w:d==\"triple\"&&(w=\"Triple\"+w),w=(u==1?\"Left\":u==2?\"Middle\":\"Right\")+w,Qd(a,WD(w,v),v,function(k){if(typeof k==\"string\"&&(k=fm[k]),!k)return!1;var I=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),I=k(a,p)!=Ce}finally{a.state.suppressEdits=!1}return I})}M(NB,\"handleMappedButton\");function DB(a,u,p){var d=a.getOption(\"configureMouse\"),v=d?d(a,u,p):{};if(v.unit==null){var w=N?p.shiftKey&&p.metaKey:p.altKey;v.unit=w?\"rectangle\":u==\"single\"?\"char\":u==\"double\"?\"word\":\"line\"}return(v.extend==null||a.doc.extend)&&(v.extend=a.doc.extend||p.shiftKey),v.addNew==null&&(v.addNew=T?p.metaKey:p.ctrlKey),v.moveOnDrag==null&&(v.moveOnDrag=!(T?p.altKey:p.ctrlKey)),v}M(DB,\"configureMouse\");function AB(a,u,p,d){c?setTimeout(K(sD,a),0):a.curOp.focus=J();var v=DB(a,p,d),w=a.doc.sel,k;a.options.dragDrop&&Td&&!a.isReadOnly()&&p==\"single\"&&(k=w.contains(u))>-1&&(B((k=w.ranges[k]).from(),u)<0||u.xRel>0)&&(B(k.to(),u)>0||u.xRel<0)?OB(a,d,u,v):IB(a,d,u,v)}M(AB,\"leftButtonDown\");function OB(a,u,p,d){var v=a.display,w=!1,k=Yn(a,function($){h&&(v.scroller.draggable=!1),a.state.draggingText=!1,a.state.delayingBlurEvent&&(a.hasFocus()?a.state.delayingBlurEvent=!1:Bb(a)),$r(v.wrapper.ownerDocument,\"mouseup\",k),$r(v.wrapper.ownerDocument,\"mousemove\",I),$r(v.scroller,\"dragstart\",R),$r(v.scroller,\"drop\",k),w||(fr($),d.addNew||nm(a.doc,p,null,null,d.extend),h&&!S||c&&f==9?setTimeout(function(){v.wrapper.ownerDocument.body.focus({preventScroll:!0}),v.input.focus()},20):v.input.focus())}),I=M(function($){w=w||Math.abs(u.clientX-$.clientX)+Math.abs(u.clientY-$.clientY)>=10},\"mouseMove\"),R=M(function(){return w=!0},\"dragStart\");h&&(v.scroller.draggable=!0),a.state.draggingText=k,k.copy=!d.moveOnDrag,Ye(v.wrapper.ownerDocument,\"mouseup\",k),Ye(v.wrapper.ownerDocument,\"mousemove\",I),Ye(v.scroller,\"dragstart\",R),Ye(v.scroller,\"drop\",k),a.state.delayingBlurEvent=!0,setTimeout(function(){return v.input.focus()},20),v.scroller.dragDrop&&v.scroller.dragDrop()}M(OB,\"leftButtonStartDrag\");function oA(a,u,p){if(p==\"char\")return new Rt(u,u);if(p==\"word\")return a.findWordAt(u);if(p==\"line\")return new Rt(_e(u.line,0),Re(a.doc,_e(u.line+1,0)));var d=p(a,u);return new Rt(d.from,d.to)}M(oA,\"rangeForUnit\");function IB(a,u,p,d){c&&Bb(a);var v=a.display,w=a.doc;fr(u);var k,I,R=w.sel,$=R.ranges;if(d.addNew&&!d.extend?(I=w.sel.contains(p),I>-1?k=$[I]:k=new Rt(p,p)):(k=w.sel.primary(),I=w.sel.primIndex),d.unit==\"rectangle\")d.addNew||(k=new Rt(p,p)),p=lu(a,u,!0,!0),I=-1;else{var W=oA(a,p,d.unit);d.extend?k=tE(k,W.anchor,W.head,d.extend):k=W}d.addNew?I==-1?(I=$.length,Nr(w,zo(a,$.concat([k]),I),{scroll:!1,origin:\"*mouse\"})):$.length>1&&$[I].empty()&&d.unit==\"char\"&&!d.extend?(Nr(w,zo(a,$.slice(0,I).concat($.slice(I+1)),0),{scroll:!1,origin:\"*mouse\"}),R=w.sel):nE(w,I,k,un):(I=0,Nr(w,new co([k],0),un),R=w.sel);var Q=p;function te(Oe){if(B(Q,Oe)!=0)if(Q=Oe,d.unit==\"rectangle\"){for(var Me=[],Qe=a.options.tabSize,ze=ue($e(w,p.line).text,p.ch,Qe),dt=ue($e(w,Oe.line).text,Oe.ch,Qe),Ht=Math.min(ze,dt),dr=Math.max(ze,dt),fn=Math.min(p.line,Oe.line),Si=Math.min(a.lastLine(),Math.max(p.line,Oe.line));fn<=Si;fn++){var Ti=$e(w,fn).text,Bn=et(Ti,Ht,Qe);Ht==dr?Me.push(new Rt(_e(fn,Bn),_e(fn,Bn))):Ti.length>Bn&&Me.push(new Rt(_e(fn,Bn),_e(fn,et(Ti,dr,Qe))))}Me.length||Me.push(new Rt(p,p)),Nr(w,zo(a,R.ranges.slice(0,I).concat(Me),I),{origin:\"*mouse\",scroll:!1}),a.scrollIntoView(Oe)}else{var _i=k,Dr=oA(a,Oe,d.unit),Kn=_i.anchor,jn;B(Dr.anchor,Kn)>0?(jn=Dr.head,Kn=tt(_i.from(),Dr.anchor)):(jn=Dr.anchor,Kn=xe(_i.to(),Dr.head));var wn=R.ranges.slice(0);wn[I]=LB(a,new Rt(Re(w,Kn),jn)),Nr(w,zo(a,wn,I),un)}}M(te,\"extendTo\");var ee=v.wrapper.getBoundingClientRect(),fe=0;function ye(Oe){var Me=++fe,Qe=lu(a,Oe,!0,d.unit==\"rectangle\");if(Qe)if(B(Qe,Q)!=0){a.curOp.focus=J(),te(Qe);var ze=Kv(v,w);(Qe.line>=ze.to||Qe.line<ze.from)&&setTimeout(Yn(a,function(){fe==Me&&ye(Oe)}),150)}else{var dt=Oe.clientY<ee.top?-20:Oe.clientY>ee.bottom?20:0;dt&&setTimeout(Yn(a,function(){fe==Me&&(v.scroller.scrollTop+=dt,ye(Oe))}),50)}}M(ye,\"extend\");function Ne(Oe){a.state.selectingText=!1,fe=1/0,Oe&&(fr(Oe),v.input.focus()),$r(v.wrapper.ownerDocument,\"mousemove\",Ae),$r(v.wrapper.ownerDocument,\"mouseup\",Fe),w.history.lastSelOrigin=null}M(Ne,\"done\");var Ae=Yn(a,function(Oe){Oe.buttons===0||!Sd(Oe)?Ne(Oe):ye(Oe)}),Fe=Yn(a,Ne);a.state.selectingText=Fe,Ye(v.wrapper.ownerDocument,\"mousemove\",Ae),Ye(v.wrapper.ownerDocument,\"mouseup\",Fe)}M(IB,\"leftButtonSelect\");function LB(a,u){var p=u.anchor,d=u.head,v=$e(a.doc,p.line);if(B(p,d)==0&&p.sticky==d.sticky)return u;var w=ei(v);if(!w)return u;var k=cn(w,p.ch,p.sticky),I=w[k];if(I.from!=p.ch&&I.to!=p.ch)return u;var R=k+(I.from==p.ch==(I.level!=1)?0:1);if(R==0||R==w.length)return u;var $;if(d.line!=p.line)$=(d.line-p.line)*(a.doc.direction==\"ltr\"?1:-1)>0;else{var W=cn(w,d.ch,d.sticky),Q=W-k||(d.ch-p.ch)*(I.level==1?-1:1);W==R-1||W==R?$=Q<0:$=Q>0}var te=w[R+($?-1:0)],ee=$==(te.level==1),fe=ee?te.from:te.to,ye=ee?\"after\":\"before\";return p.ch==fe&&p.sticky==ye?u:new Rt(new _e(p.line,fe,ye),d)}M(LB,\"bidiSimplify\");function aA(a,u,p,d){var v,w;if(u.touches)v=u.touches[0].clientX,w=u.touches[0].clientY;else try{v=u.clientX,w=u.clientY}catch{return!1}if(v>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;d&&fr(u);var k=a.display,I=k.lineDiv.getBoundingClientRect();if(w>I.bottom||!Wn(a,p))return yi(u);w-=I.top-k.viewOffset;for(var R=0;R<a.display.gutterSpecs.length;++R){var $=k.gutters.childNodes[R];if($&&$.getBoundingClientRect().right>=v){var W=Uo(a.doc,w),Q=a.display.gutterSpecs[R];return Ze(a,p,a,W,Q.className,u),yi(u)}}}M(aA,\"gutterEvent\");function sE(a,u){return aA(a,u,\"gutterClick\",!0)}M(sE,\"clickInGutter\");function sA(a,u){Ja(a.display,u)||FB(a,u)||En(a,u,\"contextmenu\")||P||a.display.input.onContextMenu(u)}M(sA,\"onContextMenu\");function FB(a,u){return Wn(a,\"gutterContextMenu\")?aA(a,u,\"gutterContextMenu\",!1):!1}M(FB,\"contextMenuInGutter\");function lA(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\\s*cm-s-\\S+/g,\"\")+a.options.theme.replace(/(^|\\s)\\s*/g,\" cm-s-\"),Pd(a)}M(lA,\"themeChanged\");var Yd={toString:function(){return\"CodeMirror.Init\"}},RB={},lE={};function PB(a){var u=a.optionHandlers;function p(d,v,w,k){a.defaults[d]=v,w&&(u[d]=k?function(I,R,$){$!=Yd&&w(I,R,$)}:w)}M(p,\"option\"),a.defineOption=p,a.Init=Yd,p(\"value\",\"\",function(d,v){return d.setValue(v)},!0),p(\"mode\",null,function(d,v){d.doc.modeOption=v,Xb(d)},!0),p(\"indentUnit\",2,Xb,!0),p(\"indentWithTabs\",!1),p(\"smartIndent\",!0),p(\"tabSize\",4,function(d){qd(d),Pd(d),ri(d)},!0),p(\"lineSeparator\",null,function(d,v){if(d.doc.lineSep=v,!!v){var w=[],k=d.doc.first;d.doc.iter(function(R){for(var $=0;;){var W=R.text.indexOf(v,$);if(W==-1)break;$=W+v.length,w.push(_e(k,W))}k++});for(var I=w.length-1;I>=0;I--)Dc(d.doc,v,w[I],_e(w[I].line,w[I].ch+v.length))}}),p(\"specialChars\",/[\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u061c\\u200b\\u200e\\u200f\\u2028\\u2029\\ufeff\\ufff9-\\ufffc]/g,function(d,v,w){d.state.specialChars=new RegExp(v.source+(v.test(\"\t\")?\"\":\"|\t\"),\"g\"),w!=Yd&&d.refresh()}),p(\"specialCharPlaceholder\",uV,function(d){return d.refresh()},!0),p(\"electricChars\",!0),p(\"inputStyle\",C?\"contenteditable\":\"textarea\",function(){throw new Error(\"inputStyle can not (yet) be changed in a running editor\")},!0),p(\"spellcheck\",!1,function(d,v){return d.getInputField().spellcheck=v},!0),p(\"autocorrect\",!1,function(d,v){return d.getInputField().autocorrect=v},!0),p(\"autocapitalize\",!1,function(d,v){return d.getInputField().autocapitalize=v},!0),p(\"rtlMoveVisually\",!F),p(\"wholeLineUpdateBefore\",!0),p(\"theme\",\"default\",function(d){lA(d),Ud(d)},!0),p(\"keyMap\",\"default\",function(d,v,w){var k=cm(v),I=w!=Yd&&cm(w);I&&I.detach&&I.detach(d,k),k.attach&&k.attach(d,I||null)}),p(\"extraKeys\",null),p(\"configureMouse\",null),p(\"lineWrapping\",!1,$B,!0),p(\"gutters\",[],function(d,v){d.display.gutterSpecs=Yb(v,d.options.lineNumbers),Ud(d)},!0),p(\"fixedGutter\",!0,function(d,v){d.display.gutters.style.left=v?Pb(d.display)+\"px\":\"0\",d.refresh()},!0),p(\"coverGutterNextToScrollbar\",!1,function(d){return Cc(d)},!0),p(\"scrollbarStyle\",\"native\",function(d){dD(d),Cc(d),d.display.scrollbars.setScrollTop(d.doc.scrollTop),d.display.scrollbars.setScrollLeft(d.doc.scrollLeft)},!0),p(\"lineNumbers\",!1,function(d,v){d.display.gutterSpecs=Yb(d.options.gutters,v),Ud(d)},!0),p(\"firstLineNumber\",1,Ud,!0),p(\"lineNumberFormatter\",function(d){return d},Ud,!0),p(\"showCursorWhenSelecting\",!1,Md,!0),p(\"resetSelectionOnContextMenu\",!0),p(\"lineWiseCopyCut\",!0),p(\"pasteLinesPerSelection\",!0),p(\"selectionsMayTouch\",!1),p(\"readOnly\",!1,function(d,v){v==\"nocursor\"&&(Sc(d),d.display.input.blur()),d.display.input.readOnlyChanged(v)}),p(\"screenReaderLabel\",null,function(d,v){v=v===\"\"?null:v,d.display.input.screenReaderLabelChanged(v)}),p(\"disableInput\",!1,function(d,v){v||d.display.input.reset()},!0),p(\"dragDrop\",!0,MB),p(\"allowDropFileTypes\",null),p(\"cursorBlinkRate\",530),p(\"cursorScrollMargin\",0),p(\"cursorHeight\",1,Md,!0),p(\"singleCursorHeightPerLine\",!0,Md,!0),p(\"workTime\",100),p(\"workDelay\",100),p(\"flattenSpans\",!0,qd,!0),p(\"addModeClass\",!1,qd,!0),p(\"pollInterval\",100),p(\"undoDepth\",200,function(d,v){return d.doc.history.undoDepth=v}),p(\"historyEventDelay\",1250),p(\"viewportMargin\",10,function(d){return d.refresh()},!0),p(\"maxHighlightLength\",1e4,qd,!0),p(\"moveInputWithCursor\",!0,function(d,v){v||d.display.input.resetPosition()}),p(\"tabindex\",null,function(d,v){return d.display.input.getField().tabIndex=v||\"\"}),p(\"autofocus\",null),p(\"direction\",\"ltr\",function(d,v){return d.doc.setDirection(v)},!0),p(\"phrases\",null)}M(PB,\"defineOptions\");function MB(a,u,p){var d=p&&p!=Yd;if(!u!=!d){var v=a.display.dragFunctions,w=u?Ye:$r;w(a.display.scroller,\"dragstart\",v.start),w(a.display.scroller,\"dragenter\",v.enter),w(a.display.scroller,\"dragover\",v.over),w(a.display.scroller,\"dragleave\",v.leave),w(a.display.scroller,\"drop\",v.drop)}}M(MB,\"dragDropChanged\");function $B(a){a.options.lineWrapping?(re(a.display.wrapper,\"CodeMirror-wrap\"),a.display.sizer.style.minWidth=\"\",a.display.sizerWidth=null):(H(a.display.wrapper,\"CodeMirror-wrap\"),xb(a)),Mb(a),ri(a),Pd(a),setTimeout(function(){return Cc(a)},100)}M($B,\"wrappingChanged\");function en(a,u){var p=this;if(!(this instanceof en))return new en(a,u);this.options=u=u?ve(u):{},ve(RB,u,!1);var d=u.value;typeof d==\"string\"?d=new wi(d,u.mode,null,u.lineSeparator,u.direction):u.mode&&(d.modeOption=u.mode),this.doc=d;var v=new en.inputStyles[u.inputStyle](this),w=this.display=new JV(a,d,v,u);w.wrapper.CodeMirror=this,lA(this),u.lineWrapping&&(this.display.wrapper.className+=\" CodeMirror-wrap\"),dD(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new ce,keySeq:null,specialChars:null},u.autofocus&&!C&&w.input.focus(),c&&f<11&&setTimeout(function(){return p.display.input.reset(!0)},20),VB(this),gB(),fu(this),this.curOp.forceUpdate=!0,SD(this,d),u.autofocus&&!C||this.hasFocus()?setTimeout(function(){p.hasFocus()&&!p.state.focused&&jb(p)},20):Sc(this);for(var k in lE)lE.hasOwnProperty(k)&&lE[k](this,u[k],Yd);vD(this),u.finishInit&&u.finishInit(this);for(var I=0;I<uA.length;++I)uA[I](this);du(this),h&&u.lineWrapping&&getComputedStyle(w.lineDiv).textRendering==\"optimizelegibility\"&&(w.lineDiv.style.textRendering=\"auto\")}M(en,\"CodeMirror\"),en.defaults=RB,en.optionHandlers=lE;function VB(a){var u=a.display;Ye(u.scroller,\"mousedown\",Yn(a,iA)),c&&f<11?Ye(u.scroller,\"dblclick\",Yn(a,function(R){if(!En(a,R)){var $=lu(a,R);if(!(!$||sE(a,R)||Ja(a.display,R))){fr(R);var W=a.findWordAt($);nm(a.doc,W.anchor,W.head)}}})):Ye(u.scroller,\"dblclick\",function(R){return En(a,R)||fr(R)}),Ye(u.scroller,\"contextmenu\",function(R){return sA(a,R)}),Ye(u.input.getField(),\"contextmenu\",function(R){u.scroller.contains(R.target)||sA(a,R)});var p,d={end:0};function v(){u.activeTouch&&(p=setTimeout(function(){return u.activeTouch=null},1e3),d=u.activeTouch,d.end=+new Date)}M(v,\"finishTouch\");function w(R){if(R.touches.length!=1)return!1;var $=R.touches[0];return $.radiusX<=1&&$.radiusY<=1}M(w,\"isMouseLikeTouchEvent\");function k(R,$){if($.left==null)return!0;var W=$.left-R.left,Q=$.top-R.top;return W*W+Q*Q>20*20}M(k,\"farAway\"),Ye(u.scroller,\"touchstart\",function(R){if(!En(a,R)&&!w(R)&&!sE(a,R)){u.input.ensurePolled(),clearTimeout(p);var $=+new Date;u.activeTouch={start:$,moved:!1,prev:$-d.end<=300?d:null},R.touches.length==1&&(u.activeTouch.left=R.touches[0].pageX,u.activeTouch.top=R.touches[0].pageY)}}),Ye(u.scroller,\"touchmove\",function(){u.activeTouch&&(u.activeTouch.moved=!0)}),Ye(u.scroller,\"touchend\",function(R){var $=u.activeTouch;if($&&!Ja(u,R)&&$.left!=null&&!$.moved&&new Date-$.start<300){var W=a.coordsChar(u.activeTouch,\"page\"),Q;!$.prev||k($,$.prev)?Q=new Rt(W,W):!$.prev.prev||k($,$.prev.prev)?Q=a.findWordAt(W):Q=new Rt(_e(W.line,0),Re(a.doc,_e(W.line+1,0))),a.setSelection(Q.anchor,Q.head),a.focus(),fr(R)}v()}),Ye(u.scroller,\"touchcancel\",v),Ye(u.scroller,\"scroll\",function(){u.scroller.clientHeight&&(Vd(a,u.scroller.scrollTop),cu(a,u.scroller.scrollLeft,!0),Ze(a,\"scroll\",a))}),Ye(u.scroller,\"mousewheel\",function(R){return yD(a,R)}),Ye(u.scroller,\"DOMMouseScroll\",function(R){return yD(a,R)}),Ye(u.wrapper,\"scroll\",function(){return u.wrapper.scrollTop=u.wrapper.scrollLeft=0}),u.dragFunctions={enter:function(R){En(a,R)||Fs(R)},over:function(R){En(a,R)||(vB(a,R),Fs(R))},start:function(R){return hB(a,R)},drop:Yn(a,pB),leave:function(R){En(a,R)||HD(a)}};var I=u.input.getField();Ye(I,\"keyup\",function(R){return tA.call(a,R)}),Ye(I,\"keydown\",Yn(a,eA)),Ye(I,\"keypress\",Yn(a,nA)),Ye(I,\"focus\",function(R){return jb(a,R)}),Ye(I,\"blur\",function(R){return Sc(a,R)})}M(VB,\"registerEventHandlers\");var uA=[];en.defineInitHook=function(a){return uA.push(a)};function Jd(a,u,p,d){var v=a.doc,w;p==null&&(p=\"add\"),p==\"smart\"&&(v.mode.indent?w=Ad(a,u).state:p=\"prev\");var k=a.options.tabSize,I=$e(v,u),R=ue(I.text,null,k);I.stateAfter&&(I.stateAfter=null);var $=I.text.match(/^\\s*/)[0],W;if(!d&&!/\\S/.test(I.text))W=0,p=\"not\";else if(p==\"smart\"&&(W=v.mode.indent(w,I.text.slice($.length),I.text),W==Ce||W>150)){if(!d)return;p=\"prev\"}p==\"prev\"?u>v.first?W=ue($e(v,u-1).text,null,k):W=0:p==\"add\"?W=R+a.options.indentUnit:p==\"subtract\"?W=R-a.options.indentUnit:typeof p==\"number\"&&(W=R+p),W=Math.max(0,W);var Q=\"\",te=0;if(a.options.indentWithTabs)for(var ee=Math.floor(W/k);ee;--ee)te+=k,Q+=\"\t\";if(te<W&&(Q+=xn(W-te)),Q!=$)return Dc(v,Q,_e(u,0),_e(u,$.length),\"+input\"),I.stateAfter=null,!0;for(var fe=0;fe<v.sel.ranges.length;fe++){var ye=v.sel.ranges[fe];if(ye.head.line==u&&ye.head.ch<$.length){var Ne=_e(u,$.length);nE(v,fe,new Rt(Ne,Ne));break}}}M(Jd,\"indentLine\");var Ta=null;function vm(a){Ta=a}M(vm,\"setLastCopied\");function uE(a,u,p,d,v){var w=a.doc;a.display.shift=!1,d||(d=w.sel);var k=+new Date-200,I=v==\"paste\"||a.state.pasteIncoming>k,R=xd(u),$=null;if(I&&d.ranges.length>1)if(Ta&&Ta.text.join(`\n`)==u){if(d.ranges.length%Ta.text.length==0){$=[];for(var W=0;W<Ta.text.length;W++)$.push(w.splitLines(Ta.text[W]))}}else R.length==d.ranges.length&&a.options.pasteLinesPerSelection&&($=ur(R,function(Ae){return[Ae]}));for(var Q=a.curOp.updateInput,te=d.ranges.length-1;te>=0;te--){var ee=d.ranges[te],fe=ee.from(),ye=ee.to();ee.empty()&&(p&&p>0?fe=_e(fe.line,fe.ch-p):a.state.overwrite&&!I?ye=_e(ye.line,Math.min($e(w,ye.line).text.length,ye.ch+st(R).length)):I&&Ta&&Ta.lineWise&&Ta.text.join(`\n`)==R.join(`\n`)&&(fe=ye=_e(fe.line,0)));var Ne={from:fe,to:ye,text:$?$[te%$.length]:R,origin:v||(I?\"paste\":a.state.cutIncoming>k?\"cut\":\"+input\")};Nc(a.doc,Ne),Qn(a,\"inputRead\",a,Ne)}u&&!I&&fA(a,u),Tc(a),a.curOp.updateInput<2&&(a.curOp.updateInput=Q),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}M(uE,\"applyTextInput\");function cA(a,u){var p=a.clipboardData&&a.clipboardData.getData(\"Text\");if(p)return a.preventDefault(),!u.isReadOnly()&&!u.options.disableInput&&Ei(u,function(){return uE(u,p,0,null,\"paste\")}),!0}M(cA,\"handlePaste\");function fA(a,u){if(!(!a.options.electricChars||!a.options.smartIndent))for(var p=a.doc.sel,d=p.ranges.length-1;d>=0;d--){var v=p.ranges[d];if(!(v.head.ch>100||d&&p.ranges[d-1].head.line==v.head.line)){var w=a.getModeAt(v.head),k=!1;if(w.electricChars){for(var I=0;I<w.electricChars.length;I++)if(u.indexOf(w.electricChars.charAt(I))>-1){k=Jd(a,v.head.line,\"smart\");break}}else w.electricInput&&w.electricInput.test($e(a.doc,v.head.line).text.slice(0,v.head.ch))&&(k=Jd(a,v.head.line,\"smart\"));k&&Qn(a,\"electricInput\",a,v.head.line)}}}M(fA,\"triggerElectric\");function dA(a){for(var u=[],p=[],d=0;d<a.doc.sel.ranges.length;d++){var v=a.doc.sel.ranges[d].head.line,w={anchor:_e(v,0),head:_e(v+1,0)};p.push(w),u.push(a.getRange(w.anchor,w.head))}return{text:u,ranges:p}}M(dA,\"copyableRanges\");function pA(a,u,p,d){a.setAttribute(\"autocorrect\",p?\"\":\"off\"),a.setAttribute(\"autocapitalize\",d?\"\":\"off\"),a.setAttribute(\"spellcheck\",!!u)}M(pA,\"disableBrowserMagic\");function hA(){var a=U(\"textarea\",null,null,\"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none\"),u=U(\"div\",[a],null,\"overflow: hidden; position: relative; width: 3px; height: 0px;\");return h?a.style.width=\"1000px\":a.setAttribute(\"wrap\",\"off\"),_&&(a.style.border=\"1px solid black\"),pA(a),u}M(hA,\"hiddenTextarea\");function BB(a){var u=a.optionHandlers,p=a.helpers={};a.prototype={constructor:a,focus:function(){window.focus(),this.display.input.focus()},setOption:function(d,v){var w=this.options,k=w[d];w[d]==v&&d!=\"mode\"||(w[d]=v,u.hasOwnProperty(d)&&Yn(this,u[d])(this,v,k),Ze(this,\"optionChange\",this,d))},getOption:function(d){return this.options[d]},getDoc:function(){return this.doc},addKeyMap:function(d,v){this.state.keyMaps[v?\"push\":\"unshift\"](cm(d))},removeKeyMap:function(d){for(var v=this.state.keyMaps,w=0;w<v.length;++w)if(v[w]==d||v[w].name==d)return v.splice(w,1),!0},addOverlay:Vr(function(d,v){var w=d.token?d:a.getMode(this.options,d);if(w.startState)throw new Error(\"Overlays may not be stateful.\");so(this.state.overlays,{mode:w,modeSpec:d,opaque:v&&v.opaque,priority:v&&v.priority||0},function(k){return k.priority}),this.state.modeGen++,ri(this)}),removeOverlay:Vr(function(d){for(var v=this.state.overlays,w=0;w<v.length;++w){var k=v[w].modeSpec;if(k==d||typeof d==\"string\"&&k.name==d){v.splice(w,1),this.state.modeGen++,ri(this);return}}}),indentLine:Vr(function(d,v,w){typeof v!=\"string\"&&typeof v!=\"number\"&&(v==null?v=this.options.smartIndent?\"smart\":\"prev\":v=v?\"add\":\"subtract\"),Rs(this.doc,d)&&Jd(this,d,v,w)}),indentSelection:Vr(function(d){for(var v=this.doc.sel.ranges,w=-1,k=0;k<v.length;k++){var I=v[k];if(I.empty())I.head.line>w&&(Jd(this,I.head.line,d,!0),w=I.head.line,k==this.doc.sel.primIndex&&Tc(this));else{var R=I.from(),$=I.to(),W=Math.max(w,R.line);w=Math.min(this.lastLine(),$.line-($.ch?0:1))+1;for(var Q=W;Q<w;++Q)Jd(this,Q,d);var te=this.doc.sel.ranges;R.ch==0&&v.length==te.length&&te[k].from().ch>0&&nE(this.doc,k,new Rt(R,te[k].to()),qe)}}}),getTokenAt:function(d,v){return kN(this,d,v)},getLineTokens:function(d,v){return kN(this,_e(d),v,!0)},getTokenTypeAt:function(d){d=Re(this.doc,d);var v=CN(this,$e(this.doc,d.line)),w=0,k=(v.length-1)/2,I=d.ch,R;if(I==0)R=v[2];else for(;;){var $=w+k>>1;if(($?v[$*2-1]:0)>=I)k=$;else if(v[$*2+1]<I)w=$+1;else{R=v[$*2+2];break}}var W=R?R.indexOf(\"overlay \"):-1;return W<0?R:W==0?null:R.slice(0,W-1)},getModeAt:function(d){var v=this.doc.mode;return v.innerMode?a.innerMode(v,this.getTokenAt(d).state).mode:v},getHelper:function(d,v){return this.getHelpers(d,v)[0]},getHelpers:function(d,v){var w=[];if(!p.hasOwnProperty(v))return w;var k=p[v],I=this.getModeAt(d);if(typeof I[v]==\"string\")k[I[v]]&&w.push(k[I[v]]);else if(I[v])for(var R=0;R<I[v].length;R++){var $=k[I[v][R]];$&&w.push($)}else I.helperType&&k[I.helperType]?w.push(k[I.helperType]):k[I.name]&&w.push(k[I.name]);for(var W=0;W<k._global.length;W++){var Q=k._global[W];Q.pred(I,this)&&le(w,Q.val)==-1&&w.push(Q.val)}return w},getStateAfter:function(d,v){var w=this.doc;return d=bt(w,d??w.first+w.size-1),Ad(this,d+1,v).state},cursorCoords:function(d,v){var w,k=this.doc.sel.primary();return d==null?w=k.head:typeof d==\"object\"?w=Re(this.doc,d):w=d?k.from():k.to(),Ho(this,w,v||\"page\")},charCoords:function(d,v){return Wv(this,Re(this.doc,d),v||\"page\")},coordsChar:function(d,v){return d=eD(this,d,v||\"page\"),Lb(this,d.left,d.top)},lineAtHeight:function(d,v){return d=eD(this,{top:d,left:0},v||\"page\").top,Uo(this.doc,d+this.display.viewOffset)},heightAtLine:function(d,v,w){var k=!1,I;if(typeof d==\"number\"){var R=this.doc.first+this.doc.size-1;d<this.doc.first?d=this.doc.first:d>R&&(d=R,k=!0),I=$e(this.doc,d)}else I=d;return Gv(this,I,{top:0,left:0},v||\"page\",w||k).top+(k?this.doc.height-Ya(I):0)},defaultTextHeight:function(){return Ec(this.display)},defaultCharWidth:function(){return wc(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(d,v,w,k,I){var R=this.display;d=Ho(this,Re(this.doc,d));var $=d.bottom,W=d.left;if(v.style.position=\"absolute\",v.setAttribute(\"cm-ignore-events\",\"true\"),this.display.input.setUneditable(v),R.sizer.appendChild(v),k==\"over\")$=d.top;else if(k==\"above\"||k==\"near\"){var Q=Math.max(R.wrapper.clientHeight,this.doc.height),te=Math.max(R.sizer.clientWidth,R.lineSpace.clientWidth);(k==\"above\"||d.bottom+v.offsetHeight>Q)&&d.top>v.offsetHeight?$=d.top-v.offsetHeight:d.bottom+v.offsetHeight<=Q&&($=d.bottom),W+v.offsetWidth>te&&(W=te-v.offsetWidth)}v.style.top=$+\"px\",v.style.left=v.style.right=\"\",I==\"right\"?(W=R.sizer.clientWidth-v.offsetWidth,v.style.right=\"0px\"):(I==\"left\"?W=0:I==\"middle\"&&(W=(R.sizer.clientWidth-v.offsetWidth)/2),v.style.left=W+\"px\"),w&&PV(this,{left:W,top:$,right:W+v.offsetWidth,bottom:$+v.offsetHeight})},triggerOnKeyDown:Vr(eA),triggerOnKeyPress:Vr(nA),triggerOnKeyUp:tA,triggerOnMouseDown:Vr(iA),execCommand:function(d){if(fm.hasOwnProperty(d))return fm[d].call(null,this)},triggerElectric:Vr(function(d){fA(this,d)}),findPosH:function(d,v,w,k){var I=1;v<0&&(I=-1,v=-v);for(var R=Re(this.doc,d),$=0;$<v&&(R=cE(this.doc,R,I,w,k),!R.hitSide);++$);return R},moveH:Vr(function(d,v){var w=this;this.extendSelectionsBy(function(k){return w.display.shift||w.doc.extend||k.empty()?cE(w.doc,k.head,d,v,w.options.rtlMoveVisually):d<0?k.from():k.to()},nt)}),deleteH:Vr(function(d,v){var w=this.doc.sel,k=this.doc;w.somethingSelected()?k.replaceSelection(\"\",null,\"+delete\"):Ic(this,function(I){var R=cE(k,I.head,d,v,!1);return d<0?{from:R,to:I.head}:{from:I.head,to:R}})}),findPosV:function(d,v,w,k){var I=1,R=k;v<0&&(I=-1,v=-v);for(var $=Re(this.doc,d),W=0;W<v;++W){var Q=Ho(this,$,\"div\");if(R==null?R=Q.left:Q.left=R,$=vA(this,Q,I,w),$.hitSide)break}return $},moveV:Vr(function(d,v){var w=this,k=this.doc,I=[],R=!this.display.shift&&!k.extend&&k.sel.somethingSelected();if(k.extendSelectionsBy(function(W){if(R)return d<0?W.from():W.to();var Q=Ho(w,W.head,\"div\");W.goalColumn!=null&&(Q.left=W.goalColumn),I.push(Q.left);var te=vA(w,Q,d,v);return v==\"page\"&&W==k.sel.primary()&&qb(w,Wv(w,te,\"div\").top-Q.top),te},nt),I.length)for(var $=0;$<k.sel.ranges.length;$++)k.sel.ranges[$].goalColumn=I[$]}),findWordAt:function(d){var v=this.doc,w=$e(v,d.line).text,k=d.ch,I=d.ch;if(w){var R=this.getHelper(d,\"wordChars\");(d.sticky==\"before\"||I==w.length)&&k?--k:++I;for(var $=w.charAt(k),W=eu($,R)?function(Q){return eu(Q,R)}:/\\s/.test($)?function(Q){return/\\s/.test(Q)}:function(Q){return!/\\s/.test(Q)&&!eu(Q)};k>0&&W(w.charAt(k-1));)--k;for(;I<w.length&&W(w.charAt(I));)++I}return new Rt(_e(d.line,k),_e(d.line,I))},toggleOverwrite:function(d){d!=null&&d==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?re(this.display.cursorDiv,\"CodeMirror-overwrite\"):H(this.display.cursorDiv,\"CodeMirror-overwrite\"),Ze(this,\"overwriteToggle\",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==J()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Vr(function(d,v){$d(this,d,v)}),getScrollInfo:function(){var d=this.display.scroller;return{left:d.scrollLeft,top:d.scrollTop,height:d.scrollHeight-wa(this)-this.display.barHeight,width:d.scrollWidth-wa(this)-this.display.barWidth,clientHeight:Db(this),clientWidth:su(this)}},scrollIntoView:Vr(function(d,v){d==null?(d={from:this.doc.sel.primary().head,to:null},v==null&&(v=this.options.cursorScrollMargin)):typeof d==\"number\"?d={from:_e(d,0),to:null}:d.from==null&&(d={from:d,to:null}),d.to||(d.to=d.from),d.margin=v||0,d.from.line!=null?MV(this,d):uD(this,d.from,d.to,d.margin)}),setSize:Vr(function(d,v){var w=this,k=M(function(R){return typeof R==\"number\"||/^\\d+$/.test(String(R))?R+\"px\":R},\"interpret\");d!=null&&(this.display.wrapper.style.width=k(d)),v!=null&&(this.display.wrapper.style.height=k(v)),this.options.lineWrapping&&KN(this);var I=this.display.viewFrom;this.doc.iter(I,this.display.viewTo,function(R){if(R.widgets){for(var $=0;$<R.widgets.length;$++)if(R.widgets[$].noHScroll){$s(w,I,\"widget\");break}}++I}),this.curOp.forceUpdate=!0,Ze(this,\"refresh\",this)}),operation:function(d){return Ei(this,d)},startOperation:function(){return fu(this)},endOperation:function(){return du(this)},refresh:Vr(function(){var d=this.display.cachedTextHeight;ri(this),this.curOp.forceUpdate=!0,Pd(this),$d(this,this.doc.scrollLeft,this.doc.scrollTop),Wb(this.display),(d==null||Math.abs(d-Ec(this.display))>.5||this.options.lineWrapping)&&Mb(this),Ze(this,\"refresh\",this)}),swapDoc:Vr(function(d){var v=this.doc;return v.cm=null,this.state.selectingText&&this.state.selectingText(),SD(this,d),Pd(this),this.display.input.reset(),$d(this,d.scrollLeft,d.scrollTop),this.curOp.forceScroll=!0,Qn(this,\"swapDoc\",this,v),v}),phrase:function(d){var v=this.options.phrases;return v&&Object.prototype.hasOwnProperty.call(v,d)?v[d]:d},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}},$o(a),a.registerHelper=function(d,v,w){p.hasOwnProperty(d)||(p[d]=a[d]={_global:[]}),p[d][v]=w},a.registerGlobalHelper=function(d,v,w,k){a.registerHelper(d,v,k),p[d]._global.push({pred:w,val:k})}}M(BB,\"addEditorMethods\");function cE(a,u,p,d,v){var w=u,k=p,I=$e(a,u.line),R=v&&a.direction==\"rtl\"?-p:p;function $(){var Fe=u.line+R;return Fe<a.first||Fe>=a.first+a.size?!1:(u=new _e(Fe,u.ch,u.sticky),I=$e(a,Fe))}M($,\"findNextLine\");function W(Fe){var Oe;if(d==\"codepoint\"){var Me=I.text.charCodeAt(u.ch+(p>0?0:-1));if(isNaN(Me))Oe=null;else{var Qe=p>0?Me>=55296&&Me<56320:Me>=56320&&Me<57343;Oe=new _e(u.line,Math.max(0,Math.min(I.text.length,u.ch+p*(Qe?2:1))),-p)}}else v?Oe=SB(a.cm,I,u,p):Oe=oE(I,u,p);if(Oe==null)if(!Fe&&$())u=aE(v,a.cm,I,u.line,R);else return!1;else u=Oe;return!0}if(M(W,\"moveOnce\"),d==\"char\"||d==\"codepoint\")W();else if(d==\"column\")W(!0);else if(d==\"word\"||d==\"group\")for(var Q=null,te=d==\"group\",ee=a.cm&&a.cm.getHelper(u,\"wordChars\"),fe=!0;!(p<0&&!W(!fe));fe=!1){var ye=I.text.charAt(u.ch)||`\n`,Ne=eu(ye,ee)?\"w\":te&&ye==`\n`?\"n\":!te||/\\s/.test(ye)?null:\"p\";if(te&&!fe&&!Ne&&(Ne=\"s\"),Q&&Q!=Ne){p<0&&(p=1,W(),u.sticky=\"after\");break}if(Ne&&(Q=Ne),p>0&&!W(!fe))break}var Ae=im(a,u,w,k,!0);return Y(w,Ae)&&(Ae.hitSide=!0),Ae}M(cE,\"findPosH\");function vA(a,u,p,d){var v=a.doc,w=u.left,k;if(d==\"page\"){var I=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),R=Math.max(I-.5*Ec(a.display),3);k=(p>0?u.bottom:u.top)+p*R}else d==\"line\"&&(k=p>0?u.bottom+3:u.top-3);for(var $;$=Lb(a,w,k),!!$.outside;){if(p<0?k<=0:k>=v.height){$.hitSide=!0;break}k+=p*5}return $}M(vA,\"findPosV\");var Bt=M(function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ce,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null},\"ContentEditableInput\");Bt.prototype.init=function(a){var u=this,p=this,d=p.cm,v=p.div=a.lineDiv;v.contentEditable=!0,pA(v,d.options.spellcheck,d.options.autocorrect,d.options.autocapitalize);function w(I){for(var R=I.target;R;R=R.parentNode){if(R==v)return!0;if(/\\bCodeMirror-(?:line)?widget\\b/.test(R.className))break}return!1}M(w,\"belongsToInput\"),Ye(v,\"paste\",function(I){!w(I)||En(d,I)||cA(I,d)||f<=11&&setTimeout(Yn(d,function(){return u.updateFromDOM()}),20)}),Ye(v,\"compositionstart\",function(I){u.composing={data:I.data,done:!1}}),Ye(v,\"compositionupdate\",function(I){u.composing||(u.composing={data:I.data,done:!1})}),Ye(v,\"compositionend\",function(I){u.composing&&(I.data!=u.composing.data&&u.readFromDOMSoon(),u.composing.done=!0)}),Ye(v,\"touchstart\",function(){return p.forceCompositionEnd()}),Ye(v,\"input\",function(){u.composing||u.readFromDOMSoon()});function k(I){if(!(!w(I)||En(d,I))){if(d.somethingSelected())vm({lineWise:!1,text:d.getSelections()}),I.type==\"cut\"&&d.replaceSelection(\"\",null,\"cut\");else if(d.options.lineWiseCopyCut){var R=dA(d);vm({lineWise:!0,text:R.text}),I.type==\"cut\"&&d.operation(function(){d.setSelections(R.ranges,0,qe),d.replaceSelection(\"\",null,\"cut\")})}else return;if(I.clipboardData){I.clipboardData.clearData();var $=Ta.text.join(`\n`);if(I.clipboardData.setData(\"Text\",$),I.clipboardData.getData(\"Text\")==$){I.preventDefault();return}}var W=hA(),Q=W.firstChild;d.display.lineSpace.insertBefore(W,d.display.lineSpace.firstChild),Q.value=Ta.text.join(`\n`);var te=J();de(Q),setTimeout(function(){d.display.lineSpace.removeChild(W),te.focus(),te==v&&p.showPrimarySelection()},50)}}M(k,\"onCopyCut\"),Ye(v,\"copy\",k),Ye(v,\"cut\",k)},Bt.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute(\"aria-label\",a):this.div.removeAttribute(\"aria-label\")},Bt.prototype.prepareSelection=function(){var a=aD(this.cm,!1);return a.focus=J()==this.div,a},Bt.prototype.showSelection=function(a,u){!a||!this.cm.display.view.length||((a.focus||u)&&this.showPrimarySelection(),this.showMultipleSelections(a))},Bt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Bt.prototype.showPrimarySelection=function(){var a=this.getSelection(),u=this.cm,p=u.doc.sel.primary(),d=p.from(),v=p.to();if(u.display.viewTo==u.display.viewFrom||d.line>=u.display.viewTo||v.line<u.display.viewFrom){a.removeAllRanges();return}var w=mm(u,a.anchorNode,a.anchorOffset),k=mm(u,a.focusNode,a.focusOffset);if(!(w&&!w.bad&&k&&!k.bad&&B(tt(w,k),d)==0&&B(xe(w,k),v)==0)){var I=u.display.view,R=d.line>=u.display.viewFrom&&mA(u,d)||{node:I[0].measure.map[2],offset:0},$=v.line<u.display.viewTo&&mA(u,v);if(!$){var W=I[I.length-1].measure,Q=W.maps?W.maps[W.maps.length-1]:W.map;$={node:Q[Q.length-1],offset:Q[Q.length-2]-Q[Q.length-3]}}if(!R||!$){a.removeAllRanges();return}var te=a.rangeCount&&a.getRangeAt(0),ee;try{ee=X(R.node,R.offset,$.offset,$.node)}catch{}ee&&(!i&&u.state.focused?(a.collapse(R.node,R.offset),ee.collapsed||(a.removeAllRanges(),a.addRange(ee))):(a.removeAllRanges(),a.addRange(ee)),te&&a.anchorNode==null?a.addRange(te):i&&this.startGracePeriod()),this.rememberSelection()}},Bt.prototype.startGracePeriod=function(){var a=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){a.gracePeriod=!1,a.selectionChanged()&&a.cm.operation(function(){return a.cm.curOp.selectionChanged=!0})},20)},Bt.prototype.showMultipleSelections=function(a){z(this.cm.display.cursorDiv,a.cursors),z(this.cm.display.selectionDiv,a.selection)},Bt.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},Bt.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var u=a.getRangeAt(0).commonAncestorContainer;return ne(this.div,u)},Bt.prototype.focus=function(){this.cm.options.readOnly!=\"nocursor\"&&((!this.selectionInEditor()||J()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Bt.prototype.blur=function(){this.div.blur()},Bt.prototype.getField=function(){return this.div},Bt.prototype.supportsTouch=function(){return!0},Bt.prototype.receivedFocus=function(){var a=this,u=this;this.selectionInEditor()?setTimeout(function(){return a.pollSelection()},20):Ei(this.cm,function(){return u.cm.curOp.selectionChanged=!0});function p(){u.cm.state.focused&&(u.pollSelection(),u.polling.set(u.cm.options.pollInterval,p))}M(p,\"poll\"),this.polling.set(this.cm.options.pollInterval,p)},Bt.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},Bt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),u=this.cm;if(b&&m&&this.cm.display.gutterSpecs.length&&jB(a.anchorNode)){this.cm.triggerOnKeyDown({type:\"keydown\",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var p=mm(u,a.anchorNode,a.anchorOffset),d=mm(u,a.focusNode,a.focusOffset);p&&d&&Ei(u,function(){Nr(u.doc,js(p,d),qe),(p.bad||d.bad)&&(u.curOp.selectionChanged=!0)})}}},Bt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,u=a.display,p=a.doc.sel.primary(),d=p.from(),v=p.to();if(d.ch==0&&d.line>a.firstLine()&&(d=_e(d.line-1,$e(a.doc,d.line-1).length)),v.ch==$e(a.doc,v.line).text.length&&v.line<a.lastLine()&&(v=_e(v.line+1,0)),d.line<u.viewFrom||v.line>u.viewTo-1)return!1;var w,k,I;d.line==u.viewFrom||(w=uu(a,d.line))==0?(k=xt(u.view[0].line),I=u.view[0].node):(k=xt(u.view[w].line),I=u.view[w-1].node.nextSibling);var R=uu(a,v.line),$,W;if(R==u.view.length-1?($=u.viewTo-1,W=u.lineDiv.lastChild):($=xt(u.view[R+1].line)-1,W=u.view[R+1].node.previousSibling),!I)return!1;for(var Q=a.doc.splitLines(UB(a,I,W,k,$)),te=jo(a.doc,_e(k,0),_e($,$e(a.doc,$).text.length));Q.length>1&&te.length>1;)if(st(Q)==st(te))Q.pop(),te.pop(),$--;else if(Q[0]==te[0])Q.shift(),te.shift(),k++;else break;for(var ee=0,fe=0,ye=Q[0],Ne=te[0],Ae=Math.min(ye.length,Ne.length);ee<Ae&&ye.charCodeAt(ee)==Ne.charCodeAt(ee);)++ee;for(var Fe=st(Q),Oe=st(te),Me=Math.min(Fe.length-(Q.length==1?ee:0),Oe.length-(te.length==1?ee:0));fe<Me&&Fe.charCodeAt(Fe.length-fe-1)==Oe.charCodeAt(Oe.length-fe-1);)++fe;if(Q.length==1&&te.length==1&&k==d.line)for(;ee&&ee>d.ch&&Fe.charCodeAt(Fe.length-fe-1)==Oe.charCodeAt(Oe.length-fe-1);)ee--,fe++;Q[Q.length-1]=Fe.slice(0,Fe.length-fe).replace(/^\\u200b+/,\"\"),Q[0]=Q[0].slice(ee).replace(/\\u200b+$/,\"\");var Qe=_e(k,ee),ze=_e($,te.length?st(te).length-fe:0);if(Q.length>1||Q[0]||B(Qe,ze))return Dc(a.doc,Q,Qe,ze,\"+input\"),!0},Bt.prototype.ensurePolled=function(){this.forceCompositionEnd()},Bt.prototype.reset=function(){this.forceCompositionEnd()},Bt.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Bt.prototype.readFromDOMSoon=function(){var a=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(a.readDOMTimeout=null,a.composing)if(a.composing.done)a.composing=null;else return;a.updateFromDOM()},80))},Bt.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&Ei(this.cm,function(){return ri(a.cm)})},Bt.prototype.setUneditable=function(a){a.contentEditable=\"false\"},Bt.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||Yn(this.cm,uE)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},Bt.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!=\"nocursor\")},Bt.prototype.onContextMenu=function(){},Bt.prototype.resetPosition=function(){},Bt.prototype.needsContentAttribute=!0;function mA(a,u){var p=Ab(a,u.line);if(!p||p.hidden)return null;var d=$e(a.doc,u.line),v=WN(p,d,u.line),w=ei(d,a.doc.direction),k=\"left\";if(w){var I=cn(w,u.ch);k=I%2?\"right\":\"left\"}var R=YN(v.map,u.ch,k);return R.offset=R.collapse==\"right\"?R.end:R.start,R}M(mA,\"posToDOM\");function jB(a){for(var u=a;u;u=u.parentNode)if(/CodeMirror-gutter-wrapper/.test(u.className))return!0;return!1}M(jB,\"isInGutter\");function Lc(a,u){return u&&(a.bad=!0),a}M(Lc,\"badPos\");function UB(a,u,p,d,v){var w=\"\",k=!1,I=a.doc.lineSeparator(),R=!1;function $(ee){return function(fe){return fe.id==ee}}M($,\"recognizeMarker\");function W(){k&&(w+=I,R&&(w+=I),k=R=!1)}M(W,\"close\");function Q(ee){ee&&(W(),w+=ee)}M(Q,\"addText\");function te(ee){if(ee.nodeType==1){var fe=ee.getAttribute(\"cm-text\");if(fe){Q(fe);return}var ye=ee.getAttribute(\"cm-marker\"),Ne;if(ye){var Ae=a.findMarks(_e(d,0),_e(v+1,0),$(+ye));Ae.length&&(Ne=Ae[0].find(0))&&Q(jo(a.doc,Ne.from,Ne.to).join(I));return}if(ee.getAttribute(\"contenteditable\")==\"false\")return;var Fe=/^(pre|div|p|li|table|br)$/i.test(ee.nodeName);if(!/^br$/i.test(ee.nodeName)&&ee.textContent.length==0)return;Fe&&W();for(var Oe=0;Oe<ee.childNodes.length;Oe++)te(ee.childNodes[Oe]);/^(pre|p)$/i.test(ee.nodeName)&&(R=!0),Fe&&(k=!0)}else ee.nodeType==3&&Q(ee.nodeValue.replace(/\\u200b/g,\"\").replace(/\\u00a0/g,\" \"))}for(M(te,\"walk\");te(u),u!=p;)u=u.nextSibling,R=!1;return w}M(UB,\"domTextBetween\");function mm(a,u,p){var d;if(u==a.display.lineDiv){if(d=a.display.lineDiv.childNodes[p],!d)return Lc(a.clipPos(_e(a.display.viewTo-1)),!0);u=null,p=0}else for(d=u;;d=d.parentNode){if(!d||d==a.display.lineDiv)return null;if(d.parentNode&&d.parentNode==a.display.lineDiv)break}for(var v=0;v<a.display.view.length;v++){var w=a.display.view[v];if(w.node==d)return qB(w,u,p)}}M(mm,\"domToPos\");function qB(a,u,p){var d=a.text.firstChild,v=!1;if(!u||!ne(d,u))return Lc(_e(xt(a.line),0),!0);if(u==d&&(v=!0,u=d.childNodes[p],p=0,!u)){var w=a.rest?st(a.rest):a.line;return Lc(_e(xt(w),w.text.length),v)}var k=u.nodeType==3?u:null,I=u;for(!k&&u.childNodes.length==1&&u.firstChild.nodeType==3&&(k=u.firstChild,p&&(p=k.nodeValue.length));I.parentNode!=d;)I=I.parentNode;var R=a.measure,$=R.maps;function W(Ne,Ae,Fe){for(var Oe=-1;Oe<($?$.length:0);Oe++)for(var Me=Oe<0?R.map:$[Oe],Qe=0;Qe<Me.length;Qe+=3){var ze=Me[Qe+2];if(ze==Ne||ze==Ae){var dt=xt(Oe<0?a.line:a.rest[Oe]),Ht=Me[Qe]+Fe;return(Fe<0||ze!=Ne)&&(Ht=Me[Qe+(Fe?1:0)]),_e(dt,Ht)}}}M(W,\"find\");var Q=W(k,I,p);if(Q)return Lc(Q,v);for(var te=I.nextSibling,ee=k?k.nodeValue.length-p:0;te;te=te.nextSibling){if(Q=W(te,te.firstChild,0),Q)return Lc(_e(Q.line,Q.ch-ee),v);ee+=te.textContent.length}for(var fe=I.previousSibling,ye=p;fe;fe=fe.previousSibling){if(Q=W(fe,fe.firstChild,-1),Q)return Lc(_e(Q.line,Q.ch+ye),v);ye+=fe.textContent.length}}M(qB,\"locateNodeInLineView\");var Nn=M(function(a){this.cm=a,this.prevInput=\"\",this.pollingFast=!1,this.polling=new ce,this.hasSelection=!1,this.composing=null},\"TextareaInput\");Nn.prototype.init=function(a){var u=this,p=this,d=this.cm;this.createField(a);var v=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),_&&(v.style.width=\"0px\"),Ye(v,\"input\",function(){c&&f>=9&&u.hasSelection&&(u.hasSelection=null),p.poll()}),Ye(v,\"paste\",function(k){En(d,k)||cA(k,d)||(d.state.pasteIncoming=+new Date,p.fastPoll())});function w(k){if(!En(d,k)){if(d.somethingSelected())vm({lineWise:!1,text:d.getSelections()});else if(d.options.lineWiseCopyCut){var I=dA(d);vm({lineWise:!0,text:I.text}),k.type==\"cut\"?d.setSelections(I.ranges,null,qe):(p.prevInput=\"\",v.value=I.text.join(`\n`),de(v))}else return;k.type==\"cut\"&&(d.state.cutIncoming=+new Date)}}M(w,\"prepareCopyCut\"),Ye(v,\"cut\",w),Ye(v,\"copy\",w),Ye(a.scroller,\"paste\",function(k){if(!(Ja(a,k)||En(d,k))){if(!v.dispatchEvent){d.state.pasteIncoming=+new Date,p.focus();return}var I=new Event(\"paste\");I.clipboardData=k.clipboardData,v.dispatchEvent(I)}}),Ye(a.lineSpace,\"selectstart\",function(k){Ja(a,k)||fr(k)}),Ye(v,\"compositionstart\",function(){var k=d.getCursor(\"from\");p.composing&&p.composing.range.clear(),p.composing={start:k,range:d.markText(k,d.getCursor(\"to\"),{className:\"CodeMirror-composing\"})}}),Ye(v,\"compositionend\",function(){p.composing&&(p.poll(),p.composing.range.clear(),p.composing=null)})},Nn.prototype.createField=function(a){this.wrapper=hA(),this.textarea=this.wrapper.firstChild},Nn.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute(\"aria-label\",a):this.textarea.removeAttribute(\"aria-label\")},Nn.prototype.prepareSelection=function(){var a=this.cm,u=a.display,p=a.doc,d=aD(a);if(a.options.moveInputWithCursor){var v=Ho(a,p.sel.primary().head,\"div\"),w=u.wrapper.getBoundingClientRect(),k=u.lineDiv.getBoundingClientRect();d.teTop=Math.max(0,Math.min(u.wrapper.clientHeight-10,v.top+k.top-w.top)),d.teLeft=Math.max(0,Math.min(u.wrapper.clientWidth-10,v.left+k.left-w.left))}return d},Nn.prototype.showSelection=function(a){var u=this.cm,p=u.display;z(p.cursorDiv,a.cursors),z(p.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+\"px\",this.wrapper.style.left=a.teLeft+\"px\")},Nn.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var u=this.cm;if(u.somethingSelected()){this.prevInput=\"\";var p=u.getSelection();this.textarea.value=p,u.state.focused&&de(this.textarea),c&&f>=9&&(this.hasSelection=p)}else a||(this.prevInput=this.textarea.value=\"\",c&&f>=9&&(this.hasSelection=null))}},Nn.prototype.getField=function(){return this.textarea},Nn.prototype.supportsTouch=function(){return!1},Nn.prototype.focus=function(){if(this.cm.options.readOnly!=\"nocursor\"&&(!C||J()!=this.textarea))try{this.textarea.focus()}catch{}},Nn.prototype.blur=function(){this.textarea.blur()},Nn.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Nn.prototype.receivedFocus=function(){this.slowPoll()},Nn.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},Nn.prototype.fastPoll=function(){var a=!1,u=this;u.pollingFast=!0;function p(){var d=u.poll();!d&&!a?(a=!0,u.polling.set(60,p)):(u.pollingFast=!1,u.slowPoll())}M(p,\"p\"),u.polling.set(20,p)},Nn.prototype.poll=function(){var a=this,u=this.cm,p=this.textarea,d=this.prevInput;if(this.contextMenuPending||!u.state.focused||Pv(p)&&!d&&!this.composing||u.isReadOnly()||u.options.disableInput||u.state.keySeq)return!1;var v=p.value;if(v==d&&!u.somethingSelected())return!1;if(c&&f>=9&&this.hasSelection===v||T&&/[\\uf700-\\uf7ff]/.test(v))return u.display.input.reset(),!1;if(u.doc.sel==u.display.selForContextMenu){var w=v.charCodeAt(0);if(w==8203&&!d&&(d=\"\"),w==8666)return this.reset(),this.cm.execCommand(\"undo\")}for(var k=0,I=Math.min(d.length,v.length);k<I&&d.charCodeAt(k)==v.charCodeAt(k);)++k;return Ei(u,function(){uE(u,v.slice(k),d.length-k,null,a.composing?\"*compose\":null),v.length>1e3||v.indexOf(`\n`)>-1?p.value=a.prevInput=\"\":a.prevInput=v,a.composing&&(a.composing.range.clear(),a.composing.range=u.markText(a.composing.start,u.getCursor(\"to\"),{className:\"CodeMirror-composing\"}))}),!0},Nn.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Nn.prototype.onKeyPress=function(){c&&f>=9&&(this.hasSelection=null),this.fastPoll()},Nn.prototype.onContextMenu=function(a){var u=this,p=u.cm,d=p.display,v=u.textarea;u.contextMenuPending&&u.contextMenuPending();var w=lu(p,a),k=d.scroller.scrollTop;if(!w||y)return;var I=p.options.resetSelectionOnContextMenu;I&&p.doc.sel.contains(w)==-1&&Yn(p,Nr)(p.doc,js(w),qe);var R=v.style.cssText,$=u.wrapper.style.cssText,W=u.wrapper.offsetPa