UNPKG

@graphql-yoga/render-graphiql

Version:
1 lines 1.85 MB
export const js = "(function(co,ji){typeof exports==\"object\"&&typeof module<\"u\"?ji(exports):typeof define==\"function\"&&define.amd?define([\"exports\"],ji):(co=typeof globalThis<\"u\"?globalThis:co||self,ji(co.YogaGraphiQL={}))})(this,function(co){\"use strict\";var Dae=Object.defineProperty;var Aae=(co,ji,Gs)=>ji in co?Dae(co,ji,{enumerable:!0,configurable:!0,writable:!0,value:Gs}):co[ji]=Gs;var WB=(co,ji,Gs)=>(Aae(co,typeof ji!=\"symbol\"?ji+\"\":ji,Gs),Gs);function ji(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 Rc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,\"default\")?e.default:e}var vA={exports:{}},vm={},mA={exports:{}},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 Xd=Symbol.for(\"react.element\"),YB=Symbol.for(\"react.portal\"),JB=Symbol.for(\"react.fragment\"),KB=Symbol.for(\"react.strict_mode\"),XB=Symbol.for(\"react.profiler\"),ZB=Symbol.for(\"react.provider\"),ej=Symbol.for(\"react.context\"),tj=Symbol.for(\"react.forward_ref\"),nj=Symbol.for(\"react.suspense\"),rj=Symbol.for(\"react.memo\"),ij=Symbol.for(\"react.lazy\"),gA=Symbol.iterator;function oj(e){return e===null||typeof e!=\"object\"?null:(e=gA&&e[gA]||e[\"@@iterator\"],typeof e==\"function\"?e:null)}var yA={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},bA=Object.assign,EA={};function Pc(e,t,n){this.props=e,this.context=t,this.refs=EA,this.updater=n||yA}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 wA(){}wA.prototype=Pc.prototype;function uE(e,t,n){this.props=e,this.context=t,this.refs=EA,this.updater=n||yA}var cE=uE.prototype=new wA;cE.constructor=uE,bA(cE,Pc.prototype),cE.isPureReactComponent=!0;var SA=Array.isArray,TA=Object.prototype.hasOwnProperty,fE={current:null},_A={key:!0,ref:!0,__self:!0,__source:!0};function CA(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)TA.call(t,r)&&!_A.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:Xd,type:e,key:o,ref:s,props:i,_owner:fE.current}}function aj(e,t){return{$$typeof:Xd,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function dE(e){return typeof e==\"object\"&&e!==null&&e.$$typeof===Xd}function sj(e){var t={\"=\":\"=0\",\":\":\"=2\"};return\"$\"+e.replace(/[=:]/g,function(n){return t[n]})}var xA=/\\/+/g;function pE(e,t){return typeof e==\"object\"&&e!==null&&e.key!=null?sj(\"\"+e.key):t.toString(36)}function mm(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 Xd:case YB:s=!0}}if(s)return s=e,i=i(s),e=r===\"\"?\".\"+pE(s,0):r,SA(i)?(n=\"\",e!=null&&(n=e.replace(xA,\"$&/\")+\"/\"),mm(i,t,n,\"\",function(f){return f})):i!=null&&(dE(i)&&(i=aj(i,n+(!i.key||s&&s.key===i.key?\"\":(\"\"+i.key).replace(xA,\"$&/\")+\"/\")+e)),t.push(i)),1;if(s=0,r=r===\"\"?\".\":r+\":\",SA(e))for(var l=0;l<e.length;l++){o=e[l];var c=r+pE(o,l);s+=mm(o,t,n,c,i)}else if(c=oj(e),typeof c==\"function\")for(e=c.call(e),l=0;!(o=e.next()).done;)o=o.value,c=r+pE(o,l++),s+=mm(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 gm(e,t,n){if(e==null)return e;var r=[],i=0;return mm(e,r,\"\",\"\",function(o){return t.call(n,o,i++)}),r}function lj(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 ii={current:null},ym={transition:null},uj={ReactCurrentDispatcher:ii,ReactCurrentBatchConfig:ym,ReactCurrentOwner:fE};Et.Children={map:gm,forEach:function(e,t,n){gm(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return gm(e,function(){t++}),t},toArray:function(e){return gm(e,function(t){return t})||[]},only:function(e){if(!dE(e))throw Error(\"React.Children.only expected to receive a single React element child.\");return e}},Et.Component=Pc,Et.Fragment=JB,Et.Profiler=XB,Et.PureComponent=uE,Et.StrictMode=KB,Et.Suspense=nj,Et.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=uj,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=bA({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=fE.current),t.key!==void 0&&(i=\"\"+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)TA.call(t,c)&&!_A.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:Xd,type:e.type,key:i,ref:o,props:r,_owner:s}},Et.createContext=function(e){return e={$$typeof:ej,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:ZB,_context:e},e.Consumer=e},Et.createElement=CA,Et.createFactory=function(e){var t=CA.bind(null,e);return t.type=e,t},Et.createRef=function(){return{current:null}},Et.forwardRef=function(e){return{$$typeof:tj,render:e}},Et.isValidElement=dE,Et.lazy=function(e){return{$$typeof:ij,_payload:{_status:-1,_result:e},_init:lj}},Et.memo=function(e,t){return{$$typeof:rj,type:e,compare:t===void 0?null:t}},Et.startTransition=function(e){var t=ym.transition;ym.transition={};try{e()}finally{ym.transition=t}},Et.unstable_act=function(){throw Error(\"act(...) is not supported in production builds of React.\")},Et.useCallback=function(e,t){return ii.current.useCallback(e,t)},Et.useContext=function(e){return ii.current.useContext(e)},Et.useDebugValue=function(){},Et.useDeferredValue=function(e){return ii.current.useDeferredValue(e)},Et.useEffect=function(e,t){return ii.current.useEffect(e,t)},Et.useId=function(){return ii.current.useId()},Et.useImperativeHandle=function(e,t,n){return ii.current.useImperativeHandle(e,t,n)},Et.useInsertionEffect=function(e,t){return ii.current.useInsertionEffect(e,t)},Et.useLayoutEffect=function(e,t){return ii.current.useLayoutEffect(e,t)},Et.useMemo=function(e,t){return ii.current.useMemo(e,t)},Et.useReducer=function(e,t,n){return ii.current.useReducer(e,t,n)},Et.useRef=function(e){return ii.current.useRef(e)},Et.useState=function(e){return ii.current.useState(e)},Et.useSyncExternalStore=function(e,t,n){return ii.current.useSyncExternalStore(e,t,n)},Et.useTransition=function(){return ii.current.useTransition()},Et.version=\"18.2.0\",mA.exports=Et;var I=mA.exports;const oe=Rc(I),cj=ji({__proto__:null,default:oe},[I]);/**\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 fj=I,dj=Symbol.for(\"react.element\"),pj=Symbol.for(\"react.fragment\"),hj=Object.prototype.hasOwnProperty,vj=fj.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,mj={key:!0,ref:!0,__self:!0,__source:!0};function kA(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)hj.call(t,r)&&!mj.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:dj,type:e,key:o,ref:s,props:i,_owner:vj.current}}vm.Fragment=pj,vm.jsx=kA,vm.jsxs=kA,vA.exports=vm;var $e=vA.exports,NA={exports:{}},Ui={},DA={exports:{}},AA={};/**\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,T=!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 S(J){if(x=!1,C(J),!T)if(n(c)!==null)T=!0,X(N);else{var re=n(f);re!==null&&ne(S,re.startTime-J)}}function N(J,re){T=!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(S,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(){T||y||(T=!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(S,Z-de))):(J.sortIndex=K,t(c,J),T||y||(T=!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}}}})(AA),DA.exports=AA;var gj=DA.exports;/**\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 OA=I,qi=gj;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 IA=new Set,Zd={};function mu(e,t){Mc(e,t),Mc(e+\"Capture\",t)}function Mc(e,t){for(Zd[e]=t,e=0;e<t.length;e++)IA.add(t[e])}var Ka=!(typeof window>\"u\"||typeof window.document>\"u\"||typeof window.document.createElement>\"u\"),hE=Object.prototype.hasOwnProperty,yj=/^[: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]*$/,LA={},FA={};function bj(e){return hE.call(FA,e)?!0:hE.call(LA,e)?!1:yj.test(e)?FA[e]=!0:(LA[e]=!0,!1)}function Ej(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 wj(e,t,n,r){if(t===null||typeof t>\"u\"||Ej(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 oi(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 Dr={};\"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style\".split(\" \").forEach(function(e){Dr[e]=new oi(e,0,!1,e,null,!1,!1)}),[[\"acceptCharset\",\"accept-charset\"],[\"className\",\"class\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"]].forEach(function(e){var t=e[0];Dr[t]=new oi(t,1,!1,e[1],null,!1,!1)}),[\"contentEditable\",\"draggable\",\"spellCheck\",\"value\"].forEach(function(e){Dr[e]=new oi(e,2,!1,e.toLowerCase(),null,!1,!1)}),[\"autoReverse\",\"externalResourcesRequired\",\"focusable\",\"preserveAlpha\"].forEach(function(e){Dr[e]=new oi(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){Dr[e]=new oi(e,3,!1,e.toLowerCase(),null,!1,!1)}),[\"checked\",\"multiple\",\"muted\",\"selected\"].forEach(function(e){Dr[e]=new oi(e,3,!0,e,null,!1,!1)}),[\"capture\",\"download\"].forEach(function(e){Dr[e]=new oi(e,4,!1,e,null,!1,!1)}),[\"cols\",\"rows\",\"size\",\"span\"].forEach(function(e){Dr[e]=new oi(e,6,!1,e,null,!1,!1)}),[\"rowSpan\",\"start\"].forEach(function(e){Dr[e]=new oi(e,5,!1,e.toLowerCase(),null,!1,!1)});var vE=/[\\-:]([a-z])/g;function mE(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(vE,mE);Dr[t]=new oi(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(vE,mE);Dr[t]=new oi(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(vE,mE);Dr[t]=new oi(t,1,!1,e,\"http://www.w3.org/XML/1998/namespace\",!1,!1)}),[\"tabIndex\",\"crossOrigin\"].forEach(function(e){Dr[e]=new oi(e,1,!1,e.toLowerCase(),null,!1,!1)}),Dr.xlinkHref=new oi(\"xlinkHref\",1,!1,\"xlink:href\",\"http://www.w3.org/1999/xlink\",!0,!1),[\"src\",\"href\",\"action\",\"formAction\"].forEach(function(e){Dr[e]=new oi(e,1,!1,e.toLowerCase(),null,!0,!0)});function gE(e,t,n,r){var i=Dr.hasOwnProperty(t)?Dr[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!==\"o\"&&t[0]!==\"O\"||t[1]!==\"n\"&&t[1]!==\"N\")&&(wj(t,n,i,r)&&(n=null),r||i===null?bj(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 Xa=OA.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,bm=Symbol.for(\"react.element\"),$c=Symbol.for(\"react.portal\"),Vc=Symbol.for(\"react.fragment\"),yE=Symbol.for(\"react.strict_mode\"),bE=Symbol.for(\"react.profiler\"),RA=Symbol.for(\"react.provider\"),PA=Symbol.for(\"react.context\"),EE=Symbol.for(\"react.forward_ref\"),wE=Symbol.for(\"react.suspense\"),SE=Symbol.for(\"react.suspense_list\"),TE=Symbol.for(\"react.memo\"),Ws=Symbol.for(\"react.lazy\"),MA=Symbol.for(\"react.offscreen\"),$A=Symbol.iterator;function ep(e){return e===null||typeof e!=\"object\"?null:(e=$A&&e[$A]||e[\"@@iterator\"],typeof e==\"function\"?e:null)}var mn=Object.assign,_E;function tp(e){if(_E===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\\n( *(at )?)/);_E=t&&t[1]||\"\"}return`\n`+_E+e}var CE=!1;function xE(e,t){if(!e||CE)return\"\";CE=!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{CE=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:\"\")?tp(e):\"\"}function Sj(e){switch(e.tag){case 5:return tp(e.type);case 16:return tp(\"Lazy\");case 13:return tp(\"Suspense\");case 19:return tp(\"SuspenseList\");case 0:case 2:case 15:return e=xE(e.type,!1),e;case 11:return e=xE(e.type.render,!1),e;case 1:return e=xE(e.type,!0),e;default:return\"\"}}function kE(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 bE:return\"Profiler\";case yE:return\"StrictMode\";case wE:return\"Suspense\";case SE:return\"SuspenseList\"}if(typeof e==\"object\")switch(e.$$typeof){case PA:return(e.displayName||\"Context\")+\".Consumer\";case RA:return(e._context.displayName||\"Context\")+\".Provider\";case EE:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||\"\",e=e!==\"\"?\"ForwardRef(\"+e+\")\":\"ForwardRef\"),e;case TE:return t=e.displayName||null,t!==null?t:kE(e.type)||\"Memo\";case Ws:t=e._payload,e=e._init;try{return kE(e(t))}catch{}}return null}function Tj(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 kE(t);case 8:return t===yE?\"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 VA(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===\"input\"&&(t===\"checkbox\"||t===\"radio\")}function _j(e){var t=VA(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 Em(e){e._valueTracker||(e._valueTracker=_j(e))}function BA(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=\"\";return e&&(r=VA(e)?e.checked?\"true\":\"false\":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function wm(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 NE(e,t){var n=t.checked;return mn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function jA(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 UA(e,t){t=t.checked,t!=null&&gE(e,\"checked\",t,!1)}function DE(e,t){UA(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\")?AE(e,t.type,n):t.hasOwnProperty(\"defaultValue\")&&AE(e,t.type,Qs(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function qA(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 AE(e,t,n){(t!==\"number\"||wm(e.ownerDocument)!==e)&&(n==null?e.defaultValue=\"\"+e._wrapperState.initialValue:e.defaultValue!==\"\"+n&&(e.defaultValue=\"\"+n))}var np=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 OE(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(De(91));return mn({},t,{value:void 0,defaultValue:void 0,children:\"\"+e._wrapperState.initialValue})}function HA(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(np(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 zA(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 GA(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==\"\"&&t!==null&&(e.value=t)}function WA(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 IE(e,t){return e==null||e===\"http://www.w3.org/1999/xhtml\"?WA(t):e===\"http://www.w3.org/2000/svg\"&&t===\"foreignObject\"?\"http://www.w3.org/1999/xhtml\":e}var Sm,QA=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(Sm=Sm||document.createElement(\"div\"),Sm.innerHTML=\"<svg>\"+t.valueOf().toString()+\"</svg>\",t=Sm.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function rp(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ip={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},Cj=[\"Webkit\",\"ms\",\"Moz\",\"O\"];Object.keys(ip).forEach(function(e){Cj.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ip[t]=ip[e]})});function YA(e,t,n){return t==null||typeof t==\"boolean\"||t===\"\"?\"\":n||typeof t!=\"number\"||t===0||ip.hasOwnProperty(e)&&ip[e]?(\"\"+t).trim():t+\"px\"}function JA(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf(\"--\")===0,i=YA(n,t[n],r);n===\"float\"&&(n=\"cssFloat\"),r?e.setProperty(n,i):e[n]=i}}var xj=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 LE(e,t){if(t){if(xj[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 FE(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 RE=null;function PE(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ME=null,jc=null,Uc=null;function KA(e){if(e=xp(e)){if(typeof ME!=\"function\")throw Error(De(280));var t=e.stateNode;t&&(t=zm(t),ME(e.stateNode,e.type,t))}}function XA(e){jc?Uc?Uc.push(e):Uc=[e]:jc=e}function ZA(){if(jc){var e=jc,t=Uc;if(Uc=jc=null,KA(e),t)for(e=0;e<t.length;e++)KA(t[e])}}function eO(e,t){return e(t)}function tO(){}var $E=!1;function nO(e,t,n){if($E)return e(t,n);$E=!0;try{return eO(e,t,n)}finally{$E=!1,(jc!==null||Uc!==null)&&(tO(),ZA())}}function op(e,t){var n=e.stateNode;if(n===null)return null;var r=zm(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 VE=!1;if(Ka)try{var ap={};Object.defineProperty(ap,\"passive\",{get:function(){VE=!0}}),window.addEventListener(\"test\",ap,ap),window.removeEventListener(\"test\",ap,ap)}catch{VE=!1}function kj(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 sp=!1,Tm=null,_m=!1,BE=null,Nj={onError:function(e){sp=!0,Tm=e}};function Dj(e,t,n,r,i,o,s,l,c){sp=!1,Tm=null,kj.apply(Nj,arguments)}function Aj(e,t,n,r,i,o,s,l,c){if(Dj.apply(this,arguments),sp){if(sp){var f=Tm;sp=!1,Tm=null}else throw Error(De(198));_m||(_m=!0,BE=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 rO(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 iO(e){if(gu(e)!==e)throw Error(De(188))}function Oj(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 iO(i),e;if(o===r)return iO(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 oO(e){return e=Oj(e),e!==null?aO(e):null}function aO(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=aO(e);if(t!==null)return t;e=e.sibling}return null}var sO=qi.unstable_scheduleCallback,lO=qi.unstable_cancelCallback,Ij=qi.unstable_shouldYield,Lj=qi.unstable_requestPaint,Dn=qi.unstable_now,Fj=qi.unstable_getCurrentPriorityLevel,jE=qi.unstable_ImmediatePriority,uO=qi.unstable_UserBlockingPriority,Cm=qi.unstable_NormalPriority,Rj=qi.unstable_LowPriority,cO=qi.unstable_IdlePriority,xm=null,Ta=null;function Pj(e){if(Ta&&typeof Ta.onCommitFiberRoot==\"function\")try{Ta.onCommitFiberRoot(xm,e,void 0,(e.current.flags&128)===128)}catch{}}var zo=Math.clz32?Math.clz32:Vj,Mj=Math.log,$j=Math.LN2;function Vj(e){return e>>>=0,e===0?32:31-(Mj(e)/$j|0)|0}var km=64,Nm=4194304;function lp(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 Dm(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=lp(l):(o&=s,o!==0&&(r=lp(o)))}else s=n&~i,s!==0?r=lp(s):o!==0&&(r=lp(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-zo(t),i=1<<n,r|=e[n],t&=~i;return r}function Bj(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 jj(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-zo(o),l=1<<s,c=i[s];c===-1?(!(l&n)||l&r)&&(i[s]=Bj(l,t)):c<=t&&(e.expiredLanes|=l),o&=~l}}function UE(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function fO(){var e=km;return km<<=1,!(km&4194240)&&(km=64),e}function qE(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function up(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-zo(t),e[t]=n}function Uj(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-zo(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function HE(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-zo(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Ut=0;function dO(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var pO,zE,hO,vO,mO,GE=!1,Am=[],Ys=null,Js=null,Ks=null,cp=new Map,fp=new Map,Xs=[],qj=\"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 gO(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\":cp.delete(t.pointerId);break;case\"gotpointercapture\":case\"lostpointercapture\":fp.delete(t.pointerId)}}function dp(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=xp(t),t!==null&&zE(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Hj(e,t,n,r,i){switch(t){case\"focusin\":return Ys=dp(Ys,e,t,n,r,i),!0;case\"dragenter\":return Js=dp(Js,e,t,n,r,i),!0;case\"mouseover\":return Ks=dp(Ks,e,t,n,r,i),!0;case\"pointerover\":var o=i.pointerId;return cp.set(o,dp(cp.get(o)||null,e,t,n,r,i)),!0;case\"gotpointercapture\":return o=i.pointerId,fp.set(o,dp(fp.get(o)||null,e,t,n,r,i)),!0}return!1}function yO(e){var t=yu(e.target);if(t!==null){var n=gu(t);if(n!==null){if(t=n.tag,t===13){if(t=rO(n),t!==null){e.blockedOn=t,mO(e.priority,function(){hO(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 Om(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=QE(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);RE=r,n.target.dispatchEvent(r),RE=null}else return t=xp(n),t!==null&&zE(t),e.blockedOn=n,!1;t.shift()}return!0}function bO(e,t,n){Om(e)&&n.delete(t)}function zj(){GE=!1,Ys!==null&&Om(Ys)&&(Ys=null),Js!==null&&Om(Js)&&(Js=null),Ks!==null&&Om(Ks)&&(Ks=null),cp.forEach(bO),fp.forEach(bO)}function pp(e,t){e.blockedOn===t&&(e.blockedOn=null,GE||(GE=!0,qi.unstable_scheduleCallback(qi.unstable_NormalPriority,zj)))}function hp(e){function t(i){return pp(i,e)}if(0<Am.length){pp(Am[0],e);for(var n=1;n<Am.length;n++){var r=Am[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Ys!==null&&pp(Ys,e),Js!==null&&pp(Js,e),Ks!==null&&pp(Ks,e),cp.forEach(t),fp.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);)yO(n),n.blockedOn===null&&Xs.shift()}var qc=Xa.ReactCurrentBatchConfig,Im=!0;function Gj(e,t,n,r){var i=Ut,o=qc.transition;qc.transition=null;try{Ut=1,WE(e,t,n,r)}finally{Ut=i,qc.transition=o}}function Wj(e,t,n,r){var i=Ut,o=qc.transition;qc.transition=null;try{Ut=4,WE(e,t,n,r)}finally{Ut=i,qc.transition=o}}function WE(e,t,n,r){if(Im){var i=QE(e,t,n,r);if(i===null)fw(e,t,r,Lm,n),gO(e,r);else if(Hj(i,e,t,n,r))r.stopPropagation();else if(gO(e,r),t&4&&-1<qj.indexOf(e)){for(;i!==null;){var o=xp(i);if(o!==null&&pO(o),o=QE(e,t,n,r),o===null&&fw(e,t,r,Lm,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else fw(e,t,r,null,n)}}var Lm=null;function QE(e,t,n,r){if(Lm=null,e=PE(r),e=yu(e),e!==null)if(t=gu(e),t===null)e=null;else if(n=t.tag,n===13){if(e=rO(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 Lm=e,null}function EO(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(Fj()){case jE:return 1;case uO:return 4;case Cm:case Rj:return 16;case cO:return 536870912;default:return 16}default:return 16}}var Zs=null,YE=null,Fm=null;function wO(){if(Fm)return Fm;var e,t=YE,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 Fm=i.slice(e,1<r?1-r:void 0)}function Rm(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 Pm(){return!0}function SO(){return!1}function Hi(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)?Pm:SO,this.isPropagationStopped=SO,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=Pm)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!=\"unknown\"&&(n.cancelBubble=!0),this.isPropagationStopped=Pm)},persist:function(){},isPersistent:Pm}),t}var Hc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},JE=Hi(Hc),vp=mn({},Hc,{view:0,detail:0}),Qj=Hi(vp),KE,XE,mp,Mm=mn({},vp,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ew,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!==mp&&(mp&&e.type===\"mousemove\"?(KE=e.screenX-mp.screenX,XE=e.screenY-mp.screenY):XE=KE=0,mp=e),KE)},movementY:function(e){return\"movementY\"in e?e.movementY:XE}}),TO=Hi(Mm),Yj=mn({},Mm,{dataTransfer:0}),Jj=Hi(Yj),Kj=mn({},vp,{relatedTarget:0}),ZE=Hi(Kj),Xj=mn({},Hc,{animationName:0,elapsedTime:0,pseudoElement:0}),Zj=Hi(Xj),eU=mn({},Hc,{clipboardData:function(e){return\"clipboardData\"in e?e.clipboardData:window.clipboardData}}),tU=Hi(eU),nU=mn({},Hc,{data:0}),_O=Hi(nU),rU={Esc:\"Escape\",Spacebar:\" \",Left:\"ArrowLeft\",Up:\"ArrowUp\",Right:\"ArrowRight\",Down:\"ArrowDown\",Del:\"Delete\",Win:\"OS\",Menu:\"ContextMenu\",Apps:\"ContextMenu\",Scroll:\"ScrollLock\",MozPrintableKey:\"Unidentified\"},iU={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\"},oU={Alt:\"altKey\",Control:\"ctrlKey\",Meta:\"metaKey\",Shift:\"shiftKey\"};function aU(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=oU[e])?!!t[e]:!1}function ew(){return aU}var sU=mn({},vp,{key:function(e){if(e.key){var t=rU[e.key]||e.key;if(t!==\"Unidentified\")return t}return e.type===\"keypress\"?(e=Rm(e),e===13?\"Enter\":String.fromCharCode(e)):e.type===\"keydown\"||e.type===\"keyup\"?iU[e.keyCode]||\"Unidentified\":\"\"},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ew,charCode:function(e){return e.type===\"keypress\"?Rm(e):0},keyCode:function(e){return e.type===\"keydown\"||e.type===\"keyup\"?e.keyCode:0},which:function(e){return e.type===\"keypress\"?Rm(e):e.type===\"keydown\"||e.type===\"keyup\"?e.keyCode:0}}),lU=Hi(sU),uU=mn({},Mm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),CO=Hi(uU),cU=mn({},vp,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ew}),fU=Hi(cU),dU=mn({},Hc,{propertyName:0,elapsedTime:0,pseudoElement:0}),pU=Hi(dU),hU=mn({},Mm,{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}),vU=Hi(hU),mU=[9,13,27,32],tw=Ka&&\"CompositionEvent\"in window,gp=null;Ka&&\"documentMode\"in document&&(gp=document.documentMode);var gU=Ka&&\"TextEvent\"in window&&!gp,xO=Ka&&(!tw||gp&&8<gp&&11>=gp),kO=String.fromCharCode(32),NO=!1;function DO(e,t){switch(e){case\"keyup\":return mU.indexOf(t.keyCode)!==-1;case\"keydown\":return t.keyCode!==229;case\"keypress\":case\"mousedown\":case\"focusout\":return!0;default:return!1}}function AO(e){return e=e.detail,typeof e==\"object\"&&\"data\"in e?e.data:null}var zc=!1;function yU(e,t){switch(e){case\"compositionend\":return AO(t);case\"keypress\":return t.which!==32?null:(NO=!0,kO);case\"textInput\":return e=t.data,e===kO&&NO?null:e;default:return null}}function bU(e,t){if(zc)return e===\"compositionend\"||!tw&&DO(e,t)?(e=wO(),Fm=YE=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 xO&&t.locale!==\"ko\"?null:t.data;default:return null}}var EU={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 OO(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===\"input\"?!!EU[e.type]:t===\"textarea\"}function IO(e,t,n,r){XA(r),t=Um(t,\"onChange\"),0<t.length&&(n=new JE(\"onChange\",\"change\",null,n,r),e.push({event:n,listeners:t}))}var yp=null,bp=null;function wU(e){JO(e,0)}function $m(e){var t=Jc(e);if(BA(t))return e}function SU(e,t){if(e===\"change\")return t}var LO=!1;if(Ka){var nw;if(Ka){var rw=\"oninput\"in document;if(!rw){var FO=document.createElement(\"div\");FO.setAttribute(\"oninput\",\"return;\"),rw=typeof FO.oninput==\"function\"}nw=rw}else nw=!1;LO=nw&&(!document.documentMode||9<document.documentMode)}function RO(){yp&&(yp.detachEvent(\"onpropertychange\",PO),bp=yp=null)}function PO(e){if(e.propertyName===\"value\"&&$m(bp)){var t=[];IO(t,bp,e,PE(e)),nO(wU,t)}}function TU(e,t,n){e===\"focusin\"?(RO(),yp=t,bp=n,yp.attachEvent(\"onpropertychange\",PO)):e===\"focusout\"&&RO()}function _U(e){if(e===\"selectionchange\"||e===\"keyup\"||e===\"keydown\")return $m(bp)}function CU(e,t){if(e===\"click\")return $m(t)}function xU(e,t){if(e===\"input\"||e===\"change\")return $m(t)}function kU(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Go=typeof Object.is==\"function\"?Object.is:kU;function Ep(e,t){if(Go(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(!hE.call(t,i)||!Go(e[i],t[i]))return!1}return!0}function MO(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function $O(e,t){var n=MO(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=MO(n)}}function VO(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?VO(e,t.parentNode):\"contains\"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function BO(){for(var e=window,t=wm();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==\"string\"}catch{n=!1}if(n)e=t.contentWindow;else break;t=wm(e.document)}return t}function iw(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 NU(e){var t=BO(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&VO(n.ownerDocument.documentElement,n)){if(r!==null&&iw(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=$O(n,o);var s=$O(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 DU=Ka&&\"documentMode\"in document&&11>=document.documentMode,Gc=null,ow=null,wp=null,aw=!1;function jO(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;aw||Gc==null||Gc!==wm(r)||(r=Gc,\"selectionStart\"in r&&iw(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}),wp&&Ep(wp,r)||(wp=r,r=Um(ow,\"onSelect\"),0<r.length&&(t=new JE(\"onSelect\",\"select\",null,t,n),e.push({event:t,listeners:r}),t.target=Gc)))}function Vm(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[\"Webkit\"+e]=\"webkit\"+t,n[\"Moz\"+e]=\"moz\"+t,n}var Wc={animationend:Vm(\"Animation\",\"AnimationEnd\"),animationiteration:Vm(\"Animation\",\"AnimationIteration\"),animationstart:Vm(\"Animation\",\"AnimationStart\"),transitionend:Vm(\"Transition\",\"TransitionEnd\")},sw={},UO={};Ka&&(UO=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 Bm(e){if(sw[e])return sw[e];if(!Wc[e])return e;var t=Wc[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in UO)return sw[e]=t[n];return e}var qO=Bm(\"animationend\"),HO=Bm(\"animationiteration\"),zO=Bm(\"animationstart\"),GO=Bm(\"transitionend\"),WO=new Map,QO=\"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){WO.set(e,t),mu(t,[e])}for(var lw=0;lw<QO.length;lw++){var uw=QO[lw],AU=uw.toLowerCase(),OU=uw[0].toUpperCase()+uw.slice(1);el(AU,\"on\"+OU)}el(qO,\"onAnimationEnd\"),el(HO,\"onAnimationIteration\"),el(zO,\"onAnimationStart\"),el(\"dblclick\",\"onDoubleClick\"),el(\"focusin\",\"onFocus\"),el(\"focusout\",\"onBlur\"),el(GO,\"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 Sp=\"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(\" \"),IU=new Set(\"cancel close invalid load scroll toggle\".split(\" \").concat(Sp));function YO(e,t,n){var r=e.type||\"unknown-event\";e.currentTarget=n,Aj(r,t,void 0,e),e.currentTarget=null}function JO(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;YO(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;YO(i,l,f),o=c}}}if(_m)throw e=BE,_m=!1,BE=null,e}function nn(e,t){var n=t[gw];n===void 0&&(n=t[gw]=new Set);var r=e+\"__bubble\";n.has(r)||(KO(t,e,2,!1),n.add(r))}function cw(e,t,n){var r=0;t&&(r|=4),KO(n,e,r,t)}var jm=\"_reactListening\"+Math.random().toString(36).slice(2);function Tp(e){if(!e[jm]){e[jm]=!0,IA.forEach(function(n){n!==\"selectionchange\"&&(IU.has(n)||cw(n,!1,e),cw(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[jm]||(t[jm]=!0,cw(\"selectionchange\",!1,t))}}function KO(e,t,n,r){switch(EO(t)){case 1:var i=Gj;break;case 4:i=Wj;break;default:i=WE}n=i.bind(null,t,n,e),i=void 0,!VE||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 fw(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}nO(function(){var f=o,h=PE(n),g=[];e:{var m=WO.get(e);if(m!==void 0){var y=JE,T=e;switch(e){case\"keypress\":if(Rm(n)===0)break e;case\"keydown\":case\"keyup\":y=lU;break;case\"focusin\":T=\"focus\",y=ZE;break;case\"focusout\":T=\"blur\",y=ZE;break;case\"beforeblur\":case\"afterblur\":y=ZE;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=TO;break;case\"drag\":case\"dragend\":case\"dragenter\":case\"dragexit\":case\"dragleave\":case\"dragover\":case\"dragstart\":case\"drop\":y=Jj;break;case\"touchcancel\":case\"touchend\":case\"touchmove\":case\"touchstart\":y=fU;break;case qO:case HO:case zO:y=Zj;break;case GO:y=pU;break;case\"scroll\":y=Qj;break;case\"wheel\":y=vU;break;case\"copy\":case\"cut\":case\"paste\":y=tU;break;case\"gotpointercapture\":case\"lostpointercapture\":case\"pointercancel\":case\"pointerdown\":case\"pointermove\":case\"pointerout\":case\"pointerover\":case\"pointerup\":y=CO}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 S=C.stateNode;if(C.tag===5&&S!==null&&(C=S,_!==null&&(S=op(b,_),S!=null&&x.push(_p(b,S,C)))),D)break;b=b.return}0<x.length&&(m=new y(m,T,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!==RE&&(T=n.relatedTarget||n.fromElement)&&(yu(T)||T[Za]))break e;if((y||m)&&(m=h.window===h?h:(m=h.ownerDocument)?m.defaultView||m.parentWindow:window,y?(T=n.relatedTarget||n.toElement,y=f,T=T?yu(T):null,T!==null&&(D=gu(T),T!==D||T.tag!==5&&T.tag!==6)&&(T=null)):(y=null,T=f),y!==T)){if(x=TO,S=\"onMouseLeave\",_=\"onMouseEnter\",b=\"mouse\",(e===\"pointerout\"||e===\"pointerover\")&&(x=CO,S=\"onPointerLeave\",_=\"onPointerEnter\",b=\"pointer\"),D=y==null?m:Jc(y),C=T==null?m:Jc(T),m=new x(S,b+\"leave\",y,n,h),m.target=D,m.relatedTarget=C,S=null,yu(h)===f&&(x=new x(_,b+\"enter\",T,n,h),x.target=C,x.relatedTarget=D,S=x),D=S,y&&T)t:{for(x=y,_=T,b=0,C=x;C;C=Qc(C))b++;for(C=0,S=_;S;S=Qc(S))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&&XO(g,m,y,x,!1),T!==null&&D!==null&&XO(g,D,T,x,!0)}}e:{if(m=f?Jc(f):window,y=m.nodeName&&m.nodeName.toLowerCase(),y===\"select\"||y===\"input\"&&m.type===\"file\")var N=SU;else if(OO(m))if(LO)N=xU;else{N=_U;var F=TU}else(y=m.nodeName)&&y.toLowerCase()===\"input\"&&(m.type===\"checkbox\"||m.type===\"radio\")&&(N=CU);if(N&&(N=N(e,f))){IO(g,N,n,h);break e}F&&F(e,m,f),e===\"focusout\"&&(F=m._wrapperState)&&F.controlled&&m.type===\"number\"&&AE(m,\"number\",m.value)}switch(F=f?Jc(f):window,e){case\"focusin\":(OO(F)||F.contentEditable===\"true\")&&(Gc=F,ow=f,wp=null);break;case\"focusout\":wp=ow=Gc=null;break;case\"mousedown\":aw=!0;break;case\"contextmenu\":case\"mouseup\":case\"dragend\":aw=!1,jO(g,n,h);break;case\"selectionchange\":if(DU)break;case\"keydown\":case\"keyup\":jO(g,n,h)}var L;if(tw)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?DO(e,n)&&(A=\"onCompositionEnd\"):e===\"keydown\"&&n.keyCode===229&&(A=\"onCompositionStart\");A&&(xO&&n.locale!==\"ko\"&&(zc||A!==\"onCompositionStart\"?A===\"onCompositionEnd\"&&zc&&(L=wO()):(Zs=h,YE=\"value\"in Zs?Zs.value:Zs.textContent,zc=!0)),F=Um(f,A),0<F.length&&(A=new _O(A,e,null,n,h),g.push({event:A,listeners:F}),L?A.data=L:(L=AO(n),L!==null&&(A.data=L)))),(L=gU?yU(e,n):bU(e,n))&&(f=Um(f,\"onBeforeInput\"),0<f.length&&(h=new _O(\"onBeforeInput\",\"beforeinput\",null,n,h),g.push({event:h,listeners:f}),h.data=L))}JO(g,t)})}function _p(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Um(e,t){for(var n=t+\"Capture\",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=op(e,n),o!=null&&r.unshift(_p(e,o,i)),o=op(e,t),o!=null&&r.push(_p(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 XO(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=op(n,o),c!=null&&s.unshift(_p(n,c,l))):i||(c=op(n,o),c!=null&&s.push(_p(n,c,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var LU=/\\r\\n?/g,FU=/\\u0000|\\uFFFD/g;function ZO(e){return(typeof e==\"string\"?e:\"\"+e).replace(LU,`\n`).replace(FU,\"\")}function qm(e,t,n){if(t=ZO(t),ZO(e)!==t&&n)throw Error(De(425))}function Hm(){}var dw=null,pw=null;function hw(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 vw=typeof setTimeout==\"function\"?setTimeout:void 0,RU=typeof clearTimeout==\"function\"?clearTimeout:void 0,eI=typeof Promise==\"function\"?Promise:void 0,PU=typeof queueMicrotask==\"function\"?queueMicrotask:typeof eI<\"u\"?function(e){return eI.resolve(null).then(e).catch(MU)}:vw;function MU(e){setTimeout(function(){throw e})}function mw(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),hp(t);return}r--}else n!==\"$\"&&n!==\"$?\"&&n!==\"$!\"||r++;n=i}while(n);hp(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 tI(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),_a=\"__reactFiber$\"+Yc,Cp=\"__reactProps$\"+Yc,Za=\"__reactContainer$\"+Yc,gw=\"__reactEvents$\"+Yc,$U=\"__reactListeners$\"+Yc,VU=\"__reactHandles$\"+Yc;function yu(e){var t=e[_a];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Za]||n[_a]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=tI(e);e!==null;){if(n=e[_a])return n;e=tI(e)}return t}e=n,n=e.parentNode}return null}function xp(e){return e=e[_a]||e[Za],!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 zm(e){return e[Cp]||null}var yw=[],Kc=-1;function nl(e){return{current:e}}function rn(e){0>Kc||(e.current=yw[Kc],yw[Kc]=null,Kc--)}function Jt(e,t){Kc++,yw[Kc]=e.current,e.current=t}var rl={},Br=nl(rl),Ci=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 xi(e){return e=e.childContextTypes,e!=null}function Gm(){rn(Ci),rn(Br)}function nI(e,t,n){if(Br.current!==rl)throw Error(De(168));Jt(Br,t),Jt(Ci,n)}function rI(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,Tj(e)||\"Unknown\",i));return mn({},n,r)}function Wm(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||rl,bu=Br.current,Jt(Br,e),Jt(Ci,Ci.current),!0}function iI(e,t,n){var r=e.stateNode;if(!r)throw Error(De(169));n?(e=rI(e,t,bu),r.__reactInternalMemoizedMergedChildContext=e,rn(Ci),rn(Br),Jt(Br,e)):rn(Ci),Jt(Ci,n)}var es=null,Qm=!1,bw=!1;function oI(e){es===null?es=[e]:es.push(e)}function BU(e){Qm=!0,oI(e)}function il(){if(!bw&&es!==null){bw=!0;var e=0,t=Ut;try{var n=es;for(Ut=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}es=null,Qm=!1}catch(i){throw es!==null&&(es=es.slice(e+1)),sO(jE,il),i}finally{Ut=t,bw=!1}}return null}var Zc=[],ef=0,Ym=null,Jm=0,fo=[],po=0,Eu=null,ts=1,ns=\"\";function wu(e,t){Zc[ef++]=Jm,Zc[ef++]=Ym,Ym=e,Jm=t}function aI(e,t,n){fo[po++]=ts,fo[po++]=ns,fo[po++]=Eu,Eu=e;var r=ts;e=ns;var i=32-zo(r)-1;r&=~(1<<i),n+=1;var o=32-zo(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,ts=1<<32-zo(t)+i|n<<i|r,ns=o+e}else ts=1<<o|n<<i|r,ns=e}function Ew(e){e.return!==null&&(wu(e,1),aI(e,1,0))}function ww(e){for(;e===Ym;)Ym=Zc[--ef],Zc[ef]=null,Jm=Zc[--ef],Zc[ef]=null;for(;e===Eu;)Eu=fo[--po],fo[po]=null,ns=fo[--po],fo[po]=null,ts=fo[--po],fo[po]=null}var zi=null,Gi=null,pn=!1,Wo=null;function sI(e,t){var n=go(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 lI(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,zi=e,Gi=tl(t.firstChild),!0):!1;case 6:return t=e.pendingProps===\"\"||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,zi=e,Gi=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Eu!==null?{id:ts,overflow:ns}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=go(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,zi=e,Gi=null,!0):!1;default:return!1}}function Sw(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Tw(e){if(pn){var t=Gi;if(t){var n=t;if(!lI(e,t)){if(Sw(e))throw Error(De(418));t=tl(n.nextSibling);var r=zi;t&&lI(e,t)?sI(r,n):(e.flags=e.flags&-4097|2,pn=!1,zi=e)}}else{if(Sw(e))throw Error(De(418));e.flags=e.flags&-4097|2,pn=!1,zi=e}}}function uI(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;zi=e}function Km(e){if(e!==zi)return!1;if(!pn)return uI(e),pn=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!==\"head\"&&t!==\"body\"&&!hw(e.type,e.memoizedProps)),t&&(t=Gi)){if(Sw(e))throw cI(),Error(De(418));for(;t;)sI(e,t),t=tl(t.nextSibling)}if(uI(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){Gi=tl(e.nextSibling);break e}t--}else n!==\"$\"&&n!==\"$!\"&&n!==\"$?\"||t++}e=e.nextSibling}Gi=null}}else Gi=zi?tl(e.stateNode.nextSibling):null;return!0}function cI(){for(var e=Gi;e;)e=tl(e.nextSibling)}function tf(){Gi=zi=null,pn=!1}function _w(e){Wo===null?Wo=[e]:Wo.push(e)}var jU=Xa.ReactCurrentBatchConfig;function Qo(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 Xm=nl(null),Zm=null,nf=null,Cw=null;function xw(){Cw=nf=Zm=null}function kw(e){var t=Xm.current;rn(Xm),e._currentValue=t}function Nw(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){Zm=e,Cw=nf=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(ki=!0),e.firstContext=null)}function ho(e){var t=e._currentValue;if(Cw!==e)if(e={context:e,memoizedValue:t,next:null},nf===null){if(Zm===null)throw Error(De(308));nf=e,Zm.dependencies={lanes:0,firstContext:e}}else nf=nf.next=e;return t}var Su=null;function Dw(e){Su===null?Su=[e]:Su.push(e)}function fI(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Dw(t)):(n.next=i.next,i.next=n),t.interleaved=n,rs(e,r)}function rs(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 Aw(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function dI(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 is(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,rs(e,n)}return i=r.interleaved,i===null?(t.next=t,Dw(r)):(t.next=i.next,i.next=t),r.interleaved=t,rs(e,n)}function eg(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,HE(e,n)}}function pI(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 tg(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 T=e,x=l;switch(m=t,y=n,x.tag){case 1:if(T=x.payload,typeof T==\"function\"){g=T.call(y,g,m);break e}g=T;break e;case 3:T.flags=T.flags&-65537|128;case 0:if(T=x.payload,m=typeof T==\"function\"?T.call(y,g,m):T,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 hI(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 vI=new OA.Component().refs;function Ow(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 ng={isMounted:function(e){return(e=e._reactInternals)?gu(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=si(),i=cl(e),o=is(r,i);o.payload=t,n!=null&&(o.callback=n),t=al(e,o,i),t!==null&&(Ko(t,e,i,r),eg(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=si(),i=cl(e),o=is(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=al(e,o,i),t!==null&&(Ko(t,e,i,r),eg(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=si(),r=cl(e),i=is(n,r);i.tag=2,t!=null&&(i.callback=t),t=al(e,i,r),t!==null&&(Ko(t,e,r,n),eg(t,e,r))}};function mI(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?!Ep(n,r)||!Ep(i,o):!0}function gI(e,t,n){var r=!1,i=rl,o=t.contextType;return typeof o==\"object\"&&o!==null?o=ho(o):(i=xi(t)?bu:Br.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=ng,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function yI(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&&ng.enqueueReplaceState(t,t.state,null)}function Iw(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=vI,Aw(e);var o=t.contextType;typeof o==\"object\"&&o!==null?i.context=ho(o):(o=xi(t)?bu:Br.current,i.context=Xc(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o==\"function\"&&(Ow(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&&ng.enqueueReplaceState(i,i.state,null),tg(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount==\"function\"&&(e.flags|=4194308)}function kp(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===vI&&(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 rg(e,t){throw e=Object.prototype.toString.call(t),Error(De(31,e===\"[object Object]\"?\"object with keys {\"+Object.keys(t).join(\", \")+\"}\":e))}function bI(e){var t=e._init;return t(e._payload)}function EI(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,S){return b===null||b.tag!==6?(b=vS(C,_.mode,S),b.return=_,b):(b=i(b,C),b.return=_,b)}function c(_,b,C,S){var N=C.type;return N===Vc?h(_,b,C.props.children,S,C.key):b!==null&&(b.elementType===N||typeof N==\"object\"&&N!==null&&N.$$typeof===Ws&&bI(N)===b.type)?(S=i(b,C.props),S.ref=kp(_,b,C),S.return=_,S):(S=Sg(C.type,C.key,C.props,null,_.mode,S),S.ref=kp(_,b,C),S.return=_,S)}function f(_,b,C,S){return b===null||b.tag!==4||b.stateNode.containerInfo!==C.containerInfo||b.stateNode.implementation!==C.implementation?(b=mS(C,_.mode,S),b.return=_,b):(b=i(b,C.children||[]),b.return=_,b)}function h(_,b,C,S,N){return b===null||b.tag!==7?(b=Du(C,_.mode,S,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=vS(\"\"+b,_.mode,C),b.return=_,b;if(typeof b==\"object\"&&b!==null){switch(b.$$typeof){case bm:return C=Sg(b.type,b.key,b.props,null,_.mode,C),C.ref=kp(_,null,b),C.return=_,C;case $c:return b=mS(b,_.mode,C),b.return=_,b;case Ws:var S=b._init;return g(_,S(b._payload),C)}if(np(b)||ep(b))return b=Du(b,_.mode,C,null),b.return=_,b;rg(_,b)}return null}function m(_,b,C,S){var N=b!==null?b.key:null;if(typeof C==\"string\"&&C!==\"\"||typeof C==\"number\")return N!==null?null:l(_,b,\"\"+C,S);if(typeof C==\"object\"&&C!==null){switch(C.$$typeof){case bm:return C.key===N?c(_,b,C,S):null;case $c:return C.key===N?f(_,b,C,S):null;case Ws:return N=C._init,m(_,b,N(C._payload),S)}if(np(C)||ep(C))return N!==null?null:h(_,b,C,S,null);rg(_,C)}return null}function y(_,b,C,S,N){if(typeof S==\"string\"&&S!==\"\"||typeof S==\"number\")return _=_.get(C)||null,l(b,_,\"\"+S,N);if(typeof S==\"object\"&&S!==null){switch(S.$$typeof){case bm:return _=_.get(S.key===null?C:S.key)||null,c(b,_,S,N);case $c:return _=_.get(S.key===null?C:S.key)||null,f(b,_,S,N);case Ws:var F=S._init;return y(_,b,C,F(S._payload),N)}if(np(S)||ep(S))return _=_.get(C)||null,h(b,_,S,N,null);rg(b,S)}return null}function T(_,b,C,S){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],S);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),pn&&wu(_,A),N;if(L===null){for(;A<C.length;A++)L=g(_,C[A],S),L!==null&&(b=o(L,b,A),F===null?N=L:F.sibling=L,F=L);return pn&&wu(_,A),N}for(L=r(_,L);A<C.length;A++)P=y(L,_,A,C[A],S),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)}),pn&&wu(_,A),N}function x(_,b,C,S){var N=ep(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,S);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),pn&&wu(_,A),N;if(L===null){for(;!V.done;A++,V=C.next())V=g(_,V.value,S),V!==null&&(b=o(V,b,A),F===null?N=V:F.sibling=V,F=V);return pn&&wu(_,A),N}for(L=r(_,L);!V.done;A++,V=C.next())V=y(L,_,A,V.value,S),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)}),pn&&wu(_,A),N}function D(_,b,C,S){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 bm: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&&bI(N)===F.type){n(_,F.sibling),b=i(F,C.props),b.ref=kp(_,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,S,C.key),b.return=_,_=b):(S=Sg(C.type,C.key,C.props,null,_.mode,S),S.ref=kp(_,b,C),S.return=_,_=S)}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=mS(C,_.mode,S),b.return=_,_=b}return s(_);case Ws:return F=C._init,D(_,b,F(C._payload),S)}if(np(C))return T(_,b,C,S);if(ep(C))return x(_,b,C,S);rg(_,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=vS(C,_.mode,S),b.return=_,_=b),s(_)):n(_,b)}return D}var of=EI(!0),wI=EI(!1),Np={},Ca=nl(Np),Dp=nl(Np),Ap=nl(Np);function Tu(e){if(e===Np)throw Error(De(174));return e}function Lw(e,t){switch(Jt(Ap,t),Jt(Dp,e),Jt(Ca,Np),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:IE(null,\"\");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=IE(t,e)}rn(Ca),Jt(Ca,t)}function af(){rn(Ca),rn(Dp),rn(Ap)}function SI(e){Tu(Ap.current);var t=Tu(Ca.current),n=IE(t,e.type);t!==n&&(Jt(Dp,e),Jt(Ca,n))}function Fw(e){Dp.current===e&&(rn(Ca),rn(Dp))}var gn=nl(0);function ig(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 Rw=[];function Pw(){for(var e=0;e<Rw.length;e++)Rw[e]._workInProgressVersionPrimary=null;Rw.length=0}var og=Xa.ReactCurrentDispatcher,Mw=Xa.ReactCurrentBatchConfig,_u=0,yn=null,Xn=null,hr=null,ag=!1,Op=!1,Ip=0,UU=0;function jr(){throw Error(De(321))}function $w(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Go(e[n],t[n]))return!1;return!0}function Vw(e,t,n,r,i,o){if(_u=o,yn=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,og.current=e===null||e.memoizedState===null?GU:WU,e=n(r,i),Op){o=0;do{if(Op=!1,Ip=0,25<=o)throw Error(De(301));o+=1,hr=Xn=null,t.updateQueue=null,og.current=QU,e=n(r,i)}while(Op)}if(og.current=ug,t=Xn!==null&&Xn.next!==null,_u=0,hr=Xn=yn=null,ag=!1,t)throw Error(De(300));return e}function Bw(){var e=Ip!==0;return Ip=0,e}function xa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return hr===null?yn.memoizedState=hr=e:hr=hr.next=e,hr}function vo(){if(Xn===null){var e=yn.alternate;e=e!==null?e.memoizedState:null}else e=Xn.next;var t=hr===null?yn.memoizedState:hr.next;if(t!==null)hr=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},hr===null?yn.memoizedState=hr=e:hr=hr.next=e}return hr}function Lp(e,t){return typeof t==\"function\"?t(e):t}function jw(e){var t=vo(),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,Go(r,t.memoizedState)||(ki=!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 Uw(e){var t=vo(),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);Go(o,t.memoizedState)||(ki=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function TI(){}function _I(e,t){var n=yn,r=vo(),i=t(),o=!Go(r.memoizedState,i);if(o&&(r.memoizedState=i,ki=!0),r=r.queue,qw(kI.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||hr!==null&&hr.memoizedState.tag&1){if(n.flags|=2048,Fp(9,xI.bind(null,n,r,i,t),void 0,null),vr===null)throw Error(De(349));_u&30||CI(n,t,i)}return i}function CI(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 xI(e,t,n,r){t.value=n,t.getSnapshot=r,NI(t)&&DI(e)}function kI(e,t,n){return n(function(){NI(t)&&DI(e)})}function NI(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Go(e,n)}catch{return!0}}function DI(e){var t=rs(e,1);t!==null&&Ko(t,e,1,-1)}function AI(e){var t=xa();return typeof e==\"function\"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Lp,lastRenderedState:e},t.queue=e,e=e.dispatch=zU.bind(null,yn,e),[t.memoizedState,e]}function Fp(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 OI(){return vo().memoizedState}function sg(e,t,n,r){var i=xa();yn.flags|=e,i.memoizedState=Fp(1|t,n,void 0,r===void 0?null:r)}function lg(e,t,n,r){var i=vo();r=r===void 0?null:r;var o=void 0;if(Xn!==null){var s=Xn.memoizedState;if(o=s.destroy,r!==null&&$w(r,s.deps)){i.memoizedState=Fp(t,n,o,r);return}}yn.flags|=e,i.memoizedState=Fp(1|t,n,o,r)}function II(e,t){return sg(8390656,8,e,t)}function qw(e,t){return lg(2048,8,e,t)}function LI(e,t){return lg(4,2,e,t)}function FI(e,t){return lg(4,4,e,t)}function RI(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 PI(e,t,n){return n=n!=null?n.concat([e]):null,lg(4,4,RI.bind(null,t,e),n)}function Hw(){}function MI(e,t){var n=vo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&$w(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function $I(e,t){var n=vo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&$w(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function VI(e,t,n){return _u&21?(Go(n,t)||(n=fO(),yn.lanes|=n,Cu|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,ki=!0),e.memoizedState=n)}function qU(e,t){var n=Ut;Ut=n!==0&&4>n?n:4,e(!0);var r=Mw.transition;Mw.transition={};try{e(!1),t()}finally{Ut=n,Mw.transition=r}}function BI(){return vo().memoizedState}function HU(e,t,n){var r=cl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},jI(e))UI(t,n);else if(n=fI(e,t,n,r),n!==null){var i=si();Ko(n,e,r,i),qI(n,t,r)}}function zU(e,t,n){var r=cl(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(jI(e))UI(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,Go(l,s)){var c=t.interleaved;c===null?(i.next=i,Dw(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}finally{}n=fI(e,t,i,r),n!==null&&(i=si(),Ko(n,e,r,i),qI(n,t,r))}}function jI(e){var t=e.alternate;return e===yn||t!==null&&t===yn}function UI(e,t){Op=ag=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function qI(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,HE(e,n)}}var ug={readContext:ho,useCallback:jr,useContext:jr,useEffect:jr,useImperativeHandle:jr,useInsertionEffect:jr,useLayoutEffect:jr,useMemo:jr,useReducer:jr,useRef:jr,useState:jr,useDebugValue:jr,useDeferredValue:jr,useTransition:jr,useMutableSource:jr,useSyncExternalStore:jr,useId:jr,unstable_isNewReconciler:!1},GU={readContext:ho,useCallback:function(e,t){return xa().memoizedState=[e,t===void 0?null:t],e},useContext:ho,useEffect:II,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,sg(4194308,4,RI.bind(null,t,e),n)},useLayoutEffect:function(e,t){return sg(4194308,4,e,t)},useInsertionEffect:function(e,t){return sg(4,2,e,t)},useMemo:function(e,t){var n=xa();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=xa();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=HU.bind(null,yn,e),[r.memoizedState,e]},useRef:function(e){var t=xa();return e={current:e},t.memoizedState=e},useState:AI,useDebugValue:Hw,useDeferredValue:function(e){return xa().memoizedState=e},useTransition:function(){var e=AI(!1),t=e[0];return e=qU.bind(null,e[1]),xa().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=yn,i=xa();if(pn){if(n===void 0)throw Error(De(407));n=n()}else{if(n=t(),vr===null)throw Error(De(349));_u&30||CI(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,II(kI.bind(null,r,o,e),[e]),r.flags|=2048,Fp(9,xI.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=xa(),t=vr.identifierPrefix;if(pn){var n=ns,r=ts;n=(r&~(1<<32-zo(r)-1)).toString(32)+n,t=\":\"+t+\"R\"+n,n=Ip++,0<n&&(t+=\"H\"+n.toString(32)),t+=\":\"}else n=UU++,t=\":\"+t+\"r\"+n.toString(32)+\":\";return e.memoizedState=t},unstable_isNewReconciler:!1},WU={readContext:ho,useCallback:MI,useContext:ho,useEffect:qw,useImperativeHandle:PI,useInsertionEffect:LI,useLayoutEffect:FI,useMemo:$I,useReducer:jw,useRef:OI,useState:function(){return jw(Lp)},useDebugValue:Hw,useDeferredValue:function(e){var t=vo();return VI(t,Xn.memoizedState,e)},useTransition:function(){var e=jw(Lp)[0],t=vo().memoizedState;return[e,t]},useMutableSource:TI,useSyncExternalStore:_I,useId:BI,unstable_isNewReconciler:!1},QU={readContext:ho,useCallback:MI,useContext:ho,useEffect:qw,useImperativeHandle:PI,useInsertionEffect:LI,useLayoutEffect:FI,useMemo:$I,useReducer:Uw,useRef:OI,useState:function(){return Uw(Lp)},useDebugValue:Hw,useDeferredValue:function(e){var t=vo();return Xn===null?t.memoizedState=e:VI(t,Xn.memoizedState,e)},useTransition:function(){var e=Uw(Lp)[0],t=vo().memoizedState;return[e,t]},useMutableSource:TI,useSyncExternalStore:_I,useId:BI,unstable_isNewReconciler:!1};function sf(e,t){try{var n=\"\",r=t;do n+=Sj(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 zw(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Gw(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var YU=typeof WeakMap==\"function\"?WeakMap:Map;function HI(e,t,n){n=is(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){mg||(mg=!0,sS=r),Gw(e,t)},n}function zI(e,t,n){n=is(-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(){Gw(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch==\"function\"&&(n.callback=function(){Gw(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 GI(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new YU;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=uq.bind(null,e,t,n),t.then(e,e))}function WI(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 QI(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=is(-1,1),t.tag=2,al(n,t,1))),n.lanes|=1),e)}var JU=Xa.ReactCurrentOwner,ki=!1;function ai(e,t,n,r){t.child=e===null?wI(t,null,n,r):of(t,e.child,n,r)}function YI(e,t,n,r,i){n=n.render;var o=t.ref;return rf(t,i),r=Vw(e,t,n,r,o,i),n=Bw(),e!==null&&!ki?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,os(e,t,i)):(pn&&n&&Ew(t),t.flags|=1,ai(e,t,r,i),t.child)}function JI(e,t,n,r,i){if(e===null){var o=n.type;return typeof o==\"function\"&&!hS(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,KI(e,t,o,r,i)):(e=Sg(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:Ep,n(s,r)&&e.ref===t.ref)return os(e,t,i)}return t.flags|=1,e=dl(o,r),e.ref=t.ref,e.return=t,t.child=e}function KI(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Ep(o,r)&&e.ref===t.ref)if(ki=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(ki=!0);else return t.lanes=e.lanes,os(e,t,i)}return Ww(e,t,n,r,i)}function XI(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},Jt(uf,Wi),Wi|=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,Jt(uf,Wi),Wi|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Jt(uf,Wi),Wi|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Jt(uf,Wi),Wi|=r;return ai(e,t,i,n),t.child}function ZI(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ww(e,t,n,r,i){var o=xi(n)?bu:Br.current;return o=Xc(t,o),rf(t,i),n=Vw(e,t,n,r,o,i),r=Bw(),e!==null&&!ki?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,os(e,t,i)):(pn&&r&&Ew(t),t.flags|=1,ai(e,t,n,i),t.child)}function e2(e,t,n,r,i){if(xi(n)){var o=!0;Wm(t)}else o=!1;if(rf(t,i),t.stateNode===null)fg(e,t),gI(t,n,r),Iw(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=ho(f):(f=xi(n)?bu:Br.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)&&yI(t,s,r,f),ol=!1;var m=t.memoizedState;s.state=m,tg(t,r,s,i),c=t.memoizedState,l!==r||m!==c||Ci.current||ol?(typeof h==\"function\"&&(Ow(t,n,h,r),c=t.memoizedState),(l=ol||mI(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,dI(e,t),l=t.memoizedProps,f=t.type===t.elementType?l:Qo(t.type,l),s.props=f,g=t.pendingProps,m=s.context,c=n.contextType,typeof c==\"object\"&&c!==null?c=ho(c):(c=xi(n)?bu:Br.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)&&yI(t,s,r,c),ol=!1,m=t.memoizedState,s.state=m,tg(t,r,s,i);var T=t.memoizedState;l!==g||m!==T||Ci.current||ol?(typeof y==\"function\"&&(Ow(t,n,y,r),T=t.memoizedState),(f=ol||mI(t,n,f,r,m,T,c)||!1)?(h||typeof s.UNSAFE_componentWillUpdate!=\"function\"&&typeof s.componentWillUpdate!=\"function\"||(typeof s.componentWillUpdate==\"function\"&&s.componentWillUpdate(r,T,c),typeof s.UNSAFE_componentWillUpdate==\"function\"&&s.UNSAFE_componentWillUpdate(r,T,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=T),s.props=r,s.state=T,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 Qw(e,t,n,r,o,i)}function Qw(e,t,n,r,i,o){ZI(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&iI(t,n,!1),os(e,t,o);r=t.stateNode,JU.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)):ai(e,t,l,o),t.memoizedState=r.state,i&&iI(t,n,!0),t.child}function t2(e){var t=e.stateNode;t.pendingContext?nI(e,t.pendingContext,t.pendingContext!==t.context):t.context&&nI(e,t.context,!1),Lw(e,t.containerInfo)}function n2(e,t,n,r,i){return tf(),_w(i),t.flags|=256,ai(e,t,n,r),t.child}var Yw={dehydrated:null,treeContext:null,retryLane:0};function Jw(e){return{baseLanes:e,cachePool:null,transitions:null}}function r2(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),Jt(gn,i&1),e===null)return Tw(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=Tg(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=Jw(n),t.memoizedState=Yw,e):Kw(t,s));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return KU(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?Jw(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=Yw,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 Kw(e,t){return t=Tg({mode:\"visible\",children:t},e.mode,0,null),t.return=e,e.child=t}function cg(e,t,n,r){return r!==null&&_w(r),of(t,e.child,null,n),e=Kw(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function KU(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=zw(Error(De(422))),cg(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Tg({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=Jw(s),t.memoizedState=Yw,o);if(!(t.mode&1))return cg(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=zw(o,r,void 0),cg(e,t,s,r)}if(l=(s&e.childLanes)!==0,ki||l){if(r=vr,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,rs(e,i),Ko(r,e,i,-1))}return pS(),r=zw(Error(De(421))),cg(e,t,s,r)}return i.data===\"$?\"?(t.flags|=128,t.child=e.child,t=cq.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Gi=tl(i.nextSibling),zi=t,pn=!0,Wo=null,e!==null&&(fo[po++]=ts,fo[po++]=ns,fo[po++]=Eu,ts=e.id,ns=e.overflow,Eu=t),t=Kw(t,r.children),t.flags|=4096,t)}function i2(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Nw(e.return,t,n)}function Xw(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 o2(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ai(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&&i2(e,n,t);else if(e.tag===19)i2(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(Jt(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&&ig(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Xw(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&&ig(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Xw(t,!0,n,null,o);break;case\"together\":Xw(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function fg(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function os(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 XU(e,t,n){switch(t.tag){case 3:t2(t),tf();break;case 5:SI(t);break;case 1:xi(t.type)&&Wm(t);break;case 4:Lw(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Jt(Xm,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Jt(gn,gn.current&1),t.flags|=128,null):n&t.child.childLanes?r2(e,t,n):(Jt(gn,gn.current&1),e=os(e,t,n),e!==null?e.sibling:null);Jt(gn,gn.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return o2(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Jt(gn,gn.current),r)break;return null;case 22:case 23:return t.lanes=0,XI(e,t,n)}return os(e,t,n)}var a2,Zw,s2,l2;a2=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}},Zw=function(){},s2=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Tu(Ca.current);var o=null;switch(n){case\"input\":i=NE(e,i),r=NE(e,r),o=[];break;case\"select\":i=mn({},i,{value:void 0}),r=mn({},r,{value:void 0}),o=[];break;case\"textarea\":i=OE(e,i),r=OE(e,r),o=[];break;default:typeof i.onClick!=\"function\"&&typeof r.onClick==\"function\"&&(e.onclick=Hm)}LE(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\"&&(Zd.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\"&&(Zd.hasOwnProperty(f)?(c!=null&&f===\"onScroll\"&&nn(\"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)}},l2=function(e,t,n,r){n!==r&&(t.flags|=4)};function Rp(e,t){if(!pn)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 Ur(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 ZU(e,t,n){var r=t.pendingProps;switch(ww(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ur(t),null;case 1:return xi(t.type)&&Gm(),Ur(t),null;case 3:return r=t.stateNode,af(),rn(Ci),rn(Br),Pw(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Km(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Wo!==null&&(cS(Wo),Wo=null))),Zw(e,t),Ur(t),null;case 5:Fw(t);var i=Tu(Ap.current);if(n=t.type,e!==null&&t.stateNode!=null)s2(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 Ur(t),null}if(e=Tu(Ca.current),Km(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[_a]=t,r[Cp]=o,e=(t.mode&1)!==0,n){case\"dialog\":nn(\"cancel\",r),nn(\"close\",r);break;case\"iframe\":case\"object\":case\"embed\":nn(\"load\",r);break;case\"video\":case\"audio\":for(i=0;i<Sp.length;i++)nn(Sp[i],r);break;case\"source\":nn(\"error\",r);break;case\"img\":case\"image\":case\"link\":nn(\"error\",r),nn(\"load\",r);break;case\"details\":nn(\"toggle\",r);break;case\"input\":jA(r,o),nn(\"invalid\",r);break;case\"select\":r._wrapperState={wasMultiple:!!o.multiple},nn(\"invalid\",r);break;case\"textarea\":HA(r,o),nn(\"invalid\",r)}LE(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&&qm(r.textContent,l,e),i=[\"children\",l]):typeof l==\"number\"&&r.textContent!==\"\"+l&&(o.suppressHydrationWarning!==!0&&qm(r.textContent,l,e),i=[\"children\",\"\"+l]):Zd.hasOwnProperty(s)&&l!=null&&s===\"onScroll\"&&nn(\"scroll\",r)}switch(n){case\"input\":Em(r),qA(r,o,!0);break;case\"textarea\":Em(r),GA(r);break;case\"select\":case\"option\":break;default:typeof o.onClick==\"function\"&&(r.onclick=Hm)}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=WA(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[_a]=t,e[Cp]=r,a2(e,t,!1,!1),t.stateNode=e;e:{switch(s=FE(n,r),n){case\"dialog\":nn(\"cancel\",e),nn(\"close\",e),i=r;break;case\"iframe\":case\"object\":case\"embed\":nn(\"load\",e),i=r;break;case\"video\":case\"audio\":for(i=0;i<Sp.length;i++)nn(Sp[i],e);i=r;break;case\"source\":nn(\"error\",e),i=r;break;case\"img\":case\"image\":case\"link\":nn(\"error\",e),nn(\"load\",e),i=r;break;case\"details\":nn(\"toggle\",e),i=r;break;case\"input\":jA(e,r),i=NE(e,r),nn(\"invalid\",e);break;case\"option\":i=r;break;case\"select\":e._wrapperState={wasMultiple:!!r.multiple},i=mn({},r,{value:void 0}),nn(\"invalid\",e);break;case\"textarea\":HA(e,r),i=OE(e,r),nn(\"invalid\",e);break;default:i=r}LE(n,i),l=i;for(o in l)if(l.hasOwnProperty(o)){var c=l[o];o===\"style\"?JA(e,c):o===\"dangerouslySetInnerHTML\"?(c=c?c.__html:void 0,c!=null&&QA(e,c)):o===\"children\"?typeof c==\"string\"?(n!==\"textarea\"||c!==\"\")&&rp(e,c):typeof c==\"number\"&&rp(e,\"\"+c):o!==\"suppressContentEditableWarning\"&&o!==\"suppressHydrationWarning\"&&o!==\"autoFocus\"&&(Zd.hasOwnProperty(o)?c!=null&&o===\"onScroll\"&&nn(\"scroll\",e):c!=null&&gE(e,o,c,s))}switch(n){case\"input\":Em(e),qA(e,r,!1);break;case\"textarea\":Em(e),GA(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=Hm)}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 Ur(t),null;case 6:if(e&&t.stateNode!=null)l2(e,t,e.memoizedProps,r);else{if(typeof r!=\"string\"&&t.stateNode===null)throw Error(De(166));if(n=Tu(Ap.current),Tu(Ca.current),Km(t)){if(r=t.stateNode,n=t.memoizedProps,r[_a]=t,(o=r.nodeValue!==n)&&(e=zi,e!==null))switch(e.tag){case 3:qm(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&qm(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[_a]=t,t.stateNode=r}return Ur(t),null;case 13:if(rn(gn),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(pn&&Gi!==null&&t.mode&1&&!(t.flags&128))cI(),tf(),t.flags|=98560,o=!1;else if(o=Km(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[_a]=t}else tf(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ur(t),o=!1}else Wo!==null&&(cS(Wo),Wo=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):pS())),t.updateQueue!==null&&(t.flags|=4),Ur(t),null);case 4:return af(),Zw(e,t),e===null&&Tp(t.stateNode.containerInfo),Ur(t),null;case 10:return kw(t.type._context),Ur(t),null;case 17:return xi(t.type)&&Gm(),Ur(t),null;case 19:if(rn(gn),o=t.memoizedState,o===null)return Ur(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)Rp(o,!1);else{if(Zn!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=ig(e),s!==null){for(t.flags|=128,Rp(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 Jt(gn,gn.current&1|2),t.child}e=e.sibling}o.tail!==null&&Dn()>cf&&(t.flags|=128,r=!0,Rp(o,!1),t.lanes=4194304)}else{if(!r)if(e=ig(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Rp(o,!0),o.tail===null&&o.tailMode===\"hidden\"&&!s.alternate&&!pn)return Ur(t),null}else 2*Dn()-o.renderingStartTime>cf&&n!==1073741824&&(t.flags|=128,r=!0,Rp(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,Jt(gn,r?n&1|2:n&1),t):(Ur(t),null);case 22:case 23:return dS(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Wi&1073741824&&(Ur(t),t.subtreeFlags&6&&(t.flags|=8192)):Ur(t),null;case 24:return null;case 25:return null}throw Error(De(156,t.tag))}function eq(e,t){switch(ww(t),t.tag){case 1:return xi(t.type)&&Gm(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return af(),rn(Ci),rn(Br),Pw(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Fw(t),null;case 13:if(rn(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 rn(gn),null;case 4:return af(),null;case 10:return kw(t.type._context),null;case 22:case 23:return dS(),null;case 24:return null;default:return null}}var dg=!1,qr=!1,tq=typeof WeakSet==\"function\"?WeakSet:Set,Be=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 eS(e,t,n){try{n()}catch(r){Sn(e,t,r)}}var u2=!1;function nq(e,t){if(dw=Im,e=BO(),iw(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(pw={focusedElem:e,selectionRange:n},Im=!1,Be=t;Be!==null;)if(t=Be,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Be=e;else for(;Be!==null;){t=Be;try{var T=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(T!==null){var x=T.memoizedProps,D=T.memoizedState,_=t.stateNode,b=_.getSnapshotBeforeUpdate(t.elementType===t.type?x:Qo(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(S){Sn(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,Be=e;break}Be=t.return}return T=u2,u2=!1,T}function Pp(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&&eS(t,n,o)}i=i.next}while(i!==r)}}function pg(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 tS(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 c2(e){var t=e.alternate;t!==null&&(e.alternate=null,c2(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[_a],delete t[Cp],delete t[gw],delete t[$U],delete t[VU])),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 f2(e){return e.tag===5||e.tag===3||e.tag===4}function d2(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||f2(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 nS(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=Hm));else if(r!==4&&(e=e.child,e!==null))for(nS(e,t,n),e=e.sibling;e!==null;)nS(e,t,n),e=e.sibling}function rS(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(rS(e,t,n),e=e.sibling;e!==null;)rS(e,t,n),e=e.sibling}var Ar=null,Yo=!1;function sl(e,t,n){for(n=n.child;n!==null;)p2(e,t,n),n=n.sibling}function p2(e,t,n){if(Ta&&typeof Ta.onCommitFiberUnmount==\"function\")try{Ta.onCommitFiberUnmount(xm,n)}catch{}switch(n.tag){case 5:qr||lf(n,t);case 6:var r=Ar,i=Yo;Ar=null,sl(e,t,n),Ar=r,Yo=i,Ar!==null&&(Yo?(e=Ar,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ar.removeChild(n.stateNode));break;case 18:Ar!==null&&(Yo?(e=Ar,n=n.stateNode,e.nodeType===8?mw(e.parentNode,n):e.nodeType===1&&mw(e,n),hp(e)):mw(Ar,n.stateNode));break;case 4:r=Ar,i=Yo,Ar=n.stateNode.containerInfo,Yo=!0,sl(e,t,n),Ar=r,Yo=i;break;case 0:case 11:case 14:case 15:if(!qr&&(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)&&eS(n,t,s),i=i.next}while(i!==r)}sl(e,t,n);break;case 1:if(!qr&&(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?(qr=(r=qr)||n.memoizedState!==null,sl(e,t,n),qr=r):sl(e,t,n);break;default:sl(e,t,n)}}function h2(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new tq),t.forEach(function(r){var i=fq.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Jo(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:Ar=l.stateNode,Yo=!1;break e;case 3:Ar=l.stateNode.containerInfo,Yo=!0;break e;case 4:Ar=l.stateNode.containerInfo,Yo=!0;break e}l=l.return}if(Ar===null)throw Error(De(160));p2(o,s,i),Ar=null,Yo=!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;)v2(t,e),t=t.sibling}function v2(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Jo(t,e),ka(e),r&4){try{Pp(3,e,e.return),pg(3,e)}catch(x){Sn(e,e.return,x)}try{Pp(5,e,e.return)}catch(x){Sn(e,e.return,x)}}break;case 1:Jo(t,e),ka(e),r&512&&n!==null&&lf(n,n.return);break;case 5:if(Jo(t,e),ka(e),r&512&&n!==null&&lf(n,n.return),e.flags&32){var i=e.stateNode;try{rp(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&&UA(i,o),FE(l,s);var f=FE(l,o);for(s=0;s<c.length;s+=2){var h=c[s],g=c[s+1];h===\"style\"?JA(i,g):h===\"dangerouslySetInnerHTML\"?QA(i,g):h===\"children\"?rp(i,g):gE(i,h,g,f)}switch(l){case\"input\":DE(i,o);break;case\"textarea\":zA(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[Cp]=o}catch(x){Sn(e,e.return,x)}}break;case 6:if(Jo(t,e),ka(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(Jo(t,e),ka(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{hp(t.containerInfo)}catch(x){Sn(e,e.return,x)}break;case 4:Jo(t,e),ka(e);break;case 13:Jo(t,e),ka(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(aS=Dn())),r&4&&h2(e);break;case 22:if(h=n!==null&&n.memoizedState!==null,e.mode&1?(qr=(f=qr)||h,Jo(t,e),qr=f):Jo(t,e),ka(e),r&8192){if(f=e.memoizedState!==null,(e.stateNode.isHidden=f)&&!h&&e.mode&1)for(Be=e,h=e.child;h!==null;){for(g=Be=h;Be!==null;){switch(m=Be,y=m.child,m.tag){case 0:case 11:case 14:case 15:Pp(4,m,m.return);break;case 1:lf(m,m.return);var T=m.stateNode;if(typeof T.componentWillUnmount==\"function\"){r=m,n=m.return;try{t=r,T.props=t.memoizedProps,T.state=t.memoizedState,T.componentWillUnmount()}catch(x){Sn(r,n,x)}}break;case 5:lf(m,m.return);break;case 22:if(m.memoizedState!==null){y2(g);continue}}y!==null?(y.return=m,Be=y):y2(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=YA(\"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:Jo(t,e),ka(e),r&4&&h2(e);break;case 21:break;default:Jo(t,e),ka(e)}}function ka(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(f2(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&&(rp(i,\"\"),r.flags&=-33);var o=d2(e);rS(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,l=d2(e);nS(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 rq(e,t,n){Be=e,m2(e)}function m2(e,t,n){for(var r=(e.mode&1)!==0;Be!==null;){var i=Be,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||dg;if(!s){var l=i.alternate,c=l!==null&&l.memoizedState!==null||qr;l=dg;var f=qr;if(dg=s,(qr=c)&&!f)for(Be=i;Be!==null;)s=Be,c=s.child,s.tag===22&&s.memoizedState!==null?b2(i):c!==null?(c.return=s,Be=c):b2(i);for(;o!==null;)Be=o,m2(o),o=o.sibling;Be=i,dg=l,qr=f}g2(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,Be=o):g2(e)}}function g2(e){for(;Be!==null;){var t=Be;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:qr||pg(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!qr)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Qo(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&hI(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}hI(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&&hp(g)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(De(163))}qr||t.flags&512&&tS(t)}catch(m){Sn(t,t.return,m)}}if(t===e){Be=null;break}if(n=t.sibling,n!==null){n.return=t.return,Be=n;break}Be=t.return}}function y2(e){for(;Be!==null;){var t=Be;if(t===e){Be=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Be=n;break}Be=t.return}}function b2(e){for(;Be!==null;){var t=Be;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{pg(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{tS(t)}catch(c){Sn(t,o,c)}break;case 5:var s=t.return;try{tS(t)}catch(c){Sn(t,s,c)}}}catch(c){Sn(t,t.return,c)}if(t===e){Be=null;break}var l=t.sibling;if(l!==null){l.return=t.return,Be=l;break}Be=t.return}}var iq=Math.ceil,hg=Xa.ReactCurrentDispatcher,iS=Xa.ReactCurrentOwner,mo=Xa.ReactCurrentBatchConfig,kt=0,vr=null,Un=null,Or=0,Wi=0,uf=nl(0),Zn=0,Mp=null,Cu=0,vg=0,oS=0,$p=null,Ni=null,aS=0,cf=1/0,as=null,mg=!1,sS=null,ll=null,gg=!1,ul=null,yg=0,Vp=0,lS=null,bg=-1,Eg=0;function si(){return kt&6?Dn():bg!==-1?bg:bg=Dn()}function cl(e){return e.mode&1?kt&2&&Or!==0?Or&-Or:jU.transition!==null?(Eg===0&&(Eg=fO()),Eg):(e=Ut,e!==0||(e=window.event,e=e===void 0?16:EO(e.type)),e):1}function Ko(e,t,n,r){if(50<Vp)throw Vp=0,lS=null,Error(De(185));up(e,n,r),(!(kt&2)||e!==vr)&&(e===vr&&(!(kt&2)&&(vg|=n),Zn===4&&fl(e,Or)),Di(e,r),n===1&&kt===0&&!(t.mode&1)&&(cf=Dn()+500,Qm&&il()))}function Di(e,t){var n=e.callbackNode;jj(e,t);var r=Dm(e,e===vr?Or:0);if(r===0)n!==null&&lO(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&lO(n),t===1)e.tag===0?BU(w2.bind(null,e)):oI(w2.bind(null,e)),PU(function(){!(kt&6)&&il()}),n=null;else{switch(dO(r)){case 1:n=jE;break;case 4:n=uO;break;case 16:n=Cm;break;case 536870912:n=cO;break;default:n=Cm}n=D2(n,E2.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function E2(e,t){if(bg=-1,Eg=0,kt&6)throw Error(De(327));var n=e.callbackNode;if(ff()&&e.callbackNode!==n)return null;var r=Dm(e,e===vr?Or:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=wg(e,r);else{t=r;var i=kt;kt|=2;var o=T2();(vr!==e||Or!==t)&&(as=null,cf=Dn()+500,ku(e,t));do try{sq();break}catch(l){S2(e,l)}while(1);xw(),hg.current=o,kt=i,Un!==null?t=0:(vr=null,Or=0,t=Zn)}if(t!==0){if(t===2&&(i=UE(e),i!==0&&(r=i,t=uS(e,i))),t===1)throw n=Mp,ku(e,0),fl(e,r),Di(e,Dn()),n;if(t===6)fl(e,r);else{if(i=e.current.alternate,!(r&30)&&!oq(i)&&(t=wg(e,r),t===2&&(o=UE(e),o!==0&&(r=o,t=uS(e,o))),t===1))throw n=Mp,ku(e,0),fl(e,r),Di(e,Dn()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(De(345));case 2:Nu(e,Ni,as);break;case 3:if(fl(e,r),(r&130023424)===r&&(t=aS+500-Dn(),10<t)){if(Dm(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){si(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=vw(Nu.bind(null,e,Ni,as),t);break}Nu(e,Ni,as);break;case 4:if(fl(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-zo(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*iq(r/1960))-r,10<r){e.timeoutHandle=vw(Nu.bind(null,e,Ni,as),r);break}Nu(e,Ni,as);break;case 5:Nu(e,Ni,as);break;default:throw Error(De(329))}}}return Di(e,Dn()),e.callbackNode===n?E2.bind(null,e):null}function uS(e,t){var n=$p;return e.current.memoizedState.isDehydrated&&(ku(e,t).flags|=256),e=wg(e,t),e!==2&&(t=Ni,Ni=n,t!==null&&cS(t)),e}function cS(e){Ni===null?Ni=e:Ni.push.apply(Ni,e)}function oq(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(!Go(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&=~oS,t&=~vg,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-zo(t),r=1<<n;e[n]=-1,t&=~r}}function w2(e){if(kt&6)throw Error(De(327));ff();var t=Dm(e,0);if(!(t&1))return Di(e,Dn()),null;var n=wg(e,t);if(e.tag!==0&&n===2){var r=UE(e);r!==0&&(t=r,n=uS(e,r))}if(n===1)throw n=Mp,ku(e,0),fl(e,t),Di(e,Dn()),n;if(n===6)throw Error(De(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Nu(e,Ni,as),Di(e,Dn()),null}function fS(e,t){var n=kt;kt|=1;try{return e(t)}finally{kt=n,kt===0&&(cf=Dn()+500,Qm&&il())}}function xu(e){ul!==null&&ul.tag===0&&!(kt&6)&&ff();var t=kt;kt|=1;var n=mo.transition,r=Ut;try{if(mo.transition=null,Ut=1,e)return e()}finally{Ut=r,mo.transition=n,kt=t,!(kt&6)&&il()}}function dS(){Wi=uf.current,rn(uf)}function ku(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,RU(n)),Un!==null)for(n=Un.return;n!==null;){var r=n;switch(ww(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Gm();break;case 3:af(),rn(Ci),rn(Br),Pw();break;case 5:Fw(r);break;case 4:af();break;case 13:rn(gn);break;case 19:rn(gn);break;case 10:kw(r.type._context);break;case 22:case 23:dS()}n=n.return}if(vr=e,Un=e=dl(e.current,null),Or=Wi=t,Zn=0,Mp=null,oS=vg=Cu=0,Ni=$p=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 S2(e,t){do{var n=Un;try{if(xw(),og.current=ug,ag){for(var r=yn.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}ag=!1}if(_u=0,hr=Xn=yn=null,Op=!1,Ip=0,iS.current=null,n===null||n.return===null){Zn=1,Mp=t,Un=null;break}e:{var o=e,s=n.return,l=n,c=t;if(t=Or,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=WI(s);if(y!==null){y.flags&=-257,QI(y,s,l,o,t),y.mode&1&&GI(o,f,t),t=y,c=f;var T=t.updateQueue;if(T===null){var x=new Set;x.add(c),t.updateQueue=x}else T.add(c);break e}else{if(!(t&1)){GI(o,f,t),pS();break e}c=Error(De(426))}}else if(pn&&l.mode&1){var D=WI(s);if(D!==null){!(D.flags&65536)&&(D.flags|=256),QI(D,s,l,o,t),_w(sf(c,l));break e}}o=c=sf(c,l),Zn!==4&&(Zn=2),$p===null?$p=[o]:$p.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var _=HI(o,c,t);pI(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 S=zI(o,l,t);pI(o,S);break e}}o=o.return}while(o!==null)}C2(n)}catch(N){t=N,Un===n&&n!==null&&(Un=n=n.return);continue}break}while(1)}function T2(){var e=hg.current;return hg.current=ug,e===null?ug:e}function pS(){(Zn===0||Zn===3||Zn===2)&&(Zn=4),vr===null||!(Cu&268435455)&&!(vg&268435455)||fl(vr,Or)}function wg(e,t){var n=kt;kt|=2;var r=T2();(vr!==e||Or!==t)&&(as=null,ku(e,t));do try{aq();break}catch(i){S2(e,i)}while(1);if(xw(),kt=n,hg.current=r,Un!==null)throw Error(De(261));return vr=null,Or=0,Zn}function aq(){for(;Un!==null;)_2(Un)}function sq(){for(;Un!==null&&!Ij();)_2(Un)}function _2(e){var t=N2(e.alternate,e,Wi);e.memoizedProps=e.pendingProps,t===null?C2(e):Un=t,iS.current=null}function C2(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=eq(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=ZU(n,t,Wi),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=Ut,i=mo.transition;try{mo.transition=null,Ut=1,lq(e,t,n,r)}finally{mo.transition=i,Ut=r}return null}function lq(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(Uj(e,o),e===vr&&(Un=vr=null,Or=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||gg||(gg=!0,D2(Cm,function(){return ff(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=mo.transition,mo.transition=null;var s=Ut;Ut=1;var l=kt;kt|=4,iS.current=null,nq(e,n),v2(n,e),NU(pw),Im=!!dw,pw=dw=null,e.current=n,rq(n),Lj(),kt=l,Ut=s,mo.transition=o}else e.current=n;if(gg&&(gg=!1,ul=e,yg=i),o=e.pendingLanes,o===0&&(ll=null),Pj(n.stateNode),Di(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(mg)throw mg=!1,e=sS,sS=null,e;return yg&1&&e.tag!==0&&ff(),o=e.pendingLanes,o&1?e===lS?Vp++:(Vp=0,lS=e):Vp=0,il(),null}function ff(){if(ul!==null){var e=dO(yg),t=mo.transition,n=Ut;try{if(mo.transition=null,Ut=16>e?16:e,ul===null)var r=!1;else{if(e=ul,ul=null,yg=0,kt&6)throw Error(De(331));var i=kt;for(kt|=4,Be=e.current;Be!==null;){var o=Be,s=o.child;if(Be.flags&16){var l=o.deletions;if(l!==null){for(var c=0;c<l.length;c++){var f=l[c];for(Be=f;Be!==null;){var h=Be;switch(h.tag){case 0:case 11:case 15:Pp(8,h,o)}var g=h.child;if(g!==null)g.return=h,Be=g;else for(;Be!==null;){h=Be;var m=h.sibling,y=h.return;if(c2(h),h===f){Be=null;break}if(m!==null){m.return=y,Be=m;break}Be=y}}}var T=o.alternate;if(T!==null){var x=T.child;if(x!==null){T.child=null;do{var D=x.sibling;x.sibling=null,x=D}while(x!==null)}}Be=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,Be=s;else e:for(;Be!==null;){if(o=Be,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Pp(9,o,o.return)}var _=o.sibling;if(_!==null){_.return=o.return,Be=_;break e}Be=o.return}}var b=e.current;for(Be=b;Be!==null;){s=Be;var C=s.child;if(s.subtreeFlags&2064&&C!==null)C.return=s,Be=C;else e:for(s=b;Be!==null;){if(l=Be,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:pg(9,l)}}catch(N){Sn(l,l.return,N)}if(l===s){Be=null;break e}var S=l.sibling;if(S!==null){S.return=l.return,Be=S;break e}Be=l.return}}if(kt=i,il(),Ta&&typeof Ta.onPostCommitFiberRoot==\"function\")try{Ta.onPostCommitFiberRoot(xm,e)}catch{}r=!0}return r}finally{Ut=n,mo.transition=t}}return!1}function x2(e,t,n){t=sf(n,t),t=HI(e,t,1),e=al(e,t,1),t=si(),e!==null&&(up(e,1,t),Di(e,t))}function Sn(e,t,n){if(e.tag===3)x2(e,e,n);else for(;t!==null;){if(t.tag===3){x2(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=zI(t,e,1),t=al(t,e,1),e=si(),t!==null&&(up(t,1,e),Di(t,e));break}}t=t.return}}function uq(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=si(),e.pingedLanes|=e.suspendedLanes&n,vr===e&&(Or&n)===n&&(Zn===4||Zn===3&&(Or&130023424)===Or&&500>Dn()-aS?ku(e,0):oS|=n),Di(e,t)}function k2(e,t){t===0&&(e.mode&1?(t=Nm,Nm<<=1,!(Nm&130023424)&&(Nm=4194304)):t=1);var n=si();e=rs(e,t),e!==null&&(up(e,t,n),Di(e,n))}function cq(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),k2(e,n)}function fq(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),k2(e,n)}var N2;N2=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ci.current)ki=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ki=!1,XU(e,t,n);ki=!!(e.flags&131072)}else ki=!1,pn&&t.flags&1048576&&aI(t,Jm,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;fg(e,t),e=t.pendingProps;var i=Xc(t,Br.current);rf(t,n),i=Vw(null,t,r,e,i,n);var o=Bw();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,xi(r)?(o=!0,Wm(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Aw(t),i.updater=ng,t.stateNode=i,i._reactInternals=t,Iw(t,r,e,n),t=Qw(null,t,r,!0,o,n)):(t.tag=0,pn&&o&&Ew(t),ai(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(fg(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=pq(r),e=Qo(r,e),i){case 0:t=Ww(null,t,r,e,n);break e;case 1:t=e2(null,t,r,e,n);break e;case 11:t=YI(null,t,r,e,n);break e;case 14:t=JI(null,t,r,Qo(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:Qo(r,i),Ww(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Qo(r,i),e2(e,t,r,i,n);case 3:e:{if(t2(t),e===null)throw Error(De(387));r=t.pendingProps,o=t.memoizedState,i=o.element,dI(e,t),tg(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=n2(e,t,r,n,i);break e}else if(r!==i){i=sf(Error(De(424)),t),t=n2(e,t,r,n,i);break e}else for(Gi=tl(t.stateNode.containerInfo.firstChild),zi=t,pn=!0,Wo=null,n=wI(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(tf(),r===i){t=os(e,t,n);break e}ai(e,t,r,n)}t=t.child}return t;case 5:return SI(t),e===null&&Tw(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,hw(r,i)?s=null:o!==null&&hw(r,o)&&(t.flags|=32),ZI(e,t),ai(e,t,s,n),t.child;case 6:return e===null&&Tw(t),null;case 13:return r2(e,t,n);case 4:return Lw(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=of(t,null,r,n):ai(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Qo(r,i),YI(e,t,r,i,n);case 7:return ai(e,t,t.pendingProps,n),t.child;case 8:return ai(e,t,t.pendingProps.children,n),t.child;case 12:return ai(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,Jt(Xm,r._currentValue),r._currentValue=s,o!==null)if(Go(o.value,s)){if(o.children===i.children&&!Ci.current){t=os(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=is(-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),Nw(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),Nw(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}ai(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,rf(t,n),i=ho(i),r=r(i),t.flags|=1,ai(e,t,r,n),t.child;case 14:return r=t.type,i=Qo(r,t.pendingProps),i=Qo(r.type,i),JI(e,t,r,i,n);case 15:return KI(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Qo(r,i),fg(e,t),t.tag=1,xi(r)?(e=!0,Wm(t)):e=!1,rf(t,n),gI(t,r,i),Iw(t,r,i,n),Qw(null,t,r,!0,e,n);case 19:return o2(e,t,n);case 22:return XI(e,t,n)}throw Error(De(156,t.tag))};function D2(e,t){return sO(e,t)}function dq(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 go(e,t,n,r){return new dq(e,t,n,r)}function hS(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pq(e){if(typeof e==\"function\")return hS(e)?1:0;if(e!=null){if(e=e.$$typeof,e===EE)return 11;if(e===TE)return 14}return 2}function dl(e,t){var n=e.alternate;return n===null?(n=go(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 Sg(e,t,n,r,i,o){var s=2;if(r=e,typeof e==\"function\")hS(e)&&(s=1);else if(typeof e==\"string\")s=5;else e:switch(e){case Vc:return Du(n.children,i,o,t);case yE:s=8,i|=8;break;case bE:return e=go(12,n,t,i|2),e.elementType=bE,e.lanes=o,e;case wE:return e=go(13,n,t,i),e.elementType=wE,e.lanes=o,e;case SE:return e=go(19,n,t,i),e.elementType=SE,e.lanes=o,e;case MA:return Tg(n,i,o,t);default:if(typeof e==\"object\"&&e!==null)switch(e.$$typeof){case RA:s=10;break e;case PA:s=9;break e;case EE:s=11;break e;case TE:s=14;break e;case Ws:s=16,r=null;break e}throw Error(De(130,e==null?e:typeof e,\"\"))}return t=go(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Du(e,t,n,r){return e=go(7,e,r,t),e.lanes=n,e}function Tg(e,t,n,r){return e=go(22,e,r,t),e.elementType=MA,e.lanes=n,e.stateNode={isHidden:!1},e}function vS(e,t,n){return e=go(6,e,null,t),e.lanes=n,e}function mS(e,t,n){return t=go(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function hq(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=qE(0),this.expirationTimes=qE(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=qE(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function gS(e,t,n,r,i,o,s,l,c){return e=new hq(e,t,n,l,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=go(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Aw(o),e}function vq(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 A2(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(xi(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(xi(n))return rI(e,n,t)}return t}function O2(e,t,n,r,i,o,s,l,c){return e=gS(n,r,!0,e,i,o,s,l,c),e.context=A2(null),n=e.current,r=si(),i=cl(n),o=is(r,i),o.callback=t??null,al(n,o,i),e.current.lanes=i,up(e,i,r),Di(e,r),e}function _g(e,t,n,r){var i=t.current,o=si(),s=cl(i);return n=A2(n),t.context===null?t.context=n:t.pendingContext=n,t=is(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=al(i,t,s),e!==null&&(Ko(e,i,s,o),eg(e,i,s)),s}function Cg(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 I2(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function yS(e,t){I2(e,t),(e=e.alternate)&&I2(e,t)}function mq(){return null}var L2=typeof reportError==\"function\"?reportError:function(e){console.error(e)};function bS(e){this._internalRoot=e}xg.prototype.render=bS.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(De(409));_g(e,t,null,null)},xg.prototype.unmount=bS.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;xu(function(){_g(null,e,null,null)}),t[Za]=null}};function xg(e){this._internalRoot=e}xg.prototype.unstable_scheduleHydration=function(e){if(e){var t=vO();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&&yO(e)}};function ES(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function kg(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==\" react-mount-point-unstable \"))}function F2(){}function gq(e,t,n,r,i){if(i){if(typeof r==\"function\"){var o=r;r=function(){var f=Cg(s);o.call(f)}}var s=O2(t,r,e,0,null,!1,!1,\"\",F2);return e._reactRootContainer=s,e[Za]=s.current,Tp(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=Cg(c);l.call(f)}}var c=gS(e,0,!1,null,null,!1,!1,\"\",F2);return e._reactRootContainer=c,e[Za]=c.current,Tp(e.nodeType===8?e.parentNode:e),xu(function(){_g(t,c,n,r)}),c}function Ng(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=Cg(s);l.call(c)}}_g(t,s,e,i)}else s=gq(n,t,e,i,r);return Cg(s)}pO=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=lp(t.pendingLanes);n!==0&&(HE(t,n|1),Di(t,Dn()),!(kt&6)&&(cf=Dn()+500,il()))}break;case 13:xu(function(){var r=rs(e,1);if(r!==null){var i=si();Ko(r,e,1,i)}}),yS(e,1)}},zE=function(e){if(e.tag===13){var t=rs(e,134217728);if(t!==null){var n=si();Ko(t,e,134217728,n)}yS(e,134217728)}},hO=function(e){if(e.tag===13){var t=cl(e),n=rs(e,t);if(n!==null){var r=si();Ko(n,e,t,r)}yS(e,t)}},vO=function(){return Ut},mO=function(e,t){var n=Ut;try{return Ut=e,t()}finally{Ut=n}},ME=function(e,t,n){switch(t){case\"input\":if(DE(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=zm(r);if(!i)throw Error(De(90));BA(r),DE(r,i)}}}break;case\"textarea\":zA(e,n);break;case\"select\":t=n.value,t!=null&&Bc(e,!!n.multiple,t,!1)}},eO=fS,tO=xu;var yq={usingClientEntryPoint:!1,Events:[xp,Jc,zm,XA,ZA,fS]},Bp={findFiberByHostInstance:yu,bundleType:0,version:\"18.2.0\",rendererPackageName:\"react-dom\"},bq={bundleType:Bp.bundleType,version:Bp.version,rendererPackageName:Bp.rendererPackageName,rendererConfig:Bp.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Xa.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=oO(e),e===null?null:e.stateNode},findFiberByHostInstance:Bp.findFiberByHostInstance||mq,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 Dg=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Dg.isDisabled&&Dg.supportsFiber)try{xm=Dg.inject(bq),Ta=Dg}catch{}}Ui.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=yq,Ui.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ES(t))throw Error(De(200));return vq(e,t,null,n)},Ui.createRoot=function(e,t){if(!ES(e))throw Error(De(299));var n=!1,r=\"\",i=L2;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=gS(e,1,!1,null,null,n,!1,r,i),e[Za]=t.current,Tp(e.nodeType===8?e.parentNode:e),new bS(t)},Ui.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=oO(t),e=e===null?null:e.stateNode,e},Ui.flushSync=function(e){return xu(e)},Ui.hydrate=function(e,t,n){if(!kg(t))throw Error(De(200));return Ng(null,e,t,!0,n)},Ui.hydrateRoot=function(e,t,n){if(!ES(e))throw Error(De(405));var r=n!=null&&n.hydratedSources||null,i=!1,o=\"\",s=L2;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=O2(t,null,e,1,n??null,i,!1,o,s),e[Za]=t.current,Tp(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 xg(t)},Ui.render=function(e,t,n){if(!kg(t))throw Error(De(200));return Ng(null,e,t,!1,n)},Ui.unmountComponentAtNode=function(e){if(!kg(e))throw Error(De(40));return e._reactRootContainer?(xu(function(){Ng(null,null,e,!1,function(){e._reactRootContainer=null,e[Za]=null})}),!0):!1},Ui.unstable_batchedUpdates=fS,Ui.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!kg(n))throw Error(De(200));if(e==null||e._reactInternals===void 0)throw Error(De(38));return Ng(e,t,n,!1,r)},Ui.version=\"18.2.0-next-9e3b772b8-20220608\";function R2(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>\"u\"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=\"function\"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(R2)}catch(e){console.error(e)}}R2(),NA.exports=Ui;var P2=NA.exports;const wS=Rc(P2);var SS={};const Eq=(...e)=>SS.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,T,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,T=[],Object.prototype.toString.apply(x)===\"[object Array]\"){for(m=x.length,f=0;f<m;f+=1)T[f]=s(f,x)||\"null\";return g=T.length===0?\"[]\":t?`[\n`+t+T.join(`,\n`+t)+`\n`+y+\"]\":\"[\"+T.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&&T.push(o(h)+(t?\": \":\":\")+g));else Object.keys(x).forEach(function(D){var _=s(D,x);_&&T.push(o(D)+(t?\": \":\":\")+_)});return g=T.length===0?\"{}\":t?`{\n`+t+T.join(`,\n`+t)+`\n`+y+\"}\":\"{\"+T.join(\",\")+\"}\",t=y,g}}typeof SS.stringify!=\"function\"&&(SS.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 wq(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\")},T=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 T();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,S){var N,F=C[S];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,S,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=wq(),Au.JSON.stringify=Eq;const Sq=\"16.6.0\",TS=Object.freeze({major:16,minor:6,patch:0,preReleaseTag:null});function pt(e,t){if(!!!e)throw new Error(t)}function Qi(e){return typeof(e==null?void 0:e.then)==\"function\"}function Yi(e){return typeof e==\"object\"&&e!==null}function An(e,t){if(!!!e)throw new Error(t??\"Unexpected invariant triggered.\")}const Tq=/\\r\\n|[\\n\\r]/g;function Ag(e,t){let n=0,r=1;for(const i of e.body.matchAll(Tq)){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 M2(e){return _S(e.source,Ag(e.source,e.start))}function _S(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,T=[];for(let x=0;x<g.length;x+=80)T.push(g.slice(x,x+80));return f+$2([[`${s} |`,T[0]],...T.slice(1,m+1).map(x=>[\"|\",x]),[\"|\",\"^\".padStart(y)],[\"|\",T[m+1]]])}return f+$2([[`${s-1} |`,h[i-1]],[`${s} |`,g],[\"|\",\"^\".padStart(c)],[`${s+1} |`,h[i+1]]])}function $2(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 _q(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 QB extends Error{constructor(t,...n){var r,i,o;const{nodes:s,source:l,positions:c,path:f,originalError:h,extensions:g}=_q(n);super(t),this.name=\"GraphQLError\",this.path=f??void 0,this.originalError=h??void 0,this.nodes=V2(Array.isArray(s)?s:s?[s]:void 0);const m=V2((r=this.nodes)===null||r===void 0?void 0:r.map(T=>T.loc).filter(T=>T!=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(T=>T.start)),this.locations=c&&l?c.map(T=>Ag(l,T)):m==null?void 0:m.map(T=>Ag(T.source,T.start));const y=Yi(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,QB):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`+M2(n.loc));else if(this.source&&this.locations)for(const n of this.locations)t+=`\n\n`+_S(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 V2(e){return e===void 0||e.length===0?void 0:e}function Cq(e){return e.toString()}function xq(e){return e.toJSON()}function er(e,t,n){return new he(`Syntax Error: ${n}`,{source:e,positions:[t]})}let B2=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}}},CS=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 j2={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\"]},kq=new Set(Object.keys(j2));function xS(e){const t=e==null?void 0:e.kind;return typeof t==\"string\"&&kq.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 kS(e){return e===9||e===32}function jp(e){return e>=48&&e<=57}function U2(e){return e>=97&&e<=122||e>=65&&e<=90}function NS(e){return U2(e)||e===95}function q2(e){return U2(e)||jp(e)||e===95}function Nq(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=Dq(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 Dq(e){let t=0;for(;t<e.length&&kS(e.charCodeAt(t));)++t;return t}function Aq(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 H2(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||kS(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&&kS(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 DS{constructor(t){const n=new CS(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=Oq(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===ge.COMMENT);return t}}function z2(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 Og(e,t){return G2(e.charCodeAt(t))&&W2(e.charCodeAt(t+1))}function G2(e){return e>=55296&&e<=56319}function W2(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 CS(t,n,r,o,s,i)}function Oq(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 Iq(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?$q(e,i):Fq(e,i)}if(jp(o)||o===45)return Lq(e,i,o);if(NS(o))return Vq(e,i);throw er(e.source,i,o===39?`Unexpected single quote character ('), did you mean to use a double quote (\")?`:df(o)||Og(n,i)?`Unexpected character: ${Ou(e,i)}.`:`Invalid character: ${Ou(e,i)}.`)}return qn(e,ge.EOF,r,r)}function Iq(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(Og(n,i))i+=2;else break}return qn(e,ge.COMMENT,t,i,n.slice(t+1,i))}function Lq(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),jp(o))throw er(e.source,i,`Invalid number, unexpected digit after 0: ${Ou(e,i)}.`)}else i=AS(e,i,o),o=r.charCodeAt(i);if(o===46&&(s=!0,o=r.charCodeAt(++i),i=AS(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=AS(e,i,o),o=r.charCodeAt(i)),o===46||NS(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 AS(e,t,n){if(!jp(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(;jp(r.charCodeAt(i));)++i;return i}function Fq(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?Rq(e,i):Pq(e,i):Mq(e,i);s+=c.value,i+=c.size,o=i;continue}if(l===10||l===13)break;if(df(l))++i;else if(Og(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 Rq(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|Up(o),r<0)break}throw er(e.source,t,`Invalid Unicode escape sequence: \"${n.slice(t,t+i)}\".`)}function Pq(e,t){const n=e.source.body,r=Q2(n,t+2);if(df(r))return{value:String.fromCodePoint(r),size:6};if(G2(r)&&n.charCodeAt(t+6)===92&&n.charCodeAt(t+7)===117){const i=Q2(n,t+8);if(W2(i))return{value:String.fromCodePoint(r,i),size:12}}throw er(e.source,t,`Invalid Unicode escape sequence: \"${n.slice(t,t+6)}\".`)}function Q2(e,t){return Up(e.charCodeAt(t))<<12|Up(e.charCodeAt(t+1))<<8|Up(e.charCodeAt(t+2))<<4|Up(e.charCodeAt(t+3))}function Up(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Mq(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 $q(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,Nq(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(Og(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 Vq(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const o=n.charCodeAt(i);if(q2(o))++i;else break}return qn(e,ge.NAME,t,i,n.slice(t,i))}const Bq=10,Y2=2;function be(e){return Ig(e,[])}function Ig(e,t){switch(typeof e){case\"string\":return JSON.stringify(e);case\"function\":return e.name?`[function ${e.name}]`:\"[function]\";case\"object\":return jq(e,t);default:return String(e)}}function jq(e,t){if(e===null)return\"null\";if(t.includes(e))return\"[Circular]\";const n=[...t,e];if(Uq(e)){const r=e.toJSON();if(r!==e)return typeof r==\"string\"?r:Ig(r,n)}else if(Array.isArray(e))return Hq(e,n);return qq(e,n)}function Uq(e){return typeof e.toJSON==\"function\"}function qq(e,t){const n=Object.entries(e);return n.length===0?\"{}\":t.length>Y2?\"[\"+zq(e)+\"]\":\"{ \"+n.map(([i,o])=>i+\": \"+Ig(o,t)).join(\", \")+\" }\"}function Hq(e,t){if(e.length===0)return\"[]\";if(t.length>Y2)return\"[Array]\";const n=Math.min(Bq,e.length),r=e.length-n,i=[];for(let o=0;o<n;++o)i.push(Ig(e[o],t));return r===1?i.push(\"... 1 more item\"):r>1&&i.push(`... ${r} more items`),\"[\"+i.join(\", \")+\"]\"}function zq(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 Xo=function(t,n){return t instanceof n};class qp{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 J2(e){return Xo(e,qp)}function Hr(e,t){return new Lg(e,t).parseDocument()}function K2(e,t){const n=new Lg(e,t);n.expectToken(ge.SOF);const r=n.parseValueLiteral(!1);return n.expectToken(ge.EOF),r}function Gq(e,t){const n=new Lg(e,t);n.expectToken(ge.SOF);const r=n.parseConstValueLiteral();return n.expectToken(ge.EOF),r}function Wq(e,t){const n=new Lg(e,t);n.expectToken(ge.SOF);const r=n.parseTypeReference();return n.expectToken(ge.EOF),r}class Lg{constructor(t,n={}){const r=J2(t)?t:new qp(t);this._lexer=new DS(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,`${Fg(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 B2(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 ${X2(t)}, found ${Fg(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 ${Fg(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 ${Fg(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 Fg(e){const t=e.value;return X2(e.kind)+(t!=null?` \"${t}\"`:\"\")}function X2(e){return z2(e)?`\"${e}\"`:e}const Qq=5;function ss(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,Qq),l=s.pop();return i+s.join(\", \")+\", or \"+l+\"?\"}function Z2(e){return e}function ls(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 us(e,t){const n=Object.create(null);for(const r of Object.keys(e))n[r]=t(e[r],r);return n}function Hp(e,t){let n=0,r=0;for(;n<e.length&&r<t.length;){let i=e.charCodeAt(n),o=t.charCodeAt(r);if(Rg(i)&&Rg(o)){let s=0;do++n,s=s*10+i-OS,i=e.charCodeAt(n);while(Rg(i)&&s>0);let l=0;do++r,l=l*10+o-OS,o=t.charCodeAt(r);while(Rg(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 OS=48,Yq=57;function Rg(e){return!isNaN(e)&&OS<=e&&e<=Yq}function hl(e,t){const n=Object.create(null),r=new Jq(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:Hp(o,s)})}let Jq=class{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=eL(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=eL(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 T=1;T<=l;T++){const x=i[h-1]===o[T-1]?0:1;let D=Math.min(g[T]+1,m[T-1]+1,g[T-1]+x);if(h>1&&T>1&&i[h-1]===o[T-2]&&i[h-2]===o[T-1]){const _=c[(h-2)%3][T-2];D=Math.min(D,_+1)}D<y&&(y=D),m[T]=D}if(y>n)return}const f=c[s%3][l];return f<=n?f:void 0}};function eL(e){const t=e.length,n=new Array(t);for(let r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}function yo(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 Kq(e){return`\"${e.replace(Xq,Zq)}\"`}const Xq=/[\\x00-\\x1f\\x22\\x5c\\x7f-\\x9f]/g;function Zq(e){return eH[e.charCodeAt(0)]}const eH=[\"\\\\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=j2){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 S=0;for(const[N,F]of c){const L=N-S;F===null?(f.splice(L,1),S++):f[L]=F}}else{f=Object.defineProperties({},Object.getOwnPropertyDescriptors(f));for(const[S,N]of c)f[S]=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 T,x;xS(f)||pt(!1,`Invalid AST Node: ${be(f)}.`);const S=_?(T=r.get(f.kind))===null||T===void 0?void 0:T.leave:(x=r.get(f.kind))===null||x===void 0?void 0:x.enter;if(C=S==null?void 0:S.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(xS(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 IS(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 tH(e,t,n){const{enter:r,leave:i}=hf(e,t);return n?i:r}function gt(e){return Hn(e,rH)}const nH=80,rH={Name:{leave:e=>e.value},Variable:{leave:e=>\"$\"+e.name},Document:{leave:e=>ze(e.definitions,`\n\n`)},OperationDefinition:{leave(e){const t=wt(\"(\",ze(e.variableDefinitions,\", \"),\")\"),n=ze([e.operation,ze([e.name,t]),ze(e.directives,\" \")],\" \");return(n===\"query\"?\"\":n+\" \")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+\": \"+t+wt(\" = \",n)+wt(\" \",ze(r,\" \"))},SelectionSet:{leave:({selections:e})=>Zo(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=wt(\"\",e,\": \")+t;let s=o+wt(\"(\",ze(n,\", \"),\")\");return s.length>nH&&(s=o+wt(`(\n`,Pg(ze(n,`\n`)),`\n)`)),ze([s,ze(r,\" \"),i],\" \")}},Argument:{leave:({name:e,value:t})=>e+\": \"+t},FragmentSpread:{leave:({name:e,directives:t})=>\"...\"+e+wt(\" \",ze(t,\" \"))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>ze([\"...\",wt(\"on \",e),ze(t,\" \"),n],\" \")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${wt(\"(\",ze(n,\", \"),\")\")} on ${t} ${wt(\"\",ze(r,\" \"),\" \")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?H2(e):Kq(e)},BooleanValue:{leave:({value:e})=>e?\"true\":\"false\"},NullValue:{leave:()=>\"null\"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>\"[\"+ze(e,\", \")+\"]\"},ObjectValue:{leave:({fields:e})=>\"{\"+ze(e,\", \")+\"}\"},ObjectField:{leave:({name:e,value:t})=>e+\": \"+t},Directive:{leave:({name:e,arguments:t})=>\"@\"+e+wt(\"(\",ze(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`)+ze([\"schema\",ze(t,\" \"),Zo(n)],\" \")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+\": \"+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>wt(\"\",e,`\n`)+ze([\"scalar\",t,ze(n,\" \")],\" \")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>wt(\"\",e,`\n`)+ze([\"type\",t,wt(\"implements \",ze(n,\" & \")),ze(r,\" \"),Zo(i)],\" \")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>wt(\"\",e,`\n`)+t+(tL(n)?wt(`(\n`,Pg(ze(n,`\n`)),`\n)`):wt(\"(\",ze(n,\", \"),\")\"))+\": \"+r+wt(\" \",ze(i,\" \"))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>wt(\"\",e,`\n`)+ze([t+\": \"+n,wt(\"= \",r),ze(i,\" \")],\" \")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>wt(\"\",e,`\n`)+ze([\"interface\",t,wt(\"implements \",ze(n,\" & \")),ze(r,\" \"),Zo(i)],\" \")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>wt(\"\",e,`\n`)+ze([\"union\",t,ze(n,\" \"),wt(\"= \",ze(r,\" | \"))],\" \")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>wt(\"\",e,`\n`)+ze([\"enum\",t,ze(n,\" \"),Zo(r)],\" \")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>wt(\"\",e,`\n`)+ze([t,ze(n,\" \")],\" \")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>wt(\"\",e,`\n`)+ze([\"input\",t,ze(n,\" \"),Zo(r)],\" \")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>wt(\"\",e,`\n`)+\"directive @\"+t+(tL(n)?wt(`(\n`,Pg(ze(n,`\n`)),`\n)`):wt(\"(\",ze(n,\", \"),\")\"))+(r?\" repeatable\":\"\")+\" on \"+ze(i,\" | \")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>ze([\"extend schema\",ze(e,\" \"),Zo(t)],\" \")},ScalarTypeExtension:{leave:({name:e,directives:t})=>ze([\"extend scalar\",e,ze(t,\" \")],\" \")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>ze([\"extend type\",e,wt(\"implements \",ze(t,\" & \")),ze(n,\" \"),Zo(r)],\" \")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>ze([\"extend interface\",e,wt(\"implements \",ze(t,\" & \")),ze(n,\" \"),Zo(r)],\" \")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>ze([\"extend union\",e,ze(t,\" \"),wt(\"= \",ze(n,\" | \"))],\" \")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>ze([\"extend enum\",e,ze(t,\" \"),Zo(n)],\" \")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>ze([\"extend input\",e,ze(t,\" \"),Zo(n)],\" \")}};function ze(e,t=\"\"){var n;return(n=e==null?void 0:e.filter(r=>r).join(t))!==null&&n!==void 0?n:\"\"}function Zo(e){return wt(`{\n`,Pg(ze(e,`\n`)),`\n}`)}function wt(e,t,n=\"\"){return t!=null&&t!==\"\"?e+t+n:\"\"}function Pg(e){return wt(\" \",e.replace(/\\n/g,`\n `))}function tL(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(`\n`)))!==null&&t!==void 0?t:!1}function Mg(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=>Mg(n,t));case q.OBJECT:return pl(e.fields,n=>n.name.value,n=>Mg(n.value,t));case q.VARIABLE:return t==null?void 0:t[e.name.value]}}function Ji(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(!q2(e.charCodeAt(t)))throw new he(`Names must only contain [_a-zA-Z0-9] but \"${e}\" does not.`);if(!NS(e.charCodeAt(0)))throw new he(`Names must start with [_a-zA-Z] but \"${e}\" does not.`);return e}function nL(e){if(e===\"true\"||e===\"false\"||e===\"null\")throw new he(`Enum values cannot be named: ${e}`);return Ji(e)}function vf(e){return li(e)||Xe(e)||ot(e)||On(e)||on(e)||_t(e)||Tt(e)||We(e)}function iH(e){if(!vf(e))throw new Error(`Expected ${be(e)} to be a GraphQL type.`);return e}function li(e){return Xo(e,bo)}function oH(e){if(!li(e))throw new Error(`Expected ${be(e)} to be a GraphQL Scalar type.`);return e}function Xe(e){return Xo(e,rr)}function rL(e){if(!Xe(e))throw new Error(`Expected ${be(e)} to be a GraphQL Object type.`);return e}function ot(e){return Xo(e,ui)}function iL(e){if(!ot(e))throw new Error(`Expected ${be(e)} to be a GraphQL Interface type.`);return e}function On(e){return Xo(e,bl)}function aH(e){if(!On(e))throw new Error(`Expected ${be(e)} to be a GraphQL Union type.`);return e}function on(e){return Xo(e,Wr)}function sH(e){if(!on(e))throw new Error(`Expected ${be(e)} to be a GraphQL Enum type.`);return e}function _t(e){return Xo(e,ci)}function lH(e){if(!_t(e))throw new Error(`Expected ${be(e)} to be a GraphQL Input Object type.`);return e}function Tt(e){return Xo(e,an)}function uH(e){if(!Tt(e))throw new Error(`Expected ${be(e)} to be a GraphQL List type.`);return e}function We(e){return Xo(e,rt)}function cH(e){if(!We(e))throw new Error(`Expected ${be(e)} to be a GraphQL Non-Null type.`);return e}function zr(e){return li(e)||on(e)||_t(e)||zp(e)&&zr(e.ofType)}function fH(e){if(!zr(e))throw new Error(`Expected ${be(e)} to be a GraphQL input type.`);return e}function vl(e){return li(e)||Xe(e)||ot(e)||On(e)||on(e)||zp(e)&&vl(e.ofType)}function dH(e){if(!vl(e))throw new Error(`Expected ${be(e)} to be a GraphQL output type.`);return e}function Gr(e){return li(e)||on(e)}function pH(e){if(!Gr(e))throw new Error(`Expected ${be(e)} to be a GraphQL leaf type.`);return e}function hn(e){return Xe(e)||ot(e)||On(e)}function hH(e){if(!hn(e))throw new Error(`Expected ${be(e)} to be a GraphQL composite type.`);return e}function nr(e){return ot(e)||On(e)}function oL(e){if(!nr(e))throw new Error(`Expected ${be(e)} to be a GraphQL abstract type.`);return e}let an=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){LS(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 zp(e){return Tt(e)||We(e)}function vH(e){if(!zp(e))throw new Error(`Expected ${be(e)} to be a GraphQL wrapping type.`);return e}function LS(e){return vf(e)&&!We(e)}function aL(e){if(!LS(e))throw new Error(`Expected ${be(e)} to be a GraphQL nullable type.`);return e}function ml(e){if(e)return We(e)?e.ofType:e}function gl(e){return li(e)||Xe(e)||ot(e)||On(e)||on(e)||_t(e)}function mH(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(;zp(t);)t=t.ofType;return t}}function FS(e){return typeof e==\"function\"?e():e}function RS(e){return typeof e==\"function\"?e():e}let bo=class{constructor(t){var n,r,i,o;const s=(n=t.parseValue)!==null&&n!==void 0?n:Z2;this.name=Ji(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(r=t.serialize)!==null&&r!==void 0?r:Z2,this.parseValue=s,this.parseLiteral=(i=t.parseLiteral)!==null&&i!==void 0?i:(l,c)=>s(Mg(l,c)),this.extensions=yo(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=Ji(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=yo(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>lL(t),this._interfaces=()=>sL(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:cL(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}};function sL(e){var t;const n=FS((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 lL(e){const t=RS(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.`),us(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:Ji(r),description:n.description,type:n.type,args:uL(o),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:yo(n.extensions),astNode:n.astNode}})}function uL(e){return Object.entries(e).map(([t,n])=>({name:Ji(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:yo(n.extensions),astNode:n.astNode}))}function mf(e){return Yi(e)&&!Array.isArray(e)}function cL(e){return us(e,t=>({description:t.description,type:t.type,args:fL(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function fL(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 We(e.type)&&e.defaultValue===void 0}let ui=class{constructor(t){var n;this.name=Ji(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=yo(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=lL.bind(void 0,t),this._interfaces=sL.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:cL(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=Ji(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=yo(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=gH.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 gH(e){const t=FS(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 Wr=class{constructor(t){var n;this.name=Ji(t.name),this.description=t.description,this.extensions=yo(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._values=yH(this.name,t.values),this._valueLookup=new Map(this._values.map(r=>[r.value,r])),this._nameLookup=ls(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}.`+$g(this,r))}const n=this.getValue(t);if(n==null)throw new he(`Value \"${t}\" does not exist in \"${this.name}\" enum.`+$g(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}.`+$g(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.`+$g(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 $g(e,t){const n=e.getValues().map(i=>i.name),r=hl(t,n);return ss(\"the enum value\",r)}function yH(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:nL(n),description:r.description,value:r.value!==void 0?r.value:n,deprecationReason:r.deprecationReason,extensions:yo(r.extensions),astNode:r.astNode}))}let ci=class{constructor(t){var n;this.name=Ji(t.name),this.description=t.description,this.extensions=yo(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=bH.bind(void 0,t)}get[Symbol.toStringTag](){return\"GraphQLInputObjectType\"}getFields(){return typeof this._fields==\"function\"&&(this._fields=this._fields()),this._fields}toConfig(){const t=us(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 bH(e){const t=RS(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.`),us(t,(n,r)=>(!(\"resolve\"in n)||pt(!1,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`),{name:Ji(r),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:yo(n.extensions),astNode:n.astNode}))}function Vg(e){return We(e.type)&&e.defaultValue===void 0}function Bg(e,t){return e===t?!0:We(e)&&We(t)||Tt(e)&&Tt(t)?Bg(e.ofType,t.ofType):!1}function Iu(e,t,n){return t===n?!0:We(n)?We(t)?Iu(e,t.ofType,n.ofType):!1:We(t)?Iu(e,t.ofType,n):Tt(n)?Tt(t)?Iu(e,t.ofType,n.ofType):!1:Tt(t)?!1:nr(n)&&(ot(t)||Xe(t))&&e.isSubType(n,t)}function Gp(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 jg=2147483647,Ug=-2147483648,Wp=new bo({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=Xp(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>jg||n<Ug)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>jg||e<Ug)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>jg||t<Ug)throw new he(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),Qp=new bo({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=Xp(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)}}),Kt=new bo({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=Xp(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}}),sn=new bo({name:\"Boolean\",description:\"The `Boolean` scalar type represents `true` or `false`.\",serialize(e){const t=Xp(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}}),Yp=new bo({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=Xp(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}}),Jp=Object.freeze([Kt,Wp,Qp,sn,Yp]);function Kp(e){return Jp.some(({name:t})=>e.name===t)}function Xp(e){if(Yi(e)){if(typeof e.valueOf==\"function\"){const t=e.valueOf();if(!Yi(t))return t}if(typeof e.toJSON==\"function\")return e.toJSON()}return e}function qg(e){return Xo(e,Ki)}function EH(e){if(!qg(e))throw new Error(`Expected ${be(e)} to be a GraphQL directive.`);return e}class Ki{constructor(t){var n,r;this.name=Ji(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=(n=t.isRepeatable)!==null&&n!==void 0?n:!1,this.extensions=yo(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:{};Yi(i)&&!Array.isArray(i)||pt(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=uL(i)}get[Symbol.toStringTag](){return\"GraphQLDirective\"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:fL(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return\"@\"+this.name}toJSON(){return this.toString()}}const Hg=new Ki({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(sn),description:\"Included when true.\"}}}),zg=new Ki({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(sn),description:\"Skipped when true.\"}}}),PS=\"No longer supported\",Gg=new Ki({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:Kt,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:PS}}}),MS=new Ki({name:\"specifiedBy\",description:\"Exposes a URL that specifies the behavior of this scalar.\",locations:[Pe.SCALAR],args:{url:{type:new rt(Kt),description:\"The URL that specifies the behavior of this scalar.\"}}}),El=Object.freeze([Hg,zg,Gg,MS]);function Wg(e){return El.some(({name:t})=>t===e.name)}function $S(e){return typeof e==\"object\"&&typeof(e==null?void 0:e[Symbol.iterator])==\"function\"}function cs(e,t){if(We(t)){const n=cs(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(Tt(t)){const n=t.ofType;if($S(e)){const r=[];for(const i of e){const o=cs(i,n);o!=null&&r.push(o)}return{kind:q.LIST,values:r}}return cs(e,n)}if(_t(t)){if(!Yi(e))return null;const n=[];for(const r of Object.values(t.getFields())){const i=cs(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(Gr(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 dL.test(r)?{kind:q.INT,value:r}:{kind:q.FLOAT,value:r}}if(typeof n==\"string\")return on(t)?{kind:q.ENUM,value:n}:t===Yp&&dL.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 dL=/^-?(?:0|[1-9][0-9]*)$/,Qg=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:Kt,resolve:e=>e.description},types:{description:\"A list of all types supported by this server.\",type:new rt(new an(new rt(Eo))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:\"The type that query operations will be rooted at.\",type:new rt(Eo),resolve:e=>e.getQueryType()},mutationType:{description:\"If this server supports mutation, the type that mutation operations will be rooted at.\",type:Eo,resolve:e=>e.getMutationType()},subscriptionType:{description:\"If this server support subscription, the type that subscription operations will be rooted at.\",type:Eo,resolve:e=>e.getSubscriptionType()},directives:{description:\"A list of all directives supported by this server.\",type:new rt(new an(new rt(VS))),resolve:e=>e.getDirectives()}})}),VS=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(Kt),resolve:e=>e.name},description:{type:Kt,resolve:e=>e.description},isRepeatable:{type:new rt(sn),resolve:e=>e.isRepeatable},locations:{type:new rt(new an(new rt(BS))),resolve:e=>e.locations},args:{type:new rt(new an(new rt(Zp))),args:{includeDeprecated:{type:sn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}}})}),BS=new Wr({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.\"}}}),Eo=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(qS),resolve(e){if(li(e))return Ht.SCALAR;if(Xe(e))return Ht.OBJECT;if(ot(e))return Ht.INTERFACE;if(On(e))return Ht.UNION;if(on(e))return Ht.ENUM;if(_t(e))return Ht.INPUT_OBJECT;if(Tt(e))return Ht.LIST;if(We(e))return Ht.NON_NULL;An(!1,`Unexpected type: \"${be(e)}\".`)}},name:{type:Kt,resolve:e=>\"name\"in e?e.name:void 0},description:{type:Kt,resolve:e=>\"description\"in e?e.description:void 0},specifiedByURL:{type:Kt,resolve:e=>\"specifiedByURL\"in e?e.specifiedByURL:void 0},fields:{type:new an(new rt(jS)),args:{includeDeprecated:{type:sn,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 an(new rt(Eo)),resolve(e){if(Xe(e)||ot(e))return e.getInterfaces()}},possibleTypes:{type:new an(new rt(Eo)),resolve(e,t,n,{schema:r}){if(nr(e))return r.getPossibleTypes(e)}},enumValues:{type:new an(new rt(US)),args:{includeDeprecated:{type:sn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(on(e)){const n=e.getValues();return t?n:n.filter(r=>r.deprecationReason==null)}}},inputFields:{type:new an(new rt(Zp)),args:{includeDeprecated:{type:sn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(_t(e)){const n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},ofType:{type:Eo,resolve:e=>\"ofType\"in e?e.ofType:void 0}})}),jS=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(Kt),resolve:e=>e.name},description:{type:Kt,resolve:e=>e.description},args:{type:new rt(new an(new rt(Zp))),args:{includeDeprecated:{type:sn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}},type:{type:new rt(Eo),resolve:e=>e.type},isDeprecated:{type:new rt(sn),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Kt,resolve:e=>e.deprecationReason}})}),Zp=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(Kt),resolve:e=>e.name},description:{type:Kt,resolve:e=>e.description},type:{type:new rt(Eo),resolve:e=>e.type},defaultValue:{type:Kt,description:\"A GraphQL-formatted string representing the default value for this input value.\",resolve(e){const{type:t,defaultValue:n}=e,r=cs(n,t);return r?gt(r):null}},isDeprecated:{type:new rt(sn),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Kt,resolve:e=>e.deprecationReason}})}),US=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(Kt),resolve:e=>e.name},description:{type:Kt,resolve:e=>e.description},isDeprecated:{type:new rt(sn),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Kt,resolve:e=>e.deprecationReason}})});var Ht;(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\"})(Ht||(Ht={}));const qS=new Wr({name:\"__TypeKind\",description:\"An enum describing what kind of type a given `__Type` is.\",values:{SCALAR:{value:Ht.SCALAR,description:\"Indicates this type is a scalar.\"},OBJECT:{value:Ht.OBJECT,description:\"Indicates this type is an object. `fields` and `interfaces` are valid fields.\"},INTERFACE:{value:Ht.INTERFACE,description:\"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields.\"},UNION:{value:Ht.UNION,description:\"Indicates this type is a union. `possibleTypes` is a valid field.\"},ENUM:{value:Ht.ENUM,description:\"Indicates this type is an enum. `enumValues` is a valid field.\"},INPUT_OBJECT:{value:Ht.INPUT_OBJECT,description:\"Indicates this type is an input object. `inputFields` is a valid field.\"},LIST:{value:Ht.LIST,description:\"Indicates this type is a list. `ofType` is a valid field.\"},NON_NULL:{value:Ht.NON_NULL,description:\"Indicates this type is a non-null. `ofType` is a valid field.\"}}}),wl={name:\"__schema\",type:new rt(Qg),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:Eo,description:\"Request the type information of a single type.\",args:[{name:\"name\",description:void 0,type:new rt(Kt),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},fs={name:\"__typename\",type:new rt(Kt),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},eh=Object.freeze([Qg,VS,BS,Eo,jS,Zp,US,qS]);function Lu(e){return eh.some(({name:t})=>e.name===t)}function Yg(e){return Xo(e,Fu)}function HS(e){if(!Yg(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,Yi(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=yo(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),ea(o,i);this._queryType!=null&&ea(this._queryType,i),this._mutationType!=null&&ea(this._mutationType,i),this._subscriptionType!=null&&ea(this._subscriptionType,i);for(const o of this._directives)if(qg(o))for(const s of o.args)ea(s.type,i);ea(Qg,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 ea(e,t){const n=Nt(e);if(!t.has(n)){if(t.add(n),On(n))for(const r of n.getTypes())ea(r,t);else if(Xe(n)||ot(n)){for(const r of n.getInterfaces())ea(r,t);for(const r of Object.values(n.getFields())){ea(r.type,t);for(const i of r.args)ea(i.type,t)}}else if(_t(n))for(const r of Object.values(n.getFields()))ea(r.type,t)}return t}function Jg(e){if(HS(e),e.__validationErrors)return e.__validationErrors;const t=new wH(e);SH(t),TH(t),_H(t);const n=t.getErrors();return e.__validationErrors=n,n}function Kg(e){const t=Jg(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(`\n\n`))}class wH{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 SH(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=zS(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=zS(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=zS(t,tr.SUBSCRIPTION))!==null&&l!==void 0?l:s.astNode)}}function zS(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 TH(e){for(const n of e.schema.getDirectives()){if(!qg(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),zr(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.`,[GS(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 _H(e){const t=AH(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)?(pL(e,r),hL(e,r)):On(r)?kH(e,r):on(r)?NH(e,r):_t(r)&&(DH(e,r),t(r))}}function pL(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),!zr(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.`,[GS(l.astNode),(o=l.astNode)===null||o===void 0?void 0:o.type])}}}}function hL(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)}.`,th(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,th(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,th(t,r));continue}n[r.name]=!0,xH(e,t,r),CH(e,t,r)}}function CH(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(T=>T.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(!Bg(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(T=>T.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 xH(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}.`,[...th(n,i),...th(t,n)])}function kH(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.`,vL(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)}.`,vL(t,String(i)))}}function NH(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 DH(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),!zr(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(Vg(o)&&o.deprecationReason!=null){var i;e.reportError(`Required input field ${t.name}.${o.name} cannot be deprecated.`,[GS(o.astNode),(i=o.astNode)===null||i===void 0?void 0:i.type])}}}function AH(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(We(l.type)&&_t(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 th(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 vL(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 GS(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(n=>n.name.value===Gg.name)}function mr(e,t){switch(t.kind){case q.LIST_TYPE:{const n=mr(e,t.type);return n&&new an(n)}case q.NON_NULL_TYPE:{const n=mr(e,t.type);return n&&new rt(n)}case q.NAMED_TYPE:return e.getType(t.name.value)}}class ds{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??OH,n&&(zr(n)&&this._inputTypeStack.push(n),hn(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(hn(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?mr(n,i):Nt(this.getType());this._typeStack.push(vl(o)?o:void 0);break}case q.VARIABLE_DEFINITION:{const i=mr(n,t.type);this._inputTypeStack.push(zr(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(zr(o)?o:void 0);break}case q.LIST:{const i=ml(this.getInputType()),o=Tt(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push(zr(o)?o:void 0);break}case q.OBJECT_FIELD:{const i=Nt(this.getInputType());let o,s;_t(i)&&(s=i.getFields()[t.name.value],s&&(o=s.type)),this._defaultValueStack.push(s?s.defaultValue:void 0),this._inputTypeStack.push(zr(o)?o:void 0);break}case q.ENUM:{const i=Nt(this.getInputType());let o;on(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 OH(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===fs.name&&hn(t))return fs;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),xS(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 IH(e){return WS(e)||Xg(e)||YS(e)}function WS(e){return e.kind===q.OPERATION_DEFINITION||e.kind===q.FRAGMENT_DEFINITION}function LH(e){return e.kind===q.FIELD||e.kind===q.FRAGMENT_SPREAD||e.kind===q.INLINE_FRAGMENT}function mL(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 QS(e){return mL(e)&&(e.kind===q.LIST?e.values.some(QS):e.kind===q.OBJECT?e.fields.some(t=>QS(t.value)):e.kind!==q.VARIABLE)}function FH(e){return e.kind===q.NAMED_TYPE||e.kind===q.LIST_TYPE||e.kind===q.NON_NULL_TYPE}function Xg(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 YS(e){return e.kind===q.SCHEMA_EXTENSION||Zg(e)}function Zg(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 JS(e){return{Document(t){for(const n of t.definitions)if(!WS(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 gL(e){return{Field(t){const n=e.getParentType();if(n&&!e.getFieldDef()){const i=e.getSchema(),o=t.name.value;let s=ss(\"to use an inline fragment on\",RH(i,n,o));s===\"\"&&(s=ss(PH(n,o))),e.reportError(new he(`Cannot query field \"${o}\" on type \"${n.name}\".`+s,{nodes:t}))}}}}function RH(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:Hp(s.name,l.name)}).map(s=>s.name)}function PH(e,t){if(Xe(e)||ot(e)){const n=Object.keys(e.getFields());return hl(t,n)}return[]}function yL(e){return{InlineFragment(t){const n=t.typeCondition;if(n){const r=mr(e.getSchema(),n);if(r&&!hn(r)){const i=gt(n);e.reportError(new he(`Fragment cannot condition on non composite type \"${i}\".`,{nodes:n}))}}},FragmentDefinition(t){const n=mr(e.getSchema(),t.typeCondition);if(n&&!hn(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 bL(e){return{...EL(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}\".`+ss(l),{nodes:t}))}}}}function EL(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}\".`+ss(g),{nodes:f}))}}return!1}}}function ey(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=MH(f);m&&!g.includes(m)&&e.reportError(new he(`Directive \"@${h}\" may not be used on ${m}.`,{nodes:o}))}}}function MH(e){const t=e[e.length-1];switch(\"kind\"in t||An(!1),t.kind){case q.OPERATION_DEFINITION:return $H(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 $H(e){switch(e){case tr.QUERY:return Pe.QUERY;case tr.MUTATION:return Pe.MUTATION;case tr.SUBSCRIPTION:return Pe.SUBSCRIPTION}}function KS(e){return{FragmentSpread(t){const n=t.name.value;e.getFragment(n)||e.reportError(new he(`Unknown fragment \"${n}\".`,{nodes:t.name}))}}}function ty(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&&VH(m);if(y&&wL.includes(h))return;const T=hl(h,y?wL.concat(i):i);e.reportError(new he(`Unknown type \"${h}\".`+ss(T),{nodes:o}))}}}}const wL=[...Jp,...eh].map(e=>e.name);function VH(e){return\"kind\"in e&&(Xg(e)||YS(e))}function SL(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 XS(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 TL(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 _L(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 ZS(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 CL(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 ny(e){switch(e.kind){case q.OBJECT:return{...e,fields:BH(e.fields)};case q.LIST:return{...e,values:e.values.map(ny)};case q.INT:case q.FLOAT:case q.STRING:case q.BOOLEAN:case q.NULL:case q.ENUM:case q.VARIABLE:return e}}function BH(e){return e.map(t=>({...t,value:ny(t.value)})).sort((t,n)=>Hp(t.name.value,n.name.value))}function xL(e){return Array.isArray(e)?e.map(([t,n])=>`subfields \"${t}\" conflict because `+xL(n)).join(\" and \"):e}function kL(e){const t=new zH,n=new Map;return{SelectionSet(r){const i=jH(e,n,t,e.getParentType(),r);for(const[[o,s],l,c]of i){const f=xL(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 jH(e,t,n,r,i){const o=[],[s,l]=oy(e,t,r,i);if(qH(e,o,t,n,s),l.length!==0)for(let c=0;c<l.length;c++){ry(e,o,t,n,!1,s,l[c]);for(let f=c+1;f<l.length;f++)iy(e,o,t,n,!1,l[c],l[f])}return o}function ry(e,t,n,r,i,o,s){const l=e.getFragment(s);if(!l)return;const[c,f]=nT(e,n,l);if(o!==c){eT(e,t,n,r,i,o,c);for(const h of f)r.has(h,s,i)||(r.add(h,s,i),ry(e,t,n,r,i,o,h))}}function iy(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]=nT(e,n,l),[g,m]=nT(e,n,c);eT(e,t,n,r,i,f,g);for(const y of m)iy(e,t,n,r,i,o,y);for(const y of h)iy(e,t,n,r,i,y,s)}function UH(e,t,n,r,i,o,s,l){const c=[],[f,h]=oy(e,t,i,o),[g,m]=oy(e,t,s,l);eT(e,c,t,n,r,f,g);for(const y of m)ry(e,c,t,n,r,f,y);for(const y of h)ry(e,c,t,n,r,g,y);for(const y of h)for(const T of m)iy(e,c,t,n,r,y,T);return c}function qH(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=NL(e,n,r,!1,o,s[l],s[c]);f&&t.push(f)}}function eT(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=NL(e,n,r,i,l,h,g);m&&t.push(m)}}}function NL(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(DL(c)!==DL(g))return[[i,\"they have differing arguments\"],[c],[g]]}const T=f==null?void 0:f.type,x=m==null?void 0:m.type;if(T&&x&&tT(T,x))return[[i,`they return conflicting types \"${be(T)}\" and \"${be(x)}\"`],[c],[g]];const D=c.selectionSet,_=g.selectionSet;if(D&&_){const b=UH(e,t,n,y,Nt(T),D,Nt(x),_);return HH(b,i,c,g)}}function DL(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(ny(r))}function tT(e,t){return Tt(e)?Tt(t)?tT(e.ofType,t.ofType):!0:Tt(t)?!0:We(e)?We(t)?tT(e.ofType,t.ofType):!0:We(t)?!0:Gr(e)||Gr(t)?e!==t:!1}function oy(e,t,n,r){const i=t.get(r);if(i)return i;const o=Object.create(null),s=Object.create(null);AL(e,n,r,o,s);const l=[o,Object.keys(s)];return t.set(r,l),l}function nT(e,t,n){const r=t.get(n.selectionSet);if(r)return r;const i=mr(e.getSchema(),n.typeCondition);return oy(e,t,i,n.selectionSet)}function AL(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?mr(e.getSchema(),s):t;AL(e,l,o.selectionSet,r,i);break}}}function HH(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 zH{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 OL(e){return{InlineFragment(t){const n=e.getType(),r=e.getParentType();if(hn(n)&&hn(r)&&!Gp(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=GH(e,n),i=e.getParentType();if(r&&i&&!Gp(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 GH(e,t){const n=e.getFragment(t);if(n){const r=mr(e.getSchema(),n.typeCondition);if(hn(r))return r}}function rT(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=WH[s.kind]:l&&(c=QH(l)),c){if(c!==i.kind){const f=YH(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.`+ss(h),{nodes:i.name}))}}}const WH={[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 QH(e){if(li(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(on(e))return q.ENUM_TYPE_EXTENSION;if(_t(e))return q.INPUT_OBJECT_TYPE_EXTENSION;An(!1,\"Unexpected type: \"+be(e))}function YH(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 IL(e){return{...LL(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 LL(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]=ls(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]=ls(c.filter(JH),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,T]of Object.entries(f))if(!m.has(y)){const x=vf(T.type)?be(T.type):gt(T.type);e.reportError(new he(`Directive \"@${c}\" argument \"${y}\" of type \"${x}\" is required, but it was not provided.`,{nodes:l}))}}}}}}function JH(e){return e.type.kind===q.NON_NULL_TYPE&&e.defaultValue==null}function FL(e){return{Field(t){const n=e.getType(),r=t.selectionSet;if(n){if(Gr(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 RL(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 fi(e){const t=[];let n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}function iT(e,t,n=KH){return nh(e,t,n,void 0)}function KH(e,t,n){let r=\"Invalid value \"+be(t);throw e.length>0&&(r+=` at \"value${RL(e)}\"`),n.message=r+\": \"+n.message,n}function nh(e,t,n,r){if(We(t)){if(e!=null)return nh(e,t.ofType,n,r);n(fi(r),e,new he(`Expected non-nullable type \"${be(t)}\" not to be null.`));return}if(e==null)return null;if(Tt(t)){const i=t.ofType;return $S(e)?Array.from(e,(o,s)=>{const l=yf(r,s,void 0);return nh(o,i,n,l)}):[nh(e,i,n,r)]}if(_t(t)){if(!Yi(e)){n(fi(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(We(s.type)){const c=be(s.type);n(fi(r),e,new he(`Field \"${s.name}\" of required type \"${c}\" was not provided.`))}continue}i[s.name]=nh(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(fi(r),e,new he(`Field \"${s}\" is not defined by type \"${t.name}\".`+ss(l)))}return i}if(Gr(t)){let i;try{i=t.parseValue(e)}catch(o){o instanceof he?n(fi(r),e,o):n(fi(r),e,new he(`Expected type \"${t.name}\". `+o.message,{originalError:o}));return}return i===void 0&&n(fi(r),e,new he(`Expected type \"${t.name}\".`)),i}An(!1,\"Unexpected input type: \"+be(t))}function wo(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&&We(t)?void 0:i}if(We(t))return e.kind===q.NULL?void 0:wo(e,t.ofType,n);if(e.kind===q.NULL)return null;if(Tt(t)){const r=t.ofType;if(e.kind===q.LIST){const o=[];for(const s of e.values)if(PL(s,n)){if(We(r))return;o.push(null)}else{const l=wo(s,r,n);if(l===void 0)return;o.push(l)}return o}const i=wo(e,r,n);return i===void 0?void 0:[i]}if(_t(t)){if(e.kind!==q.OBJECT)return;const r=Object.create(null),i=ls(e.fields,o=>o.name.value);for(const o of Object.values(t.getFields())){const s=i[o.name];if(!s||PL(s.value,n)){if(o.defaultValue!==void 0)r[o.name]=o.defaultValue;else if(We(o.type))return;continue}const l=wo(s.value,o.type,n);if(l===void 0)return;r[o.name]=l}return r}if(Gr(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 PL(e,t){return e.kind===q.VARIABLE&&(t==null||t[e.name.value]===void 0)}function ML(e,t,n,r){const i=[],o=r==null?void 0:r.maxErrors;try{const s=XH(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 XH(e,t,n,r){const i={};for(const o of t){const s=o.variable.name.value,l=mr(e,o.type);if(!zr(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(!$L(n,s)){if(o.defaultValue)i[s]=wo(o.defaultValue,l);else if(We(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&&We(l)){const f=be(l);r(new he(`Variable \"$${s}\" of non-null type \"${f}\" must not be null.`,{nodes:o}));continue}i[s]=iT(c,l,(f,h,g)=>{let m=`Variable \"$${s}\" got invalid value `+be(h);f.length>0&&(m+=` at \"${s}${RL(f)}\"`),r(new he(m+\"; \"+g.message,{nodes:o,originalError:g.originalError}))})}return i}function ay(e,t,n){var r;const i={},o=(r=t.arguments)!==null&&r!==void 0?r:[],s=ls(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(We(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 T=g.name.value;if(n==null||!$L(n,T)){if(l.defaultValue!==void 0)i[c]=l.defaultValue;else if(We(f))throw new he(`Argument \"${c}\" of required type \"${be(f)}\" was provided the variable \"$${T}\" which was not provided a runtime value.`,{nodes:g});continue}m=n[T]==null}if(m&&We(f))throw new he(`Argument \"${c}\" of non-null type \"${be(f)}\" must not be null.`,{nodes:g});const y=wo(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 ps(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 ay(e,i,n)}function $L(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function oT(e,t,n,r,i){const o=new Map;return sy(e,t,n,r,i,o,new Set),o}function ZH(e,t,n,r,i){const o=new Map,s=new Set;for(const l of i)l.selectionSet&&sy(e,t,n,r,l.selectionSet,o,s);return o}function sy(e,t,n,r,i,o,s){for(const l of i.selections)switch(l.kind){case q.FIELD:{if(!aT(n,l))continue;const c=ez(l),f=o.get(c);f!==void 0?f.push(l):o.set(c,[l]);break}case q.INLINE_FRAGMENT:{if(!aT(n,l)||!VL(e,l,r))continue;sy(e,t,n,r,l.selectionSet,o,s);break}case q.FRAGMENT_SPREAD:{const c=l.name.value;if(s.has(c)||!aT(n,l))continue;s.add(c);const f=t[c];if(!f||!VL(e,f,r))continue;sy(e,t,n,r,f.selectionSet,o,s);break}}}function aT(e,t){const n=ps(zg,t,e);if((n==null?void 0:n.if)===!0)return!1;const r=ps(Hg,t,e);return(r==null?void 0:r.if)!==!1}function VL(e,t,n){const r=t.typeCondition;if(!r)return!0;const i=mr(e,r);return i===n?!0:nr(i)?e.isSubType(i,n):!1}function ez(e){return e.alias?e.alias.value:e.name.value}function BL(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=oT(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 sT(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 jL(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=sT(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 ly(e){return{Field:t,Directive:t};function t(n){var r;const i=(r=n.arguments)!==null&&r!==void 0?r:[],o=sT(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 lT(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 uy(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)||Zg(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 uT(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];on(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 cT(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;tz(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 tz(e,t){return Xe(e)||ot(e)||_t(e)?e.getFields()[t]!=null:!1}function UL(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 cy(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 qL(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 fT(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 dT(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 HL(e){return{OperationDefinition(t){var n;const r=(n=t.variableDefinitions)!==null&&n!==void 0?n:[],i=sT(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 zL(e){return{ListValue(t){const n=ml(e.getParentInputType());if(!Tt(n))return Mu(e,t),!1},ObjectValue(t){const n=Nt(e.getInputType());if(!_t(n))return Mu(e,t),!1;const r=ls(t.fields,i=>i.name.value);for(const i of Object.values(n.getFields()))if(!r[i.name]&&Vg(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()&&_t(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}\".`+ss(i),{nodes:t}))}},NullValue(t){const n=e.getInputType();We(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(!Gr(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 GL(e){return{VariableDefinition(t){const n=mr(e.getSchema(),t.type);if(n!==void 0&&!zr(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 WL(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=mr(f,c.type);if(h&&!nz(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 nz(e,t,n,r,i){if(We(r)&&!We(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 pT=Object.freeze([JS,qL,SL,BL,ty,yL,GL,FL,gL,UL,KS,ZS,OL,TL,HL,_L,CL,ey,uy,bL,ly,zL,IL,WL,kL,cy]),rz=Object.freeze([XS,fT,dT,uT,cT,jL,lT,ty,ey,uy,rT,EL,ly,cy,LL]);class QL{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 iz extends QL{constructor(t,n,r){super(t,r),this._schema=n}get[Symbol.toStringTag](){return\"SDLValidationContext\"}getSchema(){return this._schema}}class YL extends QL{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 ds(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 rh(e,t,n=pT,r,i=new ds(e)){var o;const s=(o=r==null?void 0:r.maxErrors)!==null&&o!==void 0?o:100;t||pt(!1,\"Must provide document.\"),Kg(e);const l=Object.freeze({}),c=[],f=new YL(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=IS(n.map(g=>g(f)));try{Hn(t,Pu(i,h))}catch(g){if(g!==l)throw g}return c}function JL(e,t,n=rz){const r=[],i=new iz(e,t,s=>{r.push(s)}),o=n.map(s=>s(i));return Hn(e,IS(o)),r}function oz(e){const t=JL(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(`\n\n`))}function az(e,t){const n=JL(e,t);if(n.length!==0)throw new Error(n.map(r=>r.message).join(`\n\n`))}function sz(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 lz(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 uz(e,t,n){let r=n;for(const i of e)r=Qi(r)?r.then(o=>t(o,i)):t(r,i);return r}function cz(e){return e instanceof Error?e:new fz(e)}class fz 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=cz(e);return dz(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 dz(e){return Array.isArray(e.path)}const pz=sz((e,t,n)=>ZH(e.schema,e.fragments,e.variableValues,t,n));function fy(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;XL(t,n,r);const o=ZL(e);if(!(\"schema\"in o))return{errors:o};try{const{operation:s}=o,l=hz(o,s,i);return Qi(l)?l.then(c=>dy(c,o.errors),c=>(o.errors.push(c),dy(null,o.errors))):dy(l,o.errors)}catch(s){return o.errors.push(s),dy(null,o.errors)}}function KL(e){const t=fy(e);if(Qi(t))throw new Error(\"GraphQL execution failed to complete synchronously.\");return t}function dy(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function XL(e,t,n){t||pt(!1,\"Must provide document.\"),Kg(e),n==null||Yi(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 ZL(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 T=(n=m.variableDefinitions)!==null&&n!==void 0?n:[],x=ML(r,T,l??{},{maxErrors:50});return x.errors?x.errors:{schema:r,fragments:y,rootValue:o,contextValue:s,operation:m,variableValues:x.coerced,fieldResolver:f??vy,typeResolver:h??iF,subscribeFieldResolver:g??vy,errors:[]}}function hz(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=oT(e.schema,e.fragments,e.variableValues,r,t.selectionSet),o=void 0;switch(t.operation){case tr.QUERY:return py(e,r,n,o,i);case tr.MUTATION:return vz(e,r,n,o,i);case tr.SUBSCRIPTION:return py(e,r,n,o,i)}}function vz(e,t,n,r,i){return uz(i.entries(),(o,[s,l])=>{const c=yf(r,s,t.name),f=eF(e,t,n,l,c);return f===void 0?o:Qi(f)?f.then(h=>(o[s]=h,o)):(o[s]=f,o)},Object.create(null))}function py(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=eF(e,t,n,c,f);h!==void 0&&(o[l]=h,Qi(h)&&(s=!0))}return s?lz(o):o}function eF(e,t,n,r,i){var o;const s=oF(e.schema,t,r[0]);if(!s)return;const l=s.type,c=(o=s.resolve)!==null&&o!==void 0?o:e.fieldResolver,f=tF(e,s,r,t,i);try{const h=ay(s,r[0],e.variableValues),g=e.contextValue,m=c(n,h,g,f);let y;return Qi(m)?y=m.then(T=>ih(e,l,r,f,i,T)):y=ih(e,l,r,f,i,m),Qi(y)?y.then(void 0,T=>{const x=In(T,r,fi(i));return hy(x,l,e)}):y}catch(h){const g=In(h,r,fi(i));return hy(g,l,e)}}function tF(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 hy(e,t,n){if(We(t))throw e;return n.errors.push(e),null}function ih(e,t,n,r,i,o){if(o instanceof Error)throw o;if(We(t)){const s=ih(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(Tt(t))return mz(e,t,n,r,i,o);if(Gr(t))return gz(t,o);if(nr(t))return yz(e,t,n,r,i,o);if(Xe(t))return hT(e,t,n,r,i,o);An(!1,\"Cannot complete value of unexpected output type: \"+be(t))}function mz(e,t,n,r,i,o){if(!$S(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 Qi(f)?m=f.then(y=>ih(e,s,n,r,g,y)):m=ih(e,s,n,r,g,f),Qi(m)?(l=!0,m.then(void 0,y=>{const T=In(y,n,fi(g));return hy(T,s,e)})):m}catch(m){const y=In(m,n,fi(g));return hy(y,s,e)}});return l?Promise.all(c):c}function gz(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 yz(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 Qi(f)?f.then(h=>hT(e,nF(h,e,t,n,r,o),n,r,i,o)):hT(e,nF(f,e,t,n,r,o),n,r,i,o)}function nF(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 hT(e,t,n,r,i,o){const s=pz(e,t,n);if(t.isTypeOf){const l=t.isTypeOf(o,e.contextValue,r);if(Qi(l))return l.then(c=>{if(!c)throw rF(t,o,n);return py(e,t,o,i,s)});if(!l)throw rF(t,o,n)}return py(e,t,o,i,s)}function rF(e,t,n){return new he(`Expected value of type \"${e.name}\" but got: ${be(t)}.`,{nodes:n})}const iF=function(e,t,n,r){if(Yi(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(Qi(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})},vy=function(e,t,n,r){if(Yi(e)||typeof e==\"function\"){const i=e[r.fieldName];return typeof i==\"function\"?e[r.fieldName](t,n,r):i}};function oF(e,t,n){const r=n.name.value;return r===wl.name&&e.getQueryType()===t?wl:r===Sl.name&&e.getQueryType()===t?Sl:r===fs.name?fs:t.getFields()[r]}function bz(e){return new Promise(t=>t(aF(e)))}function Ez(e){const t=aF(e);if(Qi(t))throw new Error(\"GraphQL execution failed to complete synchronously.\");return t}function aF(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=Jg(t);if(f.length>0)return{errors:f};let h;try{h=Hr(n)}catch(m){return{errors:[m]}}const g=rh(t,h);return g.length>0?{errors:g}:fy({schema:t,document:h,rootValue:r,contextValue:i,variableValues:o,operationName:s,fieldResolver:l,typeResolver:c})}function sF(e){return typeof(e==null?void 0:e[Symbol.asyncIterator])==\"function\"}function wz(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 Sz(e){arguments.length<2||pt(!1,\"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.\");const t=await lF(e);return sF(t)?wz(t,r=>fy({...e,rootValue:r})):t}function Tz(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 lF(...e){const t=Tz(e),{schema:n,document:r,variableValues:i}=t;XL(n,r,i);const o=ZL(t);if(!(\"schema\"in o))return{errors:o};try{const s=await _z(o);if(!sF(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 _z(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=oT(t,n,i,s,r.selectionSet),[c,f]=[...l.entries()][0],h=oF(t,s,f[0]);if(!h){const T=f[0].name.value;throw new he(`The subscription field \"${T}\" is not defined.`,{nodes:f})}const g=yf(void 0,c,s.name),m=tF(e,h,f,s,g);try{var y;const T=ay(h,f[0],i),x=e.contextValue,_=await((y=h.subscribe)!==null&&y!==void 0?y:e.subscribeFieldResolver)(o,T,x,m);if(_ instanceof Error)throw _;return _}catch(T){throw In(T,f,fi(g))}}function uF(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(_t(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 Cz(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 my(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 vT(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 xz(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 kz(e,t){const n={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,...t},r=Hr(my(n)),i=KL({schema:e,document:r});return!i.errors&&i.data||An(!1),i.data}function mT(e,t){Yi(e)&&Yi(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[...Jp,...eh])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===Ht.LIST){const V=P.ofType;if(!V)throw new Error(\"Decorated type deeper than introspection query.\");return new an(c(V))}if(P.kind===Ht.NON_NULL){const V=P.ofType;if(!V)throw new Error(\"Decorated type deeper than introspection query.\");const H=c(V);return new rt(aL(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 rL(f(P))}function g(P){return iL(f(P))}function m(P){if(P!=null&&P.name!=null&&P.kind!=null)switch(P.kind){case Ht.SCALAR:return y(P);case Ht.OBJECT:return x(P);case Ht.INTERFACE:return D(P);case Ht.UNION:return _(P);case Ht.ENUM:return b(P);case Ht.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 bo({name:P.name,description:P.description,specifiedByURL:P.specifiedByURL})}function T(P){if(P.interfaces===null&&P.kind===Ht.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:()=>T(P),fields:()=>S(P)})}function D(P){return new ui({name:P.name,description:P.description,interfaces:()=>T(P),fields:()=>S(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 Wr({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 ci({name:P.name,description:P.description,fields:()=>F(P.inputFields)})}function S(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(!zr(V)){const G=be(V);throw new Error(`Introspection must provide input type for arguments, but received: ${G}.`)}const H=P.defaultValue!=null?wo(K2(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 Ki({name:P.name,description:P.description,isRepeatable:P.isRepeatable,locations:P.locations.slice(),args:F(P.args)})}}function Nz(e,t,n){HS(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&&az(t,e);const r=e.toConfig(),i=cF(r,t,n);return r===i?e:new Fu(i)}function cF(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(Zg(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=fF[ve])!==null&&y!==void 0?y:de(K)}const T={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,...T,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 Tt(K)?new an(x(K.ofType)):We(K)?new rt(x(K.ofType)):D(K)}function D(K){return m[K.name]}function _(K){const ve=K.toConfig();return new Ki({...ve,args:us(ve.args,V)})}function b(K){if(Lu(K)||Kp(K))return K;if(li(K))return N(K);if(Xe(K))return F(K);if(ot(K))return L(K);if(On(K))return A(K);if(on(K))return S(K);if(_t(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 ci({...ue,fields:()=>({...us(ue.fields,le=>({...le,type:x(le.type)})),...ne(ce)}),extensionASTNodes:ue.extensionASTNodes.concat(ce)})}function S(K){var ve;const ue=K.toConfig(),ce=(ve=c[K.name])!==null&&ve!==void 0?ve:[];return new Wr({...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=dF(Ce))!==null&&we!==void 0?we:le}return new bo({...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:()=>({...us(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 ui({...ue,interfaces:()=>[...K.getInterfaces().map(D),...re(ce)],fields:()=>({...us(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&&us(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=fF[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 an(z(K.type)):K.kind===q.NON_NULL_TYPE?new rt(z(K.type)):G(K)}function U(K){var ve;return new Ki({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:gy(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:wo(le.defaultValue,we),deprecationReason:gy(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 He=z(Ce.type);ve[Ce.name.value]={type:He,description:(ce=Ce.description)===null||ce===void 0?void 0:ce.value,defaultValue:wo(Ce.defaultValue,He),deprecationReason:gy(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:gy(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 ui({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 Wr({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 He;const et=[K,...ce];return new bl({name:ue,description:(He=K.description)===null||He===void 0?void 0:He.value,types:()=>Z(et),astNode:K,extensionASTNodes:ce})}case q.SCALAR_TYPE_DEFINITION:{var cn;return new bo({name:ue,description:(cn=K.description)===null||cn===void 0?void 0:cn.value,specifiedByURL:dF(K),astNode:K,extensionASTNodes:ce})}case q.INPUT_OBJECT_TYPE_DEFINITION:{var nt;const et=[K,...ce];return new ci({name:ue,description:(nt=K.description)===null||nt===void 0?void 0:nt.value,fields:()=>ne(et),astNode:K,extensionASTNodes:ce})}}}}const fF=ls([...Jp,...eh],e=>e.name);function gy(e){const t=ps(Gg,e);return t==null?void 0:t.reason}function dF(e){const t=ps(MS,e);return t==null?void 0:t.url}function yy(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&&oz(e);const r=cF({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 gT(e,t){const n=Hr(e,{noLocation:t==null?void 0:t.noLocation,allowLegacyFragmentVariables:t==null?void 0:t.allowLegacyFragmentVariables});return yy(n,{assumeValidSDL:t==null?void 0:t.assumeValidSDL,assumeValid:t==null?void 0:t.assumeValid})}function Dz(e){const t=e.toConfig(),n=pl(yT(t.types),m=>m.name,g);return new Fu({...t,types:Object.values(n),directives:yT(t.directives).map(s),query:o(t.query),mutation:o(t.mutation),subscription:o(t.subscription)});function r(m){return Tt(m)?new an(r(m.ofType)):We(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 Ki({...y,locations:pF(y.locations,T=>T),args:l(y.args)})}function l(m){return by(m,y=>({...y,type:r(y.type)}))}function c(m){return by(m,y=>({...y,type:r(y.type),args:y.args&&l(y.args)}))}function f(m){return by(m,y=>({...y,type:r(y.type)}))}function h(m){return yT(m).map(i)}function g(m){if(li(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 ui({...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(on(m)){const y=m.toConfig();return new Wr({...y,values:by(y.values,T=>T)})}if(_t(m)){const y=m.toConfig();return new ci({...y,fields:()=>f(y.fields)})}An(!1,\"Unexpected type: \"+be(m))}}function by(e,t){const n=Object.create(null);for(const r of Object.keys(e).sort(Hp))n[r]=t(e[r]);return n}function yT(e){return pF(e,t=>t.name)}function pF(e,t){return e.slice().sort((n,r)=>{const i=t(n),o=t(r);return Hp(i,o)})}function Az(e){return hF(e,t=>!Wg(t),Iz)}function Oz(e){return hF(e,Wg,Lu)}function Iz(e){return!Kp(e)&&!Lu(e)}function hF(e,t,n){const r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[Lz(e),...r.map(o=>jz(o)),...i.map(o=>vF(o))].filter(Boolean).join(`\n\n`)}function Lz(e){if(e.description==null&&Fz(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}`),So(e)+`schema {\n${t.join(`\n`)}\n}`}function Fz(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 vF(e){if(li(e))return Rz(e);if(Xe(e))return Pz(e);if(ot(e))return Mz(e);if(On(e))return $z(e);if(on(e))return Vz(e);if(_t(e))return Bz(e);An(!1,\"Unexpected type: \"+be(e))}function Rz(e){return So(e)+`scalar ${e.name}`+Uz(e)}function mF(e){const t=e.getInterfaces();return t.length?\" implements \"+t.map(n=>n.name).join(\" & \"):\"\"}function Pz(e){return So(e)+`type ${e.name}`+mF(e)+gF(e)}function Mz(e){return So(e)+`interface ${e.name}`+mF(e)+gF(e)}function $z(e){const t=e.getTypes(),n=t.length?\" = \"+t.join(\" | \"):\"\";return So(e)+\"union \"+e.name+n}function Vz(e){const t=e.getValues().map((n,r)=>So(n,\" \",!r)+\" \"+n.name+wT(n.deprecationReason));return So(e)+`enum ${e.name}`+bT(t)}function Bz(e){const t=Object.values(e.getFields()).map((n,r)=>So(n,\" \",!r)+\" \"+ET(n));return So(e)+`input ${e.name}`+bT(t)}function gF(e){const t=Object.values(e.getFields()).map((n,r)=>So(n,\" \",!r)+\" \"+n.name+yF(n.args,\" \")+\": \"+String(n.type)+wT(n.deprecationReason));return bT(t)}function bT(e){return e.length!==0?` {\n`+e.join(`\n`)+`\n}`:\"\"}function yF(e,t=\"\"){return e.length===0?\"\":e.every(n=>!n.description)?\"(\"+e.map(ET).join(\", \")+\")\":`(\n`+e.map((n,r)=>So(n,\" \"+t,!r)+\" \"+t+ET(n)).join(`\n`)+`\n`+t+\")\"}function ET(e){const t=cs(e.defaultValue,e.type);let n=e.name+\": \"+String(e.type);return t&&(n+=` = ${gt(t)}`),n+wT(e.deprecationReason)}function jz(e){return So(e)+\"directive @\"+e.name+yF(e.args)+(e.isRepeatable?\" repeatable\":\"\")+\" on \"+e.locations.join(\" | \")}function wT(e){return e==null?\"\":e!==PS?` @deprecated(reason: ${gt({kind:q.STRING,value:e})})`:\" @deprecated\"}function Uz(e){return e.specifiedByURL==null?\"\":` @specifiedBy(url: ${gt({kind:q.STRING,value:e.specifiedByURL})})`}function So(e,t=\"\",n=!0){const{description:r}=e;if(r==null)return\"\";const i=gt({kind:q.STRING,value:r,block:Aq(r)});return(t&&!n?`\n`+t:t)+i.replace(/\\n/g,`\n`+t)+`\n`}function qz(e){const t=[];for(const n of e)t.push(...n.definitions);return{kind:q.DOCUMENT,definitions:t}}function Hz(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]=EF(i.selectionSet);break}const r=Object.create(null);for(const i of t){const o=new Set;for(const l of EF(i.selectionSet))bF(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 bF(e,t,n){if(!e.has(n)){e.add(n);const r=t[n];if(r!==void 0)for(const i of r)bF(e,t,i)}}function EF(e){const t=[];return Hn(e,{FragmentSpread(n){t.push(n.name.value)}}),t}function wF(e){const t=J2(e)?e:new qp(e),n=t.body,r=new DS(t);let i=\"\",o=!1;for(;r.advance().kind!==ge.EOF;){const s=r.token,l=s.kind,c=!z2(s.kind);o&&(c||s.kind===ge.SPREAD)&&(i+=\" \");const f=n.slice(s.start,s.end);l===ge.BLOCK_STRING?i+=H2(s.value,{minimize:!0}):i+=f,o=c}return i}function zz(e){const t=SF(e);if(t)throw t;return e}function SF(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{Ji(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 ta;(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\"})(ta||(ta={}));function Gz(e,t){return TF(e,t).filter(n=>n.type in Tn)}function Wz(e,t){return TF(e,t).filter(n=>n.type in ta)}function TF(e,t){return[...Yz(e,t),...Qz(e,t)]}function Qz(e,t){const n=[],r=hs(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=hs(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 Yz(e,t){const n=[],r=hs(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(const i of r.removed)n.push({type:Tn.TYPE_REMOVED,description:Kp(i)?`Standard scalar ${i.name} was removed because it is not referenced anymore.`:`${i.name} was removed.`});for(const[i,o]of r.persisted)on(i)&&on(o)?n.push(...Xz(i,o)):On(i)&&On(o)?n.push(...Kz(i,o)):_t(i)&&_t(o)?n.push(...Jz(i,o)):Xe(i)&&Xe(o)?n.push(...CF(i,o),..._F(i,o)):ot(i)&&ot(o)?n.push(...CF(i,o),..._F(i,o)):i.constructor!==o.constructor&&n.push({type:Tn.TYPE_CHANGED_KIND,description:`${i.name} changed from ${xF(i)} to ${xF(o)}.`});return n}function Jz(e,t){const n=[],r=hs(Object.values(e.getFields()),Object.values(t.getFields()));for(const i of r.added)Vg(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:ta.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)ah(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 Kz(e,t){const n=[],r=hs(e.getTypes(),t.getTypes());for(const i of r.added)n.push({type:ta.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 Xz(e,t){const n=[],r=hs(e.getValues(),t.getValues());for(const i of r.added)n.push({type:ta.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 _F(e,t){const n=[],r=hs(e.getInterfaces(),t.getInterfaces());for(const i of r.added)n.push({type:ta.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 CF(e,t){const n=[],r=hs(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(...Zz(e,i,o)),oh(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 Zz(e,t,n){const r=[],i=hs(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(!ah(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:ta.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${o.name} defaultValue was removed.`});else{const c=kF(o.defaultValue,o.type),f=kF(s.defaultValue,s.type);c!==f&&r.push({type:ta.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:ta.OPTIONAL_ARG_ADDED,description:`An optional arg ${o.name} on ${e.name}.${t.name} was added.`});return r}function oh(e,t){return Tt(e)?Tt(t)&&oh(e.ofType,t.ofType)||We(t)&&oh(e,t.ofType):We(e)?We(t)&&oh(e.ofType,t.ofType):gl(t)&&e.name===t.name||We(t)&&oh(e,t.ofType)}function ah(e,t){return Tt(e)?Tt(t)&&ah(e.ofType,t.ofType):We(e)?We(t)&&ah(e.ofType,t.ofType)||!We(t)&&ah(e.ofType,t):gl(t)&&e.name===t.name}function xF(e){if(li(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(on(e))return\"an Enum type\";if(_t(e))return\"an Input type\";An(!1,\"Unexpected type: \"+be(e))}function kF(e,t){const n=cs(e,t);return n!=null||An(!1),gt(ny(n))}function hs(e,t){const n=[],r=[],i=[],o=ls(e,({name:l})=>l),s=ls(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 eG=Object.freeze(Object.defineProperty({__proto__:null,BREAK:pf,get BreakingChangeType(){return Tn},DEFAULT_DEPRECATION_REASON:PS,get DangerousChangeType(){return ta},get DirectiveLocation(){return Pe},ExecutableDefinitionsRule:JS,FieldsOnCorrectTypeRule:gL,FragmentsOnCompositeTypesRule:yL,GRAPHQL_MAX_INT:jg,GRAPHQL_MIN_INT:Ug,GraphQLBoolean:sn,GraphQLDeprecatedDirective:Gg,GraphQLDirective:Ki,GraphQLEnumType:Wr,GraphQLError:he,GraphQLFloat:Qp,GraphQLID:Yp,GraphQLIncludeDirective:Hg,GraphQLInputObjectType:ci,GraphQLInt:Wp,GraphQLInterfaceType:ui,GraphQLList:an,GraphQLNonNull:rt,GraphQLObjectType:rr,GraphQLScalarType:bo,GraphQLSchema:Fu,GraphQLSkipDirective:zg,GraphQLSpecifiedByDirective:MS,GraphQLString:Kt,GraphQLUnionType:bl,get Kind(){return q},KnownArgumentNamesRule:bL,KnownDirectivesRule:ey,KnownFragmentNamesRule:KS,KnownTypeNamesRule:ty,Lexer:DS,Location:B2,LoneAnonymousOperationRule:SL,LoneSchemaDefinitionRule:XS,NoDeprecatedCustomRule:uF,NoFragmentCyclesRule:TL,NoSchemaIntrospectionCustomRule:Cz,NoUndefinedVariablesRule:_L,NoUnusedFragmentsRule:ZS,NoUnusedVariablesRule:CL,get OperationTypeNode(){return tr},OverlappingFieldsCanBeMergedRule:kL,PossibleFragmentSpreadsRule:OL,PossibleTypeExtensionsRule:rT,ProvidedRequiredArgumentsRule:IL,ScalarLeafsRule:FL,SchemaMetaFieldDef:wl,SingleFieldSubscriptionsRule:BL,Source:qp,Token:CS,get TokenKind(){return ge},TypeInfo:ds,get TypeKind(){return Ht},TypeMetaFieldDef:Sl,TypeNameMetaFieldDef:fs,UniqueArgumentDefinitionNamesRule:jL,UniqueArgumentNamesRule:ly,UniqueDirectiveNamesRule:lT,UniqueDirectivesPerLocationRule:uy,UniqueEnumValueNamesRule:uT,UniqueFieldDefinitionNamesRule:cT,UniqueFragmentNamesRule:UL,UniqueInputFieldNamesRule:cy,UniqueOperationNamesRule:qL,UniqueOperationTypesRule:fT,UniqueTypeNamesRule:dT,UniqueVariableNamesRule:HL,ValidationContext:YL,ValuesOfCorrectTypeRule:zL,VariablesAreInputTypesRule:GL,VariablesInAllowedPositionRule:WL,__Directive:VS,__DirectiveLocation:BS,__EnumValue:US,__Field:jS,__InputValue:Zp,__Schema:Qg,__Type:Eo,__TypeKind:qS,assertAbstractType:oL,assertCompositeType:hH,assertDirective:EH,assertEnumType:sH,assertEnumValueName:nL,assertInputObjectType:lH,assertInputType:fH,assertInterfaceType:iL,assertLeafType:pH,assertListType:uH,assertName:Ji,assertNamedType:mH,assertNonNullType:cH,assertNullableType:aL,assertObjectType:rL,assertOutputType:dH,assertScalarType:oH,assertSchema:HS,assertType:iH,assertUnionType:aH,assertValidName:zz,assertValidSchema:Kg,assertWrappingType:vH,astFromValue:cs,buildASTSchema:yy,buildClientSchema:mT,buildSchema:gT,coerceInputValue:iT,concatAST:qz,createSourceEventStream:lF,defaultFieldResolver:vy,defaultTypeResolver:iF,doTypesOverlap:Gp,execute:fy,executeSync:KL,extendSchema:Nz,findBreakingChanges:Gz,findDangerousChanges:Wz,formatError:xq,getArgumentValues:ay,getDirectiveValues:ps,getEnterLeaveForKind:hf,getIntrospectionQuery:my,getLocation:Ag,getNamedType:Nt,getNullableType:ml,getOperationAST:vT,getOperationRootType:xz,getVariableValues:ML,getVisitFn:tH,graphql:bz,graphqlSync:Ez,introspectionFromSchema:kz,introspectionTypes:eh,isAbstractType:nr,isCompositeType:hn,isConstValueNode:QS,isDefinitionNode:IH,isDirective:qg,isEnumType:on,isEqualType:Bg,isExecutableDefinitionNode:WS,isInputObjectType:_t,isInputType:zr,isInterfaceType:ot,isIntrospectionType:Lu,isLeafType:Gr,isListType:Tt,isNamedType:gl,isNonNullType:We,isNullableType:LS,isObjectType:Xe,isOutputType:vl,isRequiredArgument:yl,isRequiredInputField:Vg,isScalarType:li,isSchema:Yg,isSelectionNode:LH,isSpecifiedDirective:Wg,isSpecifiedScalarType:Kp,isType:vf,isTypeDefinitionNode:gf,isTypeExtensionNode:Zg,isTypeNode:FH,isTypeSubTypeOf:Iu,isTypeSystemDefinitionNode:Xg,isTypeSystemExtensionNode:YS,isUnionType:On,isValidNameError:SF,isValueNode:mL,isWrappingType:zp,lexicographicSortSchema:Dz,locatedError:In,parse:Hr,parseConstValue:Gq,parseType:Wq,parseValue:K2,print:gt,printError:Cq,printIntrospectionSchema:Oz,printLocation:M2,printSchema:Az,printSourceLocation:_S,printType:vF,resolveObjMapThunk:RS,resolveReadonlyArrayThunk:FS,responsePathAsArray:fi,separateOperations:Hz,specifiedDirectives:El,specifiedRules:pT,specifiedScalarTypes:Jp,stripIgnoredCharacters:wF,subscribe:Sz,syntaxError:er,typeFromAST:mr,validate:rh,validateSchema:Jg,valueFromAST:wo,valueFromASTUntyped:Mg,version:Sq,versionInfo:TS,visit:Hn,visitInParallel:IS,visitWithTypeInfo:Pu},Symbol.toStringTag,{value:\"Module\"}));var NF=Object.defineProperty,tG=Object.defineProperties,nG=Object.getOwnPropertyDescriptors,Ey=Object.getOwnPropertySymbols,DF=Object.prototype.hasOwnProperty,AF=Object.prototype.propertyIsEnumerable,OF=(e,t,n)=>t in e?NF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Dt=(e,t)=>{for(var n in t||(t={}))DF.call(t,n)&&OF(e,n,t[n]);if(Ey)for(var n of Ey(t))AF.call(t,n)&&OF(e,n,t[n]);return e},Xt=(e,t)=>tG(e,nG(t)),E=(e,t)=>NF(e,\"name\",{value:t,configurable:!0}),mt=(e,t)=>{var n={};for(var r in e)DF.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ey)for(var r of Ey(e))t.indexOf(r)<0&&AF.call(e,r)&&(n[r]=e[r]);return n};function ST(e){return typeof e==\"object\"&&e!==null&&typeof e.then==\"function\"}E(ST,\"isPromise\");function IF(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(IF,\"observableToPromise\");function TT(e){return typeof e==\"object\"&&e!==null&&\"subscribe\"in e&&typeof e.subscribe==\"function\"}E(TT,\"isObservable\");function _T(e){return typeof e==\"object\"&&e!==null&&(e[Symbol.toStringTag]===\"AsyncGenerator\"||Symbol.asyncIterator in e)}E(_T,\"isAsyncIterable\");function LF(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(LF,\"asyncIterableToPromise\");function CT(e){return Promise.resolve(e).then(t=>_T(t)?LF(t):TT(t)?IF(t):t)}E(CT,\"fetcherReturnToPromise\");function wy(e){return JSON.stringify(e,null,2)}E(wy,\"stringify\");function FF(e){return Object.assign(Object.assign({},e),{message:e.message,stack:e.stack})}E(FF,\"formatSingleError\");function xT(e){return e instanceof Error?FF(e):e}E(xT,\"handleSingleError\");function $u(e){return Array.isArray(e)?wy({errors:e.map(t=>xT(t))}):wy({errors:[xT(e)]})}E($u,\"formatError\");function sh(e){return wy(e)}E(sh,\"formatResult\");function RF(e,t,n){const r=[];if(!e||!t)return{insertions:r,result:t};let i;try{i=Hr(t)}catch{return{insertions:r,result:t}}const o=n||PF,s=new ds(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=kT(VF(c),o);if(f&&l.loc){const h=$F(t,l.loc.start);r.push({index:l.loc.end,string:\" \"+gt(f).replace(/\\n/g,`\n`+h)})}}}}),{insertions:r,result:MF(t,r)}}E(RF,\"fillLeafs\");function PF(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=>{Gr(t[r].type)&&n.push(r)}),n}E(PF,\"defaultGetDefaultFieldNames\");function kT(e,t){const n=Nt(e);if(!e||Gr(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:kT(s,t)}})}}E(kT,\"buildSelectionSet\");function MF(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(MF,\"withInsertions\");function $F(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($F,\"getIndentation\");function VF(e){if(e)return e}E(VF,\"isFieldType\");function BF(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(BF,\"uniqueBy\");function NT(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(...NT(e,l.selectionSet.selections,n));continue}}o.push(l)}return o}E(NT,\"inlineRelevantFragmentSpreads\");function jF(e,t){const n=t?new ds(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=NT(r,l,s),l=BF(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(jF,\"mergeAst\");function UF(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(UF,\"getSelectedOperationName\");function qF(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(qF,\"isQuotaError\");class Sy{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(`${DT}:`)===0&&window.localStorage.removeItem(n)}):this.storage=null}get(t){if(!this.storage)return null;const n=`${DT}:${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=`${DT}:${t}`;if(n)try{this.storage.setItem(o,n)}catch(s){i=s instanceof Error?s:new Error(`${s}`),r=qF(this.storage,s)}else this.storage.removeItem(o)}return{isQuotaError:r,error:i}}clear(){this.storage&&this.storage.clear()}}E(Sy,\"StorageAPI\");const DT=\"graphiql\";class AT{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(AT,\"QueryStore\");const rG=1e5;class HF{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 AT(\"queries\",this.storage,this.maxHistoryLength),this.favorite=new AT(\"favorites\",this.storage,null),this.queries=[...this.history.fetchAll(),...this.favorite.fetchAll()]}shouldSaveQuery(t,n,r,i){if(!t)return!1;try{Hr(t)}catch{return!1}return t.length>rG?!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(HF,\"HistoryStore\");var iG=Object.defineProperty,OT=E((e,t)=>iG(e,\"name\",{value:t,configurable:!0}),\"__name$H\");function vs(e){const t=I.createContext(null);return t.displayName=e,t}E(vs,\"createNullableContext\"),OT(vs,\"createNullableContext\");function ms(e){function t(n){var r;const i=I.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\"),OT(t,\"useGivenContext\"),Object.defineProperty(t,\"name\",{value:`use${e.displayName}`}),t}E(ms,\"createContextHook\"),OT(ms,\"createContextHook\");var oG=typeof globalThis<\"u\"?globalThis:typeof window<\"u\"?window:typeof global<\"u\"?global:typeof self<\"u\"?self:{};function zF(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,\"default\")?e.default:e}E(zF,\"getDefaultExportFromCjs\");function GF(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(GF,\"getAugmentedNamespace\");var Ty={exports:{}},lh={};/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/var WF=Object.getOwnPropertySymbols,aG=Object.prototype.hasOwnProperty,sG=Object.prototype.propertyIsEnumerable;function QF(e){if(e==null)throw new TypeError(\"Object.assign cannot be called with null or undefined\");return Object(e)}E(QF,\"toObject\");function YF(){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(YF,\"shouldUseNative\"),YF();/** @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 lG=oe,JF=60103;if(lh.Fragment=60107,typeof Symbol==\"function\"&&Symbol.for){var KF=Symbol.for;JF=KF(\"react.element\"),lh.Fragment=KF(\"react.fragment\")}var uG=lG.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,cG=Object.prototype.hasOwnProperty,fG={key:!0,ref:!0,__self:!0,__source:!0};function IT(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)cG.call(t,r)&&!fG.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:JF,type:e,key:o,ref:s,props:i,_owner:uG.current}}E(IT,\"q$1\"),lh.jsx=IT,lh.jsxs=IT,Ty.exports=lh;const ie=Ty.exports.jsx,lt=Ty.exports.jsxs,Ai=Ty.exports.Fragment;var dG=Object.defineProperty,pG=E((e,t)=>dG(e,\"name\",{value:t,configurable:!0}),\"__name$G\");const XF=vs(\"StorageContext\");function LT(e){const t=I.useRef(!0),[n,r]=I.useState(new Sy(e.storage));return I.useEffect(()=>{t.current?t.current=!1:r(new Sy(e.storage))},[e.storage]),ie(XF.Provider,{value:n,children:e.children})}E(LT,\"StorageContextProvider\"),pG(LT,\"StorageContextProvider\");const Tl=ms(XF);var ZF;(function(e){function t(n){return typeof n==\"string\"}E(t,\"is\"),e.is=t})(ZF||(ZF={}));var FT;(function(e){function t(n){return typeof n==\"string\"}E(t,\"is\"),e.is=t})(FT||(FT={}));var eR;(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})(eR||(eR={}));var _y;(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})(_y||(_y={}));var na;(function(e){function t(r,i){return r===Number.MAX_VALUE&&(r=_y.MAX_VALUE),i===Number.MAX_VALUE&&(i=_y.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})(na||(na={}));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:na.create(r,i),end:na.create(o,s)};if(na.is(r)&&na.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)&&na.is(i.start)&&na.is(i.end)}E(n,\"is\"),e.is=n})(Ln||(Ln={}));var Cy;(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})(Cy||(Cy={}));var tR;(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})(tR||(tR={}));var RT;(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})(RT||(RT={}));var nR;(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)&&RT.is(i.color)}E(n,\"is\"),e.is=n})(nR||(nR={}));var rR;(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)||gs.is(i))&&(ae.undefined(i.additionalTextEdits)||ae.typedArray(i.additionalTextEdits,gs.is))}E(n,\"is\"),e.is=n})(rR||(rR={}));var iR;(function(e){e.Comment=\"comment\",e.Imports=\"imports\",e.Region=\"region\"})(iR||(iR={}));var oR;(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})(oR||(oR={}));var PT;(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)&&Cy.is(i.location)&&ae.string(i.message)}E(n,\"is\"),e.is=n})(PT||(PT={}));var aR;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(aR||(aR={}));var sR;(function(e){e.Unnecessary=1,e.Deprecated=2})(sR||(sR={}));var lR;(function(e){function t(n){var r=n;return ae.objectLiteral(r)&&ae.string(r.href)}E(t,\"is\"),e.is=t})(lR||(lR={}));var xy;(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,PT.is))}E(n,\"is\"),e.is=n})(xy||(xy={}));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 gs;(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})(gs||(gs={}));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 Qr;(function(e){function t(n){var r=n;return ae.string(r)}E(t,\"is\"),e.is=t})(Qr||(Qr={}));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 gs.is(s)&&(Ef.is(s.annotationId)||Qr.is(s.annotationId))}E(i,\"is\"),e.is=i})(_l||(_l={}));var ky;(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)&&Dy.is(i.textDocument)&&Array.isArray(i.edits)}E(n,\"is\"),e.is=n})(ky||(ky={}));var uh;(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||Qr.is(i.annotationId))}E(n,\"is\"),e.is=n})(uh||(uh={}));var ch;(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||Qr.is(i.annotationId))}E(n,\"is\"),e.is=n})(ch||(ch={}));var fh;(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||Qr.is(i.annotationId))}E(n,\"is\"),e.is=n})(fh||(fh={}));var MT;(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)?uh.is(i)||ch.is(i)||fh.is(i):ky.is(i)}))}E(t,\"is\"),e.is=t})(MT||(MT={}));var Ny=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=gs.insert(t,n):Qr.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=gs.replace(t,n):Qr.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=gs.del(t):Qr.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}(),uR=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(Qr.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 uR(t.changeAnnotations),t.changeAnnotations=this._changeAnnotations.all(),t.documentChanges.forEach(function(r){if(ky.is(r)){var i=new Ny(r.edits,n._changeAnnotations);n._textEditChanges[r.textDocument.uri]=i}})):t.changes&&Object.keys(t.changes).forEach(function(r){var i=new Ny(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(Dy.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 Ny(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 Ny(i),this._textEditChanges[t]=r}return r}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new uR,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)||Qr.is(n)?i=n:r=n;var o,s;if(i===void 0?o=uh.create(t,r):(s=Qr.is(i)?i:this._changeAnnotations.manage(i),o=uh.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)||Qr.is(r)?o=r:i=r;var s,l;if(o===void 0?s=ch.create(t,n,i):(l=Qr.is(o)?o:this._changeAnnotations.manage(o),s=ch.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)||Qr.is(n)?i=n:r=n;var o,s;if(i===void 0?o=fh.create(t,r):(s=Qr.is(i)?i:this._changeAnnotations.manage(i),o=fh.create(t,r,s)),this._workspaceEdit.documentChanges.push(o),s!==void 0)return s},e})();var cR;(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})(cR||(cR={}));var fR;(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})(fR||(fR={}));var Dy;(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})(Dy||(Dy={}));var dR;(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})(dR||(dR={}));var $T;(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})($T||($T={}));var dh;(function(e){function t(n){var r=n;return ae.objectLiteral(n)&&$T.is(r.kind)&&ae.string(r.value)}E(t,\"is\"),e.is=t})(dh||(dh={}));var pR;(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})(pR||(pR={}));var hR;(function(e){e.PlainText=1,e.Snippet=2})(hR||(hR={}));var vR;(function(e){e.Deprecated=1})(vR||(vR={}));var mR;(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})(mR||(mR={}));var gR;(function(e){e.asIs=1,e.adjustIndentation=2})(gR||(gR={}));var yR;(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})(yR||(yR={}));var bR;(function(e){function t(n){return{label:n}}E(t,\"create\"),e.create=t})(bR||(bR={}));var ER;(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}E(t,\"create\"),e.create=t})(ER||(ER={}));var Ay;(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})(Ay||(Ay={}));var wR;(function(e){function t(n){var r=n;return!!r&&ae.objectLiteral(r)&&(dh.is(r.contents)||Ay.is(r.contents)||ae.typedArray(r.contents,Ay.is))&&(n.range===void 0||Ln.is(n.range))}E(t,\"is\"),e.is=t})(wR||(wR={}));var SR;(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}E(t,\"create\"),e.create=t})(SR||(SR={}));var TR;(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})(TR||(TR={}));var _R;(function(e){e.Text=1,e.Read=2,e.Write=3})(_R||(_R={}));var CR;(function(e){function t(n,r){var i={range:n};return ae.number(r)&&(i.kind=r),i}E(t,\"create\"),e.create=t})(CR||(CR={}));var xR;(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})(xR||(xR={}));var kR;(function(e){e.Deprecated=1})(kR||(kR={}));var NR;(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})(NR||(NR={}));var DR;(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})(DR||(DR={}));var AR;(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})(AR||(AR={}));var OR;(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\"})(OR||(OR={}));var Oy;(function(e){e.Invoked=1,e.Automatic=2})(Oy||(Oy={}));var IR;(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,xy.is)&&(i.only===void 0||ae.typedArray(i.only,ae.string))&&(i.triggerKind===void 0||i.triggerKind===Oy.Invoked||i.triggerKind===Oy.Automatic)}E(n,\"is\"),e.is=n})(IR||(IR={}));var LR;(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,xy.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||MT.is(i.edit))}E(n,\"is\"),e.is=n})(LR||(LR={}));var FR;(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})(FR||(FR={}));var RR;(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})(RR||(RR={}));var PR;(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})(PR||(PR={}));var MR;(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})(MR||(MR={}));var $R;(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\"})($R||($R={}));var VR;(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\"})(VR||(VR={}));var BR;(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})(BR||(BR={}));var jR;(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})(jR||(jR={}));var UR;(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})(UR||(UR={}));var qR;(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})(qR||(qR={}));var HR;(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})(HR||(HR={}));var VT;(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}E(t,\"is\"),e.is=t})(VT||(VT={}));var BT;(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)||dh.is(i.tooltip))&&(i.location===void 0||Cy.is(i.location))&&(i.command===void 0||bf.is(i.command))}E(n,\"is\"),e.is=n})(BT||(BT={}));var zR;(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)&&na.is(i.position)&&(ae.string(i.label)||ae.typedArray(i.label,BT.is))&&(i.kind===void 0||VT.is(i.kind))&&i.textEdits===void 0||ae.typedArray(i.textEdits,gs.is)&&(i.tooltip===void 0||ae.string(i.tooltip)||dh.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})(zR||(zR={}));var GR;(function(e){function t(n){var r=n;return ae.objectLiteral(r)&&FT.is(r.uri)&&ae.string(r.name)}E(t,\"is\"),e.is=t})(GR||(GR={}));var WR;(function(e){function t(o,s,l,c){return new hG(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(T,x){var D=T.range.start.line-x.range.start.line;return D===0?T.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\")})(WR||(WR={}));var hG=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 na.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 na.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,T,x){return t.call(y)===\"[object Number]\"&&T<=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,T){return Array.isArray(y)&&y.every(T)}E(m,\"typedArray\"),e.typedArray=m})(ae||(ae={}));var QR;(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})(QR||(QR={}));function _n(e){return{ofRule:e}}E(_n,\"opt\");function Ct(e,t){return{ofRule:e,isList:!0,separator:t}}E(Ct,\"list$1\");function YR(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(YR,\"butNot\");function Iy(e,t){return{style:t,match:n=>n.kind===e}}E(Iy,\"t$2\");function ct(e,t){return{style:t||\"punctuation\",match:n=>n.kind===\"Punctuation\"&&n.value===e}}E(ct,\"p$1\"),Ct(\"Definition\"),gr(\"query\"),_n(Gt(\"def\")),_n(\"VariableDefinitions\"),Ct(\"Directive\"),gr(\"mutation\"),_n(Gt(\"def\")),_n(\"VariableDefinitions\"),Ct(\"Directive\"),gr(\"subscription\"),_n(Gt(\"def\")),_n(\"VariableDefinitions\"),Ct(\"Directive\"),ct(\"(\"),Ct(\"VariableDefinition\"),ct(\")\"),ct(\":\"),_n(\"DefaultValue\"),ct(\"$\",\"variable\"),Gt(\"variable\"),ct(\"=\"),ct(\"{\"),Ct(\"Selection\"),ct(\"}\"),Gt(\"property\"),ct(\":\"),Gt(\"qualifier\"),_n(\"Arguments\"),Ct(\"Directive\"),_n(\"SelectionSet\"),Gt(\"property\"),_n(\"Arguments\"),Ct(\"Directive\"),_n(\"SelectionSet\"),ct(\"(\"),Ct(\"Argument\"),ct(\")\"),Gt(\"attribute\"),ct(\":\"),ct(\"...\"),Gt(\"def\"),Ct(\"Directive\"),ct(\"...\"),_n(\"TypeCondition\"),Ct(\"Directive\"),gr(\"fragment\"),_n(YR(Gt(\"def\"),[gr(\"on\")])),Ct(\"Directive\"),gr(\"on\"),Iy(\"Number\",\"number\"),Iy(\"Name\",\"builtin\"),Iy(\"Name\",\"keyword\"),Gt(\"string-2\"),ct(\"[\"),Ct(\"Value\"),ct(\"]\"),ct(\"{\"),Ct(\"ObjectField\"),ct(\"}\"),Gt(\"attribute\"),ct(\":\"),ct(\"[\"),ct(\"]\"),_n(ct(\"!\")),_n(ct(\"!\")),JR(\"atom\"),ct(\"@\",\"meta\"),Gt(\"meta\"),_n(\"Arguments\"),gr(\"directive\"),ct(\"@\",\"meta\"),Gt(\"meta\"),_n(\"ArgumentsDef\"),gr(\"on\"),Ct(\"DirectiveLocation\",ct(\"|\")),gr(\"interface\"),Gt(\"atom\"),_n(\"Implements\"),Ct(\"Directive\"),ct(\"{\"),Ct(\"FieldDef\"),ct(\"}\"),gr(\"implements\"),Ct(\"NamedType\",ct(\"&\")),Gt(\"string-2\"),gr(\"schema\"),Ct(\"Directive\"),ct(\"{\"),Ct(\"OperationTypeDef\"),ct(\"}\"),Gt(\"keyword\"),ct(\":\"),Gt(\"atom\"),gr(\"scalar\"),Gt(\"atom\"),Ct(\"Directive\"),gr(\"type\"),Gt(\"atom\"),_n(\"Implements\"),Ct(\"Directive\"),ct(\"{\"),Ct(\"FieldDef\"),ct(\"}\"),Gt(\"property\"),_n(\"ArgumentsDef\"),ct(\":\"),Ct(\"Directive\"),ct(\"(\"),Ct(\"InputValueDef\"),ct(\")\"),Gt(\"attribute\"),ct(\":\"),_n(\"DefaultValue\"),Ct(\"Directive\"),gr(\"union\"),Gt(\"atom\"),Ct(\"Directive\"),ct(\"=\"),Ct(\"UnionMember\",ct(\"|\")),gr(\"enum\"),Gt(\"atom\"),Ct(\"Directive\"),ct(\"{\"),Ct(\"EnumValueDef\"),ct(\"}\"),Gt(\"string-2\"),Ct(\"Directive\"),gr(\"input\"),Gt(\"atom\"),Ct(\"Directive\"),ct(\"{\"),Ct(\"InputValueDef\"),ct(\"}\"),gr(\"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 gr(e){return{style:\"keyword\",match:t=>t.kind===\"Name\"&&t.value===e}}E(gr,\"word\");function Gt(e){return{style:e,match:t=>t.kind===\"Name\",update(t,n){t.name=n.value}}}E(Gt,\"name\");function JR(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(JR,\"type\");const vG={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),vG),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 KR;(function(e){e.TYPE_SYSTEM=\"TYPE_SYSTEM\",e.EXECUTABLE=\"EXECUTABLE\"})(KR||(KR={}));var Ly={exports:{}};function jT(e,t){if(e!=null)return e;var n=new Error(t!==void 0?t:\"Got unexpected \"+e);throw n.framesToPop=1,n}E(jT,\"nullthrows\"),Ly.exports=jT,Ly.exports.default=jT,Object.defineProperty(Ly.exports,\"__esModule\",{value:!0});var XR=zF(Ly.exports);const mG=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(XR(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(XR(t.get(l.name.value))),r.add(l.name.value))}}),n.has(s.name.value)||o.push(s)}),o},\"getFragmentDependenciesForAST\");function ZR(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=mr(e,s);l?n[o.name.value]=l:s.kind===q.NAMED_TYPE&&s.name.value===\"Float\"&&(n[o.name.value]=Qp)})}}),n}E(ZR,\"collectVariables\");function e5(e,t){const n=t?ZR(t,e):void 0,r=[];return Hn(e,{OperationDefinition(i){r.push(i)}}),{variableToType:n,operations:r}}E(e5,\"getOperationASTFacts\");function t5(e,t){if(t)try{const n=Hr(t);return Object.assign(Object.assign({},e5(n,e)),{documentAST:n})}catch{return}}E(t5,\"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 gG=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 yG=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 bG=yG;function UT(e){return bG(e)===!0&&Object.prototype.toString.call(e)===\"[object Object]\"}E(UT,\"isObjectObject\");var EG=E(function(t){var n,r;return!(UT(t)===!1||(n=t.constructor,typeof n!=\"function\")||(r=n.prototype,UT(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:wG}=Reflect,SG=gG,n5=EG,r5=E(e=>typeof e==\"object\"&&e!==null||typeof e==\"function\",\"isObject$1\"),TG=E(e=>e===\"__proto__\"||e===\"constructor\"||e===\"prototype\",\"isUnsafeKey\"),qT=E(e=>{if(!SG(e))throw new TypeError(\"Object keys must be strings or symbols\");if(TG(e))throw new Error(`Cannot set unsafe key: \"${e}\"`)},\"validateKey\"),_G=E(e=>Array.isArray(e)?e.flat().map(String).join(\",\"):e,\"toStringKey\"),CG=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\"),xG=E((e,t,n)=>{const r=_G(t?CG(e,t):e);qT(r);const i=Vu.cache.get(r)||n();return Vu.cache.set(r,i),i},\"memoize\"),kG=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\"),i5=E((e,t)=>t&&typeof t.split==\"function\"?t.split(e):typeof e==\"symbol\"?[e]:Array.isArray(e)?e:xG(e,t,()=>kG(e,t)),\"split\"),NG=E((e,t,n,r)=>{if(qT(t),n===void 0)wG(e,t);else if(r&&r.merge){const i=r.merge===\"function\"?r.merge:Object.assign;i&&n5(e[t])&&n5(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||!r5(e))return e;const i=i5(t,r);let o=e;for(let s=0;s<i.length;s++){const l=i[s],c=i[s+1];if(qT(l),c===void 0){NG(o,l,n,r);break}if(typeof c==\"number\"&&!Array.isArray(o[l])){o=o[l]=[];continue}r5(o[l])||(o[l]={}),o=o[l]}return e},\"setValue\");Vu.split=i5,Vu.cache=new Map,Vu.clear=()=>{Vu.cache=new Map};var DG=Vu;function o5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return I.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?I.createElement(\"title\",{id:r},n):null,I.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}),I.createElement(\"rect\",{x:6,y:6,width:2,height:2,rx:1,fill:\"currentColor\"}))}E(o5,\"SvgArgument\");function a5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return I.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?I.createElement(\"title\",{id:r},n):null,I.createElement(\"path\",{d:\"M1 1L7 7L13 1\",stroke:\"currentColor\",strokeWidth:1.5}))}E(a5,\"SvgChevronDown\");function s5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return I.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?I.createElement(\"title\",{id:r},n):null,I.createElement(\"path\",{d:\"M6 1.04819L2 5.04819L6 9.04819\",stroke:\"currentColor\",strokeWidth:1.75}))}E(s5,\"SvgChevronLeft\");function l5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return I.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?I.createElement(\"title\",{id:r},n):null,I.createElement(\"path\",{d:\"M13 8L7 2L1 8\",stroke:\"currentColor\",strokeWidth:1.5}))}E(l5,\"SvgChevronUp\");function u5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return I.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?I.createElement(\"title\",{id:r},n):null,I.createElement(\"path\",{d:\"M1 1L12.9998 12.9997\",stroke:\"currentColor\",strokeWidth:1.5}),I.createElement(\"path\",{d:\"M13 1L1.00079 13.0003\",stroke:\"currentColor\",strokeWidth:1.5}))}E(u5,\"SvgClose\");function c5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return I.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?I.createElement(\"title\",{id:r},n):null,I.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}),I.createElement(\"rect\",{x:6.75,y:.75,width:10.5,height:10.5,rx:2.2069,stroke:\"currentColor\",strokeWidth:1.5}))}E(c5,\"SvgCopy\");function f5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return I.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?I.createElement(\"title\",{id:r},n):null,I.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}),I.createElement(\"path\",{d:\"M5 9L9 5\",stroke:\"currentColor\",strokeWidth:1.2}),I.createElement(\"path\",{d:\"M5 5L9 9\",stroke:\"currentColor\",strokeWidth:1.2}))}E(f5,\"SvgDeprecatedArgument\");function d5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return I.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?I.createElement(\"title\",{id:r},n):null,I.createElement(\"path\",{d:\"M4 8L8 4\",stroke:\"currentColor\",strokeWidth:1.2}),I.createElement(\"path\",{d:\"M4 4L8 8\",stroke:\"currentColor\",strokeWidth:1.2}),I.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(d5,\"SvgDeprecatedEnumValue\");function p5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return I.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?I.createElement(\"title\",{id:r},n):null,I.createElement(\"rect\",{x:.6,y:.6,width:10.8,height:10.8,rx:3.4,stroke:\"currentColor\",strokeWidth:1.2}),I.createElement(\"path\",{d:\"M4 8L8 4\",stroke:\"currentColor\",strokeWidth:1.2}),I.createElement(\"path\",{d:\"M4 4L8 8\",stroke:\"currentColor\",strokeWidth:1.2}))}E(p5,\"SvgDeprecatedField\");function h5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return I.createElement(\"svg\",Object.assign({height:\"1em\",viewBox:\"0 0.5 12 12\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-labelledby\":r},i),n?I.createElement(\"title\",{id:r},n):null,I.createElement(\"rect\",{x:7,y:5.5,width:2,height:2,rx:1,transform:\"rotate(90 7 5.5)\",fill:\"currentColor\"}),I.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(h5,\"SvgDirective\");function v5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return I.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?I.createElement(\"title\",{id:r},n):null,I.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}),I.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}),I.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(v5,\"SvgDocsFilled\");function m5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return I.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?I.createElement(\"title\",{id:r},n):null,I.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}),I.createElement(\"line\",{x1:13,y1:11.75,x2:6,y2:11.75,stroke:\"currentColor\",strokeWidth:1.5}))}E(m5,\"SvgDocs\");function g5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return I.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?I.createElement(\"title\",{id:r},n):null,I.createElement(\"rect\",{x:5,y:5,width:2,height:2,rx:1,fill:\"currentColor\"}),I.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(g5,\"SvgEnumValue\");function y5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return I.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?I.createElement(\"title\",{id:r},n):null,I.createElement(\"rect\",{x:.6,y:1.1,width:10.8,height:10.8,rx:2.4,stroke:\"currentColor\",strokeWidth:1.2}),I.createElement(\"rect\",{x:5,y:5.5,width:2,height:2,rx:1,fill:\"currentColor\"}))}E(y5,\"SvgField\");function b5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return I.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?I.createElement(\"title\",{id:r},n):null,I.createElement(\"path\",{d:\"M1.59375 9.52344L4.87259 12.9944L8.07872 9.41249\",stroke:\"currentColor\",strokeWidth:1.5,strokeLinecap:\"square\"}),I.createElement(\"path\",{d:\"M13.75 5.25V10.75H18.75\",stroke:\"currentColor\",strokeWidth:1.5,strokeLinecap:\"square\"}),I.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(b5,\"SvgHistory\");function E5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return I.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?I.createElement(\"title\",{id:r},n):null,I.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\"}),I.createElement(\"circle\",{cx:6,cy:6,r:1,fill:\"currentColor\"}))}E(E5,\"SvgImplements\");function w5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return I.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?I.createElement(\"title\",{id:r},n):null,I.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\"}),I.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\"}),I.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\"}),I.createElement(\"path\",{d:\"M12.6318 5.86775H6.36955V12.1285H12.6318V5.86775Z\",stroke:\"currentColor\",strokeWidth:1.125,strokeLinecap:\"round\",strokeLinejoin:\"round\"}),I.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(w5,\"SvgKeyboardShortcut\");function S5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return I.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?I.createElement(\"title\",{id:r},n):null,I.createElement(\"circle\",{cx:5,cy:5,r:4.35,stroke:\"currentColor\",strokeWidth:1.3}),I.createElement(\"line\",{x1:8.45962,y1:8.54038,x2:11.7525,y2:11.8333,stroke:\"currentColor\",strokeWidth:1.3}))}E(S5,\"SvgMagnifyingGlass\");function T5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return I.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?I.createElement(\"title\",{id:r},n):null,I.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}),I.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}),I.createElement(\"path\",{d:\"M6 4.5L9 7.5L12 4.5\",stroke:\"currentColor\",strokeWidth:1.5}),I.createElement(\"path\",{d:\"M12 13.5L9 10.5L6 13.5\",stroke:\"currentColor\",strokeWidth:1.5}))}E(T5,\"SvgMerge\");function _5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return I.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?I.createElement(\"title\",{id:r},n):null,I.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\"}),I.createElement(\"path\",{d:\"M11.5 4.5L9.5 2.5\",stroke:\"currentColor\",strokeWidth:1.4026,strokeLinecap:\"round\",strokeLinejoin:\"round\"}),I.createElement(\"path\",{d:\"M5.5 10.5L3.5 8.5\",stroke:\"currentColor\",strokeWidth:1.4026,strokeLinecap:\"round\",strokeLinejoin:\"round\"}))}E(_5,\"SvgPen\");function C5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return I.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?I.createElement(\"title\",{id:r},n):null,I.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(C5,\"SvgPlay\");function x5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return I.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?I.createElement(\"title\",{id:r},n):null,I.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(x5,\"SvgPlus\");function k5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return I.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?I.createElement(\"title\",{id:r},n):null,I.createElement(\"path\",{d:\"M10.2852 24.0745L13.7139 18.0742\",stroke:\"currentColor\",strokeWidth:1.5625}),I.createElement(\"path\",{d:\"M14.5742 24.0749L17.1457 19.7891\",stroke:\"currentColor\",strokeWidth:1.5625}),I.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}),I.createElement(\"path\",{d:\"M4 15L5 13L7 12L5 11L4 9L3 11L1 12L3 13L4 15Z\",stroke:\"currentColor\",strokeWidth:1.5625,strokeLinejoin:\"round\"}),I.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(k5,\"SvgPrettify\");function N5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return I.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?I.createElement(\"title\",{id:r},n):null,I.createElement(\"path\",{d:\"M4.75 9.25H1.25V12.75\",stroke:\"currentColor\",strokeWidth:1,strokeLinecap:\"square\"}),I.createElement(\"path\",{d:\"M11.25 6.75H14.75V3.25\",stroke:\"currentColor\",strokeWidth:1,strokeLinecap:\"square\"}),I.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}),I.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(N5,\"SvgReload\");function D5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return I.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?I.createElement(\"title\",{id:r},n):null,I.createElement(\"rect\",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:\"currentColor\",strokeWidth:1.2}),I.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(D5,\"SvgRootType\");function A5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return I.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?I.createElement(\"title\",{id:r},n):null,I.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(A5,\"SvgSettings\");function O5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return I.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?I.createElement(\"title\",{id:r},n):null,I.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(O5,\"SvgStarFilled\");function I5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return I.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?I.createElement(\"title\",{id:r},n):null,I.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(I5,\"SvgStar\");function L5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return I.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?I.createElement(\"title\",{id:r},n):null,I.createElement(\"rect\",{width:16,height:16,rx:2,fill:\"currentColor\"}))}E(L5,\"SvgStop\");function F5(e){var t=e,{title:n,titleId:r}=t,i=mt(t,[\"title\",\"titleId\"]);return I.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?I.createElement(\"title\",{id:r},n):null,I.createElement(\"rect\",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:\"currentColor\",strokeWidth:1.2}),I.createElement(\"rect\",{x:5.5,y:5.5,width:2,height:2,rx:1,fill:\"currentColor\"}))}E(F5,\"SvgType\");var AG=Object.defineProperty,R5=E((e,t)=>AG(e,\"name\",{value:t,configurable:!0}),\"__name$F\");const OG=At(o5,\"argument icon\"),IG=At(a5,\"chevron down icon\"),LG=At(s5,\"chevron left icon\"),FG=At(l5,\"chevron up icon\"),HT=At(u5,\"close icon\"),RG=At(c5,\"copy icon\"),PG=At(f5,\"deprecated argument icon\"),MG=At(d5,\"deprecated enum value icon\"),$G=At(p5,\"deprecated field icon\"),VG=At(h5,\"directive icon\"),BG=At(v5,\"filled docs icon\"),jG=At(m5,\"docs icon\"),UG=At(g5,\"enum value icon\"),qG=At(y5,\"field icon\"),HG=At(b5,\"history icon\"),zG=At(E5,\"implements icon\"),GG=At(w5,\"keyboard shortcut icon\"),WG=At(S5,\"magnifying glass icon\"),QG=At(T5,\"merge icon\"),YG=At(_5,\"pen icon\"),JG=At(C5,\"play icon\"),P5=At(x5,\"plus icon\"),KG=At(k5,\"prettify icon\"),XG=At(N5,\"reload icon\"),ZG=At(D5,\"root type icon\"),eW=At(A5,\"settings icon\"),tW=At(O5,\"filled star icon\"),nW=At(I5,\"star icon\"),rW=At(L5,\"stop icon\"),zT=At(F5,\"type icon\");function At(e,t){const n=R5(E(function(i){return ie(e,Xt(Dt({},i),{title:t}))},\"IconComponent\"),\"IconComponent\");return Object.defineProperty(n,\"name\",{value:e.name}),n}E(At,\"generateIcon\"),R5(At,\"generateIcon\");var iW=Object.defineProperty,oW=E((e,t)=>iW(e,\"name\",{value:t,configurable:!0}),\"__name$E\");function Yr(...e){let t=\"\";for(const n of e)n&&(t+=(t?\" \":\"\")+n);return t}E(Yr,\"compose\"),oW(Yr,\"compose\");const ir=I.forwardRef((e,t)=>ie(\"button\",Xt(Dt({},e),{ref:t,className:Yr(\"graphiql-un-styled\",e.className)})));ir.displayName=\"UnStyledButton\";const Cl=I.forwardRef((e,t)=>ie(\"button\",Xt(Dt({},e),{ref:t,className:Yr(\"graphiql-button\",e.state===\"success\"?\"graphiql-button-success\":e.state===\"error\"?\"graphiql-button-error\":\"\",e.className)})));Cl.displayName=\"Button\";const M5=I.forwardRef((e,t)=>ie(\"div\",Xt(Dt({},e),{ref:t,className:`graphiql-button-group ${e.className||\"\"}`.trim()})));M5.displayName=\"ButtonGroup\";function GT(){return!!(typeof window<\"u\"&&window.document&&window.document.createElement)}E(GT,\"canUseDOM\");var ys=GT()?I.useLayoutEffect:I.useEffect;function WT(){var e=I.useState(Object.create(null)),t=e[1];return I.useCallback(function(){t(Object.create(null))},[])}E(WT,\"useForceUpdate\");function $5(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($5,\"_objectWithoutPropertiesLoose$b\");var aW=[\"unstable_skipInitialRender\"],sW=E(function(t){var n=t.children,r=t.type,i=r===void 0?\"reach-portal\":r,o=t.containerRef,s=I.useRef(null),l=I.useRef(null),c=WT();return ys(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?P2.createPortal(n,l.current):I.createElement(\"span\",{ref:s})},\"PortalImpl\"),QT=E(function(t){var n=t.unstable_skipInitialRender,r=$5(t,aW),i=I.useState(!1),o=i[0],s=i[1];return I.useEffect(function(){n&&s(!0)},[n]),n&&!o?null:I.createElement(sW,r)},\"Portal\");function ra(e){return GT()?e?e.ownerDocument:document:null}E(ra,\"getOwnerDocument\");function YT(e){return typeof e==\"boolean\"}E(YT,\"isBoolean\");function Na(e){return!!(e&&{}.toString.call(e)==\"[object Function]\")}E(Na,\"isFunction$1\");function Fy(e){return typeof e==\"string\"}E(Fy,\"isString$1\");function Bu(){}E(Bu,\"noop\");function JT(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(JT,\"_arrayLikeToArray\");function V5(e,t){if(e){if(typeof e==\"string\")return JT(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 JT(e,t)}}E(V5,\"_unsupportedIterableToArray\");function B5(e,t){var n;if(typeof Symbol>\"u\"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=V5(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(B5,\"_createForOfIteratorHelperLoose\");function j5(e,t){if(e!=null)if(Na(e))e(t);else try{e.current=t}catch{throw new Error('Cannot assign value \"'+t+'\" to ref \"'+e+'\"')}}E(j5,\"assignRef$1\");function Ir(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return I.useCallback(function(r){for(var i=B5(t),o;!(o=i()).done;){var s=o.value;j5(s,r)}},t)}E(Ir,\"useComposedRefs\");function it(e,t){return function(n){if(e&&e(n),!n.defaultPrevented)return t(n)}}E(it,\"composeEventHandlers\");function U5(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(U5,\"_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 lW=\"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED\",uW=lW,cW=uW;function KT(){}E(KT,\"emptyFunction$1\");function XT(){}E(XT,\"emptyFunctionWithReset$1\"),XT.resetWarningCache=KT;var fW=E(function(){function e(r,i,o,s,l,c){if(c!==cW){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:XT,resetWarningCache:KT};return n.PropTypes=n,n},\"factoryWithThrowingShims$1\");fW();var ZT=\"data-focus-lock\",q5=\"data-focus-lock-disabled\",dW=\"data-no-focus-lock\",pW=\"data-autofocus-inside\",hW=\"data-no-autofocus\";function H5(e,t){return typeof e==\"function\"?e(t):e&&(e.current=t),e}E(H5,\"assignRef\");function z5(e,t){var n=I.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(z5,\"useCallbackRef\");function e_(e,t){return z5(t||null,function(n){return e.forEach(function(r){return H5(r,n)})})}E(e_,\"useMergeRefs\");var t_={width:\"1px\",height:\"0px\",padding:0,overflow:\"hidden\",position:\"fixed\",top:\"1px\",left:\"1px\"},Da=E(function(){return Da=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\"),Da.apply(this,arguments)},\"__assign\");function n_(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(n_,\"__rest\");function G5(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(G5,\"__spreadArray\");function r_(e){return e}E(r_,\"ItoI\");function i_(e,t){t===void 0&&(t=r_);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(i_,\"innerCreateMedium\");function Ry(e,t){return t===void 0&&(t=r_),i_(e,t)}E(Ry,\"createMedium\");function o_(e){e===void 0&&(e={});var t=i_(null);return t.options=Da({async:!0,ssr:!1},e),t}E(o_,\"createSidecarMedium\");var W5=E(function(e){var t=e.sideCar,n=n_(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 I.createElement(r,Da({},n))},\"SideCar$1\");W5.isSideCarExport=!0;function Q5(e,t){return e.useMedium(t),W5}E(Q5,\"exportSidecar\");var Y5=Ry({},function(e){var t=e.target,n=e.currentTarget;return{target:t,currentTarget:n}}),J5=Ry(),vW=Ry(),mW=o_({async:!0}),gW=[],a_=I.forwardRef(E(function(t,n){var r,i=I.useState(),o=i[0],s=i[1],l=I.useRef(),c=I.useRef(!1),f=I.useRef(null),h=t.children,g=t.disabled,m=t.noFocusGuards,y=t.persistentFocus,T=t.crossFrame,x=t.autoFocus;t.allowTextSelection;var D=t.group,_=t.className,b=t.whiteList,C=t.hasPositiveIndices,S=t.shards,N=S===void 0?gW:S,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=I.useState({}),X=j[0],ne=I.useCallback(function(){f.current=f.current||document&&document.activeElement,l.current&&z&&z(l.current),c.current=!0},[z]),J=I.useCallback(function(){c.current=!1,U&&U(l.current)},[U]);I.useEffect(function(){g||(f.current=null)},[]);var re=I.useCallback(function(we){var Ce=f.current;if(Ce&&Ce.focus){var He=typeof H==\"function\"?H(Ce):H;if(He){var cn=typeof He==\"object\"?He:void 0;f.current=null,we?Promise.resolve().then(function(){return Ce.focus(cn)}):Ce.focus(cn)}}},[H]),Z=I.useCallback(function(we){c.current&&Y5.useMedium(we)},[]),de=J5.useMedium,K=I.useCallback(function(we){l.current!==we&&(l.current=we,s(we))},[]),ve=wf((r={},r[q5]=g&&\"disabled\",r[ZT]=D,r),P),ue=m!==!0,ce=ue&&m!==\"tail\",le=e_([n,K]);return I.createElement(I.Fragment,null,ue&&[I.createElement(\"div\",{key:\"guard-first\",\"data-focus-guard\":!0,tabIndex:g?-1:0,style:t_}),C?I.createElement(\"div\",{key:\"guard-nearest\",\"data-focus-guard\":!0,tabIndex:g?-1:1,style:t_}):null],!g&&I.createElement(V,{id:X,sideCar:mW,observed:o,disabled:g,persistentFocus:y,crossFrame:T,autoFocus:x,whiteList:b,shards:N,onActivation:ne,onDeactivation:J,returnFocus:re,focusOptions:G}),I.createElement(L,wf({ref:le},ve,{className:_,onBlur:de,onFocus:Z}),h),ce&&I.createElement(\"div\",{\"data-focus-guard\":!0,tabIndex:g?-1:0,style:t_}))},\"FocusLockUI\"));a_.propTypes={},a_.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 K5=a_;function Py(e,t){return Py=Object.setPrototypeOf?Object.setPrototypeOf.bind():E(function(r,i){return r.__proto__=i,r},\"_setPrototypeOf\"),Py(e,t)}E(Py,\"_setPrototypeOf\");function X5(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Py(e,t)}E(X5,\"_inheritsLoose\");function Z5(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}E(Z5,\"_defineProperty\");function e3(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){X5(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}(I.PureComponent);return Z5(c,\"displayName\",\"SideEffect(\"+n(i)+\")\"),c},\"wrap\")}E(e3,\"withSideEffect\");var Aa=E(function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},\"toArray\"),s_=E(function(e){return Array.isArray(e)?e:[e]},\"asArray\"),yW=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\"),t3=E(function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},\"getParentNode\"),n3=E(function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},\"isTopNode\"),bW=E(function(e,t){return!e||n3(e)||!yW(e)&&t(t3(e))},\"isVisibleUncached\"),r3=E(function(e,t){var n=e.get(t);if(n!==void 0)return n;var r=bW(t,r3.bind(void 0,e));return e.set(t,r),r},\"isVisibleCached\"),EW=E(function(e,t){return e&&!n3(e)?TW(e)?t(t3(e)):!1:!0},\"isAutoFocusAllowedUncached\"),i3=E(function(e,t){var n=e.get(t);if(n!==void 0)return n;var r=EW(t,i3.bind(void 0,e));return e.set(t,r),r},\"isAutoFocusAllowedCached\"),o3=E(function(e){return e.dataset},\"getDataset\"),wW=E(function(e){return e.tagName===\"BUTTON\"},\"isHTMLButtonElement\"),a3=E(function(e){return e.tagName===\"INPUT\"},\"isHTMLInputElement\"),s3=E(function(e){return a3(e)&&e.type===\"radio\"},\"isRadioElement\"),SW=E(function(e){return!((a3(e)||wW(e))&&(e.type===\"hidden\"||e.disabled))},\"notHiddenInput\"),TW=E(function(e){var t=e.getAttribute(hW);return![!0,\"true\",\"\"].includes(t)},\"isAutoFocusAllowed\"),l_=E(function(e){var t;return!!(e&&(!((t=o3(e))===null||t===void 0)&&t.focusGuard))},\"isGuard\"),My=E(function(e){return!l_(e)},\"isNotAGuard\"),_W=E(function(e){return!!e},\"isDefined\"),CW=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\"),l3=E(function(e,t,n){return Aa(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(CW)},\"orderByTabIndex\"),xW=[\"button:enabled\",\"select:enabled\",\"textarea:enabled\",\"input:enabled\",\"a[href]\",\"area[href]\",\"summary\",\"iframe\",\"object\",\"embed\",\"audio[controls]\",\"video[controls]\",\"[tabindex]\",\"[contenteditable]\",\"[autofocus]\"],u_=xW.join(\",\"),kW=\"\".concat(u_,\", [data-focus-guard]\"),u3=E(function(e,t){var n;return Aa(((n=e.shadowRoot)===null||n===void 0?void 0:n.children)||e.children).reduce(function(r,i){return r.concat(i.matches(t?kW:u_)?[i]:[],u3(i))},[])},\"getFocusablesWithShadowDom\"),c_=E(function(e,t){return e.reduce(function(n,r){return n.concat(u3(r,t),r.parentNode?Aa(r.parentNode.querySelectorAll(u_)).filter(function(i){return i===r}):[])},[])},\"getFocusables\"),NW=E(function(e){var t=e.querySelectorAll(\"[\".concat(pW,\"]\"));return Aa(t).map(function(n){return c_([n])}).reduce(function(n,r){return n.concat(r)},[])},\"getParentAutofocusables\"),f_=E(function(e,t){return Aa(e).filter(function(n){return r3(t,n)}).filter(function(n){return SW(n)})},\"filterFocusable\"),c3=E(function(e,t){return t===void 0&&(t=new Map),Aa(e).filter(function(n){return i3(t,n)})},\"filterAutoFocusable\"),d_=E(function(e,t,n){return l3(f_(c_(e,n),t),!0,n)},\"getTabbableNodes\"),f3=E(function(e,t){return l3(f_(c_(e),t),!1)},\"getAllTabbableNodes\"),DW=E(function(e,t){return f_(NW(e),t)},\"parentAutofocusables\"),ph=E(function(e,t){return(e.shadowRoot?ph(e.shadowRoot,t):Object.getPrototypeOf(e).contains.call(e,t))||Aa(e.children).some(function(n){return ph(n,t)})},\"contains\"),AW=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\"),d3=E(function(e){return e.parentNode?d3(e.parentNode):e},\"getTopParent\"),p_=E(function(e){var t=s_(e);return t.filter(Boolean).reduce(function(n,r){var i=r.getAttribute(ZT);return n.push.apply(n,i?AW(Aa(d3(r).querySelectorAll(\"[\".concat(ZT,'=\"').concat(i,'\"]:not([').concat(q5,'=\"disabled\"])')))):[r]),n},[])},\"getAllAffectedNodes\"),p3=E(function(e){return e.activeElement?e.activeElement.shadowRoot?p3(e.activeElement.shadowRoot):e.activeElement:void 0},\"getNestedShadowActiveElement\"),h_=E(function(){return document.activeElement?document.activeElement.shadowRoot?p3(document.activeElement.shadowRoot):document.activeElement:void 0},\"getActiveElement\"),OW=E(function(e){return e===document.activeElement},\"focusInFrame\"),IW=E(function(e){return!!Aa(e.querySelectorAll(\"iframe\")).some(function(t){return OW(t)})},\"focusInsideIframe\"),h3=E(function(e){var t=document&&h_();return!t||t.dataset&&t.dataset.focusGuard?!1:p_(e).some(function(n){return ph(n,t)||IW(n)})},\"focusInside\"),LW=E(function(){var e=document&&h_();return e?Aa(document.querySelectorAll(\"[\".concat(dW,\"]\"))).some(function(t){return ph(t,e)}):!1},\"focusIsHidden\"),FW=E(function(e,t){return t.filter(s3).filter(function(n){return n.name===e.name}).filter(function(n){return n.checked})[0]||e},\"findSelectedRadio\"),v_=E(function(e,t){return s3(e)&&e.name?FW(e,t):e},\"correctNode\"),RW=E(function(e){var t=new Set;return e.forEach(function(n){return t.add(v_(n,e))}),e.filter(function(n){return t.has(n)})},\"correctNodes\"),v3=E(function(e){return e[0]&&e.length>1?v_(e[0],e):e[0]},\"pickFirstFocus\"),m3=E(function(e,t){return e.length>1?e.indexOf(v_(e[t],e)):t},\"pickFocusable\"),g3=\"NEW_FOCUS\",PW=E(function(e,t,n,r){var i=e.length,o=e[0],s=e[i-1],l=l_(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),T=RW(t),x=n!==void 0?T.indexOf(n):-1,D=x-(r?T.indexOf(r):c),_=m3(e,0),b=m3(e,i-1);if(c===-1||h===-1)return g3;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\"),m_=E(function(e,t){return t===void 0&&(t=[]),t.push(e),e.parentNode&&m_(e.parentNode.host||e.parentNode,t),t},\"getParents\"),g_=E(function(e,t){for(var n=m_(e),r=m_(t),i=0;i<n.length;i+=1){var o=n[i];if(r.indexOf(o)>=0)return o}return!1},\"getCommonParent\"),y3=E(function(e,t,n){var r=s_(e),i=s_(t),o=r[0],s=!1;return i.filter(Boolean).forEach(function(l){s=g_(s||l,l)||s,n.filter(Boolean).forEach(function(c){var f=g_(o,c);f&&(!s||ph(f,s)?s=f:s=g_(f,s))})}),s},\"getTopCommonParent\"),MW=E(function(e,t){return e.reduce(function(n,r){return n.concat(DW(r,t))},[])},\"allParentAutofocusables\"),$W=E(function(e){return function(t){var n;return t.autofocus||!!(!((n=o3(t))===null||n===void 0)&&n.autofocus)||e.indexOf(t)>=0}},\"findAutoFocused\"),VW=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(_W)},\"reorderNodes\"),BW=E(function(e,t){var n=document&&h_(),r=p_(e).filter(My),i=y3(n||e,e,r),o=new Map,s=f3(r,o),l=d_(r,o).filter(function(y){var T=y.node;return My(T)});if(!(!l[0]&&(l=s,!l[0]))){var c=f3([i],o).map(function(y){var T=y.node;return T}),f=VW(c,l),h=f.map(function(y){var T=y.node;return T}),g=PW(h,c,n,t);if(g===g3){var m=c3(s.map(function(y){var T=y.node;return T})).filter($W(MW(r,o)));return{node:m&&m.length?v3(m):v3(c3(h))}}return g===void 0?g:f[g]}},\"getFocusMerge\"),jW=E(function(e){var t=p_(e).filter(My),n=y3(e,e,t),r=new Map,i=d_([n],r,!0),o=d_(t,r).filter(function(s){var l=s.node;return My(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:l_(l)}})},\"getFocusabledIn\"),UW=E(function(e,t){\"focus\"in e&&e.focus(t),\"contentWindow\"in e&&e.contentWindow&&e.contentWindow.focus()},\"focusOn\"),y_=0,b_=!1,qW=E(function(e,t,n){n===void 0&&(n={});var r=BW(e,t);if(!b_&&r){if(y_>2){console.error(\"FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting\"),b_=!0,setTimeout(function(){b_=!1},1);return}y_++,UW(r.node,n.focusOptions),y_--}},\"setFocus\"),b3=qW;function E_(e){var t=window,n=t.setImmediate;typeof n<\"u\"?n(e):setTimeout(e,1)}E(E_,\"deferAction\");var HW=E(function(){return document&&document.activeElement===document.body},\"focusOnBody\"),zW=E(function(){return HW()||LW()},\"isFreeFocus\"),Sf=null,Tf=null,_f=null,hh=!1,GW=E(function(){return!0},\"defaultWhitelist\"),WW=E(function(t){return(Sf.whiteList||GW)(t)},\"focusWhitelisted\"),QW=E(function(t,n){_f={observerNode:t,portaledElement:n}},\"recordPortal\"),YW=E(function(t){return _f&&_f.portaledElement===t},\"focusIsPortaledPair\");function w_(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(w_,\"autoGuard\");var JW=E(function(t){return t&&\"current\"in t?t.current:t},\"extractRef\"),KW=E(function(t){return t?!!hh:hh===\"meanwhile\"},\"focusWasOutside\"),XW=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\"),ZW=E(function(t,n){return n.some(function(r){return XW(t,r,r)})},\"withinHost\"),$y=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(JW).filter(Boolean));if((!h||WW(h))&&(i||KW(l)||!zW()||!Tf&&o)&&(f&&!(h3(g)||h&&ZW(h,g)||YW(h))&&(document&&!Tf&&h&&!o?(h.blur&&h.blur(),document.body.focus()):(t=b3(g,Tf,{focusOptions:c}),_f={})),hh=!1,Tf=document&&document.activeElement),document){var m=document&&document.activeElement,y=jW(g),T=y.map(function(x){var D=x.node;return D}).indexOf(m);T>-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\")}),w_(T,y.length,1,y),w_(T,-1,-1,y))}}}return t},\"activateTrap\"),E3=E(function(t){$y()&&t&&(t.stopPropagation(),t.preventDefault())},\"onTrap\"),S_=E(function(){return E_($y)},\"onBlur\"),eQ=E(function(t){var n=t.target,r=t.currentTarget;r.contains(n)||QW(r,n)},\"onFocus\"),tQ=E(function(){return null},\"FocusWatcher\"),w3=E(function(){hh=\"just\",setTimeout(function(){hh=\"meanwhile\"},0)},\"onWindowBlur\"),nQ=E(function(){document.addEventListener(\"focusin\",E3),document.addEventListener(\"focusout\",S_),window.addEventListener(\"blur\",w3)},\"attachHandler\"),rQ=E(function(){document.removeEventListener(\"focusin\",E3),document.removeEventListener(\"focusout\",S_),window.removeEventListener(\"blur\",w3)},\"detachHandler\");function S3(e){return e.filter(function(t){var n=t.disabled;return!n})}E(S3,\"reducePropsToState\");function T3(e){var t=e.slice(-1)[0];t&&!Sf&&nQ();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(),$y(),E_($y)):(rQ(),Tf=null)}E(T3,\"handleStateChangeOnClient\"),Y5.assignSyncMedium(eQ),J5.assignMedium(S_),vW.assignMedium(function(e){return e({moveFocusInside:b3,focusInside:h3})});var iQ=e3(S3,T3)(tQ),_3=I.forwardRef(E(function(t,n){return I.createElement(K5,wf({sideCar:iQ,ref:n},t))},\"FocusLockUICombination\")),C3=K5.propTypes||{};C3.sideCar,U5(C3,[\"sideCar\"]),_3.propTypes={};var oQ=_3,Vy=\"right-scroll-bar-position\",By=\"width-before-scroll-bar\",aQ=\"with-scroll-bars-hidden\",sQ=\"--removed-body-scroll-bar-size\",x3=o_(),T_=E(function(){},\"nothing\"),jy=I.forwardRef(function(e,t){var n=I.useRef(null),r=I.useState({onScrollCapture:T_,onWheelCapture:T_,onTouchMoveCapture:T_}),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,T=e.inert,x=e.allowPinchZoom,D=e.as,_=D===void 0?\"div\":D,b=n_(e,[\"forwardProps\",\"children\",\"className\",\"removeScrollBar\",\"enabled\",\"shards\",\"sideCar\",\"noIsolation\",\"inert\",\"allowPinchZoom\",\"as\"]),C=m,S=e_([n,t]),N=Da(Da({},b),i);return I.createElement(I.Fragment,null,h&&I.createElement(C,{sideCar:x3,removeScrollBar:f,shards:g,noIsolation:y,inert:T,setCallbacks:o,allowPinchZoom:!!x,lockRef:n}),s?I.cloneElement(I.Children.only(l),Da(Da({},N),{ref:S})):I.createElement(_,Da({},N,{className:c,ref:S}),l))});jy.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},jy.classNames={fullWidth:By,zeroRight:Vy};var lQ=E(function(){if(typeof __webpack_nonce__<\"u\")return __webpack_nonce__},\"getNonce\");function k3(){if(!document)return null;var e=document.createElement(\"style\");e.type=\"text/css\";var t=lQ();return t&&e.setAttribute(\"nonce\",t),e}E(k3,\"makeStyleTag\");function N3(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}E(N3,\"injectStyles\");function D3(e){var t=document.head||document.getElementsByTagName(\"head\")[0];t.appendChild(e)}E(D3,\"insertStyleTag\");var uQ=E(function(){var e=0,t=null;return{add:function(n){e==0&&(t=k3())&&(N3(t,n),D3(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},\"stylesheetSingleton\"),cQ=E(function(){var e=uQ();return function(t,n){I.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},\"styleHookSingleton\"),A3=E(function(){var e=cQ(),t=E(function(n){var r=n.styles,i=n.dynamic;return e(r,i),null},\"Sheet\");return t},\"styleSingleton\"),fQ={left:0,top:0,right:0,gap:0},__=E(function(e){return parseInt(e||\"\",10)||0},\"parse$1\"),dQ=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),__(r),__(i)]},\"getOffset\"),pQ=E(function(e){if(e===void 0&&(e=\"margin\"),typeof window>\"u\")return fQ;var t=dQ(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\"),hQ=A3(),vQ=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(aQ,` {\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(Vy,` {\n right: `).concat(l,\"px \").concat(r,`;\n }\n \n .`).concat(By,` {\n margin-right: `).concat(l,\"px \").concat(r,`;\n }\n \n .`).concat(Vy,\" .\").concat(Vy,` {\n right: 0 `).concat(r,`;\n }\n \n .`).concat(By,\" .\").concat(By,` {\n margin-right: 0 `).concat(r,`;\n }\n \n body {\n `).concat(sQ,\": \").concat(l,`px;\n }\n`)},\"getStyles$2\"),mQ=E(function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?\"margin\":r,o=I.useMemo(function(){return pQ(i)},[i]);return I.createElement(hQ,{styles:vQ(o,!t,i,n?\"\":\"!important\")})},\"RemoveScrollBar\"),C_=!1;if(typeof window<\"u\")try{var Uy=Object.defineProperty({},\"passive\",{get:function(){return C_=!0,!0}});window.addEventListener(\"test\",Uy,Uy),window.removeEventListener(\"test\",Uy,Uy)}catch{C_=!1}var Cf=C_?{passive:!1}:!1,gQ=E(function(e){return e.tagName===\"TEXTAREA\"},\"alwaysContainsScroll\"),O3=E(function(e,t){var n=window.getComputedStyle(e);return n[t]!==\"hidden\"&&!(n.overflowY===n.overflowX&&!gQ(e)&&n[t]===\"visible\")},\"elementCanBeScrolled\"),yQ=E(function(e){return O3(e,\"overflowY\")},\"elementCouldBeVScrolled\"),bQ=E(function(e){return O3(e,\"overflowX\")},\"elementCouldBeHScrolled\"),I3=E(function(e,t){var n=t;do{typeof ShadowRoot<\"u\"&&n instanceof ShadowRoot&&(n=n.host);var r=L3(e,n);if(r){var i=F3(e,n),o=i[1],s=i[2];if(o>s)return!0}n=n.parentNode}while(n&&n!==document.body);return!1},\"locationCouldBeScrolled\"),EQ=E(function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},\"getVScrollVariables\"),wQ=E(function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},\"getHScrollVariables\"),L3=E(function(e,t){return e===\"v\"?yQ(t):bQ(t)},\"elementCouldBeScrolled\"),F3=E(function(e,t){return e===\"v\"?EQ(t):wQ(t)},\"getScrollVariables\"),SQ=E(function(e,t){return e===\"h\"&&t===\"rtl\"?-1:1},\"getDirectionFactor\"),TQ=E(function(e,t,n,r,i){var o=SQ(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=F3(e,l),T=y[0],x=y[1],D=y[2],_=x-D-o*T;(T||_)&&L3(e,l)&&(g+=_,m+=T),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\"),qy=E(function(e){return\"changedTouches\"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},\"getTouchXY\"),R3=E(function(e){return[e.deltaX,e.deltaY]},\"getDeltaXY\"),P3=E(function(e){return e&&\"current\"in e?e.current:e},\"extractRef\"),_Q=E(function(e,t){return e[0]===t[0]&&e[1]===t[1]},\"deltaCompare\"),CQ=E(function(e){return`\n .block-interactivity-`.concat(e,` {pointer-events: none;}\n .allow-interactivity-`).concat(e,` {pointer-events: all;}\n`)},\"generateStyle\"),xQ=0,xf=[];function M3(e){var t=I.useRef([]),n=I.useRef([0,0]),r=I.useRef(),i=I.useState(xQ++)[0],o=I.useState(function(){return A3()})[0],s=I.useRef(e);I.useEffect(function(){s.current=e},[e]),I.useEffect(function(){if(e.inert){document.body.classList.add(\"block-interactivity-\".concat(i));var x=G5([e.lockRef.current],(e.shards||[]).map(P3),!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=I.useCallback(function(x,D){if(\"touches\"in x&&x.touches.length===2)return!s.current.allowPinchZoom;var _=qy(x),b=n.current,C=\"deltaX\"in x?x.deltaX:b[0]-_[0],S=\"deltaY\"in x?x.deltaY:b[1]-_[1],N,F=x.target,L=Math.abs(C)>Math.abs(S)?\"h\":\"v\";if(\"touches\"in x&&L===\"h\"&&F.type===\"range\")return!1;var A=I3(L,F);if(!A)return!0;if(A?N=L:(N=L===\"v\"?\"h\":\"v\",A=I3(L,F)),!A)return!1;if(!r.current&&\"changedTouches\"in x&&(C||S)&&(r.current=N),!N)return!0;var P=r.current||N;return TQ(P,D,x,P===\"h\"?C:S,!0)},[]),c=I.useCallback(function(x){var D=x;if(!(!xf.length||xf[xf.length-1]!==o)){var _=\"deltaY\"in D?R3(D):qy(D),b=t.current.filter(function(N){return N.name===D.type&&N.target===D.target&&_Q(N.delta,_)})[0];if(b&&b.should){D.cancelable&&D.preventDefault();return}if(!b){var C=(s.current.shards||[]).map(P3).filter(Boolean).filter(function(N){return N.contains(D.target)}),S=C.length>0?l(D,C[0]):!s.current.noIsolation;S&&D.cancelable&&D.preventDefault()}}},[]),f=I.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(S){return S!==C})},1)},[]),h=I.useCallback(function(x){n.current=qy(x),r.current=void 0},[]),g=I.useCallback(function(x){f(x.type,R3(x),x.target,l(x,e.lockRef.current))},[]),m=I.useCallback(function(x){f(x.type,qy(x),x.target,l(x,e.lockRef.current))},[]);I.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,T=e.inert;return I.createElement(I.Fragment,null,T?I.createElement(o,{styles:CQ(i)}):null,y?I.createElement(mQ,{gapMode:\"margin\"}):null)}E(M3,\"RemoveScrollSideCar\");var kQ=Q5(x3,M3),$3=I.forwardRef(function(e,t){return I.createElement(jy,Da({},e,{ref:t,sideCar:kQ}))});$3.classNames=jy.classNames;var NQ=$3,V3={exports:{}},DQ=\"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED\",AQ=DQ,OQ=AQ;function x_(){}E(x_,\"emptyFunction\");function k_(){}E(k_,\"emptyFunctionWithReset\"),k_.resetWarningCache=x_;var IQ=E(function(){function e(r,i,o,s,l,c){if(c!==OQ){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:k_,resetWarningCache:x_};return n.PropTypes=n,n},\"factoryWithThrowingShims\");V3.exports=IQ();var Hy=V3.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 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$9\");var LQ=[\"as\",\"isOpen\"],FQ=[\"allowPinchZoom\",\"as\",\"dangerouslyBypassFocusLock\",\"dangerouslyBypassScrollLock\",\"initialFocusRef\",\"onClick\",\"onDismiss\",\"onKeyDown\",\"onMouseDown\",\"unstable_lockFocusAcrossFrames\"],RQ=[\"as\",\"onClick\",\"onKeyDown\"],PQ=[\"allowPinchZoom\",\"initialFocusRef\",\"isOpen\",\"onDismiss\"];Hy.bool,Hy.bool,Hy.bool,Hy.func;var MQ=I.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=vh(t,LQ);return I.useEffect(function(){s?window.__REACH_DISABLE_TOOLTIPS=!0:window.requestAnimationFrame(function(){window.__REACH_DISABLE_TOOLTIPS=!1})},[s]),s?I.createElement(QT,{\"data-reach-dialog-wrapper\":\"\"},I.createElement($Q,ju({ref:n,as:i},l))):null},\"DialogOverlay\")),$Q=I.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,T=t.onKeyDown,x=t.onMouseDown,D=t.unstable_lockFocusAcrossFrames,_=vh(t,FQ),b=I.useRef(null),C=I.useRef(null),S=Ir(C,n),N=I.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\"),I.useEffect(function(){return C.current?B3(C.current):void 0},[]),I.createElement(oQ,{autoFocus:!0,returnFocus:!0,onActivation:N,disabled:l,crossFrame:D??!0},I.createElement(NQ,{allowPinchZoom:r,enabled:!f},I.createElement(o,ju({},_,{ref:S,\"data-reach-dialog-overlay\":\"\",onClick:it(g,F),onKeyDown:it(T,L),onMouseDown:it(x,A)}))))},\"DialogInner\")),VQ=I.forwardRef(E(function(t,n){var r=t.as,i=r===void 0?\"div\":r,o=t.onClick;t.onKeyDown;var s=vh(t,RQ);return I.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\")),BQ=I.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=vh(t,PQ);return I.createElement(MQ,{allowPinchZoom:i,initialFocusRef:o,isOpen:s,onDismiss:c},I.createElement(VQ,ju({ref:n},f)))},\"Dialog\"));function B3(e){var t=[],n=[],r=ra(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(B3,\"createAriaHider\");function mh(){return mh=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},mh.apply(this,arguments)}E(mh,\"_extends$8\");function j3(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(j3,\"_objectWithoutPropertiesLoose$8\");var jQ=[\"as\",\"style\"],U3=I.forwardRef(E(function(t,n){var r=t.as,i=r===void 0?\"span\":r,o=t.style,s=o===void 0?{}:o,l=j3(t,jQ);return I.createElement(i,mh({ref:n,style:mh({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\")),UQ=Object.defineProperty,qQ=E((e,t)=>UQ(e,\"name\",{value:t,configurable:!0}),\"__name$D\");const kf=qQ((e,t)=>Object.entries(t).reduce((n,[r,i])=>(n[r]=i,n),e),\"createComponentGroup\"),q3=I.forwardRef((e,t)=>ie(BQ,Xt(Dt({},e),{ref:t})));q3.displayName=\"Dialog\";const H3=I.forwardRef((e,t)=>lt(ir,Xt(Dt({},e),{ref:t,type:\"button\",className:Yr(\"graphiql-dialog-close\",e.className),children:[ie(U3,{children:\"Close dialog\"}),ie(HT,{})]})));H3.displayName=\"Dialog.Close\";const zy=kf(q3,{Close:H3});var N_=!1,HQ=0;function D_(){return++HQ}E(D_,\"genId\");function gh(e){var t;if(typeof I.useId==\"function\"){var n=I.useId(e);return e??n}var r=e??(N_?D_():null),i=I.useState(r),o=i[0],s=i[1];return ys(function(){o===null&&s(D_())},[]),I.useEffect(function(){N_===!1&&(N_=!0)},[]),(t=e??o)!=null?t:void 0}E(gh,\"useId\");var zQ=[\"bottom\",\"height\",\"left\",\"right\",\"top\",\"width\"],GQ=E(function(t,n){return t===void 0&&(t={}),n===void 0&&(n={}),zQ.some(function(r){return t[r]!==n[r]})},\"rectChanged\"),xl=new Map,z3,WQ=E(function e(){var t=[];xl.forEach(function(n,r){var i=r.getBoundingClientRect();GQ(i,n.rect)&&(n.rect=i,t.push(n))}),t.forEach(function(n){n.callbacks.forEach(function(r){return r(n.rect)})}),z3=window.requestAnimationFrame(e)},\"run\");function G3(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&&WQ()},\"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(z3)}},\"unobserve\")}}E(G3,\"observeRect\");function yh(e,t,n){var r,i;if(YT(t))r=t;else{var o;r=(o=t==null?void 0:t.observe)!=null?o:!0,i=t==null?void 0:t.onChange}Na(n)&&(i=n);var s=I.useState(e.current),l=s[0],c=s[1],f=I.useRef(!1),h=I.useRef(!1),g=I.useState(null),m=g[0],y=g[1],T=I.useRef(i);return ys(function(){T.current=i,e.current!==l&&c(e.current)}),ys(function(){l&&!f.current&&(f.current=!0,y(l.getBoundingClientRect()))},[l]),ys(function(){if(r){var x=l;if(h.current||(h.current=!0,x=e.current),!!x){var D=G3(x,function(_){T.current==null||T.current(_),y(_)});return D.observe(),function(){D.unobserve()}}}},[r,l,e]),m}E(yh,\"useRect\");var W3=[\"input\",\"select\",\"textarea\",\"a[href]\",\"button\",\"[tabindex]\",\"audio[controls]\",\"video[controls]\",'[contenteditable]:not([contenteditable=\"false\"])'],A_=W3.join(\",\"),O_=typeof Element>\"u\"?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;function Gy(e,t){t=t||{};var n=[],r=[],i=e.querySelectorAll(A_);t.includeContainer&&O_.call(e,A_)&&(i=Array.prototype.slice.apply(i),i.unshift(e));var o,s,l;for(o=0;o<i.length;o++)s=i[o],I_(s)&&(l=F_(s),l===0?n.push(s):r.push({documentOrder:o,tabIndex:l,node:s}));var c=r.sort(J3).map(function(f){return f.node}).concat(n);return c}E(Gy,\"tabbable\"),Gy.isTabbable=Q3,Gy.isFocusable=Y3;function I_(e){return!(!L_(e)||eP(e)||F_(e)<0)}E(I_,\"isNodeMatchingSelectorTabbable\");function Q3(e){if(!e)throw new Error(\"No node provided\");return O_.call(e,A_)===!1?!1:I_(e)}E(Q3,\"isTabbable\");function L_(e){return!(e.disabled||X3(e)||rP(e))}E(L_,\"isNodeMatchingSelectorFocusable\");var QQ=W3.concat(\"iframe\").join(\",\");function Y3(e){if(!e)throw new Error(\"No node provided\");return O_.call(e,QQ)===!1?!1:L_(e)}E(Y3,\"isFocusable\");function F_(e){var t=parseInt(e.getAttribute(\"tabindex\"),10);return isNaN(t)?K3(e)?0:e.tabIndex:t}E(F_,\"getTabindex\");function J3(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}E(J3,\"sortOrderedTabbables\");function K3(e){return e.contentEditable===\"true\"}E(K3,\"isContentEditable\");function R_(e){return e.tagName===\"INPUT\"}E(R_,\"isInput\");function X3(e){return R_(e)&&e.type===\"hidden\"}E(X3,\"isHiddenInput\");function Z3(e){return R_(e)&&e.type===\"radio\"}E(Z3,\"isRadio\");function eP(e){return Z3(e)&&!nP(e)}E(eP,\"isNonTabbableRadio\");function tP(e){for(var t=0;t<e.length;t++)if(e[t].checked)return e[t]}E(tP,\"getCheckedRadio\");function nP(e){if(!e.name)return!0;var t=e.ownerDocument.querySelectorAll('input[type=\"radio\"][name=\"'+e.name+'\"]'),n=tP(t);return!n||n===e}E(nP,\"isTabbableRadio\");function rP(e){return e.offsetParent===null||getComputedStyle(e).visibility===\"hidden\"}E(rP,\"isHidden\");var bs=Gy;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 P_(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(P_,\"_objectWithoutPropertiesLoose$7\");var YQ=[\"unstable_skipInitialPortalRender\"],JQ=[\"as\",\"targetRef\",\"position\",\"unstable_observableRefs\"],M_=I.forwardRef(E(function(t,n){var r=t.unstable_skipInitialPortalRender,i=P_(t,YQ);return I.createElement(QT,{unstable_skipInitialRender:r},I.createElement(KQ,kl({ref:n},i)))},\"Popover\")),KQ=I.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?XQ:s,c=t.unstable_observableRefs,f=c===void 0?[]:c,h=P_(t,JQ),g=I.useRef(null),m=yh(g,{observe:!h.hidden}),y=yh(o,{observe:!h.hidden}),T=Ir(g,n);return aP(o,g),I.createElement(i,kl({\"data-reach-popover\":\"\",ref:T},h,{style:kl({position:\"absolute\"},iP.apply(void 0,[l,y,m].concat(f)),h.style)}))},\"PopoverImpl\"));function iP(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(iP,\"getStyles$1\");function $_(e,t,n){return{top:n?e.top-t.height+window.pageYOffset+\"px\":e.top+e.height+window.pageYOffset+\"px\"}}E($_,\"getTopPosition\");var XQ=E(function(t,n){if(!t||!n)return{};var r=V_(t,n),i=r.directionRight,o=r.directionUp;return kl({left:i?t.right-n.width+window.pageXOffset+\"px\":t.left+window.pageXOffset+\"px\"},$_(t,n,o))},\"positionDefault\"),oP=E(function(t,n){if(!t||!n)return{};var r=V_(t,n),i=r.directionUp;return kl({width:t.width,left:t.left},$_(t,n,i))},\"positionMatchWidth\");function V_(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(V_,\"getCollisions\");function aP(e,t){var n=ra(e.current);function r(b){b.key===\"Tab\"&&t.current&&bs(t.current).length===0||(b.key===\"Tab\"&&b.shiftKey?f(b)?h(b):g(b)?m(b):T(b)&&D():b.key===\"Tab\"&&(o()?s(b):l()?c(b):y(b)&&D()))}E(r,\"handleKeyDown\"),I.useEffect(function(){return n.addEventListener(\"keydown\",r),function(){n.removeEventListener(\"keydown\",r)}},[]);function i(){var b=bs(n),C=b&&e.current?b.indexOf(e.current):-1,S=b&&b[C+1];return t.current&&t.current.contains(S||null)?!1:S}E(i,\"getElementAfterTrigger\");function o(){return e.current?e.current===n.activeElement:!1}E(o,\"tabbedFromTriggerToPopover\");function s(b){var C=t.current&&bs(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&&bs(t.current);return!!(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&&bs(t.current),S=C&&C[C.length-1];S&&(b.preventDefault(),S.focus())}E(h,\"focusLastTabbableInPopover\");function g(b){var C=t.current&&bs(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?bs(n).filter(function(S){return!t.current.contains(S)}):null;return C?b.target===C[C.length-1]:!1}E(y,\"tabbedToBrowserChrome\");function T(b){return b.target===bs(n)[0]}E(T,\"shiftTabbedToBrowserChrome\");var x=[];function D(){var b=t.current&&bs(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],S=b[1];C.tabIndex=S})}E(_,\"enableTabbablesInPopover\")}E(aP,\"useSimulateTabNavigationForReactTree\");function sP(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(sP,\"_objectWithoutPropertiesLoose$6\");function Es(){return Es=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},Es.apply(this,arguments)}E(Es,\"_extends$6\");var ZQ=[\"element\",\"index\"];function Wy(e,t){t===void 0&&(t={});var n=[],r=I.createContext(Es({descendants:n,registerDescendant:Bu,unregisterDescendant:Bu},t));return r}E(Wy,\"createDescendantContext\");function Qy(e,t,n){var r=WT(),i=I.useContext(t),o=i.registerDescendant,s=i.unregisterDescendant,l=i.descendants,c=n??l.findIndex(function(f){return f.element===e.element});return ys(function(){return e.element||r(),o(Es({},e,{index:c})),function(){s(e.element)}},[e,r,c,o,s].concat(Object.values(e))),c}E(Qy,\"useDescendant\");function Yy(){return I.useState([])}E(Yy,\"useDescendantsInit\");function Jy(e){return I.useContext(e).descendants}E(Jy,\"useDescendants\");function Ky(e){var t=e.context,n=e.children,r=e.items,i=e.set,o=I.useCallback(function(l){var c=l.element,f=l.index,h=sP(l,ZQ);c&&i(function(g){var m;if(f!=null)return[].concat(g,[Es({},h,{element:c,index:f})]).sort(function(x,D){return x.index-D.index});if(g.length===0)m=[Es({},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:!!(x.element.compareDocumentPosition(c)&Node.DOCUMENT_POSITION_PRECEDING)}),T=Es({},h,{element:c,index:y});y===-1?m=[].concat(g,[T]):m=[].concat(g.slice(0,y),[T],g.slice(y))}return m.map(function(x,D){return Es({},x,{index:D})})})},[]),s=I.useCallback(function(l){l&&i(function(c){return c.filter(function(f){return l!==f.element})})},[]);return I.createElement(t.Provider,{value:I.useMemo(function(){return{descendants:r,registerDescendant:o,unregisterDescendant:s}},[r,o,s])},n)}E(Ky,\"DescendantProvider\");function B_(e,t){var n=I.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,T=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 S(){var X=_===L().index;return X?m?F():b[C]:b[(C+1)%b.length]}E(S,\"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=S();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=(T?S:N)();i(c===\"option\"?V:V[c])}break;case\"ArrowRight\":if(h===\"horizontal\"||h===\"both\"){D.preventDefault();var H=(T?N:S)();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?S:L)();i(c===\"option\"?U:U[c]);break;case\"End\":D.preventDefault();var j=L();i(c===\"option\"?j:j[c]);break}},\"handleKeyDown\")}E(B_,\"useDescendantKeyDown\");function Oa(e){return\"which\"in e?e.which===3:\"button\"in e?e.button===2:!1}E(Oa,\"isRightClick\");function lP(e,t){var n=I.useRef(t);return e(function(){n.current=t}),I.useCallback(function(){n.current&&n.current.apply(n,arguments)},[])}E(lP,\"createStableCallbackHook\");function uP(e){return lP(I.useEffect,e)}E(uP,\"useStableCallback\");function cP(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(cP,\"_objectWithoutPropertiesLoose$5\");var eY=[\"children\"];function Xy(e,t){var n=I.createContext(t);return n}E(Xy,\"createNamedContext\");function fP(e,t){var n=I.createContext(t);function r(o){var s=o.children,l=cP(o,eY),c=I.useMemo(function(){return l},Object.values(l));return I.createElement(n.Provider,{value:c},s)}E(r,\"Provider\");function i(o){var s=I.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(fP,\"createContext\");function ia(){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(ia,\"makeId\");function Zy(e,t){var n=I.useState(t),r=n[0],i=n[1],o=I.useCallback(function(s){e.current=s,i(s)},[]);return[r,o]}E(Zy,\"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 tY={type:\"xstate.init\"};function j_(e){return e===void 0?[]:[].concat(e)}E(j_,\"e$1\");function Ia(e){return{type:\"xstate.assign\",assignment:e}}E(Ia,\"r$1\");function U_(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(U_,\"i$1\");function e0(e){return function(t){return e===t}}E(e0,\"o\");function q_(e){return typeof e==\"string\"?{type:e}:e}E(q_,\"a\");function H_(e,t){return{value:e,context:t,actions:[],changed:!1,matches:e0(e)}}E(H_,\"u\");function dP(e,t){t===void 0&&(t={});var n={config:e,_options:t,initialState:{value:e.initial,actions:j_(e.states[e.initial].entry).map(function(r){return U_(r,t.actions)}),context:e.context,matches:e0(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=q_(i),g=e.states[c];if(g.on){var m=j_(g.on[h.type]),y=E(function(_){if(_===void 0)return{value:H_(c,f)};var b=typeof _==\"string\"?{target:_}:_,C=b.target,S=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[S],V=!1,H=[].concat(g.exit,F,P.entry).filter(function(G){return G}).map(function(G){return U_(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:S,context:A,actions:H,changed:S!==c||H.length>0||V,matches:e0(S)}}}},\"x\");try{for(var T=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=T.next();!x.done;x=T.next()){var D=y(x.value);if(typeof D==\"object\")return D.value}}catch(_){o={error:_}}finally{try{x&&!x.done&&(s=T.return)&&s.call(T)}finally{if(o)throw o.error}}}return H_(c,f)}};return n}E(dP,\"c$1\");var pP=E(function(e,t){return e.actions.forEach(function(n){var r=n.exec;return r&&r(e.context,t)})},\"s\");function hP(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),pP(t,q_(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,pP(t,tY),i},stop:function(){return n=Nf.Stopped,r.clear(),i},get state(){return t},get status(){return n}};return i}E(hP,\"f$1\");function z_(e){var t=I.useRef();return t.current||(t.current={v:e()}),t.current.v}E(z_,\"useConstant\");function bh(){return bh=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},bh.apply(this,arguments)}E(bh,\"_extends$5\");var nY=E(function(t){var n;return t.subscribe(function(r){n=r}).unsubscribe(),n},\"getServiceState\");function vP(e,t,n){var r=I.useRef(e),i=z_(function(){return hP(r.current).start()}),o=I.useRef(null),s=I.useState(function(){return nY(i)}),l=s[0],c=s[1],f=I.useCallback(function(g){var m=Fy(g)?{type:g}:g,y=mP(t);i.send(bh({},m,{lastEventType:o.current,refs:y})),o.current=m.type},[n]);I.useEffect(function(){return i.subscribe(E(function(m){m.changed&&c(m)},\"setStateIfChanged\")),function(){i.stop()}},[i]),I.useEffect(function(){},[n,l]);var h=I.useMemo(function(){return bh({},l,{matches:E(function(m){return m===l.value},\"matches\")})},[l.changed,l.context,l.value]);return[h,f,i]}E(vP,\"useMachine\");function mP(e){return Object.entries(e).reduce(function(t,n){var r=n[0],i=n[1];return t[r]=i.current,t},{})}E(mP,\"unwrapRefs\");function gP(e,t){return z_(function(){return dP(e,t)})}E(gP,\"useCreateMachine\");function Lr(){return Lr=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},Lr.apply(this,arguments)}E(Lr,\"_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 t0,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 Eh=Ia({navigationValue:null}),Qe=Ia({typeaheadQuery:null}),yr=Ia({value:E(function(t,n){return n.value},\"value\")}),Oi=Ia({navigationValue:E(function(t,n){return n.value},\"navigationValue\")}),Uu=Ia({navigationValue:E(function(t){var n=bP(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 wh(e,t){if(t.type===Ee.Blur){var n=t.refs,r=n.list,i=n.popover,o=t.relatedTarget,s=ra(i);return!!((s==null?void 0:s.activeElement)!==r&&i&&!i.contains(o||(s==null?void 0:s.activeElement)))}return!1}E(wh,\"listboxLostFocus\");function ws(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(ws,\"clickedOutsideOfListbox\");function La(e,t){return!!e.options.find(function(n){return n.value===e.navigationValue})}E(La,\"optionIsActive\");function Sh(e,t){var n=t.refs,r=n.popover,i=n.list,o=t.relatedTarget;return r&&o&&r.contains(o)&&o!==i?!1:La(e)}E(Sh,\"shouldNavigate\");function di(e,t){requestAnimationFrame(function(){t.refs.list&&t.refs.list.focus()})}E(di,\"focusList\");function Zt(e,t){t.refs.button&&t.refs.button.focus()}E(Zt,\"focusButton\");function qu(e,t){return!t.disabled}E(qu,\"listboxIsNotDisabled\");function oa(e,t){return!(t.type===Ee.OptionTouchStart&&t&&t.disabled)}E(oa,\"optionIsNavigable\");function br(e,t){return\"disabled\"in t&&t.disabled?!1:\"value\"in t?t.value!=null:e.navigationValue!=null}E(br,\"optionIsSelectable\");function or(e,t){t.callback&&t.callback(t.value)}E(or,\"selectOption\");function yP(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(yP,\"submitForm\");var n0=Ia({typeaheadQuery:E(function(t,n){return(t.typeaheadQuery||\"\")+n.query},\"typeaheadQuery\")}),rY=Ia({value:E(function(t,n){if(n.type===Ee.UpdateAfterTypeahead&&n.query){var r=W_(t.options,n.query);if(r&&!r.disabled)return n.callback&&n.callback(r.value),r.value}return t.value},\"value\")}),G_=Ia({navigationValue:E(function(t,n){if(n.type===Ee.UpdateAfterTypeahead&&n.query){var r=W_(t.options,n.query);if(r&&!r.disabled)return r.value}return t.navigationValue},\"navigationValue\")}),Th=(t0={},t0[Ee.GetDerivedData]={actions:Ia(function(e,t){return Lr({},e,t.data)})},t0[Ee.ValueChange]={actions:[yr,or]},t0),iY=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:Lr({},Th,(n={},n[Ee.ButtonMouseDown]={target:Te.Open,actions:[Uu],cond:qu},n[Ee.KeyDownSpace]={target:Te.Navigating,actions:[Uu,di],cond:qu},n[Ee.KeyDownSearch]={target:Te.Idle,actions:n0,cond:qu},n[Ee.UpdateAfterTypeahead]={target:Te.Idle,actions:[rY],cond:qu},n[Ee.ClearTypeahead]={target:Te.Idle,actions:Qe},n[Ee.KeyDownNavigate]={target:Te.Navigating,actions:[Uu,Qe,di],cond:qu},n[Ee.KeyDownEnter]={actions:[yP],cond:qu},n))},l[Te.Interacting]={entry:[Eh],on:Lr({},Th,(r={},r[Ee.ClearNavSelection]={actions:[Eh,di]},r[Ee.KeyDownEnter]={target:Te.Idle,actions:[yr,Qe,Zt,or],cond:br},r[Ee.KeyDownSpace]={target:Te.Idle,actions:[yr,Qe,Zt,or],cond:br},r[Ee.ButtonMouseDown]={target:Te.Idle,actions:[Zt]},r[Ee.KeyDownEscape]={target:Te.Idle,actions:[Zt]},r[Ee.OptionMouseDown]={target:Te.Dragging},r[Ee.OutsideMouseDown]=[{target:Te.Idle,cond:ws,actions:Qe},{target:Te.Dragging,actions:Qe,cond:La}],r[Ee.OutsideMouseUp]=[{target:Te.Idle,cond:ws,actions:Qe},{target:Te.Navigating,cond:La},{target:Te.Interacting,actions:Qe}],r[Ee.KeyDownEnter]=Te.Interacting,r[Ee.Blur]=[{target:Te.Idle,cond:wh,actions:Qe},{target:Te.Navigating,cond:Sh},{target:Te.Interacting,actions:Qe}],r[Ee.OptionTouchStart]={target:Te.Navigating,actions:[Oi,Qe],cond:oa},r[Ee.OptionClick]={target:Te.Idle,actions:[yr,Qe,Zt,or],cond:br},r[Ee.OptionPress]={target:Te.Idle,actions:[yr,Qe,Zt,or],cond:br},r[Ee.OptionMouseEnter]={target:Te.Navigating,actions:[Oi,Qe],cond:oa},r[Ee.KeyDownNavigate]={target:Te.Navigating,actions:[Oi,Qe,di]},r))},l[Te.Open]={on:Lr({},Th,(i={},i[Ee.ClearNavSelection]={actions:[Eh]},i[Ee.KeyDownEnter]={target:Te.Idle,actions:[yr,Qe,Zt,or],cond:br},i[Ee.KeyDownSpace]={target:Te.Idle,actions:[yr,Qe,Zt,or],cond:br},i[Ee.ButtonMouseDown]={target:Te.Idle,actions:[Zt]},i[Ee.KeyDownEscape]={target:Te.Idle,actions:[Zt]},i[Ee.OptionMouseDown]={target:Te.Dragging},i[Ee.OutsideMouseDown]=[{target:Te.Idle,cond:ws,actions:Qe},{target:Te.Dragging,cond:La},{target:Te.Interacting,actions:Qe}],i[Ee.OutsideMouseUp]=[{target:Te.Idle,cond:ws,actions:Qe},{target:Te.Navigating,cond:La},{target:Te.Interacting,actions:Qe}],i[Ee.Blur]=[{target:Te.Idle,cond:wh,actions:Qe},{target:Te.Navigating,cond:Sh},{target:Te.Interacting,actions:Qe}],i[Ee.ButtonMouseUp]={target:Te.Navigating,actions:[Uu,di]},i[Ee.ListMouseUp]={target:Te.Navigating,actions:[Uu,di]},i[Ee.OptionTouchStart]={target:Te.Navigating,actions:[Oi,Qe],cond:oa},i[Ee.OptionClick]={target:Te.Idle,actions:[yr,Qe,Zt,or],cond:br},i[Ee.OptionPress]={target:Te.Idle,actions:[yr,Qe,Zt,or],cond:br},i[Ee.KeyDownNavigate]={target:Te.Navigating,actions:[Oi,Qe,di]},i[Ee.KeyDownSearch]={target:Te.Navigating,actions:n0},i[Ee.UpdateAfterTypeahead]={actions:[G_]},i[Ee.ClearTypeahead]={actions:Qe},i[Ee.OptionMouseMove]=[{target:Te.Dragging,actions:[Oi],cond:oa},{target:Te.Dragging}],i))},l[Te.Dragging]={on:Lr({},Th,(o={},o[Ee.ClearNavSelection]={actions:[Eh]},o[Ee.KeyDownEnter]={target:Te.Idle,actions:[yr,Qe,Zt,or],cond:br},o[Ee.KeyDownSpace]={target:Te.Idle,actions:[yr,Qe,Zt,or],cond:br},o[Ee.ButtonMouseDown]={target:Te.Idle,actions:[Zt]},o[Ee.KeyDownEscape]={target:Te.Idle,actions:[Zt]},o[Ee.OptionMouseDown]={target:Te.Dragging},o[Ee.OutsideMouseDown]=[{target:Te.Idle,cond:ws,actions:Qe},{target:Te.Navigating,cond:La},{target:Te.Interacting,actions:Qe}],o[Ee.OutsideMouseUp]=[{target:Te.Idle,cond:ws,actions:Qe},{target:Te.Navigating,cond:La,actions:di},{target:Te.Interacting,actions:[Qe,di]}],o[Ee.Blur]=[{target:Te.Idle,cond:wh,actions:Qe},{target:Te.Navigating,cond:Sh},{target:Te.Interacting,actions:Qe}],o[Ee.ButtonMouseUp]={target:Te.Navigating,actions:[Uu,di]},o[Ee.OptionTouchStart]={target:Te.Navigating,actions:[Oi,Qe],cond:oa},o[Ee.OptionClick]={target:Te.Idle,actions:[yr,Qe,Zt,or],cond:br},o[Ee.OptionPress]={target:Te.Idle,actions:[yr,Qe,Zt,or],cond:br},o[Ee.OptionMouseEnter]={target:Te.Dragging,actions:[Oi,Qe],cond:oa},o[Ee.KeyDownNavigate]={target:Te.Navigating,actions:[Oi,Qe,di]},o[Ee.KeyDownSearch]={target:Te.Navigating,actions:n0},o[Ee.UpdateAfterTypeahead]={actions:[G_]},o[Ee.ClearTypeahead]={actions:Qe},o[Ee.OptionMouseMove]=[{target:Te.Navigating,actions:[Oi],cond:oa},{target:Te.Navigating}],o[Ee.OptionMouseUp]={target:Te.Idle,actions:[yr,Qe,Zt,or],cond:br},o))},l[Te.Navigating]={on:Lr({},Th,(s={},s[Ee.ClearNavSelection]={actions:[Eh,di]},s[Ee.KeyDownEnter]={target:Te.Idle,actions:[yr,Qe,Zt,or],cond:br},s[Ee.KeyDownSpace]={target:Te.Idle,actions:[yr,Qe,Zt,or],cond:br},s[Ee.ButtonMouseDown]={target:Te.Idle,actions:[Zt]},s[Ee.KeyDownEscape]={target:Te.Idle,actions:[Zt]},s[Ee.OptionMouseDown]={target:Te.Dragging},s[Ee.OutsideMouseDown]=[{target:Te.Idle,cond:ws,actions:Qe},{target:Te.Navigating,cond:La},{target:Te.Interacting,actions:Qe}],s[Ee.OutsideMouseUp]=[{target:Te.Idle,cond:ws,actions:Qe},{target:Te.Navigating,cond:La},{target:Te.Interacting,actions:Qe}],s[Ee.Blur]=[{target:Te.Idle,cond:wh,actions:Qe},{target:Te.Navigating,cond:Sh},{target:Te.Interacting,actions:Qe}],s[Ee.ButtonMouseUp]={target:Te.Navigating,actions:[Uu,di]},s[Ee.OptionTouchStart]={target:Te.Navigating,actions:[Oi,Qe],cond:oa},s[Ee.OptionClick]={target:Te.Idle,actions:[yr,Qe,Zt,or],cond:br},s[Ee.OptionPress]={target:Te.Idle,actions:[yr,Qe,Zt,or],cond:br},s[Ee.OptionMouseEnter]={target:Te.Navigating,actions:[Oi,Qe],cond:oa},s[Ee.KeyDownNavigate]={target:Te.Navigating,actions:[Oi,Qe,di]},s[Ee.KeyDownSearch]={target:Te.Navigating,actions:n0},s[Ee.UpdateAfterTypeahead]={actions:[G_]},s[Ee.ClearTypeahead]={actions:Qe},s[Ee.OptionMouseMove]=[{target:Te.Navigating,actions:[Oi],cond:oa},{target:Te.Navigating}],s))},l)}},\"createMachineDefinition\");function W_(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(W_,\"findOptionFromTypeahead\");function bP(e,t){return e?t.find(function(n){return n.value===e}):void 0}E(bP,\"findOptionFromValue\");var oY=[\"as\",\"aria-labelledby\",\"aria-label\",\"children\",\"defaultValue\",\"disabled\",\"form\",\"name\",\"onChange\",\"required\",\"value\",\"__componentName\"],aY=[\"arrow\",\"button\",\"children\",\"portal\"],sY=[\"aria-label\",\"arrow\",\"as\",\"children\",\"onKeyDown\",\"onMouseDown\",\"onMouseUp\"],lY=[\"as\",\"children\"],uY=[\"as\",\"position\",\"onBlur\",\"onKeyDown\",\"onMouseUp\",\"portal\",\"unstable_observableRefs\"],cY=[\"as\"],fY=[\"as\",\"children\",\"disabled\",\"index\",\"label\",\"onClick\",\"onMouseDown\",\"onMouseEnter\",\"onMouseLeave\",\"onMouseMove\",\"onMouseUp\",\"onTouchStart\",\"value\"],dY=!1,r0=Wy(),Dl=Xy(\"ListboxContext\",{}),EP=I.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,T=t.required,x=t.value;t.__componentName;var D=Nl(t,oY),_=I.useRef(x!=null),b=Yy(),C=b[0],S=b[1],N=I.useRef(null),F=I.useRef(null),L=I.useRef(null),A=I.useRef(null),P=I.useRef(null),V=I.useRef(null),H=I.useRef(null),G=gP(iY({value:(_.current?x:c)||null})),z=vP(G,{button:N,hiddenInput:F,highlightedOption:L,input:A,list:P,popover:V,selectedOption:H},dY),U=z[0],j=z[1];function X(ce){ce!==U.context.value&&(y==null||y(ce))}E(X,\"handleValueChange\");var ne=gh(D.id),J=D.id||ia(\"listbox-input\",ne),re=Ir(A,n),Z=I.useMemo(function(){var ce=C.find(function(le){return le.value===U.context.value});return ce?ce.label:null},[C,U.context.value]),de=TP(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=I.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 _P(x,U.context.value,function(){j({type:Ee.ValueChange,value:x})}),ys(function(){j({type:Ee.GetDerivedData,data:{options:C}})},[C,j]),I.useEffect(function(){function ce(le){var we=le.target,Ce=le.relatedTarget;J_(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]),I.useEffect(function(){function ce(le){var we=le.target,Ce=le.relatedTarget;J_(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]),I.createElement(i,Lr({},D,{ref:re,\"data-reach-listbox-input\":\"\",\"data-state\":de?\"expanded\":\"closed\",\"data-value\":U.context.value,id:J}),I.createElement(Dl.Provider,{value:K},I.createElement(Ky,{context:r0,items:C,set:S},Na(l)?l({id:J,isExpanded:de,value:U.context.value,selectedOptionRef:H,highlightedOptionRef:L,valueLabel:Z,expanded:de}):l,(g||m||T)&&I.createElement(\"input\",{ref:F,\"data-reach-listbox-hidden-input\":\"\",disabled:h,form:g,name:m,readOnly:!0,required:T,tabIndex:-1,type:\"hidden\",value:U.context.value||\"\"}))))},\"ListboxInput\")),pY=I.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,aY);return I.createElement(EP,Lr({},f,{__componentName:\"Listbox\",ref:n}),function(h){var g=h.value,m=h.valueLabel;return I.createElement(I.Fragment,null,I.createElement(wP,{arrow:i,children:o?Na(o)?o({value:g,label:m}):o:void 0}),I.createElement(SP,{portal:c},I.createElement(yY,null,s)))})},\"Listbox\")),hY=I.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,sY),y=I.useContext(Dl),T=y.buttonRef,x=y.send,D=y.ariaLabelledBy,_=y.disabled,b=y.isExpanded,C=y.listboxId,S=y.stateData,N=y.listboxValueLabel,F=S.value,L=Ir(T,n),A=Q_();function P(z){Oa(z.nativeEvent)||(z.preventDefault(),z.stopPropagation(),x({type:Ee.ButtonMouseDown,disabled:_}))}E(P,\"handleMouseDown\");function V(z){Oa(z.nativeEvent)||(z.preventDefault(),z.stopPropagation(),x({type:Ee.ButtonMouseUp}))}E(V,\"handleMouseUp\");var H=ia(\"button\",C),G=I.useMemo(function(){if(c){if(Na(c))return c({isExpanded:b,label:N,value:F,expanded:b})}else return N;return c},[c,N,b,F]);return I.createElement(l,Lr({\"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&&I.createElement(mY,null,YT(o)?null:o))},\"ListboxButton\")),wP=I.memo(hY),vY=I.forwardRef(E(function(t,n){var r=t.as,i=r===void 0?\"span\":r,o=t.children,s=Nl(t,lY),l=I.useContext(Dl),c=l.isExpanded;return I.createElement(i,Lr({\"aria-hidden\":!0},s,{ref:n,\"data-reach-listbox-arrow\":\"\",\"data-expanded\":c?\"\":void 0}),Na(o)?o({isExpanded:c,expanded:c}):o||\"▼\")},\"ListboxArrow\")),mY=I.memo(vY),gY=I.forwardRef(E(function(t,n){var r=t.as,i=r===void 0?\"div\":r,o=t.position,s=o===void 0?oP: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,uY),T=I.useContext(Dl),x=T.isExpanded,D=T.buttonRef,_=T.popoverRef,b=T.send,C=Ir(_,n),S=Q_();function N(){b({type:Ee.ListMouseUp})}E(N,\"handleMouseUp\");var F=Lr({hidden:!x,tabIndex:-1},y,{ref:C,\"data-reach-listbox-popover\":\"\",onMouseUp:it(f,N),onBlur:it(l,L),onKeyDown:it(c,S)});function L(A){var P=A.nativeEvent;requestAnimationFrame(function(){b({type:Ee.Blur,relatedTarget:P.relatedTarget||P.target})})}return E(L,\"handleBlur\"),g?I.createElement(M_,Lr({},F,{as:i,targetRef:D,position:s,unstable_observableRefs:m,unstable_skipInitialPortalRender:!0})):I.createElement(i,F)},\"ListboxPopover\")),SP=I.memo(gY),yY=I.forwardRef(E(function(t,n){var r=t.as,i=r===void 0?\"ul\":r,o=Nl(t,cY),s=I.useContext(Dl),l=s.listRef,c=s.ariaLabel,f=s.ariaLabelledBy,h=s.isExpanded,g=s.listboxId,m=s.stateData,y=m.value,T=m.navigationValue,x=Ir(n,l);return I.createElement(i,Lr({\"aria-activedescendant\":Y_(h?T:y),\"aria-labelledby\":c?void 0:f,\"aria-label\":c,role:\"listbox\",tabIndex:-1},o,{ref:x,\"data-reach-listbox-list\":\"\",id:ia(\"listbox\",g)}))},\"ListboxList\")),bY=I.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,T=t.onMouseUp,x=t.onTouchStart,D=t.value,_=Nl(t,fY),b=I.useContext(Dl),C=b.highlightedOptionRef,S=b.selectedOptionRef,N=b.send,F=b.isExpanded,L=b.onValueChange,A=b.state,P=b.stateData,V=P.value,H=P.navigationValue,G=I.useState(c),z=G[0],U=G[1],j=c||z||\"\",X=I.useRef(null),ne=Zy(X,null),J=ne[0],re=ne[1],Z=I.useMemo(function(){return{element:J,value:D,label:j,disabled:!!s}},[s,J,j,D]);Qy(Z,r0,l);var de=I.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=Ir(de,n,re,ve?S: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){Oa(et.nativeEvent)||(et.preventDefault(),N({type:Ee.OptionMouseDown}))}E(Ce,\"handleMouseDown\");function He(et){Oa(et.nativeEvent)||N({type:Ee.OptionMouseUp,value:D,callback:L,disabled:!!s})}E(He,\"handleMouseUp\");function cn(et){Oa(et.nativeEvent)||N({type:Ee.OptionClick,value:D,callback:L,disabled:!!s})}E(cn,\"handleClick\");function nt(){(A===Te.Open||H!==D)&&N({type:Ee.OptionMouseMove,value:D,disabled:!!s})}return E(nt,\"handleMouseMove\"),I.createElement(i,Lr({\"aria-selected\":(F?K:ve)||void 0,\"aria-disabled\":s||void 0,role:\"option\"},_,{ref:ue,id:Y_(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,cn),onMouseDown:it(h,Ce),onMouseEnter:it(g,ce),onMouseLeave:it(m,we),onMouseMove:it(y,nt),onMouseUp:it(T,He),onTouchStart:it(x,le)}),o)},\"ListboxOption\"));function TP(e){return[Te.Navigating,Te.Open,Te.Dragging,Te.Interacting].includes(e)}E(TP,\"isListboxExpanded\");function Q_(){var e=I.useContext(Dl),t=e.send,n=e.disabled,r=e.onValueChange,i=e.stateData,o=i.navigationValue,s=i.typeaheadQuery,l=Jy(r0),c=uP(r);I.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=Fy(m)&&m.length===1,T=l.find(function(D){return D.value===o});switch(m){case\"Enter\":t({type:Ee.KeyDownEnter,value:o,callback:r,disabled:!!(T!=null&&T.disabled||n)});return;case\" \":g.preventDefault(),t({type:Ee.KeyDownSpace,value:o,callback:r,disabled:!!(T!=null&&T.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}},B_(r0,{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(Q_,\"useKeyDown$1\");function Y_(e){var t=I.useContext(Dl),n=t.listboxId;return e?ia(\"option-\"+e,n):void 0}E(Y_,\"useOptionId\");function J_(e,t){return!!(e&&e.contains(t))}E(J_,\"popoverContainsEventTarget$1\");function _P(e,t,n){var r=I.useRef(e!=null),i=r.current;i&&e!==t&&n()}E(_P,\"useControlledStateSync\");function i0(e){var t=I.useRef(null);return I.useEffect(function(){t.current=e},[e]),t.current}E(i0,\"usePrevious\");function _h(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(_h,\"_objectWithoutPropertiesLoose$3\");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$3\");var EY=[\"onKeyDown\",\"onMouseDown\",\"id\",\"ref\"],wY=[\"index\",\"isLink\",\"onClick\",\"onDragStart\",\"onMouseDown\",\"onMouseEnter\",\"onMouseLeave\",\"onMouseMove\",\"onMouseUp\",\"onSelect\",\"disabled\",\"onFocus\",\"valueText\",\"ref\"],SY=[\"id\",\"onKeyDown\",\"ref\"],TY=[\"onBlur\",\"portal\",\"position\",\"ref\"],CP=\"CLEAR_SELECTION_INDEX\",K_=\"CLICK_MENU_ITEM\",Ch=\"CLOSE_MENU\",_Y=\"OPEN_MENU_AT_FIRST_ITEM\",X_=\"OPEN_MENU_AT_INDEX\",xP=\"OPEN_MENU_CLEARED\",Z_=\"SEARCH_FOR_ITEM\",Al=\"SELECT_ITEM_AT_INDEX\",kP=\"SET_BUTTON_ID\",o0=Wy(),NP=fP(\"Dropdown\"),CY=NP[0],xh=NP[1],xY={triggerId:null,isExpanded:!1,typeaheadQuery:\"\",selectionIndex:-1},kY=E(function(t){var n=t.id,r=t.children,i=I.useRef(null),o=I.useRef(null),s=I.useRef(null),l=Yy(),c=l[0],f=l[1],h=gh(n),g=n||ia(\"menu\",h),m=ia(\"menu-button\",g),y=I.useReducer(RP,Fr({},xY,{triggerId:m})),T=y[0],x=y[1],D=I.useRef(!1),_=I.useRef([]),b=I.useRef(!1),C=I.useRef({x:0,y:0});return I.useEffect(function(){T.isExpanded?(window.__REACH_DISABLE_TOOLTIPS=!0,window.requestAnimationFrame(function(){kh(o.current)})):window.__REACH_DISABLE_TOOLTIPS=!1},[T.isExpanded]),I.createElement(Ky,{context:o0,items:c,set:f},I.createElement(CY,{dispatch:x,dropdownId:g,dropdownRef:o,mouseDownStartPosRef:C,popoverRef:s,readyToSelect:b,selectCallbacks:_,state:T,triggerClickedRef:D,triggerRef:i},Na(r)?r({isExpanded:T.isExpanded,isOpen:T.isExpanded}):r))},\"DropdownProvider_\");function DP(e){var t=e.onKeyDown,n=e.onMouseDown,r=e.id,i=e.ref,o=_h(e,EY),s=xh(\"useDropdownTrigger\"),l=s.dispatch,c=s.dropdownId,f=s.mouseDownStartPosRef,h=s.triggerClickedRef,g=s.triggerRef,m=s.state,y=m.triggerId,T=m.isExpanded,x=Ir(g,i),D=tC(),_=I.useMemo(function(){return D.findIndex(function(S){return!S.disabled})},[D]);I.useEffect(function(){r!=null&&r!==y&&l({type:kP,payload:r})},[y,l,r]);function b(S){switch(S.key){case\"ArrowDown\":case\"ArrowUp\":S.preventDefault(),l({type:X_,payload:{index:_}});break;case\"Enter\":case\" \":l({type:X_,payload:{index:_}});break}}E(b,\"handleKeyDown\");function C(S){Oa(S.nativeEvent)||(f.current={x:S.clientX,y:S.clientY},T||(h.current=!0),l(T?{type:Ch}:{type:xP}))}return E(C,\"handleMouseDown\"),{data:{isExpanded:T,controls:c},props:Fr({},o,{ref:x,id:y||void 0,onKeyDown:it(t,b),onMouseDown:it(n,C),type:\"button\"})}}E(DP,\"useDropdownTrigger\");function AP(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,T=e.valueText,x=e.ref,D=_h(e,wY),_=xh(\"useDropdownItem\"),b=_.dispatch,C=_.dropdownRef,S=_.mouseDownStartPosRef,N=_.readyToSelect,F=_.selectCallbacks,L=_.triggerRef,A=_.state,P=A.selectionIndex,V=A.isExpanded,H=I.useRef(null),G=I.useState(T||\"\"),z=G[0],U=G[1],j=I.useCallback(function(vt){!T&&vt!=null&&vt.textContent&&U(vt.textContent)},[T]),X=I.useRef(!1),ne=Zy(H,null),J=ne[0],re=ne[1],Z=I.useMemo(function(){return{element:J,key:z,disabled:m,isLink:r}},[m,J,r,z]),de=Qy(Z,o0,t),K=de===P&&!m,ve=Ir(x,re,j);F.current[de]=g;function ue(){kh(L.current),g&&g(),b({type:K_})}E(ue,\"select\");function ce(vt){Oa(vt.nativeEvent)||r&&(m?vt.preventDefault():ue())}E(ce,\"handleClick\");function le(vt){r&&vt.preventDefault()}E(le,\"handleDragStart\");function we(vt){Oa(vt.nativeEvent)||(r?X.current=!0:vt.preventDefault())}E(we,\"handleMouseDown\");function Ce(vt){var xn=ra(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 He(vt){b({type:CP})}E(He,\"handleMouseLeave\");function cn(vt){if(!N.current){var xn=8,st=Math.abs(vt.clientX-S.current.x),ur=Math.abs(vt.clientY-S.current.y);(st>xn||ur>xn)&&(N.current=!0)}!K&&de!=null&&!m&&b({type:Al,payload:{index:de,dropdownRef:C}})}E(cn,\"handleMouseMove\");function nt(){N.current=!0,!K&&de!=null&&!m&&b({type:Al,payload:{index:de}})}E(nt,\"handleFocus\");function et(vt){if(!Oa(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\"),I.useEffect(function(){if(V){var vt=window.setTimeout(function(){N.current=!0},400);return function(){window.clearTimeout(vt)}}else N.current=!1},[V,N]),I.useEffect(function(){var vt=ra(H.current);return vt.addEventListener(\"mouseup\",xn),function(){vt.removeEventListener(\"mouseup\",xn)};function xn(){X.current=!1}},[]),{data:{disabled:m},props:Fr({id:eC(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,He),onMouseMove:it(f,cn),onFocus:it(y,nt),onMouseUp:it(h,et)})}}E(AP,\"useDropdownItem\");function OP(e){e.id;var t=e.onKeyDown,n=e.ref,r=_h(e,SY),i=xh(\"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,T=h.typeaheadQuery,x=tC(),D=Ir(l,n);I.useEffect(function(){var N=LP(x,T);T&&N!=null&&o({type:Al,payload:{index:N,dropdownRef:l}});var F=window.setTimeout(function(){return T&&o({type:Z_,payload:\"\"})},1e3);return function(){return window.clearTimeout(F)}},[o,x,T,l]);var _=i0(x.length),b=i0(x[y]),C=i0(y);I.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 S=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():(kh(s.current),c.current[A.index]&&c.current[A.index](),o({type:K_})));break;case\"Escape\":kh(s.current),o({type:Ch});break;case\"Tab\":F.preventDefault();break;default:if(Fy(L)&&L.length===1){var P=T+L.toLowerCase();o({type:Z_,payload:P})}break}},\"handleKeyDown\"),B_(o0,{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:eC(y)||void 0,triggerId:m},props:Fr({tabIndex:-1},r,{ref:D,id:f,onKeyDown:it(t,S)})}}E(OP,\"useDropdownItems\");function IP(e){var t=e.onBlur,n=e.portal,r=n===void 0?!0:n,i=e.position,o=e.ref,s=_h(e,TY),l=xh(\"useDropdownPopover\"),c=l.triggerRef,f=l.triggerClickedRef,h=l.dispatch,g=l.dropdownRef,m=l.popoverRef,y=l.state.isExpanded,T=Ir(m,o);return I.useEffect(function(){if(!y)return;var x=ra(m.current);function D(_){f.current?f.current=!1:FP(m.current,_.target)||h({type:Ch})}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:Fr({ref:T,hidden:!y,onBlur:it(t,function(x){x.currentTarget.contains(x.relatedTarget)||h({type:Ch})})},s)}}E(IP,\"useDropdownPopover\");function LP(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(LP,\"findItemFromTypeahead\");function eC(e){var t=xh(\"useItemId\"),n=t.dropdownId;return e!=null&&e>-1?ia(\"option-\"+e,n):void 0}E(eC,\"useItemId\");function kh(e){e&&e.focus()}E(kh,\"focus\");function FP(e,t){return!!(e&&e.contains(t))}E(FP,\"popoverContainsEventTarget\");function RP(e,t){switch(t===void 0&&(t={}),t.type){case K_:return Fr({},e,{isExpanded:!1,selectionIndex:-1});case Ch:return Fr({},e,{isExpanded:!1,selectionIndex:-1});case _Y:return Fr({},e,{isExpanded:!0,selectionIndex:0});case X_:return Fr({},e,{isExpanded:!0,selectionIndex:t.payload.index});case xP:return Fr({},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=ra(r.current);r.current!==(i==null?void 0:i.activeElement)&&r.current.focus()}return Fr({},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 CP:return Fr({},e,{selectionIndex:-1});case kP:return Fr({},e,{triggerId:t.payload});case Z_:return typeof t.payload<\"u\"?Fr({},e,{typeaheadQuery:t.payload}):e;default:return e}}E(RP,\"reducer$1\");function tC(){return Jy(o0)}E(tC,\"useDropdownDescendants\");var PP={exports:{}},qt={};/** @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 Er=typeof Symbol==\"function\"&&Symbol.for,nC=Er?Symbol.for(\"react.element\"):60103,rC=Er?Symbol.for(\"react.portal\"):60106,a0=Er?Symbol.for(\"react.fragment\"):60107,s0=Er?Symbol.for(\"react.strict_mode\"):60108,l0=Er?Symbol.for(\"react.profiler\"):60114,u0=Er?Symbol.for(\"react.provider\"):60109,c0=Er?Symbol.for(\"react.context\"):60110,iC=Er?Symbol.for(\"react.async_mode\"):60111,f0=Er?Symbol.for(\"react.concurrent_mode\"):60111,d0=Er?Symbol.for(\"react.forward_ref\"):60112,p0=Er?Symbol.for(\"react.suspense\"):60113,NY=Er?Symbol.for(\"react.suspense_list\"):60120,h0=Er?Symbol.for(\"react.memo\"):60115,v0=Er?Symbol.for(\"react.lazy\"):60116,DY=Er?Symbol.for(\"react.block\"):60121,AY=Er?Symbol.for(\"react.fundamental\"):60117,OY=Er?Symbol.for(\"react.responder\"):60118,IY=Er?Symbol.for(\"react.scope\"):60119;function Ii(e){if(typeof e==\"object\"&&e!==null){var t=e.$$typeof;switch(t){case nC:switch(e=e.type,e){case iC:case f0:case a0:case l0:case s0:case p0:return e;default:switch(e=e&&e.$$typeof,e){case c0:case d0:case v0:case h0:case u0:return e;default:return t}}case rC:return t}}}E(Ii,\"z\");function oC(e){return Ii(e)===f0}E(oC,\"A\"),qt.AsyncMode=iC,qt.ConcurrentMode=f0,qt.ContextConsumer=c0,qt.ContextProvider=u0,qt.Element=nC,qt.ForwardRef=d0,qt.Fragment=a0,qt.Lazy=v0,qt.Memo=h0,qt.Portal=rC,qt.Profiler=l0,qt.StrictMode=s0,qt.Suspense=p0,qt.isAsyncMode=function(e){return oC(e)||Ii(e)===iC},qt.isConcurrentMode=oC,qt.isContextConsumer=function(e){return Ii(e)===c0},qt.isContextProvider=function(e){return Ii(e)===u0},qt.isElement=function(e){return typeof e==\"object\"&&e!==null&&e.$$typeof===nC},qt.isForwardRef=function(e){return Ii(e)===d0},qt.isFragment=function(e){return Ii(e)===a0},qt.isLazy=function(e){return Ii(e)===v0},qt.isMemo=function(e){return Ii(e)===h0},qt.isPortal=function(e){return Ii(e)===rC},qt.isProfiler=function(e){return Ii(e)===l0},qt.isStrictMode=function(e){return Ii(e)===s0},qt.isSuspense=function(e){return Ii(e)===p0},qt.isValidElementType=function(e){return typeof e==\"string\"||typeof e==\"function\"||e===a0||e===f0||e===l0||e===s0||e===p0||e===NY||typeof e==\"object\"&&e!==null&&(e.$$typeof===v0||e.$$typeof===h0||e.$$typeof===u0||e.$$typeof===c0||e.$$typeof===d0||e.$$typeof===AY||e.$$typeof===OY||e.$$typeof===IY||e.$$typeof===DY)},qt.typeOf=Ii,PP.exports=qt;function pi(){return pi=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},pi.apply(this,arguments)}E(pi,\"_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 LY=[\"as\",\"id\",\"children\"],FY=[\"as\"],RY=[\"as\"],PY=[\"as\"],MY=[\"as\"],$Y=[\"portal\"],VY=[\"as\"],BY=I.forwardRef(function(e,t){var n=e.as,r=n===void 0?I.Fragment:n,i=e.id,o=e.children,s=Ol(e,LY),l=I.useMemo(function(){try{return PP.exports.isFragment(I.createElement(r,null))}catch{return!1}},[r]),c=l?{}:pi({ref:t,id:i,\"data-reach-menu\":\"\"},s);return I.createElement(r,c,I.createElement(kY,{id:i,children:o}))}),jY=I.forwardRef(function(e,t){var n=e.as,r=n===void 0?\"button\":n,i=Ol(e,FY),o=DP(pi({},i,{ref:t})),s=o.data,l=s.isExpanded,c=s.controls,f=o.props;return I.createElement(r,pi({\"aria-expanded\":l?!0:void 0,\"aria-haspopup\":!0,\"aria-controls\":c},f,{\"data-reach-menu-button\":\"\"}))}),UY=I.forwardRef(function(e,t){var n=e.as,r=n===void 0?\"div\":n,i=Ol(e,RY),o=AP(pi({},i,{ref:t})),s=o.data.disabled,l=o.props;return I.createElement(r,pi({role:\"menuitem\"},l,{\"aria-disabled\":s||void 0,\"data-reach-menu-item\":\"\"}))}),qY=I.forwardRef(function(e,t){var n=e.as,r=n===void 0?\"div\":n,i=Ol(e,PY);return I.createElement(UY,pi({},i,{ref:t,as:r}))}),HY=I.forwardRef(function(e,t){var n=e.as,r=n===void 0?\"div\":n,i=Ol(e,MY),o=OP(pi({},i,{ref:t})),s=o.data,l=s.activeDescendant,c=s.triggerId,f=o.props;return I.createElement(r,pi({\"aria-activedescendant\":l,\"aria-labelledby\":c||void 0,role:\"menu\"},f,{\"data-reach-menu-items\":\"\"}))}),zY=I.forwardRef(function(e,t){var n=e.portal,r=n===void 0?!0:n,i=Ol(e,$Y);return I.createElement(GY,{portal:r},I.createElement(HY,pi({},i,{ref:t,\"data-reach-menu-list\":\"\"})))}),GY=I.forwardRef(function(e,t){var n=e.as,r=n===void 0?\"div\":n,i=Ol(e,VY),o=IP(pi({},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?I.createElement(M_,pi({},h,g,{as:r,targetRef:c,position:f,unstable_skipInitialPortalRender:!0})):I.createElement(r,pi({},h,g))});const MP=I.forwardRef((e,t)=>ie(jY,Xt(Dt({},e),{ref:t,className:Yr(\"graphiql-un-styled\",e.className)})));MP.displayName=\"MenuButton\";const Il=kf(BY,{Button:MP,Item:qY,List:zY}),$P=I.forwardRef((e,t)=>ie(wP,Xt(Dt({},e),{ref:t,className:Yr(\"graphiql-un-styled\",e.className)})));$P.displayName=\"ListboxButton\";const m0=kf(pY,{Button:$P,Input:EP,Option:bY,Popover:SP});var Pt={},WY={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:\"‌\"},VP=WY,aC=/[!-#%-\\*,-\\/:;\\?@\\[-\\]_\\{\\}\\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={},BP={};function jP(e){var t,n,r=BP[e];if(r)return r;for(r=BP[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(jP,\"getEncodeCache\");function Nh(e,t,n){var r,i,o,s,l,c=\"\";for(typeof t!=\"string\"&&(n=t,t=Nh.defaultChars),typeof n>\"u\"&&(n=!0),l=jP(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(Nh,\"encode$1\"),Nh.defaultChars=\";/?:@&=+$,-_.!~*'()#\",Nh.componentChars=\"-_.!~*'()\";var QY=Nh,UP={};function qP(e){var t,n,r=UP[e];if(r)return r;for(r=UP[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(qP,\"getDecodeCache\");function Dh(e,t){var n;return typeof t!=\"string\"&&(t=Dh.defaultChars),n=qP(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(Dh,\"decode$1\"),Dh.defaultChars=\";/?:@&=+$,#\",Dh.componentChars=\"\";var YY=Dh,JY=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 Ah(){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(Ah,\"Url\");var KY=/^([a-z0-9.+-]+:)/i,XY=/:[0-9]*$/,ZY=/^(\\/\\/?(?!\\/)[^\\?\\s]*)(\\?[^\\s]*)?$/,eJ=[\"<\",\">\",'\"',\"`\",\" \",\"\\r\",`\n`,\"\t\"],tJ=[\"{\",\"}\",\"|\",\"\\\\\",\"^\",\"`\"].concat(eJ),nJ=[\"'\"].concat(tJ),HP=[\"%\",\"/\",\"?\",\";\",\"#\"].concat(nJ),zP=[\"/\",\"?\",\"#\"],rJ=255,GP=/^[+a-z0-9A-Z_-]{0,63}$/,iJ=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,WP={javascript:!0,\"javascript:\":!0},QP={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,\"http:\":!0,\"https:\":!0,\"ftp:\":!0,\"gopher:\":!0,\"file:\":!0};function YP(e,t){if(e&&e instanceof Ah)return e;var n=new Ah;return n.parse(e,t),n}E(YP,\"urlParse\"),Ah.prototype.parse=function(e,t){var n,r,i,o,s,l=e;if(l=l.trim(),!t&&e.split(\"#\").length===1){var c=ZY.exec(l);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}var f=KY.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&&WP[f])&&(l=l.substr(2),this.slashes=!0)),!WP[f]&&(s||f&&!QP[f])){var h=-1;for(n=0;n<zP.length;n++)o=l.indexOf(zP[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<HP.length;n++)o=l.indexOf(HP[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 T=this.hostname[0]===\"[\"&&this.hostname[this.hostname.length-1]===\"]\";if(!T){var x=this.hostname.split(/\\./);for(n=0,r=x.length;n<r;n++){var D=x[n];if(D&&!D.match(GP)){for(var _=\"\",b=0,C=D.length;b<C;b++)D.charCodeAt(b)>127?_+=\"x\":_+=D[b];if(!_.match(GP)){var S=x.slice(0,n),N=x.slice(n+1),F=D.match(iJ);F&&(S.push(F[1]),N.unshift(F[2])),N.length&&(l=N.join(\".\")+l),this.hostname=S.join(\".\");break}}}}this.hostname.length>rJ&&(this.hostname=\"\"),T&&(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),QP[i]&&this.hostname&&!this.pathname&&(this.pathname=\"\"),this},Ah.prototype.parseHost=function(e){var t=XY.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 oJ=YP;Df.encode=QY,Df.decode=YY,Df.format=JY,Df.parse=oJ;var Af={},JP=/[\\0-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF]/,KP=/[\\0-\\x1F\\x7F-\\x9F]/,aJ=/[\\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]/,XP=/[ \\xA0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000]/;Af.Any=JP,Af.Cc=KP,Af.Cf=aJ,Af.P=aC,Af.Z=XP,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=VP;function T(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(T,\"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||T(j,ne)})}E(D,\"unescapeAll\");var _=/[&<>\"]/,b=/[&<>\"]/g,C={\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\"};function S(U){return C[U]}E(S,\"replaceUnsafeChar\");function N(U){return _.test(U)?U.replace(b,S):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=aC;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 g0={},sJ=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\"),ZP=Pt.unescapeAll,lJ=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=ZP(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=ZP(t.slice(l,n)),c.lines=s,c.pos=n,c.ok=!0),c},\"parseLinkDestination\"),uJ=Pt.unescapeAll,cJ=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=uJ(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\");g0.parseLinkLabel=sJ,g0.parseLinkDestination=lJ,g0.parseLinkTitle=cJ;var fJ=Pt.assign,dJ=Pt.unescapeAll,Hu=Pt.escapeHtml,Fa={};Fa.code_inline=function(e,t,n,r,i){var o=e[t];return\"<code\"+i.renderAttrs(o)+\">\"+Hu(e[t].content)+\"</code>\"},Fa.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`},Fa.fence=function(e,t,n,r,i){var o=e[t],s=o.info?dJ(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`},Fa.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)},Fa.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />\n`:`<br>\n`},Fa.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />\n`:`<br>\n`:`\n`},Fa.text=function(e,t){return Hu(e[t].content)},Fa.html_block=function(e,t){return e[t].content},Fa.html_inline=function(e,t){return e[t].content};function zu(){this.rules=fJ({},Fa)}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 pJ=zu;function To(){this.__rules__=[],this.__cache__=null}E(To,\"Ruler$3\"),To.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},To.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))})})},To.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},To.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},To.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},To.prototype.push=function(e,t,n){var r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},To.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},To.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)},To.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},To.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};var sC=To,hJ=/\\r\\n?|\\n/g,vJ=/\\0/g,mJ=E(function(t){var n;n=t.src.replace(hJ,`\n`),n=n.replace(vJ,\"�\"),t.src=n},\"normalize\"),gJ=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\"),yJ=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\"),bJ=Pt.arrayReplaceAt;function eM(e){return/^<a[>\\s]/i.test(e)}E(eM,\"isLinkOpen\");function tM(e){return/^<\\/a\\s*>/i.test(e)}E(tM,\"isLinkClose\");var EJ=E(function(t){var n,r,i,o,s,l,c,f,h,g,m,y,T,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,T=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\"&&(eM(l.content)&&T>0&&T--,tM(l.content)&&T++),!(T>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=bJ(o,n,c)}}}},\"linkify\"),nM=/\\+-|\\.\\.|\\?\\?\\?\\?|!!!!|,,|--/,wJ=/\\((c|tm|r|p)\\)/i,SJ=/\\((c|tm|r|p)\\)/ig,TJ={c:\"©\",r:\"®\",p:\"§\",tm:\"™\"};function rM(e,t){return TJ[t.toLowerCase()]}E(rM,\"replaceFn\");function iM(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(SJ,rM)),n.type===\"link_open\"&&n.info===\"auto\"&&r--,n.type===\"link_close\"&&n.info===\"auto\"&&r++}E(iM,\"replace_scoped\");function oM(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)n=e[t],n.type===\"text\"&&!r&&nM.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(oM,\"replace_rare\");var _J=E(function(t){var n;if(t.md.options.typographer)for(n=t.tokens.length-1;n>=0;n--)t.tokens[n].type===\"inline\"&&(wJ.test(t.tokens[n].content)&&iM(t.tokens[n].children),nM.test(t.tokens[n].content)&&oM(t.tokens[n].children))},\"replace\"),aM=Pt.isWhiteSpace,sM=Pt.isPunctChar,lM=Pt.isMdAsciiPunct,CJ=/['\"]/,uM=/['\"]/g,cM=\"’\";function Oh(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}E(Oh,\"replaceAt\");function fM(e,t){var n,r,i,o,s,l,c,f,h,g,m,y,T,x,D,_,b,C,S,N,F;for(S=[],n=0;n<e.length;n++){for(r=e[n],c=e[n].level,b=S.length-1;b>=0&&!(S[b].level<=c);b--);if(S.length=b+1,r.type===\"text\"){i=r.content,s=0,l=i.length;e:for(;s<l&&(uM.lastIndex=s,o=uM.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=lM(h)||sM(String.fromCharCode(h)),y=lM(g)||sM(String.fromCharCode(g)),T=aM(h),x=aM(g),x?D=!1:y&&(T||m||(D=!1)),T?_=!1:m&&(x||y||(_=!1)),g===34&&o[0]==='\"'&&h>=48&&h<=57&&(_=D=!1),D&&_&&(D=m,_=y),!D&&!_){C&&(r.content=Oh(r.content,o.index,cM));continue}if(_){for(b=S.length-1;b>=0&&(f=S[b],!(S[b].level<c));b--)if(f.single===C&&S[b].level===c){f=S[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=Oh(r.content,o.index,F),e[f.token].content=Oh(e[f.token].content,f.pos,N),s+=F.length-1,f.token===n&&(s+=N.length-1),i=r.content,l=i.length,S.length=b;continue e}}D?S.push({token:n,pos:o.index,single:C,level:c}):_&&C&&(r.content=Oh(r.content,o.index,cM))}}}}E(fM,\"process_inlines\");var xJ=E(function(t){var n;if(t.md.options.typographer)for(n=t.tokens.length-1;n>=0;n--)t.tokens[n].type!==\"inline\"||!CJ.test(t.tokens[n].content)||fM(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 lC=Gu,kJ=lC;function uC(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}E(uC,\"StateCore\"),uC.prototype.Token=kJ;var NJ=uC,DJ=sC,cC=[[\"normalize\",mJ],[\"block\",gJ],[\"inline\",yJ],[\"linkify\",EJ],[\"replacements\",_J],[\"smartquotes\",xJ]];function y0(){this.ruler=new DJ;for(var e=0;e<cC.length;e++)this.ruler.push(cC[e][0],cC[e][1])}E(y0,\"Core\"),y0.prototype.process=function(e){var t,n,r;for(r=this.ruler.getRules(\"\"),t=0,n=r.length;t<n;t++)r[t](e)},y0.prototype.State=NJ;var AJ=y0,fC=Pt.isSpace;function b0(e,t){var n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.substr(n,r-n)}E(b0,\"getLine\");function dC(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(dC,\"escapedSplit\");var OJ=E(function(t,n,r,i){var o,s,l,c,f,h,g,m,y,T,x,D,_,b,C,S,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&&!fC(F))||N===45&&fC(F))return!1;for(;l<t.eMarks[h];){if(o=t.src.charCodeAt(l),o!==124&&o!==45&&o!==58&&!fC(o))return!1;l++}for(s=b0(t,n+1),g=s.split(\"|\"),T=[],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?T.push(x.charCodeAt(0)===58?\"center\":\"right\"):x.charCodeAt(0)===58?T.push(\"left\"):T.push(\"\")}if(s=b0(t,n).trim(),s.indexOf(\"|\")===-1||t.sCount[n]-t.blkIndent>=4||(g=dC(s),g.length&&g[0]===\"\"&&g.shift(),g.length&&g[g.length-1]===\"\"&&g.pop(),m=g.length,m===0||m!==T.length))return!1;if(i)return!0;for(b=t.parentType,t.parentType=\"table\",S=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),T[c]&&(y.attrs=[[\"style\",\"text-align:\"+T[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=S.length;c<f;c++)if(S[c](t,h,r,!0)){C=!0;break}if(C||(s=b0(t,h).trim(),!s)||t.sCount[h]-t.blkIndent>=4)break;for(g=dC(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),T[c]&&(y.attrs=[[\"style\",\"text-align:\"+T[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\"),IJ=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\"),LJ=E(function(t,n,r,i){var o,s,l,c,f,h,g,m=!1,y=t.bMarks[n]+t.tShift[n],T=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||y+3>T||(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,T),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],T=t.eMarks[c],y<T&&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<T)))){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\"),dM=Pt.isSpace,FJ=E(function(t,n,r,i){var o,s,l,c,f,h,g,m,y,T,x,D,_,b,C,S,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,S=!0):t.src.charCodeAt(V)===9?(S=!0,(t.bsCount[n]+y)%4===3?(V++,c++,y++,o=!1):o=!0):S=!1,T=[t.bMarks[n]],t.bMarks[n]=V;V<H&&(s=t.src.charCodeAt(V),dM(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+(S?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,S=!0):t.src.charCodeAt(V)===9?(S=!0,(t.bsCount[m]+y)%4===3?(V++,c++,y++,o=!1):o=!0):S=!1,T.push(t.bMarks[m]),t.bMarks[m]=V;V<H&&(s=t.src.charCodeAt(V),dM(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+(S?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&&(T.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}T.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]=T[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\"),RJ=Pt.isSpace,PJ=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&&!RJ(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\"),pM=Pt.isSpace;function pC(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),!pM(o))?-1:r}E(pC,\"skipBulletListMarker\");function hC(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),!pM(n))?-1:i}E(hC,\"skipOrderedListMarker\");function hM(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(hM,\"markTightParagraphs\");var MJ=E(function(t,n,r,i){var o,s,l,c,f,h,g,m,y,T,x,D,_,b,C,S,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=hC(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=pC(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=T=[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=S=t.sCount[C]+H-(t.bMarks[n]+t.tShift[n]);V<b;){if(o=t.src.charCodeAt(V),o===9)S+=4-(S+t.bsCount[C])%4;else if(o===32)S++;else break;V++}if(s=V,s>=b?f=1:f=S-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]=S,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=hC(t,C),H<0)break;z=t.bMarks[C]+t.tShift[C]}else if(H=pC(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),T[1]=C,t.line=C,t.parentType=F,J&&hM(t,x),!0},\"list\"),$J=Pt.normalizeReference,E0=Pt.isSpace,VJ=E(function(t,n,r,i){var o,s,l,c,f,h,g,m,y,T,x,D,_,b,C,S,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\"),T=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(!E0(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(!E0(o))break;for(x=t.md.helpers.parseLinkTitle(_,F,L),F<L&&D!==F&&x.ok?(S=x.str,F=x.pos,N+=x.lines):(S=\"\",F=s,N=l);F<L&&(o=_.charCodeAt(F),!!E0(o));)F++;if(F<L&&_.charCodeAt(F)!==10&&S)for(S=\"\",F=s,N=l;F<L&&(o=_.charCodeAt(F),!!E0(o));)F++;return F<L&&_.charCodeAt(F)!==10||(m=$J(_.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:S,href:f}),t.parentType=T,t.line=n+N+1),!0)},\"reference\"),BJ=[\"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\"],w0={},jJ=\"[a-zA-Z_:][a-zA-Z0-9:._-]*\",UJ=\"[^\\\"'=<>`\\\\x00-\\\\x20]+\",qJ=\"'[^']*'\",HJ='\"[^\"]*\"',zJ=\"(?:\"+UJ+\"|\"+qJ+\"|\"+HJ+\")\",GJ=\"(?:\\\\s+\"+jJ+\"(?:\\\\s*=\\\\s*\"+zJ+\")?)\",vM=\"<[A-Za-z][A-Za-z0-9\\\\-]*\"+GJ+\"*\\\\s*\\\\/?>\",mM=\"<\\\\/[A-Za-z][A-Za-z0-9\\\\-]*\\\\s*>\",WJ=\"<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->\",QJ=\"<[?][\\\\s\\\\S]*?[?]>\",YJ=\"<![A-Z]+\\\\s+[^>]*>\",JJ=\"<!\\\\[CDATA\\\\[[\\\\s\\\\S]*?\\\\]\\\\]>\",KJ=new RegExp(\"^(?:\"+vM+\"|\"+mM+\"|\"+WJ+\"|\"+QJ+\"|\"+YJ+\"|\"+JJ+\")\"),XJ=new RegExp(\"^(?:\"+vM+\"|\"+mM+\")\");w0.HTML_TAG_RE=KJ,w0.HTML_OPEN_CLOSE_TAG_RE=XJ;var ZJ=BJ,eK=w0.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(\"^</?(\"+ZJ.join(\"|\")+\")(?=(\\\\s|/?>|$))\",\"i\"),/^$/,!0],[new RegExp(eK.source+\"\\\\s*$\"),/^$/,!1]],tK=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\"),gM=Pt.isSpace,nK=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&&!gM(o)?!1:(i||(h=t.skipSpacesBack(h,f),l=t.skipCharsBack(h,35,f),l>f&&gM(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\"),rK=E(function(t,n,r){var i,o,s,l,c,f,h,g,m,y=n+1,T,x=t.md.block.ruler.getRules(\"paragraph\");if(t.sCount[n]-t.blkIndent>=4)return!1;for(T=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=T,!0):!1},\"lheading\"),iK=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\"),yM=lC,S0=Pt.isSpace;function aa(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(S0(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(aa,\"StateBlock\"),aa.prototype.push=function(e,t,n){var r=new yM(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},aa.prototype.isEmpty=E(function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},\"isEmpty\"),aa.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\"),aa.prototype.skipSpaces=E(function(t){for(var n,r=this.src.length;t<r&&(n=this.src.charCodeAt(t),!!S0(n));t++);return t},\"skipSpaces\"),aa.prototype.skipSpacesBack=E(function(t,n){if(t<=n)return t;for(;t>n;)if(!S0(this.src.charCodeAt(--t)))return t+1;return t},\"skipSpacesBack\"),aa.prototype.skipChars=E(function(t,n){for(var r=this.src.length;t<r&&this.src.charCodeAt(t)===n;t++);return t},\"skipChars\"),aa.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\"),aa.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),S0(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\"),aa.prototype.Token=yM;var oK=aa,aK=sC,T0=[[\"table\",OJ,[\"paragraph\",\"reference\"]],[\"code\",IJ],[\"fence\",LJ,[\"paragraph\",\"reference\",\"blockquote\",\"list\"]],[\"blockquote\",FJ,[\"paragraph\",\"reference\",\"blockquote\",\"list\"]],[\"hr\",PJ,[\"paragraph\",\"reference\",\"blockquote\",\"list\"]],[\"list\",MJ,[\"paragraph\",\"reference\",\"blockquote\"]],[\"reference\",VJ],[\"html_block\",tK,[\"paragraph\",\"reference\",\"blockquote\"]],[\"heading\",nK,[\"paragraph\",\"reference\",\"blockquote\"]],[\"lheading\",rK],[\"paragraph\",iK]];function Ih(){this.ruler=new aK;for(var e=0;e<T0.length;e++)this.ruler.push(T0[e][0],T0[e][1],{alt:(T0[e][2]||[]).slice()})}E(Ih,\"ParserBlock$1\"),Ih.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)}},Ih.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))},Ih.prototype.State=oK;var sK=Ih;function bM(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(bM,\"isTerminatorChar\");for(var lK=E(function(t,n){for(var r=t.pos;r<t.posMax&&!bM(t.src.charCodeAt(r));)r++;return r===t.pos?!1:(n||(t.pending+=t.src.slice(t.pos,r)),t.pos=r,!0)},\"text\"),uK=Pt.isSpace,cK=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&&uK(t.src.charCodeAt(o));)o++;return t.pos=o,!0},\"newline\"),fK=Pt.isSpace,vC=[],EM=0;EM<256;EM++)vC.push(0);\"\\\\!\\\"#$%&'()*+,./:;<=>?@[]^_`{|}~-\".split(\"\").forEach(function(e){vC[e.charCodeAt(0)]=1});var dK=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&&vC[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),!!fK(r));)i++;return t.pos=i,!0}}return n||(t.pending+=\"\\\\\"),t.pos++,!0},\"escape\"),pK=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\"),_0={};_0.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 mC(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(mC,\"postProcess$1\"),_0.postProcess=E(function(t){var n,r=t.tokens_meta,i=t.tokens_meta.length;for(mC(t,t.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&mC(t,r[n].delimiters)},\"strikethrough\");var C0={};C0.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 gC(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(gC,\"postProcess\"),C0.postProcess=E(function(t){var n,r=t.tokens_meta,i=t.tokens_meta.length;for(gC(t,t.delimiters),n=0;n<i;n++)r[n]&&r[n].delimiters&&gC(t,r[n].delimiters)},\"emphasis\");var hK=Pt.normalizeReference,yC=Pt.isSpace,vK=E(function(t,n){var r,i,o,s,l,c,f,h,g,m=\"\",y=\"\",T=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),!(!yC(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),!(!yC(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),!(!yC(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[hK(o)],!h)return t.pos=T,!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\"),mK=Pt.normalizeReference,bC=Pt.isSpace,gK=E(function(t,n){var r,i,o,s,l,c,f,h,g,m,y,T,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),!(!bC(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),!(!bC(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),!(!bC(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[mK(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,T=[]),y=t.push(\"image\",\"img\",0),y.attrs=r=[[\"src\",D],[\"alt\",\"\"]],y.children=T,y.content=o,m&&r.push([\"title\",m])),t.pos=f,t.posMax=b,!0},\"image\"),yK=/^([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])?)*)$/,bK=/^([a-zA-Z][a-zA-Z0-9+.\\-]{1,31}):([^<>\\x00-\\x20]*)$/,EK=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),bK.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):yK.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\"),wK=w0.HTML_TAG_RE;function wM(e){var t=e|32;return t>=97&&t<=122}E(wM,\"isLetter\");var SK=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&&!wM(r))||(i=t.src.slice(l).match(wK),!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\"),SM=VP,TK=Pt.has,_K=Pt.isValidEntityCode,TM=Pt.fromCodePoint,CK=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,xK=/^&([a-z][a-z0-9]{1,31});/i,kK=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(CK),o)return n||(i=o[1][0].toLowerCase()===\"x\"?parseInt(o[1].slice(1),16):parseInt(o[1],10),t.pending+=_K(i)?TM(i):TM(65533)),t.pos+=o[0].length,!0}else if(o=t.src.slice(s).match(xK),o&&TK(SM,o[1]))return n||(t.pending+=SM[o[1]]),t.pos+=o[0].length,!0}return n||(t.pending+=\"&\"),t.pos++,!0},\"entity\");function EC(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(EC,\"processDelimiters\");var NK=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)},\"link_pairs\"),DK=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\"),wC=lC,_M=Pt.isWhiteSpace,CM=Pt.isPunctChar,xM=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 wC(\"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 wC(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,T=this.posMax,x=this.src.charCodeAt(e);for(r=e>0?this.src.charCodeAt(e-1):32;n<T&&this.src.charCodeAt(n)===x;)n++;return o=n-e,i=n<T?this.src.charCodeAt(n):32,f=xM(r)||CM(String.fromCharCode(r)),g=xM(i)||CM(String.fromCharCode(i)),c=_M(r),h=_M(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=wC;var AK=If,kM=sC,SC=[[\"text\",lK],[\"newline\",cK],[\"escape\",dK],[\"backticks\",pK],[\"strikethrough\",_0.tokenize],[\"emphasis\",C0.tokenize],[\"link\",vK],[\"image\",gK],[\"autolink\",EK],[\"html_inline\",SK],[\"entity\",kK]],TC=[[\"balance_pairs\",NK],[\"strikethrough\",_0.postProcess],[\"emphasis\",C0.postProcess],[\"text_collapse\",DK]];function Lf(){var e;for(this.ruler=new kM,e=0;e<SC.length;e++)this.ruler.push(SC[e][0],SC[e][1]);for(this.ruler2=new kM,e=0;e<TC.length;e++)this.ruler2.push(TC[e][0],TC[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=AK;var OK=Lf,IK=E(function(e){var t={};t.src_Any=JP.source,t.src_Cc=KP.source,t.src_Z=XP.source,t.src_P=aC.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 x0(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(x0,\"assign\");function Lh(e){return Object.prototype.toString.call(e)}E(Lh,\"_class\");function NM(e){return Lh(e)===\"[object String]\"}E(NM,\"isString\");function DM(e){return Lh(e)===\"[object Object]\"}E(DM,\"isObject\");function AM(e){return Lh(e)===\"[object RegExp]\"}E(AM,\"isRegExp\");function _C(e){return Lh(e)===\"[object Function]\"}E(_C,\"isFunction\");function OM(e){return e.replace(/[.?*+^$[\\]\\\\(){}|-]/g,\"\\\\$&\")}E(OM,\"escapeRE\");var IM={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function LM(e){return Object.keys(e||{}).reduce(function(t,n){return t||IM.hasOwnProperty(n)},!1)}E(LM,\"isOptionsObj\");var LK={\"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}}},FK=\"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]\",RK=\"biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф\".split(\"|\");function FM(e){e.__index__=-1,e.__text_cache__=\"\"}E(FM,\"resetScanCache\");function RM(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}E(RM,\"createValidator\");function CC(){return function(e,t){t.normalize(e)}}E(CC,\"createNormalizer\");function Fh(e){var t=e.re=IK(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(FK),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,DM(c)){AM(c.validate)?f.validate=RM(c.validate):_C(c.validate)?f.validate=c.validate:o(l,c),_C(c.normalize)?f.normalize=c.normalize:c.normalize?o(l,c):f.normalize=CC();return}if(NM(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:CC()};var s=Object.keys(e.__compiled__).filter(function(l){return l.length>0&&e.__compiled__[l]}).map(OM).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\"),FM(e)}E(Fh,\"compile\");function PM(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(PM,\"Match\");function xC(e,t){var n=new PM(e,t);return e.__compiled__[n.schema].normalize(n,e),n}E(xC,\"createMatch\");function Xi(e,t){if(!(this instanceof Xi))return new Xi(e,t);t||LM(e)&&(t=e,e={}),this.__opts__=x0({},IM,t),this.__index__=-1,this.__last_index__=-1,this.__schema__=\"\",this.__text_cache__=\"\",this.__schemas__=x0({},LK,e),this.__compiled__={},this.__tlds__=RK,this.__tlds_replaced__=!1,this.re={},Fh(this)}E(Xi,\"LinkifyIt$1\"),Xi.prototype.add=E(function(t,n){return this.__schemas__[t]=n,Fh(this),this},\"add\"),Xi.prototype.set=E(function(t){return this.__opts__=x0(this.__opts__,t),this},\"set\"),Xi.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\"),Xi.prototype.pretest=E(function(t){return this.re.pretest.test(t)},\"pretest\"),Xi.prototype.testSchemaAt=E(function(t,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,r,this):0},\"testSchemaAt\"),Xi.prototype.match=E(function(t){var n=0,r=[];this.__index__>=0&&this.__text_cache__===t&&(r.push(xC(this,n)),n=this.__last_index__);for(var i=n?t.slice(n):t;this.test(i);)r.push(xC(this,n)),i=i.slice(this.__last_index__),n+=this.__last_index__;return r.length?r:null},\"match\"),Xi.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(),Fh(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Fh(this),this)},\"tlds\"),Xi.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\"),Xi.prototype.onCompile=E(function(){},\"onCompile\");var PK=Xi;const Ff=2147483647,Ra=36,kC=1,Rh=26,MK=38,$K=700,MM=72,$M=128,VM=\"-\",VK=/^xn--/,BK=/[^\\0-\\x7E]/,jK=/[\\x2E\\u3002\\uFF0E\\uFF61]/g,UK={overflow:\"Overflow: input needs wider integers to process\",\"not-basic\":\"Illegal input >= 0x80 (not a basic code point)\",\"invalid-input\":\"Invalid input\"},NC=Ra-kC,Pa=Math.floor,DC=String.fromCharCode;function Ll(e){throw new RangeError(UK[e])}E(Ll,\"error\");function BM(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}E(BM,\"map\");function AC(e,t){const n=e.split(\"@\");let r=\"\";n.length>1&&(r=n[0]+\"@\",e=n[1]),e=e.replace(jK,\".\");const i=e.split(\".\"),o=BM(i,t).join(\".\");return r+o}E(AC,\"mapDomain\");function k0(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(k0,\"ucs2decode\");const jM=E(e=>String.fromCodePoint(...e),\"ucs2encode\"),qK=E(function(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:Ra},\"basicToDigit\"),UM=E(function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},\"digitToBasic\"),qM=E(function(e,t,n){let r=0;for(e=n?Pa(e/$K):e>>1,e+=Pa(e/t);e>NC*Rh>>1;r+=Ra)e=Pa(e/NC);return Pa(r+(NC+1)*e/(e+MK))},\"adapt\"),OC=E(function(e){const t=[],n=e.length;let r=0,i=$M,o=MM,s=e.lastIndexOf(VM);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=Ra;;g+=Ra){l>=n&&Ll(\"invalid-input\");const m=qK(e.charCodeAt(l++));(m>=Ra||m>Pa((Ff-r)/h))&&Ll(\"overflow\"),r+=m*h;const y=g<=o?kC:g>=o+Rh?Rh:g-o;if(m<y)break;const T=Ra-y;h>Pa(Ff/T)&&Ll(\"overflow\"),h*=T}const f=t.length+1;o=qM(r-c,f,c==0),Pa(r/f)>Ff-i&&Ll(\"overflow\"),i+=Pa(r/f),r%=f,t.splice(r++,0,i)}return String.fromCodePoint(...t)},\"decode\"),IC=E(function(e){const t=[];e=k0(e);let n=e.length,r=$M,i=0,o=MM;for(const c of e)c<128&&t.push(DC(c));let s=t.length,l=s;for(s&&t.push(VM);l<n;){let c=Ff;for(const h of e)h>=r&&h<c&&(c=h);const f=l+1;c-r>Pa((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=Ra;;m+=Ra){const y=m<=o?kC:m>=o+Rh?Rh:m-o;if(g<y)break;const T=g-y,x=Ra-y;t.push(DC(UM(y+T%x,0))),g=Pa(T/x)}t.push(DC(UM(g,0))),o=qM(i,f,l==s),i=0,++l}++i,++r}return t.join(\"\")},\"encode\"),HM=E(function(e){return AC(e,function(t){return VK.test(t)?OC(t.slice(4).toLowerCase()):t})},\"toUnicode\"),zM=E(function(e){return AC(e,function(t){return BK.test(t)?\"xn--\"+IC(t):t})},\"toASCII\");var HK=Object.freeze(Object.defineProperty({__proto__:null,ucs2decode:k0,ucs2encode:jM,decode:OC,encode:IC,toASCII:zM,toUnicode:HM,default:{version:\"2.1.0\",ucs2:{decode:k0,encode:jM},decode:OC,encode:IC,toASCII:zM,toUnicode:HM}},Symbol.toStringTag,{value:\"Module\"})),zK=GF(HK),GK={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:\"language-\",linkify:!1,typographer:!1,quotes:\"“”‘’\",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},WK={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\"]}}},QK={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\"]}}},Ph=Pt,YK=g0,JK=pJ,KK=AJ,XK=sK,ZK=OK,eX=PK,Wu=Df,GM=zK,tX={default:GK,zero:WK,commonmark:QK},nX=/^(vbscript|javascript|file|data):/,rX=/^data:image\\/(gif|png|jpeg|webp);/;function WM(e){var t=e.trim().toLowerCase();return nX.test(t)?!!rX.test(t):!0}E(WM,\"validateLink\");var QM=[\"http:\",\"https:\",\"mailto:\"];function YM(e){var t=Wu.parse(e,!0);if(t.hostname&&(!t.protocol||QM.indexOf(t.protocol)>=0))try{t.hostname=GM.toASCII(t.hostname)}catch{}return Wu.encode(Wu.format(t))}E(YM,\"normalizeLink\");function JM(e){var t=Wu.parse(e,!0);if(t.hostname&&(!t.protocol||QM.indexOf(t.protocol)>=0))try{t.hostname=GM.toUnicode(t.hostname)}catch{}return Wu.decode(Wu.format(t),Wu.decode.defaultChars+\"%\")}E(JM,\"normalizeLinkText\");function Zi(e,t){if(!(this instanceof Zi))return new Zi(e,t);t||Ph.isString(e)||(t=e||{},e=\"default\"),this.inline=new ZK,this.block=new XK,this.core=new KK,this.renderer=new JK,this.linkify=new eX,this.validateLink=WM,this.normalizeLink=YM,this.normalizeLinkText=JM,this.utils=Ph,this.helpers=Ph.assign({},YK),this.options={},this.configure(e),t&&this.set(t)}E(Zi,\"MarkdownIt\"),Zi.prototype.set=function(e){return Ph.assign(this.options,e),this},Zi.prototype.configure=function(e){var t=this,n;if(Ph.isString(e)&&(n=e,e=tX[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},Zi.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},Zi.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},Zi.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},Zi.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},Zi.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},Zi.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},Zi.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var iX=Zi,oX=iX;const N0=new oX({breaks:!0,linkify:!0}),Ma=I.forwardRef((e,t)=>{var n=e,{children:r,onlyShowFirstChild:i,type:o}=n,s=mt(n,[\"children\",\"onlyShowFirstChild\",\"type\"]);return ie(\"div\",Xt(Dt({},s),{ref:t,className:Yr(`graphiql-markdown-${o}`,i?\" graphiql-markdown-preview\":\"\",s.className),dangerouslySetInnerHTML:{__html:N0.render(r)}}))});Ma.displayName=\"MarkdownContent\";const LC=I.forwardRef((e,t)=>ie(\"div\",Xt(Dt({},e),{ref:t,className:Yr(\"graphiql-spinner\",e.className)})));LC.displayName=\"Spinner\";function KM(e){var t,n,r=ra(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(KM,\"getDocumentDimensions\");function Ss(){return Ss=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},Ss.apply(this,arguments)}E(Ss,\"_extends$1\");function Mh(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(Mh,\"_objectWithoutPropertiesLoose$1\");var aX=[\"children\",\"label\",\"ariaLabel\",\"id\",\"DEBUG_STYLE\"],sX=[\"label\",\"ariaLabel\",\"isVisible\",\"id\"],lX=[\"ariaLabel\",\"aria-label\",\"as\",\"id\",\"isVisible\",\"label\",\"position\",\"style\",\"triggerRect\"],uX=[\"type\"],D0,Qu,Ts,$h,A0,Yu,cX=100,fX=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 FC={initial:Mt.Idle,states:(Yu={},Yu[Mt.Idle]={enter:I0,on:(D0={},D0[Ot.MouseEnter]=Mt.Focused,D0[Ot.Focus]=Mt.Visible,D0)},Yu[Mt.Focused]={enter:e4,leave:t4,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:(Ts={},Ts[Ot.Focus]=Mt.Focused,Ts[Ot.MouseEnter]=Mt.Focused,Ts[Ot.MouseLeave]=Mt.LeavingVisible,Ts[Ot.Blur]=Mt.LeavingVisible,Ts[Ot.MouseDown]=Mt.Dismissed,Ts[Ot.SelectWithKeyboard]=Mt.Dismissed,Ts[Ot.GlobalMouseMove]=Mt.LeavingVisible,Ts)},Yu[Mt.LeavingVisible]={enter:n4,leave:E(function(){r4(),I0()},\"leave\"),on:($h={},$h[Ot.MouseEnter]=Mt.Visible,$h[Ot.Focus]=Mt.Visible,$h[Ot.TimeComplete]=Mt.Idle,$h)},Yu[Mt.Dismissed]={leave:E(function(){I0()},\"leave\"),on:(A0={},A0[Ot.MouseLeave]=Mt.Idle,A0[Ot.Blur]=Mt.Idle,A0)},Yu)},_o={value:FC.initial,context:{id:null}},O0=[];function XM(e){return O0.push(e),function(){O0.splice(O0.indexOf(e),1)}}E(XM,\"subscribe\");function ZM(){O0.forEach(function(e){return e(_o)})}E(ZM,\"notify\");var RC;function e4(){window.clearTimeout(RC),RC=window.setTimeout(function(){Co({type:Ot.Rest})},cX)}E(e4,\"startRestTimer\");function t4(){window.clearTimeout(RC)}E(t4,\"clearRestTimer\");var PC;function n4(){window.clearTimeout(PC),PC=window.setTimeout(function(){return Co({type:Ot.TimeComplete})},fX)}E(n4,\"startLeavingVisibleTimer\");function r4(){window.clearTimeout(PC)}E(r4,\"clearLeavingVisibleTimer\");function I0(){_o.context.id=null}E(I0,\"clearContextId\");function i4(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,T=t.disabled,x=t.ref,D=t.DEBUG_STYLE,_=String(gh(n)),b=I.useState(D?!0:MC(_,!0)),C=b[0],S=b[1],N=I.useRef(null),F=Ir(x,N),L=yh(N,{observe:C});I.useEffect(function(){return XM(function(){S(MC(_))})},[_]),I.useEffect(function(){var re=ra(N.current);function Z(de){(de.key===\"Escape\"||de.key===\"Esc\")&&_o.value===Mt.Visible&&Co({type:Ot.SelectWithKeyboard})}return E(Z,\"listener\"),re.addEventListener(\"keydown\",Z),function(){return re.removeEventListener(\"keydown\",Z)}},[]),a4({disabled:T,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(){Co({type:Ot.MouseEnter,id:_})}E(V,\"handleMouseEnter\");function H(){Co({type:Ot.MouseMove,id:_})}E(H,\"handleMouseMove\");function G(){Co({type:Ot.MouseLeave})}E(G,\"handleMouseLeave\");function z(){_o.context.id===_&&Co({type:Ot.MouseDown})}E(z,\"handleMouseDown\");function U(){window.__REACH_DISABLE_TOOLTIPS||Co({type:Ot.Focus,id:_})}E(U,\"handleFocus\");function j(){_o.context.id===_&&Co({type:Ot.Blur})}E(j,\"handleBlur\");function X(re){(re.key===\"Enter\"||re.key===\" \")&&Co({type:Ot.SelectWithKeyboard})}E(X,\"handleKeyDown\");var ne={\"aria-describedby\":C?ia(\"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(i4,\"useTooltip\");var hi=I.forwardRef(function(e,t){var n=e.children,r=e.label,i=e.ariaLabel,o=e.id,s=e.DEBUG_STYLE,l=Mh(e,aX),c=I.Children.only(n),f=i4({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 I.createElement(I.Fragment,null,I.cloneElement(c,h),I.createElement(dX,Ss({ref:t,label:r,\"aria-label\":i},g,l)))}),dX=I.forwardRef(E(function(t,n){var r=t.label,i=t.ariaLabel,o=t.isVisible,s=t.id,l=Mh(t,sX);return o?I.createElement(QT,null,I.createElement(pX,Ss({ref:n,label:r,\"aria-label\":i,isVisible:o},l,{id:ia(\"tooltip\",String(s))}))):null},\"TooltipPopup\")),pX=I.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?vX:h,m=t.style,y=t.triggerRect,T=Mh(t,lX),x=(i||r)!=null,D=I.useRef(null),_=Ir(n,D),b=yh(D,{observe:c});return I.createElement(I.Fragment,null,I.createElement(s,Ss({role:x?void 0:\"tooltip\"},T,{ref:_,\"data-reach-tooltip\":\"\",id:x?void 0:l,style:Ss({},m,o4(g,y,b))}),f),x&&I.createElement(U3,{role:\"tooltip\",id:l},i||r))},\"TooltipContent\"));function o4(e,t,n){var r=!n;return r?{visibility:\"hidden\"}:e(t,n)}E(o4,\"getStyles\");var hX=8,vX=E(function(t,n,r){r===void 0&&(r=hX);var i=KM(),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 a4(e){var t=e.disabled,n=e.isVisible,r=e.ref;I.useEffect(function(){if(!(typeof window<\"u\"&&\"PointerEvent\"in window)||!t||!n)return;var i=ra(r.current);function o(s){n&&(s.target instanceof Element&&s.target.closest(\"[data-reach-tooltip-trigger][data-state='tooltip-visible']\")||Co({type:Ot.GlobalMouseMove}))}return E(o,\"handleMouseMove\"),i.addEventListener(\"mousemove\",o),function(){i.removeEventListener(\"mousemove\",o)}},[t,n,r])}E(a4,\"useDisabledTriggerOnSafari\");function Co(e){var t=s4(_o,e),n=t.value,r=t.context,i=t.changed;i&&(_o={value:n,context:r},ZM())}E(Co,\"send\");function s4(e,t){var n=FC.states[e.value],r=n&&n.on&&n.on[t.type];if(!r)return Ss({},e,{changed:!1});n&&n.leave&&n.leave(e.context,t),t.type;var i=Mh(t,uX),o=Ss({},_o.context,i),s=typeof r==\"string\"?r:r.target,l=FC.states[s];return l&&l.enter&&l.enter(e.context,t),{value:s,context:o,changed:!0}}E(s4,\"transition\");function MC(e,t){return _o.context.id===e&&(t?_o.value===Mt.Visible:_o.value===Mt.Visible||_o.value===Mt.LeavingVisible)}E(MC,\"isTooltipVisible\");const l4=I.forwardRef((e,t)=>{var n=e,{isActive:r}=n,i=mt(n,[\"isActive\"]);return ie(\"div\",Xt(Dt({},i),{ref:t,role:\"tab\",\"aria-selected\":r,className:Yr(\"graphiql-tab\",r?\"graphiql-tab-active\":\"\",i.className),children:i.children}))});l4.displayName=\"Tab\";const u4=I.forwardRef((e,t)=>ie(ir,Xt(Dt({},e),{ref:t,type:\"button\",className:Yr(\"graphiql-tab-button\",e.className),children:e.children})));u4.displayName=\"Tab.Button\";const c4=I.forwardRef((e,t)=>ie(hi,{label:\"Close Tab\",children:ie(ir,Xt(Dt({\"aria-label\":\"Close Tab\"},e),{ref:t,type:\"button\",className:Yr(\"graphiql-tab-close\",e.className),children:ie(HT,{})}))}));c4.displayName=\"Tab.Close\";const $C=kf(l4,{Button:u4,Close:c4}),f4=I.forwardRef((e,t)=>ie(\"div\",Xt(Dt({},e),{ref:t,role:\"tablist\",className:Yr(\"graphiql-tabs\",e.className),children:e.children})));f4.displayName=\"Tabs\";var mX=Object.defineProperty,gX=E((e,t)=>mX(e,\"name\",{value:t,configurable:!0}),\"__name$C\");const d4=vs(\"HistoryContext\");function VC(e){var t;const n=Tl(),r=I.useRef(new HF(n||new Sy(null),e.maxHistoryLength||yX)),[i,o]=I.useState(((t=r.current)==null?void 0:t.queries)||[]),s=I.useCallback(({query:h,variables:g,headers:m,operationName:y})=>{var T;(T=r.current)==null||T.updateHistory(h,g,m,y),o(r.current.queries)},[]),l=I.useCallback(({query:h,variables:g,headers:m,operationName:y,label:T,favorite:x})=>{r.current.editLabel(h,g,m,y,T,x),o(r.current.queries)},[]),c=I.useCallback(({query:h,variables:g,headers:m,operationName:y,label:T,favorite:x})=>{r.current.toggleFavorite(h,g,m,y,T,x),o(r.current.queries)},[]),f=I.useMemo(()=>({addToHistory:s,editLabel:l,items:i,toggleFavorite:c}),[s,l,i,c]);return ie(d4.Provider,{value:f,children:e.children})}E(VC,\"HistoryContextProvider\"),gX(VC,\"HistoryContextProvider\");const L0=ms(d4),yX=20;var bX=Object.defineProperty,BC=E((e,t)=>bX(e,\"name\",{value:t,configurable:!0}),\"__name$B\");function jC(){const{items:e}=L0({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(I.Fragment,{children:[ie(Vh,{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(jC,\"History\"),BC(jC,\"History\");function Vh(e){const{editLabel:t,toggleFavorite:n}=L0({nonNull:!0,caller:Vh}),{headerEditor:r,queryEditor:i,variableEditor:o}=Rr({nonNull:!0,caller:Vh}),s=I.useRef(null),l=I.useRef(null),[c,f]=I.useState(!1);I.useEffect(()=>{c&&s.current&&s.current.focus()},[c]);const h=e.item.label||e.item.operationName||UC(e.item.query);return ie(\"li\",{className:\"graphiql-history-item\"+(c?\" editable\":\"\"),children:c?lt(Ai,{children:[ie(\"input\",{type:\"text\",defaultValue:e.item.label,ref:s,onKeyDown:g=>{g.keyCode===27?f(!1):g.keyCode===13&&(f(!1),t(Xt(Dt({},e.item),{label:g.currentTarget.value})))},placeholder:\"Type a label\"}),ie(ir,{type:\"button\",ref:l,onClick:()=>{var g;f(!1),t(Xt(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(HT,{})})]}):lt(Ai,{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(hi,{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(YG,{\"aria-hidden\":\"true\"})})}),ie(hi,{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(tW,{\"aria-hidden\":\"true\"}):ie(nW,{\"aria-hidden\":\"true\"})})})]})})}E(Vh,\"HistoryItem\"),BC(Vh,\"HistoryItem\");function UC(e){return e==null?void 0:e.split(`\n`).map(t=>t.replace(/#(.*)/,\"\")).join(\" \").replace(/{/g,\" { \").replace(/}/g,\" } \").replace(/[\\s]{2,}/g,\" \")}E(UC,\"formatQuery\"),BC(UC,\"formatQuery\");var EX=Object.defineProperty,F0=E((e,t)=>EX(e,\"name\",{value:t,configurable:!0}),\"__name$A\");const p4=vs(\"ExecutionContext\");function Bh(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}=Rr({nonNull:!0,caller:Bh}),l=L0(),c=Yh({getDefaultFieldNames:e.getDefaultFieldNames,caller:Bh}),[f,h]=I.useState(!1),[g,m]=I.useState(null),y=I.useRef(0),T=I.useCallback(()=>{g==null||g.unsubscribe(),h(!1),m(null)},[g]),{fetcher:x}=e,D=I.useCallback(async()=>{var b,C,S;if(!r||!i)return;if(g){T();return}const N=F0(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=R0({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=R0({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?mG(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=F0(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}`);DG(re.data,ve,ue,{merge:!0})}else ue&&(re.data=de.data);z=Dt(Dt({},re),le)}h(!1),N(sh(z))}else{const re=sh(ne);h(!1),N(re)}},\"handleResponse\"),j=x({query:L,variables:P,operationName:G},{headers:H??void 0,documentAST:(S=r.documentAST)!=null?S:void 0}),X=await Promise.resolve(j);if(TT(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(_T(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(sh(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,T,g,s,o]),_=I.useMemo(()=>{var b;return{isFetching:f,operationName:(b=e.operationName)!=null?b:null,run:D,stop:T}},[f,e.operationName,D,T]);return ie(p4.Provider,{value:_,children:e.children})}E(Bh,\"ExecutionContextProvider\"),F0(Bh,\"ExecutionContextProvider\");const Rf=ms(p4);function R0({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(R0,\"tryParseJsonObject\"),F0(R0,\"tryParseJsonObject\");var wX=Object.defineProperty,SX=E((e,t)=>wX(e,\"name\",{value:t,configurable:!0}),\"__name$z\");const P0=\"graphiql\",M0=\"sublime\";let h4=!1;typeof window==\"object\"&&(h4=window.navigator.platform.toLowerCase().indexOf(\"mac\")===0);const $0={[h4?\"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(()=>$6).then(function(r){return r.b}),Promise.resolve().then(()=>j6).then(function(r){return r.f}),Promise.resolve().then(()=>Yie).then(function(r){return r.l}),Promise.resolve().then(()=>z6).then(function(r){return r.s}),Promise.resolve().then(()=>J6).then(function(r){return r.j}),Promise.resolve().then(()=>W6).then(function(r){return r.d}),Promise.resolve().then(()=>Z6).then(function(r){return r.s}),...e]),n}E(Ju,\"importCodeMirror\"),SX(Ju,\"importCodeMirror\");var TX=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\"),_X=TX,v4={\"text/plain\":\"Text\",\"text/html\":\"Url\",default:\"Text\"},CX=\"Copy to clipboard: #{key}, Enter\";function m4(e){var t=(/mac os x/i.test(navigator.userAgent)?\"⌘\":\"Ctrl\")+\"+C\";return e.replace(/#{\\s*key\\s*}/g,t)}E(m4,\"format\");function g4(e,t){var n,r,i,o,s,l,c=!1;t||(t={}),n=t.debug||!1;try{i=_X(),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=v4[t.format]||v4.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=m4(\"message\"in t?t.message:CX),window.prompt(r,e)}}finally{s&&(typeof s.removeRange==\"function\"?s.removeRange(o):s.removeAllRanges()),l&&document.body.removeChild(l),i()}return c}E(g4,\"copy\");var xX=g4,kX=Object.defineProperty,y4=E((e,t)=>kX(e,\"name\",{value:t,configurable:!0}),\"__name$y\");const NX=y4(e=>e?gt(e):\"\",\"printDefault\");function V0({field:e}){if(!(\"defaultValue\"in e)||e.defaultValue===void 0)return null;const t=cs(e.defaultValue,e.type);return t?lt(Ai,{children:[\" = \",ie(\"span\",{className:\"graphiql-doc-explorer-default-value\",children:NX(t)})]}):null}E(V0,\"DefaultValue\"),y4(V0,\"DefaultValue\");var DX=Object.defineProperty,jh=E((e,t)=>DX(e,\"name\",{value:t,configurable:!0}),\"__name$x\");const b4=vs(\"SchemaContext\");function B0(e){if(!e.fetcher)throw new TypeError(\"The `SchemaContextProvider` component requires a `fetcher` function to be passed as prop.\");const{initialHeaders:t,headerEditor:n}=Rr({nonNull:!0,caller:B0}),[r,i]=I.useState(),[o,s]=I.useState(!1),[l,c]=I.useState(null),f=I.useRef(0);I.useEffect(()=>{i(Yg(e.schema)||e.schema===null||e.schema===void 0?e.schema:void 0),f.current++},[e.schema]);const h=I.useRef(t);I.useEffect(()=>{n&&(h.current=n.getValue())});const{introspectionQuery:g,introspectionQueryName:m,introspectionQuerySansSubscriptions:y}=qC({inputValueDeprecation:e.inputValueDeprecation,introspectionQueryName:e.introspectionQueryName,schemaDescription:e.schemaDescription}),{fetcher:T,onSchemaChange:x}=e,D=I.useCallback(()=>{if(Yg(e.schema)||e.schema===null)return;const C=++f.current;i(void 0);const S=e.schema;async function N(){if(S)return S;const F=HC(h.current);if(!F.isValidJSON){c(\"Introspection failed as headers are invalid.\");return}const L=F.headers?{headers:F.headers}:{},A=CT(T({query:g,operationName:m},L));if(!ST(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=CT(T({query:y,operationName:m},L));if(!ST(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:sh(P);c(V)}E(N,\"fetchIntrospectionData\"),jh(N,\"fetchIntrospectionData\"),N().then(F=>{if(!(C!==f.current||!F))try{const L=mT(F);i(L),x==null||x(L)}catch(L){c($u(L))}}).catch(F=>{C===f.current&&(c($u(F)),s(!1))})},[T,m,g,y,x,e.schema]);I.useEffect(()=>{D()},[D]),I.useEffect(()=>{function C(S){S.keyCode===82&&S.shiftKey&&S.ctrlKey&&D()}return E(C,\"triggerIntrospection\"),jh(C,\"triggerIntrospection\"),window.addEventListener(\"keydown\",C),()=>window.removeEventListener(\"keydown\",C)});const _=I.useMemo(()=>!r||e.dangerouslyAssumeSchemaIsValid?[]:Jg(r),[r,e.dangerouslyAssumeSchemaIsValid]),b=I.useMemo(()=>({fetchError:l,introspect:D,isFetching:o,schema:r,validationErrors:_}),[l,D,o,r,_]);return ie(b4.Provider,{value:b,children:e.children})}E(B0,\"SchemaContextProvider\"),jh(B0,\"SchemaContextProvider\");const sa=ms(b4);function qC({inputValueDeprecation:e,introspectionQueryName:t,schemaDescription:n}){return I.useMemo(()=>{const r=t||\"IntrospectionQuery\";let i=my({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(qC,\"useIntrospectionQuery\"),jh(qC,\"useIntrospectionQuery\");function HC(e){let t=null,n=!0;try{e&&(t=JSON.parse(e))}catch{n=!1}return{headers:t,isValidJSON:n}}E(HC,\"parseHeaderString\"),jh(HC,\"parseHeaderString\");var AX=Object.defineProperty,OX=E((e,t)=>AX(e,\"name\",{value:t,configurable:!0}),\"__name$w\");const E4={name:\"Docs\"},w4=vs(\"ExplorerContext\");function j0(e){const{isFetching:t}=sa({nonNull:!0,caller:j0}),[n,r]=I.useState([E4]),i=I.useCallback(c=>{r(f=>f[f.length-1].def===c.def?f:[...f,c])},[]),o=I.useCallback(()=>{r(c=>c.length>1?c.slice(0,-1):c)},[]),s=I.useCallback(()=>{r(c=>c.length===1?c:[E4])},[]);I.useEffect(()=>{t&&s()},[t,s]);const l=I.useMemo(()=>({explorerNavStack:n,push:i,pop:o,reset:s}),[n,i,o,s]);return ie(w4.Provider,{value:l,children:e.children})}E(j0,\"ExplorerContextProvider\"),OX(j0,\"ExplorerContextProvider\");const Fl=ms(w4);var IX=Object.defineProperty,LX=E((e,t)=>IX(e,\"name\",{value:t,configurable:!0}),\"__name$v\");function Pf(e,t){return We(e)?lt(Ai,{children:[Pf(e.ofType,t),\"!\"]}):Tt(e)?lt(Ai,{children:[\"[\",Pf(e.ofType,t),\"]\"]}):t(e)}E(Pf,\"renderType\"),LX(Pf,\"renderType\");var FX=Object.defineProperty,RX=E((e,t)=>FX(e,\"name\",{value:t,configurable:!0}),\"__name$u\");function la(e){const{push:t}=Fl({nonNull:!0,caller:la});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(la,\"TypeLink\"),RX(la,\"TypeLink\");var PX=Object.defineProperty,MX=E((e,t)=>PX(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(la,{type:e.type}),t!==!1&&ie(V0,{field:e})]});return n?r:lt(\"div\",{className:\"graphiql-doc-explorer-argument\",children:[r,e.description?ie(Ma,{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(Ma,{type:\"deprecation\",children:e.deprecationReason})]}):null]})}E(Mf,\"Argument\"),MX(Mf,\"Argument\");var $X=Object.defineProperty,VX=E((e,t)=>$X(e,\"name\",{value:t,configurable:!0}),\"__name$s\");function U0(e){return e.children?lt(\"div\",{className:\"graphiql-doc-explorer-deprecation\",children:[ie(\"div\",{className:\"graphiql-doc-explorer-deprecation-label\",children:\"Deprecated\"}),ie(Ma,{type:\"deprecation\",onlyShowFirstChild:!0,children:e.children})]}):null}E(U0,\"DeprecationReason\"),VX(U0,\"DeprecationReason\");var BX=Object.defineProperty,jX=E((e,t)=>BX(e,\"name\",{value:t,configurable:!0}),\"__name$r\");function zC({directive:e}){return lt(\"span\",{className:\"graphiql-doc-explorer-directive\",children:[\"@\",e.name.value]})}E(zC,\"Directive\"),jX(zC,\"Directive\");var UX=Object.defineProperty,qX=E((e,t)=>UX(e,\"name\",{value:t,configurable:!0}),\"__name$q\");function eo(e){const t=HX[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(eo,\"ExplorerSection\"),qX(eo,\"ExplorerSection\");const HX={Arguments:OG,\"Deprecated Arguments\":PG,\"Deprecated Enum Values\":MG,\"Deprecated Fields\":$G,Directives:VG,\"Enum Values\":UG,Fields:qG,Implements:zG,Implementations:zT,\"Possible Types\":zT,\"Root Types\":ZG,Type:zT};var zX=Object.defineProperty,GC=E((e,t)=>zX(e,\"name\",{value:t,configurable:!0}),\"__name$p\");function WC(e){return lt(Ai,{children:[e.field.description?ie(Ma,{type:\"description\",children:e.field.description}):null,ie(U0,{children:e.field.deprecationReason}),ie(eo,{title:\"Type\",children:ie(la,{type:e.field.type})}),ie(QC,{field:e.field}),ie(YC,{field:e.field})]})}E(WC,\"FieldDocumentation\"),GC(WC,\"FieldDocumentation\");function QC({field:e}){const[t,n]=I.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(Ai,{children:[r.length>0?ie(eo,{title:\"Arguments\",children:r.map(o=>ie(Mf,{arg:o},o.name))}):null,i.length>0?t||r.length===0?ie(eo,{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(QC,\"Arguments\"),GC(QC,\"Arguments\");function YC({field:e}){var t;const n=((t=e.astNode)==null?void 0:t.directives)||[];return!n||n.length===0?null:ie(eo,{title:\"Directives\",children:n.map(r=>ie(\"div\",{children:ie(zC,{directive:r})},r.name.value))})}E(YC,\"Directives\"),GC(YC,\"Directives\");var GX=Object.defineProperty,WX=E((e,t)=>GX(e,\"name\",{value:t,configurable:!0}),\"__name$o\");function JC(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(Ai,{children:[ie(Ma,{type:\"description\",children:e.schema.description||\"A GraphQL schema provides a root type for each kind of operation.\"}),lt(eo,{title:\"Root Types\",children:[o?lt(\"div\",{children:[ie(\"span\",{className:\"graphiql-doc-explorer-root-type\",children:\"query\"}),\": \",ie(la,{type:o})]}):null,s&&lt(\"div\",{children:[ie(\"span\",{className:\"graphiql-doc-explorer-root-type\",children:\"mutation\"}),\": \",ie(la,{type:s})]}),l&&lt(\"div\",{children:[ie(\"span\",{className:\"graphiql-doc-explorer-root-type\",children:\"subscription\"}),\": \",ie(la,{type:l})]})]})]})}E(JC,\"SchemaDocumentation\"),WX(JC,\"SchemaDocumentation\");function S4(e,t){var n=I.useRef(!1);I.useEffect(function(){n.current?e():n.current=!0},t)}E(S4,\"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 T4(e){var t=e.autoEscape,n=e.caseSensitive,r=n===void 0?!1:n,i=e.findChunks,o=i===void 0?XC:i,s=e.sanitize,l=e.searchWords,c=e.textToHighlight;return ZC({chunksToHighlight:KC({chunks:o({autoEscape:t,caseSensitive:r,sanitize:s,searchWords:l,textToHighlight:c})}),totalLength:c?c.length:0})}E(T4,\"findAll\");function KC(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(KC,\"combineChunks\");function XC(e){var t=e.autoEscape,n=e.caseSensitive,r=e.sanitize,i=r===void 0?_4: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=C4(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(XC,\"defaultFindChunks\");function ZC(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(ZC,\"fillInChunks\");function _4(e){return e}E(_4,\"defaultSanitize\");function C4(e){return e.replace(/[-[\\]/{}()*+?.\\\\^$|]/g,\"\\\\$&\")}E(C4,\"escapeRegExpFn\");var QX={combineChunks:KC,fillInChunks:ZC,findAll:T4,findChunks:XC},YX=[\"onSelect\",\"openOnFocus\",\"children\",\"as\",\"aria-label\",\"aria-labelledby\"],JX=[\"as\",\"selectOnClick\",\"autocomplete\",\"onClick\",\"onChange\",\"onKeyDown\",\"onBlur\",\"onFocus\",\"value\"],KX=[\"as\",\"children\",\"portal\",\"onKeyDown\",\"onBlur\",\"position\"],XX=[\"persistSelection\",\"as\"],ZX=[\"as\",\"children\",\"index\",\"value\",\"onClick\"],$a,ua,xo,Va,Vf,Wt=\"IDLE\",ko=\"SUGGESTING\",Rl=\"NAVIGATING\",Bf=\"INTERACTING\",jf=\"CLEAR\",Uf=\"CHANGE\",ex=\"INITIAL_CHANGE\",Li=\"NAVIGATE\",tx=\"SELECT_WITH_KEYBOARD\",Ku=\"SELECT_WITH_CLICK\",qf=\"ESCAPE\",Hf=\"BLUR\",q0=\"INTERACT\",zf=\"FOCUS\",nx=\"OPEN_WITH_BUTTON\",rx=\"OPEN_WITH_INPUT_CLICK\",H0=\"CLOSE_WITH_BUTTON\",eZ={initial:Wt,states:(Vf={},Vf[Wt]={on:($a={},$a[Hf]=Wt,$a[jf]=Wt,$a[Uf]=ko,$a[ex]=Wt,$a[zf]=ko,$a[Li]=Rl,$a[nx]=ko,$a[rx]=ko,$a)},Vf[ko]={on:(ua={},ua[Uf]=ko,ua[zf]=ko,ua[Li]=Rl,ua[jf]=Wt,ua[qf]=Wt,ua[Hf]=Wt,ua[Ku]=Wt,ua[q0]=Bf,ua[H0]=Wt,ua)},Vf[Rl]={on:(xo={},xo[Uf]=ko,xo[zf]=ko,xo[jf]=Wt,xo[Hf]=Wt,xo[qf]=Wt,xo[Li]=Rl,xo[Ku]=Wt,xo[tx]=Wt,xo[H0]=Wt,xo[q0]=Bf,xo)},Vf[Bf]={on:(Va={},Va[jf]=Wt,Va[Uf]=ko,Va[zf]=ko,Va[Hf]=Wt,Va[qf]=Wt,Va[Li]=Rl,Va[H0]=Wt,Va[Ku]=Wt,Va)},Vf)},tZ=E(function(t,n){var r=ar({},t,{lastEventType:n.type});switch(n.type){case Uf:case ex:return ar({},r,{navigationValue:null,value:n.value});case Li:case nx:case rx:return ar({},r,{navigationValue:ix(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 tx:return ar({},r,{value:n.isControlled?t.value:t.navigationValue,navigationValue:null});case H0:return ar({},r,{navigationValue:null});case q0:return r;case zf:return ar({},r,{navigationValue:ix(r,n)});default:return r}},\"reducer\");function x4(e){return[ko,Rl,Bf].includes(e)}E(x4,\"popoverIsExpanded\");function ix(e,t){return t.value?t.value:t.persistSelection?e.value:null}E(ix,\"findNavigationValue\");var ox=Wy(),Pl=Xy(\"ComboboxContext\",{}),k4=Xy(\"OptionContext\",{}),nZ=I.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,YX),m=Yy(),y=m[0],T=m[1],x=I.useRef(),D=I.useRef(),_=I.useRef(),b=I.useRef(!1),C=I.useRef(!1),S={value:\"\",navigationValue:null},N=A4(eZ,tZ,S),F=N[0],L=N[1],A=N[2];D4(L.lastEventType,x);var P=gh(g.id),V=P?ia(\"listbox\",P):\"listbox\",H=I.useRef(!1),G=x4(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 I.createElement(Ky,{context:ox,items:y,set:T},I.createElement(Pl.Provider,{value:z},I.createElement(c,ar({},g,{\"data-reach-combobox\":\"\",\"data-state\":z0(F),\"data-expanded\":G||void 0,ref:t}),Na(s)?s({id:P,isExpanded:G,navigationValue:(n=L.navigationValue)!=null?n:null,state:F}):s)))}),rZ=I.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,T=$f(e,JX),x=I.useRef(y),D=x.current,_=I.useRef(!1);S4(function(){_.current=!0},[y]);var b=I.useContext(Pl),C=b.data,S=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=Ir(L,t),re=I.useRef(!1),Z=sx(),de=lx(),K=typeof y<\"u\";I.useEffect(function(){ne.current=K},[K]),ys(function(){H.current=l},[l,H]);var ve=I.useCallback(function(Ce){Ce.trim()===\"\"?P(jf,{isControlled:K}):Ce===D&&!_.current?P(ex,{value:Ce}):P(Uf,{value:Ce})},[D,P,K]);I.useEffect(function(){K&&y!==N&&(y.trim()!==\"\"||(N||\"\").trim()!==\"\")&&ve(y)},[y,ve,K,N]);function ue(Ce){var He=Ce.target.value;K||ve(He)}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===Wt&&P(rx)}E(le,\"handleClick\");var we=l&&(A===Rl||A===Bf)?S||y||N:y||N;return I.createElement(r,ar({\"aria-activedescendant\":S?String(ux(S)):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\"},T,{\"data-reach-combobox-input\":\"\",\"data-state\":z0(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||\"\"}))}),iZ=I.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?oP:f,g=$f(e,KX),m=I.useContext(Pl),y=m.popoverRef,T=m.inputRef,x=m.isExpanded,D=m.state,_=Ir(y,t),b=sx(),C=lx(),S={\"data-reach-combobox-popover\":\"\",\"data-state\":z0(D),onKeyDown:it(l,b),onBlur:it(c,C),hidden:!x,tabIndex:-1,children:i};return s?I.createElement(M_,ar({as:r},g,{ref:_,\"data-expanded\":x||void 0,position:h,targetRef:T,unstable_skipInitialPortalRender:!0},S)):I.createElement(r,ar({ref:_},g,S))}),oZ=I.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,XX),l=I.useContext(Pl),c=l.persistSelectionRef,f=l.listboxId;return r&&(c.current=!0),I.createElement(o,ar({role:\"listbox\"},s,{ref:t,\"data-reach-combobox-list\":\"\",id:f}))}),ax=I.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,ZX),f=I.useContext(Pl),h=f.onSelect,g=f.data.navigationValue,m=f.transition,y=f.isControlledRef,T=I.useRef(null),x=Zy(T,null),D=x[0],_=x[1],b=I.useMemo(function(){return{element:D,value:s}},[s,D]),C=Qy(b,ox,o),S=Ir(t,_),N=g===s,F=E(function(){h&&h(s),m(Ku,{value:s,isControlled:y.current})},\"handleClick\");return I.createElement(k4.Provider,{value:{value:s,index:C}},I.createElement(r,ar({\"aria-selected\":N,role:\"option\"},c,{\"data-reach-combobox-option\":\"\",ref:S,id:String(ux(s)),\"data-highlighted\":N?\"\":void 0,tabIndex:-1,onClick:it(l,F)}),i?Na(i)?i({value:s,index:C}):i:I.createElement(N4,null)))});function N4(){var e=I.useContext(k4),t=e.value,n=I.useContext(Pl),r=n.data.value,i=I.useMemo(function(){return QX.findAll({searchWords:O4(r||\"\").split(/\\s+/),textToHighlight:t})},[r,t]);return I.createElement(I.Fragment,null,i.length?i.map(function(o,s){var l=t.slice(o.start,o.end);return I.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(N4,\"ComboboxOptionText\");function D4(e,t){ys(function(){if(e===Li||e===qf||e===Ku||e===nx){var n;(n=t.current)==null||n.focus()}},[t,e])}E(D4,\"useFocusManagement\");function sx(){var e=I.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=Jy(ox);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:T():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 T(){return c[0]}E(T,\"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===Wt)i(Li,{persistSelection:s.current});else{var D=m();i(Li,{value:D?D.value:null})}break;case\"ArrowUp\":if(h.preventDefault(),!c||c.length===0)return;if(r===Wt)i(Li);else{var _=y();i(Li,{value:_?_.value:null})}break;case\"Home\":case\"PageUp\":if(h.preventDefault(),!c||c.length===0)return;r===Wt?i(Li):i(Li,{value:T().value});break;case\"End\":case\"PageDown\":if(h.preventDefault(),!c||c.length===0)return;r===Wt?i(Li):i(Li,{value:x().value});break;case\"Escape\":r!==Wt&&i(qf);break;case\"Enter\":r===Rl&&t!==null&&(h.preventDefault(),n&&n(t),i(tx,{isControlled:l.current}));break}},\"handleKeyDown\")}E(sx,\"useKeyDown\");function lx(){var e=I.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(q0):n(Hf))},\"handleBlur\")}E(lx,\"useBlur\");function A4(e,t,n){var r=I.useState(e.initial),i=r[0],o=r[1],s=I.useReducer(t,n),l=s[0],c=s[1],f=E(function(g,m){m===void 0&&(m={});var y=e.states[i],T=y&&y.on[g];if(T){c(ar({type:g,state:i,nextState:i},m)),o(T);return}},\"transition\");return[i,l,f]}E(A4,\"useReducerMachine\");function ux(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(ux,\"makeHash\");function z0(e){return e.toLowerCase()}E(z0,\"getDataState\");function O4(e){return String(e).replace(/([.*+?=^!:${}()|[\\]/\\\\])/g,\"\\\\$1\")}E(O4,\"escapeRegexp\");var aZ=Object.defineProperty,sZ=E((e,t)=>aZ(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\"),sZ(Ml,\"debounce\");var lZ=Object.defineProperty,Gf=E((e,t)=>lZ(e,\"name\",{value:t,configurable:!0}),\"__name$m\");function G0(){const{explorerNavStack:e,push:t}=Fl({nonNull:!0,caller:G0}),n=I.useRef(null),r=I.useRef(null),i=Uh(),[o,s]=I.useState(\"\"),[l,c]=I.useState(i(o)),f=I.useMemo(()=>Ml(200,m=>{c(i(m))}),[i]);I.useEffect(()=>{f(o)},[f,o]),I.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)||_t(h.def)?lt(nZ,{\"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(WG,{}),ie(rZ,{autocomplete:!1,onChange:m=>{s(m.target.value)},onKeyDown:m=>{if(!m.isDefaultPrevented()){const y=r.current;if(!y)return;window.requestAnimationFrame(()=>{const T=y.querySelector(\"[aria-selected=true]\");if(!(T instanceof HTMLElement))return;const x=T.offsetTop-y.scrollTop,D=y.scrollTop+y.clientHeight-(T.offsetTop+T.clientHeight);D<0&&(y.scrollTop-=D),x<0&&(y.scrollTop+=x)})}m.stopPropagation()},placeholder:\"⌘ K\",ref:n,value:o})]}),ie(iZ,{portal:!1,ref:r,children:lt(oZ,{children:[l.within.map((m,y)=>ie(ax,{index:y,value:m,children:ie(W0,{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(ax,{index:l.within.length+y,value:m,children:ie(Hh,{type:m.type})},`type-${y}`)),l.fields.map((m,y)=>lt(ax,{index:l.within.length+l.types.length+y,value:m,children:[ie(Hh,{type:m.type}),\".\",ie(W0,{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(G0,\"Search\"),Gf(G0,\"Search\");function Uh(e){const{explorerNavStack:t}=Fl({nonNull:!0,caller:e||Uh}),{schema:n}=sa({nonNull:!0,caller:e||Uh}),r=t[t.length-1];return I.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&&qh(f,i)&&o.types.push({type:h}),!Xe(h)&&!ot(h)&&!_t(h))continue;const g=h.getFields();for(const m in g){const y=g[m];let T;if(!qh(m,i))if(\"args\"in y){if(T=y.args.filter(x=>qh(x.name,i)),T.length===0)continue}else continue;o[s===h?\"within\":\"fields\"].push(...T?T.map(x=>({type:h,field:y,argument:x})):[{type:h,field:y}])}}return o},[r.def,n])}E(Uh,\"useSearchResults\"),Gf(Uh,\"useSearchResults\");function qh(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(qh,\"isMatch\"),Gf(qh,\"isMatch\");function Hh(e){return ie(\"span\",{className:\"graphiql-doc-explorer-search-type\",children:e.type.name})}E(Hh,\"Type\"),Gf(Hh,\"Type\");function W0(e){return lt(Ai,{children:[ie(\"span\",{className:\"graphiql-doc-explorer-search-field\",children:e.field.name}),e.argument?lt(Ai,{children:[\"(\",ie(\"span\",{className:\"graphiql-doc-explorer-search-argument\",children:e.argument.name}),\":\",\" \",Pf(e.argument.type,t=>ie(Hh,{type:t})),\")\"]}):null]})}E(W0,\"Field$1\"),Gf(W0,\"Field\");var uZ=Object.defineProperty,cZ=E((e,t)=>uZ(e,\"name\",{value:t,configurable:!0}),\"__name$l\");function cx(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(cx,\"FieldLink\"),cZ(cx,\"FieldLink\");var fZ=Object.defineProperty,Xu=E((e,t)=>fZ(e,\"name\",{value:t,configurable:!0}),\"__name$k\");function fx(e){return gl(e.type)?lt(Ai,{children:[e.type.description?ie(Ma,{type:\"description\",children:e.type.description}):null,ie(dx,{type:e.type}),ie(px,{type:e.type}),ie(hx,{type:e.type}),ie(vx,{type:e.type})]}):null}E(fx,\"TypeDocumentation\"),Xu(fx,\"TypeDocumentation\");function dx({type:e}){return Xe(e)&&e.getInterfaces().length>0?ie(eo,{title:\"Implements\",children:e.getInterfaces().map(n=>ie(\"div\",{children:ie(la,{type:n})},n.name))}):null}E(dx,\"ImplementsInterfaces\"),Xu(dx,\"ImplementsInterfaces\");function px({type:e}){const[t,n]=I.useState(!1);if(!Xe(e)&&!ot(e)&&!_t(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(Ai,{children:[i.length>0?ie(eo,{title:\"Fields\",children:i.map(s=>ie(Q0,{field:s},s.name))}):null,o.length>0?t||i.length===0?ie(eo,{title:\"Deprecated Fields\",children:o.map(s=>ie(Q0,{field:s},s.name))}):ie(Cl,{type:\"button\",onClick:()=>{n(!0)},children:\"Show Deprecated Fields\"}):null]})}E(px,\"Fields\"),Xu(px,\"Fields\");function Q0({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(cx,{field:e}),t.length>0?lt(Ai,{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(la,{type:e.type}),ie(V0,{field:e})]}),e.description?ie(Ma,{type:\"description\",onlyShowFirstChild:!0,children:e.description}):null,ie(U0,{children:e.deprecationReason})]})}E(Q0,\"Field\"),Xu(Q0,\"Field\");function hx({type:e}){const[t,n]=I.useState(!1);if(!on(e))return null;const r=[],i=[];for(const o of e.getValues())o.deprecationReason?i.push(o):r.push(o);return lt(Ai,{children:[r.length>0?ie(eo,{title:\"Enum Values\",children:r.map(o=>ie(Y0,{value:o},o.name))}):null,i.length>0?t||r.length===0?ie(eo,{title:\"Deprecated Enum Values\",children:i.map(o=>ie(Y0,{value:o},o.name))}):ie(Cl,{type:\"button\",onClick:()=>{n(!0)},children:\"Show Deprecated Values\"}):null]})}E(hx,\"EnumValues\"),Xu(hx,\"EnumValues\");function Y0({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(Ma,{type:\"description\",children:e.description}):null,e.deprecationReason?ie(Ma,{type:\"deprecation\",children:e.deprecationReason}):null]})}E(Y0,\"EnumValue\"),Xu(Y0,\"EnumValue\");function vx({type:e}){const{schema:t}=sa({nonNull:!0});return!t||!nr(e)?null:ie(eo,{title:ot(e)?\"Implementations\":\"Possible Types\",children:t.getPossibleTypes(e).map(n=>ie(\"div\",{children:ie(la,{type:n})},n.name))})}E(vx,\"PossibleTypes\"),Xu(vx,\"PossibleTypes\");var dZ=Object.defineProperty,pZ=E((e,t)=>dZ(e,\"name\",{value:t,configurable:!0}),\"__name$j\");function zh(){const{fetchError:e,isFetching:t,schema:n,validationErrors:r}=sa({nonNull:!0,caller:zh}),{explorerNavStack:i,pop:o}=Fl({nonNull:!0,caller:zh}),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(LC,{}):n?i.length===1?l=ie(JC,{schema:n}):vf(s.def)?l=ie(fx,{type:s.def}):s.def&&(l=ie(WC,{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&&lt(\"a\",{href:\"#\",className:\"graphiql-doc-explorer-back\",onClick:o,\"aria-label\":`Go back to ${c}`,children:[ie(LG,{}),c]}),ie(\"div\",{className:\"graphiql-doc-explorer-title\",children:s.name})]}),ie(\"div\",{className:\"graphiql-doc-explorer-search\",children:ie(G0,{},s.name)})]}),ie(\"div\",{className:\"graphiql-doc-explorer-content\",children:l})]})}E(zh,\"DocExplorer\"),pZ(zh,\"DocExplorer\");var hZ=Object.defineProperty,I4=E((e,t)=>hZ(e,\"name\",{value:t,configurable:!0}),\"__name$i\");const Gh={title:\"Documentation Explorer\",icon:I4(E(function(){const t=J0();return(t==null?void 0:t.visiblePlugin)===Gh?ie(BG,{}):ie(jG,{})},\"Icon\"),\"Icon\"),content:zh},L4={title:\"History\",icon:HG,content:jC},F4=vs(\"PluginContext\");function mx(e){const t=Tl(),n=Fl(),r=L0(),i=!!n,o=!!r,s=I.useMemo(()=>{const m=[],y={};i&&(m.push(Gh),y[Gh.title]=!0),o&&(m.push(L4),y[L4.title]=!0);for(const T of e.plugins||[]){if(typeof T.title!=\"string\"||!T.title)throw new Error(\"All GraphiQL plugins must have a unique title\");if(y[T.title])throw new Error(`All GraphiQL plugins must have a unique title, found two plugins with the title '${T.title}'`);m.push(T),y[T.title]=!0}return m},[i,o,e.plugins]),[l,c]=I.useState(()=>{const m=t==null?void 0:t.get(R4),y=s.find(T=>T.title===m);return y||(m&&(t==null||t.set(R4,\"\")),e.visiblePlugin&&s.find(T=>(typeof e.visiblePlugin==\"string\"?T.title:T)===e.visiblePlugin)||null)}),{onTogglePluginVisibility:f}=e,h=I.useCallback(m=>{const y=m&&s.find(T=>(typeof m==\"string\"?T.title:T)===m)||null;c(T=>y===T?T:(f==null||f(y),y))},[f,s]);I.useEffect(()=>{e.visiblePlugin&&h(e.visiblePlugin)},[s,e.visiblePlugin,h]);const g=I.useMemo(()=>({plugins:s,setVisiblePlugin:h,visiblePlugin:l}),[s,h,l]);return ie(F4.Provider,{value:g,children:e.children})}E(mx,\"PluginContextProvider\"),I4(mx,\"PluginContextProvider\");const J0=ms(F4),R4=\"visiblePlugin\";var vZ=Object.defineProperty,Wh=E((e,t)=>vZ(e,\"name\",{value:t,configurable:!0}),\"__name$h\");function gx(e,t,n,r,i,o){Ju([],{useCommonAddons:!1}).then(l=>{let c,f,h,g,m,y,T,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 S=document.createElement(\"header\");S.className=\"CodeMirror-hint-information-header\",c.appendChild(S),f=document.createElement(\"span\"),f.className=\"CodeMirror-hint-information-field-name\",S.appendChild(f),h=document.createElement(\"span\"),h.className=\"CodeMirror-hint-information-type-name-pill\",S.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),T=document.createElement(\"div\"),T.className=\"CodeMirror-hint-information-description\",c.appendChild(T),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=Wh(()=>{c&&(c.style.paddingTop=C.scrollTop+F+\"px\")},\"handleScroll\");C.addEventListener(\"scroll\",L);let A;C.addEventListener(\"DOMNodeRemoved\",A=Wh(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,T=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=Wh(S=>{We(S)?(y.innerText=\"!\"+y.innerText,C(S.ofType)):Tt(S)?(g.innerText+=\"[\",y.innerText=\"]\"+y.innerText,C(S.ofType)):m.innerText=S.name},\"renderType\");g.innerText=\"\",y.innerText=\"\",C(_.type)}else g.innerText=\"\",m.innerText=\"\",y.innerText=\"\",h.style.display=\"none\";T&&(_.description?(T.style.display=\"block\",T.innerHTML=N0.render(_.description)):(T.style.display=\"none\",T.innerHTML=\"\")),x&&D&&(_.deprecationReason?(x.style.display=\"block\",D.innerHTML=N0.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(Gh),r.push({name:f.name,def:f}),o==null||o(f))}E(s,\"onClickHintInformation\"),Wh(s,\"onClickHintInformation\")}E(gx,\"onHasCompletion\"),Wh(gx,\"onHasCompletion\");var mZ=Object.defineProperty,ca=E((e,t)=>mZ(e,\"name\",{value:t,configurable:!0}),\"__name$g\");function Wf(e,t){I.useEffect(()=>{e&&typeof t==\"string\"&&t!==e.getValue()&&e.setValue(t)},[e,t])}E(Wf,\"useSynchronizeValue\"),ca(Wf,\"useSynchronizeValue\");function Qf(e,t,n){I.useEffect(()=>{e&&e.setOption(t,n)},[e,t,n])}E(Qf,\"useSynchronizeOption\"),ca(Qf,\"useSynchronizeOption\");function K0(e,t,n,r,i){const{updateActiveTabValues:o}=Rr({nonNull:!0,caller:i}),s=Tl();I.useEffect(()=>{if(!e)return;const l=Ml(500,h=>{!s||n===null||s.set(n,h)}),c=Ml(100,h=>{o({[r]:h})}),f=ca((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(K0,\"useChangeHandler\"),ca(K0,\"useChangeHandler\");function X0(e,t,n){const{schema:r}=sa({nonNull:!0,caller:n}),i=Fl(),o=J0();I.useEffect(()=>{if(!e)return;const s=ca((l,c)=>{gx(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(X0,\"useCompletion\"),ca(X0,\"useCompletion\");function No(e,t,n){I.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(No,\"useKeyMap\"),ca(No,\"useKeyMap\");function Qh({caller:e,onCopyQuery:t}={}){const{queryEditor:n}=Rr({nonNull:!0,caller:e||Qh});return I.useCallback(()=>{if(!n)return;const r=n.getValue();xX(r),t==null||t(r)},[n,t])}E(Qh,\"useCopyQuery\"),ca(Qh,\"useCopyQuery\");function $l({caller:e}={}){const{queryEditor:t}=Rr({nonNull:!0,caller:e||$l}),{schema:n}=sa({nonNull:!0,caller:$l});return I.useCallback(()=>{const r=t==null?void 0:t.documentAST,i=t==null?void 0:t.getValue();!r||!i||t.setValue(gt(jF(r,n)))},[t,n])}E($l,\"useMergeQuery\"),ca($l,\"useMergeQuery\");function Zu({caller:e}={}){const{queryEditor:t,headerEditor:n,variableEditor:r}=Rr({nonNull:!0,caller:e||Zu});return I.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(Hr(i));o!==i&&t.setValue(o)}},[t,r,n])}E(Zu,\"usePrettifyEditors\"),ca(Zu,\"usePrettifyEditors\");function Yh({getDefaultFieldNames:e,caller:t}={}){const{schema:n}=sa({nonNull:!0,caller:t||Yh}),{queryEditor:r}=Rr({nonNull:!0,caller:t||Yh});return I.useCallback(()=>{if(!r)return;const i=r.getValue(),{insertions:o,result:s}=RF(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(Yh,\"useAutoCompleteLeafs\"),ca(Yh,\"useAutoCompleteLeafs\");var gZ=Object.defineProperty,yZ=E((e,t)=>gZ(e,\"name\",{value:t,configurable:!0}),\"__name$f\");function ec({editorTheme:e=P0,keyMap:t=M0,onEdit:n,readOnly:r=!1}={},i){const{initialHeaders:o,headerEditor:s,setHeaderEditor:l,shouldPersistHeaders:c}=Rr({nonNull:!0,caller:i||ec}),f=Rf(),h=$l({caller:i||ec}),g=Zu({caller:i||ec}),m=I.useRef(null);return I.useEffect(()=>{let y=!0;return Ju([Promise.resolve().then(()=>foe).then(function(T){return T.j})]).then(T=>{if(!y)return;const x=m.current;if(!x)return;const D=T(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:$0});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),K0(s,n,c?P4:null,\"headers\",ec),No(s,[\"Cmd-Enter\",\"Ctrl-Enter\"],f==null?void 0:f.run),No(s,[\"Shift-Ctrl-P\"],g),No(s,[\"Shift-Ctrl-M\"],h),m}E(ec,\"useHeaderEditor\"),yZ(ec,\"useHeaderEditor\");const P4=\"headers\";var bZ=Object.defineProperty,EZ=E((e,t)=>bZ(e,\"name\",{value:t,configurable:!0}),\"__name$e\");const wZ=Array.from({length:11},(e,t)=>String.fromCharCode(8192+t)).concat([\"\\u2028\",\"\\u2029\",\" \",\" \"]),SZ=new RegExp(\"[\"+wZ.join(\"\")+\"]\",\"g\");function yx(e){return e.replace(SZ,\" \")}E(yx,\"normalizeWhitespace\"),EZ(yx,\"normalizeWhitespace\");var TZ=Object.defineProperty,Jh=E((e,t)=>TZ(e,\"name\",{value:t,configurable:!0}),\"__name$d\");function _s({editorTheme:e=P0,keyMap:t=M0,onClickReference:n,onCopyQuery:r,onEdit:i,readOnly:o=!1}={},s){const{schema:l}=sa({nonNull:!0,caller:s||_s}),{externalFragments:c,initialQuery:f,queryEditor:h,setOperationName:g,setQueryEditor:m,validationRules:y,variableEditor:T,updateActiveTabValues:x}=Rr({nonNull:!0,caller:s||_s}),D=Rf(),_=Tl(),b=Fl(),C=J0(),S=Qh({caller:s||_s,onCopyQuery:r}),N=$l({caller:s||_s}),F=Zu({caller:s||_s}),L=I.useRef(null),A=I.useRef(),P=I.useRef(()=>{});I.useEffect(()=>{P.current=G=>{!b||!C||(C.setVisiblePlugin(Gh),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]),I.useEffect(()=>{let G=!0;return Ju([Promise.resolve().then(()=>voe).then(function(z){return z.c}),Promise.resolve().then(()=>a$).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=>N0.render(X),onClick:X=>{P.current(X)}},jump:{schema:void 0,onClick:X=>{P.current(X)}},gutters:[\"CodeMirror-linenumbers\",\"CodeMirror-foldgutter\"],extraKeys:Xt(Dt({},$0),{\"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)=>{_Z.test(ne.key)&&X.execCommand(\"autocomplete\")}),j.on(\"beforeChange\",(X,ne)=>{var J;if(ne.origin===\"paste\"){const re=ne.text.map(yx);(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),I.useEffect(()=>{if(!h)return;function G(U){var j,X,ne,J,re;const Z=t5(l,U.getValue()),de=UF((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,T&&(T.state.lint.linterOptions.variableToType=Z==null?void 0:Z.variableToType,T.options.lint.variableToType=Z==null?void 0:Z.variableToType,T.options.hintOptions.variableToType=Z==null?void 0:Z.variableToType,(re=A.current)==null||re.signal(T,\"change\",T)),Z?Xt(Dt({},Z),{operationName:de}):null}E(G,\"getAndUpdateOperationFacts\"),Jh(G,\"getAndUpdateOperationFacts\");const z=Ml(100,U=>{var j;const X=U.getValue();_==null||_.set(M4,X);const ne=U.operationName,J=G(U);(J==null?void 0:J.operationName)!==void 0&&(_==null||_.set(CZ,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,_,T,x]),bx(h,l??null,A),Ex(h,y??null,A),wx(h,c,A),X0(h,n||null,_s);const V=D==null?void 0:D.run,H=I.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 No(h,[\"Cmd-Enter\",\"Ctrl-Enter\"],H),No(h,[\"Shift-Ctrl-C\"],S),No(h,[\"Shift-Ctrl-P\",\"Shift-Ctrl-F\"],F),No(h,[\"Shift-Ctrl-M\"],N),L}E(_s,\"useQueryEditor\"),Jh(_s,\"useQueryEditor\");function bx(e,t,n){I.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(bx,\"useSynchronizeSchema\"),Jh(bx,\"useSynchronizeSchema\");function Ex(e,t,n){I.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(Ex,\"useSynchronizeValidationRules\"),Jh(Ex,\"useSynchronizeValidationRules\");function wx(e,t,n){const r=I.useMemo(()=>[...t.values()],[t]);I.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(wx,\"useSynchronizeExternalFragments\"),Jh(wx,\"useSynchronizeExternalFragments\");const _Z=/^[a-zA-Z0-9_@(]$/,M4=\"query\",CZ=\"operationName\";var xZ=Object.defineProperty,vi=E((e,t)=>xZ(e,\"name\",{value:t,configurable:!0}),\"__name$c\");function Sx({defaultQuery:e,headers:t,query:n,variables:r,storage:i}){const o=i==null?void 0:i.get($4);try{if(!o)throw new Error(\"Storage for tabs is empty\");const s=JSON.parse(o);if(Tx(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?r1(n):null;s.tabs.push({id:n1(),hash:l,title:f||Dx,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:[e1({query:n??e,variables:r,headers:t})]}}}E(Sx,\"getDefaultTabState\"),vi(Sx,\"getDefaultTabState\");function Tx(e){return e&&typeof e==\"object\"&&!Array.isArray(e)&&Cx(e,\"activeTabIndex\")&&\"tabs\"in e&&Array.isArray(e.tabs)&&e.tabs.every(_x)}E(Tx,\"isTabsState\"),vi(Tx,\"isTabsState\");function _x(e){return e&&typeof e==\"object\"&&!Array.isArray(e)&&Z0(e,\"id\")&&Z0(e,\"title\")&&tc(e,\"query\")&&tc(e,\"variables\")&&tc(e,\"headers\")&&tc(e,\"operationName\")&&tc(e,\"response\")}E(_x,\"isTabState\"),vi(_x,\"isTabState\");function Cx(e,t){return t in e&&typeof e[t]==\"number\"}E(Cx,\"hasNumberKey\"),vi(Cx,\"hasNumberKey\");function Z0(e,t){return t in e&&typeof e[t]==\"string\"}E(Z0,\"hasStringKey\"),vi(Z0,\"hasStringKey\");function tc(e,t){return t in e&&(typeof e[t]==\"string\"||e[t]===null)}E(tc,\"hasStringOrNullKey\"),vi(tc,\"hasStringOrNullKey\"),window.g={};function xx({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r}){return window.g.resultComponent={viewer:r},I.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,T=(f=r==null?void 0:r.getValue())!=null?f:null;return t1(i,{query:h,variables:g,headers:m,response:T,operationName:y})},[e,t,n,r])}E(xx,\"useSynchronizeActiveTabValues\"),vi(xx,\"useSynchronizeActiveTabValues\");function kx({storage:e,shouldPersistHeaders:t}){const n=I.useMemo(()=>Ml(500,r=>{e==null||e.set($4,r)}),[e]);return I.useCallback(r=>{n(JSON.stringify(r,(i,o)=>i===\"hash\"||i===\"response\"||!t&&i===\"headers\"?null:o))},[t,n])}E(kx,\"useStoreTabs\"),vi(kx,\"useStoreTabs\");function Nx({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r}){return I.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(Nx,\"useSetEditorValues\"),vi(Nx,\"useSetEditorValues\");function e1({query:e=null,variables:t=null,headers:n=null}={}){return{id:n1(),hash:Yf({query:e,variables:t,headers:n}),title:Dx,query:e,variables:t,headers:n,operationName:null,response:null}}E(e1,\"createTab\"),vi(e1,\"createTab\");function t1(e,t){return Xt(Dt({},e),{tabs:e.tabs.map((n,r)=>{if(r!==e.activeTabIndex)return n;const i=Dt(Dt({},n),t);return Xt(Dt({},i),{hash:Yf(i),title:i.operationName||(i.query?r1(i.query):void 0)||Dx})})})}E(t1,\"setPropertiesInActiveTab\"),vi(t1,\"setPropertiesInActiveTab\");function n1(){const e=vi(()=>Math.floor((1+Math.random())*65536).toString(16).substring(1),\"s4\");return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}E(n1,\"guid\"),vi(n1,\"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\"),vi(Yf,\"hashFromTabContents\");function r1(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(r1,\"fuzzyExtractOperationName\"),vi(r1,\"fuzzyExtractOperationName\");const Dx=\"<untitled>\",$4=\"tabState\";var kZ=Object.defineProperty,NZ=E((e,t)=>kZ(e,\"name\",{value:t,configurable:!0}),\"__name$b\");function Vl({editorTheme:e=P0,keyMap:t=M0,onClickReference:n,onEdit:r,readOnly:i=!1}={},o){const{initialVariables:s,variableEditor:l,setVariableEditor:c}=Rr({nonNull:!0,caller:o||Vl}),f=Rf(),h=$l({caller:o||Vl}),g=Zu({caller:o||Vl}),m=I.useRef(null),y=I.useRef();return I.useEffect(()=>{let T=!0;return Ju([Promise.resolve().then(()=>cae),Promise.resolve().then(()=>dae),Promise.resolve().then(()=>mae)]).then(x=>{if(!T)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:$0});_.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 S=C.keyCode;(S>=65&&S<=90||!C.shiftKey&&S>=48&&S<=57||C.shiftKey&&S===189||C.shiftKey&&S===222)&&b.execCommand(\"autocomplete\")}),c(_)}),()=>{T=!1}},[e,s,i,c]),Qf(l,\"keyMap\",t),K0(l,r,V4,\"variables\",Vl),X0(l,n||null,Vl),No(l,[\"Cmd-Enter\",\"Ctrl-Enter\"],f==null?void 0:f.run),No(l,[\"Shift-Ctrl-P\"],g),No(l,[\"Shift-Ctrl-M\"],h),m}E(Vl,\"useVariableEditor\"),NZ(Vl,\"useVariableEditor\");const V4=\"variables\";var DZ=Object.defineProperty,AZ=E((e,t)=>DZ(e,\"name\",{value:t,configurable:!0}),\"__name$a\");const B4=vs(\"EditorContext\");function Ax(e){const t=Tl(),[n,r]=I.useState(null),[i,o]=I.useState(null),[s,l]=I.useState(null),[c,f]=I.useState(null);Wf(n,e.headers),Wf(i,e.query),Wf(s,e.response),Wf(c,e.variables);const h=kx({storage:t,shouldPersistHeaders:e.shouldPersistHeaders}),[g]=I.useState(()=>{var V,H,G,z,U,j,X,ne;const J=(H=(V=e.query)!=null?V:t==null?void 0:t.get(M4))!=null?H:null,re=(z=(G=e.variables)!=null?G:t==null?void 0:t.get(V4))!=null?z:null,Z=(j=(U=e.headers)!=null?U:t==null?void 0:t.get(P4))!=null?j:null,de=(X=e.response)!=null?X:\"\",K=Sx({query:J,variables:re,headers:Z,defaultQuery:e.defaultQuery||OZ,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]=I.useState(g.tabState),T=xx({queryEditor:i,variableEditor:c,headerEditor:n,responseEditor:s}),x=Nx({queryEditor:i,variableEditor:c,headerEditor:n,responseEditor:s}),{onTabChange:D}=e,_=I.useCallback(()=>{y(V=>{const H=T(V),G={tabs:[...H.tabs,e1()],activeTabIndex:H.tabs.length};return h(G),x(G.tabs[G.activeTabIndex]),D==null||D(G),G})},[D,x,h,T]),b=I.useCallback(V=>{y(H=>{const G=Xt(Dt({},T(H)),{activeTabIndex:V});return h(G),x(G.tabs[G.activeTabIndex]),D==null||D(G),G})},[D,x,h,T]),C=I.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]),S=I.useCallback(V=>{y(H=>{const G=t1(H,V);return h(G),D==null||D(G),G})},[D,h]),{onEditOperationName:N}=e,F=I.useCallback(V=>{i&&(i.operationName=V,S({operationName:V}),N==null||N(V))},[N,i,S]),L=I.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(Hr(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=I.useMemo(()=>e.validationRules||[],[e.validationRules]),P=I.useMemo(()=>Xt(Dt({},m),{addTab:_,changeTab:b,closeTab:C,updateActiveTabValues:S,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,S,n,i,s,c,F,g,L,A,e.shouldPersistHeaders]);return ie(B4.Provider,{value:P,children:e.children})}E(Ax,\"EditorContextProvider\"),AZ(Ax,\"EditorContextProvider\");const Rr=ms(B4),OZ=`# 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 IZ=Object.defineProperty,LZ=E((e,t)=>IZ(e,\"name\",{value:t,configurable:!0}),\"__name$9\");function Kh(e){var t=e,{isHidden:n}=t,r=mt(t,[\"isHidden\"]);const{headerEditor:i}=Rr({nonNull:!0,caller:Kh}),o=ec(r,Kh);return I.useEffect(()=>{i&&!n&&i.refresh()},[i,n]),ie(\"div\",{className:`graphiql-editor${n?\" hidden\":\"\"}`,ref:o})}E(Kh,\"HeaderEditor\"),LZ(Kh,\"HeaderEditor\");var FZ=Object.defineProperty,i1=E((e,t)=>FZ(e,\"name\",{value:t,configurable:!0}),\"__name$8\");function Xh(e){var t;const[n,r]=I.useState({width:null,height:null}),[i,o]=I.useState(null),s=I.useRef(null),l=(t=o1(e.token))==null?void 0:t.href;I.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(Xh,\"ImagePreview\"),i1(Xh,\"ImagePreview\"),Xh.shouldRender=i1(E(function(t){const n=o1(t);return n?Ox(n):!1},\"shouldRender\"),\"shouldRender\");function o1(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(o1,\"tokenToURL\"),i1(o1,\"tokenToURL\");function Ox(e){return/(bmp|gif|jpeg|jpg|png|svg)$/.test(e.pathname)}E(Ox,\"isImageURL\"),i1(Ox,\"isImageURL\");var RZ=Object.defineProperty,PZ=E((e,t)=>RZ(e,\"name\",{value:t,configurable:!0}),\"__name$7\");function a1(e){const t=_s(e,a1);return ie(\"div\",{className:\"graphiql-editor\",ref:t})}E(a1,\"QueryEditor\"),PZ(a1,\"QueryEditor\");var MZ=Object.defineProperty,$Z=E((e,t)=>MZ(e,\"name\",{value:t,configurable:!0}),\"__name$6\");function Zh({responseTooltip:e,editorTheme:t=P0,keyMap:n=M0}={},r){const{fetchError:i,validationErrors:o}=sa({nonNull:!0,caller:r||Zh}),{initialResponse:s,responseEditor:l,setResponseEditor:c}=Rr({nonNull:!0,caller:r||Zh}),f=I.useRef(null),h=I.useRef(e);return I.useEffect(()=>{h.current=e},[e]),I.useEffect(()=>{let g=!0;return Ju([Promise.resolve().then(()=>j6).then(function(m){return m.f}),Promise.resolve().then(()=>$6).then(function(m){return m.b}),Promise.resolve().then(()=>W6).then(function(m){return m.d}),Promise.resolve().then(()=>a$).then(function(m){return m.s}),Promise.resolve().then(()=>z6).then(function(m){return m.s}),Promise.resolve().then(()=>J6).then(function(m){return m.j}),Promise.resolve().then(()=>Z6).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 S=[],N=h.current;return N&&S.push(ie(N,{pos:C,token:D})),Xh.shouldRender(D)&&S.push(ie(Xh,{token:D},\"image-preview\")),S.length?(wS.render(S,y),y):(wS.unmountComponentAtNode(y),null)});const T=f.current;if(!T)return;const x=m(T,{value:s,lineWrapping:!0,readOnly:!0,theme:t,mode:\"graphql-results\",foldGutter:!0,gutters:[\"CodeMirror-foldgutter\"],info:!0,extraKeys:$0});c(x)}),()=>{g=!1}},[t,s,c]),Qf(l,\"keyMap\",n),I.useEffect(()=>{i&&(l==null||l.setValue(i)),o.length>0&&(l==null||l.setValue($u(o)))},[l,i,o]),f}E(Zh,\"useResponseEditor\"),$Z(Zh,\"useResponseEditor\");var VZ=Object.defineProperty,BZ=E((e,t)=>VZ(e,\"name\",{value:t,configurable:!0}),\"__name$5\");function s1(e){const t=Zh(e,s1);return ie(\"section\",{className:\"result-window\",\"aria-label\":\"Result Window\",\"aria-live\":\"polite\",\"aria-atomic\":\"true\",ref:t})}E(s1,\"ResponseEditor\"),BZ(s1,\"ResponseEditor\");var jZ=Object.defineProperty,UZ=E((e,t)=>jZ(e,\"name\",{value:t,configurable:!0}),\"__name$4\");function ev(e){var t=e,{isHidden:n}=t,r=mt(t,[\"isHidden\"]);const{variableEditor:i}=Rr({nonNull:!0,caller:ev}),o=Vl(r,ev);return I.useEffect(()=>{i&&!n&&i.refresh()},[i,n]),ie(\"div\",{className:`graphiql-editor${n?\" hidden\":\"\"}`,ref:o})}E(ev,\"VariableEditor\"),UZ(ev,\"VariableEditor\");var qZ=Object.defineProperty,HZ=E((e,t)=>qZ(e,\"name\",{value:t,configurable:!0}),\"__name$3\");function l1({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:T,plugins:x,query:D,response:_,schema:b,schemaDescription:C,shouldPersistHeaders:S,storage:N,validationRules:F,variables:L,visiblePlugin:A}){return ie(LT,{storage:N,children:ie(VC,{maxHistoryLength:f,children:ie(Ax,{defaultQuery:n,externalFragments:r,headers:s,onEditOperationName:h,onTabChange:m,query:D,response:_,shouldPersistHeaders:S,validationRules:F,variables:L,children:ie(B0,{dangerouslyAssumeSchemaIsValid:t,fetcher:i,inputValueDeprecation:l,introspectionQueryName:c,onSchemaChange:g,schema:b,schemaDescription:C,children:ie(Bh,{getDefaultFieldNames:o,fetcher:i,operationName:T,children:ie(j0,{children:ie(mx,{onTogglePluginVisibility:y,plugins:x,visiblePlugin:A,children:e})})})})})})})}E(l1,\"GraphiQLProvider\"),HZ(l1,\"GraphiQLProvider\");var zZ=Object.defineProperty,GZ=E((e,t)=>zZ(e,\"name\",{value:t,configurable:!0}),\"__name$2\");function Ix(){const e=Tl(),[t,n]=I.useState(()=>{if(!e)return null;const i=e.get(Lx);switch(i){case\"light\":return\"light\";case\"dark\":return\"dark\";default:return typeof i==\"string\"&&e.set(Lx,\"\"),null}});I.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=I.useCallback(i=>{e==null||e.set(Lx,i||\"\"),n(i)},[e]);return I.useMemo(()=>({theme:t,setTheme:r}),[t,r])}E(Ix,\"useTheme\"),GZ(Ix,\"useTheme\");const Lx=\"theme\";var WZ=Object.defineProperty,tv=E((e,t)=>WZ(e,\"name\",{value:t,configurable:!0}),\"__name$1\");function nv({defaultSizeRelation:e=QZ,direction:t,initiallyHidden:n,onHiddenElementChange:r,sizeThresholdFirst:i=100,sizeThresholdSecond:o=100,storageKey:s}){const l=Tl(),c=I.useMemo(()=>Ml(500,b=>{l&&s&&l.set(s,b)}),[l,s]),[f,h]=I.useState(()=>{const b=l&&s?l.get(s):null;return b===u1||n===\"first\"?\"first\":b===c1||n===\"second\"?\"second\":null}),g=I.useCallback(b=>{b!==f&&(h(b),r==null||r(b))},[f,r]),m=I.useRef(null),y=I.useRef(null),T=I.useRef(null),x=I.useRef(`${e}`);I.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===u1||b===c1?x.current:b),T.current&&(T.current.style.display=\"flex\",T.current.style.flexDirection=C,T.current.style.flex=\"1\"),y.current&&(y.current.style.display=\"flex\",y.current.style.flexDirection=C)},[t,l,s]);const D=I.useCallback(b=>{const C=b===\"first\"?m.current:T.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 S=parseFloat(m.current.style.flex);(!Number.isFinite(S)||S<1)&&(m.current.style.flex=\"1\"),m.current.style.flex}},[]),_=I.useCallback(b=>{const C=b===\"first\"?m.current:T.current;if(C&&(C.style.width=\"\",C.style.height=\"\",C.style.opacity=\"\",C.style.position=\"\",C.style.left=\"\",m.current&&l&&s)){const S=l==null?void 0:l.get(s);S!==u1&&S!==c1&&(m.current.style.flex=S||x.current)}},[l,s]);return I.useLayoutEffect(()=>{f===\"first\"?D(\"first\"):_(\"first\"),f===\"second\"?D(\"second\"):_(\"second\")},[f,D,_]),I.useEffect(()=>{if(!y.current||!m.current||!T.current)return;const b=y.current,C=m.current,S=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]-S.getBoundingClientRect()[F]-G,ne=S.getBoundingClientRect()[L]-j[N]+G-b[A];if(X<i)g(\"first\"),c(u1);else if(ne<o)g(\"second\"),c(c1);else{g(null);const J=`${X/ne}`;C.style.flex=J,c(J)}}E(z,\"handleMouseMove\"),tv(z,\"handleMouseMove\");function U(){document.removeEventListener(\"mousemove\",z),document.removeEventListener(\"mouseup\",U)}E(U,\"handleMouseUp\"),tv(U,\"handleMouseUp\"),document.addEventListener(\"mousemove\",z),document.addEventListener(\"mouseup\",U)}E(P,\"handleMouseDown\"),tv(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\"),tv(V,\"reset\"),b.addEventListener(\"dblclick\",V),()=>{b.removeEventListener(\"mousedown\",P),b.removeEventListener(\"dblclick\",V)}},[t,g,i,o,c]),I.useMemo(()=>({dragBarRef:y,hiddenElement:f,firstRef:m,setHiddenElement:h,secondRef:T}),[f,h])}E(nv,\"useDragResize\"),tv(nv,\"useDragResize\");const QZ=1,u1=\"hide-first\",c1=\"hide-second\",f1=I.forwardRef((e,t)=>{var n=e,{label:r}=n,i=mt(n,[\"label\"]);const[o,s]=I.useState(null);return ie(hi,{label:r,children:ie(ir,Xt(Dt({},i),{ref:t,type:\"button\",className:Yr(\"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\"]}))})});f1.displayName=\"ToolbarButton\";var YZ=Object.defineProperty,JZ=E((e,t)=>YZ(e,\"name\",{value:t,configurable:!0}),\"__name\");function rv(){const{queryEditor:e,setOperationName:t}=Rr({nonNull:!0,caller:rv}),{isFetching:n,operationName:r,run:i,stop:o}=Rf({nonNull:!0,caller:rv}),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(rW,{}):ie(JG,{}),\"aria-label\":c};return l?lt(Il,{children:[ie(hi,{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 T=(y=h.name)==null?void 0:y.value;e&&T&&T!==e.operationName&&t(T),i()},children:m},`${m}-${g}`)})})]}):ie(hi,{label:c,children:ie(\"button\",Xt(Dt({},f),{onClick:()=>{n?o():i()}}))})}E(rv,\"ExecuteButton\"),JZ(rv,\"ExecuteButton\");const j4=I.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(m0.Input,Xt(Dt({},s),{ref:t,className:Yr(\"graphiql-toolbar-listbox\",s.className),\"aria-label\":l,children:[ie(hi,{label:l,children:ie(m0.Button,{children:r})}),ie(m0.Popover,{children:i})]}))});j4.displayName=\"ToolbarListbox\",kf(j4,{Option:m0.Option});const U4=I.forwardRef((e,t)=>{var n=e,{button:r,children:i,label:o}=n,s=mt(n,[\"button\",\"children\",\"label\"]);return lt(Il,Xt(Dt({},s),{ref:t,children:[ie(hi,{label:o,children:ie(Il.Button,{className:Yr(\"graphiql-un-styled graphiql-toolbar-menu\",s.className),\"aria-label\":o,children:r})}),ie(Il.List,{children:i})]}))});U4.displayName=\"ToolbarMenu\",kf(U4,{Item:Il.Item});var Fx=globalThis&&globalThis.__assign||function(){return Fx=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},Fx.apply(this,arguments)},KZ=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},Rx=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},XZ=parseInt(oe.version.slice(0,2),10);if(XZ<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 Bl(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,T=e.operationName,x=e.plugins,D=e.query,_=e.response,b=e.schema,C=e.schemaDescription,S=e.shouldPersistHeaders,N=e.storage,F=e.validationRules,L=e.variables,A=e.visiblePlugin,P=KZ(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(l1,{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:T,query:D,response:_,schema:b,schemaDescription:C,shouldPersistHeaders:S,storage:N,validationRules:F,variables:L},oe.createElement(q4,Fx({},P)))}Bl.Logo=H4,Bl.Toolbar=z4,Bl.Footer=G4;function q4(e){var t,n,r,i=(t=e.isHeadersEditorEnabled)!==null&&t!==void 0?t:!0,o=Rr({nonNull:!0}),s=Rf({nonNull:!0}),l=sa({nonNull:!0}),c=Tl(),f=J0(),h=Qh({onCopyQuery:e.onCopyQuery}),g=$l(),m=Zu(),y=Ix(),T=y.theme,x=y.setTheme,D=(n=f==null?void 0:f.visiblePlugin)===null||n===void 0?void 0:n.content,_=nv({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=nv({direction:\"horizontal\",storageKey:\"editorFlex\"}),C=nv({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\"}),S=Rx(I.useState(function(){return e.defaultEditorToolsVisibility===\"variables\"||e.defaultEditorToolsVisibility===\"headers\"?e.defaultEditorToolsVisibility:!o.initialVariables&&o.initialHeaders&&i?\"headers\":\"variables\"}),2),N=S[0],F=S[1],L=Rx(I.useState(null),2),A=L[0],P=L[1],V=Rx(I.useState(null),2),H=V[0],G=V[1],z=oe.Children.toArray(e.children),U=z.find(function(re){return Px(re,Bl.Logo)})||oe.createElement(Bl.Logo,null),j=z.find(function(re){return Px(re,Bl.Toolbar)})||oe.createElement(oe.Fragment,null,oe.createElement(f1,{onClick:function(){return m()},label:\"Prettify query (Shift-Ctrl-P)\"},oe.createElement(KG,{className:\"graphiql-toolbar-icon\",\"aria-hidden\":\"true\"})),oe.createElement(f1,{onClick:function(){return g()},label:\"Merge fragments into query (Shift-Ctrl-M)\"},oe.createElement(QG,{className:\"graphiql-toolbar-icon\",\"aria-hidden\":\"true\"})),oe.createElement(f1,{onClick:function(){return h()},label:\"Copy query (Shift-Ctrl-C)\"},oe.createElement(RG,{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 Px(re,Bl.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(hi,{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(hi,{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(XG,{className:l.isFetching?\"graphiql-spin\":\"\",\"aria-hidden\":\"true\"}))),oe.createElement(hi,{label:\"Open short keys dialog\"},oe.createElement(ir,{type:\"button\",onClick:function(){return P(\"short-keys\")},\"aria-label\":\"Open short keys dialog\"},oe.createElement(GG,{\"aria-hidden\":\"true\"}))),oe.createElement(hi,{label:\"Open settings dialog\"},oe.createElement(ir,{type:\"button\",onClick:function(){return P(\"settings\")},\"aria-label\":\"Open settings dialog\"},oe.createElement(eW,{\"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(f4,{\"aria-label\":\"Select active operation\"},o.tabs.length>1?oe.createElement(oe.Fragment,null,o.tabs.map(function(re,Z){return oe.createElement($C,{key:re.id,isActive:Z===o.activeTabIndex},oe.createElement($C.Button,{\"aria-controls\":\"graphiql-session\",id:\"graphiql-session-tab-\".concat(Z),onClick:function(){s.stop(),o.changeTab(Z)}},re.title),oe.createElement($C.Close,{onClick:function(){o.activeTabIndex===Z&&s.stop(),o.closeTab(Z)}}))}),oe.createElement(\"div\",null,oe.createElement(hi,{label:\"Add tab\"},oe.createElement(ir,{type:\"button\",className:\"graphiql-tab-add\",onClick:function(){return o.addTab()},\"aria-label\":\"Add tab\"},oe.createElement(P5,{\"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(hi,{label:\"Add tab\"},oe.createElement(ir,{type:\"button\",className:\"graphiql-tab-add\",onClick:function(){return o.addTab()},\"aria-label\":\"Add tab\"},oe.createElement(P5,{\"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(a1,{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(rv,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(hi,{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(FG,{className:\"graphiql-chevron-icon\",\"aria-hidden\":\"true\"}):oe.createElement(IG,{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(ev,{editorTheme:e.editorTheme,isHidden:N!==\"variables\",keyMap:e.keyMap,onEdit:e.onEditVariables,onClickReference:ne,readOnly:e.readOnly}),i&&oe.createElement(Kh,{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(LC,null):null,oe.createElement(s1,{editorTheme:e.editorTheme,responseTooltip:e.responseTooltip,keyMap:e.keyMap}),X)))))),oe.createElement(zy,{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(zy.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(zy,{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(zy.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(M5,null,oe.createElement(Cl,{type:\"button\",className:T===null?\"active\":\"\",onClick:function(){return x(null)}},\"System\"),oe.createElement(Cl,{type:\"button\",className:T===\"light\"?\"active\":\"\",onClick:function(){return x(\"light\")}},\"Light\"),oe.createElement(Cl,{type:\"button\",className:T===\"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 H4(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\"))}H4.displayName=\"GraphiQLLogo\";function z4(e){return oe.createElement(oe.Fragment,null,e.children)}z4.displayName=\"GraphiQLToolbar\";function G4(e){return oe.createElement(\"div\",{className:\"graphiql-footer\"},e.children)}G4.displayName=\"GraphiQLFooter\";function Px(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 d1=function(){},Mx={popstate:[]};let ZZ={URL:function(){return{searchParams:{set:d1,append:d1,delete:d1}}},location:{href:\"\",search:\"\"},history:{pushState:d1},fireEvent:function(e){Mx[e].forEach(t=>{t()})},addEventListener:function(e,t){Mx[e].push(t)},removeEventListener:function(e,t){const n=Mx[e],r=n.findIndex(i=>i===t);n.splice(r,1)}};function jl(){return typeof window<\"u\"?window:ZZ}const W4=[Number,String,Boolean,Date];function eee(e){const{URL:t}=jl(),n=new t(jl().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 tee(e){return Array.isArray(e)&&e.length>0&&e.every(t=>typeof t==\"number\"||typeof t==\"string\"||typeof t==\"boolean\")}function nee(e={}){if(!Object.values(e).every(n=>W4.includes(n)||tee(n)||typeof n==\"function\"))throw new Error(`Unsupported param types. Must be one of [${W4.map(n=>n.name).join(\", \")}]`)}function ree(e={},t={},n=!1){t&&nee(t);const[,r]=I.useState(),i=jl().location.search,o=I.useMemo(()=>new URLSearchParams(i),[i]),s=I.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]=oee(g,m,t,e)}),h},[o]);function l(f){const h=eee(f);jl().location.search!==h.search&&(n?jl().history.replaceState({},\"\",h.toString()):jl().history.pushState({},\"\",h.toString())),o.toString()!==h.searchParams.toString()&&r({})}I.useEffect(()=>{l(Object.assign(Object.assign({},e),s))},[s]);const c=f=>{l(f)};return I.useEffect(()=>{const f=()=>{r({})};return jl().addEventListener(\"popstate\",f),()=>{jl().removeEventListener(\"popstate\",f)}},[]),[s,c]}const iee={true:!0,false:!1};function oee(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?iee[o]:i===Date?new Date(o):Array.isArray(i)?i.find(s=>s==o)||r[e]:typeof i==\"function\"?i(o):o}var aee=Object.defineProperty,Q4=Object.getOwnPropertySymbols,see=Object.prototype.hasOwnProperty,lee=Object.prototype.propertyIsEnumerable,Y4=(e,t,n)=>t in e?aee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,J4=(e,t)=>{for(var n in t||(t={}))see.call(t,n)&&Y4(e,n,t[n]);if(Q4)for(var n of Q4(t))lee.call(t,n)&&Y4(e,n,t[n]);return e};function K4(e){return e&&Object.prototype.hasOwnProperty.call(e,\"default\")&&Object.keys(e).length===1?e.default:e}var p1={},h1={},X4=K4(cj),uee=K4(eG);Object.defineProperty(h1,\"__esModule\",{value:!0});var cee=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},Z4=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},fa=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}}();h1.defaultValue=Vx;var fee=X4,Se=dee(fee),ut=uee;function dee(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 e9(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Do(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 da(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 pa(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 pee={keyword:\"#B11A04\",def:\"#D2054E\",property:\"#1F61A0\",qualifier:\"#1C92A9\",attribute:\"#8B2BB9\",number:\"#2882F9\",string:\"#D64292\",builtin:\"#D47509\",string2:\"#0B7FC7\",variable:\"#397D13\",atom:\"#CA9800\"},hee=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\"})),vee=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\"})),mee=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\"})),gee=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 v1(e){return e.checked?e.styleConfig.checkboxChecked:e.styleConfig.checkboxUnchecked}function t9(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 n9(e){return(0,ut.isNonNullType)(e.type)&&e.defaultValue===void 0}function yee(e){for(var t=e;(0,ut.isWrappingType)(t);)t=t.ofType;return t}function Ul(e){for(var t=e;(0,ut.isWrappingType)(t);)t=t.ofType;return t}function r9(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 bee=function(e){pa(t,e);function t(){var n,r,i,o;da(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,T=f.makeDefaultArg,x=Ul(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:m1(m,T,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(Do(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 T=i.props.selection,x=i._getArgSelection();if(!x){console.error(\"missing arg selection when setting arg value\");return}var D=Ul(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=r9(D,b));var S=i.props.modifyFields((T.fields||[]).map(function(N){var F=N===x,L=F?$t({},N,{value:C}):N;return L}),h);return S},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 fa(t,[{key:\"render\",value:function(){var r=this.props,i=r.arg,o=r.parentField,s=this._getArgSelection();return Se.createElement(o9,{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 i9(e,t,n){return Vx(n)}var Eee=function(e){pa(t,e);function t(){var n,r,i,o;da(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,T=h.parentField,x=h.arg,D=Ul(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:m1(m,y,T,Object.keys(b).map(function(C){return b[C]}))}}}else(0,ut.isLeafType)(D)&&(_={kind:\"Argument\",name:{kind:\"Name\",value:x.name},value:m(T,x,D)});return _?i.props.modifyArguments([].concat(Do(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 T=i.props.selection,x=i._getArgSelection();if(!x&&!m){console.error(\"missing arg selection when setting arg value\");return}var D=Ul(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=r9(D,b)):!f.target&&f.kind===\"VariableDefinition\"?(b=f,C=b.variable):typeof f.kind==\"string\"&&(C=f),i.props.modifyArguments((T.arguments||[]).map(function(S){return S===x?$t({},S,{value:C}):S}),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 fa(t,[{key:\"render\",value:function(){var r=this.props,i=r.arg,o=r.parentField,s=this._getArgSelection();return Se.createElement(o9,{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 wee(e){return e.ctrlKey&&e.key===\"Enter\"}function See(e){return e!==\"FragmentDefinition\"}var Tee=function(e){pa(t,e);function t(){var n,r,i,o;da(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 fa(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=Ul(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),o9=function(e){pa(t,e);function t(){var n,r,i,o;da(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 fa(t,[{key:\"render\",value:function(){var r=this,i=this.props,o=i.argValue,s=i.arg,l=i.styleConfig,c=Ul(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(Tee,{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(bee,{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(),S=(0,ut.parseType)(C),N={kind:\"VariableDefinition\",variable:{kind:\"Variable\",name:{kind:\"Name\",value:b}},type:S,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=Z4(Z,2);de[0];var K=de[1];return K<2}).map(function(Z){var de=Z4(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(Do(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 S=C.definitions.find(function(H){return H.name.value===r.props.definition.name.value});if(!S)return;var N=0;(0,ut.visit)(S,{Variable:function(G){G.name.value===D&&(N=N+1)}});var F=S.variableDefinitions||[];N<2&&(F=F.filter(function(H){return H.variable.name.value!==D}));var L=$t({},S,{variableDefinitions:F}),A=C.definitions,P=A.map(function(H){return S===H?L:H}),V=$t({},C,{definitions:P});r.props.onCommit(V)}}}},y=o&&o.kind===\"Variable\",T=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(v1,{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,n9(s)?\"*\":\"\",\": \",T,\" \"),\" \"),f||Se.createElement(\"span\",null),\" \")}}]),t}(Se.PureComponent),_ee=function(e){pa(t,e);function t(){var n,r,i,o;da(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(Do(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 fa(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(v1,{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(s9,{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),Cee=function(e){pa(t,e);function t(){var n,r,i,o;da(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(Do(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 fa(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(v1,{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 m1(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=Ul(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:m1(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 a9(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(n9(f)||t&&t(n,f)){var h=Ul(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:m1(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 s9=function(e){pa(t,e);function t(){var n,r,i,o;da(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(Do(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:a9(i.props.getDefaultScalarArgValue,i.props.makeDefaultArg,i.props.field),selectionSet:g}]);i.props.modifySelections(m)},i._addFieldToSelections=function(f){var h=[].concat(Do(i.props.selections),[i._previousSelection||{kind:\"Field\",name:{kind:\"Name\",value:i.props.field.name},arguments:a9(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 fa(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=yee(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,T=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(v1,{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,S=C+\"Fragment\",N=(y||[]).filter(function(H){return H.name.value.startsWith(S)}).length;N>0&&(S=\"\"+S+N);var F=f?f.selectionSet?f.selectionSet.selections:[]:[],L=[{kind:\"FragmentSpread\",name:{kind:\"Name\",value:S},directives:[]}],A={kind:\"FragmentDefinition\",name:{kind:\"Name\",value:S},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(Do(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(Eee,{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},T,Se.createElement(\"div\",{style:{marginLeft:16}},y?y.map(function(_){var b=s.getType(_.typeCondition.name.value),C=_.name.value;return b?Se.createElement(Cee,{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(_ee,{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 T}}]),t}(Se.PureComponent);function xee(e){try{return e.trim()?(0,ut.parse)(e,{noLocation:!0}):null}catch(t){return new Error(t)}}var kee={kind:\"OperationDefinition\",operation:\"query\",variableDefinitions:[],name:{kind:\"Name\",value:\"MyQuery\"},directives:[],selectionSet:{kind:\"SelectionSet\",selections:[]}},g1={kind:\"Document\",definitions:[kee]},Jf=null;function Nee(e){if(Jf&&Jf[0]===e)return Jf[1];var t=xee(e);return t?t instanceof Error?Jf?Jf[1]:g1:(Jf=[e,t],t):g1}var l9={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\"}},Dee=function(e){pa(t,e);function t(){var n,r,i,o;da(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(T){return!(T.kind===\"Field\"&&T.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){wee(f)&&See(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 fa(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,T=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,T.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(s9,{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 Aee(){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 u9=function(e){pa(t,e);function t(){var n,r,i,o;da(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 fa(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||pee,checkboxChecked:this.props.checkboxChecked||mee,checkboxUnchecked:this.props.checkboxUnchecked||gee,arrowClosed:this.props.arrowClosed||vee,arrowOpen:this.props.arrowOpen||hee,styles:this.props.styles?$t({},l9,this.props.styles):l9},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(),T=g&&g.getFields(),x=Nee(s),D=this.props.getDefaultFieldNames||t9,_=this.props.getDefaultScalarArgValue||i9,b=x.definitions,C=b.map(function(j){return j.kind===\"FragmentDefinition\"||j.kind===\"OperationDefinition\"?j:null}).filter(Boolean),S=C.length===0?g1.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(Do(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]===g1.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(Do(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,T?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(Do(J),[X]).sort(function(Z,de){return Z.name.value.localeCompare(de.name.value)});return $t({},j,e9({},ne,re))}return j},{}),G=S.reduce(function(j,X){if(X.kind===\"FragmentDefinition\"){var ne=X.typeCondition.name.value,J=j[ne]||[],re=[].concat(Do(J),[X]).sort(function(Z,de){return Z.name.value.localeCompare(de.name.value)});return $t({},j,e9({},ne,re))}return j},{}),z=$t({},G,H),U=this.props.showAttribution?Se.createElement(Aee,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\"}},S.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 He=N(j,Ce);r.props.onEdit((0,ut.print)(He))},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\"?T:j.kind===\"FragmentDefinition\"?ve:null,ce=j.kind===\"FragmentDefinition\"?j.typeCondition.name.value:null,le=function(Ce){var He=(0,ut.print)(Ce);r.props.onEdit(He)};return Se.createElement(Dee,{key:X,isLast:X===S.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,He){var cn=void 0;if((typeof He>\"u\"?\"undefined\":cee(He))===\"object\"&&typeof He.commit<\"u\"?cn=He.commit:cn=!0,Ce){var nt=$t({},x,{definitions:x.definitions.map(function(et){return et===j?Ce:et})});return cn&&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);u9.defaultProps={getDefaultFieldNames:t9,getDefaultScalarArgValue:i9};var Oee=function(e){pa(t,e);function t(){var n,r,i,o;da(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 fa(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){pa(t,e);function t(){return da(this,t),Fn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return fa(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(Oee,null,Se.createElement(u9,this.props))))}}]),t}(Se.PureComponent);Bx.defaultValue=Vx,Bx.defaultProps={width:320,title:\"Explorer\"},h1.default=Bx,Object.defineProperty(p1,\"__esModule\",{value:!0}),p1.Explorer=void 0;var Iee=h1,c9=Lee(Iee);function Lee(e){return e&&e.__esModule?e:{default:e}}p1.Explorer=c9.default;var Fee=p1.default=c9.default,jx={exports:{}},iv={};/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/var f9=Object.getOwnPropertySymbols,Ree=Object.prototype.hasOwnProperty,Pee=Object.prototype.propertyIsEnumerable;function Mee(e){if(e==null)throw new TypeError(\"Object.assign cannot be called with null or undefined\");return Object(e)}function $ee(){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}}$ee();/** @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 Vee=X4,d9=60103;if(iv.Fragment=60107,typeof Symbol==\"function\"&&Symbol.for){var p9=Symbol.for;d9=p9(\"react.element\"),iv.Fragment=p9(\"react.fragment\")}var Bee=Vee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,jee=Object.prototype.hasOwnProperty,Uee={key:!0,ref:!0,__self:!0,__source:!0};function h9(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)jee.call(t,r)&&!Uee.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:d9,type:e,key:o,ref:s,props:i,_owner:Bee.current}}iv.jsx=h9,iv.jsxs=h9,jx.exports=iv;const to=jx.exports.jsx,v9=jx.exports.jsxs;function qee(e){const{setOperationName:t}=Rr({nonNull:!0}),{schema:n}=sa({nonNull:!0}),{run:r}=Rf({nonNull:!0});return to(Fee,J4({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:to(\"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:to(\"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:to(\"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:to(\"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:to(\"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:to(\"circle\",{cx:\"7.5\",cy:\"7.5\",r:\"6\",stroke:\"currentColor\",fill:\"none\"})}),checkboxChecked:v9(\"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:[to(\"circle\",{cx:\"7.5\",cy:\"7.5\",r:\"7.5\",fill:\"currentColor\"}),to(\"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 Hee(e){const t=I.useRef(e);return t.current=e,I.useMemo(()=>({title:\"GraphiQL Explorer\",icon:()=>v9(\"svg\",{height:\"1em\",strokeWidth:\"1.5\",viewBox:\"0 0 24 24\",fill:\"none\",children:[to(\"path\",{d:\"M18 6H20M22 6H20M20 6V4M20 6V8\",stroke:\"currentColor\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}),to(\"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\"}),to(\"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:()=>to(qee,J4({},t.current))}),[])}const zee=e=>Array.isArray(e)?e:e?[e]:[];function Gee(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 Wee(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 m9(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function St(e,t){return TS.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 St(e.message,{nodes:e.nodes,source:e.source,positions:e.positions,path:t??e.path,originalError:e,extensions:e.extensions})}const g9=3;function wr(e){return y1(e,[])}function y1(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 y9(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 e.name===\"AggregateError\"?y9(e)+`\n`+b9(e.errors,t):y9(e);if(t.includes(e))return\"[Circular]\";const n=[...t,e];if(Yee(e)){const r=e.toJSON();if(r!==e)return typeof r==\"string\"?r:y1(r,n)}else if(Array.isArray(e))return b9(e,n);return Jee(e,n)}function Yee(e){return typeof e.toJSON==\"function\"}function Jee(e,t){const n=Object.entries(e);return n.length===0?\"{}\":t.length>g9?\"[\"+Kee(e)+\"]\":\"{ \"+n.map(([i,o])=>i+\": \"+y1(o,t)).join(\", \")+\" }\"}function b9(e,t){if(e.length===0)return\"[]\";if(t.length>g9)return\"[Array]\";const n=e.length,r=[];for(let i=0;i<n;++i)r.push(y1(e[i],t));return\"[\"+r.join(\", \")+\"]\"}function Kee(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 E9(e,t,n={}){const r={},o=(t.arguments??[]).reduce((s,l)=>({...s,[l.name.value]:l}),{});for(const{name:s,type:l,defaultValue:c}of e.args){const f=o[s];if(!f){if(c!==void 0)r[s]=c;else if(We(l))throw St(`Argument \"${s}\" of required type \"${wr(l)}\" was not provided.`,{nodes:[t]});continue}const h=f.value;let g=h.kind===q.NULL;if(h.kind===q.VARIABLE){const y=h.name.value;if(n==null||!m9(n,y)){if(c!==void 0)r[s]=c;else if(We(l))throw St(`Argument \"${s}\" of required type \"${wr(l)}\" was provided the variable \"$${y}\" which was not provided a runtime value.`,{nodes:[h]});continue}g=n[y]==null}if(g&&We(l))throw St(`Argument \"${s}\" of non-null type \"${wr(l)}\" must not be null.`,{nodes:[h]});const m=wo(h,l,n);if(m===void 0)throw St(`Argument \"${s}\" has invalid value ${gt(h)}.`,{nodes:[h]});r[s]=m}return r}function Hx(e){if(We(e)){const t=Hx(e.ofType);if(t.kind===q.NON_NULL_TYPE)throw new Error(`Invalid type node ${wr(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:q.NON_NULL_TYPE,type:t}}else if(Tt(e))return{kind:q.LIST_TYPE,type:Hx(e.ofType)};return{kind:q.NAMED_TYPE,name:{kind:q.NAME,value:e.name}}}function Cs(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 Xee(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 Zee(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 T=new WeakMap;y.set(o,T);const x=new WeakMap;T.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 T=new WeakMap;y.set(s,T);const x=e(r,i,o,s,l);return T.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 T=e(r,i,o,s,l);return y.set(l,T),T}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 ete(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 b1(e,t,n){const i=Gx(e).get(t);if(i==null)throw St(`Schema is not configured to execute ${t} operation.`,{nodes:n});return i}const tte=Cs(function(t){const n=nte(t);return new Set([...n].map(r=>r.name))}),nte=Cs(function(t){const n=Gx(t);return new Set(n.values())}),Gx=Cs(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}),rte=80;let w9={};function ite(e){return`\n# `+e.replace(/\\n/g,`\n# `)}function Ue(e,t){return e?e.filter(n=>n).join(t||\"\"):\"\"}function S9(e){return(e==null?void 0:e.some(t=>t.includes(`\n`)))??!1}function ote(e){return(t,n,r,i,o)=>{var h;const s=[],l=i.reduce((g,m)=>([\"fields\",\"arguments\",\"values\"].includes(m)&&g.name&&s.push(g.name.value),g[m]),o[0]),c=[...s,(h=l==null?void 0:l.name)==null?void 0:h.value].filter(Boolean).join(\".\"),f=[];return t.kind.includes(\"Definition\")&&w9[c]&&f.push(...w9[c]),Ue([...f.map(ite),t.description,e(t,n,r,i,o)],`\n`)}}function ov(e){return e&&` ${e.replace(/\\n/g,`\n `)}`}function ha(e){return e&&e.length!==0?`{\n${ov(Ue(e,`\n`))}\n}`:\"\"}function bn(e,t,n){return t?e+t+(n||\"\"):\"\"}function ate(e,t=!1){const n=e.replace(/\"\"\"/g,'\\\\\"\"\"');return(e[0]===\" \"||e[0]===\"\t\")&&e.indexOf(`\n`)===-1?`\"\"\"${n.replace(/\"$/,`\"\n`)}\"\"\"`:`\"\"\"\n${t?n:ov(n)}\n\"\"\"`}const T9={Name:{leave:e=>e.value},Variable:{leave:e=>\"$\"+e.name},Document:{leave:e=>Ue(e.definitions,`\n\n`)},OperationDefinition:{leave:e=>{const t=bn(\"(\",Ue(e.variableDefinitions,\", \"),\")\");return Ue([e.operation,Ue([e.name,t]),Ue(e.directives,\" \")],\" \")+\" \"+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+\": \"+t+bn(\" = \",n)+bn(\" \",Ue(r,\" \"))},SelectionSet:{leave:({selections:e})=>ha(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=bn(\"\",e,\": \")+t;let s=o+bn(\"(\",Ue(n,\", \"),\")\");return s.length>rte&&(s=o+bn(`(\n`,ov(Ue(n,`\n`)),`\n)`)),Ue([s,Ue(r,\" \"),i],\" \")}},Argument:{leave:({name:e,value:t})=>e+\": \"+t},FragmentSpread:{leave:({name:e,directives:t})=>\"...\"+e+bn(\" \",Ue(t,\" \"))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Ue([\"...\",bn(\"on \",e),Ue(t,\" \"),n],\" \")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${bn(\"(\",Ue(n,\", \"),\")\")} on ${t} ${bn(\"\",Ue(r,\" \"),\" \")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?ate(e):JSON.stringify(e)},BooleanValue:{leave:({value:e})=>e?\"true\":\"false\"},NullValue:{leave:()=>\"null\"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>\"[\"+Ue(e,\", \")+\"]\"},ObjectValue:{leave:({fields:e})=>\"{\"+Ue(e,\", \")+\"}\"},ObjectField:{leave:({name:e,value:t})=>e+\": \"+t},Directive:{leave:({name:e,arguments:t})=>\"@\"+e+bn(\"(\",Ue(t,\", \"),\")\")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>\"[\"+e+\"]\"},NonNullType:{leave:({type:e})=>e+\"!\"},SchemaDefinition:{leave:({directives:e,operationTypes:t})=>Ue([\"schema\",Ue(e,\" \"),ha(t)],\" \")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+\": \"+t},ScalarTypeDefinition:{leave:({name:e,directives:t})=>Ue([\"scalar\",e,Ue(t,\" \")],\" \")},ObjectTypeDefinition:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Ue([\"type\",e,bn(\"implements \",Ue(t,\" & \")),Ue(n,\" \"),ha(r)],\" \")},FieldDefinition:{leave:({name:e,arguments:t,type:n,directives:r})=>e+(S9(t)?bn(`(\n`,ov(Ue(t,`\n`)),`\n)`):bn(\"(\",Ue(t,\", \"),\")\"))+\": \"+n+bn(\" \",Ue(r,\" \"))},InputValueDefinition:{leave:({name:e,type:t,defaultValue:n,directives:r})=>Ue([e+\": \"+t,bn(\"= \",n),Ue(r,\" \")],\" \")},InterfaceTypeDefinition:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Ue([\"interface\",e,bn(\"implements \",Ue(t,\" & \")),Ue(n,\" \"),ha(r)],\" \")},UnionTypeDefinition:{leave:({name:e,directives:t,types:n})=>Ue([\"union\",e,Ue(t,\" \"),bn(\"= \",Ue(n,\" | \"))],\" \")},EnumTypeDefinition:{leave:({name:e,directives:t,values:n})=>Ue([\"enum\",e,Ue(t,\" \"),ha(n)],\" \")},EnumValueDefinition:{leave:({name:e,directives:t})=>Ue([e,Ue(t,\" \")],\" \")},InputObjectTypeDefinition:{leave:({name:e,directives:t,fields:n})=>Ue([\"input\",e,Ue(t,\" \"),ha(n)],\" \")},DirectiveDefinition:{leave:({name:e,arguments:t,repeatable:n,locations:r})=>\"directive @\"+e+(S9(t)?bn(`(\n`,ov(Ue(t,`\n`)),`\n)`):bn(\"(\",Ue(t,\", \"),\")\"))+(n?\" repeatable\":\"\")+\" on \"+Ue(r,\" | \")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Ue([\"extend schema\",Ue(e,\" \"),ha(t)],\" \")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Ue([\"extend scalar\",e,Ue(t,\" \")],\" \")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Ue([\"extend type\",e,bn(\"implements \",Ue(t,\" & \")),Ue(n,\" \"),ha(r)],\" \")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Ue([\"extend interface\",e,bn(\"implements \",Ue(t,\" & \")),Ue(n,\" \"),ha(r)],\" \")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Ue([\"extend union\",e,Ue(t,\" \"),bn(\"= \",Ue(n,\" | \"))],\" \")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Ue([\"extend enum\",e,Ue(t,\" \"),ha(n)],\" \")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Ue([\"extend input\",e,Ue(t,\" \"),ha(n)],\" \")}};Object.keys(T9).reduce((e,t)=>({...e,[t]:{leave:ote(T9[t].leave)}}),{});function ste(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 lte(e){const t=e.split(/\\r\\n|[\\n\\r]/g),n=ute(t);if(n!==0)for(let r=1;r<t.length;r++)t[r]=t[r].slice(n);for(;t.length>0&&C9(t[0]);)t.shift();for(;t.length>0&&C9(t[t.length-1]);)t.pop();return t.join(`\n`)}function ute(e){let t=null;for(let n=1;n<e.length;n++){const r=e[n],i=_9(r);if(i!==r.length&&(t===null||i<t)&&(t=i,t===0))break}return t===null?0:t}function _9(e){let t=0;for(;t<e.length&&(e[t]===\" \"||e[t]===\"\t\");)t++;return t}function C9(e){return _9(e)===e.length}function cte(e,t,n={}){let r;try{n.commentDescriptions&&t.includes(\"#\")?(r=fte(t,n),n.noLocation&&(r=Hr(gt(r),n))):r=Hr(new qp(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 fte(e,t={}){const n=Hr(e,{...t,noLocation:!1});return Hn(n,{leave:i=>{if(dte(i)){const o=ste(i);if(o!==void 0){const s=lte(`\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 dte(e){return Xg(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 Kf(e,t){if(t){const n=e[t.name];if(Xe(n))return n}}function pte(e){if(\"getFields\"in e){const t=e.getFields();for(const n in t)return t[n].name===\"_fake\"}return!1}function hte(e){switch(e.name){case Wp.name:return Wp;case Qp.name:return Qp;case Kt.name:return Kt;case sn.name:return sn;case Yp.name:return Yp;default:return e}}function vte(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 T=y.name;if(!T.startsWith(\"__\")){if(r[T]!=null){console.warn(`Duplicate schema type name ${T} found; keeping the existing one found in the schema`);continue}r[T]=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(Wg(m))return m;const y=m.toConfig();return y.args=s(y.args),new Ki(y)}function s(m){const y={};for(const T in m){const x=m[T],D=g(x.type);D!=null&&(x.type=D,y[T]=x)}return y}function l(m){if(Xe(m)){const y=m.toConfig(),T={...y,fields:()=>c(y.fields),interfaces:()=>h(y.interfaces)};return new rr(T)}else if(ot(m)){const y=m.toConfig(),T={...y,fields:()=>c(y.fields)};return\"interfaces\"in T&&(T.interfaces=()=>h(y.interfaces)),new ui(T)}else if(On(m)){const y=m.toConfig(),T={...y,types:()=>h(y.types)};return new bl(T)}else if(_t(m)){const y=m.toConfig(),T={...y,fields:()=>f(y.fields)};return new ci(T)}else if(on(m)){const y=m.toConfig();return new Wr(y)}else if(li(m)){if(Kp(m))return m;const y=m.toConfig();return new bo(y)}throw new Error(`Unexpected schema type: ${m}`)}function c(m){const y={};for(const T in m){const x=m[T],D=g(x.type);D!=null&&x.args&&(x.type=D,x.args=s(x.args),y[T]=x)}return y}function f(m){const y={};for(const T in m){const x=m[T],D=g(x.type);D!=null&&(x.type=D,y[T]=x)}return y}function h(m){const y=[];for(const T of m){const x=g(T);x!=null&&y.push(x)}return y}function g(m){if(Tt(m)){const y=g(m.ofType);return y!=null?new an(y):null}else if(We(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=pte(m)?hte(m):l(m),r[y.name]=n[m.name]=y),y!=null?r[y.name]:null}return null}}function E1(e,t,n=null,r=null){if(t==null)return t;const i=ml(e);if(Gr(i))return n!=null?n(i,t):t;if(Tt(i))return zee(t).map(o=>E1(i.ofType,o,n,r));if(_t(i)){const o=i.getFields(),s={};for(const l in t){const c=o[l];c!=null&&(s[l]=E1(c.type,t[l],n,r))}return r!=null?r(i,s):s}}function w1(e,t){return E1(e,t,(n,r)=>{try{return n.serialize(r)}catch{return r}})}function mte(e,t){return E1(e,t,(n,r)=>{try{return n.parseValue(r)}catch{return r}})}function gte(e,t={}){const n=N9(k9(Wx(x9(yte(Wx(x9(e.getTypeMap(),e,w1),e,t,l=>Gr(l)),e,t),e,mte),e,t,l=>!Gr(l)),e,t),e,t),r=e.getDirectives(),i=bte(r,e,t),{typeMap:o,directives:s}=vte(n,i);return new Fu({...e.toConfig(),query:Kf(o,Kf(n,e.getQueryType())),mutation:Kf(o,Kf(n,e.getMutationType())),subscription:Kf(o,Kf(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=wte(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 yte(e,t,n){const r=xte(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 T1(new Wr({...o,values:l}))}},i=>on(i)):e}function x9(e,t,n){const r=N9(e,t,{[ft.ARGUMENT]:i=>{if(i.defaultValue===void 0)return i;const o=S1(e,i.type);if(o!=null)return{...i,defaultValue:n(o,i.defaultValue)}}});return k9(r,t,{[ft.INPUT_OBJECT_FIELD]:i=>{if(i.defaultValue===void 0)return i;const o=S1(r,i.type);if(o!=null)return{...i,defaultValue:n(o,i.defaultValue)}}})}function S1(e,t){if(Tt(t)){const n=S1(e,t.ofType);return n!=null?new an(n):null}else if(We(t)){const n=S1(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 k9(e,t,n){const r={};for(const i in e)if(!i.startsWith(\"__\")){const o=e[i];if(!Xe(o)&&!ot(o)&&!_t(o)){r[i]=o;continue}const s=Tte(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,T]=m;T.astNode!=null&&(T.astNode={...T.astNode,name:{...T.astNode.name,value:y}}),f[y]=T===void 0?g:T}else m!==null&&(f[h]=m)}Xe(o)?r[i]=T1(new rr({...l,fields:f})):ot(o)?r[i]=T1(new ui({...l,fields:f})):r[i]=T1(new ci({...l,fields:f}))}return r}function N9(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=_te(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 T={};for(const x of y){const D=m[x],_=s(D,h,i,t);if(_===void 0)T[x]=D;else if(Array.isArray(_)){const[b,C]=_;T[b]=C}else _!==null&&(T[x]=_)}f[h]={...g,args:T}}Xe(o)?r[i]=new rr({...l,fields:f}):ot(o)?r[i]=new ui({...l,fields:f}):r[i]=new ci({...l,fields:f})}return r}function bte(e,t,n){const r=Cte(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 Ete(e,t){var i,o,s;const n=e.getType(t),r=[ft.TYPE];return Xe(n)?(r.push(ft.COMPOSITE_TYPE,ft.OBJECT_TYPE),t===((i=e.getQueryType())==null?void 0:i.name)?r.push(ft.ROOT_OBJECT,ft.QUERY):t===((o=e.getMutationType())==null?void 0:o.name)?r.push(ft.ROOT_OBJECT,ft.MUTATION):t===((s=e.getSubscriptionType())==null?void 0:s.name)&&r.push(ft.ROOT_OBJECT,ft.SUBSCRIPTION)):_t(n)?r.push(ft.INPUT_OBJECT_TYPE):ot(n)?r.push(ft.COMPOSITE_TYPE,ft.ABSTRACT_TYPE,ft.INTERFACE_TYPE):On(n)?r.push(ft.COMPOSITE_TYPE,ft.ABSTRACT_TYPE,ft.UNION_TYPE):on(n)?r.push(ft.ENUM_TYPE):li(n)&&r.push(ft.SCALAR_TYPE),r}function wte(e,t,n){const r=Ete(e,n);let i;const o=[...r];for(;!i&&o.length>0;){const s=o.pop();i=t[s]}return i??null}function Ste(e,t){var i,o,s;const n=e.getType(t),r=[ft.FIELD];return Xe(n)?(r.push(ft.COMPOSITE_FIELD,ft.OBJECT_FIELD),t===((i=e.getQueryType())==null?void 0:i.name)?r.push(ft.ROOT_FIELD,ft.QUERY_ROOT_FIELD):t===((o=e.getMutationType())==null?void 0:o.name)?r.push(ft.ROOT_FIELD,ft.MUTATION_ROOT_FIELD):t===((s=e.getSubscriptionType())==null?void 0:s.name)&&r.push(ft.ROOT_FIELD,ft.SUBSCRIPTION_ROOT_FIELD)):ot(n)?r.push(ft.COMPOSITE_FIELD,ft.INTERFACE_FIELD):_t(n)&&r.push(ft.INPUT_OBJECT_FIELD),r}function Tte(e,t,n){const r=Ste(e,n);let i;const o=[...r];for(;!i&&o.length>0;){const s=o.pop();i=t[s]}return i??null}function _te(e){const t=e[ft.ARGUMENT];return t??null}function Cte(e){const t=e[ft.DIRECTIVE];return t??null}function xte(e){const t=e[ft.ENUM_VALUE];return t??null}function T1(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 ui(t)}else if(_t(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 ci(t)}else if(on(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 Wr(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:D9(l.value,t).then(A9,i)}let s;if(n){const l=n;s=c=>D9(c,l).then(A9,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 D9(e,t){return new Promise(n=>n(t(e)))}function A9(e){return{value:e,done:!1}}function O9(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 I9(e){let t=0;return n=>{let r;do r=`_v${(t++).toString()}_${n}`;while(r in e);return r}}function _1(e,t,n){return n==null||t==null?!1:t===n?!0:hn(t)&&hn(n)?Gp(e,t,n):!1}function kte(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 Nte(e,t){const n=vT(e,t);if(!n)throw new Error(`Cannot infer operation ${t||\"\"}`);return n}const xs=Cs(function(t){return Nte(t.document,t.operationName)}),Dte=new Ki({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(sn),description:\"Deferred when true or undefined.\",defaultValue:!0},label:{type:Kt,description:\"Unique name\"}}}),Ate=new Ki({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(sn),description:\"Stream when true or undefined.\",defaultValue:!0},label:{type:Kt,description:\"Unique name\"},initialCount:{defaultValue:0,type:Wp,description:\"Number of items to return immediately\"}}});class C1 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 Xf(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(Ote(c),c);break}case q.INLINE_FRAGMENT:{if(!Kx(n,c)||!L9(e,c,r))continue;const f=F9(n,c);if(f){const h=new C1;Xf(e,t,n,r,c.selectionSet,h,s,l),s.push({label:f.label,fields:h})}else Xf(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=F9(n,c);if(l.has(f)&&!h)continue;const g=t[f];if(!g||!L9(e,g,r))continue;if(h||l.add(f),h){const m=new C1;Xf(e,t,n,r,g.selectionSet,m,s,l),s.push({label:h.label,fields:m})}else Xf(e,t,n,r,g.selectionSet,o,s,l);break}}}function Jx(e,t,n,r,i){const o=new C1,s=[];return Xf(e,t,n,r,i,o,s,new Set),{fields:o,patches:s}}function Kx(e,t){const n=ps(zg,t,e);if((n==null?void 0:n.if)===!0)return!1;const r=ps(Hg,t,e);return(r==null?void 0:r.if)!==!1}function L9(e,t,n){const r=t.typeCondition;if(!r)return!0;const i=mr(e,r);return i===n?!0:nr(i)?e.getPossibleTypes(i).includes(n):!1}function Ote(e){return e.alias?e.alias.value:e.name.value}function F9(e,t){const n=ps(Dte,t,e);if(n&&n.if!==!1)return{label:typeof n.label==\"string\"?n.label:void 0}}const Ite=Zee(function(t,n,r,i,o){const s=new C1,l=new Set,c=[],f={fields:s,patches:c};for(const h of o)h.selectionSet&&Xf(t,n,r,i,h.selectionSet,s,c,l);return f});function nc(e){return typeof e==\"object\"&&e!=null&&Symbol.asyncIterator in e&&typeof e[Symbol.asyncIterator]==\"function\"}async function Lte(e){return{value:e,done:!0}}const R9=zx(function(t,n){return function(...i){return Reflect.apply(n,t,i)}});function Fte(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||Lte;return async function(c){const f=await t(c);return Reflect.apply(s,n,[f])}}else if(typeof o==\"function\")return R9(n,o);return o}})}function Rte(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 Fte(l,t)}:typeof o==\"function\"?R9(n,o):o}})}function Zf(e,t,n){return{prev:e,key:t,typename:n}}function mi(e){const t=[];let n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}function Pte(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?void 0:s.call(o,i,n))||i},t)});class Mte{constructor(t){this.schema=t.schema,this.executor=t.executor,this.batch=t.batch,this.batchingOptions=t.batchingOptions,this.createProxyingResolver=t.createProxyingResolver,this.transforms=t.transforms??[],this.merge=t.merge}get transformedSchema(){var t,n;return this._transformedSchema||(((n=(t=globalThis.process)==null?void 0:t.env)==null?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 P9(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 $te(e,t,n,r){const i=qte(n,t,e);if(r==null)return i;const{possibleTypesMap:o,reversePossibleTypesMap:s,interfaceExtensionsMap:l,fieldNodesByType:c,fieldNodesByField:f,dynamicSelectionSetsByField:h}=Bte(r,t),{operations:g,fragments:m,fragmentNames:y}=P9(i),{expandedFragments:T,fragmentReplacements:x}=Ute(m,y,o),D=new ds(t),_={kind:q.DOCUMENT,definitions:[...g,...m,...T]},b={Document:[\"definitions\"],OperationDefinition:[\"selectionSet\"],SelectionSet:[\"selections\"],Field:[\"selectionSet\"],InlineFragment:[\"selectionSet\"],FragmentDefinition:[\"selectionSet\"]};return Hn(_,Pu(D,{[q.SELECTION_SET]:C=>Vte(C,x,t,D,o,s,l,c,f,h)}),b)}function Vte(e,t,n,r,i,o,s,l,c,f){var m,y;const h=new Set,g=r.getParentType();if(g!=null){const T=Nt(g),x=T.name,D=l[x];if(D)for(const C of D)h.add(C);const _=s[T.name],b=[];for(const C of e.selections)if(C.kind===q.INLINE_FRAGMENT){if(C.typeCondition!=null){const S=i[C.typeCondition.name.value];if(S==null){h.add(C);continue}for(const N of S){const F=n.getType(N);F!=null&&_1(n,T,F)&&h.add(M9(N,C.selectionSet))}}}else if(C.kind===q.FRAGMENT_SPREAD){const S=C.name.value;if(!t[S]){h.add(C);continue}for(const N of t[S]){const F=N.typeName;n.getType(F)!=null&&_1(n,T,g)&&h.add({kind:q.FRAGMENT_SPREAD,name:{kind:q.NAME,value:N.fragmentName}})}}else{const S=C.name.value,N=(m=c[x])==null?void 0:m[S];if(N!=null)for(const L of N)h.add(L);const F=(y=f[x])==null?void 0:y[S];if(F!=null)for(const L of F){const A=L(C);if(A!=null)for(const P of A.selections)h.add(P)}_!=null&&_[S]?b.push(C):h.add(C)}if(o[T.name]&&h.add({kind:q.FIELD,name:{kind:q.NAME,value:\"__typename\"}}),b.length){const C=i[T.name];if(C!=null)for(const S of C)h.add(M9(S,{kind:q.SELECTION_SET,selections:b}))}return{...e,selections:Array.from(h)}}return e}function M9(e,t){return{kind:q.INLINE_FRAGMENT,typeCondition:{kind:q.NAMED_TYPE,name:{kind:q.NAME,value:e}},selectionSet:t}}const Bte=zx((e,t)=>{var l;const n=e.getTypeMap(),r=t.getTypeMap(),i=Object.create(null),o=Object.create(null);for(const c in n){const f=n[c];if(nr(f)){const h=r[c];if(ot(f)&&ot(h)){const g=h.getFields(),m=f.getFields(),y=Object.create(null);let T=!0;for(const x in m)g[x]||(y[x]=!0,T=!1);T||(o[c]=y)}if(o[c]||!nr(h)){const g=e.getPossibleTypes(f);i[c]=[];for(const m of g)r[m.name]&&i[c].push(m.name)}}}const s=(l=e.extensions)==null?void 0:l.stitchingInfo;return{possibleTypesMap:i,reversePossibleTypesMap:jte(i),interfaceExtensionsMap:o,fieldNodesByType:(s==null?void 0:s.fieldNodesByType)??{},fieldNodesByField:(s==null?void 0:s.fieldNodesByField)??{},dynamicSelectionSetsByField:(s==null?void 0:s.dynamicSelectionSetsByField)??{}}});function jte(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 Ute(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 qte(e,t,n){const r=Nt(e);if(!hn(r))return n;const i=tte(t),o=new ds(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 Hte(e,t,n){let r=[],i=[];const o=[];let s=[];const l=[],c=Object.create(null);for(const g of t){const m=g.typeCondition.name.value,y=e.getType(m);y!=null&&(l.push(g),c[g.name.value]=y)}let f=Object.create(null);for(const g of n){const m=b1(e,g.operation),{selectionSet:y,usedFragments:T,usedVariables:x}=$9(e,m,c,g.selectionSet);i=av(i,T);const{usedVariables:D,newFragments:_,fragmentSet:b}=Qte(e,f,l,c,i),C=av(x,D);r=av(r,C),s=_,f=b;const S=(g.variableDefinitions??[]).filter(N=>C.indexOf(N.variable.name.value)!==-1);o.push({kind:q.OPERATION_DEFINITION,operation:g.operation,name:g.name,directives:g.directives,variableDefinitions:S,selectionSet:y})}const h={kind:q.DOCUMENT,definitions:[...o,...s]};return{usedVariables:r,newDocument:h}}function zte(e,t){let{document:n,variables:r}=e,{operations:i,fragments:o}=P9(n);const{targetSchema:s,args:l}=t;if(l){const g=Gte(s,i,l);i=g.newOperations,r=Object.assign({},r??{},g.newVariables)}const{usedVariables:c,newDocument:f}=Hte(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 Gte(e,t,n){const r=Object.create(null);return{newOperations:t.map(o=>{const s=(o.variableDefinitions??[]).reduce((h,g)=>({...h,[g.variable.name.value]:g}),{}),l=b1(e,o.operation),c=[];for(const h of o.selectionSet.selections)if(h.kind===q.FIELD){const m=(h.arguments??[]).reduce((T,x)=>({...T,[x.name.value]:x}),{}),y=l.getFields()[h.name.value];y!=null&&Wte(y,m,s,r,n),c.push({...h,arguments:Object.values(m)})}else c.push(h);const f={kind:q.SELECTION_SET,selections:c};return{...o,variableDefinitions:Object.values(s),selectionSet:f}}),newVariables:r}}function Wte(e,t,n,r,i){const o=I9(n);for(const s of e.args){const l=s.name,c=s.type;l in i&&O9(t,n,r,l,o(l),c,w1(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:T,usedVariables:x}=$9(e,m,r,f.selectionSet);o=av(o,T),s=av(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 Yte={SelectionSet:[\"selections\"],Field:[\"selectionSet\"],InlineFragment:[\"selectionSet\"],FragmentDefinition:[\"selectionSet\"]},Jte={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 $9(e,t,n,r){const i=[],o=[],s=TS.major<16?new ds(e,void 0,t):new ds(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\"?fs:h[c.name.value];if(!g)return null;const m=g.args!=null?g.args:[],y=Object.create(null);for(const T of m)y[T.name]=T;if(c.arguments!=null){const T=[];for(const x of c.arguments)x.name.value in y&&T.push(x);if(T.length!==c.arguments.length)return{...c,arguments:T}}}},leave:c=>{const f=s.getType();if(f==null)throw new Error(`No type was found for field node ${wr(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(!_1(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(!_1(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}}}}}),Yte);return Hn(l,{[q.VARIABLE]:c=>{o.push(c.name.value)}},Jte),{selectionSet:l,usedFragments:i,usedVariables:o}}function av(...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 ed=Symbol.for(\"subschemaErrors\"),Zx=Symbol.for(\"initialSubschema\"),x1=Symbol.for(\"subschemaMap\");function Kte(e){return e!=null&&typeof e.then==\"function\"}const Xte=e=>{throw e};class Vt{constructor(t){WB(this,\"state\");let n;try{n=t()}catch(r){this.state={status:\"rejected\",value:r};return}if(Kte(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 Vt(()=>r.value.then(t,n));const i=typeof n==\"function\"?n:Xte;if(r.status===\"rejected\")return new Vt(()=>i(r.value));try{const o=typeof t==\"function\"?t:void 0;return o===void 0?new Vt(()=>r.value):new Vt(()=>o(r.value))}catch(o){return new Vt(()=>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 Vt(()=>{throw r})):new Vt(()=>Promise.all(o)):new Vt(()=>o)}}function ek(e){return e[ed]!==void 0}function Zte(e,t,n,r){return Object.defineProperties(e,{[Zx]:{value:n},[x1]:{value:r},[ed]:{value:t}}),e}function V9(e,t){return e[x1][t]??e[Zx]}function B9(e){return e[ed]}const ene=[],k1=Object.create(null);function tne(e,t){return e.reduce((n,r)=>n.then(()=>t(r)),new Vt(()=>{}))}const nne=Cs(function(e){return[e]});function rne(e,t,n,r,i){var s;const o=e.delegationPlanBuilder(i.schema,n,i.variableValues!=null&&Object.keys(i.variableValues).length>0?i.variableValues:k1,i.fragments!=null&&Object.keys(i.fragments).length>0?i.fragments:k1,(s=i.fieldNodes)!=null&&s.length?i.fieldNodes.length===1?nne(i.fieldNodes[0]):i.fieldNodes:ene);return tne(o,l=>ine(e,l,t,r,i)).then(()=>t)}function ine(e,t,n,r,i){const o=n[ed],s=fi(i.path),l=n[x1];function c(f,h,g){if(f instanceof Error||f==null){const T=h.transformedSchema||i.schema,x=T.getType(n.__typename),{fields:D}=Jx(T,k1,k1,x,g),_={};for(const[b,C]of D){const S=[...s,b];f instanceof he?_[b]=qx(f,S):f instanceof Error?_[b]=In(f,C,S):_[b]=null}f=_}else f[ed]&&o.push(...f[ed]);const m=f[Zx],y=f[x1];for(const T in f){const x=n[T],D=f[T];(D!=null||x==null)&&(n[T]=D),l[T]=(y==null?void 0:y[T])??m}}return Vt.all([...t.entries()].map(([f,h])=>new Vt(()=>{const m=(f.transformedSchema||i.schema).getType(n.__typename),y=e.resolvers.get(f);if(y)return y(n,r,i,f,h,void 0,m)}).then(g=>c(g,f,h)).catch(g=>c(g,f,h)))).then(()=>{})}function sv(e,t,n,r,i,o=lne(i),s){const l=ml(o);if(e instanceof Error)return e;if(e==null)return sne(t);if(\"parseValue\"in l)return l.parseValue(e);if(hn(l))return one(l,e,t,n,r,i,s);if(Tt(l))return Array.isArray(e)?ane(l,e,t,n,r,i,s):sv(e,t,n,r,i,l.ofType,s)}function one(e,t,n,r,i,o,s){var g;if(ek(t)||Zte(t,n,r,Object.create(null)),s||o==null)return t;const l=(g=o.schema.extensions)==null?void 0:g.stitchingInfo;if(l==null)return t;const c=nr(e)?t.__typename:e.name,f=l.mergedTypes[c];let h;return f!=null&&(h=f.targetSubschemas.get(r)),!h||!h.length?t:rne(f,t,r,i,o).resolve()}function ane(e,t,n,r,i,o,s){return t.map(l=>sv(l,n,r,i,o,e.ofType,s))}const j9=new WeakMap;function sne(e){if(e.length){const t=[];for(const n of e)j9.has(n)||(t.push(n),j9.set(n,!0));if(t.length){if(t.length===1)return t[0];const n=new AggregateError(t,t.map(r=>r.message).join(`, \n`));return In(n,void 0,t[0].path)}}return null}function lne(e){if(e==null)throw new Error(\"Return type cannot be inferred without a source schema.\");return e.returnType}function une(e={data:null,errors:[]},t){const{context:n,info:r,fieldName:i=cne(r),subschema:o,returnType:s=fne(r),skipTypeMerging:l,onLocatedError:c}=t,{data:f,unpathedErrors:h}=U9(e.data==null?void 0:e.data[i],e.errors==null?[]:e.errors,r!=null&&r.path?fi(r.path):void 0,c);return sv(f,h,o,n,r,s,l)}function U9(e,t,n,r,i=1){var l;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 AggregateError(t,t.map(h=>h.message).join(`, \n`));return{data:In(c,void 0,n),unpathedErrors:[]}}if(!t.length)return{data:e,unpathedErrors:[]};const o=[],s=new Map;for(const c of t){const f=(l=c.path)==null?void 0:l[i];if(f!=null){let h=s.get(f);h===void 0?(h=[c],s.set(f,h)):h.push(c)}else o.push(c)}for(const[c,f]of s)if(e[c]!==void 0){const{data:h,unpathedErrors:g}=U9(e[c],f,n,r,i+1);e[c]=h,o.push(...g)}else o.push(...f);return{data:e,unpathedErrors:o}}function cne(e){if(e==null)throw new Error(\"Data cannot be extracted from result without an explicit key or source schema.\");return Qx(e)}function fne(e){if(e==null)throw new Error(\"Return type cannot be inferred without a source schema.\");return e.returnType}class dne{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 r;let n={...t,document:$te(t.document,this.delegationContext.transformedSchema,this.delegationContext.returnType,(r=this.delegationContext.info)==null?void 0:r.schema)};for(const i of this.transformations)i.transform.transformRequest&&(n=i.transform.transformRequest(n,this.delegationContext,i.context));return zte(n,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 une(n,this.delegationContext)}}function pne(e,t){return e===t.getMutationType()?\"mutation\":e===t.getSubscriptionType()?\"subscription\":\"query\"}function hne({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 A,P;let T;const x=Object.create(null);if(h!=null)T=h;else{const V=[];for(const G of g||[])if(G.selectionSet)for(const z of G.selectionSet.selections)V.push(z);T=V.length?{kind:q.SELECTION_SET,selections:V}:void 0;const H=(A=g==null?void 0:g[0])==null?void 0:A.arguments;if(H)for(const G of H)x[G.name.value]=G}const D=Object.create(null),_=Object.create(null);if(e!=null&&i!=null)for(const V of i){const H=V.variable.name.value;_[H]=V;const G=mr(e,V.type),z=w1(G,o==null?void 0:o[H]);z!==void 0&&(D[H]=z)}t!=null&&n!=null&&vne(t,n,x,_,D);const b=f??((P=g==null?void 0:g[0])==null?void 0:P.name.value);if(b===void 0)throw new Error('Either \"targetFieldName\" or a non empty \"fieldNodes\" array must be provided.');const C={kind:q.FIELD,arguments:Object.values(x),name:{kind:q.NAME,value:b},selectionSet:T},S=l?{kind:q.NAME,value:l}:void 0,F=[{kind:q.OPERATION_DEFINITION,name:S,operation:c,variableDefinitions:Object.values(_),selectionSet:{kind:q.SELECTION_SET,selections:[C]}}];if(r!=null)for(const V in r){const H=r[V];F.push(H)}return{document:{kind:q.DOCUMENT,definitions:F},variables:D,rootValue:s,operationName:l,context:m,info:y,operationType:c}}function vne(e,t,n,r,i){const o=I9(r),s=e.getFields()[t];if(!s)throw new Error(`Field \"${t}\" was not found in type \"${e}\".`);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&&O9(n,r,i,c,o(c),f,w1(f,h))}}}function mne(e,t,n,r){if(!e)return null;const i=Qx(r);if(!ek(e))return vy(e,t,n,r);const o=e[i],s=B9(e),l=V9(e,i);return sv(o,s,l,n,r)}var gne=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=wne(r),this._batchScheduleFn=Sne(r),this._cacheKeyFn=Tne(r),this._cacheMap=_ne(r),this._batch=null,this.name=Cne(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=bne(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(!q9(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}(),yne=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 bne(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(){Ene(e,n)}),n}function Ene(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(!q9(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 wne(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 Sne(e){var t=e&&e.batchScheduleFn;if(t===void 0)return yne;if(typeof t!=\"function\")throw new TypeError(\"batchScheduleFn must be a function: \"+t);return t}function Tne(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 _ne(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 Cne(e){return e&&e.name?e.name:null}function q9(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 xne=gne;const kne=Rc(xne);function Nne(e){return`_${e}_`}function H9(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 Dne(e,t){var g,m,y;const n=Object.create(null),r=[],i=[],o=[];let s=Object.create(null);for(const T in e){const x=e[T],D=Ane(Nne(T),x);for(const _ of D.document.definitions)Fne(_)&&(i.push(..._.selectionSet.selections),_.variableDefinitions&&r.push(..._.variableDefinitions)),N1(_)&&o.push(_);Object.assign(n,D.variables),s=t(s,x)}const l=e[0],c=l.operationType??xs(l).operation,f={kind:q.OPERATION_DEFINITION,operation:c,variableDefinitions:r,selectionSet:{kind:q.SELECTION_SET,selections:i}},h=l.operationName??((y=(m=(g=l.info)==null?void 0:g.operation)==null?void 0:m.name)==null?void 0:y.value);return h&&(f.name={kind:q.NAME,value:h}),{document:{kind:q.DOCUMENT,definitions:[f,...o]},variables:n,extensions:s,context:e[0].context,info:e[0].info,operationType:c}}function Ane(e,t){const n=t.variables??{};function r(f){return W9(f,e)}let i=One(e,t.document);const o=Object.keys(n),s=t.document.definitions.some(f=>N1(f)),l={};(o.length>0||s)&&(i=Hn(i,{[q.VARIABLE]:r,[q.FRAGMENT_DEFINITION]:r,[q.FRAGMENT_SPREAD]:f=>(f=W9(f,e),l[f.name.value]=!0,f)}));const c={};for(const f of o)c[e+f]=n[f];return s&&(i={...i,definitions:i.definitions.filter(f=>!N1(f)||l[f.name.value])}),{document:i,variables:c}}function One(e,t){const n={[q.OPERATION_DEFINITION]:r=>{const{selections:i}=r.selectionSet;return{...r,selectionSet:{...r.selectionSet,selections:z9(e,i,t)}}}};return Hn(t,n,{[q.DOCUMENT]:[\"definitions\"]})}function z9(e,t,n){return t.map(r=>{switch(r.kind){case q.INLINE_FRAGMENT:return G9(e,r,n);case q.FRAGMENT_SPREAD:{const i=Ine(r,n);return G9(e,i,n)}case q.FIELD:default:return Lne(r,e)}})}function G9(e,t,n){const{selections:r}=t.selectionSet;return{...t,selectionSet:{...t.selectionSet,selections:z9(e,r,n)}}}function Ine(e,t){const n=t.definitions.find(o=>N1(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 W9(e,t){return{...e,name:{...e.name,value:t+e.name.value}}}function Lne(e,t){const n=e.alias?e.alias:e.name;return{...e,alias:{...n,value:t+n.value}}}function Fne(e){return e.kind===q.OPERATION_DEFINITION}function N1(e){return e.kind===q.FRAGMENT_DEFINITION}function Rne({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}=H9(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=H9(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(i)});return r}function Pne(e,t,n=$ne){const r=Mne(e,n),i=new kne(r,t);return function(s){return xs(s).operation===\"subscription\"?e(s):i.load(s)}}function Mne(e,t){return function(r){if(r.length===1)return new Vt(()=>e(r[0])).then(h=>[h]).catch(h=>[h]);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 h=r[o],m=xs(h).operation;f===m?l.push(h):(l=[h],i.push(l))}return Vt.all(i.map(h=>new Vt(()=>{const g=Dne(h,t);return e(g)}).then(g=>Rne(g,h.length)))).then(h=>h.flat())}}function $ne(e,t){const n=t.extensions;return n!=null&&Object.assign(e,n),e}const Vne=ete(function(t,n,r,i){return Pne(n,r,i)});function Bne(e){return!!(e!=null&&e.schema)}function jne(e,t,n,r){const i=[],o=r==null?void 0:r.maxErrors;try{const s=Une(e,t,n,l=>{if(o!=null&&i.length>=o)throw St(\"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 Une(e,t,n,r){const i={};for(const o of t){const s=o.variable.name.value,l=mr(e,o.type);if(!zr(l)){const f=gt(o.type);r(St(`Variable \"$${s}\" expected value of type \"${f}\" which cannot be used as an input type.`,{nodes:o.type}));continue}if(!m9(n,s)){if(o.defaultValue)i[s]=wo(o.defaultValue,l);else if(We(l)){const f=wr(l);r(St(`Variable \"$${s}\" of required type \"${f}\" was not provided.`,{nodes:o}))}continue}const c=n[s];if(c===null&&We(l)){const f=wr(l);r(St(`Variable \"$${s}\" of non-null type \"${f}\" must not be null.`,{nodes:o}));continue}i[s]=iT(c,l,(f,h,g)=>{let m=`Variable \"$${s}\" got invalid value `+wr(h);f.length>0&&(m+=` at \"${s}${Pte(f)}\"`),r(St(m+\"; \"+g.message,{nodes:o,originalError:g.originalError}))})}return i}async function Q9(e){const t=Object.create(null);return await Promise.all(Object.entries(e).map(async([n,r])=>{t[n]=await r})),t}function qne(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?void 0:s.call(n),(l=t.return)==null?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?void 0:l.call(n,s),(c=t.throw)==null?void 0:c.call(t,s)]),s},[Symbol.asyncIterator](){return this}}}function Y9(e,t){if(!e)throw new Error(t??\"Unexpected invariant triggered.\")}const Hne=Xee((e,t,n)=>Ite(e.schema,e.fragments,e.variableValues,t,n));function zne(e){const t=X9(e);return\"schema\"in t?J9(t):{errors:t.map(n=>{var r;return Object.defineProperty(n,\"extensions\",{value:{...n.extensions,http:{...(r=n.extensions)==null?void 0:r.http,status:400}}}),n})}}function J9(e){return new Vt(()=>Qne(e)).then(t=>{const n=K9(t,e.errors);return e.subsequentPayloads.size>0?{initialResult:{...n,hasNext:!0},subsequentResults:ure(e)}:n},t=>(e.errors.push(t),K9(null,e.errors))).resolve()}function K9(e,t){return t.length===0?{data:e}:{errors:t,data:e}}const Gne=Cs(function(t){const n=Object.create(null);for(const r of t.definitions)r.kind===q.FRAGMENT_DEFINITION&&(n[r.name.value]=r);return n});function X9(e){var T;const{schema:t,document:n,rootValue:r,contextValue:i,variableValues:o,operationName:s,fieldResolver:l,typeResolver:c,subscribeFieldResolver:f}=e;Kg(t);const h=Gne(n);let g;for(const x of n.definitions)switch(x.kind){case q.OPERATION_DEFINITION:if(s==null){if(g!==void 0)return[St(\"Must provide operation name if query contains multiple operations.\")];g=x}else((T=x.name)==null?void 0:T.value)===s&&(g=x);break}if(g==null)return s!=null?[St(`Unknown operation named \"${s}\".`)]:[St(\"Must provide an operation.\")];const m=g.variableDefinitions??[],y=jne(t,m,o??{},{maxErrors:50});return y.errors?y.errors:{schema:t,fragments:h,rootValue:r,contextValue:i,operation:g,variableValues:y.coerced,fieldResolver:l??a6,typeResolver:c??ere,subscribeFieldResolver:f??a6,subsequentPayloads:new Set,errors:[]}}function Wne(e,t){return{...e,rootValue:t,subsequentPayloads:new Set,errors:[]}}function Qne(e){const{operation:t,schema:n,fragments:r,variableValues:i,rootValue:o}=e,s=b1(n,t.operation,[t]);s==null&&St(`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=Yne(e,s,o,f,l):h=ik(e,s,o,f,l);for(const g of c){const{label:m,fields:y}=g;c6(e,s,o,y,m,f)}return h}function Yne(e,t,n,r,i){return Wee(i,(o,[s,l])=>{const c=Zf(r,s,t.name);return new Vt(()=>Z9(e,t,n,l,c)).then(f=>(f===void 0||(o[s]=f),o))},Object.create(null)).resolve()}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=Zf(r,c,t.name),g=Z9(e,t,n,f,h,o);g!==void 0&&(s[c]=g,sr(g)&&(l=!0))}}catch(c){if(l)return Q9(s).finally(()=>{throw c});throw c}return l?Q9(s):s}function Z9(e,t,n,r,i,o){const s=(o==null?void 0:o.errors)??e.errors,l=d6(e.schema,t,r[0]);if(!l)return;const c=l.type,f=l.resolve??e.fieldResolver,h=e6(e,l,r,t,i);try{const g=E9(l,r[0],e.variableValues),m=e.contextValue,y=f(n,g,m,h);let T;return sr(y)?T=y.then(x=>ql(e,c,r,h,i,x,o)):T=ql(e,c,r,h,i,y,o),sr(T)?T.then(void 0,x=>{const D=In(x,r,mi(i)),_=Ba(D,c,s);return Ao(e,i,o),_}):T}catch(g){const m=In(g,r,mi(i)),y=Ba(m,c,s);return Ao(e,i,o),y}}function e6(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 Ba(e,t,n){if(We(t))throw e;return n.push(e),null}function ql(e,t,n,r,i,o,s){if(o instanceof Error)throw o;if(We(t)){const l=ql(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(Tt(t))return Kne(e,t,n,r,i,o,s);if(Gr(t))return Xne(t,o);if(nr(t))return Zne(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: \"+wr(t))}function t6(e,t,n){if(typeof n.key==\"number\")return;const r=ps(Ate,t[0],e.variableValues);if(r&&r.if!==!1)return Y9(typeof r.initialCount==\"number\",\"initialCount must be a number\"),Y9(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){const l=(s==null?void 0:s.errors)??e.errors,c=t6(e,n,i);let f=!1;const h=[];let g=0;for(;;){if(c&&typeof c.initialCount==\"number\"&&g>=c.initialCount){sre(g,o,e,n,r,t,i,c.label,s);break}const m=Zf(i,g,void 0);let y;try{if(y=await o.next(),y.done)break}catch(T){const x=In(T,n,mi(m));h.push(Ba(x,t,l));break}n6(y.value,h,l,e,t,n,r,m,s)&&(f=!0),g+=1}return f?Promise.all(h):h}function Kne(e,t,n,r,i,o,s){const l=t.ofType,c=(s==null?void 0:s.errors)??e.errors;if(nc(o)){const T=o[Symbol.asyncIterator]();return Jne(e,l,n,r,i,T,s)}if(!Gee(o))throw St(`Expected Iterable, but did not find one for field \"${r.parentType.name}.${r.fieldName}\".`);const f=t6(e,n,i);let h=!1,g=s;const m=[];let y=0;for(const T of o){const x=Zf(i,y,void 0);if(f&&typeof f.initialCount==\"number\"&&y>=f.initialCount){g=ore(i,x,T,e,n,r,l,f.label,g),y++;continue}n6(T,m,c,e,l,n,r,x,s)&&(h=!0),y++}return h?Promise.all(m):m}function n6(e,t,n,r,i,o,s,l,c){try{let f;if(sr(e)?f=e.then(h=>ql(r,i,o,s,l,h,c)):f=ql(r,i,o,s,l,e,c),sr(f))return t.push(f.then(void 0,h=>{const g=In(h,o,mi(l)),m=Ba(g,i,n);return Ao(r,l,c),m})),!0;t.push(f)}catch(f){const h=In(f,o,mi(l)),g=Ba(h,i,n);Ao(r,l,c),t.push(g)}return!1}function Xne(e,t){let n;try{n=e.serialize(t)}catch(r){throw r instanceof he?new Error(r.message):r}if(n==null)throw new Error(`Expected \\`${wr(e)}.serialize(${wr(t)})\\` to return non-nullable value, returned: ${wr(n)}`);return n}function Zne(e,t,n,r,i,o,s){const l=t.resolveType??e.typeResolver,c=e.contextValue,f=l(o,c,r,t);return sr(f)?f.then(h=>ok(e,r6(h,e,t,n,r,o),n,r,i,o,s)):ok(e,r6(f,e,t,n,r,o),n,r,i,o,s)}function r6(e,t,n,r,i,o){if(e==null)throw St(`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 St(\"Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.\");if(typeof e!=\"string\")throw St(`Abstract type \"${n.name}\" must resolve to an Object type at runtime for field \"${i.parentType.name}.${i.fieldName}\" with value ${wr(o)}, received \"${wr(e)}\".`);const s=t.schema.getType(e);if(s==null)throw St(`Abstract type \"${n.name}\" was resolved to a type \"${e}\" that does not exist inside the schema.`,{nodes:r});if(!Xe(s))throw St(`Abstract type \"${n.name}\" was resolved to a non-object type \"${e}\".`,{nodes:r});if(!t.schema.isSubType(n,s))throw St(`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 i6(t,o,n);return o6(e,t,n,i,o,s)});if(!l)throw i6(t,o,n)}return o6(e,t,n,i,o,s)}function i6(e,t,n){return St(`Expected value of type \"${e.name}\" but got: ${wr(t)}.`,{nodes:n})}function o6(e,t,n,r,i,o){const{fields:s,patches:l}=Hne(e,t,n),c=ik(e,t,i,r,s,o);for(const f of l){const{label:h,fields:g}=f;c6(e,t,i,g,h,r,o)}return c}const ere=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})},a6=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 tre(e){const t=X9(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?void 0:i.http,status:400}}}),r})};const n=rre(t);return sr(n)?n.then(r=>l6(t,r)):l6(t,n)}function s6(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*nre(e){\"initialResult\"in e?yield*s6(e):yield e}function l6(e,t){return nc(t)?qne(Yx(t[Symbol.asyncIterator](),async n=>nre(await J9(Wne(e,n))),async function*(n){yield{errors:[St(n.message,{originalError:n,nodes:[e.operation]})]}})):t}function rre(e){try{const t=ire(e);return sr(t)?t.then(void 0,n=>({errors:[n]})):t}catch(t){return{errors:[t]}}}function ire(e){const{schema:t,fragments:n,operation:r,variableValues:i,rootValue:o}=e,s=t.getSubscriptionType();if(s==null)throw St(\"Schema is not configured to execute subscription operation.\",{nodes:r});const{fields:l}=Jx(t,n,i,s,r.selectionSet),[c,f]=[...l.entries()][0],h=f[0].name.value,g=d6(t,s,f[0]);if(!g)throw St(`The subscription field \"${h}\" is not defined.`,{nodes:f});const m=Zf(void 0,c,s.name),y=e6(e,g,f,s,m);try{const T=E9(g,f[0],i),x=e.contextValue,_=(g.subscribe??e.subscribeFieldResolver)(o,T,x,y);return sr(_)?_.then(u6).then(void 0,b=>{throw In(b,f,mi(m))}):u6(_)}catch(T){throw In(T,f,mi(m))}}function u6(e){if(e instanceof Error)throw e;if(!nc(e))throw St(`Subscription field must return Async Iterable. Received: ${wr(e)}.`);return e}function c6(e,t,n,r,i,o,s){const l=new cre({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 ore(e,t,n,r,i,o,s,l,c){const f=new f6({label:l,path:t,parentContext:c,exeContext:r});let h;try{try{sr(n)?h=n.then(m=>ql(r,s,i,o,t,m,f)):h=ql(r,s,i,o,t,n,f),sr(h)&&(h=h.then(void 0,m=>{const y=In(m,i,mi(t)),T=Ba(y,s,f.errors);return Ao(r,t,f),T}))}catch(m){const y=In(m,i,mi(t));h=Ba(y,s,f.errors),Ao(r,t,f)}}catch(m){return f.errors.push(m),Ao(r,e,f),f.addItems(null),f}let g;return sr(h)?g=h.then(m=>[m],m=>(f.errors.push(m),Ao(r,e,f),null)):g=[h],f.addItems(g),f}async function are(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,mi(s));return{done:!0,value:Ba(h,i,o.errors)}}let c;try{return c=ql(t,i,n,r,s,l,o),sr(c)&&(c=c.then(void 0,f=>{const h=In(f,n,mi(s)),g=Ba(h,i,o.errors);return Ao(t,s,o),g})),{done:!1,value:c}}catch(f){const h=In(f,n,mi(s)),g=Ba(h,i,o.errors);return Ao(t,s,o),{done:!1,value:g}}}async function sre(e,t,n,r,i,o,s,l,c){let f=e,h=c??void 0;for(;;){const g=Zf(s,f,void 0),m=new f6({label:l,path:g,parentContext:h,iterator:t,exeContext:n});let y;try{y=await are(t,n,r,i,o,m,g)}catch(_){m.errors.push(_),Ao(n,s,m),m.addItems(null),t!=null&&t.return&&t.return().catch(()=>{});return}const{done:T,value:x}=y;let D;if(sr(x)?D=x.then(_=>[_],_=>(m.errors.push(_),Ao(n,s,m),null)):D=[x],m.addItems(D),T)break;h=m,f++}}function Ao(e,t,n){const r=mi(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.return)&&i.iterator.return().catch(()=>{}),e.subsequentPayloads.delete(i)}})}function lre(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 ure(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=lre(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.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 cre{constructor(t){this.type=\"defer\",this.label=t.label,this.path=mi(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 r,i,o;const n=(r=this.parentContext)==null?void 0:r.promise;if(n){(i=this._resolve)==null||i.call(this,n.then(()=>t));return}(o=this._resolve)==null||o.call(this,t)}}class f6{constructor(t){this.type=\"stream\",this.items=null,this.label=t.label,this.path=mi(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 r,i,o;const n=(r=this.parentContext)==null?void 0:r.promise;if(n){(i=this._resolve)==null||i.call(this,n.then(()=>t));return}(o=this._resolve)==null||o.call(this,t)}setIsCompletedIterator(){this.isCompletedIterator=!0}}function ak(e){return e.type===\"stream\"}function d6(e,t,n){const r=n.name.value;return r===wl.name&&e.getQueryType()===t?wl:r===Sl.name&&e.getQueryType()===t?Sl:r===fs.name?fs:t.getFields()[r]}function fre(e){const t=vT(e.document,e.operationName);if(t==null)throw new Error(\"Must provide an operation.\");return t.operation===\"subscription\"?tre(e):new Vt(()=>zne(e)).then(n=>\"initialResult\"in n?s6(n):n).resolve()}function dre(e){var g;const{info:t,schema:n,rootValue:r=n.rootValue??t.rootValue,operationName:i=(g=t.operation.name)==null?void 0:g.value,operation:o=pne(t.parentType,t.schema),fieldName:s=t.fieldName,selectionSet:l,fieldNodes:c=t.fieldNodes,context:f}=e,h=hne({sourceSchema:t.schema,sourceParentType:t.parentType,sourceFieldName:t.fieldName,fragments:t.fragments,variableDefinitions:t.operation.variableDefinitions,variableValues:t.variableValues,targetRootValue:r,targetOperationName:i,targetOperation:o,targetFieldName:s,selectionSet:l,fieldNodes:c,context:f,info:t});return pre({...e,request:h})}function p6(e,t,n){const r=b1(e,t),i=r.getFields()[n];if(!i)throw new Error(`Unable to find field '${n}' in type '${r}'.`);return i.type}function pre(e){const t=hre(e),n=new dne(t),r=n.transformRequest(e.request);e.validateRequest&&vre(t,r.document);const i=gre(t);return new Vt(()=>i(r)).then(o=>{if(nc(o)){const s=o[Symbol.asyncIterator]();return Yx(s,l=>n.transformResult(l))}return n.transformResult(o)}).resolve()}function hre({request:e,schema:t,fieldName:n,returnType:r,args:i,info:o,transforms:s=[],transformedSchema:l,skipTypeMerging:c=!1}){var T;const f=xs(e);let h;n==null?h=f.selectionSet.selections[0].name.value:h=n;const g=(T=o==null?void 0:o.schema.extensions)==null?void 0:T.stitchingInfo,m=(g==null?void 0:g.subschemaMap.get(t))??t,y=f.operation;if(Bne(m)){const x=m.schema;return{subschema:t,subschemaConfig:m,targetSchema:x,operation:y,fieldName:h,args:i,context:e.context,info:o,returnType:r??(o==null?void 0:o.returnType)??p6(x,y,h),transforms:m.transforms!=null?m.transforms.concat(s):s,transformedSchema:l??(m instanceof Mte?m.transformedSchema:Xx(x,m)),skipTypeMerging:c}}return{subschema:t,subschemaConfig:void 0,targetSchema:m,operation:y,fieldName:h,args:i,context:e.context,info:o,returnType:r??(o==null?void 0:o.returnType)??p6(m,y,h),transforms:s,transformedSchema:l??m,skipTypeMerging:c}}function vre(e,t){const n=rh(e.targetSchema,t);if(n.length>0){if(n.length>1)throw new AggregateError(n,n.map(o=>o.message).join(`, \n`));const r=n[0];throw r.originalError||r}}const mre={};function gre(e){const{subschemaConfig:t,targetSchema:n,context:r}=e;let i=(t==null?void 0:t.executor)||yre(n);if(t!=null&&t.batch){const o=t==null?void 0:t.batchingOptions;i=Vne(r??mre,i,o==null?void 0:o.dataLoaderOptions,o==null?void 0:o.extensionsReducer)}return i}const yre=Cs(function(t){return function(r){return fre({schema:t,document:r.document,rootValue:r.rootValue,contextValue:r.context,variableValues:r.variables,operationName:r.operationName})}});function bre(e){const t=e.schema,n=e.createProxyingResolver??Sre,r=Gx(t),i={};for(const[o,s]of r.entries()){const l=s.name,c=s.getFields();i[l]={};for(const f in c){const h=n({subschemaConfig:e,operation:o,fieldName:f}),g=wre(e,h);o===\"subscription\"?i[l][f]={subscribe:g,resolve:Ere}:i[l][f]={resolve:g}}}return i}function Ere(e){return e}function wre(e,t){return function(r,i,o,s){if(r!=null){const l=Qx(s);if(ek(r)){const c=B9(r),f=V9(r,l);if(e===f&&r[l]!==void 0)return sv(r[l],c,f,o,s)}}return t(r,i,o,s)}}function Sre({subschemaConfig:e,operation:t}){return function(r,i,o,s){return dre({schema:e,operation:t,context:o,info:s})}}const h6=Cs(function(t){const n=t.schema,r=bre(t),i=Tre(n,r);return Xx(i,t)});function Tre(e,t){return gte(e,{[ft.ROOT_FIELD]:(n,r,i)=>{var o;return{...n,...(o=t[i])==null?void 0:o[r]}},[ft.OBJECT_FIELD]:n=>({...n,resolve:mne,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 ui({...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 _re(e,t){var n;if((n=e==null?void 0:e.data)!=null&&n.__schema)return mT(e.data,t);if(e!=null&&e.errors){const r=e.errors.map(i=>St(i.message,i));throw e.errors.length===1?r[0]:new AggregateError(r,\"Could not obtain introspection result\")}throw St(`Could not obtain introspection result, received the following as response; \n ${wr(e)}`)}function v6(e,t,n){const r=Hr(my(n),n);return new Vt(()=>e({document:r,context:t})).then(i=>nc(i)?i[Symbol.asyncIterator]().next().then(({value:s})=>s):i).then(i=>_re(i,n)).resolve()}var td=null;typeof WebSocket<\"u\"?td=WebSocket:typeof MozWebSocket<\"u\"?td=MozWebSocket:typeof global<\"u\"?td=global.WebSocket||global.MozWebSocket:typeof window<\"u\"?td=window.WebSocket||window.MozWebSocket:typeof self<\"u\"&&(td=self.WebSocket||self.MozWebSocket);const m6=td;var g6=globalThis.fetch,Cre=globalThis.FormData,xre=globalThis.File,y6=globalThis.TextDecoder;const kre=async(e,t)=>g6(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[Ke].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[Ke].url=n.responseURL,i[Ke].redirected=n.responseURL!==t.url,i}const Ke=Symbol(\"SyncFetch Internals\"),Nre=[\"mode\",\"cache\",\"redirect\",\"referrer\",\"integrity\"],Dre={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 lv{constructor(t,n={}){for(const r of Nre)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[Ke]={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[Ke].url=t;else if(t instanceof lv)this[Ke].url=t.url,n.method||(this[Ke].method=t.method),n.headers||(this[Ke].headers=t.headers),n.body||(this[Ke].body=t[Ke].body),n.credentials||(this[Ke].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[Ke].credentials}get destination(){return\"\"}get headers(){return this[Ke].headers}get integrity(){return\"\"}get method(){return this[Ke].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[Ke].url}clone(){return lk(this),new lv(this.url,this[Ke])}}class D1{constructor(t,n={}){this[Ke]={body:t?sk.encode(t):null,bodyUsed:!1,headers:new ks.Headers(n.headers),status:n.status,statusText:n.statusText}}get headers(){return this[Ke].headers}get ok(){const t=this[Ke].status;return t>=200&&t<300}get redirected(){return this[Ke].redirected}get status(){return this[Ke].status}get statusText(){return this[Ke].statusText}get url(){return this[Ke].url}clone(){return this.redirect(this[Ke].url,this[Ke].status)}redirect(t,n){lk(this);const r=new D1(this[Ke].body,{headers:this[Ke].headers,status:n||this[Ke].status,statusText:Dre[n]||this[Ke].statusText});return r[Ke].url=t||this[Ke].url,r[Ke].redirected=this[Ke].redirected,r}}class uv{constructor(t){this[Ke]={body:sk.encode(t),bodyUsed:!1}}get bodyUsed(){return this[Ke].bodyUsed}static mixin(t){for(const n of Object.getOwnPropertyNames(uv.prototype)){if(n===\"constructor\")continue;const r=Object.getOwnPropertyDescriptor(uv.prototype,n);Object.defineProperty(t,n,{...r,enumerable:!0})}}arrayBuffer(){const t=cv(this);return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}blob(){const t=this.headers&&this.headers.get(\"content-type\");return new Blob([cv(this)],t&&{type:t})}text(){return cv(this).toString()}json(){try{return JSON.parse(cv(this).toString())}catch(t){throw new TypeError(`invalid json response body at ${this.url} reason: ${t.message}`,\"invalid-json\")}}buffer(){return cv(this).clone()}}function lk(e){if(e.bodyUsed)throw new TypeError(`body used already for: ${e.url}`)}function cv(e){return lk(e),e[Ke].bodyUsed=!0,e[Ke].body||Buffer.alloc(0)}uv.mixin(lv.prototype),uv.mixin(D1.prototype);class Are{constructor(t){if(t instanceof ks.Headers)this[Ke]={...t[Ke]};else if(this[Ke]={},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[Ke][t]||(this[Ke][t]=[]),this[Ke][t].push(n)}delete(t){delete this[Ke][t.toLowerCase()]}set(t,n){this[Ke][t.toLowerCase()]=[n]}entries(){const t=[];for(const n in this[Ke])for(const r of this[Ke][n])t.push([n,r]);return t}get(t){return t=t.toLowerCase(),t in this[Ke]?this[Ke][t].join(\", \"):null}keys(){return Object.keys(this[Ke])}has(t){return t.toLowerCase()in this[Ke]}values(){const t=[];for(const n in this[Ke])for(const r of this[Ke][n])t.push(r);return t}*[Symbol.iterator](){for(const t in this[Ke])for(const n of this[Ke][t])yield[t,n]}}ks.Headers=Are,ks.Request=lv,ks.Response=D1;var Ore=ks;const Ire=Rc(Ore),Lre=(e,t)=>(typeof e==\"string\"?t==null||delete t.signal:delete e.signal,Ire(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 Fre(e,t){uk(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function nd(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 Hl(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 rd(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 fv(e){return this instanceof fv?(this.v=e,this):new fv(e)}function Rre(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(T,x){o.push([m,y,T,x])>1||l(m,y)})})}function l(m,y){try{c(r[m](y))}catch(T){g(o[0][3],T)}}function c(m){m.value instanceof fv?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 b6=function(e){Fre(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(I1,I1)}var fk=0,E6=1,rc=2,A1=3,dk=4,O1=1024,I1=function(){};function id(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 ic(e,t){var n=e.state>=A1;return Promise.resolve(t).then(function(r){return!n&&e.state>=dk?id(e).then(function(i){return{value:i,done:!0}}):{value:r,done:n}})}function pk(e,t){var n,r;if(!(e.state>=rc))if(e.state=rc,e.onnext(),e.onstop(),e.err==null&&(e.err=t),e.pushes.length===0&&(typeof e.buffer>\"u\"||e.buffer.empty))dv(e);else try{for(var i=rd(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 dv(e){var t,n;if(!(e.state>=A1)){e.state<rc&&pk(e),e.state=A1,e.buffer=void 0;try{for(var r=rd(e.nexts),i=r.next();!i.done;i=r.next()){var o=i.value,s=e.pending===void 0?id(e):e.pending.then(function(){return id(e)});o.resolve(ic(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 w6(e){e.state>=dk||(e.state<A1&&dv(e),e.state=dk)}function Pre(e,t){if(ck(t),e.pushes.length>=O1)throw new b6(\"No more than \"+O1+\" pending calls to push are allowed on a single repeater.\");if(e.state>=rc)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<rc&&(e.err=c),w6(e)});var r;if(e.nexts.length){var i=e.nexts.shift();i.resolve(ic(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,w6(e)}),s}function Mre(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 $re(e){if(!(e.state>=E6)){e.state=E6;var t=Pre.bind(null,e),n=Mre(e);e.execution=new Promise(function(r){return r(e.executor(t,n))}),e.execution.catch(function(){return pk(e)})}}var L1=new WeakMap,od=function(){function e(t,n){L1.set(this,{executor:t,buffer:n,err:void 0,state:fk,pushes:[],nexts:[],pending:void 0,execution:void 0,onnext:I1,onstop:I1})}return e.prototype.next=function(t){ck(t);var n=L1.get(this);if(n===void 0)throw new Error(\"WeakMap error\");if(n.nexts.length>=O1)throw new b6(\"No more than \"+O1+\" pending calls to next are allowed on a single repeater.\");if(n.state<=fk&&$re(n),n.onnext(t),typeof n.buffer<\"u\"&&!n.buffer.empty){var r=ic(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,ic(n,o.value)}else if(n.state>=rc)return dv(n),ic(n,id(n));return new Promise(function(s){return n.nexts.push({resolve:s,value:t})})},e.prototype.return=function(t){ck(t);var n=L1.get(this);if(n===void 0)throw new Error(\"WeakMap error\");return dv(n),n.execution=Promise.resolve(n.execution).then(function(){return t}),ic(n,id(n))},e.prototype.throw=function(t){var n=L1.get(this);if(n===void 0)throw new Error(\"WeakMap error\");return n.state<=fk||n.state>=rc||typeof n.buffer<\"u\"&&!n.buffer.empty?(dv(n),n.err==null&&(n.err=t),ic(n,id(n))):this.next(Promise.reject(t))},e.prototype[Symbol.asyncIterator]=function(){return this},e.race=Vre,e.merge=Bre,e.zip=jre,e.latest=Ure,e}();function F1(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 Rre(this,arguments,function(){return Hl(this,function(m){switch(m.label){case 0:return t.yieldValues?[4,fv(f)]:[3,3];case 1:return[4,m.sent()];case 2:m.sent(),m.label=3;case 3:return t.returnValues?[4,fv(f)]:[3,5];case 4:return[2,m.sent()];case 5:return[2]}})})}())};try{for(var s=rd(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 Vre(e){var t=this,n=F1(e,{returnValues:!0});return new od(function(r,i){return nd(t,void 0,void 0,function(){var o,s,l,c,f,h;return Hl(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,T,x,D,_;return Hl(this,function(b){switch(b.label){case 0:m=f;try{for(y=(D=void 0,rd(n)),T=y.next();!T.done;T=y.next())x=T.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{T&&!T.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 Bre(e){var t=this,n=F1(e,{yieldValues:!0});return new od(function(r,i){return nd(t,void 0,void 0,function(){var o,s,l,c=this;return Hl(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=rd(o),y=m.next();!y.done;y=m.next()){var T=y.value;T()}}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 nd(c,void 0,void 0,function(){var m,y;return Hl(this,function(T){switch(T.label){case 0:T.trys.push([0,,6,9]),T.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=T.sent(),m===void 0?[3,4]:m.done?(l=m,[2]):[4,r(m.value)];case 3:T.sent(),T.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=T.sent(),T.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 jre(e){var t=this,n=F1(e,{returnValues:!0});return new od(function(r,i){return nd(t,void 0,void 0,function(){var o,s,l,c;return Hl(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 Ure(e){var t=this,n=F1(e,{yieldValues:!0,returnValues:!0});return new od(function(r,i){return nd(t,void 0,void 0,function(){var o,s,l,c,f,h=this;return Hl(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 T=rd(s),x=T.next();!x.done;x=T.next()){var D=x.value;D()}}catch(_){m={error:_}}finally{try{x&&!x.done&&(y=T.return)&&y.call(T)}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 nd(h,void 0,void 0,function(){var T;return Hl(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 T=x.sent(),T===void 0?[2,c[y].value]:T.done?[2,T.value]:(f[y]=T.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 Fi(e){return e===null?\"null\":Array.isArray(e)?\"array\":typeof e}function oc(e){return Fi(e)===\"object\"}function qre(e){return Array.isArray(e)&&e.length>0&&e.every(t=>\"message\"in t)}function S6(e,t){return e.length<124?e:t}const Hre=\"graphql-transport-ws\";var no;(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\"})(no||(no={}));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 T6(e){if(!oc(e))throw new Error(`Message is expected to be an object, but got ${Fi(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 ${Fi(e.type)}`);switch(e.type){case Rn.ConnectionInit:case Rn.ConnectionAck:case Rn.Ping:case Rn.Pong:{if(e.payload!=null&&!oc(e.payload))throw new Error(`\"${e.type}\" message expects the 'payload' property to be an object or nullish 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 ${Fi(e.id)}`);if(!e.id)throw new Error(`\"${e.type}\" message requires a non-empty 'id' property`);if(!oc(e.payload))throw new Error(`\"${e.type}\" message expects the 'payload' property to be an object, but got ${Fi(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 ${Fi(e.payload.query)}`);if(e.payload.variables!=null&&!oc(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 ${Fi(e.payload.variables)}`);if(e.payload.operationName!=null&&Fi(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 ${Fi(e.payload.operationName)}`);if(e.payload.extensions!=null&&!oc(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 ${Fi(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 ${Fi(e.id)}`);if(!e.id)throw new Error(`\"${e.type}\" message requires a non-empty 'id' property`);if(!oc(e.payload))throw new Error(`\"${e.type}\" message expects the 'payload' property to be an object, but got ${Fi(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 ${Fi(e.id)}`);if(!e.id)throw new Error(`\"${e.type}\" message requires a non-empty 'id' property`);if(!qre(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 ${Fi(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 zre(e,t){return T6(typeof e==\"string\"?JSON.parse(e,t):e)}function pv(e,t){return T6(e),JSON.stringify(e,t)}function Gre(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=R1,isFatalConnectionProblem:m,on:y,webSocketImpl:T,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(T){if(!Qre(T))throw new Error(\"Invalid WebSocket implementation provided\");b=T}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,S=(()=>{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=[S.on(\"error\",X=>{j.forEach(ne=>ne()),U(X)}),S.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++}S.emit(\"connecting\");const Z=new C(typeof t==\"function\"?await t():t,Hre);let de,K;function ve(){isFinite(s)&&s>0&&(clearTimeout(K),K=setTimeout(()=>{Z.readyState===C.OPEN&&(Z.send(pv({type:Rn.Ping})),S.emit(\"ping\",!1,void 0))},s))}N(ce=>{F=void 0,clearTimeout(de),clearTimeout(K),re(ce),R1(ce)&&ce.code===4499&&(Z.close(4499,\"Terminated\"),Z.onerror=null,Z.onclose=null)}),Z.onerror=ce=>S.emit(\"error\",ce),Z.onclose=ce=>S.emit(\"closed\",ce),Z.onopen=async()=>{try{S.emit(\"opened\",Z);const ce=typeof n==\"function\"?await n():n;if(Z.readyState!==C.OPEN)return;Z.send(pv(ce?{type:Rn.ConnectionInit,payload:ce}:{type:Rn.ConnectionInit},D)),isFinite(c)&&c>0&&(de=setTimeout(()=>{Z.close(no.ConnectionAcknowledgementTimeout,\"Connection acknowledgement timeout\")},c)),ve()}catch(ce){S.emit(\"error\",ce),Z.close(no.InternalClientError,S6(ce instanceof Error?ce.message:new Error(ce).message,\"Internal client error\"))}};let ue=!1;Z.onmessage=({data:ce})=>{try{const le=zre(ce,_);if(S.emit(\"message\",le),le.type===\"ping\"||le.type===\"pong\"){S.emit(le.type,!0,le.payload),le.type===\"pong\"?ve():l||(Z.send(pv(le.payload?{type:Rn.Pong,payload:le.payload}:{type:Rn.Pong})),S.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,S.emit(\"connected\",Z,le.payload),P=!1,V=0,J([Z,new Promise((we,Ce)=>N(Ce))])}catch(le){Z.onmessage=null,S.emit(\"error\",le),Z.close(no.BadResponse,S6(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(R1(U)&&(Wre(U.code)||[no.InternalServerError,no.InternalClientError,no.BadRequest,no.BadResponse,no.Unauthorized,no.SubprotocolNotAcceptable,no.SubscriberAlreadyExists,no.TooManyInitialisationRequests].includes(U.code)))throw U;if(H)return!1;if(R1(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:S.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=S.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(pv({id:X,type:Rn.Subscribe,payload:U},D)),re=()=>{!ne&&Z.readyState===C.OPEN&&Z.send(pv({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&&S.emit(\"closed\",{code:4499,reason:\"Terminated\",wasClean:!1})}}}function R1(e){return oc(e)&&\"code\"in e&&\"reason\"in e}function Wre(e){return[1e3,1001,1006,1005,1012,1013,1013].includes(e)?!1:e>=1e3&&e<=1999}function Qre(e){return typeof e==\"function\"&&\"constructor\"in e&&\"CLOSED\"in e&&\"CLOSING\"in e&&\"CONNECTING\"in e&&\"OPEN\"in e}function Yre(e){return\"subscribe\"in e}function Jre(e){let t;return Yre(e)?t=e:(t=Gre({webSocketImpl:m6,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 od(function(g,m){const y=t.subscribe({query:f,variables:o,operationName:s,extensions:l},{next(T){return g(T)},error(T){return m(T)},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 _6=Cs(function(t){var n;return t.operation===\"query\"&&((n=t.directives)==null?void 0:n.some(r=>r.name.value===\"live\"))});function Kre({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\",wF(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 Xre=class{constructor({uri:t,name:n,type:r}){this.uri=t,this.name=n,this.type=r}};const Zre=Xre;var C6=function(t){return typeof File<\"u\"&&t instanceof File||typeof Blob<\"u\"&&t instanceof Blob||t instanceof Zre};const eie=Rc(C6),tie=C6;var nie=function(t,n=\"\",r=tie){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 T=c?`${c}.`:\"\",x=new Set(f).add(l);if(g){let D=0;for(const _ of l){const b=s(_,T+D++,x);y||h.push(b)}}else for(const D in l){const _=s(l[D],T+D,x);y||(h[D]=_)}}}}return h}return{clone:s(t,n,new Set),files:i}};const rie=Rc(nie);function iie(e){return typeof e.createReadStream==\"function\"}function oie({query:e,variables:t,operationName:n,extensions:r},{File:i=xre,FormData:o=Cre}){const s=Object.assign({},t),{clone:l,files:c}=rie(s,\"variables\",T=>eie(T)||(T==null?void 0:T.promise)||nc(T)||(T==null?void 0:T.then)||typeof(T==null?void 0:T.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[T,x]of c)f[g]=x,h[g]=T,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(T,x){const D=x.toString();if(T!=null){const _=T.filename||T.name||T.path||`blob-${D}`;if(sr(T))return T.then(b=>y(b,x));if(aie(T))m.append(D,T,_);else if(iie(T)){const b=T.createReadStream(),C=[];return Promise.resolve().then(async()=>{for await(const N of b)N&&C.push(...N);const S=new Uint8Array(C);m.append(D,new i([S],_,{type:T.mimetype}),_)})}else m.append(D,new i([T],_),_)}}return Vt.all(h.map((T,x)=>new Vt(()=>y(T,x)))).then(()=>m).resolve()}function aie(e){return typeof e.arrayBuffer==\"function\"}async function*sie(e){const t=new y6;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 x6(e,t){return Rte(e,()=>{t.signal.aborted||t.abort()})}function lie(e){const t=new y6;return new od(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 uie(e){return e&&typeof e.getReader==\"function\"}function cie(e,t){const n=e.body;if(n){if(nc(n)){const r=sie(n);return t?x6(r,t):r}if(uie(n))return lie(n)}throw new Error(\"Response body is expected to be a readable stream but got; \"+wr(n))}async function fie(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 T of s){const x=T.indexOf(l);let D=g.byteLength;for(g=Buffer.concat([g,T]),~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={},S=_.indexOf(`\\r\n\\r\n`)+4,N=String(g.slice(0,S)).trim().split(`\\r\n`);let F;for(;F=N.shift();)F=F.split(\": \"),C[F.shift().toLowerCase()]=F.join(\": \");const L=_.lastIndexOf(`\\r\n`,S);let A=_.slice(S,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 die=new TextDecoder;async function pie(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,T=[];try{let x;e:for(;!(x=await f.read()).done;){const D=die.decode(x.value),_=D.indexOf(l);let b=m.length;for(m+=D,~_?b+=_:b=m.indexOf(l),T=[];~b;){const C=m.substring(0,b),S=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:T.push(A),S.substring(0,2)===\"--\")break e}m=S,b=m.indexOf(l)}T.length&&(yield T)}}finally{T.length&&(yield T),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 k6(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 hie(e){return e!=null&&typeof e==\"object\"&&\"pipe\"in e}async function vie(e,t){const n=e.body,r=e.headers.get(\"content-type\")||\"\";let i;if(hie(n)){n.headers={\"content-type\":r};const c=await fie(n);\"next\"in c&&(i=c)}else{const c=await pie(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)k6(o,f,h);c.data&&k6(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?x6(l,t):l}function mie(e){const t=n=>{var x,D,_,b,C;const r=((x=n.extensions)==null?void 0:x.fetch)??(e==null?void 0:e.fetch)??g6;let i,o=((D=n.extensions)==null?void 0:D.method)||(e==null?void 0:e.method)||\"POST\";const s=xs(n),l=s.operation;(e!=null&&e.useGETForQueries||(_=n.extensions)!=null&&_.useGETForQueries)&&l===\"query\"&&(o=\"GET\");let c=\"application/graphql-response+json, application/json, multipart/mixed\";(l===\"subscription\"||_6(s))&&(o=\"GET\",c=\"text/event-stream\");const f=((b=n.extensions)==null?void 0:b.endpoint)||(e==null?void 0:e.endpoint)||\"/graphql\",h=Object.assign({accept:c},(typeof(e==null?void 0:e.headers)==\"function\"?e.headers(n):e==null?void 0:e.headers)||{},((C=n.extensions)==null?void 0:C.headers)||{}),g=gt(n.document),m={query:g,variables:n.variables,operationName:n.operationName,extensions:n.extensions};let y;e!=null&&e.timeout&&(i=new AbortController,y=setTimeout(()=>{i!=null&&i.signal.aborted||i==null||i.abort(\"timeout\")},e.timeout));const T={};return new Vt(()=>{switch(o){case\"GET\":{const S=Kre({baseUrl:f,...m});return r(S,{method:\"GET\",...(e==null?void 0:e.credentials)!=null?{credentials:e.credentials}:{},headers:h,signal:i==null?void 0:i.signal},n.context,n.info)}case\"POST\":return new Vt(()=>oie(m,{File:e==null?void 0:e.File,FormData:e==null?void 0:e.FormData})).then(S=>r(f,{method:\"POST\",...(e==null?void 0:e.credentials)!=null?{credentials:e.credentials}:{},body:S,headers:{...h,...typeof S==\"string\"?{\"content-type\":\"application/json\"}:{}},signal:i==null?void 0:i.signal},n.context,n.info)).resolve()}}).then(S=>{if(T.status=S.status,T.statusText=S.statusText,y!=null&&clearTimeout(y),(e==null?void 0:e.retry)!=null&&!S.status.toString().startsWith(\"2\"))throw new Error(S.statusText||`HTTP Error: ${S.status}`);const N=S.headers.get(\"content-type\");return N!=null&&N.includes(\"text/event-stream\")?cie(S,i):N!=null&&N.includes(\"multipart/mixed\")?vie(S,i):S.text()}).then(S=>{if(typeof S==\"string\"){if(S)try{return JSON.parse(S)}catch(N){return{errors:[St(`Unexpected response: ${JSON.stringify(S)}`,{extensions:{requestBody:{query:g,operationName:n.operationName},responseDetails:T},originalError:N})]}}}else return S}).catch(S=>{var N;return typeof S==\"string\"?{errors:[St(S,{extensions:{requestBody:{query:g,operationName:n.operationName},responseDetails:T}})]}:S.name===\"GraphQLError\"?{errors:[S]}:S.name===\"TypeError\"&&S.message===\"fetch failed\"?{errors:[St(`fetch failed to ${f}`,{extensions:{requestBody:{query:g,operationName:n.operationName},responseDetails:T},originalError:S})]}:S.name===\"AbortError\"&&((N=i==null?void 0:i.signal)!=null&&N.reason)?{errors:[St(\"The operation was aborted. reason: \"+i.signal.reason,{extensions:{requestBody:{query:g,operationName:n.operationName},responseDetails:T},originalError:S})]}:S.message?{errors:[St(S.message,{extensions:{requestBody:{query:g,operationName:n.operationName},responseDetails:T},originalError:S})]}:{errors:[St(\"Unknown error\",{extensions:{requestBody:{query:g,operationName:n.operationName},responseDetails:T},originalError:S})]}}).resolve()};return(e==null?void 0:e.retry)!=null?function(r){let i,o=0;function s(){return o++,o>e.retry?i??{errors:[St(\"No response returned from fetch\")]}:new Vt(()=>t(r)).then(l=>{var c;return i=l,(c=i==null?void 0:i.errors)!=null&&c.length?s():i}).resolve()}return s()}:t}var Oo;(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\"})(Oo||(Oo={}));function gie(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:Oo.CONNECTION_INIT,payload:l}))}},s=()=>{i!=null&&r.size===0&&(i.send(JSON.stringify({type:Oo.CONNECTION_TERMINATE})),i.terminate(),i=null)};return function(c){const f=Date.now().toString();return kte({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 Oo.CONNECTION_ACK:{if(i==null)throw new Error(\"WebSocket connection is not found!\");i.send(JSON.stringify({type:Oo.START,id:f,payload:{query:gt(c.document),variables:c.variables,operationName:c.operationName}}));break}case Oo.CONNECTION_ERROR:{h.error(m.payload);break}case Oo.CONNECTION_KEEP_ALIVE:break;case Oo.DATA:{h.next(m.payload);break}case Oo.COMPLETE:{if(i==null)throw new Error(\"WebSocket connection is not found!\");i.send(JSON.stringify({type:Oo.CONNECTION_TERMINATE})),h.complete(),s();break}}},{unsubscribe:()=>{i==null||i.send(JSON.stringify({type:Oo.STOP,id:f})),s()}}}})}}const vk=e=>import(`${e}`),N6=e=>require(`${e}`);var ac;(function(e){e.WS=\"WS\",e.LEGACY_WS=\"LEGACY_WS\",e.SSE=\"SSE\",e.GRAPHQL_SSE=\"GRAPHQL_SSE\"})(ac||(ac={}));const yie=[\"http:\",\"https:\",\"ws:\",\"wss:\"];function D6(e){try{const t=new URL(e);return yie.includes(t.protocol)}catch{return!1}}class bie{buildHTTPExecutor(t,n,r){const i=mk(t,{wss:\"https\",ws:\"http\"});return mie({endpoint:i,fetch:n,...r})}buildWSExecutor(t,n,r){const i=mk(t,{https:\"wss\",http:\"ws\"});return Jre({url:i,webSocketImpl:n,connectionParams:r})}buildWSLegacyExecutor(t,n,r){const i=mk(t,{https:\"wss\",http:\"ws\"});return gie(i,n,r)}getFetch(t,n){if(t){if(typeof t==\"string\"){const[r,i]=t.split(\"#\");return new Vt(()=>n(r)).then(o=>i?o[i]:o).resolve()}else if(typeof t==\"function\")return t}return n===vk?kre:Lre}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 Vt(()=>t(r)).then(o=>i?o[i]:o).resolve()}else return(n==null?void 0:n.webSocketImpl)||m6}buildSubscriptionExecutor(t,n,r,i){if((i==null?void 0:i.subscriptionsProtocol)===ac.SSE)return this.buildHTTPExecutor(t,n,i);if((i==null?void 0:i.subscriptionsProtocol)===ac.GRAPHQL_SSE)return i!=null&&i.subscriptionsEndpoint||(t+=\"/stream\"),this.buildHTTPExecutor(t,n,i);{const s=new Vt(()=>this.getWebSocketImpl(r,i)).then(l=>(i==null?void 0:i.subscriptionsProtocol)===ac.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 Vt(()=>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)!==ac.SSE){let l=function(c){var f;return c.operationType=c.operationType||((f=xs(c))==null?void 0:f.operation),c.operationType===\"subscription\"&&_6(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,N6,n)}handleSDL(t,n,r){const i=this.getDefaultMethodFromOptions(r==null?void 0:r.method,\"GET\");return new Vt(()=>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=>cte(t,o,r)).resolve()}async load(t,n){if(!D6(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?yy(r.document,n):r.rawSDL?gT(r.rawSDL,n):void 0)}else i=this.getExecutorAsync(t,n),r.schema=await v6(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=h6({schema:r.schema,executor:i,batch:n==null?void 0:n.batch})),[r]}loadSync(t,n){if(!D6(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,N6);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?yy(r.document,n):r.rawSDL?gT(r.rawSDL,n):void 0)}else i=this.getExecutorSync(t,n),r.schema=v6(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=h6({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)}const Eie=()=>$e.jsxs(\"svg\",{viewBox:\"0 0 90 90\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:[$e.jsx(\"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)\"}),$e.jsx(\"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)\"}),$e.jsx(\"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)\"}),$e.jsxs(\"mask\",{id:\"g\",style:{maskType:\"alpha\"},maskUnits:\"userSpaceOnUse\",x:16,y:14,width:58,height:62,children:[$e.jsx(\"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)\"}),$e.jsx(\"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)\"}),$e.jsx(\"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)\"})]}),$e.jsxs(\"g\",{mask:\"url(#g)\",children:[$e.jsx(\"g\",{filter:\"url(#h)\",children:$e.jsx(\"circle\",{cx:73,cy:25,r:26,fill:\"#ED2E7E\"})}),$e.jsx(\"g\",{filter:\"url(#i)\",children:$e.jsx(\"circle\",{cx:26,cy:69,r:26,fill:\"#1CC8EE\"})})]}),$e.jsx(\"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)\"}),$e.jsx(\"mask\",{id:\"k\",style:{maskType:\"alpha\"},maskUnits:\"userSpaceOnUse\",x:30,y:28,width:30,height:30,children:$e.jsx(\"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\"})}),$e.jsxs(\"g\",{mask:\"url(#k)\",children:[$e.jsx(\"g\",{filter:\"url(#l)\",children:$e.jsx(\"circle\",{cx:38,cy:6,r:26,fill:\"#ED2E7E\"})}),$e.jsx(\"g\",{filter:\"url(#m)\",children:$e.jsx(\"circle\",{cx:63,cy:69,r:26,fill:\"#1CC8EE\"})})]}),$e.jsxs(\"defs\",{children:[$e.jsxs(\"linearGradient\",{id:\"a\",x1:16,y1:14,x2:87.213,y2:44.598,gradientUnits:\"userSpaceOnUse\",children:[$e.jsx(\"stop\",{stopColor:\"#7433FF\"}),$e.jsx(\"stop\",{offset:1,stopColor:\"#FFA3FD\"})]}),$e.jsxs(\"linearGradient\",{id:\"b\",x1:16,y1:14,x2:87.213,y2:44.598,gradientUnits:\"userSpaceOnUse\",children:[$e.jsx(\"stop\",{stopColor:\"#7433FF\"}),$e.jsx(\"stop\",{offset:1,stopColor:\"#FFA3FD\"})]}),$e.jsxs(\"linearGradient\",{id:\"c\",x1:16,y1:14,x2:87.213,y2:44.598,gradientUnits:\"userSpaceOnUse\",children:[$e.jsx(\"stop\",{stopColor:\"#7433FF\"}),$e.jsx(\"stop\",{offset:1,stopColor:\"#FFA3FD\"})]}),$e.jsxs(\"linearGradient\",{id:\"d\",x1:16,y1:14,x2:87.213,y2:44.598,gradientUnits:\"userSpaceOnUse\",children:[$e.jsx(\"stop\",{stopColor:\"#7433FF\"}),$e.jsx(\"stop\",{offset:1,stopColor:\"#FFA3FD\"})]}),$e.jsxs(\"linearGradient\",{id:\"e\",x1:16,y1:14,x2:87.213,y2:44.598,gradientUnits:\"userSpaceOnUse\",children:[$e.jsx(\"stop\",{stopColor:\"#7433FF\"}),$e.jsx(\"stop\",{offset:1,stopColor:\"#FFA3FD\"})]}),$e.jsxs(\"linearGradient\",{id:\"f\",x1:16,y1:14,x2:87.213,y2:44.598,gradientUnits:\"userSpaceOnUse\",children:[$e.jsx(\"stop\",{stopColor:\"#7433FF\"}),$e.jsx(\"stop\",{offset:1,stopColor:\"#FFA3FD\"})]}),$e.jsxs(\"linearGradient\",{id:\"j\",x1:30,y1:28,x2:66.165,y2:44.436,gradientUnits:\"userSpaceOnUse\",children:[$e.jsx(\"stop\",{stopColor:\"#7433FF\"}),$e.jsx(\"stop\",{offset:1,stopColor:\"#FFA3FD\"})]}),$e.jsxs(\"filter\",{id:\"h\",x:23,y:-25,width:100,height:100,filterUnits:\"userSpaceOnUse\",colorInterpolationFilters:\"sRGB\",children:[$e.jsx(\"feFlood\",{floodOpacity:0,result:\"BackgroundImageFix\"}),$e.jsx(\"feBlend\",{in:\"SourceGraphic\",in2:\"BackgroundImageFix\",result:\"shape\"}),$e.jsx(\"feGaussianBlur\",{stdDeviation:12,result:\"effect1_foregroundBlur_1677_11483\"})]}),$e.jsxs(\"filter\",{id:\"i\",x:-24,y:19,width:100,height:100,filterUnits:\"userSpaceOnUse\",colorInterpolationFilters:\"sRGB\",children:[$e.jsx(\"feFlood\",{floodOpacity:0,result:\"BackgroundImageFix\"}),$e.jsx(\"feBlend\",{in:\"SourceGraphic\",in2:\"BackgroundImageFix\",result:\"shape\"}),$e.jsx(\"feGaussianBlur\",{stdDeviation:12,result:\"effect1_foregroundBlur_1677_11483\"})]}),$e.jsxs(\"filter\",{id:\"l\",x:-12,y:-44,width:100,height:100,filterUnits:\"userSpaceOnUse\",colorInterpolationFilters:\"sRGB\",children:[$e.jsx(\"feFlood\",{floodOpacity:0,result:\"BackgroundImageFix\"}),$e.jsx(\"feBlend\",{in:\"SourceGraphic\",in2:\"BackgroundImageFix\",result:\"shape\"}),$e.jsx(\"feGaussianBlur\",{stdDeviation:12,result:\"effect1_foregroundBlur_1677_11483\"})]}),$e.jsxs(\"filter\",{id:\"m\",x:13,y:19,width:100,height:100,filterUnits:\"userSpaceOnUse\",colorInterpolationFilters:\"sRGB\",children:[$e.jsx(\"feFlood\",{floodOpacity:0,result:\"BackgroundImageFix\"}),$e.jsx(\"feBlend\",{in:\"SourceGraphic\",in2:\"BackgroundImageFix\",result:\"shape\"}),$e.jsx(\"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=I.useMemo(()=>new bie,[]),o=I.useMemo(()=>{const m=i.getExecutorAsync(n,{subscriptionsProtocol:ac.GRAPHQL_SSE,subscriptionsEndpoint:n,credentials:\"same-origin\",specifiedByUrl:!0,directiveIsRepeatable:!0,...e,headers:e.additionalHeaders||{}});return function(T,x){const D=wie(Hr(T.query),T.operationName??void 0);return m({document:D,operationName:T.operationName??void 0,variables:T.variables,extensions:{headers:x==null?void 0:x.headers}})}},[i,n]),[s,l]=ree({query:e.defaultQuery||t},r,!1),[c,f]=I.useState((g=s.query)==null?void 0:g.toString()),h=Hee({query:c,onEdit:f,showAttribution:!0});return $e.jsx(\"div\",{className:\"graphiql-container\",children:$e.jsx(l1,{plugins:[h],query:c,headers:e.headers,schemaDescription:!0,fetcher:o,children:$e.jsx(q4,{isHeadersEditorEnabled:!0,defaultEditorToolsVisibility:!0,onEditQuery:m=>l({query:m}),children:$e.jsx(Bl.Logo,{children:$e.jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\"},children:[$e.jsx(\"div\",{style:{width:40,display:\"flex\"},children:(e==null?void 0:e.logo)||$e.jsx(Eie,{})}),$e.jsx(\"span\",{children:(e==null?void 0:e.title)||$e.jsxs($e.Fragment,{children:[\"Yoga Graph\",$e.jsx(\"em\",{children:\"i\"}),\"QL\"]})})]})})})})})}function Tie(e,t){wS.render($e.jsx(Sie,{...t}),e)}globalThis.React=oe;var _ie=Object.defineProperty,M=(e,t)=>_ie(e,\"name\",{value:t,configurable:!0});function A6(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(A6,\"_mergeNamespaces\");var Sr={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(oG,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),T=/Apple Computer/.test(navigator.vendor),x=/Mac OS X 1\\d\\D([8-9]|\\d\\d)\\D/.test(n),D=/PhantomJS/.test(n),_=T&&(/Mobile\\/\\w+/.test(n)||navigator.maxTouchPoints>2),b=/Android/.test(n),C=_||b||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(n),S=_||/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=S&&(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 O=a.indexOf(\"\t\",w);if(O<0||O>=u)return k+(u-w);k+=O-w,k+=p-k%p,w=O+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\"}},He={scroll:!1},cn={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 ao(a,u,p){for(var d=0,v=p(u);d<a.length&&p(a[d])<=v;)d++;a.splice(d,0,u)}M(ao,\"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 Ro(a){return/\\w/.test(a)||a>\"€\"&&(a.toUpperCase()!=a.toLowerCase()||Zl.test(a))}M(Ro,\"isWordCharBasic\");function eu(a,u){return u?u.source.indexOf(\"\\\\w\")>-1&&Ro(a)?!0:u.test(a):Ro(a)}M(eu,\"isWordChar\");function bd(a){for(var u in a)if(a.hasOwnProperty(u)&&a[u])return!1;return!0}M(bd,\"isEmpty\");var mb=/[\\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 dc(a){return a.charCodeAt(0)>=768&&mb.test(a)}M(dc,\"isExtendingChar\");function Ed(a,u,p){for(;(p<0?u>0:u<a.length)&&dc(a.charAt(u));)u+=p;return u}M(Ed,\"skipExtendingChars\");function Po(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(Po,\"findFirst\");function Lv(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(Lv,\"iterateBidiSections\");var $i=null;function fn(a,u,p){var d;$i=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:$i=v),w.from==u&&(w.from!=w.to&&p!=\"before\"?d=v:$i=v)}return d??$i}M(fn,\"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]/,O=/[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 Ye=1,Ge=ee[0];Ye<te-1;++Ye){var dt=ee[Ye];dt==\"+\"&&Ge==\"1\"&&ee[Ye+1]==\"1\"?ee[Ye]=\"1\":dt==\",\"&&Ge==ee[Ye+1]&&(Ge==\"1\"||Ge==\"n\")&&(ee[Ye]=Ge),Ge=dt}for(var zt=0;zt<te;++zt){var dr=ee[zt];if(dr==\",\")ee[zt]=\"N\";else if(dr==\"%\"){var dn=void 0;for(dn=zt+1;dn<te&&ee[dn]==\"%\";++dn);for(var wi=zt&&ee[zt-1]==\"!\"||dn<te&&ee[dn]==\"1\"?\"1\":\"N\",Si=zt;Si<dn;++Si)ee[Si]=wi;zt=dn-1}}for(var Bn=0,Ti=Q;Bn<te;++Bn){var Nr=ee[Bn];Ti==\"L\"&&Nr==\"1\"?ee[Bn]=\"L\":w.test(Nr)&&(Ti=Nr)}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\",_i=(jn<te?ee[jn]:Q)==\"L\",Jd=wn==_i?wn?\"L\":\"R\":Q,vu=Kn;vu<jn;++vu)ee[vu]=Jd;Kn=jn-1}for(var Vr=[],Ja,pr=0;pr<te;)if(k.test(ee[pr])){var pA=pr;for(++pr;pr<te&&k.test(ee[pr]);++pr);Vr.push(new R(0,pA,pr))}else{var zs=pr,Lc=Vr.length,Fc=W==\"rtl\"?1:0;for(++pr;pr<te&&ee[pr]!=\"L\";++pr);for(var ri=zs;ri<pr;)if(O.test(ee[ri])){zs<ri&&(Vr.splice(Lc,0,new R(1,zs,ri)),Lc+=Fc);var Kd=ri;for(++ri;ri<pr&&O.test(ee[ri]);++ri);Vr.splice(Lc,0,new R(2,Kd,ri)),Lc+=Fc,zs=ri}else++ri;zs<pr&&Vr.splice(Lc,0,new R(1,zs,pr))}return W==\"ltr\"&&(Vr[0].level==1&&(Ja=$.match(/^\\s+/))&&(Vr[0].from=Ja[0].length,Vr.unshift(new R(0,0,Ja[0].length))),st(Vr).level==1&&(Ja=$.match(/\\s+$/))&&(st(Vr).to-=Ja[0].length,Vr.push(new R(0,te-Ja[0].length,te)))),W==\"rtl\"?Vr.reverse():Vr}}();function Zr(a,u){var p=a.order;return p==null&&(p=a.order=tu(a.text,u)),p}M(Zr,\"getOrder\");var Ha=[],Je=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]||Ha).concat(p)}},\"on\");function nu(a,u){return a._handlers&&a._handlers[u]||Ha}M(nu,\"getHandlers\");function Mr(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(Mr,\"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),gi(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 Mo(a){a.prototype.on=function(u,p){Je(this,u,p)},a.prototype.off=function(u,p){Mr(this,u,p)}}M(Mo,\"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 gi(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}M(gi,\"e_defaultPrevented\");function Fs(a){fr(a),iu(a)}M(Fs,\"e_stop\");function za(a){return a.target||a.srcElement}M(za,\"e_target\");function wd(a){var u=a.which;return u==null&&(a.button&1?u=1:a.button&2?u=3:a.button&4&&(u=2)),S&&a.ctrlKey&&u==1&&(u=3),u}M(wd,\"e_button\");var Sd=function(){if(c&&f<9)return!1;var a=U(\"div\");return\"draggable\"in a||\"dragDrop\"in a}(),ei;function Td(a){if(ei==null){var u=U(\"span\",\"​\");z(a,U(\"span\",[u,document.createTextNode(\"x\")])),a.firstChild.offsetHeight!=0&&(ei=u.offsetWidth<=1&&u.offsetHeight>2&&!(c&&f<8))}var p=ei?U(\"span\",\"​\"):U(\"span\",\" \",null,\"display: inline-block; width: 1px; margin-right: -1px\");return p.setAttribute(\"cm-text\",\"\"),p}M(Td,\"zeroWidthElement\");var _d;function $o(a){if(_d!=null)return _d;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:_d=d.right-p.right<3}M($o,\"hasBadBidiRects\");var Cd=`\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/)},Fv=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},Rv=function(){var a=U(\"div\");return\"oncopy\"in a?!0:(a.setAttribute(\"oncopy\",\"return;\"),typeof a.oncopy==\"function\")}(),xd=null;function Ga(a){if(xd!=null)return xd;var u=z(a,U(\"span\",\"x\")),p=u.getBoundingClientRect(),d=X(u,0,1).getBoundingClientRect();return xd=Math.abs(p.left-d.left)>1}M(Ga,\"hasBadZoomedRects\");var so={},Vi={};function kd(a,u){arguments.length>2&&(u.dependencies=Array.prototype.slice.call(arguments,2)),so[a]=u}M(kd,\"defineMode\");function ba(a,u){Vi[a]=u}M(ba,\"defineMIME\");function ou(a){if(typeof a==\"string\"&&Vi.hasOwnProperty(a))a=Vi[a];else if(a&&typeof a.name==\"string\"&&Vi.hasOwnProperty(a.name)){var u=Vi[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=so[u.name];if(!p)return au(a,\"text/plain\");var d=p(a,u);if(Vo.hasOwnProperty(u.name)){var v=Vo[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 Vo={};function lo(a,u){var p=Vo.hasOwnProperty(a)?Vo[a]:Vo[a]={};ve(u,p)}M(lo,\"extendMode\");function yi(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(yi,\"copyState\");function pc(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(pc,\"innerMode\");function hc(a,u,p){return a.startState?a.startState(u,p):!0}M(hc,\"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 Ve(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(Ve,\"getLine\");function Bo(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(Bo,\"getBetween\");function vc(a,u,p){var d=[];return a.iter(u,p,function(v){d.push(v.text)}),d}M(vc,\"getLines\");function ti(a,u){var p=u-a.height;if(p)for(var d=a;d;d=d.parent)d.height+=p}M(ti,\"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 jo(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 O=a.lines[k],R=O.height;if(u<R)break;u-=R}return p+k}M(jo,\"lineAtHeight\");function Rs(a,u){return u>=a.first&&u<a.first+a.size}M(Rs,\"isLine\");function mc(a,u){return String(a.lineNumberFormatter(u+a.firstLineNumber))}M(mc,\"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,Ve(a,p).text.length):xr(u,Ve(a,u.line).text.length)}M(Re,\"clipPos\");function xr(a,u){var p=a.ch;return p==null||p>u?_e(a.line,u):p<0?_e(a.line,0):a}M(xr,\"clipToLen\");function Bi(a,u){for(var p=[],d=0;d<u.length;d++)p[d]=Re(a,u[d]);return p}M(Bi,\"clipPosArray\");var Nd=M(function(a,u){this.state=a,this.lookAhead=u},\"SavedContext\"),Wa=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\");Wa.prototype.lookAhead=function(a){var u=this.doc.getLine(this.line+a);return u!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),u},Wa.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}},Wa.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Wa.fromSaved=function(a,u,p){return u instanceof Nd?new Wa(a,yi(a.mode,u.state),p,u.lookAhead):new Wa(a,yi(a.mode,u),p)},Wa.prototype.save=function(a){var u=a!==!1?yi(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Nd(u,this.maxLookAhead):u};function EN(a,u,p,d){var v=[a.state.modeGen],w={};CN(a,u.text,a.doc.mode,p,function($,W){return v.push($,W)},w,d);for(var k=p.state,O=M(function($){p.baseTokens=v;var W=a.state.overlays[$],Q=1,te=0;p.state=!0,CN(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)O(R);return{styles:v,classes:w.bgClass||w.textClass?w:null}}M(EN,\"highlightLine\");function wN(a,u,p){if(!u.styles||u.styles[0]!=a.state.modeGen){var d=Dd(a,xt(u)),v=u.text.length>a.options.maxHighlightLength&&yi(a.doc.mode,d.state),w=EN(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(wN,\"getLineStyles\");function Dd(a,u,p){var d=a.doc,v=a.display;if(!d.mode.startState)return new Wa(d,!0,u);var w=Y7(a,u,p),k=w>d.first&&Ve(d,w-1).stateAfter,O=k?Wa.fromSaved(d,k,w):new Wa(d,hc(d.mode),w);return d.iter(w,u,function(R){gb(a,R.text,O);var $=O.line;R.stateAfter=$==u-1||$%5==0||$>=v.viewFrom&&$<v.viewTo?O.save():null,O.nextLine()}),p&&(d.modeFrontier=O.line),O}M(Dd,\"getContextBefore\");function gb(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==\"\"&&SN(v,p.state);!w.eol();)yb(v,w,p.state),w.start=w.pos}M(gb,\"processLine\");function SN(a,u){if(a.blankLine)return a.blankLine(u);if(a.innerMode){var p=pc(a,u);if(p.mode.blankLine)return p.mode.blankLine(p.state)}}M(SN,\"callBlankLine\");function yb(a,u,p,d){for(var v=0;v<10;v++){d&&(d[0]=pc(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(yb,\"readToken\");var Q7=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 TN(a,u,p,d){var v=a.doc,w=v.mode,k;u=Re(v,u);var O=Ve(v,u.line),R=Dd(a,u.line,p),$=new vn(O.text,a.options.tabSize,R),W;for(d&&(W=[]);(d||$.pos<u.ch)&&!$.eol();)$.start=$.pos,k=yb(w,$,R.state),d&&W.push(new Q7($,k,yi(v.mode,R.state)));return d?W:new Q7($,k,R.state)}M(TN,\"takeToken\");function _N(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(_N,\"extractLineClasses\");function CN(a,u,p,d,v,w,k){var O=p.flattenSpans;O==null&&(O=a.options.flattenSpans);var R=0,$=null,W=new vn(u,a.options.tabSize,d),Q,te=a.options.addModeClass&&[null];for(u==\"\"&&_N(SN(p,d.state),w);!W.eol();){if(W.pos>a.options.maxHighlightLength?(O=!1,k&&gb(a,u,d,W.pos),W.pos=u.length,Q=null):Q=_N(yb(p,W,d.state,te),w),te){var ee=te[0].name;ee&&(Q=\"m-\"+(Q?ee+\" \"+Q:ee))}if(!O||$!=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(CN,\"runMode\");function Y7(a,u,p){for(var d,v,w=a.doc,k=p?-1:u-(a.doc.mode.innerMode?1e3:100),O=u;O>k;--O){if(O<=w.first)return w.first;var R=Ve(w,O-1),$=R.stateAfter;if($&&(!p||O+($ instanceof Nd?$.lookAhead:0)<=w.modeFrontier))return O;var W=ue(R.text,null,a.options.tabSize);(v==null||d>W)&&(v=O-1,d=W)}return v}M(Y7,\"findStartLine\");function J7(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=Ve(a,d).stateAfter;if(v&&(!(v instanceof Nd)||d+v.lookAhead<u)){p=d+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,p)}}M(J7,\"retreatFrontier\");var K7=!1,Ps=!1;function X7(){K7=!0}M(X7,\"seeReadOnlySpans\");function Z7(){Ps=!0}M(Z7,\"seeCollapsedSpans\");function Pv(a,u,p){this.marker=a,this.from=u,this.to=p}M(Pv,\"MarkedSpan\");function Ad(a,u){if(a)for(var p=0;p<a.length;++p){var d=a[p];if(d.marker==u)return d}}M(Ad,\"getMarkedSpanFor\");function eV(a,u){for(var p,d=0;d<a.length;++d)a[d]!=u&&(p||(p=[])).push(a[d]);return p}M(eV,\"removeMarkedSpan\");function tV(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(tV,\"addMarkedSpan\");function nV(a,u,p){var d;if(a)for(var v=0;v<a.length;++v){var w=a[v],k=w.marker,O=w.from==null||(k.inclusiveLeft?w.from<=u:w.from<u);if(O||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 Pv(k,w.from,R?null:w.to))}}return d}M(nV,\"markedSpansBefore\");function rV(a,u,p){var d;if(a)for(var v=0;v<a.length;++v){var w=a[v],k=w.marker,O=w.to==null||(k.inclusiveRight?w.to>=u:w.to>u);if(O||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 Pv(k,R?null:w.from-u,w.to==null?null:w.to-u))}}return d}M(rV,\"markedSpansAfter\");function bb(a,u){if(u.full)return null;var p=Rs(a,u.from.line)&&Ve(a,u.from.line).markedSpans,d=Rs(a,u.to.line)&&Ve(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,O=nV(p,v,k),R=rV(d,w,k),$=u.text.length==1,W=st(u.text).length+($?v:0);if(O)for(var Q=0;Q<O.length;++Q){var te=O[Q];if(te.to==null){var ee=Ad(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=Ad(O,ye.marker);Ne||(ye.from=W,$&&(O||(O=[])).push(ye))}else ye.from+=W,$&&(O||(O=[])).push(ye)}O&&(O=xN(O)),R&&R!=O&&(R=xN(R));var Ae=[O];if(!$){var Fe=u.text.length-2,Oe;if(Fe>0&&O)for(var Me=0;Me<O.length;++Me)O[Me].to==null&&(Oe||(Oe=[])).push(new Pv(O[Me].marker,null,null));for(var Ye=0;Ye<Fe;++Ye)Ae.push(Oe);Ae.push(R)}return Ae}M(bb,\"stretchSpansOverChange\");function xN(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(xN,\"clearEmptySpans\");function iV(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],O=k.find(0),R=0;R<v.length;++R){var $=v[R];if(!(B($.to,O.from)<0||B($.from,O.to)>0)){var W=[R,1],Q=B($.from,O.from),te=B($.to,O.to);(Q<0||!k.inclusiveLeft&&!Q)&&W.push({from:$.from,to:O.from}),(te>0||!k.inclusiveRight&&!te)&&W.push({from:O.to,to:$.to}),v.splice.apply(v,W),R+=W.length-3}}return v}M(iV,\"removeReadOnlyRanges\");function kN(a){var u=a.markedSpans;if(u){for(var p=0;p<u.length;++p)u[p].marker.detachLine(a);a.markedSpans=null}}M(kN,\"detachMarkedSpans\");function NN(a,u){if(u){for(var p=0;p<u.length;++p)u[p].marker.attachLine(a);a.markedSpans=u}}M(NN,\"attachMarkedSpans\");function Mv(a){return a.inclusiveLeft?-1:0}M(Mv,\"extraLeft\");function $v(a){return a.inclusiveRight?1:0}M($v,\"extraRight\");function Eb(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)||Mv(a)-Mv(u);if(w)return-w;var k=B(d.to,v.to)||$v(a)-$v(u);return k||u.id-a.id}M(Eb,\"compareCollapsedMarkers\");function DN(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||Eb(d,v.marker)<0)&&(d=v.marker);return d}M(DN,\"collapsedSpanAtSide\");function AN(a){return DN(a,!0)}M(AN,\"collapsedSpanAtStart\");function Vv(a){return DN(a,!1)}M(Vv,\"collapsedSpanAtEnd\");function oV(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||Eb(d,w.marker)<0)&&(d=w.marker)}return d}M(oV,\"collapsedSpanAround\");function ON(a,u,p,d,v){var w=Ve(a,u),k=Ps&&w.markedSpans;if(k)for(var O=0;O<k.length;++O){var R=k[O];if(R.marker.collapsed){var $=R.marker.find(0),W=B($.from,p)||Mv(R.marker)-Mv(v),Q=B($.to,d)||$v(R.marker)-$v(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(ON,\"conflictingCollapsedRange\");function Uo(a){for(var u;u=AN(a);)a=u.find(-1,!0).line;return a}M(Uo,\"visualLine\");function aV(a){for(var u;u=Vv(a);)a=u.find(1,!0).line;return a}M(aV,\"visualLineEnd\");function sV(a){for(var u,p;u=Vv(a);)a=u.find(1,!0).line,(p||(p=[])).push(a);return p}M(sV,\"visualLineContinued\");function wb(a,u){var p=Ve(a,u),d=Uo(p);return p==d?u:xt(d)}M(wb,\"visualLineNo\");function IN(a,u){if(u>a.lastLine())return u;var p=Ve(a,u),d;if(!Ms(a,p))return u;for(;d=Vv(p);)p=d.find(1,!0).line;return xt(p)+1}M(IN,\"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&&Sb(a,u,d))return!0}}}M(Ms,\"lineIsHidden\");function Sb(a,u,p){if(p.to==null){var d=p.marker.find(1,!0);return Sb(a,d.line,Ad(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)&&Sb(a,u,v))return!0}M(Sb,\"lineIsHiddenInner\");function Qa(a){a=Uo(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 O=w.children[k];if(O==p)break;u+=O.height}return u}M(Qa,\"heightAtLine\");function Bv(a){if(a.height==0)return 0;for(var u=a.text.length,p,d=a;p=AN(d);){var v=p.find(0,!0);d=v.from.line,u+=v.from.ch-v.to.ch}for(d=a;p=Vv(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(Bv,\"lineLength\");function Tb(a){var u=a.display,p=a.doc;u.maxLine=Ve(p,p.first),u.maxLineLength=Bv(u.maxLine),u.maxLineChanged=!0,p.iter(function(d){var v=Bv(d);v>u.maxLineLength&&(u.maxLineLength=v,u.maxLine=d)})}M(Tb,\"findMaxLine\");var Od=M(function(a,u,p){this.text=a,NN(this,u),this.height=p?p(this):1},\"Line\");Od.prototype.lineNo=function(){return xt(this)},Mo(Od);function lV(a,u,p,d){a.text=u,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),kN(a),NN(a,p);var v=d?d(a):1;v!=a.height&&ti(a,v)}M(lV,\"updateLine\");function uV(a){a.parent=null,kN(a)}M(uV,\"cleanUpLine\");var Sae={},Tae={};function LN(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(LN,\"interpretTokenStyle\");function FN(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=fV,$o(a.display.measure)&&(k=Zr(w,a.doc.direction))&&(d.addToken=pV(d.addToken,k)),d.map=[];var O=u!=a.display.externalMeasured&&xt(w);hV(w,d,wN(a,w,O)),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(Td(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(FN,\"buildLineContent\");function cV(a){var u=U(\"span\",\"•\",\"cm-invalidchar\");return u.title=\"\\\\u\"+a.charCodeAt(0).toString(16),u.setAttribute(\"aria-label\",u.title),u}M(cV,\"defaultSpecialCharPlaceholder\");function fV(a,u,p,d,v,w,k){if(u){var O=a.splitSpaces?dV(u,a.trailingSpace):u,R=a.cm.state.specialChars,$=!1,W;if(!R.test(u))a.col+=u.length,W=document.createTextNode(O),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(O.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=O.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(fV,\"buildToken\");function dV(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(dV,\"splitSpaces\");function pV(a,u){return function(p,d,v,w,k,O,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,O,R);a(p,d.slice(0,Q.to-$),v,w,null,O,R),w=null,d=d.slice(Q.to-$),$=Q.to}}}M(pV,\"buildTokenBadBidi\");function RN(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(RN,\"buildCollapsedSpan\");function hV(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]),LN(p[k+1],u.cm.options));return}for(var O=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,Ye=0;Ye<d.length;++Ye){var Ge=d[Ye],dt=Ge.marker;if(dt.type==\"bookmark\"&&Ge.from==R&&dt.widgetNode)Oe.push(dt);else if(Ge.from<=R&&(Ge.to==null||Ge.to>R||dt.collapsed&&Ge.to==R&&Ge.from==R)){if(Ge.to!=null&&Ge.to!=R&&ee>Ge.to&&(ee=Ge.to,ye=\"\"),dt.className&&(fe+=\" \"+dt.className),dt.css&&(te=(te?te+\";\":\"\")+dt.css),dt.startStyle&&Ge.from==R&&(Ne+=\" \"+dt.startStyle),dt.endStyle&&Ge.to==ee&&(Me||(Me=[])).push(dt.endStyle,Ge.to),dt.title&&((Fe||(Fe={})).title=dt.title),dt.attributes)for(var zt in dt.attributes)(Fe||(Fe={}))[zt]=dt.attributes[zt];dt.collapsed&&(!Ae||Eb(Ae.marker,dt)<0)&&(Ae=Ge)}else Ge.from>R&&ee>Ge.from&&(ee=Ge.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 dn=0;dn<Oe.length;++dn)RN(u,0,Oe[dn]);if(Ae&&(Ae.from||0)==R){if(RN(u,(Ae.to==null?O+1:Ae.to)-R,Ae.marker,Ae.from==null),Ae.to==null)return;Ae.to==R&&(Ae=!1)}}if(R>=O)break;for(var wi=Math.min(O,ee);;){if(W){var Si=R+W.length;if(!Ae){var Bn=Si>wi?W.slice(0,wi-R):W;u.addToken(u,Bn,Q?Q+fe:fe,Ne,R+Bn.length==ee?ye:\"\",te,Fe)}if(Si>=wi){W=W.slice(wi-R),R=wi;break}R=Si,Ne=\"\"}W=v.slice(w,w=p[$++]),Q=LN(p[$++],u.cm.options)}}}M(hV,\"insertLineContent\");function PN(a,u,p){this.line=u,this.rest=sV(u),this.size=this.rest?xt(st(this.rest))-p+1:1,this.node=this.text=null,this.hidden=Ms(a,u)}M(PN,\"LineView\");function jv(a,u,p){for(var d=[],v,w=u;w<p;w=v){var k=new PN(a.doc,Ve(a.doc,w),w);v=w+k.size,d.push(k)}return d}M(jv,\"buildViewArray\");var Id=null;function vV(a){Id?Id.ops.push(a):a.ownsGroup=Id={ops:[a],delayedCallbacks:[]}}M(vV,\"pushOperation\");function mV(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(mV,\"fireCallbacksForOps\");function gV(a,u){var p=a.ownsGroup;if(p)try{mV(p)}finally{Id=null,u(p)}}M(gV,\"finishOperation\");var Uv=null;function Qn(a,u){var p=nu(a,u);if(p.length){var d=Array.prototype.slice.call(arguments,2),v;Id?v=Id.delayedCallbacks:Uv?v=Uv:(v=Uv=[],setTimeout(yV,0));for(var w=M(function(O){v.push(function(){return p[O].apply(null,d)})},\"loop\"),k=0;k<p.length;++k)w(k)}}M(Qn,\"signalLater\");function yV(){var a=Uv;Uv=null;for(var u=0;u<a.length;++u)a[u]()}M(yV,\"fireOrphanDelayed\");function MN(a,u,p,d){for(var v=0;v<u.changes.length;v++){var w=u.changes[v];w==\"text\"?EV(a,u):w==\"gutter\"?VN(a,u,p,d):w==\"class\"?_b(a,u):w==\"widget\"&&wV(a,u,d)}u.changes=null}M(MN,\"updateLineForChanges\");function Ld(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(Ld,\"ensureLineWrapped\");function bV(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=Ld(u);u.background=d.insertBefore(U(\"div\",null,p),d.firstChild),a.display.input.setUneditable(u.background)}}M(bV,\"updateLineBackground\");function $N(a,u){var p=a.display.externalMeasured;return p&&p.line==u.line?(a.display.externalMeasured=null,u.measure=p.measure,p.built):FN(a,u)}M($N,\"getLineContent\");function EV(a,u){var p=u.text.className,d=$N(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,_b(a,u)):p&&(u.text.className=p)}M(EV,\"updateLineText\");function _b(a,u){bV(a,u),u.line.wrapClass?Ld(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(_b,\"updateLineClasses\");function VN(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=Ld(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=Ld(u),O=u.gutter=U(\"div\",null,\"CodeMirror-gutter-wrapper\",\"left: \"+(a.options.fixedGutter?d.fixedPos:-d.gutterTotalWidth)+\"px\");if(O.setAttribute(\"aria-hidden\",\"true\"),a.display.input.setUneditable(O),k.insertBefore(O,u.text),u.line.gutterClass&&(O.className+=\" \"+u.line.gutterClass),a.options.lineNumbers&&(!w||!w[\"CodeMirror-linenumbers\"])&&(u.lineNumber=O.appendChild(U(\"div\",mc(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&&O.appendChild(U(\"div\",[W],\"CodeMirror-gutter-elt\",\"left: \"+d.gutterLeft[$]+\"px; width: \"+d.gutterWidth[$]+\"px\"))}}}M(VN,\"updateLineGutter\");function wV(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);BN(a,u,p)}M(wV,\"updateLineWidgets\");function SV(a,u,p,d){var v=$N(a,u);return u.text=u.node=v.pre,v.bgClass&&(u.bgClass=v.bgClass),v.textClass&&(u.textClass=v.textClass),_b(a,u),VN(a,u,p,d),BN(a,u,d),u.node}M(SV,\"buildLineElement\");function BN(a,u,p){if(jN(a,u.line,u,p,!0),u.rest)for(var d=0;d<u.rest.length;d++)jN(a,u.rest[d],u,p,!1)}M(BN,\"insertLineWidgets\");function jN(a,u,p,d,v){if(u.widgets)for(var w=Ld(p),k=0,O=u.widgets;k<O.length;++k){var R=O[k],$=U(\"div\",[R.node],\"CodeMirror-linewidget\"+(R.className?\" \"+R.className:\"\"));R.handleMouseEvents||$.setAttribute(\"cm-ignore-events\",\"true\"),TV(R,$,p,d),a.display.input.setUneditable($),v&&R.above?w.insertBefore($,p.gutter||p.text):w.appendChild($),Qn(R,\"redraw\")}}M(jN,\"insertLineWidgetsFor\");function TV(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(TV,\"positionLineWidget\");function Fd(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(Fd,\"widgetHeight\");function Ya(a,u){for(var p=za(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(Ya,\"eventInWidget\");function qv(a){return a.lineSpace.offsetTop}M(qv,\"paddingTop\");function Cb(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}M(Cb,\"paddingVert\");function UN(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(UN,\"paddingH\");function Ea(a){return we-a.display.nativeBarWidth}M(Ea,\"scrollGap\");function su(a){return a.display.scroller.clientWidth-Ea(a)-a.display.barWidth}M(su,\"displayWidth\");function xb(a){return a.display.scroller.clientHeight-Ea(a)-a.display.barHeight}M(xb,\"displayHeight\");function _V(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(),O=0;O<k.length-1;O++){var R=k[O],$=k[O+1];Math.abs(R.bottom-$.bottom)>2&&w.push((R.bottom+$.top)/2-p.top)}}w.push(p.bottom-p.top)}}M(_V,\"ensureLineHeights\");function qN(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(qN,\"mapFromLineView\");function CV(a,u){u=Uo(u);var p=xt(u),d=a.display.externalMeasured=new PN(a.doc,u,p);d.lineN=p;var v=d.built=FN(a,d);return d.text=v.pre,z(a.display.lineMeasure,v.pre),d}M(CV,\"updateExternalMeasurement\");function HN(a,u,p,d){return wa(a,gc(a,u),p,d)}M(HN,\"measureChar\");function kb(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(kb,\"findViewForLine\");function gc(a,u){var p=xt(u),d=kb(a,p);d&&!d.text?d=null:d&&d.changes&&(MN(a,d,p,Ib(a)),a.curOp.forceUpdate=!0),d||(d=CV(a,u));var v=qN(d,u,p);return{line:u,view:d,rect:null,map:v.map,cache:v.cache,before:v.before,hasHeights:!1}}M(gc,\"prepareMeasureForLine\");function wa(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||(_V(a,u.view,u.rect),u.hasHeights=!0),k=NV(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(wa,\"measureCharPrepared\");var xV={left:0,right:0,top:0,bottom:0};function zN(a,u,p){for(var d,v,w,k,O,R,$=0;$<a.length;$+=3)if(O=a[$],R=a[$+1],u<O?(v=0,w=1,k=\"left\"):u<R?(v=u-O,w=v+1):($==a.length-3||u==R&&a[$+3]>u)&&(w=R-O,v=w-1,u>=R&&(k=\"right\")),v!=null){if(d=a[$+2],O==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-O)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:O,coverEnd:R}}M(zN,\"nodeAndOffsetInLineMap\");function kV(a,u){var p=xV;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(kV,\"getUsefulRect\");function NV(a,u,p,d){var v=zN(u.map,p,d),w=v.node,k=v.start,O=v.end,R=v.collapse,$;if(w.nodeType==3){for(var W=0;W<4;W++){for(;k&&dc(u.line.text.charAt(v.coverStart+k));)--k;for(;v.coverStart+O<v.coverEnd&&dc(u.line.text.charAt(v.coverStart+O));)++O;if(c&&f<9&&k==0&&O==v.coverEnd-v.coverStart?$=w.parentNode.getBoundingClientRect():$=kV(X(w,k,O).getClientRects(),d),$.left||$.right||k==0)break;O=k,k=k-1,R=\"right\"}c&&f<11&&($=DV(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+Ec(a.display),top:te.top,bottom:te.bottom}:$=xV}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(NV,\"measureCharInner\");function DV(a,u){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Ga(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(DV,\"maybeUpdateRectForZooming\");function GN(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(GN,\"clearLineMeasurementCacheFor\");function WN(a){a.display.externalMeasure=null,G(a.display.lineMeasure);for(var u=0;u<a.display.view.length;u++)GN(a.display.view[u])}M(WN,\"clearLineMeasurementCache\");function Rd(a){WN(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}M(Rd,\"clearCaches\");function QN(){return m&&b?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}M(QN,\"pageScrollX\");function YN(){return m&&b?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}M(YN,\"pageScrollY\");function Nb(a){var u=Uo(a),p=u.widgets,d=0;if(p)for(var v=0;v<p.length;++v)p[v].above&&(d+=Fd(p[v]));return d}M(Nb,\"widgetTopHeight\");function Hv(a,u,p,d,v){if(!v){var w=Nb(u);p.top+=w,p.bottom+=w}if(d==\"line\")return p;d||(d=\"local\");var k=Qa(u);if(d==\"local\"?k+=qv(a.display):k-=a.display.viewOffset,d==\"page\"||d==\"window\"){var O=a.display.lineSpace.getBoundingClientRect();k+=O.top+(d==\"window\"?0:YN());var R=O.left+(d==\"window\"?0:QN());p.left+=R,p.right+=R}return p.top+=k,p.bottom+=k,p}M(Hv,\"intoCoordSystem\");function JN(a,u,p){if(p==\"div\")return u;var d=u.left,v=u.top;if(p==\"page\")d-=QN(),v-=YN();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(JN,\"fromCoordSystem\");function zv(a,u,p,d,v){return d||(d=Ve(a.doc,u.line)),Hv(a,d,HN(a,d,u.ch,v),p)}M(zv,\"charCoords\");function qo(a,u,p,d,v,w){d=d||Ve(a.doc,u.line),v||(v=gc(a,d));function k(fe,ye){var Ne=wa(a,v,fe,ye?\"right\":\"left\",w);return ye?Ne.left=Ne.right:Ne.right=Ne.left,Hv(a,d,Ne,p)}M(k,\"get\");var O=Zr(d,a.doc.direction),R=u.ch,$=u.sticky;if(R>=d.text.length?(R=d.text.length,$=\"before\"):R<=0&&(R=0,$=\"after\"),!O)return k($==\"before\"?R-1:R,$==\"before\");function W(fe,ye,Ne){var Ae=O[ye],Fe=Ae.level==1;return k(Ne?fe-1:fe,Fe!=Ne)}M(W,\"getBidi\");var Q=fn(O,R,$),te=$i,ee=W(R,Q,$==\"before\");return te!=null&&(ee.other=W(R,te,$!=\"before\")),ee}M(qo,\"cursorCoords\");function KN(a,u){var p=0;u=Re(a.doc,u),a.options.lineWrapping||(p=Ec(a.display)*u.ch);var d=Ve(a.doc,u.line),v=Qa(d)+qv(a.display);return{left:p,right:p,top:v,bottom:v+d.height}}M(KN,\"estimateCoords\");function Db(a,u,p,d,v){var w=_e(a,u,p);return w.xRel=v,d&&(w.outside=d),w}M(Db,\"PosWithInfo\");function Ab(a,u,p){var d=a.doc;if(p+=a.display.viewOffset,p<0)return Db(d.first,0,null,-1,-1);var v=jo(d,p),w=d.first+d.size-1;if(v>w)return Db(d.first+d.size-1,Ve(d,w).text.length,null,1,1);u<0&&(u=0);for(var k=Ve(d,v);;){var O=AV(a,k,v,u,p),R=oV(k,O.ch+(O.xRel>0||O.outside>0?1:0));if(!R)return O;var $=R.find(1);if($.line==v)return $;k=Ve(d,v=$.line)}}M(Ab,\"coordsChar\");function XN(a,u,p,d){d-=Nb(u);var v=u.text.length,w=Po(function(k){return wa(a,p,k-1).bottom<=d},v,0);return v=Po(function(k){return wa(a,p,k).top>d},w,v),{begin:w,end:v}}M(XN,\"wrappedLineExtent\");function ZN(a,u,p,d){p||(p=gc(a,u));var v=Hv(a,u,wa(a,p,d),\"line\").top;return XN(a,u,p,v)}M(ZN,\"wrappedLineExtentChar\");function Ob(a,u,p,d){return a.bottom<=p?!1:a.top>p?!0:(d?a.left:a.right)>u}M(Ob,\"boxIsAfter\");function AV(a,u,p,d,v){v-=Qa(u);var w=gc(a,u),k=Nb(u),O=0,R=u.text.length,$=!0,W=Zr(u,a.doc.direction);if(W){var Q=(a.options.lineWrapping?IV:OV)(a,u,p,w,W,d,v);$=Q.level!=1,O=$?Q.from:Q.to-1,R=$?Q.to:Q.from-1}var te=null,ee=null,fe=Po(function(Ye){var Ge=wa(a,w,Ye);return Ge.top+=k,Ge.bottom+=k,Ob(Ge,d,v,!1)?(Ge.top<=v&&Ge.left<=d&&(te=Ye,ee=Ge),!0):!1},O,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==O)&&fe++,Ne=fe==0?\"after\":fe==u.text.length?\"before\":wa(a,w,fe-($?1:0)).bottom+k<=v==$?\"after\":\"before\";var Me=qo(a,_e(p,fe,Ne),\"line\",u,w);ye=Me.left,Ae=v<Me.top?-1:v>=Me.bottom?1:0}return fe=Ed(u.text,fe,1),Db(p,fe,Ne,Ae,d-ye)}M(AV,\"coordsCharInner\");function OV(a,u,p,d,v,w,k){var O=Po(function(Q){var te=v[Q],ee=te.level!=1;return Ob(qo(a,_e(p,ee?te.to:te.from,ee?\"before\":\"after\"),\"line\",u,d),w,k,!0)},0,v.length-1),R=v[O];if(O>0){var $=R.level!=1,W=qo(a,_e(p,$?R.from:R.to,$?\"after\":\"before\"),\"line\",u,d);Ob(W,w,k,!0)&&W.top>k&&(R=v[O-1])}return R}M(OV,\"coordsBidiPart\");function IV(a,u,p,d,v,w,k){var O=XN(a,u,d,k),R=O.begin,$=O.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=wa(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(IV,\"coordsBidiPartWrapped\");var yc;function bc(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(yc==null){yc=U(\"pre\",null,\"CodeMirror-line-like\");for(var u=0;u<49;++u)yc.appendChild(document.createTextNode(\"x\")),yc.appendChild(U(\"br\"));yc.appendChild(document.createTextNode(\"x\"))}z(a.measure,yc);var p=yc.offsetHeight/50;return p>3&&(a.cachedTextHeight=p),G(a.measure),p||1}M(bc,\"textHeight\");function Ec(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(Ec,\"charWidth\");function Ib(a){for(var u=a.display,p={},d={},v=u.gutters.clientLeft,w=u.gutters.firstChild,k=0;w;w=w.nextSibling,++k){var O=a.display.gutterSpecs[k].className;p[O]=w.offsetLeft+w.clientLeft+v,d[O]=w.clientWidth}return{fixedPos:Lb(u),gutterTotalWidth:u.gutters.offsetWidth,gutterLeft:p,gutterWidth:d,wrapperWidth:u.wrapper.clientWidth}}M(Ib,\"getDimensions\");function Lb(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}M(Lb,\"compensateForHScroll\");function eD(a){var u=bc(a.display),p=a.options.lineWrapping,d=p&&Math.max(5,a.display.scroller.clientWidth/Ec(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(eD,\"estimateHeight\");function Fb(a){var u=a.doc,p=eD(a);u.iter(function(d){var v=p(d);v!=d.height&&ti(d,v)})}M(Fb,\"estimateLineHeights\");function lu(a,u,p,d){var v=a.display;if(!p&&za(u).getAttribute(\"cm-not-content\")==\"true\")return null;var w,k,O=v.lineSpace.getBoundingClientRect();try{w=u.clientX-O.left,k=u.clientY-O.top}catch{return null}var R=Ab(a,w,k),$;if(d&&R.xRel>0&&($=Ve(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-UN(a.display).left)/Ec(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 ni(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&&wb(a.doc,u)<v.viewTo&&Vs(a);else if(p<=v.viewFrom)Ps&&IN(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=Gv(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=Gv(a,u,u,-1);k?(v.view=v.view.slice(0,k.index),v.viewTo=k.lineN):Vs(a)}else{var O=Gv(a,u,u,-1),R=Gv(a,p,p+d,1);O&&R?(v.view=v.view.slice(0,O.index).concat(jv(a,O.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(ni,\"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 Gv(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 O=a.display.viewFrom,R=0;R<v;R++)O+=k[R].size;if(O!=u){if(d>0){if(v==k.length-1)return null;w=O+k[v].size-u,v++}else w=O-u;u+=w,p+=w}for(;wb(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(Gv,\"viewCuttingPoint\");function LV(a,u,p){var d=a.display,v=d.view;v.length==0||u>=d.viewTo||p<=d.viewFrom?(d.view=jv(a,u,p),d.viewFrom=u):(d.viewFrom>u?d.view=jv(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(jv(a,d.viewTo,p)):d.viewTo>p&&(d.view=d.view.slice(0,uu(a,p)))),d.viewTo=p}M(LV,\"adjustView\");function tD(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(tD,\"countDirtyView\");function Pd(a){a.display.input.showSelection(a.display.input.prepareSelection())}M(Pd,\"updateSelection\");function nD(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 O=0;O<p.sel.ranges.length;O++)if(!(!u&&O==p.sel.primIndex)){var R=p.sel.ranges[O];if(!(R.from().line>=a.display.viewTo||R.to().line<a.display.viewFrom)){var $=R.empty();if(k){var W=k(a,R);W&&Rb(a,W,v)}else($||a.options.showCursorWhenSelecting)&&Rb(a,R.head,v);$||FV(a,R,w)}}return d}M(nD,\"prepareSelection\");function Rb(a,u,p){var d=qo(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=zv(a,u,\"div\",null,null),k=w.right-w.left;v.style.width=(k>0?k:a.defaultCharWidth())+\"px\"}if(d.other){var O=p.appendChild(U(\"div\",\" \",\"CodeMirror-cursor CodeMirror-secondarycursor\"));O.style.display=\"\",O.style.left=d.other.left+\"px\",O.style.top=d.other.top+\"px\",O.style.height=(d.other.bottom-d.other.top)*.85+\"px\"}}M(Rb,\"drawSelectionCursor\");function Wv(a,u){return a.top-u.top||a.left-u.left}M(Wv,\"cmpCoords\");function FV(a,u,p){var d=a.display,v=a.doc,w=document.createDocumentFragment(),k=UN(a.display),O=k.left,R=Math.max(d.sizerWidth,su(a)-d.sizer.offsetLeft)-k.right,$=v.direction==\"ltr\";function W(Oe,Me,Ye,Ge){Me<0&&(Me=0),Me=Math.round(Me),Ge=Math.round(Ge),w.appendChild(U(\"div\",null,\"CodeMirror-selected\",\"position: absolute; left: \"+Oe+`px;\n top: `+Me+\"px; width: \"+(Ye??R-Oe)+`px;\n height: `+(Ge-Me)+\"px\"))}M(W,\"add\");function Q(Oe,Me,Ye){var Ge=Ve(v,Oe),dt=Ge.text.length,zt,dr;function dn(Bn,Ti){return zv(a,_e(Oe,Bn),\"div\",Ge,Ti)}M(dn,\"coords\");function wi(Bn,Ti,Nr){var Kn=ZN(a,Ge,null,Bn),jn=Ti==\"ltr\"==(Nr==\"after\")?\"left\":\"right\",wn=Nr==\"after\"?Kn.begin:Kn.end-(/\\s/.test(Ge.text.charAt(Kn.end-1))?2:1);return dn(wn,jn)[jn]}M(wi,\"wrapX\");var Si=Zr(Ge,v.direction);return Lv(Si,Me||0,Ye??dt,function(Bn,Ti,Nr,Kn){var jn=Nr==\"ltr\",wn=dn(Bn,jn?\"left\":\"right\"),_i=dn(Ti-1,jn?\"right\":\"left\"),Jd=Me==null&&Bn==0,vu=Ye==null&&Ti==dt,Vr=Kn==0,Ja=!Si||Kn==Si.length-1;if(_i.top-wn.top<=3){var pr=($?Jd:vu)&&Vr,pA=($?vu:Jd)&&Ja,zs=pr?O:(jn?wn:_i).left,Lc=pA?R:(jn?_i:wn).right;W(zs,wn.top,Lc-zs,wn.bottom)}else{var Fc,ri,Kd,hA;jn?(Fc=$&&Jd&&Vr?O:wn.left,ri=$?R:wi(Bn,Nr,\"before\"),Kd=$?O:wi(Ti,Nr,\"after\"),hA=$&&vu&&Ja?R:_i.right):(Fc=$?wi(Bn,Nr,\"before\"):O,ri=!$&&Jd&&Vr?R:wn.right,Kd=!$&&vu&&Ja?O:_i.left,hA=$?wi(Ti,Nr,\"after\"):R),W(Fc,wn.top,ri-Fc,wn.bottom),wn.bottom<_i.top&&W(O,wn.bottom,null,_i.top),W(Kd,_i.top,hA-Kd,_i.bottom)}(!zt||Wv(wn,zt)<0)&&(zt=wn),Wv(_i,zt)<0&&(zt=_i),(!dr||Wv(wn,dr)<0)&&(dr=wn),Wv(_i,dr)<0&&(dr=_i)}),{start:zt,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=Ve(v,te.line),ye=Ve(v,ee.line),Ne=Uo(fe)==Uo(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(O,Fe.top,Fe.left,Fe.bottom)):W(Ae.right,Ae.top,Fe.left-Ae.right,Ae.bottom)),Ae.bottom<Fe.top&&W(O,Ae.bottom,null,Fe.top)}p.appendChild(w)}M(FV,\"drawSelectionRange\");function Pb(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()||wc(a),u.cursorDiv.style.visibility=(p=!p)?\"\":\"hidden\"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(u.cursorDiv.style.visibility=\"hidden\")}}M(Pb,\"restartBlink\");function rD(a){a.hasFocus()||(a.display.input.focus(),a.state.focused||$b(a))}M(rD,\"ensureFocus\");function Mb(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,a.state.focused&&wc(a))},100)}M(Mb,\"delayBlurEvent\");function $b(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()),Pb(a))}M($b,\"onFocus\");function wc(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(wc,\"onBlur\");function Qv(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 O=u.view[k],R=a.options.lineWrapping,$=void 0,W=0;if(!O.hidden){if(v+=O.line.height,c&&f<8){var Q=O.node.offsetTop+O.node.offsetHeight;$=Q-p,p=Q}else{var te=O.node.getBoundingClientRect();$=te.bottom-te.top,!R&&O.text.firstChild&&(W=O.text.firstChild.getBoundingClientRect().right-te.left-1)}var ee=O.line.height-$;if((ee>.005||ee<-.005)&&(v<d&&(w-=ee),ti(O.line,$),iD(O.line),O.rest))for(var fe=0;fe<O.rest.length;fe++)iD(O.rest[fe]);if(W>a.display.sizerWidth){var ye=Math.ceil(W/Ec(a.display));ye>a.display.maxLineLength&&(a.display.maxLineLength=ye,a.display.maxLine=O.line,a.display.maxLineChanged=!0)}}}Math.abs(w)>2&&(u.scroller.scrollTop+=w)}M(Qv,\"updateHeightsInViewport\");function iD(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(iD,\"updateWidgetHeight\");function Yv(a,u,p){var d=p&&p.top!=null?Math.max(0,p.top):a.scroller.scrollTop;d=Math.floor(d-qv(a));var v=p&&p.bottom!=null?p.bottom:d+a.wrapper.clientHeight,w=jo(u,d),k=jo(u,v);if(p&&p.ensure){var O=p.ensure.from.line,R=p.ensure.to.line;O<w?(w=O,k=jo(u,Qa(Ve(u,O))+a.wrapper.clientHeight)):Math.min(R,u.lastLine())>=k&&(w=jo(u,Qa(Ve(u,R))-a.wrapper.clientHeight),k=R)}return{from:w,to:Math.max(k,w+1)}}M(Yv,\"visibleLines\");function RV(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-qv(a.display))+`px;\n height: `+(u.bottom-u.top+Ea(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(RV,\"maybeScrollWindow\");function PV(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,O=qo(a,u),R=!p||p==u?O:qo(a,p);v={left:Math.min(O.left,R.left),top:Math.min(O.top,R.top)-d,right:Math.max(O.left,R.left),bottom:Math.max(O.bottom,R.bottom)+d};var $=Vb(a,v),W=a.doc.scrollTop,Q=a.doc.scrollLeft;if($.scrollTop!=null&&($d(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(PV,\"scrollPosIntoView\");function MV(a,u){var p=Vb(a,u);p.scrollTop!=null&&$d(a,p.scrollTop),p.scrollLeft!=null&&cu(a,p.scrollLeft)}M(MV,\"scrollIntoView\");function Vb(a,u){var p=a.display,d=bc(a.display);u.top<0&&(u.top=0);var v=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:p.scroller.scrollTop,w=xb(a),k={};u.bottom-u.top>w&&(u.bottom=u.top+w);var O=a.doc.height+Cb(p),R=u.top<d,$=u.bottom>O-d;if(u.top<v)k.scrollTop=R?0:u.top;else if(u.bottom>v+w){var W=Math.min(u.top,($?O: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(Vb,\"calculateScrollPos\");function Bb(a,u){u!=null&&(Jv(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+u)}M(Bb,\"addToScrollTop\");function Sc(a){Jv(a);var u=a.getCursor();a.curOp.scrollToPos={from:u,to:u,margin:a.options.cursorScrollMargin}}M(Sc,\"ensureCursorVisible\");function Md(a,u,p){(u!=null||p!=null)&&Jv(a),u!=null&&(a.curOp.scrollLeft=u),p!=null&&(a.curOp.scrollTop=p)}M(Md,\"scrollToCoords\");function $V(a,u){Jv(a),a.curOp.scrollToPos=u}M($V,\"scrollToRange\");function Jv(a){var u=a.curOp.scrollToPos;if(u){a.curOp.scrollToPos=null;var p=KN(a,u.from),d=KN(a,u.to);oD(a,p,d,u.margin)}}M(Jv,\"resolveScrollToPos\");function oD(a,u,p,d){var v=Vb(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});Md(a,v.scrollLeft,v.scrollTop)}M(oD,\"scrollToCoordsRange\");function $d(a,u){Math.abs(a.doc.scrollTop-u)<2||(i||qb(a,{top:u}),aD(a,u,!0),i&&qb(a),Bd(a,100))}M($d,\"updateScrollTop\");function aD(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(aD,\"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,cD(a),a.display.scroller.scrollLeft!=u&&(a.display.scroller.scrollLeft=u),a.display.scrollbars.setScrollLeft(u))}M(cu,\"setScrollLeft\");function Vd(a){var u=a.display,p=u.gutters.offsetWidth,d=Math.round(a.doc.height+Cb(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+Ea(a)+u.barHeight,nativeBarWidth:u.nativeBarWidth,gutterWidth:p}}M(Vd,\"measureForScrollbars\");var Tc=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),Je(d,\"scroll\",function(){d.clientHeight&&u(d.scrollTop,\"vertical\")}),Je(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\");Tc.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}},Tc.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,\"horiz\")},Tc.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,\"vert\")},Tc.prototype.zeroWidthHack=function(){var a=S&&!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},Tc.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)},Tc.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var Kv=M(function(){},\"NullScrollbars\");Kv.prototype.update=function(){return{bottom:0,right:0}},Kv.prototype.setScrollLeft=function(){},Kv.prototype.setScrollTop=function(){},Kv.prototype.clear=function(){};function _c(a,u){u||(u=Vd(a));var p=a.display.barWidth,d=a.display.barHeight;sD(a,u);for(var v=0;v<4&&p!=a.display.barWidth||d!=a.display.barHeight;v++)p!=a.display.barWidth&&a.options.lineWrapping&&Qv(a),sD(a,Vd(a)),p=a.display.barWidth,d=a.display.barHeight}M(_c,\"updateScrollbars\");function sD(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(sD,\"updateScrollbarsInner\");var VV={native:Tc,null:Kv};function lD(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&H(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new VV[a.options.scrollbarStyle](function(u){a.display.wrapper.insertBefore(u,a.display.scrollbarFiller),Je(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):$d(a,u)},a),a.display.scrollbars.addClass&&re(a.display.wrapper,a.display.scrollbars.addClass)}M(lD,\"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},vV(a.curOp)}M(fu,\"startOperation\");function du(a){var u=a.curOp;u&&gV(u,function(p){for(var d=0;d<p.ops.length;d++)p.ops[d].cm.curOp=null;BV(p)})}M(du,\"endOperation\");function BV(a){for(var u=a.ops,p=0;p<u.length;p++)jV(u[p]);for(var d=0;d<u.length;d++)UV(u[d]);for(var v=0;v<u.length;v++)qV(u[v]);for(var w=0;w<u.length;w++)HV(u[w]);for(var k=0;k<u.length;k++)zV(u[k])}M(BV,\"endOperations\");function jV(a){var u=a.cm,p=u.display;WV(u),a.updateMaxLine&&Tb(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 jb(u,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}M(jV,\"endOperation_R1\");function UV(a){a.updatedDisplay=a.mustUpdate&&Ub(a.cm,a.update)}M(UV,\"endOperation_W1\");function qV(a){var u=a.cm,p=u.display;a.updatedDisplay&&Qv(u),a.barMeasure=Vd(u),p.maxLineChanged&&!u.options.lineWrapping&&(a.adjustWidthTo=HN(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+Ea(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(qV,\"endOperation_R2\");function HV(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)&&_c(u,a.barMeasure),a.updatedDisplay&&zb(u,a.barMeasure),a.selectionChanged&&Pb(u),u.state.focused&&a.updateInput&&u.display.input.reset(a.typing),p&&rD(a.cm)}M(HV,\"endOperation_W2\");function zV(a){var u=a.cm,p=u.display,d=u.doc;if(a.updatedDisplay&&uD(u,a.update),p.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(p.wheelStartX=p.wheelStartY=null),a.scrollTop!=null&&aD(u,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&cu(u,a.scrollLeft,!0,!0),a.scrollToPos){var v=PV(u,Re(d,a.scrollToPos.from),Re(d,a.scrollToPos.to),a.scrollToPos.margin);RV(u,v)}var w=a.maybeHiddenMarkers,k=a.maybeUnhiddenMarkers;if(w)for(var O=0;O<w.length;++O)w[O].lines.length||Ze(w[O],\"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(zV,\"endOperation_finish\");function bi(a,u){if(a.curOp)return u();fu(a);try{return u()}finally{du(a)}}M(bi,\"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 $r(a){return function(){if(this.curOp)return a.apply(this,arguments);fu(this);try{return a.apply(this,arguments)}finally{du(this)}}}M($r,\"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 Bd(a,u){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(u,K(GV,a))}M(Bd,\"startWorker\");function GV(a){var u=a.doc;if(!(u.highlightFrontier>=a.display.viewTo)){var p=+new Date+a.options.workTime,d=Dd(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,O=w.text.length>a.options.maxHighlightLength?yi(u.mode,d.state):null,R=EN(a,w,d,!0);O&&(d.state=O),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&&gb(a,w.text,d),w.stateAfter=d.line%5==0?d.save():null,d.nextLine();if(+new Date>p)return Bd(a,a.options.workDelay),!0}),u.highlightFrontier=d.line,u.modeFrontier=Math.max(u.modeFrontier,d.line),v.length&&bi(a,function(){for(var w=0;w<v.length;w++)$s(a,v[w],\"text\")})}}M(GV,\"highlightWorker\");var jb=M(function(a,u,p){var d=a.display;this.viewport=u,this.visible=Yv(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=Ib(a),this.events=[]},\"DisplayUpdate\");jb.prototype.signal=function(a,u){Wn(a,u)&&this.events.push(arguments)},jb.prototype.finish=function(){for(var a=0;a<this.events.length;a++)Ze.apply(null,this.events[a])};function WV(a){var u=a.display;!u.scrollbarsClipped&&u.scroller.offsetWidth&&(u.nativeBarWidth=u.scroller.offsetWidth-u.scroller.clientWidth,u.heightForcer.style.height=Ea(a)+\"px\",u.sizer.style.marginBottom=-u.nativeBarWidth+\"px\",u.sizer.style.borderRightWidth=Ea(a)+\"px\",u.scrollbarsClipped=!0)}M(WV,\"maybeClipScrollbars\");function QV(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(QV,\"selectionSnapshot\");function YV(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(YV,\"restoreSelection\");function Ub(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&&tD(a)==0)return!1;fD(a)&&(Vs(a),u.dims=Ib(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=wb(a.doc,w),k=IN(a.doc,k));var O=w!=p.viewFrom||k!=p.viewTo||p.lastWrapHeight!=u.wrapperHeight||p.lastWrapWidth!=u.wrapperWidth;LV(a,w,k),p.viewOffset=Qa(Ve(a.doc,p.viewFrom)),a.display.mover.style.top=p.viewOffset+\"px\";var R=tD(a);if(!O&&R==0&&!u.force&&p.renderedView==p.view&&(p.updateLineNumbers==null||p.updateLineNumbers>=p.viewTo))return!1;var $=QV(a);return R>4&&(p.lineDiv.style.display=\"none\"),JV(a,p.updateLineNumbers,u.dims),R>4&&(p.lineDiv.style.display=\"\"),p.renderedView=p.view,YV($),G(p.cursorDiv),G(p.selectionDiv),p.gutters.style.height=p.sizer.style.minHeight=0,O&&(p.lastWrapHeight=u.wrapperHeight,p.lastWrapWidth=u.wrapperWidth,Bd(a,400)),p.updateLineNumbers=null,!0}M(Ub,\"updateDisplayIfNeeded\");function uD(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+Cb(a.display)-xb(a),p.top)}),u.visible=Yv(a.display,a.doc,p),u.visible.from>=a.display.viewFrom&&u.visible.to<=a.display.viewTo)break}else d&&(u.visible=Yv(a.display,a.doc,p));if(!Ub(a,u))break;Qv(a);var v=Vd(a);Pd(a),_c(a,v),zb(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(uD,\"postUpdateDisplay\");function qb(a,u){var p=new jb(a,u);if(Ub(a,p)){Qv(a),uD(a,p);var d=Vd(a);Pd(a),_c(a,d),zb(a,d),p.finish()}}M(qb,\"updateDisplaySimple\");function JV(a,u,p){var d=a.display,v=a.options.lineNumbers,w=d.lineDiv,k=w.firstChild;function O(fe){var ye=fe.nextSibling;return h&&S&&a.display.currentWheelTarget==fe?fe.style.display=\"none\":fe.parentNode.removeChild(fe),ye}M(O,\"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=SV(a,Q,$,p);w.insertBefore(te,k)}else{for(;k!=Q.node;)k=O(k);var ee=v&&u!=null&&u<=$&&Q.lineNumber;Q.changes&&(le(Q.changes,\"gutter\")>-1&&(ee=!1),MN(a,Q,$,p)),ee&&(G(Q.lineNumber),Q.lineNumber.appendChild(document.createTextNode(mc(a.options,$)))),k=Q.node.nextSibling}$+=Q.size}for(;k;)k=O(k)}M(JV,\"patchDisplay\");function Hb(a){var u=a.gutters.offsetWidth;a.sizer.style.marginLeft=u+\"px\",Qn(a,\"gutterChanged\",a)}M(Hb,\"updateGutterSpace\");function zb(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+Ea(a)+\"px\"}M(zb,\"setDocumentHeight\");function cD(a){var u=a.display,p=u.view;if(!(!u.alignWidgets&&(!u.gutters.firstChild||!a.options.fixedGutter))){for(var d=Lb(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 O=p[k].alignable;if(O)for(var R=0;R<O.length;R++)O[R].style.left=w}a.options.fixedGutter&&(u.gutters.style.left=d+v+\"px\")}}M(cD,\"alignHorizontally\");function fD(a){if(!a.options.lineNumbers)return!1;var u=a.doc,p=mc(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\",Hb(a.display),!0}return!1}M(fD,\"maybeUpdateLineNumberWidth\");function Gb(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(Gb,\"getGutters\");function dD(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,O=u.appendChild(U(\"div\",null,\"CodeMirror-gutter \"+w));k&&(O.style.cssText=k),w==\"CodeMirror-linenumbers\"&&(a.lineGutter=O,O.style.width=(a.lineNumWidth||1)+\"px\")}u.style.display=p.length?\"\":\"none\",Hb(a)}M(dD,\"renderGutters\");function jd(a){dD(a.display),ni(a),cD(a)}M(jd,\"updateGutters\");function KV(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=Gb(d.gutters,d.lineNumbers),dD(v),p.init(v)}M(KV,\"Display\");var Wb=0,Bs=null;c?Bs=-.53:i?Bs=15:m?Bs=-.7:T&&(Bs=-1/3);function pD(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(pD,\"wheelEventDelta\");function XV(a){var u=pD(a);return u.x*=Bs,u.y*=Bs,u}M(XV,\"wheelEventPixels\");function hD(a,u){var p=pD(u),d=p.x,v=p.y,w=Bs;u.deltaMode===0&&(d=u.deltaX,v=u.deltaY,w=1);var k=a.display,O=k.scroller,R=O.scrollWidth>O.clientWidth,$=O.scrollHeight>O.clientHeight;if(d&&R||v&&$){if(v&&S&&h){e:for(var W=u.target,Q=k.view;W!=O;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&&$&&$d(a,Math.max(0,O.scrollTop+v*w)),cu(a,Math.max(0,O.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),qb(a,{top:fe,bottom:ye})}Wb<20&&u.deltaMode!==0&&(k.wheelStartX==null?(k.wheelStartX=O.scrollLeft,k.wheelStartY=O.scrollTop,k.wheelDX=d,k.wheelDY=v,setTimeout(function(){if(k.wheelStartX!=null){var Ne=O.scrollLeft-k.wheelStartX,Ae=O.scrollTop-k.wheelStartY,Fe=Ae&&k.wheelDY&&Ae/k.wheelDY||Ne&&k.wheelDX&&Ne/k.wheelDX;k.wheelStartX=k.wheelStartY=null,Fe&&(Bs=(Bs*Wb+Fe)/(Wb+1),++Wb)}},200)):(k.wheelDX+=d,k.wheelDY+=v))}}M(hD,\"onScrollWheel\");var uo=M(function(a,u){this.ranges=a,this.primIndex=u},\"Selection\");uo.prototype.primary=function(){return this.ranges[this.primIndex]},uo.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},uo.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 uo(a,this.primIndex)},uo.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},uo.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 Ho(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],O=u[w-1],R=B(O.to(),k.from());if(d&&!k.empty()?R>0:R>=0){var $=tt(O.from(),k.from()),W=xe(O.to(),k.to()),Q=O.empty()?k.from()==k.head:O.from()==O.head;w<=p&&--p,u.splice(--w,2,new Rt(Q?W:$,Q?$:W))}}return new uo(u,p)}M(Ho,\"normalizeSelection\");function js(a,u){return new uo([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 vD(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(vD,\"adjustForChange\");function Qb(a,u){for(var p=[],d=0;d<a.sel.ranges.length;d++){var v=a.sel.ranges[d];p.push(new Rt(vD(v.anchor,u),vD(v.head,u)))}return Ho(a.cm,p,a.sel.primIndex)}M(Qb,\"computeSelAfterChange\");function mD(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(mD,\"offsetPos\");function ZV(a,u,p){for(var d=[],v=_e(a.first,0),w=v,k=0;k<u.length;k++){var O=u[k],R=mD(O.from,v,w),$=mD(Us(O),v,w);if(v=O.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 uo(d,a.sel.primIndex)}M(ZV,\"computeReplacedSel\");function Yb(a){a.doc.mode=au(a.options,a.doc.modeOption),Ud(a)}M(Yb,\"loadMode\");function Ud(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,Bd(a,100),a.state.modeGen++,a.curOp&&ni(a)}M(Ud,\"resetModeState\");function gD(a,u){return u.from.ch==0&&u.to.ch==0&&st(u.text)==\"\"&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}M(gD,\"isWholeLineUpdate\");function Jb(a,u,p,d){function v(Fe){return p?p[Fe]:null}M(v,\"spansFor\");function w(Fe,Oe,Me){lV(Fe,Oe,Me,d),Qn(Fe,\"change\",Fe,u)}M(w,\"update\");function k(Fe,Oe){for(var Me=[],Ye=Fe;Ye<Oe;++Ye)Me.push(new Od($[Ye],v(Ye),d));return Me}M(k,\"linesFor\");var O=u.from,R=u.to,$=u.text,W=Ve(a,O.line),Q=Ve(a,R.line),te=st($),ee=v($.length-1),fe=R.line-O.line;if(u.full)a.insert(0,k(0,$.length)),a.remove($.length,a.size-$.length);else if(gD(a,u)){var ye=k(0,$.length-1);w(Q,Q.text,ee),fe&&a.remove(O.line,fe),ye.length&&a.insert(O.line,ye)}else if(W==Q)if($.length==1)w(W,W.text.slice(0,O.ch)+te+W.text.slice(R.ch),ee);else{var Ne=k(1,$.length-1);Ne.push(new Od(te+W.text.slice(R.ch),ee,d)),w(W,W.text.slice(0,O.ch)+$[0],v(0)),a.insert(O.line+1,Ne)}else if($.length==1)w(W,W.text.slice(0,O.ch)+$[0]+Q.text.slice(R.ch),v(0)),a.remove(O.line+1,fe);else{w(W,W.text.slice(0,O.ch)+$[0],v(0)),w(Q,te+Q.text.slice(R.ch),ee);var Ae=k(1,$.length-1);fe>1&&a.remove(O.line+1,fe-1),a.insert(O.line+1,Ae)}Qn(a,\"change\",a,u)}M(Jb,\"updateDoc\");function qs(a,u,p){function d(v,w,k){if(v.linked)for(var O=0;O<v.linked.length;++O){var R=v.linked[O];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 yD(a,u){if(u.cm)throw new Error(\"This document is already in use.\");a.doc=u,u.cm=a,Fb(a),Yb(a),bD(a),a.options.direction=u.direction,a.options.lineWrapping||Tb(a),a.options.mode=u.modeOption,ni(a)}M(yD,\"attachDoc\");function bD(a){(a.doc.direction==\"rtl\"?re:H)(a.display.lineDiv,\"CodeMirror-rtl\")}M(bD,\"setDirectionClass\");function eB(a){bi(a,function(){bD(a),ni(a)})}M(eB,\"directionChanged\");function Xv(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(Xv,\"History\");function Kb(a,u){var p={from:me(u.from),to:Us(u),text:Bo(a,u.from,u.to)};return SD(a,p,u.from.line,u.to.line+1),qs(a,function(d){return SD(d,p,u.from.line,u.to.line+1)},!0),p}M(Kb,\"historyChangeFromChange\");function ED(a){for(;a.length;){var u=st(a);if(u.ranges)a.pop();else break}}M(ED,\"clearSelectionEvents\");function tB(a,u){if(u)return ED(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(tB,\"lastChangeEvent\");function wD(a,u,p,d){var v=a.history;v.undone.length=0;var w=+new Date,k,O;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=tB(v,v.lastOp==d)))O=st(k.changes),B(u.from,u.to)==0&&B(u.from,O.to)==0?O.to=Us(u):k.changes.push(Kb(a,u));else{var R=st(v.done);for((!R||!R.ranges)&&Zv(a.sel,v.done),k={changes:[Kb(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,O||Ze(a,\"historyAdded\")}M(wD,\"addChangeToHistory\");function nB(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(nB,\"selectionEventCanBeMerged\");function rB(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||nB(a,w,st(v.done),u))?v.done[v.done.length-1]=u:Zv(u,v.done),v.lastSelTime=+new Date,v.lastSelOrigin=w,v.lastSelOp=p,d&&d.clearRedo!==!1&&ED(v.undone)}M(rB,\"addSelectionToHistory\");function Zv(a,u){var p=st(u);p&&p.ranges&&p.equals(a)||u.push(a)}M(Zv,\"pushSelectionToHistory\");function SD(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(SD,\"attachLocalSpans\");function iB(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(iB,\"removeClearedSpans\");function oB(a,u){var p=u[\"spans_\"+a.id];if(!p)return null;for(var d=[],v=0;v<u.text.length;++v)d.push(iB(p[v]));return d}M(oB,\"getOldSpans\");function TD(a,u){var p=oB(a,u),d=bb(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 O=0;O<k.length;++O){for(var R=k[O],$=0;$<w.length;++$)if(w[$].marker==R.marker)continue e;w.push(R)}else k&&(p[v]=k)}return p}M(TD,\"mergeOldSpans\");function Cc(a,u,p){for(var d=[],v=0;v<a.length;++v){var w=a[v];if(w.ranges){d.push(p?uo.prototype.deepCopy.call(w):w);continue}var k=w.changes,O=[];d.push({changes:O});for(var R=0;R<k.length;++R){var $=k[R],W=void 0;if(O.push({from:$.from,to:$.to,text:$.text}),u)for(var Q in $)(W=Q.match(/^spans_(\\d+)$/))&&le(u,Number(W[1]))>-1&&(st(O)[Q]=$[Q],delete $[Q])}}return d}M(Cc,\"copyHistoryArray\");function Xb(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(Xb,\"extendRange\");function em(a,u,p,d,v){v==null&&(v=a.cm&&(a.cm.display.shift||a.extend)),kr(a,new uo([Xb(a.sel.primary(),u,p,v)],0),d)}M(em,\"extendSelection\");function _D(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]=Xb(a.sel.ranges[w],u[w],null,v);var k=Ho(a.cm,d,a.sel.primIndex);kr(a,k,p)}M(_D,\"extendSelections\");function Zb(a,u,p,d){var v=a.sel.ranges.slice(0);v[u]=p,kr(a,Ho(a.cm,v,a.sel.primIndex),d)}M(Zb,\"replaceOneSelection\");function CD(a,u,p,d){kr(a,js(u,p),d)}M(CD,\"setSimpleSelection\");function aB(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?Ho(a.cm,d.ranges,d.ranges.length-1):u}M(aB,\"filterSelectionChange\");function xD(a,u,p){var d=a.history.done,v=st(d);v&&v.ranges?(d[d.length-1]=u,tm(a,u,p)):kr(a,u,p)}M(xD,\"setSelectionReplaceHistory\");function kr(a,u,p){tm(a,u,p),rB(a,a.sel,a.cm?a.cm.curOp.id:NaN,p)}M(kr,\"setSelection\");function tm(a,u,p){(Wn(a,\"beforeSelectionChange\")||a.cm&&Wn(a.cm,\"beforeSelectionChange\"))&&(u=aB(a,u,p));var d=p&&p.bias||(B(u.primary().head,a.sel.primary().head)<0?-1:1);kD(a,DD(a,u,d,!0)),!(p&&p.scroll===!1)&&a.cm&&a.cm.getOption(\"readOnly\")!=\"nocursor\"&&Sc(a.cm)}M(tm,\"setSelectionNoUndo\");function kD(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(kD,\"setSelectionInner\");function ND(a){kD(a,DD(a,a.sel,null,!1))}M(ND,\"reCheckSelection\");function DD(a,u,p,d){for(var v,w=0;w<u.ranges.length;w++){var k=u.ranges[w],O=u.ranges.length==a.sel.ranges.length&&a.sel.ranges[w],R=nm(a,k.anchor,O&&O.anchor,p,d),$=nm(a,k.head,O&&O.head,p,d);(v||R!=k.anchor||$!=k.head)&&(v||(v=u.ranges.slice(0,w)),v[w]=new Rt(R,$))}return v?Ho(a.cm,v,u.primIndex):u}M(DD,\"skipAtomicInSelection\");function xc(a,u,p,d,v){var w=Ve(a,u.line);if(w.markedSpans)for(var k=0;k<w.markedSpans.length;++k){var O=w.markedSpans[k],R=O.marker,$=\"selectLeft\"in R?!R.selectLeft:R.inclusiveLeft,W=\"selectRight\"in R?!R.selectRight:R.inclusiveRight;if((O.from==null||($?O.from<=u.ch:O.from<u.ch))&&(O.to==null||(W?O.to>=u.ch:O.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=AD(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 xc(a,Q,u,d,v)}var ee=R.find(d<0?-1:1);return(d<0?$:W)&&(ee=AD(a,ee,d,ee.line==u.line?w:null)),ee?xc(a,ee,u,d,v):null}}return u}M(xc,\"skipAtomicInner\");function nm(a,u,p,d,v){var w=d||1,k=xc(a,u,p,w,v)||!v&&xc(a,u,p,w,!0)||xc(a,u,p,-w,v)||!v&&xc(a,u,p,-w,!0);return k||(a.cantEdit=!0,_e(a.first,0))}M(nm,\"skipAtomic\");function AD(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||Ve(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(AD,\"movePos\");function OD(a){a.setSelection(_e(a.firstLine(),0),_e(a.lastLine()),He)}M(OD,\"selectAll\");function ID(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,O){v&&(d.from=Re(a,v)),w&&(d.to=Re(a,w)),k&&(d.text=k),O!==void 0&&(d.origin=O)}),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(ID,\"filterChange\");function kc(a,u,p){if(a.cm){if(!a.cm.curOp)return Yn(a.cm,kc)(a,u,p);if(a.cm.state.suppressEdits)return}if(!((Wn(a,\"beforeChange\")||a.cm&&Wn(a.cm,\"beforeChange\"))&&(u=ID(a,u,!0),!u))){var d=K7&&!p&&iV(a,u.from,u.to);if(d)for(var v=d.length-1;v>=0;--v)LD(a,{from:d[v].from,to:d[v].to,text:v?[\"\"]:u.text,origin:u.origin});else LD(a,u)}}M(kc,\"makeChange\");function LD(a,u){if(!(u.text.length==1&&u.text[0]==\"\"&&B(u.from,u.to)==0)){var p=Qb(a,u);wD(a,u,p,a.cm?a.cm.curOp.id:NaN),qd(a,u,p,bb(a,u));var d=[];qs(a,function(v,w){!w&&le(d,v.history)==-1&&(MD(v.history,u),d.push(v.history)),qd(v,u,null,bb(v,u))})}}M(LD,\"makeChangeInner\");function rm(a,u,p){var d=a.cm&&a.cm.state.suppressEdits;if(!(d&&!p)){for(var v=a.history,w,k=a.sel,O=u==\"undo\"?v.done:v.undone,R=u==\"undo\"?v.undone:v.done,$=0;$<O.length&&(w=O[$],!(p?w.ranges&&!w.equals(a.sel):!w.ranges));$++);if($!=O.length){for(v.lastOrigin=v.lastSelOrigin=null;;)if(w=O.pop(),w.ranges){if(Zv(w,R),p&&!w.equals(a.sel)){kr(a,w,{clearRedo:!1});return}k=w}else if(d){O.push(w);return}else break;var W=[];Zv(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&&!ID(a,Ne,!1))return O.length=0,{};W.push(Kb(a,Ne));var Ae=ye?Qb(a,Ne):st(O);qd(a,Ne,Ae,TD(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&&(MD(Oe.history,Ne),Fe.push(Oe.history)),qd(Oe,Ne,null,TD(Oe,Ne))})},\"loop\"),ee=w.changes.length-1;ee>=0;--ee){var fe=te(ee);if(fe)return fe.v}}}}M(rm,\"makeChangeFromHistory\");function FD(a,u){if(u!=0&&(a.first+=u,a.sel=new uo(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)){ni(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(FD,\"shiftDoc\");function qd(a,u,p,d){if(a.cm&&!a.cm.curOp)return Yn(a.cm,qd)(a,u,p,d);if(u.to.line<a.first){FD(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);FD(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,Ve(a,w).text.length),text:[u.text[0]],origin:u.origin}),u.removed=Bo(a,u.from,u.to),p||(p=Qb(a,u)),a.cm?sB(a.cm,u,d):Jb(a,u,d),tm(a,p,He),a.cantEdit&&nm(a,_e(a.firstLine(),0))&&(a.cantEdit=!1)}}M(qd,\"makeChangeSingleDoc\");function sB(a,u,p){var d=a.doc,v=a.display,w=u.from,k=u.to,O=!1,R=w.line;a.options.lineWrapping||(R=xt(Uo(Ve(d,w.line))),d.iter(R,k.line+1,function(ee){if(ee==v.maxLine)return O=!0,!0})),d.sel.contains(u.from,u.to)>-1&&ru(a),Jb(d,u,p,eD(a)),a.options.lineWrapping||(d.iter(R,w.line+u.text.length,function(ee){var fe=Bv(ee);fe>v.maxLineLength&&(v.maxLine=ee,v.maxLineLength=fe,v.maxLineChanged=!0,O=!1)}),O&&(a.curOp.updateMaxLine=!0)),J7(d,w.line),Bd(a,400);var $=u.text.length-(k.line-w.line)-1;u.full?ni(a):w.line==k.line&&u.text.length==1&&!gD(a.doc,u)?$s(a,w.line,\"text\"):ni(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(sB,\"makeChangeSingleDocInEditor\");function Nc(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)),kc(a,{from:p,to:d,text:u,origin:v})}M(Nc,\"replaceRange\");function RD(a,u,p,d){p<a.line?a.line+=d:u<a.line&&(a.line=u,a.ch=0)}M(RD,\"rebaseHistSelSingle\");function PD(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 O=0;O<w.ranges.length;O++)RD(w.ranges[O].anchor,u,p,d),RD(w.ranges[O].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(PD,\"rebaseHistArray\");function MD(a,u){var p=u.from.line,d=u.to.line,v=u.text.length-(d-p)-1;PD(a.done,p,d,v),PD(a.undone,p,d,v)}M(MD,\"rebaseHist\");function Hd(a,u,p,d){var v=u,w=u;return typeof u==\"number\"?w=Ve(a,bt(a,u)):v=xt(u),v==null?null:(d(w,v)&&a.cm&&$s(a.cm,v,p),w)}M(Hd,\"changeLine\");function zd(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(zd,\"LeafChunk\"),zd.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,uV(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 Gd(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(Gd,\"BranchChunk\"),Gd.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 zd))){var O=[];this.collapse(O),this.children=[new zd(O)],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,O=k;O<v.lines.length;){var R=new zd(v.lines.slice(O,O+=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 Gd(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 Gd(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 im=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\");im.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=Fd(this);ti(p,Math.max(0,p.height-w)),a&&(bi(a,function(){$D(a,p,-w),$s(a,d,\"widget\")}),Qn(a,\"lineWidgetCleared\",a,this,d))}},im.prototype.changed=function(){var a=this,u=this.height,p=this.doc.cm,d=this.line;this.height=null;var v=Fd(this)-u;v&&(Ms(this.doc,d)||ti(d,d.height+v),p&&bi(p,function(){p.curOp.forceUpdate=!0,$D(p,d,v),Qn(p,\"lineWidgetChanged\",p,a,xt(d))}))},Mo(im);function $D(a,u,p){Qa(u)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&Bb(a,p)}M($D,\"adjustScrollWhenAboveVisible\");function lB(a,u,p,d){var v=new im(a,p,d),w=a.cm;return w&&v.noHScroll&&(w.display.alignWidgets=!0),Hd(a,u,\"widget\",function(k){var O=k.widgets||(k.widgets=[]);if(v.insertAt==null?O.push(v):O.splice(Math.min(O.length,Math.max(0,v.insertAt)),0,v),v.line=k,w&&!Ms(a,k)){var R=Qa(k)<a.scrollTop;ti(k,k.height+Fd(v)),R&&Bb(w,v.height),w.curOp.forceUpdate=!0}return!0}),w&&Qn(w,\"lineWidgetAdded\",w,v,typeof u==\"number\"?u:xt(u)),v}M(lB,\"addLineWidget\");var uB=0,pu=M(function(a,u){this.lines=[],this.type=u,this.doc=a,this.id=++uB},\"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],O=Ad(k.markedSpans,this);a&&!this.collapsed?$s(a,xt(k),\"text\"):a&&(O.to!=null&&(v=xt(k)),O.from!=null&&(d=xt(k))),k.markedSpans=eV(k.markedSpans,O),O.from==null&&this.collapsed&&!Ms(this.doc,k)&&a&&ti(k,bc(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var R=0;R<this.lines.length;++R){var $=Uo(this.lines[R]),W=Bv($);W>a.display.maxLineLength&&(a.display.maxLine=$,a.display.maxLineLength=W,a.display.maxLineChanged=!0)}d!=null&&a&&this.collapsed&&ni(a,d,v+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&ND(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=Ad(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||bi(d,function(){var v=u.line,w=xt(u.line),k=kb(d,w);if(k&&(GN(k),d.curOp.selectionChanged=d.curOp.forceUpdate=!0),d.curOp.updateMaxLine=!0,!Ms(p.doc,v)&&p.height!=null){var O=p.height;p.height=null;var R=Fd(p)-O;R&&ti(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)}},Mo(pu);function Dc(a,u,p,d,v){if(d&&d.shared)return cB(a,u,p,d,v);if(a.cm&&!a.cm.curOp)return Yn(a.cm,Dc)(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(ON(a,u.line,u,p,w)||u.line!=p.line&&ON(a,p.line,u,p,w))throw new Error(\"Inserting collapsed marker partially overlapping an existing one\");Z7()}w.addToHistory&&wD(a,{from:u,to:p,origin:\"markText\"},a.sel,NaN);var O=u.line,R=a.cm,$;if(a.iter(O,p.line+1,function(Q){R&&w.collapsed&&!R.options.lineWrapping&&Uo(Q)==R.display.maxLine&&($=!0),w.collapsed&&O!=u.line&&ti(Q,0),tV(Q,new Pv(w,O==u.line?u.ch:null,O==p.line?p.ch:null),a.cm&&a.cm.curOp),++O}),w.collapsed&&a.iter(u.line,p.line+1,function(Q){Ms(a,Q)&&ti(Q,0)}),w.clearOnEnter&&Je(w,\"beforeCursorEnter\",function(){return w.clear()}),w.readOnly&&(X7(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),w.collapsed&&(w.id=++uB,w.atomic=!0),R){if($&&(R.curOp.updateMaxLine=!0),w.collapsed)ni(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&&ND(R.doc),Qn(R,\"markerAdded\",R,w)}return w}M(Dc,\"markText\");var om=M(function(a,u){this.markers=a,this.primary=u;for(var p=0;p<a.length;++p)a[p].parent=this},\"SharedTextMarker\");om.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\")}},om.prototype.find=function(a,u){return this.primary.find(a,u)},Mo(om);function cB(a,u,p,d,v){d=ve(d),d.shared=!1;var w=[Dc(a,u,p,d,v)],k=w[0],O=d.widgetNode;return qs(a,function(R){O&&(d.widgetNode=O.cloneNode(!0)),w.push(Dc(R,Re(R,u),Re(R,p),d,v));for(var $=0;$<R.linked.length;++$)if(R.linked[$].isParent)return;k=st(w)}),new om(w,k)}M(cB,\"markTextShared\");function VD(a){return a.findMarks(_e(a.first,0),a.clipPos(_e(a.lastLine())),function(u){return u.parent})}M(VD,\"findSharedMarkers\");function fB(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 O=Dc(a,w,k,d.primary,d.primary.type);d.markers.push(O),O.parent=d}}}M(fB,\"copySharedMarkers\");function dB(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 O=v.markers[k];le(w,O.doc)==-1&&(O.parent=null,v.markers.splice(k--,1))}},\"loop\"),p=0;p<a.length;p++)u(p)}M(dB,\"detachSharedMarkers\");var Cae=0,Ei=M(function(a,u,p,d,v){if(!(this instanceof Ei))return new Ei(a,u,p,d,v);p==null&&(p=0),Gd.call(this,[new zd([new Od(\"\",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 Xv(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)),Jb(this,{from:w,to:w,text:a}),kr(this,js(w),He)},\"Doc\");Ei.prototype=cr(Gd.prototype,{constructor:Ei,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=vc(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;kc(this,{from:u,to:_e(p,Ve(this,p).text.length),text:this.splitLines(a),origin:\"setValue\",full:!0},!0),this.cm&&Md(this.cm,0,0),kr(this,js(u),He)}),replaceRange:function(a,u,p,d){u=Re(this,u),p=p?Re(this,p):u,Nc(this,a,u,p,d)},getRange:function(a,u,p){var d=Bo(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 Ve(this,a)},getLineNumber:function(a){return xt(a)},getLineHandleVisualStart:function(a){return typeof a==\"number\"&&(a=Ve(this,a)),Uo(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){CD(this,Re(this,typeof a==\"number\"?_e(a,u||0):a),null,p)}),setSelection:Jn(function(a,u,p){CD(this,Re(this,a),Re(this,u||a),p)}),extendSelection:Jn(function(a,u,p){em(this,Re(this,a),u&&Re(this,u),p)}),extendSelections:Jn(function(a,u){_D(this,Bi(this,a),u)}),extendSelectionsBy:Jn(function(a,u){var p=ur(this.sel.ranges,a);_D(this,Bi(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)),kr(this,Ho(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))),kr(this,Ho(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=Bo(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=Bo(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 O=u&&u!=\"end\"&&ZV(this,d,u),R=d.length-1;R>=0;R--)kc(this,d[R]);O?xD(this,O):this.cm&&Sc(this.cm)}),undo:Jn(function(){rm(this,\"undo\")}),redo:Jn(function(){rm(this,\"redo\")}),undoSelection:Jn(function(){rm(this,\"undo\",!0)}),redoSelection:Jn(function(){rm(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 Xv(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:Cc(this.history.done),undone:Cc(this.history.undone)}},setHistory:function(a){var u=this.history=new Xv(this.history);u.done=Cc(a.done.slice(0),null,!0),u.undone=Cc(a.undone.slice(0),null,!0)},setGutterMarker:Jn(function(a,u,p){return Hd(this,a,\"gutter\",function(d){var v=d.gutterMarkers||(d.gutterMarkers={});return v[u]=p,!p&&bd(v)&&(d.gutterMarkers=null),!0})}),clearGutter:Jn(function(a){var u=this;this.iter(function(p){p.gutterMarkers&&p.gutterMarkers[a]&&Hd(u,p,\"gutter\",function(){return p.gutterMarkers[a]=null,bd(p.gutterMarkers)&&(p.gutterMarkers=null),!0})})}),lineInfo:function(a){var u;if(typeof a==\"number\"){if(!Rs(this,a)||(u=a,a=Ve(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 Hd(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 Hd(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 O=k.index+k[0].length;d[v]=w.slice(0,k.index)+(!k.index||O==w.length?\"\":\" \")+w.slice(O)||null}else return!1;return!0})}),addLineWidget:Jn(function(a,u,p){return lB(this,a,u,p)}),removeLineWidget:function(a){a.clear()},markText:function(a,u,p){return Dc(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),Dc(this,a,a,p,\"bookmark\")},findMarksAt:function(a){a=Re(this,a);var u=[],p=Ve(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 O=0;O<k.length;O++){var R=k[O];!(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 Ei(vc(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 Ei(vc(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}],fB(d,VD(this)),d},unlinkDoc:function(a){if(a instanceof tn&&(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),dB(VD(this));break}}if(a.history==this.history){var d=[a.id];qs(a,function(v){return d.push(v.id)},!0),a.history=new Xv(null),a.history.done=Cc(this.history.done,d),a.history.undone=Cc(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):Cd(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&&eB(this.cm))})}),Ei.prototype.eachLine=Ei.prototype.iter;var pB=0;function hB(a){var u=this;if(BD(u),!(En(u,a)||Ya(u.display,a))){fr(a),c&&(pB=+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,O=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\"};kc(u.doc,ee),xD(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){O();return}var ye=new FileReader;ye.onerror=function(){return O()},ye.onload=function(){var Ne=ye.result;if(/[\\x00-\\x08\\x0e-\\x1f]{2}/.test(Ne)){O();return}w[fe]=Ne,O()},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()),tm(u.doc,js(p,p)),Q)for(var te=0;te<Q.length;++te)Nc(u.doc,\"\",Q[te].anchor,Q[te].head,\"drag\");u.replaceSelection(W,\"around\",\"paste\"),u.display.input.focus()}}catch{}}}}M(hB,\"onDrop\");function vB(a,u){if(c&&(!a.state.draggingText||+new Date-pB<100)){Fs(u);return}if(!(En(a,u)||Ya(a.display,u))&&(u.dataTransfer.setData(\"Text\",a.getSelection()),u.dataTransfer.effectAllowed=\"copyMove\",u.dataTransfer.setDragImage&&!T)){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(vB,\"onDragStart\");function mB(a,u){var p=lu(a,u);if(p){var d=document.createDocumentFragment();Rb(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(mB,\"onDragOver\");function BD(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}M(BD,\"clearDragCursor\");function jD(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(jD,\"forEachCodeMirror\");var gB=!1;function yB(){gB||(bB(),gB=!0)}M(yB,\"ensureGlobalHandlers\");function bB(){var a;Je(window,\"resize\",function(){a==null&&(a=setTimeout(function(){a=null,jD(EB)},100))}),Je(window,\"blur\",function(){return jD(wc)})}M(bB,\"registerGlobalHandlers\");function EB(a){var u=a.display;u.cachedCharWidth=u.cachedTextHeight=u.cachedPaddingH=null,u.scrollbarsClipped=!1,a.setSize()}M(EB,\"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\"},am=0;am<10;am++)hu[am+48]=hu[am+96]=String(am);for(var eE=65;eE<=90;eE++)hu[eE]=String.fromCharCode(eE);for(var sm=1;sm<=12;sm++)hu[sm+111]=hu[sm+63235]=\"F\"+sm;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=S?Hs.macDefault:Hs.pcDefault;function wB(a){var u=a.split(/-(?!$)/);a=u[u.length-1];for(var p,d,v,w,k=0;k<u.length-1;k++){var O=u[k];if(/^(cmd|meta|m)$/i.test(O))w=!0;else if(/^a(lt)?$/i.test(O))p=!0;else if(/^(c|ctrl|control)$/i.test(O))d=!0;else if(/^s(hift)?$/i.test(O))v=!0;else throw new Error(\"Unrecognized modifier name: \"+O)}return p&&(a=\"Alt-\"+a),d&&(a=\"Ctrl-\"+a),w&&(a=\"Cmd-\"+a),v&&(a=\"Shift-\"+a),a}M(wB,\"normalizeKeyName\");function SB(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(\" \"),wB),w=0;w<v.length;w++){var k=void 0,O=void 0;w==v.length-1?(O=v.join(\" \"),k=d):(O=v.slice(0,w+1).join(\" \"),k=\"...\");var R=u[O];if(!R)u[O]=k;else if(R!=k)throw new Error(\"Inconsistent bindings for \"+O)}delete a[p]}for(var $ in u)a[$]=u[$];return a}M(SB,\"normalizeKeyMap\");function Ac(a,u,p,d){u=lm(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 Ac(a,u.fallthrough,p,d);for(var w=0;w<u.fallthrough.length;w++){var k=Ac(a,u.fallthrough[w],p,d);if(k)return k}}}M(Ac,\"lookupKey\");function UD(a){var u=typeof a==\"string\"?a:hu[a.keyCode];return u==\"Ctrl\"||u==\"Alt\"||u==\"Shift\"||u==\"Mod\"}M(UD,\"isModifierKey\");function qD(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(qD,\"addModifierNames\");function HD(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),qD(p,a,u))}M(HD,\"keyName\");function lm(a){return typeof a==\"string\"?Hs[a]:a}M(lm,\"getKeyMap\");function Oc(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)}bi(a,function(){for(var O=d.length-1;O>=0;O--)Nc(a.doc,\"\",d[O].from,d[O].to,\"+delete\");Sc(a)})}M(Oc,\"deleteNearSelection\");function tE(a,u,p){var d=Ed(a.text,u+p,p);return d<0||d>a.text.length?null:d}M(tE,\"moveCharLogically\");function nE(a,u,p){var d=tE(a,u.ch,p);return d==null?null:new _e(u.line,d,p<0?\"after\":\"before\")}M(nE,\"moveLogically\");function rE(a,u,p,d,v){if(a){u.doc.direction==\"rtl\"&&(v=-v);var w=Zr(p,u.doc.direction);if(w){var k=v<0?st(w):w[0],O=v<0==(k.level==1),R=O?\"after\":\"before\",$;if(k.level>0||u.doc.direction==\"rtl\"){var W=gc(u,p);$=v<0?p.text.length-1:0;var Q=wa(u,W,$).top;$=Po(function(te){return wa(u,W,te).top==Q},v<0==(k.level==1)?k.from:k.to-1,$),R==\"before\"&&($=tE(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(rE,\"endOfLine\");function TB(a,u,p,d){var v=Zr(u,a.doc.direction);if(!v)return nE(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=fn(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 nE(u,p,d);var O=M(function(Ae,Fe){return tE(u,Ae instanceof _e?Ae.ch:Ae,Fe)},\"mv\"),R,$=M(function(Ae){return a.options.lineWrapping?(R=R||gc(a,u),ZN(a,u,R,Ae)):{begin:0,end:u.text.length}},\"getWrappedLineExtent\"),W=$(p.sticky==\"before\"?O(p,-1):p.ch);if(a.doc.direction==\"rtl\"||k.level==1){var Q=k.level==1==d<0,te=O(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(zt,dr){return dr?new _e(p.line,O(zt,1),\"before\"):new _e(p.line,zt,\"after\")},\"getRes\");Ae>=0&&Ae<v.length;Ae+=Fe){var Ye=v[Ae],Ge=Fe>0==(Ye.level!=1),dt=Ge?Oe.begin:O(Oe.end,-1);if(Ye.from<=dt&&dt<Ye.to||(dt=Ge?Ye.from:O(Ye.to,-1),Oe.begin<=dt&&dt<Oe.end))return Me(dt,Ge)}},\"searchInVisualLine\"),ye=fe(w+d,d,W);if(ye)return ye;var Ne=d>0?W.end:O(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(TB,\"moveVisually\");var um={selectAll:OD,singleSelection:function(a){return a.setSelection(a.getCursor(\"anchor\"),a.getCursor(\"head\"),He)},killLine:function(a){return Oc(a,function(u){if(u.empty()){var p=Ve(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 Oc(a,function(u){return{from:_e(u.from().line,0),to:Re(a.doc,_e(u.to().line+1,0))}})},delLineLeft:function(a){return Oc(a,function(u){return{from:_e(u.from().line,0),to:u.from()}})},delWrappedLineLeft:function(a){return Oc(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 Oc(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 zD(a,u.head.line)},{origin:\"+move\",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(u){return GD(a,u.head)},{origin:\"+move\",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(u){return _B(a,u.head.line)},{origin:\"+move\",bias:-1})},goLineRight:function(a){return a.extendSelectionsBy(function(u){var 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/)?GD(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 bi(a,function(){for(var u=a.listSelections(),p=[],d=0;d<u.length;d++)if(u[d].empty()){var v=u[d].head,w=Ve(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=Ve(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 bi(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);Sc(a)})},openLine:function(a){return a.replaceSelection(`\n`,\"start\")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function zD(a,u){var p=Ve(a.doc,u),d=Uo(p);return d!=p&&(u=xt(d)),rE(!0,a,d,u,1)}M(zD,\"lineStart\");function _B(a,u){var p=Ve(a.doc,u),d=aV(p);return d!=p&&(u=xt(d)),rE(!0,a,p,u,-1)}M(_B,\"lineEnd\");function GD(a,u){var p=zD(a,u.line),d=Ve(a.doc,p.line),v=Zr(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(GD,\"lineStartSmart\");function cm(a,u,p){if(typeof u==\"string\"&&(u=um[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(cm,\"doHandleBinding\");function CB(a,u,p){for(var d=0;d<a.state.keyMaps.length;d++){var v=Ac(u,a.state.keyMaps[d],p,a);if(v)return v}return a.options.extraKeys&&Ac(u,a.options.extraKeys,p,a)||Ac(u,a.options.keyMap,p,a)}M(CB,\"lookupKeyForEditor\");var xae=new ce;function Wd(a,u,p,d){var v=a.state.keySeq;if(v){if(UD(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())}),WD(a,v+\" \"+u,p,d))return!0}return WD(a,u,p,d)}M(Wd,\"dispatchKey\");function WD(a,u,p,d){var v=CB(a,u,d);return v==\"multi\"&&(a.state.keySeq=u),v==\"handled\"&&Qn(a,\"keyHandled\",a,u,p),(v==\"handled\"||v==\"multi\")&&(fr(p),Pb(a)),!!v}M(WD,\"dispatchKeyInner\");function QD(a,u){var p=HD(u,!0);return p?u.shiftKey&&!a.state.keySeq?Wd(a,\"Shift-\"+p,u,function(d){return cm(a,d,!0)})||Wd(a,p,u,function(d){if(typeof d==\"string\"?/^go[A-Z]/.test(d):d.motion)return cm(a,d)}):Wd(a,p,u,function(d){return cm(a,d)}):!1}M(QD,\"handleKeyBinding\");function xB(a,u,p){return Wd(a,\"'\"+p+\"'\",u,function(d){return cm(a,d,!0)})}M(xB,\"handleCharBinding\");var YD=null;function JD(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=QD(u,a);y&&(YD=d?p:null,!d&&p==88&&!Rv&&(S?a.metaKey:a.ctrlKey)&&u.replaceSelection(\"\",null,\"cut\")),i&&!S&&!d&&p==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand(\"cut\"),p==18&&!/\\bCodeMirror-crosshair\\b/.test(u.display.lineDiv.className)&&kB(u)}}M(JD,\"onKeyDown\");function kB(a){var u=a.display.lineDiv;re(u,\"CodeMirror-crosshair\");function p(d){(d.keyCode==18||!d.altKey)&&(H(u,\"CodeMirror-crosshair\"),Mr(document,\"keyup\",p),Mr(document,\"mouseover\",p))}M(p,\"up\"),Je(document,\"keyup\",p),Je(document,\"mouseover\",p)}M(kB,\"showCrossHair\");function KD(a){a.keyCode==16&&(this.doc.sel.shift=!1),En(this,a)}M(KD,\"onKeyUp\");function XD(a){var u=this;if(!(a.target&&a.target!=u.display.input.getField())&&!(Ya(u.display,a)||En(u,a)||a.ctrlKey&&!a.altKey||S&&a.metaKey)){var p=a.keyCode,d=a.charCode;if(y&&p==YD){YD=null,fr(a);return}if(!(y&&(!a.which||a.which<10)&&QD(u,a))){var v=String.fromCharCode(d??p);v!=\"\\b\"&&(xB(u,a,v)||u.display.input.onKeyPress(a))}}}M(XD,\"onKeyPress\");var kae=400,ZD=M(function(a,u,p){this.time=a,this.pos=u,this.button=p},\"PastClick\");ZD.prototype.compare=function(a,u,p){return this.time+kae>a&&B(u,this.pos)==0&&p==this.button};var fm,dm;function NB(a,u){var p=+new Date;return dm&&dm.compare(p,a,u)?(fm=dm=null,\"triple\"):fm&&fm.compare(p,a,u)?(dm=new ZD(p,a,u),fm=null,\"double\"):(fm=new ZD(p,a,u),dm=null,\"single\")}M(NB,\"clickRepeat\");function eA(a){var u=this,p=u.display;if(!(En(u,a)||p.activeTouch&&p.input.supportsTouch())){if(p.input.ensurePolled(),p.shift=a.shiftKey,Ya(p,a)){h||(p.scroller.draggable=!1,setTimeout(function(){return p.scroller.draggable=!0},100));return}if(!iE(u,a)){var d=lu(u,a),v=wd(a),w=d?NB(d,v):\"single\";window.focus(),v==1&&u.state.selectingText&&u.state.selectingText(a),!(d&&DB(u,v,d,w,a))&&(v==1?d?OB(u,d,w,a):za(a)==p.scroller&&fr(a):v==2?(d&&em(u.doc,d),setTimeout(function(){return p.input.focus()},20)):v==3&&(P?u.display.input.onContextMenu(a):Mb(u)))}}}M(eA,\"onMouseDown\");function DB(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,Wd(a,qD(w,v),v,function(k){if(typeof k==\"string\"&&(k=um[k]),!k)return!1;var O=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),O=k(a,p)!=Ce}finally{a.state.suppressEdits=!1}return O})}M(DB,\"handleMappedButton\");function AB(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=S?p.metaKey:p.ctrlKey),v.moveOnDrag==null&&(v.moveOnDrag=!(S?p.altKey:p.ctrlKey)),v}M(AB,\"configureMouse\");function OB(a,u,p,d){c?setTimeout(K(rD,a),0):a.curOp.focus=J();var v=AB(a,p,d),w=a.doc.sel,k;a.options.dragDrop&&Sd&&!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)?IB(a,d,u,v):LB(a,d,u,v)}M(OB,\"leftButtonDown\");function IB(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:Mb(a)),Mr(v.wrapper.ownerDocument,\"mouseup\",k),Mr(v.wrapper.ownerDocument,\"mousemove\",O),Mr(v.scroller,\"dragstart\",R),Mr(v.scroller,\"drop\",k),w||(fr($),d.addNew||em(a.doc,p,null,null,d.extend),h&&!T||c&&f==9?setTimeout(function(){v.wrapper.ownerDocument.body.focus({preventScroll:!0}),v.input.focus()},20):v.input.focus())}),O=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,Je(v.wrapper.ownerDocument,\"mouseup\",k),Je(v.wrapper.ownerDocument,\"mousemove\",O),Je(v.scroller,\"dragstart\",R),Je(v.scroller,\"drop\",k),a.state.delayingBlurEvent=!0,setTimeout(function(){return v.input.focus()},20),v.scroller.dragDrop&&v.scroller.dragDrop()}M(IB,\"leftButtonStartDrag\");function tA(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(tA,\"rangeForUnit\");function LB(a,u,p,d){c&&Mb(a);var v=a.display,w=a.doc;fr(u);var k,O,R=w.sel,$=R.ranges;if(d.addNew&&!d.extend?(O=w.sel.contains(p),O>-1?k=$[O]:k=new Rt(p,p)):(k=w.sel.primary(),O=w.sel.primIndex),d.unit==\"rectangle\")d.addNew||(k=new Rt(p,p)),p=lu(a,u,!0,!0),O=-1;else{var W=tA(a,p,d.unit);d.extend?k=Xb(k,W.anchor,W.head,d.extend):k=W}d.addNew?O==-1?(O=$.length,kr(w,Ho(a,$.concat([k]),O),{scroll:!1,origin:\"*mouse\"})):$.length>1&&$[O].empty()&&d.unit==\"char\"&&!d.extend?(kr(w,Ho(a,$.slice(0,O).concat($.slice(O+1)),0),{scroll:!1,origin:\"*mouse\"}),R=w.sel):Zb(w,O,k,cn):(O=0,kr(w,new uo([k],0),cn),R=w.sel);var Q=p;function te(Oe){if(B(Q,Oe)!=0)if(Q=Oe,d.unit==\"rectangle\"){for(var Me=[],Ye=a.options.tabSize,Ge=ue(Ve(w,p.line).text,p.ch,Ye),dt=ue(Ve(w,Oe.line).text,Oe.ch,Ye),zt=Math.min(Ge,dt),dr=Math.max(Ge,dt),dn=Math.min(p.line,Oe.line),wi=Math.min(a.lastLine(),Math.max(p.line,Oe.line));dn<=wi;dn++){var Si=Ve(w,dn).text,Bn=et(Si,zt,Ye);zt==dr?Me.push(new Rt(_e(dn,Bn),_e(dn,Bn))):Si.length>Bn&&Me.push(new Rt(_e(dn,Bn),_e(dn,et(Si,dr,Ye))))}Me.length||Me.push(new Rt(p,p)),kr(w,Ho(a,R.ranges.slice(0,O).concat(Me),O),{origin:\"*mouse\",scroll:!1}),a.scrollIntoView(Oe)}else{var Ti=k,Nr=tA(a,Oe,d.unit),Kn=Ti.anchor,jn;B(Nr.anchor,Kn)>0?(jn=Nr.head,Kn=tt(Ti.from(),Nr.anchor)):(jn=Nr.anchor,Kn=xe(Ti.to(),Nr.head));var wn=R.ranges.slice(0);wn[O]=FB(a,new Rt(Re(w,Kn),jn)),kr(w,Ho(a,wn,O),cn)}}M(te,\"extendTo\");var ee=v.wrapper.getBoundingClientRect(),fe=0;function ye(Oe){var Me=++fe,Ye=lu(a,Oe,!0,d.unit==\"rectangle\");if(Ye)if(B(Ye,Q)!=0){a.curOp.focus=J(),te(Ye);var Ge=Yv(v,w);(Ye.line>=Ge.to||Ye.line<Ge.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()),Mr(v.wrapper.ownerDocument,\"mousemove\",Ae),Mr(v.wrapper.ownerDocument,\"mouseup\",Fe),w.history.lastSelOrigin=null}M(Ne,\"done\");var Ae=Yn(a,function(Oe){Oe.buttons===0||!wd(Oe)?Ne(Oe):ye(Oe)}),Fe=Yn(a,Ne);a.state.selectingText=Fe,Je(v.wrapper.ownerDocument,\"mousemove\",Ae),Je(v.wrapper.ownerDocument,\"mouseup\",Fe)}M(LB,\"leftButtonSelect\");function FB(a,u){var p=u.anchor,d=u.head,v=Ve(a.doc,p.line);if(B(p,d)==0&&p.sticky==d.sticky)return u;var w=Zr(v);if(!w)return u;var k=fn(w,p.ch,p.sticky),O=w[k];if(O.from!=p.ch&&O.to!=p.ch)return u;var R=k+(O.from==p.ch==(O.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=fn(w,d.ch,d.sticky),Q=W-k||(d.ch-p.ch)*(O.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(FB,\"bidiSimplify\");function nA(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,O=k.lineDiv.getBoundingClientRect();if(w>O.bottom||!Wn(a,p))return gi(u);w-=O.top-k.viewOffset;for(var R=0;R<a.display.gutterSpecs.length;++R){var $=k.gutters.childNodes[R];if($&&$.getBoundingClientRect().right>=v){var W=jo(a.doc,w),Q=a.display.gutterSpecs[R];return Ze(a,p,a,W,Q.className,u),gi(u)}}}M(nA,\"gutterEvent\");function iE(a,u){return nA(a,u,\"gutterClick\",!0)}M(iE,\"clickInGutter\");function rA(a,u){Ya(a.display,u)||RB(a,u)||En(a,u,\"contextmenu\")||P||a.display.input.onContextMenu(u)}M(rA,\"onContextMenu\");function RB(a,u){return Wn(a,\"gutterContextMenu\")?nA(a,u,\"gutterContextMenu\",!1):!1}M(RB,\"contextMenuInGutter\");function iA(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\\s*cm-s-\\S+/g,\"\")+a.options.theme.replace(/(^|\\s)\\s*/g,\" cm-s-\"),Rd(a)}M(iA,\"themeChanged\");var Qd={toString:function(){return\"CodeMirror.Init\"}},PB={},oE={};function MB(a){var u=a.optionHandlers;function p(d,v,w,k){a.defaults[d]=v,w&&(u[d]=k?function(O,R,$){$!=Qd&&w(O,R,$)}:w)}M(p,\"option\"),a.defineOption=p,a.Init=Qd,p(\"value\",\"\",function(d,v){return d.setValue(v)},!0),p(\"mode\",null,function(d,v){d.doc.modeOption=v,Yb(d)},!0),p(\"indentUnit\",2,Yb,!0),p(\"indentWithTabs\",!1),p(\"smartIndent\",!0),p(\"tabSize\",4,function(d){Ud(d),Rd(d),ni(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 O=w.length-1;O>=0;O--)Nc(d.doc,v,w[O],_e(w[O].line,w[O].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!=Qd&&d.refresh()}),p(\"specialCharPlaceholder\",cV,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){iA(d),jd(d)},!0),p(\"keyMap\",\"default\",function(d,v,w){var k=lm(v),O=w!=Qd&&lm(w);O&&O.detach&&O.detach(d,k),k.attach&&k.attach(d,O||null)}),p(\"extraKeys\",null),p(\"configureMouse\",null),p(\"lineWrapping\",!1,VB,!0),p(\"gutters\",[],function(d,v){d.display.gutterSpecs=Gb(v,d.options.lineNumbers),jd(d)},!0),p(\"fixedGutter\",!0,function(d,v){d.display.gutters.style.left=v?Lb(d.display)+\"px\":\"0\",d.refresh()},!0),p(\"coverGutterNextToScrollbar\",!1,function(d){return _c(d)},!0),p(\"scrollbarStyle\",\"native\",function(d){lD(d),_c(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=Gb(d.options.gutters,v),jd(d)},!0),p(\"firstLineNumber\",1,jd,!0),p(\"lineNumberFormatter\",function(d){return d},jd,!0),p(\"showCursorWhenSelecting\",!1,Pd,!0),p(\"resetSelectionOnContextMenu\",!0),p(\"lineWiseCopyCut\",!0),p(\"pasteLinesPerSelection\",!0),p(\"selectionsMayTouch\",!1),p(\"readOnly\",!1,function(d,v){v==\"nocursor\"&&(wc(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,$B),p(\"allowDropFileTypes\",null),p(\"cursorBlinkRate\",530),p(\"cursorScrollMargin\",0),p(\"cursorHeight\",1,Pd,!0),p(\"singleCursorHeightPerLine\",!0,Pd,!0),p(\"workTime\",100),p(\"workDelay\",100),p(\"flattenSpans\",!0,Ud,!0),p(\"addModeClass\",!1,Ud,!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,Ud,!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(MB,\"defineOptions\");function $B(a,u,p){var d=p&&p!=Qd;if(!u!=!d){var v=a.display.dragFunctions,w=u?Je:Mr;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($B,\"dragDropChanged\");function VB(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\"),Tb(a)),Fb(a),ni(a),Rd(a),setTimeout(function(){return _c(a)},100)}M(VB,\"wrappingChanged\");function tn(a,u){var p=this;if(!(this instanceof tn))return new tn(a,u);this.options=u=u?ve(u):{},ve(PB,u,!1);var d=u.value;typeof d==\"string\"?d=new Ei(d,u.mode,null,u.lineSeparator,u.direction):u.mode&&(d.modeOption=u.mode),this.doc=d;var v=new tn.inputStyles[u.inputStyle](this),w=this.display=new KV(a,d,v,u);w.wrapper.CodeMirror=this,iA(this),u.lineWrapping&&(this.display.wrapper.className+=\" CodeMirror-wrap\"),lD(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),BB(this),yB(),fu(this),this.curOp.forceUpdate=!0,yD(this,d),u.autofocus&&!C||this.hasFocus()?setTimeout(function(){p.hasFocus()&&!p.state.focused&&$b(p)},20):wc(this);for(var k in oE)oE.hasOwnProperty(k)&&oE[k](this,u[k],Qd);fD(this),u.finishInit&&u.finishInit(this);for(var O=0;O<oA.length;++O)oA[O](this);du(this),h&&u.lineWrapping&&getComputedStyle(w.lineDiv).textRendering==\"optimizelegibility\"&&(w.lineDiv.style.textRendering=\"auto\")}M(tn,\"CodeMirror\"),tn.defaults=PB,tn.optionHandlers=oE;function BB(a){var u=a.display;Je(u.scroller,\"mousedown\",Yn(a,eA)),c&&f<11?Je(u.scroller,\"dblclick\",Yn(a,function(R){if(!En(a,R)){var $=lu(a,R);if(!(!$||iE(a,R)||Ya(a.display,R))){fr(R);var W=a.findWordAt($);em(a.doc,W.anchor,W.head)}}})):Je(u.scroller,\"dblclick\",function(R){return En(a,R)||fr(R)}),Je(u.scroller,\"contextmenu\",function(R){return rA(a,R)}),Je(u.input.getField(),\"contextmenu\",function(R){u.scroller.contains(R.target)||rA(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\"),Je(u.scroller,\"touchstart\",function(R){if(!En(a,R)&&!w(R)&&!iE(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)}}),Je(u.scroller,\"touchmove\",function(){u.activeTouch&&(u.activeTouch.moved=!0)}),Je(u.scroller,\"touchend\",function(R){var $=u.activeTouch;if($&&!Ya(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()}),Je(u.scroller,\"touchcancel\",v),Je(u.scroller,\"scroll\",function(){u.scroller.clientHeight&&($d(a,u.scroller.scrollTop),cu(a,u.scroller.scrollLeft,!0),Ze(a,\"scroll\",a))}),Je(u.scroller,\"mousewheel\",function(R){return hD(a,R)}),Je(u.scroller,\"DOMMouseScroll\",function(R){return hD(a,R)}),Je(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)||(mB(a,R),Fs(R))},start:function(R){return vB(a,R)},drop:Yn(a,hB),leave:function(R){En(a,R)||BD(a)}};var O=u.input.getField();Je(O,\"keyup\",function(R){return KD.call(a,R)}),Je(O,\"keydown\",Yn(a,JD)),Je(O,\"keypress\",Yn(a,XD)),Je(O,\"focus\",function(R){return $b(a,R)}),Je(O,\"blur\",function(R){return wc(a,R)})}M(BB,\"registerEventHandlers\");var oA=[];tn.defineInitHook=function(a){return oA.push(a)};function Yd(a,u,p,d){var v=a.doc,w;p==null&&(p=\"add\"),p==\"smart\"&&(v.mode.indent?w=Dd(a,u).state:p=\"prev\");var k=a.options.tabSize,O=Ve(v,u),R=ue(O.text,null,k);O.stateAfter&&(O.stateAfter=null);var $=O.text.match(/^\\s*/)[0],W;if(!d&&!/\\S/.test(O.text))W=0,p=\"not\";else if(p==\"smart\"&&(W=v.mode.indent(w,O.text.slice($.length),O.text),W==Ce||W>150)){if(!d)return;p=\"prev\"}p==\"prev\"?u>v.first?W=ue(Ve(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 Nc(v,Q,_e(u,0),_e(u,$.length),\"+input\"),O.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);Zb(v,fe,new Rt(Ne,Ne));break}}}M(Yd,\"indentLine\");var Sa=null;function pm(a){Sa=a}M(pm,\"setLastCopied\");function aE(a,u,p,d,v){var w=a.doc;a.display.shift=!1,d||(d=w.sel);var k=+new Date-200,O=v==\"paste\"||a.state.pasteIncoming>k,R=Cd(u),$=null;if(O&&d.ranges.length>1)if(Sa&&Sa.text.join(`\n`)==u){if(d.ranges.length%Sa.text.length==0){$=[];for(var W=0;W<Sa.text.length;W++)$.push(w.splitLines(Sa.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&&!O?ye=_e(ye.line,Math.min(Ve(w,ye.line).text.length,ye.ch+st(R).length)):O&&Sa&&Sa.lineWise&&Sa.text.join(`\n`)==R.join(`\n`)&&(fe=ye=_e(fe.line,0)));var Ne={from:fe,to:ye,text:$?$[te%$.length]:R,origin:v||(O?\"paste\":a.state.cutIncoming>k?\"cut\":\"+input\")};kc(a.doc,Ne),Qn(a,\"inputRead\",a,Ne)}u&&!O&&sA(a,u),Sc(a),a.curOp.updateInput<2&&(a.curOp.updateInput=Q),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}M(aE,\"applyTextInput\");function aA(a,u){var p=a.clipboardData&&a.clipboardData.getData(\"Text\");if(p)return a.preventDefault(),!u.isReadOnly()&&!u.options.disableInput&&bi(u,function(){return aE(u,p,0,null,\"paste\")}),!0}M(aA,\"handlePaste\");function sA(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 O=0;O<w.electricChars.length;O++)if(u.indexOf(w.electricChars.charAt(O))>-1){k=Yd(a,v.head.line,\"smart\");break}}else w.electricInput&&w.electricInput.test(Ve(a.doc,v.head.line).text.slice(0,v.head.ch))&&(k=Yd(a,v.head.line,\"smart\"));k&&Qn(a,\"electricInput\",a,v.head.line)}}}M(sA,\"triggerElectric\");function lA(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(lA,\"copyableRanges\");function uA(a,u,p,d){a.setAttribute(\"autocorrect\",p?\"\":\"off\"),a.setAttribute(\"autocapitalize\",d?\"\":\"off\"),a.setAttribute(\"spellcheck\",!!u)}M(uA,\"disableBrowserMagic\");function cA(){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\"),uA(a),u}M(cA,\"hiddenTextarea\");function jB(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\"](lm(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:$r(function(d,v){var w=d.token?d:a.getMode(this.options,d);if(w.startState)throw new Error(\"Overlays may not be stateful.\");ao(this.state.overlays,{mode:w,modeSpec:d,opaque:v&&v.opaque,priority:v&&v.priority||0},function(k){return k.priority}),this.state.modeGen++,ni(this)}),removeOverlay:$r(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++,ni(this);return}}}),indentLine:$r(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)&&Yd(this,d,v,w)}),indentSelection:$r(function(d){for(var v=this.doc.sel.ranges,w=-1,k=0;k<v.length;k++){var O=v[k];if(O.empty())O.head.line>w&&(Yd(this,O.head.line,d,!0),w=O.head.line,k==this.doc.sel.primIndex&&Sc(this));else{var R=O.from(),$=O.to(),W=Math.max(w,R.line);w=Math.min(this.lastLine(),$.line-($.ch?0:1))+1;for(var Q=W;Q<w;++Q)Yd(this,Q,d);var te=this.doc.sel.ranges;R.ch==0&&v.length==te.length&&te[k].from().ch>0&&Zb(this.doc,k,new Rt(R,te[k].to()),He)}}}),getTokenAt:function(d,v){return TN(this,d,v)},getLineTokens:function(d,v){return TN(this,_e(d),v,!0)},getTokenTypeAt:function(d){d=Re(this.doc,d);var v=wN(this,Ve(this.doc,d.line)),w=0,k=(v.length-1)/2,O=d.ch,R;if(O==0)R=v[2];else for(;;){var $=w+k>>1;if(($?v[$*2-1]:0)>=O)k=$;else if(v[$*2+1]<O)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],O=this.getModeAt(d);if(typeof O[v]==\"string\")k[O[v]]&&w.push(k[O[v]]);else if(O[v])for(var R=0;R<O[v].length;R++){var $=k[O[v][R]];$&&w.push($)}else O.helperType&&k[O.helperType]?w.push(k[O.helperType]):k[O.name]&&w.push(k[O.name]);for(var W=0;W<k._global.length;W++){var Q=k._global[W];Q.pred(O,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),Dd(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(),qo(this,w,v||\"page\")},charCoords:function(d,v){return zv(this,Re(this.doc,d),v||\"page\")},coordsChar:function(d,v){return d=JN(this,d,v||\"page\"),Ab(this,d.left,d.top)},lineAtHeight:function(d,v){return d=JN(this,{top:d,left:0},v||\"page\").top,jo(this.doc,d+this.display.viewOffset)},heightAtLine:function(d,v,w){var k=!1,O;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),O=Ve(this.doc,d)}else O=d;return Hv(this,O,{top:0,left:0},v||\"page\",w||k).top+(k?this.doc.height-Qa(O):0)},defaultTextHeight:function(){return bc(this.display)},defaultCharWidth:function(){return Ec(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(d,v,w,k,O){var R=this.display;d=qo(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=\"\",O==\"right\"?(W=R.sizer.clientWidth-v.offsetWidth,v.style.right=\"0px\"):(O==\"left\"?W=0:O==\"middle\"&&(W=(R.sizer.clientWidth-v.offsetWidth)/2),v.style.left=W+\"px\"),w&&MV(this,{left:W,top:$,right:W+v.offsetWidth,bottom:$+v.offsetHeight})},triggerOnKeyDown:$r(JD),triggerOnKeyPress:$r(XD),triggerOnKeyUp:KD,triggerOnMouseDown:$r(eA),execCommand:function(d){if(um.hasOwnProperty(d))return um[d].call(null,this)},triggerElectric:$r(function(d){sA(this,d)}),findPosH:function(d,v,w,k){var O=1;v<0&&(O=-1,v=-v);for(var R=Re(this.doc,d),$=0;$<v&&(R=sE(this.doc,R,O,w,k),!R.hitSide);++$);return R},moveH:$r(function(d,v){var w=this;this.extendSelectionsBy(function(k){return w.display.shift||w.doc.extend||k.empty()?sE(w.doc,k.head,d,v,w.options.rtlMoveVisually):d<0?k.from():k.to()},nt)}),deleteH:$r(function(d,v){var w=this.doc.sel,k=this.doc;w.somethingSelected()?k.replaceSelection(\"\",null,\"+delete\"):Oc(this,function(O){var R=sE(k,O.head,d,v,!1);return d<0?{from:R,to:O.head}:{from:O.head,to:R}})}),findPosV:function(d,v,w,k){var O=1,R=k;v<0&&(O=-1,v=-v);for(var $=Re(this.doc,d),W=0;W<v;++W){var Q=qo(this,$,\"div\");if(R==null?R=Q.left:Q.left=R,$=fA(this,Q,O,w),$.hitSide)break}return $},moveV:$r(function(d,v){var w=this,k=this.doc,O=[],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=qo(w,W.head,\"div\");W.goalColumn!=null&&(Q.left=W.goalColumn),O.push(Q.left);var te=fA(w,Q,d,v);return v==\"page\"&&W==k.sel.primary()&&Bb(w,zv(w,te,\"div\").top-Q.top),te},nt),O.length)for(var $=0;$<k.sel.ranges.length;$++)k.sel.ranges[$].goalColumn=O[$]}),findWordAt:function(d){var v=this.doc,w=Ve(v,d.line).text,k=d.ch,O=d.ch;if(w){var R=this.getHelper(d,\"wordChars\");(d.sticky==\"before\"||O==w.length)&&k?--k:++O;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(;O<w.length&&W(w.charAt(O));)++O}return new Rt(_e(d.line,k),_e(d.line,O))},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:$r(function(d,v){Md(this,d,v)}),getScrollInfo:function(){var d=this.display.scroller;return{left:d.scrollLeft,top:d.scrollTop,height:d.scrollHeight-Ea(this)-this.display.barHeight,width:d.scrollWidth-Ea(this)-this.display.barWidth,clientHeight:xb(this),clientWidth:su(this)}},scrollIntoView:$r(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?$V(this,d):oD(this,d.from,d.to,d.margin)}),setSize:$r(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&&WN(this);var O=this.display.viewFrom;this.doc.iter(O,this.display.viewTo,function(R){if(R.widgets){for(var $=0;$<R.widgets.length;$++)if(R.widgets[$].noHScroll){$s(w,O,\"widget\");break}}++O}),this.curOp.forceUpdate=!0,Ze(this,\"refresh\",this)}),operation:function(d){return bi(this,d)},startOperation:function(){return fu(this)},endOperation:function(){return du(this)},refresh:$r(function(){var d=this.display.cachedTextHeight;ni(this),this.curOp.forceUpdate=!0,Rd(this),Md(this,this.doc.scrollLeft,this.doc.scrollTop),Hb(this.display),(d==null||Math.abs(d-bc(this.display))>.5||this.options.lineWrapping)&&Fb(this),Ze(this,\"refresh\",this)}),swapDoc:$r(function(d){var v=this.doc;return v.cm=null,this.state.selectingText&&this.state.selectingText(),yD(this,d),Rd(this),this.display.input.reset(),Md(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}},Mo(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(jB,\"addEditorMethods\");function sE(a,u,p,d,v){var w=u,k=p,O=Ve(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),O=Ve(a,Fe))}M($,\"findNextLine\");function W(Fe){var Oe;if(d==\"codepoint\"){var Me=O.text.charCodeAt(u.ch+(p>0?0:-1));if(isNaN(Me))Oe=null;else{var Ye=p>0?Me>=55296&&Me<56320:Me>=56320&&Me<57343;Oe=new _e(u.line,Math.max(0,Math.min(O.text.length,u.ch+p*(Ye?2:1))),-p)}}else v?Oe=TB(a.cm,O,u,p):Oe=nE(O,u,p);if(Oe==null)if(!Fe&&$())u=rE(v,a.cm,O,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=O.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=nm(a,u,w,k,!0);return Y(w,Ae)&&(Ae.hitSide=!0),Ae}M(sE,\"findPosH\");function fA(a,u,p,d){var v=a.doc,w=u.left,k;if(d==\"page\"){var O=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),R=Math.max(O-.5*bc(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 $;$=Ab(a,w,k),!!$.outside;){if(p<0?k<=0:k>=v.height){$.hitSide=!0;break}k+=p*5}return $}M(fA,\"findPosV\");var jt=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\");jt.prototype.init=function(a){var u=this,p=this,d=p.cm,v=p.div=a.lineDiv;v.contentEditable=!0,uA(v,d.options.spellcheck,d.options.autocorrect,d.options.autocapitalize);function w(O){for(var R=O.target;R;R=R.parentNode){if(R==v)return!0;if(/\\bCodeMirror-(?:line)?widget\\b/.test(R.className))break}return!1}M(w,\"belongsToInput\"),Je(v,\"paste\",function(O){!w(O)||En(d,O)||aA(O,d)||f<=11&&setTimeout(Yn(d,function(){return u.updateFromDOM()}),20)}),Je(v,\"compositionstart\",function(O){u.composing={data:O.data,done:!1}}),Je(v,\"compositionupdate\",function(O){u.composing||(u.composing={data:O.data,done:!1})}),Je(v,\"compositionend\",function(O){u.composing&&(O.data!=u.composing.data&&u.readFromDOMSoon(),u.composing.done=!0)}),Je(v,\"touchstart\",function(){return p.forceCompositionEnd()}),Je(v,\"input\",function(){u.composing||u.readFromDOMSoon()});function k(O){if(!(!w(O)||En(d,O))){if(d.somethingSelected())pm({lineWise:!1,text:d.getSelections()}),O.type==\"cut\"&&d.replaceSelection(\"\",null,\"cut\");else if(d.options.lineWiseCopyCut){var R=lA(d);pm({lineWise:!0,text:R.text}),O.type==\"cut\"&&d.operation(function(){d.setSelections(R.ranges,0,He),d.replaceSelection(\"\",null,\"cut\")})}else return;if(O.clipboardData){O.clipboardData.clearData();var $=Sa.text.join(`\n`);if(O.clipboardData.setData(\"Text\",$),O.clipboardData.getData(\"Text\")==$){O.preventDefault();return}}var W=cA(),Q=W.firstChild;d.display.lineSpace.insertBefore(W,d.display.lineSpace.firstChild),Q.value=Sa.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\"),Je(v,\"copy\",k),Je(v,\"cut\",k)},jt.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute(\"aria-label\",a):this.div.removeAttribute(\"aria-label\")},jt.prototype.prepareSelection=function(){var a=nD(this.cm,!1);return a.focus=J()==this.div,a},jt.prototype.showSelection=function(a,u){!a||!this.cm.display.view.length||((a.focus||u)&&this.showPrimarySelection(),this.showMultipleSelections(a))},jt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},jt.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=hm(u,a.anchorNode,a.anchorOffset),k=hm(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 O=u.display.view,R=d.line>=u.display.viewFrom&&dA(u,d)||{node:O[0].measure.map[2],offset:0},$=v.line<u.display.viewTo&&dA(u,v);if(!$){var W=O[O.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()}},jt.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)},jt.prototype.showMultipleSelections=function(a){z(this.cm.display.cursorDiv,a.cursors),z(this.cm.display.selectionDiv,a.selection)},jt.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},jt.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var u=a.getRangeAt(0).commonAncestorContainer;return ne(this.div,u)},jt.prototype.focus=function(){this.cm.options.readOnly!=\"nocursor\"&&((!this.selectionInEditor()||J()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},jt.prototype.blur=function(){this.div.blur()},jt.prototype.getField=function(){return this.div},jt.prototype.supportsTouch=function(){return!0},jt.prototype.receivedFocus=function(){var a=this,u=this;this.selectionInEditor()?setTimeout(function(){return a.pollSelection()},20):bi(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)},jt.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},jt.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&&UB(a.anchorNode)){this.cm.triggerOnKeyDown({type:\"keydown\",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var p=hm(u,a.anchorNode,a.anchorOffset),d=hm(u,a.focusNode,a.focusOffset);p&&d&&bi(u,function(){kr(u.doc,js(p,d),He),(p.bad||d.bad)&&(u.curOp.selectionChanged=!0)})}}},jt.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,Ve(a.doc,d.line-1).length)),v.ch==Ve(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,O;d.line==u.viewFrom||(w=uu(a,d.line))==0?(k=xt(u.view[0].line),O=u.view[0].node):(k=xt(u.view[w].line),O=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),!O)return!1;for(var Q=a.doc.splitLines(qB(a,O,W,k,$)),te=Bo(a.doc,_e(k,0),_e($,Ve(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 Ye=_e(k,ee),Ge=_e($,te.length?st(te).length-fe:0);if(Q.length>1||Q[0]||B(Ye,Ge))return Nc(a.doc,Q,Ye,Ge,\"+input\"),!0},jt.prototype.ensurePolled=function(){this.forceCompositionEnd()},jt.prototype.reset=function(){this.forceCompositionEnd()},jt.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},jt.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))},jt.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&bi(this.cm,function(){return ni(a.cm)})},jt.prototype.setUneditable=function(a){a.contentEditable=\"false\"},jt.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||Yn(this.cm,aE)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},jt.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!=\"nocursor\")},jt.prototype.onContextMenu=function(){},jt.prototype.resetPosition=function(){},jt.prototype.needsContentAttribute=!0;function dA(a,u){var p=kb(a,u.line);if(!p||p.hidden)return null;var d=Ve(a.doc,u.line),v=qN(p,d,u.line),w=Zr(d,a.doc.direction),k=\"left\";if(w){var O=fn(w,u.ch);k=O%2?\"right\":\"left\"}var R=zN(v.map,u.ch,k);return R.offset=R.collapse==\"right\"?R.end:R.start,R}M(dA,\"posToDOM\");function UB(a){for(var u=a;u;u=u.parentNode)if(/CodeMirror-gutter-wrapper/.test(u.className))return!0;return!1}M(UB,\"isInGutter\");function Ic(a,u){return u&&(a.bad=!0),a}M(Ic,\"badPos\");function qB(a,u,p,d,v){var w=\"\",k=!1,O=a.doc.lineSeparator(),R=!1;function $(ee){return function(fe){return fe.id==ee}}M($,\"recognizeMarker\");function W(){k&&(w+=O,R&&(w+=O),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(Bo(a.doc,Ne.from,Ne.to).join(O));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(qB,\"domTextBetween\");function hm(a,u,p){var d;if(u==a.display.lineDiv){if(d=a.display.lineDiv.childNodes[p],!d)return Ic(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 HB(w,u,p)}}M(hm,\"domToPos\");function HB(a,u,p){var d=a.text.firstChild,v=!1;if(!u||!ne(d,u))return Ic(_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 Ic(_e(xt(w),w.text.length),v)}var k=u.nodeType==3?u:null,O=u;for(!k&&u.childNodes.length==1&&u.firstChild.nodeType==3&&(k=u.firstChild,p&&(p=k.nodeValue.length));O.parentNode!=d;)O=O.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],Ye=0;Ye<Me.length;Ye+=3){var Ge=Me[Ye+2];if(Ge==Ne||Ge==Ae){var dt=xt(Oe<0?a.line:a.rest[Oe]),zt=Me[Ye]+Fe;return(Fe<0||Ge!=Ne)&&(zt=Me[Ye+(Fe?1:0)]),_e(dt,zt)}}}M(W,\"find\");var Q=W(k,O,p);if(Q)return Ic(Q,v);for(var te=O.nextSibling,ee=k?k.nodeValue.length-p:0;te;te=te.nextSibling){if(Q=W(te,te.firstChild,0),Q)return Ic(_e(Q.line,Q.ch-ee),v);ee+=te.textContent.length}for(var fe=O.previousSibling,ye=p;fe;fe=fe.previousSibling){if(Q=W(fe,fe.firstChild,-1),Q)return Ic(_e(Q.line,Q.ch+ye),v);ye+=fe.textContent.length}}M(HB,\"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\"),Je(v,\"input\",function(){c&&f>=9&&u.hasSelection&&(u.hasSelection=null),p.poll()}),Je(v,\"paste\",function(k){En(d,k)||aA(k,d)||(d.state.pasteIncoming=+new Date,p.fastPoll())});function w(k){if(!En(d,k)){if(d.somethingSelected())pm({lineWise:!1,text:d.getSelections()});else if(d.options.lineWiseCopyCut){var O=lA(d);pm({lineWise:!0,text:O.text}),k.type==\"cut\"?d.setSelections(O.ranges,null,He):(p.prevInput=\"\",v.value=O.text.join(`\n`),de(v))}else return;k.type==\"cut\"&&(d.state.cutIncoming=+new Date)}}M(w,\"prepareCopyCut\"),Je(v,\"cut\",w),Je(v,\"copy\",w),Je(a.scroller,\"paste\",function(k){if(!(Ya(a,k)||En(d,k))){if(!v.dispatchEvent){d.state.pasteIncoming=+new Date,p.focus();return}var O=new Event(\"paste\");O.clipboardData=k.clipboardData,v.dispatchEvent(O)}}),Je(a.lineSpace,\"selectstart\",function(k){Ya(a,k)||fr(k)}),Je(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\"})}}),Je(v,\"compositionend\",function(){p.composing&&(p.poll(),p.composing.range.clear(),p.composing=null)})},Nn.prototype.createField=function(a){this.wrapper=cA(),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=nD(a);if(a.options.moveInputWithCursor){var v=qo(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||Fv(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||S&&/[\\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,O=Math.min(d.length,v.length);k<O&&d.charCodeAt(k)==v.charCodeAt(k);)++k;return bi(u,function(){aE(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 O=p.options.resetSelectionOnContextMenu;O&&p.doc.sel.contains(w)==-1&&Yn(p,kr)(p.doc,js(w),He);var