UNPKG

@graphql-yoga/graphiql

Version:

This the GraphiQL used by GraphQL Yoga. This package is currently not published to npm and only contains the React component `GraphQLYoga`.

503 lines 1.37 MB
(function(va,qo){typeof exports=="object"&&typeof module<"u"?qo(exports):typeof define=="function"&&define.amd?define(["exports"],qo):(va=typeof globalThis<"u"?globalThis:va||self,qo(va.YogaGraphiQL={}))})(this,function(va){"use strict";var Zie=Object.defineProperty;var Jie=(va,qo,hf)=>qo in va?Zie(va,qo,{enumerable:!0,configurable:!0,writable:!0,value:hf}):va[qo]=hf;var nn=(va,qo,hf)=>Jie(va,typeof qo!="symbol"?qo+"":qo,hf);var HP,GP;function qo(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 hf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Mu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function eN(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var tE={exports:{}},Kh={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var tN;function tV(){if(tN)return Kh;tN=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,o){var l=null;if(o!==void 0&&(l=""+o),i.key!==void 0&&(l=""+i.key),"key"in i){o={};for(var c in i)c!=="key"&&(o[c]=i[c])}else o=i;return i=o.ref,{$$typeof:e,type:r,key:l,ref:i!==void 0?i:null,props:o}}return Kh.Fragment=t,Kh.jsx=n,Kh.jsxs=n,Kh}var nN;function nV(){return nN||(nN=1,tE.exports=tV()),tE.exports}var Y=nV(),nE={exports:{}},Kt={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var rN;function rV(){if(rN)return Kt;rN=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),E=Symbol.iterator;function b(Z){return Z===null||typeof Z!="object"?null:(Z=E&&Z[E]||Z["@@iterator"],typeof Z=="function"?Z:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,w={};function k(Z,he,se){this.props=Z,this.context=he,this.refs=w,this.updater=se||y}k.prototype.isReactComponent={},k.prototype.setState=function(Z,he){if(typeof Z!="object"&&typeof Z!="function"&&Z!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,Z,he,"setState")},k.prototype.forceUpdate=function(Z){this.updater.enqueueForceUpdate(this,Z,"forceUpdate")};function N(){}N.prototype=k.prototype;function A(Z,he,se){this.props=Z,this.context=he,this.refs=w,this.updater=se||y}var O=A.prototype=new N;O.constructor=A,x(O,k.prototype),O.isPureReactComponent=!0;var _=Array.isArray,M={H:null,A:null,T:null,S:null,V:null},j=Object.prototype.hasOwnProperty;function P(Z,he,se,pe,ce,me){return se=me.ref,{$$typeof:e,type:Z,key:he,ref:se!==void 0?se:null,props:me}}function F(Z,he){return P(Z.type,he,void 0,void 0,void 0,Z.props)}function V(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===e}function $(Z){var he={"=":"=0",":":"=2"};return"$"+Z.replace(/[=:]/g,function(se){return he[se]})}var K=/\/+/g;function ee(Z,he){return typeof Z=="object"&&Z!==null&&Z.key!=null?$(""+Z.key):he.toString(36)}function J(){}function W(Z){switch(Z.status){case"fulfilled":return Z.value;case"rejected":throw Z.reason;default:switch(typeof Z.status=="string"?Z.then(J,J):(Z.status="pending",Z.then(function(he){Z.status==="pending"&&(Z.status="fulfilled",Z.value=he)},function(he){Z.status==="pending"&&(Z.status="rejected",Z.reason=he)})),Z.status){case"fulfilled":return Z.value;case"rejected":throw Z.reason}}throw Z}function q(Z,he,se,pe,ce){var me=typeof Z;(me==="undefined"||me==="boolean")&&(Z=null);var Se=!1;if(Z===null)Se=!0;else switch(me){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(Z.$$typeof){case e:case t:Se=!0;break;case m:return Se=Z._init,q(Se(Z._payload),he,se,pe,ce)}}if(Se)return ce=ce(Z),Se=pe===""?"."+ee(Z,0):pe,_(ce)?(se="",Se!=null&&(se=Se.replace(K,"$&/")+"/"),q(ce,he,se,"",function(Ye){return Ye})):ce!=null&&(V(ce)&&(ce=F(ce,se+(ce.key==null||Z&&Z.key===ce.key?"":(""+ce.key).replace(K,"$&/")+"/")+Se)),he.push(ce)),1;Se=0;var je=pe===""?".":pe+":";if(_(Z))for(var Ge=0;Ge<Z.length;Ge++)pe=Z[Ge],me=je+ee(pe,Ge),Se+=q(pe,he,se,me,ce);else if(Ge=b(Z),typeof Ge=="function")for(Z=Ge.call(Z),Ge=0;!(pe=Z.next()).done;)pe=pe.value,me=je+ee(pe,Ge++),Se+=q(pe,he,se,me,ce);else if(me==="object"){if(typeof Z.then=="function")return q(W(Z),he,se,pe,ce);throw he=String(Z),Error("Objects are not valid as a React child (found: "+(he==="[object Object]"?"object with keys {"+Object.keys(Z).join(", ")+"}":he)+"). If you meant to render a collection of children, use an array instead.")}return Se}function te(Z,he,se){if(Z==null)return Z;var pe=[],ce=0;return q(Z,pe,"","",function(me){return he.call(se,me,ce++)}),pe}function re(Z){if(Z._status===-1){var he=Z._result;he=he(),he.then(function(se){(Z._status===0||Z._status===-1)&&(Z._status=1,Z._result=se)},function(se){(Z._status===0||Z._status===-1)&&(Z._status=2,Z._result=se)}),Z._status===-1&&(Z._status=0,Z._result=he)}if(Z._status===1)return Z._result.default;throw Z._result}var ae=typeof reportError=="function"?reportError:function(Z){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var he=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof Z=="object"&&Z!==null&&typeof Z.message=="string"?String(Z.message):String(Z),error:Z});if(!window.dispatchEvent(he))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",Z);return}console.error(Z)};function fe(){}return Kt.Children={map:te,forEach:function(Z,he,se){te(Z,function(){he.apply(this,arguments)},se)},count:function(Z){var he=0;return te(Z,function(){he++}),he},toArray:function(Z){return te(Z,function(he){return he})||[]},only:function(Z){if(!V(Z))throw Error("React.Children.only expected to receive a single React element child.");return Z}},Kt.Component=k,Kt.Fragment=n,Kt.Profiler=i,Kt.PureComponent=A,Kt.StrictMode=r,Kt.Suspense=p,Kt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,Kt.__COMPILER_RUNTIME={__proto__:null,c:function(Z){return M.H.useMemoCache(Z)}},Kt.cache=function(Z){return function(){return Z.apply(null,arguments)}},Kt.cloneElement=function(Z,he,se){if(Z==null)throw Error("The argument must be a React element, but you passed "+Z+".");var pe=x({},Z.props),ce=Z.key,me=void 0;if(he!=null)for(Se in he.ref!==void 0&&(me=void 0),he.key!==void 0&&(ce=""+he.key),he)!j.call(he,Se)||Se==="key"||Se==="__self"||Se==="__source"||Se==="ref"&&he.ref===void 0||(pe[Se]=he[Se]);var Se=arguments.length-2;if(Se===1)pe.children=se;else if(1<Se){for(var je=Array(Se),Ge=0;Ge<Se;Ge++)je[Ge]=arguments[Ge+2];pe.children=je}return P(Z.type,ce,void 0,void 0,me,pe)},Kt.createContext=function(Z){return Z={$$typeof:l,_currentValue:Z,_currentValue2:Z,_threadCount:0,Provider:null,Consumer:null},Z.Provider=Z,Z.Consumer={$$typeof:o,_context:Z},Z},Kt.createElement=function(Z,he,se){var pe,ce={},me=null;if(he!=null)for(pe in he.key!==void 0&&(me=""+he.key),he)j.call(he,pe)&&pe!=="key"&&pe!=="__self"&&pe!=="__source"&&(ce[pe]=he[pe]);var Se=arguments.length-2;if(Se===1)ce.children=se;else if(1<Se){for(var je=Array(Se),Ge=0;Ge<Se;Ge++)je[Ge]=arguments[Ge+2];ce.children=je}if(Z&&Z.defaultProps)for(pe in Se=Z.defaultProps,Se)ce[pe]===void 0&&(ce[pe]=Se[pe]);return P(Z,me,void 0,void 0,null,ce)},Kt.createRef=function(){return{current:null}},Kt.forwardRef=function(Z){return{$$typeof:c,render:Z}},Kt.isValidElement=V,Kt.lazy=function(Z){return{$$typeof:m,_payload:{_status:-1,_result:Z},_init:re}},Kt.memo=function(Z,he){return{$$typeof:d,type:Z,compare:he===void 0?null:he}},Kt.startTransition=function(Z){var he=M.T,se={};M.T=se;try{var pe=Z(),ce=M.S;ce!==null&&ce(se,pe),typeof pe=="object"&&pe!==null&&typeof pe.then=="function"&&pe.then(fe,ae)}catch(me){ae(me)}finally{M.T=he}},Kt.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},Kt.use=function(Z){return M.H.use(Z)},Kt.useActionState=function(Z,he,se){return M.H.useActionState(Z,he,se)},Kt.useCallback=function(Z,he){return M.H.useCallback(Z,he)},Kt.useContext=function(Z){return M.H.useContext(Z)},Kt.useDebugValue=function(){},Kt.useDeferredValue=function(Z,he){return M.H.useDeferredValue(Z,he)},Kt.useEffect=function(Z,he,se){var pe=M.H;if(typeof se=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return pe.useEffect(Z,he)},Kt.useId=function(){return M.H.useId()},Kt.useImperativeHandle=function(Z,he,se){return M.H.useImperativeHandle(Z,he,se)},Kt.useInsertionEffect=function(Z,he){return M.H.useInsertionEffect(Z,he)},Kt.useLayoutEffect=function(Z,he){return M.H.useLayoutEffect(Z,he)},Kt.useMemo=function(Z,he){return M.H.useMemo(Z,he)},Kt.useOptimistic=function(Z,he){return M.H.useOptimistic(Z,he)},Kt.useReducer=function(Z,he,se){return M.H.useReducer(Z,he,se)},Kt.useRef=function(Z){return M.H.useRef(Z)},Kt.useState=function(Z){return M.H.useState(Z)},Kt.useSyncExternalStore=function(Z,he,se){return M.H.useSyncExternalStore(Z,he,se)},Kt.useTransition=function(){return M.H.useTransition()},Kt.version="19.1.0",Kt}var iN;function Kv(){return iN||(iN=1,nE.exports=rV()),nE.exports}var L=Kv();const Ae=Mu(L),Xv=qo({__proto__:null,default:Ae},[L]);var rE={exports:{}},Xh={},iE={exports:{}},oE={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var oN;function iV(){return oN||(oN=1,function(e){function t(te,re){var ae=te.length;te.push(re);e:for(;0<ae;){var fe=ae-1>>>1,Z=te[fe];if(0<i(Z,re))te[fe]=re,te[ae]=Z,ae=fe;else break e}}function n(te){return te.length===0?null:te[0]}function r(te){if(te.length===0)return null;var re=te[0],ae=te.pop();if(ae!==re){te[0]=ae;e:for(var fe=0,Z=te.length,he=Z>>>1;fe<he;){var se=2*(fe+1)-1,pe=te[se],ce=se+1,me=te[ce];if(0>i(pe,ae))ce<Z&&0>i(me,pe)?(te[fe]=me,te[ce]=ae,fe=ce):(te[fe]=pe,te[se]=ae,fe=se);else if(ce<Z&&0>i(me,ae))te[fe]=me,te[ce]=ae,fe=ce;else break e}}return re}function i(te,re){var ae=te.sortIndex-re.sortIndex;return ae!==0?ae:te.id-re.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var p=[],d=[],m=1,E=null,b=3,y=!1,x=!1,w=!1,k=!1,N=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function _(te){for(var re=n(d);re!==null;){if(re.callback===null)r(d);else if(re.startTime<=te)r(d),re.sortIndex=re.expirationTime,t(p,re);else break;re=n(d)}}function M(te){if(w=!1,_(te),!x)if(n(p)!==null)x=!0,j||(j=!0,ee());else{var re=n(d);re!==null&&q(M,re.startTime-te)}}var j=!1,P=-1,F=5,V=-1;function $(){return k?!0:!(e.unstable_now()-V<F)}function K(){if(k=!1,j){var te=e.unstable_now();V=te;var re=!0;try{e:{x=!1,w&&(w=!1,A(P),P=-1),y=!0;var ae=b;try{t:{for(_(te),E=n(p);E!==null&&!(E.expirationTime>te&&$());){var fe=E.callback;if(typeof fe=="function"){E.callback=null,b=E.priorityLevel;var Z=fe(E.expirationTime<=te);if(te=e.unstable_now(),typeof Z=="function"){E.callback=Z,_(te),re=!0;break t}E===n(p)&&r(p),_(te)}else r(p);E=n(p)}if(E!==null)re=!0;else{var he=n(d);he!==null&&q(M,he.startTime-te),re=!1}}break e}finally{E=null,b=ae,y=!1}re=void 0}}finally{re?ee():j=!1}}}var ee;if(typeof O=="function")ee=function(){O(K)};else if(typeof MessageChannel<"u"){var J=new MessageChannel,W=J.port2;J.port1.onmessage=K,ee=function(){W.postMessage(null)}}else ee=function(){N(K,0)};function q(te,re){P=N(function(){te(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(te){te.callback=null},e.unstable_forceFrameRate=function(te){0>te||125<te?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<te?Math.floor(1e3/te):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(te){switch(b){case 1:case 2:case 3:var re=3;break;default:re=b}var ae=b;b=re;try{return te()}finally{b=ae}},e.unstable_requestPaint=function(){k=!0},e.unstable_runWithPriority=function(te,re){switch(te){case 1:case 2:case 3:case 4:case 5:break;default:te=3}var ae=b;b=te;try{return re()}finally{b=ae}},e.unstable_scheduleCallback=function(te,re,ae){var fe=e.unstable_now();switch(typeof ae=="object"&&ae!==null?(ae=ae.delay,ae=typeof ae=="number"&&0<ae?fe+ae:fe):ae=fe,te){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=ae+Z,te={id:m++,callback:re,priorityLevel:te,startTime:ae,expirationTime:Z,sortIndex:-1},ae>fe?(te.sortIndex=ae,t(d,te),n(p)===null&&te===n(d)&&(w?(A(P),P=-1):w=!0,q(M,ae-fe))):(te.sortIndex=Z,t(p,te),x||y||(x=!0,j||(j=!0,ee()))),te},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(te){var re=b;return function(){var ae=b;b=re;try{return te.apply(this,arguments)}finally{b=ae}}}}(oE)),oE}var aN;function oV(){return aN||(aN=1,iE.exports=iV()),iE.exports}var aE={exports:{}},Hi={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var sN;function aV(){if(sN)return Hi;sN=1;var e=Kv();function t(p){var d="https://react.dev/errors/"+p;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)d+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+p+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function o(p,d,m){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:E==null?null:""+E,children:p,containerInfo:d,implementation:m}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(p,d){if(p==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return Hi.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Hi.createPortal=function(p,d){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return o(p,d,null,m)},Hi.flushSync=function(p){var d=l.T,m=r.p;try{if(l.T=null,r.p=2,p)return p()}finally{l.T=d,r.p=m,r.d.f()}},Hi.preconnect=function(p,d){typeof p=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(p,d))},Hi.prefetchDNS=function(p){typeof p=="string"&&r.d.D(p)},Hi.preinit=function(p,d){if(typeof p=="string"&&d&&typeof d.as=="string"){var m=d.as,E=c(m,d.crossOrigin),b=typeof d.integrity=="string"?d.integrity:void 0,y=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;m==="style"?r.d.S(p,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:E,integrity:b,fetchPriority:y}):m==="script"&&r.d.X(p,{crossOrigin:E,integrity:b,fetchPriority:y,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},Hi.preinitModule=function(p,d){if(typeof p=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var m=c(d.as,d.crossOrigin);r.d.M(p,{crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&r.d.M(p)},Hi.preload=function(p,d){if(typeof p=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var m=d.as,E=c(m,d.crossOrigin);r.d.L(p,m,{crossOrigin:E,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},Hi.preloadModule=function(p,d){if(typeof p=="string")if(d){var m=c(d.as,d.crossOrigin);r.d.m(p,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(p)},Hi.requestFormReset=function(p){r.d.r(p)},Hi.unstable_batchedUpdates=function(p,d){return p(d)},Hi.useFormState=function(p,d,m){return l.H.useFormState(p,d,m)},Hi.useFormStatus=function(){return l.H.useHostTransitionStatus()},Hi.version="19.1.0",Hi}var lN;function uN(){if(lN)return aE.exports;lN=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),aE.exports=aV(),aE.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var cN;function sV(){if(cN)return Xh;cN=1;var e=oV(),t=Kv(),n=uN();function r(a){var u="https://react.dev/errors/"+a;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)u+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+a+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function o(a){var u=a,h=a;if(a.alternate)for(;u.return;)u=u.return;else{a=u;do u=a,(u.flags&4098)!==0&&(h=u.return),a=u.return;while(a)}return u.tag===3?h:null}function l(a){if(a.tag===13){var u=a.memoizedState;if(u===null&&(a=a.alternate,a!==null&&(u=a.memoizedState)),u!==null)return u.dehydrated}return null}function c(a){if(o(a)!==a)throw Error(r(188))}function p(a){var u=a.alternate;if(!u){if(u=o(a),u===null)throw Error(r(188));return u!==a?null:a}for(var h=a,S=u;;){var C=h.return;if(C===null)break;var R=C.alternate;if(R===null){if(S=C.return,S!==null){h=S;continue}break}if(C.child===R.child){for(R=C.child;R;){if(R===h)return c(C),a;if(R===S)return c(C),u;R=R.sibling}throw Error(r(188))}if(h.return!==S.return)h=C,S=R;else{for(var G=!1,ne=C.child;ne;){if(ne===h){G=!0,h=C,S=R;break}if(ne===S){G=!0,S=C,h=R;break}ne=ne.sibling}if(!G){for(ne=R.child;ne;){if(ne===h){G=!0,h=R,S=C;break}if(ne===S){G=!0,S=R,h=C;break}ne=ne.sibling}if(!G)throw Error(r(189))}}if(h.alternate!==S)throw Error(r(190))}if(h.tag!==3)throw Error(r(188));return h.stateNode.current===h?a:u}function d(a){var u=a.tag;if(u===5||u===26||u===27||u===6)return a;for(a=a.child;a!==null;){if(u=d(a),u!==null)return u;a=a.sibling}return null}var m=Object.assign,E=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),N=Symbol.for("react.provider"),A=Symbol.for("react.consumer"),O=Symbol.for("react.context"),_=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),$=Symbol.for("react.memo_cache_sentinel"),K=Symbol.iterator;function ee(a){return a===null||typeof a!="object"?null:(a=K&&a[K]||a["@@iterator"],typeof a=="function"?a:null)}var J=Symbol.for("react.client.reference");function W(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===J?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case x:return"Fragment";case k:return"Profiler";case w:return"StrictMode";case M:return"Suspense";case j:return"SuspenseList";case V:return"Activity"}if(typeof a=="object")switch(a.$$typeof){case y:return"Portal";case O:return(a.displayName||"Context")+".Provider";case A:return(a._context.displayName||"Context")+".Consumer";case _:var u=a.render;return a=a.displayName,a||(a=u.displayName||u.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case P:return u=a.displayName||null,u!==null?u:W(a.type)||"Memo";case F:u=a._payload,a=a._init;try{return W(a(u))}catch{}}return null}var q=Array.isArray,te=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},fe=[],Z=-1;function he(a){return{current:a}}function se(a){0>Z||(a.current=fe[Z],fe[Z]=null,Z--)}function pe(a,u){Z++,fe[Z]=a.current,a.current=u}var ce=he(null),me=he(null),Se=he(null),je=he(null);function Ge(a,u){switch(pe(Se,u),pe(me,a),pe(ce,null),u.nodeType){case 9:case 11:a=(a=u.documentElement)&&(a=a.namespaceURI)?Oj(a):0;break;default:if(a=u.tagName,u=u.namespaceURI)u=Oj(u),a=Dj(u,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}se(ce),pe(ce,a)}function Ye(){se(ce),se(me),se(Se)}function Ot(a){a.memoizedState!==null&&pe(je,a);var u=ce.current,h=Dj(u,a.type);u!==h&&(pe(me,a),pe(ce,h))}function gt(a){me.current===a&&(se(ce),se(me)),je.current===a&&(se(je),Hv._currentValue=ae)}var ot=Object.prototype.hasOwnProperty,Oe=e.unstable_scheduleCallback,ye=e.unstable_cancelCallback,Le=e.unstable_shouldYield,be=e.unstable_requestPaint,oe=e.unstable_now,Fe=e.unstable_getCurrentPriorityLevel,Je=e.unstable_ImmediatePriority,ct=e.unstable_UserBlockingPriority,We=e.unstable_NormalPriority,xe=e.unstable_LowPriority,$e=e.unstable_IdlePriority,nt=e.log,ht=e.unstable_setDisableYieldValue,Dt=null,jt=null;function dt(a){if(typeof nt=="function"&&ht(a),jt&&typeof jt.setStrictMode=="function")try{jt.setStrictMode(Dt,a)}catch{}}var Et=Math.clz32?Math.clz32:Vt,pt=Math.log,Wt=Math.LN2;function Vt(a){return a>>>=0,a===0?32:31-(pt(a)/Wt|0)|0}var Jt=256,at=4194304;function Bn(a){var u=a&42;if(u!==0)return u;switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function yn(a,u,h){var S=a.pendingLanes;if(S===0)return 0;var C=0,R=a.suspendedLanes,G=a.pingedLanes;a=a.warmLanes;var ne=S&134217727;return ne!==0?(S=ne&~R,S!==0?C=Bn(S):(G&=ne,G!==0?C=Bn(G):h||(h=ne&~a,h!==0&&(C=Bn(h))))):(ne=S&~R,ne!==0?C=Bn(ne):G!==0?C=Bn(G):h||(h=S&~a,h!==0&&(C=Bn(h)))),C===0?0:u!==0&&u!==C&&(u&R)===0&&(R=C&-C,h=u&-u,R>=h||R===32&&(h&4194048)!==0)?u:C}function mt(a,u){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&u)===0}function bn(a,u){switch(a){case 1:case 2:case 4:case 8:case 64:return u+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return u+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function pi(){var a=Jt;return Jt<<=1,(Jt&4194048)===0&&(Jt=256),a}function an(){var a=at;return at<<=1,(at&62914560)===0&&(at=4194304),a}function Lr(a){for(var u=[],h=0;31>h;h++)u.push(a);return u}function On(a,u){a.pendingLanes|=u,u!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function Zi(a,u,h,S,C,R){var G=a.pendingLanes;a.pendingLanes=h,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=h,a.entangledLanes&=h,a.errorRecoveryDisabledLanes&=h,a.shellSuspendCounter=0;var ne=a.entanglements,de=a.expirationTimes,_e=a.hiddenUpdates;for(h=G&~h;0<h;){var qe=31-Et(h),He=1<<qe;ne[qe]=0,de[qe]=-1;var De=_e[qe];if(De!==null)for(_e[qe]=null,qe=0;qe<De.length;qe++){var Re=De[qe];Re!==null&&(Re.lane&=-536870913)}h&=~He}S!==0&&wt(a,S,0),R!==0&&C===0&&a.tag!==0&&(a.suspendedLanes|=R&~(G&~u))}function wt(a,u,h){a.pendingLanes|=u,a.suspendedLanes&=~u;var S=31-Et(u);a.entangledLanes|=u,a.entanglements[S]=a.entanglements[S]|1073741824|h&4194090}function Bt(a,u){var h=a.entangledLanes|=u;for(a=a.entanglements;h;){var S=31-Et(h),C=1<<S;C&u|a[S]&u&&(a[S]|=u),h&=~C}}function cn(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=16;break;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:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function Rn(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function nr(){var a=re.p;return a!==0?a:(a=window.event,a===void 0?32:Qj(a.type))}function Ft(a,u){var h=re.p;try{return re.p=a,u()}finally{re.p=h}}var fn=Math.random().toString(36).slice(2),Gt="__reactFiber$"+fn,En="__reactProps$"+fn,Fi="__reactContainer$"+fn,Jo="__reactEvents$"+fn,ea="__reactListeners$"+fn,Oo="__reactHandles$"+fn,Tr="__reactResources$"+fn,$n="__reactMarker$"+fn;function Ir(a){delete a[Gt],delete a[En],delete a[Jo],delete a[ea],delete a[Oo]}function Pi(a){var u=a[Gt];if(u)return u;for(var h=a.parentNode;h;){if(u=h[Fi]||h[Gt]){if(h=u.alternate,u.child!==null||h!==null&&h.child!==null)for(a=Lj(a);a!==null;){if(h=a[Gt])return h;a=Lj(a)}return u}a=h,h=a.parentNode}return null}function zr(a){if(a=a[Gt]||a[Fi]){var u=a.tag;if(u===5||u===6||u===13||u===26||u===27||u===3)return a}return null}function Do(a){var u=a.tag;if(u===5||u===26||u===27||u===6)return a.stateNode;throw Error(r(33))}function ho(a){var u=a[Tr];return u||(u=a[Tr]={hoistableStyles:new Map,hoistableScripts:new Map}),u}function Mn(a){a[$n]=!0}var Ji=new Set,ji={};function mo(a,u){ko(a,u),ko(a+"Capture",u)}function ko(a,u){for(ji[a]=u,a=0;a<u.length;a++)Ji.add(u[a])}var rr=RegExp("^[: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]*$"),ft={},go={};function Kl(a){return ot.call(go,a)?!0:ot.call(ft,a)?!1:rr.test(a)?go[a]=!0:(ft[a]=!0,!1)}function Hr(a,u,h){if(Kl(u))if(h===null)a.removeAttribute(u);else{switch(typeof h){case"undefined":case"function":case"symbol":a.removeAttribute(u);return;case"boolean":var S=u.toLowerCase().slice(0,5);if(S!=="data-"&&S!=="aria-"){a.removeAttribute(u);return}}a.setAttribute(u,""+h)}}function sn(a,u,h){if(h===null)a.removeAttribute(u);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(u);return}a.setAttribute(u,""+h)}}function Fr(a,u,h,S){if(S===null)a.removeAttribute(h);else{switch(typeof S){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(h);return}a.setAttributeNS(u,h,""+S)}}var ta,rl;function ze(a){if(ta===void 0)try{throw Error()}catch(h){var u=h.stack.trim().match(/\n( *(at )?)/);ta=u&&u[1]||"",rl=-1<h.stack.indexOf(`
    at`)?" (<anonymous>)":-1<h.stack.indexOf("@")?"@unknown:0:0":""}return`
`+ta+a+rl}var Q=!1;function ue(a,u){if(!a||Q)return"";Q=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var S={DetermineComponentFrameRoot:function(){try{if(u){var He=function(){throw Error()};if(Object.defineProperty(He.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(He,[])}catch(Re){var De=Re}Reflect.construct(a,[],He)}else{try{He.call()}catch(Re){De=Re}a.call(He.prototype)}}else{try{throw Error()}catch(Re){De=Re}(He=a())&&typeof He.catch=="function"&&He.catch(function(){})}}catch(Re){if(Re&&De&&typeof Re.stack=="string")return[Re.stack,De.stack]}return[null,null]}};S.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var C=Object.getOwnPropertyDescriptor(S.DetermineComponentFrameRoot,"name");C&&C.configurable&&Object.defineProperty(S.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var R=S.DetermineComponentFrameRoot(),G=R[0],ne=R[1];if(G&&ne){var de=G.split(`
`),_e=ne.split(`
`);for(C=S=0;S<de.length&&!de[S].includes("DetermineComponentFrameRoot");)S++;for(;C<_e.length&&!_e[C].includes("DetermineComponentFrameRoot");)C++;if(S===de.length||C===_e.length)for(S=de.length-1,C=_e.length-1;1<=S&&0<=C&&de[S]!==_e[C];)C--;for(;1<=S&&0<=C;S--,C--)if(de[S]!==_e[C]){if(S!==1||C!==1)do if(S--,C--,0>C||de[S]!==_e[C]){var qe=`
`+de[S].replace(" at new "," at ");return a.displayName&&qe.includes("<anonymous>")&&(qe=qe.replace("<anonymous>",a.displayName)),qe}while(1<=S&&0<=C);break}}}finally{Q=!1,Error.prepareStackTrace=h}return(h=a?a.displayName||a.name:"")?ze(h):""}function Ie(a){switch(a.tag){case 26:case 27:case 5:return ze(a.type);case 16:return ze("Lazy");case 13:return ze("Suspense");case 19:return ze("SuspenseList");case 0:case 15:return ue(a.type,!1);case 11:return ue(a.type.render,!1);case 1:return ue(a.type,!0);case 31:return ze("Activity");default:return""}}function Qe(a){try{var u="";do u+=Ie(a),a=a.return;while(a);return u}catch(h){return`
Error generating stack: `+h.message+`
`+h.stack}}function St(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function en(a){var u=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(u==="checkbox"||u==="radio")}function st(a){var u=en(a)?"checked":"value",h=Object.getOwnPropertyDescriptor(a.constructor.prototype,u),S=""+a[u];if(!a.hasOwnProperty(u)&&typeof h<"u"&&typeof h.get=="function"&&typeof h.set=="function"){var C=h.get,R=h.set;return Object.defineProperty(a,u,{configurable:!0,get:function(){return C.call(this)},set:function(G){S=""+G,R.call(this,G)}}),Object.defineProperty(a,u,{enumerable:h.enumerable}),{getValue:function(){return S},setValue:function(G){S=""+G},stopTracking:function(){a._valueTracker=null,delete a[u]}}}}function Nr(a){a._valueTracker||(a._valueTracker=st(a))}function Vi(a){if(!a)return!1;var u=a._valueTracker;if(!u)return!0;var h=u.getValue(),S="";return a&&(S=en(a)?a.checked?"true":"false":a.value),a=S,a!==h?(u.setValue(a),!0):!1}function Ss(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var Ra=/[\n"\\]/g;function eo(a){return a.replace(Ra,function(u){return"\\"+u.charCodeAt(0).toString(16)+" "})}function rd(a,u,h,S,C,R,G,ne){a.name="",G!=null&&typeof G!="function"&&typeof G!="symbol"&&typeof G!="boolean"?a.type=G:a.removeAttribute("type"),u!=null?G==="number"?(u===0&&a.value===""||a.value!=u)&&(a.value=""+St(u)):a.value!==""+St(u)&&(a.value=""+St(u)):G!=="submit"&&G!=="reset"||a.removeAttribute("value"),u!=null?fc(a,G,St(u)):h!=null?fc(a,G,St(h)):S!=null&&a.removeAttribute("value"),C==null&&R!=null&&(a.defaultChecked=!!R),C!=null&&(a.checked=C&&typeof C!="function"&&typeof C!="symbol"),ne!=null&&typeof ne!="function"&&typeof ne!="symbol"&&typeof ne!="boolean"?a.name=""+St(ne):a.removeAttribute("name")}function Xl(a,u,h,S,C,R,G,ne){if(R!=null&&typeof R!="function"&&typeof R!="symbol"&&typeof R!="boolean"&&(a.type=R),u!=null||h!=null){if(!(R!=="submit"&&R!=="reset"||u!=null))return;h=h!=null?""+St(h):"",u=u!=null?""+St(u):h,ne||u===a.value||(a.value=u),a.defaultValue=u}S=S??C,S=typeof S!="function"&&typeof S!="symbol"&&!!S,a.checked=ne?a.checked:!!S,a.defaultChecked=!!S,G!=null&&typeof G!="function"&&typeof G!="symbol"&&typeof G!="boolean"&&(a.name=G)}function fc(a,u,h){u==="number"&&Ss(a.ownerDocument)===a||a.defaultValue===""+h||(a.defaultValue=""+h)}function il(a,u,h,S){if(a=a.options,u){u={};for(var C=0;C<h.length;C++)u["$"+h[C]]=!0;for(h=0;h<a.length;h++)C=u.hasOwnProperty("$"+a[h].value),a[h].selected!==C&&(a[h].selected=C),C&&S&&(a[h].defaultSelected=!0)}else{for(h=""+St(h),u=null,C=0;C<a.length;C++){if(a[C].value===h){a[C].selected=!0,S&&(a[C].defaultSelected=!0);return}u!==null||a[C].disabled||(u=a[C])}u!==null&&(u.selected=!0)}}function id(a,u,h){if(u!=null&&(u=""+St(u),u!==a.value&&(a.value=u),h==null)){a.defaultValue!==u&&(a.defaultValue=u);return}a.defaultValue=h!=null?""+St(h):""}function Dg(a,u,h,S){if(u==null){if(S!=null){if(h!=null)throw Error(r(92));if(q(S)){if(1<S.length)throw Error(r(93));S=S[0]}h=S}h==null&&(h=""),u=h}h=St(u),a.defaultValue=h,S=a.textContent,S===h&&S!==""&&S!==null&&(a.value=S)}function ol(a,u){if(u){var h=a.firstChild;if(h&&h===a.lastChild&&h.nodeType===3){h.nodeValue=u;return}}a.textContent=u}var kg=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Fp(a,u,h){var S=u.indexOf("--")===0;h==null||typeof h=="boolean"||h===""?S?a.setProperty(u,""):u==="float"?a.cssFloat="":a[u]="":S?a.setProperty(u,h):typeof h!="number"||h===0||kg.has(u)?u==="float"?a.cssFloat=h:a[u]=(""+h).trim():a[u]=h+"px"}function Rg(a,u,h){if(u!=null&&typeof u!="object")throw Error(r(62));if(a=a.style,h!=null){for(var S in h)!h.hasOwnProperty(S)||u!=null&&u.hasOwnProperty(S)||(S.indexOf("--")===0?a.setProperty(S,""):S==="float"?a.cssFloat="":a[S]="");for(var C in u)S=u[C],u.hasOwnProperty(C)&&h[C]!==S&&Fp(a,C,S)}else for(var R in u)u.hasOwnProperty(R)&&Fp(a,R,u[R])}function Pp(a){if(a.indexOf("-")===-1)return!1;switch(a){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 d1=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Ts=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function od(a){return Ts.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}var jp=null;function Zl(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var na=null,Jl=null;function Mg(a){var u=zr(a);if(u&&(a=u.stateNode)){var h=a[En]||null;e:switch(a=u.stateNode,u.type){case"input":if(rd(a,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name),u=h.name,h.type==="radio"&&u!=null){for(h=a;h.parentNode;)h=h.parentNode;for(h=h.querySelectorAll('input[name="'+eo(""+u)+'"][type="radio"]'),u=0;u<h.length;u++){var S=h[u];if(S!==a&&S.form===a.form){var C=S[En]||null;if(!C)throw Error(r(90));rd(S,C.value,C.defaultValue,C.defaultValue,C.checked,C.defaultChecked,C.type,C.name)}}for(u=0;u<h.length;u++)S=h[u],S.form===a.form&&Vi(S)}break e;case"textarea":id(a,h.value,h.defaultValue);break e;case"select":u=h.value,u!=null&&il(a,!!h.multiple,u,!1)}}}var Vp=!1;function Lg(a,u,h){if(Vp)return a(u,h);Vp=!0;try{var S=a(u);return S}finally{if(Vp=!1,(na!==null||Jl!==null)&&(L1(),na&&(u=na,a=Jl,Jl=na=null,Mg(u),a)))for(u=0;u<a.length;u++)Mg(a[u])}}function al(a,u){var h=a.stateNode;if(h===null)return null;var S=h[En]||null;if(S===null)return null;h=S[u];e:switch(u){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(S=!S.disabled)||(a=a.type,S=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!S;break e;default:a=!1}if(a)return null;if(h&&typeof h!="function")throw Error(r(231,u,typeof h));return h}var ra=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Up=!1;if(ra)try{var eu={};Object.defineProperty(eu,"passive",{get:function(){Up=!0}}),window.addEventListener("test",eu,eu),window.removeEventListener("test",eu,eu)}catch{Up=!1}var Ma=null,tu=null,sl=null;function ad(){if(sl)return sl;var a,u=tu,h=u.length,S,C="value"in Ma?Ma.value:Ma.textContent,R=C.length;for(a=0;a<h&&u[a]===C[a];a++);var G=h-a;for(S=1;S<=G&&u[h-S]===C[R-S];S++);return sl=C.slice(a,1<S?1-S:void 0)}function dc(a){var u=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&u===13&&(a=13)):a=u,a===10&&(a=13),32<=a||a===13?a:0}function pc(){return!0}function hc(){return!1}function Ui(a){function u(h,S,C,R,G){this._reactName=h,this._targetInst=C,this.type=S,this.nativeEvent=R,this.target=G,this.currentTarget=null;for(var ne in a)a.hasOwnProperty(ne)&&(h=a[ne],this[ne]=h?h(R):R[ne]);return this.isDefaultPrevented=(R.defaultPrevented!=null?R.defaultPrevented:R.returnValue===!1)?pc:hc,this.isPropagationStopped=hc,this}return m(u.prototype,{preventDefault:function(){this.defaultPrevented=!0;var h=this.nativeEvent;h&&(h.preventDefault?h.preventDefault():typeof h.returnValue!="unknown"&&(h.returnValue=!1),this.isDefaultPrevented=pc)},stopPropagation:function(){var h=this.nativeEvent;h&&(h.stopPropagation?h.stopPropagation():typeof h.cancelBubble!="unknown"&&(h.cancelBubble=!0),this.isPropagationStopped=pc)},persist:function(){},isPersistent:pc}),u}var xs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qi=Ui(xs),mc=m({},xs,{view:0,detail:0}),p1=Ui(mc),gc,sd,vo,nu=m({},mc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$p,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==vo&&(vo&&a.type==="mousemove"?(gc=a.screenX-vo.screenX,sd=a.screenY-vo.screenY):sd=gc=0,vo=a),gc)},movementY:function(a){return"movementY"in a?a.movementY:sd}}),ia=Ui(nu),ld=m({},nu,{dataTransfer:0}),qp=Ui(ld),vc=m({},mc,{relatedTarget:0}),Bp=Ui(vc),h1=m({},xs,{animationName:0,elapsedTime:0,pseudoElement:0}),p_=Ui(h1),h_=m({},xs,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),Ig=Ui(h_),Fg=m({},xs,{data:0}),Pg=Ui(Fg),m1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},g1={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"},v1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jg(a){var u=this.nativeEvent;return u.getModifierState?u.getModifierState(a):(a=v1[a])?!!u[a]:!1}function $p(){return jg}var Vg=m({},mc,{key:function(a){if(a.key){var u=m1[a.key]||a.key;if(u!=="Unidentified")return u}return a.type==="keypress"?(a=dc(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?g1[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$p,charCode:function(a){return a.type==="keypress"?dc(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?dc(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),ud=Ui(Vg),yc=m({},nu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ug=Ui(yc),y1=m({},mc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$p}),b1=Ui(y1),cd=m({},xs,{propertyName:0,elapsedTime:0,pseudoElement:0}),Pr=Ui(cd),E1=m({},nu,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),qg=Ui(E1),bc=m({},xs,{newState:0,oldState:0}),S1=Ui(bc),Bg=[9,13,27,32],zp=ra&&"CompositionEvent"in window,ll=null;ra&&"documentMode"in document&&(ll=document.documentMode);var $g=ra&&"TextEvent"in window&&!ll,zg=ra&&(!zp||ll&&8<ll&&11>=ll),Hg=" ",Hp=!1;function Gp(a,u){switch(a){case"keyup":return Bg.indexOf(u.keyCode)!==-1;case"keydown":return u.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gg(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var oa=!1;function La(a,u){switch(a){case"compositionend":return Gg(u);case"keypress":return u.which!==32?null:(Hp=!0,Hg);case"textInput":return a=u.data,a===Hg&&Hp?null:a;default:return null}}function fd(a,u){if(oa)return a==="compositionend"||!zp&&Gp(a,u)?(a=ad(),sl=tu=Ma=null,oa=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1<u.char.length)return u.char;if(u.which)return String.fromCharCode(u.which)}return null;case"compositionend":return zg&&u.locale!=="ko"?null:u.data;default:return null}}var Yp={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 Wp(a){var u=a&&a.nodeName&&a.nodeName.toLowerCase();return u==="input"?!!Yp[a.type]:u==="textarea"}function Ro(a,u,h,S){na?Jl?Jl.push(S):Jl=[S]:na=S,u=U1(u,"onChange"),0<u.length&&(h=new qi("onChange","change",null,h,S),a.push({event:h,listeners:u}))}var Mo=null,ul=null;function T1(a){wj(a,0)}function Ec(a){var u=Do(a);if(Vi(u))return a}function Yg(a,u){if(a==="change")return u}var Qp=!1;if(ra){var Sc;if(ra){var ws="oninput"in document;if(!ws){var Lo=document.createElement("div");Lo.setAttribute("oninput","return;"),ws=typeof Lo.oninput=="function"}Sc=ws}else Sc=!1;Qp=Sc&&(!document.documentMode||9<document.documentMode)}function Wg(){Mo&&(Mo.detachEvent("onpropertychange",Kp),ul=Mo=null)}function Kp(a){if(a.propertyName==="value"&&Ec(ul)){var u=[];Ro(u,ul,a,Zl(a)),Lg(T1,u)}}function x1(a,u,h){a==="focusin"?(Wg(),Mo=u,ul=h,Mo.attachEvent("onpropertychange",Kp)):a==="focusout"&&Wg()}function w1(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Ec(ul)}function C1(a,u){if(a==="click")return Ec(u)}function Qg(a,u){if(a==="input"||a==="change")return Ec(u)}function Kg(a,u){return a===u&&(a!==0||1/a===1/u)||a!==a&&u!==u}var Zr=typeof Object.is=="function"?Object.is:Kg;function ru(a,u){if(Zr(a,u))return!0;if(typeof a!="object"||a===null||typeof u!="object"||u===null)return!1;var h=Object.keys(a),S=Object.keys(u);if(h.length!==S.length)return!1;for(S=0;S<h.length;S++){var C=h[S];if(!ot.call(u,C)||!Zr(a[C],u[C]))return!1}return!0}function Xp(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function dd(a,u){var h=Xp(a);a=0;for(var S;h;){if(h.nodeType===3){if(S=a+h.textContent.length,a<=u&&S>=u)return{node:h,offset:u-a};a=S}e:{for(;h;){if(h.nextSibling){h=h.nextSibling;break e}h=h.parentNode}h=void 0}h=Xp(h)}}function Tc(a,u){return a&&u?a===u?!0:a&&a.nodeType===3?!1:u&&u.nodeType===3?Tc(a,u.parentNode):"contains"in a?a.contains(u):a.compareDocumentPosition?!!(a.compareDocumentPosition(u)&16):!1:!1}function Zp(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var u=Ss(a.document);u instanceof a.HTMLIFrameElement;){try{var h=typeof u.contentWindow.location.href=="string"}catch{h=!1}if(h)a=u.contentWindow;else break;u=Ss(a.document)}return u}function iu(a){var u=a&&a.nodeName&&a.nodeName.toLowerCase();return u&&(u==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||u==="textarea"||a.contentEditable==="true")}var Io=ra&&"documentMode"in document&&11>=document.documentMode,cl=null,xc=null,fl=null,pd=!1;function Jp(a,u,h){var S=h.window===h?h.document:h.nodeType===9?h:h.ownerDocument;pd||cl==null||cl!==Ss(S)||(S=cl,"selectionStart"in S&&iu(S)?S={start:S.selectionStart,end:S.selectionEnd}:(S=(S.ownerDocument&&S.ownerDocument.defaultView||window).getSelection(),S={anchorNode:S.anchorNode,anchorOffset:S.anchorOffset,focusNode:S.focusNode,focusOffset:S.focusOffset}),fl&&ru(fl,S)||(fl=S,S=U1(xc,"onSelect"),0<S.length&&(u=new qi("onSelect","select",null,u,h),a.push({event:u,listeners:S}),u.target=cl)))}function Ia(a,u){var h={};return h[a.toLowerCase()]=u.toLowerCase(),h["Webkit"+a]="webkit"+u,h["Moz"+a]="moz"+u,h}var ou={animationend:Ia("Animation","AnimationEnd"),animationiteration:Ia("Animation","AnimationIteration"),animationstart:Ia("Animation","AnimationStart"),transitionrun:Ia("Transition","TransitionRun"),transitionstart:Ia("Transition","TransitionStart"),transitioncancel:Ia("Transition","TransitionCancel"),transitionend:Ia("Transition","TransitionEnd")},eh={},Xg={};ra&&(Xg=document.createElement("div").style,"AnimationEvent"in window||(delete ou.animationend.animation,delete ou.animationiteration.animation,delete ou.animationstart.animation),"TransitionEvent"in window||delete ou.transitionend.transition);function yo(a){if(eh[a])return eh[a];if(!ou[a])return a;var u=ou[a],h;for(h in u)if(u.hasOwnProperty(h)&&h in Xg)return eh[a]=u[h];return a}var dl=yo("animationend"),pl=yo("animationiteration"),hd=yo("animationstart"),th=yo("transitionrun"),Zg=yo("transitionstart"),nh=yo("transitioncancel"),Cs=yo("transitionend"),_s=new Map,Jr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Jr.push("scrollEnd");function Gr(a,u){_s.set(a,u),mo(u,[a])}var Fa=new WeakMap;function xi(a,u){if(typeof a=="object"&&a!==null){var h=Fa.get(a);return h!==void 0?h:(u={value:a,source:u,stack:Qe(u)},Fa.set(a,u),u)}return{value:a,source:u,stack:Qe(u)}}var bo=[],hl=0,ml=0;function wc(){for(var a=hl,u=ml=hl=0;u<a;){var h=bo[u];bo[u++]=null;var S=bo[u];bo[u++]=null;var C=bo[u];bo[u++]=null;var R=bo[u];if(bo[u++]=null,S!==null&&C!==null){var G=S.pending;G===null?C.next=C:(C.next=G.next,G.next=C),S.pending=C}R!==0&&md(h,C,R)}}function au(a,u,h,S){bo[hl++]=a,bo[hl++]=u,bo[hl++]=h,bo[hl++]=S,ml|=S,a.lanes|=S,a=a.alternate,a!==null&&(a.lanes|=S)}function su(a,u,h,S){return au(a,u,h,S),Cc(a)}function lu(a,u){return au(a,null,null,u),Cc(a)}function md(a,u,h){a.lanes|=h;var S=a.alternate;S!==null&&(S.lanes|=h);for(var C=!1,R=a.return;R!==null;)R.childLanes|=h,S=R.alternate,S!==null&&(S.childLanes|=h),R.tag===22&&(a=R.stateNode,a===null||a._visibility&1||(C=!0)),a=R,R=R.return;return a.tag===3?(R=a.stateNode,C&&u!==null&&(C=31-Et(h),a=R.hiddenUpdates,S=a[C],S===null?a[C]=[u]:S.push(u),u.lane=h|536870912),R):null}function Cc(a){if(50<Pv)throw Pv=0,w_=null,Error(r(185));for(var u=a.return;u!==null;)a=u,u=a.return;return a.tag===3?a.stateNode:null}var Ns={};function rh(a,u,h,S){this.tag=a,this.key=h,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=u,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=S,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Yr(a,u,h,S){return new rh(a,u,h,S)}function uu(a){return a=a.prototype,!(!a||!a.isReactComponent)}function aa(a,u){var h=a.alternate;return h===null?(h=Yr(a.tag,u,a.key,a.mode),h.elementType=a.elementType,h.type=a.type,h.stateNode=a.stateNode,h.alternate=a,a.alternate=h):(h.pendingProps=u,h.type=a.type,h.flags=0,h.subtreeFlags=0,h.deletions=null),h.flags=a.flags&65011712,h.childLanes=a.childLanes,h.lanes=a.lanes,h.child=a.child,h.memoizedProps=a.memoizedProps,h.memoizedState=a.memoizedState,h.updateQueue=a.updateQueue,u=a.dependencies,h.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext},h.sibling=a.sibling,h.index=a.index,h.ref=a.ref,h.refCleanup=a.refCleanup,h}function _c(a,u){a.flags&=65011714;var h=a.alternate;return h===null?(a.childLanes=0,a.lanes=u,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=h.childLanes,a.lanes=h.lanes,a.child=h.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=h.memoizedProps,a.memoizedState=h.memoizedState,a.updateQueue=h.updateQueue,a.type=h.type,u=h.dependencies,a.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext}),a}function gd(a,u,h,S,C,R){var G=0;if(S=a,typeof a=="function")uu(a)&&(G=1);else if(typeof a=="string")G=Vie(a,h,ce.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case V:return a=Yr(31,h,u,C),a.elementType=V,a.lanes=R,a;case x:return gl(h.children,C,R,u);case w:G=8,C|=24;break;case k:return a=Yr(12,h,u,C|2),a.elementType=k,a.lanes=R,a;case M:return a=Yr(13,h,u,C),a.elementType=M,a.lanes=R,a;case j:return a=Yr(19,h,u,C),a.elementType=j,a.lanes=R,a;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case N:case O:G=10;break e;case A:G=9;break e;case _:G=11;break e;case P:G=14;break e;case F:G=16,S=null;break e}G=29,h=Error(r(130,a===null?"null":typeof a,"")),S=null}return u=Yr(G,h,u,C),u.elementType=a,u.type=S,u.lanes=R,u}function gl(a,u,h,S){return a=Yr(7,a,S,u),a.lanes=h,a}function ih(a,u,h){return a=Yr(6,a,null,u),a.lanes=h,a}function Nc(a,u,h){return u=Yr(4,a.children!==null?a.children:[],a.key,u),u.lanes=h,u.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},u}var As=[],Fo=0,Os=null,vd=0,wi=[],to=0,Po=null,sa=1,Ci="";function jo(a,u){As[Fo++]=vd,As[Fo++]=Os,Os=a,vd=u}function vl(a,u,h){wi[to++]=sa,wi[to++]=Ci,wi[to++]=Po,Po=a;var S=sa;a=Ci;var C=32-Et(S)-1;S&=~(1<<C),h+=1;var R=32-Et(u)+C;if(30<R){var G=C-C%5;R=(S&(1<<G)-1).toString(32),S>>=G,C-=G,sa=1<<32-Et(u)+C|h<<C|S,Ci=R+a}else sa=1<<R|h<<C|S,Ci=a}function cu(a){a.return!==null&&(jo(a,1),vl(a,1,0))}function Ds(a){for(;a===Os;)Os=As[--Fo],As[Fo]=null,vd=As[--Fo],As[Fo]=null;for(;a===Po;)Po=wi[--to],wi[to]=null,Ci=wi[--to],wi[to]=null,sa=wi[--to],wi[to]=null}var hi=null,pr=null,Sn=!1,fu=null,mi=!1,Pa=Error(r(519));function yl(a){var u=Error(r(418,""));throw Wr(xi(u,a)),Pa}function Jg(a){var u=a.stateNode,h=a.type,S=a.memoizedProps;switch(u[Gt]=a,u[En]=S,h){case"dialog":pn("cancel",u),pn("close",u);break;case"iframe":case"object":case"embed":pn("load",u);break;case"video":case"audio":for(h=0;h<Vv.length;h++)pn(Vv[h],u);break;case"source":pn("error",u);break;case"img":case"image":case"link":pn("error",u),pn("load",u);break;case"details":pn("toggle",u);break;case"input":pn("invalid",u),Xl(u,S.value,S.defaultValue,S.checked,S.defaultChecked,S.type,S.name,!0),Nr(u);break;case"select":pn("invalid",u);break;case"textarea":pn("invalid",u),Dg(u,S.value,S.defaultValue,S.children),Nr(u)}h=S.children,typeof h!="string"&&typeof h!="number"&&typeof h!="bigint"||u.textContent===""+h||S.suppressHydrationWarning===!0||Aj(u.textContent,h)?(S.popover!=null&&(pn("beforetoggle",u),pn("toggle",u)),S.onScroll!=null&&pn("scroll",u),S.onScrollEnd!=null&&pn("scrollend",u),S.onClick!=null&&(u.onclick=q1),u=!0):u=!1,u||yl(a)}function ev(a){for(hi=a.return;hi;)switch(hi.tag){case 5:case 13:mi=!1;return;case 27:case 3:mi=!0;return;default:hi=hi.return}}function Ac(a){if(a!==hi)return!1;if(!Sn)return ev(a),Sn=!0,!1;var u=a.tag,h;if((h=u!==3&&u!==27)&&((h=u===5)&&(h=a.type,h=!(h!=="form"&&h!=="button")||U_(a.type,a.memoizedProps)),h=!h),h&&pr&&yl(a),ev(a),u===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));e:{for(a=a.nextSibling,u=0;a;){if(a.nodeType===8)if(h=a.data,h==="/$"){if(u===0){pr=Us(a.nextSibling);break e}u--}else h!=="$"&&h!=="$!"&&h!=="$?"||u++;a=a.nextSibling}pr=null}}else u===27?(u=pr,lf(a.type)?(a=z_,z_=null,pr=a):pr=u):pr=hi?Us(a.stateNode.nextSibling):null;return!0}function Oc(){pr=hi=null,Sn=!1}function tv(){var a=fu;return a!==null&&(Uo===null?Uo=a:Uo.push.apply(Uo,a),fu=null),a}function Wr(a){fu===null?fu=[a]:fu.push(a)}var xr=he(null),hr=null,jn=null;function Eo(a,u,h){pe(xr,u._currentValue),u._currentValue=h}function ja(a){a._currentValue=xr.current,se(xr)}function Dc(a,u,h){for(;a!==null;){var S=a.alternate;if((a.childLanes&u)!==u?(a.childLanes|=u,S!==null&&(S.childLanes|=u)):S!==null&&(S.childLanes&u)!==u&&(S.childLanes|=u),a===h)break;a=a.return}}function oh(a,u,h,S){var C=a.child;for(C!==null&&(C.return=a);C!==null;){var R=C.dependencies;if(R!==null){var G=C.child;R=R.firstContext;e:for(;R!==null;){var ne=R;R=C;for(var de=0;de<u.length;de++)if(ne.context===u[de]){R.lanes|=h,ne=R.alternate,ne!==null&&(ne.lanes|=h),Dc(R.return,h,a),S||(G=null);break e}R=ne.next}}else if(C.tag===18){if(G=C.return,G===null)throw Error(r(341));G.lanes|=h,R=G.alternate,R!==null&&(R.lanes|=h),Dc(G,h,a),G=null}else G=C.child;if(G!==null)G.return=C;else for(G=C;G!==null;){if(G===a){G=null;break}if(C=G.sibling,C!==null){C.return=G.return,G=C;break}G=G.return}C=G}}function kc(a,u,h,S){a=null;for(var C=u,R=!1;C!==null;){if(!R){if((C.flags&524288)!==0)R=!0;else if((C.flags&262144)!==0)break}if(C.tag===10){var G=C.alternate;if(G===null)throw Error(r(387));if(G=G.memoizedProps,G!==null){var ne=C.type;Zr(C.pendingProps.value,G.value)||(a!==null?a.push(ne):a=[ne])}}else if(C===je.current){if(G=C.alternate,G===null)throw Error(r(387));G.memoizedState.memoizedState!==C.memoizedState.memoizedState&&(a!==null?a.push(Hv):a=[Hv])}C=C.return}a!==null&&oh(u,a,h,S),u.flags|=262144}function yd(a){for(a=a.firstContext;a!==null;){if(!Zr(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function Va(a){hr=a,jn=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function ei(a){return nv(hr,a)}function du(a,u){return hr===null&&Va(a),nv(a,u)}function nv(a,u){var h=u._currentValue;if(u={context:u,memoizedValue:h,next:null},jn===null){if(a===null)throw Error(r(308));jn=u,a.dependencies={lanes:0,firstContext:u},a.flags|=524288}else jn=jn.next=u;return h}var ah=typeof AbortController<"u"?AbortController:function(){var a=[],u=this.signal={aborted:!1,addEventListener:function(h,S){a.push(S)}};this.abort=function(){u.aborted=!0,a.forEach(function(h){return h()})}},sh=e.unstable_scheduleCallback,rv=e.unstable_NormalPriority,Ar={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Rc(){return{controller:new ah,data:new Map,refCount:0}}function pu(a){a.refCount--,a.refCount===0&&sh(rv,function(){a.controller.abort()})}var Ua=null,lh=0,ks=0,no=null;function iv(a,u){if(Ua===null){var h=Ua=[];lh=0,ks=k_(),no={status:"pending",value:void 0,then:function(S){h.push(S)}}}return lh++,u.then(ov,ov),u}function ov(){if(--lh===0&&Ua!==null){no!==null&&(no.status="fulfilled");var a=Ua;Ua=null,ks=0,no=null;for(var u=0;u<a.length;u++)(0,a[u])()}}function av(a,u){var h=[],S={status:"pending",value:null,reason:null,then:function(C){h.push(C)}};return a.then(function(){S.status="fulfilled",S.value=u;for(var C=0;C<h.length;C++)(0,h[C])(u)},function(C){for(S.status="rejected",S.reason=C,C=0;C<h.length;C++)(0,h[C])(void 0)}),S}var ro=te.S;te.S=function(a,u){typeof u=="object"&&u!==null&&typeof u.then=="function"&&iv(a,u),ro!==null&&ro(a,u)};var tn=he(null);function io(){var a=tn.current;return a!==null?a:ar.pooledCache}function Vo(a,u){u===null?pe(tn,tn.current):pe(tn,u.pool)}function qa(){var a=io();return a===null?null:{parent:Ar._currentValue,pool:a}}var hu=Error(r(460)),bd=Error(r(474)),Mc=Error(r(542)),uh={then:function(){}};function Ed(a){return a=a.status,a==="fulfilled"||a==="rejected"}function Rs(){}function ch(a,u,h){switch(h=a[h],h===void 0?a.push(u):h!==u&&(u.then(Rs,Rs),u=h),u.status){case"fulfilled":return u.value;case"rejected":throw a=u.reason,fh(a),a;default:if(typeof u.status=="string")u.then(Rs,Rs);else{if(a=ar,a!==null&&100<a.shellSuspendCounter)throw Error(r(482));a=u,a.status="pending",a.then(function(S){if(u.status==="pending"){var C=u;C.status="fulfilled",C.value=S}},function(S){if(u.status==="pending"){var C=u;C.status="rejected",C.reason=S}})}switch(u.status){case"fulfilled":return u.value;case"rejected":throw a=u.reason,fh(a),a}throw bl=u,hu}}var bl=null;function Ba(){if(bl===null)throw Error(r(459));var a=bl;return bl=null,a}function fh(a){if(a===hu||a===Mc)throw Error(r(483))}var $a=!1;function dh(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function mu(a,u){a=a.updateQueue,u.updateQueue===a&&(u.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function la(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function za(a,u,h){var S=a.updateQueue;if(S===null)return null;if(S=S.shared,(Vn&2)!==0){var C=S.pending;return C===null?u.next=u:(u.next=C.next,C.next=u),S.pending=u,u=Cc(a),md(a,null,h),u}return au(a,S,u,h),Cc(a)}function Lc(a,u,h){if(u=u.updateQueue,u!==null&&(u=u.shared,(h&4194048)!==0)){var S=u.lanes;S&=a.pendingLanes,h|=S,u.lanes=h,Bt(a,h)}}function Sd(a,u){var h=a.updateQueue,S=a.alternate;if(S!==null&&(S=S.updateQueue,h===S)){var C=null,R=null;if(h=h.firstBaseUpdate,h!==null){do{var G={lane:h.lane,tag:h.tag,payload:h.payload,callback:null,next:null};R===null?C=R=G:R=R.next=G,h=h.next}while(h!==null);R===null?C=R=u:R=R.next=u}else C=R=u;h={baseState:S.baseState,firstBaseUpdate:C,lastBaseUpdate:R,shared:S.shared,callbacks:S.callbacks},a.updateQueue=h;return}a=h.lastBaseUpdate,a===null?h.firstBaseUpdate=u:a.next=u,h.lastBaseUpdate=u}var ph=!1;function Ic(){if(ph){var a=no;if(a!==null)throw a}}function Ms(a,u,h,S){ph=!1;var C=a.updateQueue;$a=!1;var R=C.firstBaseUpdate,G=C.lastBaseUpdate,ne=C.shared.pending;if(ne!==null){C.shared.pending=null;var de=ne,_e=de.next;de.next=null,G===null?R=_e:G.next=_e,G=de;var qe=a.alternate;qe!==null&&(qe=qe.updateQueue,ne=qe.lastBaseUpdate,ne!==G&&(ne===null?qe.firstBaseUpdate=_e:ne.next=_e,qe.lastBaseUpdate=de))}if(R!==null){var He=C.baseState;G=0,qe=_e=de=null,ne=R;do{var De=ne.lane&-536870913,Re=De!==ne.lane;if(Re?(Cn&De)===De:(S&De)===De){De!==0&&De===ks&&(ph=!0),qe!==null&&(qe=qe.next={lane:0,tag:ne.tag,payload:ne.payload,callback:null,next:null});e:{var Ut=a,Rt=ne;De=u;var Wn=h;switch(Rt.tag){case 1:if(Ut=Rt.payload,typeof Ut=="function"){He=Ut.call(Wn,He,De);break e}He=Ut;break e;case 3:Ut.flags=Ut.flags&-65537|128;case 0:if(Ut=Rt.payload,De=typeof Ut=="function"?Ut.call(Wn,He,De):Ut,De==null)break e;He=m({},He,De);break e;case 2:$a=!0}}De=ne.callback,De!==null&&(a.flags|=64,Re&&(a.flags|=8192),Re=C.callbacks,Re===null?C.callbacks=[De]:Re.push(De))}else Re={lane:De,tag:ne.tag,payload:ne.payload,callback:ne.callback,next:null},qe===null?(_e=qe=Re,de=He):qe=qe.next=Re,G|=De;if(ne=ne.next,ne===null){if(ne=C.shared.pending,ne===null)break;Re=ne,ne=Re.next,Re.next=null,C.lastBaseUpdate=Re,C.shared.pending=null}}while(!0);qe===null&&(de=He),C.baseState=de,C.firstBaseUpdate=_e,C.lastBaseUpdate=qe,R===null&&(C.shared.lanes=0),rf|=G,a.lanes=G,a.memoizedState=He}}function hh(a,u){if(typeof a!="function")throw Error(r(191,a));a.call(u)}function sv(a,u){var h=a.callbacks;if(h!==null)for(a.callbacks=null,a=0;a<h.length;a++)hh(h[a],u)}var gu=he(null),Fc=he(0);function El(a,u){a=ku,pe(Fc,a),pe(gu,u),ku=a|u.baseLanes}function Pc(){pe(Fc,ku),pe(gu,gu.current)}function vu(){ku=Fc.current,se(gu),se(Fc)}var Ha=0,Ht=null,Dn=null,Or=null,jc=!1,mr=!1,ua=!1,Vc=0,yu=0,Sl=null,bu=0;function Kn(){throw Error(r(321))}function Td(a,u){if(u===null)return!1;for(var h=0;h<u.length&&h<a.length;h++)if(!Zr(a[h],u[h]))return!1;return!0}function xd(a,u,h,S,C,R){return Ha=R,Ht=u,u.memoizedState=null,u.updateQueue=null,u.lanes=0,te.H=a===null||a.memoizedState===null?Ch:D1,ua=!1,R=h(S,C),ua=!1,mr&&(R=Tl(u,h,S,C)),mh(a),R}function mh(a){te.H=Wc;var u=Dn!==null&&Dn.next!==null;if(Ha=0,Or=Dn=Ht=null,jc=!1,yu=0,Sl=null,u)throw Error(r(300));a===null||jr||(a=a.dependencies,a!==null&&yd(a)&&(jr=!0))}function Tl(a,u,h,S){Ht=a;var C=0;do{if(mr&&(Sl=null),yu=0,mr=!1,25<=C)throw Error(r(301));if(C+=1,Or=Dn=null,a.updateQueue!=null){var R=a.updateQueue;R.lastEffect=null,R.events=null,R.stores=null,R.memoCache!=null&&(R.memoCache.index=0)}te.H=xv,R=u(h,S)}while(mr);return R}function lv(){var a=te.H,u=a.useState()[0];return u=typeof u.then=="function"?Su(u):u,a=a.useState()[0],(Dn!==null?Dn.memoizedState:null)!==a&&(Ht.flags|=1024),u}function Eu(){var a=Vc!==0;return Vc=0,a}function wd(a,u,h){u.updateQueue=a.updateQueue,u.flags&=-2053,a.lanes&=~h}function xl(a){if(jc){for(a=a.memoizedState;a!==null;){var u=a.queue;u!==null&&(u.pending=null),a=a.next}jc=!1}Ha=0,Or=Dn=Ht=null,mr=!1,yu=Vc=0,Sl=null}function Bi(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Or===null?Ht.memoizedState=Or=a:Or=Or.next=a,Or}function zn(){if(Dn===null){var a=Ht.alternate;a=a!==null?a.memoizedState:null}else a=Dn.next;var u=Or===null?Ht.memoizedState:Or.next;if(u!==null)Or=u,Dn=a;else{if(a===null)throw Ht.alternate===null?Error(r(467)):Error(r(310));Dn=a,a={memoizedState:Dn.memoizedState,baseState:Dn.baseState,baseQueue:Dn.baseQueue,queue:Dn.queue,next:null},Or===null?Ht.memoizedState=Or=a:Or=Or.next=a}return Or}function Cd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Su(a){var u=yu;return yu+=1,Sl===null&&(Sl=[]),a=ch(Sl,a,u),u=Ht,(Or===null?u.memoizedState:Or.next)===null&&(u=u.alternate,te.H=u===null||u.memoizedState===null?Ch:D1),a}function Uc(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return Su(a);if(a.$$typeof===O)return ei(a)}throw Error(r(438,String(a)))}function wl(a){var u=null,h=Ht.updateQueue;if(h!==null&&(u=h.memoCache),u==null){var S=Ht.alternate;S!==null&&(S=S.updateQueue,S!==null&&(S=S.memoCache,S!=null&&(u={data:S.data.map(function(C){return C.slice()}),index:0})))}if(u==null&&(u={data:[],index:0}),h===null&&(h=Cd(),Ht.updateQueue=h),h.memoCache=u,h=u.data[u.index],h===void 0)for(h=u.data[u.index]=Array(a),S=0;S<a;S++)h[S]=$;return u.index++,h}function oo(a,u){return typeof u=="function"?u(a):u}function Ls(a){var u=zn();return Tu(u,Dn,a)}function Tu(a,u,h){var S=a.queue;if(S===null)throw Error(r(311));S.lastRenderedReducer=h;var C=a.baseQueue,R=S.pending;if(R!==null){if(C!==null){var G=C.next;C.next=R.next,R.next=G}u.baseQueue=C=R,S.pending=null}if(R=a.baseState,C===null)a.memoizedState=R;else{u=C.next;var ne=G=null,de=null,_e=u,qe=!1;do{var He=_e.lane&-536870913;if(He!==_e.lane?(Cn&He)===He:(Ha&He)===He){var De=_e.revertLane;if(De===0)de!==null&&(de=de.next={lane:0,revertLane:0,action:_e.action,hasEagerState:_e.hasEagerState,eagerState:_e.eagerState,next:null}),He===ks&&(qe=!0);else if((Ha&De)===De){_e=_e.next,De===ks&&(qe=!0);continue}else He={lane:0,revertLane:_e.revertLane,action:_e.action,hasEagerState:_e.hasEagerState,eagerState:_e.eagerState,next:null},de===null?(ne=de=He,G=R):de=de.next=He,Ht.lanes|=De,rf|=De;He=_e.action,ua&&h(R,He),R=_e.hasEagerState?_e.eagerState:h(R,He)}else De={lane:He,revertLane:_e.revertLane,action:_e.action,hasEagerState:_e.hasEagerState,eagerState:_e.eagerState,next:null},de===null?(ne=de=De,G=R):de=de.next=De,Ht.lanes|=He,rf|=He;_e=_e.next}while(_e!==null&&_e!==u);if(de===null?G=R:de.next=ne,!Zr(R,a.memoizedState)&&(jr=!0,qe&&(h=no,h!==null)))throw h;a.memoizedState=R,a.baseState=G,a.baseQueue=de,S.lastRenderedState=R}return C===null&&(S.lanes=0),[a.memoizedState,S.dispatch]}function _d(a){var u=zn(),h=u.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=a;var S=h.dispatch,C=h.pending,R=u.memoizedState;if(C!==null){h.pending=null;var G=C=C.next;do R=a(R,G.action),G=G.next;while(G!==C);Zr(R,u.memoizedState)||(jr=!0),u.memoizedState=R,u.baseQueue===null&&(u.baseState=R),h.lastRenderedState=R}return[R,S]}function uv(a,u,h){var S=Ht,C=zn(),R=Sn;if(R){if(h===void 0)throw Error(r(407));h=h()}else h=u();var G=!Zr((Dn||C).memoizedState,h);G&&(C.memoizedState=h,jr=!0),C=C.queue;var ne=Cl.bind(null,S,C,a);if(Fs(2048,8,ne,[a]),C.getSnapshot!==u||G||Or!==null&&Or.memoizedState.tag&1){if(S.flags|=2048,xu(9,ca(),Is.bind(null,S,C,h,u),null),ar===null)throw Error(r(349));R||(Ha&124)!==0||cv(S,u,h)}return h}function cv(a,u,h){a.flags|=16384,a={getSnapshot:u,value:h},u=Ht.updateQueue,u===null?(u=Cd(),Ht.updateQueue=u,u.stores=[a]):(h=u.stores,h===null?u.stores=[a]:h.push(a))}function Is(a,u,h,S){u.value=h,u.getSnapshot=S,qc(u)&&fv(a)}function Cl(a,u,h){return h(function(){qc(u)&&fv(a)})}function qc(a){var u=a.getSnapshot;a=a.value;try{var h=u();return!Zr(a,h)}catch{return!0}}function fv(a){var u=lu(a,2);u!==null&&ga(u,a,2)}function Nd(a){var u=Bi();if(typeof a=="function"){var h=a;if(a=h(),ua){dt(!0);try{h()}finally{dt(!1)}}}return u.memoizedState=u.baseState=a,u.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:oo,lastRenderedState:a},u}function dv(a,u,h,S){return a.baseState=h,Tu(a,Dn,typeof S=="function"?S:oo)}function _1(a,u,h,S,C){if(Yc(a))throw Error(r(485));if(a=u.action,a!==null){var R={payload:C,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(G){R.listeners.push(G)}};te.T!==null?h(!0):R.isTransition=!1,S(R),h=u.pending,h===null?(R.next=u.pending=R,N1(u,R)):(R.next=h.next,u.pending=h.next=R)}}function N1(a,u){var h=u.action,S=u.payload,C=a.state;if(u.isTransition){var R=te.T,G={};te.T=G;try{var ne=h(C,S),de=te.S;de!==null&&de(G,ne),_i(a,u,ne)}catch(_e){gh(a,u,_e)}finally{te.T=R}}else try{R=h(C,S),_i(a,u,R)}catch(_e){gh(a,u,_e)}}function _i(a,u,h){h!==null&&typeof h=="object"&&typeof h.then=="function"?h.then(function(S){pv(a,u,S)},function(S){return gh(a,u,S)}):pv(a,u,h)}function pv(a,u,h){u.status="fulfilled",u.value=h,hv(u),a.state=h,u=a.pending,u!==null&&(h=u.next,h===u?a.pending=null:(h=h.next,u.next=h,N1(a,h)))}function gh(a,u,h){var S=a.pending;if(a.pending=null,S!==null){S=S.next;do u.status="rejected",u.reason=h,hv(u),u=u.next;while(u!==S)}a.action=null}function hv(a){a=a.listeners;for(var u=0;u<a.length;u++)(0,a[u])()}function mv(a,u){return u}function vh(a,u){if(Sn){var h=ar.formState;if(h!==null){e:{var S=Ht;if(Sn){if(pr){t:{for(var C=pr,R=mi;C.nodeType!==8;){if(!R){C=null;break t}if(C=Us(C.nextSibling),C===null){C=null;break t}}R=C.data,C=R==="F!"||R==="F"?C:null}if(C){pr=Us(C.nextSibling),S=C.data==="F!";break e}}yl(S)}S=!1}S&&(u=h[0])}}return h=Bi(),h.memoizedState=h.baseState=u,S={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mv,lastRenderedState:u},h.queue=S,h=Th.bind(null,Ht,S),S.dispatch=h,S=Nd(!1),R=xh.bind(null,Ht,!1,S.queue),S=Bi(),C={state:u,dispatch:null,action:a,pending:null},S.queue=C,h=_1.bind(null,Ht,C,R,h),C.dispatch=h,S.memoizedState=a,[u,h,!1]}function yh(a){var u=zn();return gv(u,Dn,a)}function gv(a,u,h){if(u=Tu(a,u,mv)[0],a=Ls(oo)[0],typeof u=="object"&&u!==null&&typeof u.then=="function")try{var S=Su(u)}catch(G){throw G===hu?Mc:G}else S=u;u=zn();var C=u.queue,R=C.dispatch;return h!==u.memoizedState&&(Ht.flags|=2048,xu(9,ca(),A1.bind(null,C,h),null)),[S,R,a]}function A1(a,u){a.action=u}function vv(a){var u=zn(),h=Dn;if(h!==null)return gv(u,h,a);zn(),u=u.memoizedState,h=zn();var S=h.queue.dispatch;return h.memoizedState=a,[u,S,!1]}function xu(a,u,h,S){return a={tag:a,create:h,deps:S,inst:u,next:null},u=Ht.updateQueue,u===null&&(u=Cd(),Ht.updateQueue=u),h=u.lastEffect,h===null?u.lastEffect=a.next=a:(S=h.next,h.next=a,a.next=S,u.lastEffect=a),a}function ca(){return{destroy:void 0,resource:void 0}}function Bc(){return zn().memoizedState}function wu(a,u,h,S){var C=Bi();S=S===void 0?null:S,Ht.flags|=a,C.memoizedState=xu(1|u,ca(),h,S)}function Fs(a,u,h,S){var C=zn();S=S===void 0?null:S;var R=C.memoizedState.inst;Dn!==null&&S!==null&&Td(S,Dn.memoizedState.deps)?C.memoizedState=xu(u,R,h,S):(Ht.flags|=a,C.memoizedState=xu(1|u,R,h,S))}function Ga(a,u){wu(8390656,8,a,u)}function yv(a,u){Fs(2048,8,a,u)}function bv(a,u){return Fs(4,2,a,u)}function _l(a,u){return Fs(4,4,a,u)}function bh(a,u){if(typeof u=="function"){a=a();var h=u(a);return function(){typeof h=="function"?h():u(null)}}if(u!=null)return a=a(),u.current=a,function(){u.current=null}}function Eh(a,u,h){h=h!=null?h.concat([a]):null,Fs(4,4,bh.bind(null,u,a),h)}function Ad(){}function $c(a,u){var h=zn();u=u===void 0?null:u;var S=h.memoizedState;return u!==null&&Td(u,S[1])?S[0]:(h.memoizedState=[a,u],a)}function Nl(a,u){var h=zn();u=u===void 0?null:u;var S=h.memoizedState;if(u!==null&&Td(u,S[1]))return S[0];if(S=a(),ua){dt(!0);try{a()}finally{dt(!1)}}return h.memoizedState=[S,u],S}function zc(a,u,h){return h===void 0||(Ha&1073741824)!==0?a.memoizedState=u:(a.memoizedState=h,a=tj(),Ht.lanes|=a,rf|=a,h)}function Od(a,u,h,S){return Zr(h,u)?h:gu.current!==null?(a=zc(a,h,S),Zr(a,u)||(jr=!0),a):(Ha&42)===0?(jr=!0,a.memoizedState=h):(a=tj(),Ht.lanes|=a,rf|=a,u)}function Dd(a,u,h,S,C){var R=re.p;re.p=R!==0&&8>R?R:8;var G=te.T,ne={};te.T=ne,xh(a,!1,u,h);try{var de=C(),_e=te.S;if(_e!==null&&_e(ne,de),de!==null&&typeof de=="object"&&typeof de.then=="function"){var qe=av(de,S);_u(a,u,qe,ma(a))}else _u(a,u,S,ma(a))}catch(He){_u(a,u,{then:function(){},status:"rejected",reason:He},ma())}finally{re.p=R,te.T=G}}function O1(){}function Cu(a,u,h,S){if(a.tag!==5)throw Error(r(476));var C=Sh(a).queue;Dd(a,C,u,ae,h===null?O1:function(){return Ev(a),h(S)})}function Sh(a){var u=a.memoizedState;if(u!==null)return u;u={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:oo,lastRenderedState:ae},next:null};var h={};return u.next={memoizedState:h,baseState:h,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:oo,lastRenderedState:h},next:null},a.memoizedState=u,a=a.alternate,a!==null&&(a.memoizedState=u),u}function Ev(a){var u=Sh(a).next.queue;_u(a,u,{},ma())}function kd(){return ei(Hv)}function Hc(){return zn().memoizedState}function Sv(){return zn().memoizedState}function m_(a){for(var u=a.return;u!==null;){switch(u.tag){case 24:case 3:var h=ma();a=la(h);var S=za(u,a,h);S!==null&&(ga(S,u,h),Lc(S,u,h)),u={cache:Rc()},a.payload=u;return}u=u.return}}function Gc(a,u,h){var S=ma();h={lane:S,revertLane:0,action:h,hasEagerState:!1,eagerState:null,next:null},Yc(a)?wh(u,h):(h=su(a,u,h,S),h!==null&&(ga(h,a,S),Tv(h,u,S)))}function Th(a,u,h){var S=ma();_u(a,u,h,S)}function _u(a,u,h,S){var C={lane:S,revertLane:0,action:h,hasEagerState:!1,eagerState:null,next:null};if(Yc(a))wh(u,C);else{var R=a.alternate;if(a.lanes===0&&(R===null||R.lanes===0)&&(R=u.lastRenderedReducer,R!==null))try{var G=u.lastRenderedState,ne=R(G,h);if(C.hasEagerState=!0,C.eagerState=ne,Zr(ne,G))return au(a,u,C,0),ar===null&&wc(),!1}catch{}finally{}if(h=su(a,u,C,S),h!==null)return ga(h,a,S),Tv(h,u,S),!0}return!1}function xh(a,u,h,S){if(S={lane:2,revertLane:k_(),action:S,hasEagerState:!1,eagerState:null,next:null},Yc(a)){if(u)throw Error(r(479))}else u=su(a,h,S,2),u!==null&&ga(u,a,2)}function Yc(a){var u=a.alternate;return a===Ht||u!==null&&u===Ht}function wh(a,u){mr=jc=!0;var h=a.pending;h===null?u.next=u:(u.next=h.next,h.next=u),a.pending=u}function Tv(a,u,h){if((h&4194048)!==0){var S=u.lanes;S&=a.pendingLanes,h|=S,u.lanes=h,Bt(a,h)}}var Wc={readContext:ei,use:Uc,useCallback:Kn,useContext:Kn,useEffect:Kn,useImperativeHandle:Kn,useLayoutEffect:Kn,useInsertionEffect:Kn,useMemo:Kn,useReducer:Kn,useRef:Kn,useState:Kn,useDebugValue:Kn,useDeferredValue:Kn,useTransition:Kn,useSyncExternalStore:Kn,useId:Kn,useHostTransitionStatus:Kn,useFormState:Kn,useActionState:Kn,useOptimistic:Kn,useMemoCache:Kn,useCacheRefresh:Kn},Ch={readContext:ei,use:Uc,useCallback:function(a,u){return Bi().memoizedState=[a,u===void 0?null:u],a},useContext:ei,useEffect:Ga,useImperativeHandle:function(a,u,h){h=h!=null?h.concat([a]):null,wu(4194308,4,bh.bind(null,u,a),h)},useLayoutEffect:function(a,u){return wu(4194308,4,a,u)},useInsertionEffect:function(a,u){wu(4,2,a,u)},useMemo:function(a,u){var h=Bi();u=u===void 0?null:u;var S=a();if(ua){dt(!0);try{a()}finally{dt(!1)}}return h.memoizedState=[S,u],S},useReducer:function(a,u,h){var S=Bi();if(h!==void 0){var C=h(u);if(ua){dt(!0);try{h(u)}finally{dt(!1)}}}else C=u;return S.memoizedState=S.baseState=C,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:C},S.queue=a,a=a.dispatch=Gc.bind(null,Ht,a),[S.memoizedState,a]},useRef:function(a){var u=Bi();return a={current:a},u.memoizedState=a},useState:function(a){a=Nd(a);var u=a.queue,h=Th.bind(null,Ht,u);return u.dispatch=h,[a.memoizedState,h]},useDebugValue:Ad,useDeferredValue:function(a,u){var h=Bi();return zc(h,a,u)},useTransition:function(){var a=Nd(!1);return a=Dd.bind(null,Ht,a.queue,!0,!1),Bi().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,u,h){var S=Ht,C=Bi();if(Sn){if(h===void 0)throw Error(r(407));h=h()}else{if(h=u(),ar===null)throw Error(r(349));(Cn&124)!==0||cv(S,u,h)}C.memoizedState=h;var R={value:h,getSnapshot:u};return C.queue=R,Ga(Cl.bind(null,S,R,a),[a]),S.flags|=2048,xu(9,ca(),Is.bind(null,S,R,h,u),null),h},useId:function(){var a=Bi(),u=ar.identifierPrefix;if(Sn){var h=Ci,S=sa;h=(S&~(1<<32-Et(S)-1)).toString(32)+h,u="«"+u+"R"+h,h=Vc++,0<h&&(u+="H"+h.toString(32)),u+="»"}else h=bu++,u="«"+u+"r"+h.toString(32)+"»";return a.memoizedState=u},useHostTransitionStatus:kd,useFormState:vh,useActionState:vh,useOptimistic:function(a){var u=Bi();u.memoizedState=u.baseState=a;var h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return u.queue=h,u=xh.bind(null,Ht,!0,h),h.dispatch=u,[a,u]},useMemoCache:wl,useCacheRefresh:function(){return Bi().memoizedState=m_.bind(null,Ht)}},D1={readContext:ei,use:Uc,useCallback:$c,useContext:ei,useEffect:yv,useImperativeHandle:Eh,useInsertionEffect:bv,useLayoutEffect:_l,useMemo:Nl,useReducer:Ls,useRef:Bc,useState:function(){return Ls(oo)},useDebugValue:Ad,useDeferredValue:function(a,u){var h=zn();return Od(h,Dn.memoizedState,a,u)},useTransition:function(){var a=Ls(oo)[0],u=zn().memoizedState;return[typeof a=="boolean"?a:Su(a),u]},useSyncExternalStore:uv,useId:Hc,useHostTransitionStatus:kd,useFormState:yh,useActionState:yh,useOptimistic:function(a,u){var h=zn();return dv(h,Dn,a,u)},useMemoCache:wl,useCacheRefresh:Sv},xv={readContext:ei,use:Uc,useCallback:$c,useContext:ei,useEffect:yv,useImperativeHandle:Eh,useInsertionEffect:bv,useLayoutEffect:_l,useMemo:Nl,useReducer:_d,useRef:Bc,useState:function(){return _d(oo)},useDebugValue:Ad,useDeferredValue:function(a,u){var h=zn();return Dn===null?zc(h,a,u):Od(h,Dn.memoizedState,a,u)},useTransition:function(){var a=_d(oo)[0],u=zn().memoizedState;return[typeof a=="boolean"?a:Su(a),u]},useSyncExternalStore:uv,useId:Hc,useHostTransitionStatus:kd,useFormState:vv,useActionState:vv,useOptimistic:function(a,u){var h=zn();return Dn!==null?dv(h,Dn,a,u):(h.baseState=a,[a,h.queue.dispatch])},useMemoCache:wl,useCacheRefresh:Sv},Ya=null,Ps=0;function Rd(a){var u=Ps;return Ps+=1,Ya===null&&(Ya=[]),ch(Ya,a,u)}function Nu(a,u){u=u.props.ref,a.ref=u!==void 0?u:null}function Md(a,u){throw u.$$typeof===E?Error(r(525)):(a=Object.prototype.toString.call(u),Error(r(31,a==="[object Object]"?"object with keys {"+Object.keys(u).join(", ")+"}":a)))}function wv(a){var u=a._init;return u(a._payload)}function Cv(a){function u(Te,ve){if(a){var Ce=Te.deletions;Ce===null?(Te.deletions=[ve],Te.flags|=16):Ce.push(ve)}}function h(Te,ve){if(!a)return null;for(;ve!==null;)u(Te,ve),ve=ve.sibling;return null}function S(Te){for(var ve=new Map;Te!==null;)Te.key!==null?ve.set(Te.key,Te):ve.set(Te.index,Te),Te=Te.sibling;return ve}function C(Te,ve){return Te=aa(Te,ve),Te.index=0,Te.sibling=null,Te}function R(Te,ve,Ce){return Te.index=Ce,a?(Ce=Te.alternate,Ce!==null?(Ce=Ce.index,Ce<ve?(Te.flags|=67108866,ve):Ce):(Te.flags|=67108866,ve)):(Te.flags|=1048576,ve)}function G(Te){return a&&Te.alternate===null&&(Te.flags|=67108866),Te}function ne(Te,ve,Ce,Be){return ve===null||ve.tag!==6?(ve=ih(Ce,Te.mode,Be),ve.return=Te,ve):(ve=C(ve,Ce),ve.return=Te,ve)}function de(Te,ve,Ce,Be){var Tt=Ce.type;return Tt===x?qe(Te,ve,Ce.props.children,Be,Ce.key):ve!==null&&(ve.elementType===Tt||typeof Tt=="object"&&Tt!==null&&Tt.$$typeof===F&&wv(Tt)===ve.type)?(ve=C(ve,Ce.props),Nu(ve,Ce),ve.return=Te,ve):(ve=gd(Ce.type,Ce.key,Ce.props,null,Te.mode,Be),Nu(ve,Ce),ve.return=Te,ve)}function _e(Te,ve,Ce,Be){return ve===null||ve.tag!==4||ve.stateNode.containerInfo!==Ce.containerInfo||ve.stateNode.implementation!==Ce.implementation?(ve=Nc(Ce,Te.mode,Be),ve.return=Te,ve):(ve=C(ve,Ce.children||[]),ve.return=Te,ve)}function qe(Te,ve,Ce,Be,Tt){return ve===null||ve.tag!==7?(ve=gl(Ce,Te.mode,Be,Tt),ve.return=Te,ve):(ve=C(ve,Ce),ve.return=Te,ve)}function He(Te,ve,Ce){if(typeof ve=="string"&&ve!==""||typeof ve=="number"||typeof ve=="bigint")return ve=ih(""+ve,Te.mode,Ce),ve.return=Te,ve;if(typeof ve=="object"&&ve!==null){switch(ve.$$typeof){case b:return Ce=gd(ve.type,ve.key,ve.props,null,Te.mode,Ce),Nu(Ce,ve),Ce.return=Te,Ce;case y:return ve=Nc(ve,Te.mode,Ce),ve.return=Te,ve;case F:var Be=ve._init;return ve=Be(ve._payload),He(Te,ve,Ce)}if(q(ve)||ee(ve))return ve=gl(ve,Te.mode,Ce,null),ve.return=Te,ve;if(typeof ve.then=="function")return He(Te,Rd(ve),Ce);if(ve.$$typeof===O)return He(Te,du(Te,ve),Ce);Md(Te,ve)}return null}function De(Te,ve,Ce,Be){var Tt=ve!==null?ve.key:null;if(typeof Ce=="string"&&Ce!==""||typeof Ce=="number"||typeof Ce=="bigint")return Tt!==null?null:ne(Te,ve,""+Ce,Be);if(typeof Ce=="object"&&Ce!==null){switch(Ce.$$typeof){case b:return Ce.key===Tt?de(Te,ve,Ce,Be):null;case y:return Ce.key===Tt?_e(Te,ve,Ce,Be):null;case F:return Tt=Ce._init,Ce=Tt(Ce._payload),De(Te,ve,Ce,Be)}if(q(Ce)||ee(Ce))return Tt!==null?null:qe(Te,ve,Ce,Be,null);if(typeof Ce.then=="function")return De(Te,ve,Rd(Ce),Be);if(Ce.$$typeof===O)return De(Te,ve,du(Te,Ce),Be);Md(Te,Ce)}return null}function Re(Te,ve,Ce,Be,Tt){if(typeof Be=="string"&&Be!==""||typeof Be=="number"||typeof Be=="bigint")return Te=Te.get(Ce)||null,ne(ve,Te,""+Be,Tt);if(typeof Be=="object"&&Be!==null){switch(Be.$$typeof){case b:return Te=Te.get(Be.key===null?Ce:Be.key)||null,de(ve,Te,Be,Tt);case y:return Te=Te.get(Be.key===null?Ce:Be.key)||null,_e(ve,Te,Be,Tt);case F:var ln=Be._init;return Be=ln(Be._payload),Re(Te,ve,Ce,Be,Tt)}if(q(Be)||ee(Be))return Te=Te.get(Ce)||null,qe(ve,Te,Be,Tt,null);if(typeof Be.then=="function")return Re(Te,ve,Ce,Rd(Be),Tt);if(Be.$$typeof===O)return Re(Te,ve,Ce,du(ve,Be),Tt);Md(ve,Be)}return null}function Ut(Te,ve,Ce,Be){for(var Tt=null,ln=null,Nt=ve,Lt=ve=0,Ai=null;Nt!==null&&Lt<Ce.length;Lt++){Nt.index>Lt?(Ai=Nt,Nt=null):Ai=Nt.sibling;var kn=De(Te,Nt,Ce[Lt],Be);if(kn===null){Nt===null&&(Nt=Ai);break}a&&Nt&&kn.alternate===null&&u(Te,Nt),ve=R(kn,ve,Lt),ln===null?Tt=kn:ln.sibling=kn,ln=kn,Nt=Ai}if(Lt===Ce.length)return h(Te,Nt),Sn&&jo(Te,Lt),Tt;if(Nt===null){for(;Lt<Ce.length;Lt++)Nt=He(Te,Ce[Lt],Be),Nt!==null&&(ve=R(Nt,ve,Lt),ln===null?Tt=Nt:ln.sibling=Nt,ln=Nt);return Sn&&jo(Te,Lt),Tt}for(Nt=S(Nt);Lt<Ce.length;Lt++)Ai=Re(Nt,Te,Lt,Ce[Lt],Be),Ai!==null&&(a&&Ai.alternate!==null&&Nt.delete(Ai.key===null?Lt:Ai.key),ve=R(Ai,ve,Lt),ln===null?Tt=Ai:ln.sibling=Ai,ln=Ai);return a&&Nt.forEach(function(pf){return u(Te,pf)}),Sn&&jo(Te,Lt),Tt}function Rt(Te,ve,Ce,Be){if(Ce==null)throw Error(r(151));for(var Tt=null,ln=null,Nt=ve,Lt=ve=0,Ai=null,kn=Ce.next();Nt!==null&&!kn.done;Lt++,kn=Ce.next()){Nt.index>Lt?(Ai=Nt,Nt=null):Ai=Nt.sibling;var pf=De(Te,Nt,kn.value,Be);if(pf===null){Nt===null&&(Nt=Ai);break}a&&Nt&&pf.alternate===null&&u(Te,Nt),ve=R(pf,ve,Lt),ln===null?Tt=pf:ln.sibling=pf,ln=pf,Nt=Ai}if(kn.done)return h(Te,Nt),Sn&&jo(Te,Lt),Tt;if(Nt===null){for(;!kn.done;Lt++,kn=Ce.next())kn=He(Te,kn.value,Be),kn!==null&&(ve=R(kn,ve,Lt),ln===null?Tt=kn:ln.sibling=kn,ln=kn);return Sn&&jo(Te,Lt),Tt}for(Nt=S(Nt);!kn.done;Lt++,kn=Ce.next())kn=Re(Nt,Te,Lt,kn.value,Be),kn!==null&&(a&&kn.alternate!==null&&Nt.delete(kn.key===null?Lt:kn.key),ve=R(kn,ve,Lt),ln===null?Tt=kn:ln.sibling=kn,ln=kn);return a&&Nt.forEach(function(Xie){return u(Te,Xie)}),Sn&&jo(Te,Lt),Tt}function Wn(Te,ve,Ce,Be){if(typeof Ce=="object"&&Ce!==null&&Ce.type===x&&Ce.key===null&&(Ce=Ce.props.children),typeof Ce=="object"&&Ce!==null){switch(Ce.$$typeof){case b:e:{for(var Tt=Ce.key;ve!==null;){if(ve.key===Tt){if(Tt=Ce.type,Tt===x){if(ve.tag===7){h(Te,ve.sibling),Be=C(ve,Ce.props.children),Be.return=Te,Te=Be;break e}}else if(ve.elementType===Tt||typeof Tt=="object"&&Tt!==null&&Tt.$$typeof===F&&wv(Tt)===ve.type){h(Te,ve.sibling),Be=C(ve,Ce.props),Nu(Be,Ce),Be.return=Te,Te=Be;break e}h(Te,ve);break}else u(Te,ve);ve=ve.sibling}Ce.type===x?(Be=gl(Ce.props.children,Te.mode,Be,Ce.key),Be.return=Te,Te=Be):(Be=gd(Ce.type,Ce.key,Ce.props,null,Te.mode,Be),Nu(Be,Ce),Be.return=Te,Te=Be)}return G(Te);case y:e:{for(Tt=Ce.key;ve!==null;){if(ve.key===Tt)if(ve.tag===4&&ve.stateNode.containerInfo===Ce.containerInfo&&ve.stateNode.implementation===Ce.implementation){h(Te,ve.sibling),Be=C(ve,Ce.children||[]),Be.return=Te,Te=Be;break e}else{h(Te,ve);break}else u(Te,ve);ve=ve.sibling}Be=Nc(Ce,Te.mode,Be),Be.return=Te,Te=Be}return G(Te);case F:return Tt=Ce._init,Ce=Tt(Ce._payload),Wn(Te,ve,Ce,Be)}if(q(Ce))return Ut(Te,ve,Ce,Be);if(ee(Ce)){if(Tt=ee(Ce),typeof Tt!="function")throw Error(r(150));return Ce=Tt.call(Ce),Rt(Te,ve,Ce,Be)}if(typeof Ce.then=="function")return Wn(Te,ve,Rd(Ce),Be);if(Ce.$$typeof===O)return Wn(Te,ve,du(Te,Ce),Be);Md(Te,Ce)}return typeof Ce=="string"&&Ce!==""||typeof Ce=="number"||typeof Ce=="bigint"?(Ce=""+Ce,ve!==null&&ve.tag===6?(h(Te,ve.sibling),Be=C(ve,Ce),Be.return=Te,Te=Be):(h(Te,ve),Be=ih(Ce,Te.mode,Be),Be.return=Te,Te=Be),G(Te)):h(Te,ve)}return function(Te,ve,Ce,Be){try{Ps=0;var Tt=Wn(Te,ve,Ce,Be);return Ya=null,Tt}catch(Nt){if(Nt===hu||Nt===Mc)throw Nt;var ln=Yr(29,Nt,null,Te.mode);return ln.lanes=Be,ln.return=Te,ln}finally{}}}var Au=Cv(!0),_h=Cv(!1),So=he(null),fa=null;function Wa(a){var u=a.alternate;pe(Dr,Dr.current&1),pe(So,a),fa===null&&(u===null||gu.current!==null||u.memoizedState!==null)&&(fa=a)}function Ld(a){if(a.tag===22){if(pe(Dr,Dr.current),pe(So,a),fa===null){var u=a.alternate;u!==null&&u.memoizedState!==null&&(fa=a)}}else Qa()}function Qa(){pe(Dr,Dr.current),pe(So,So.current)}function Ka(a){se(So),fa===a&&(fa=null),se(Dr)}var Dr=he(0);function js(a){for(var u=a;u!==null;){if(u.tag===13){var h=u.memoizedState;if(h!==null&&(h=h.dehydrated,h===null||h.data==="$?"||$_(h)))return u}else if(u.tag===19&&u.memoizedProps.revealOrder!==void 0){if((u.flags&128)!==0)return u}else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===a)break;for(;u.sibling===null;){if(u.return===null||u.return===a)return null;u=u.return}u.sibling.return=u.return,u=u.sibling}return null}function Nh(a,u,h,S){u=a.memoizedState,h=h(S,u),h=h==null?u:m({},u,h),a.memoizedState=h,a.lanes===0&&(a.updateQueue.baseState=h)}var Qc={enqueueSetState:function(a,u,h){a=a._reactInternals;var S=ma(),C=la(S);C.payload=u,h!=null&&(C.callback=h),u=za(a,C,S),u!==null&&(ga(u,a,S),Lc(u,a,S))},enqueueReplaceState:function(a,u,h){a=a._reactInternals;var S=ma(),C=la(S);C.tag=1,C.payload=u,h!=null&&(C.callback=h),u=za(a,C,S),u!==null&&(ga(u,a,S),Lc(u,a,S))},enqueueForceUpdate:function(a,u){a=a._reactInternals;var h=ma(),S=la(h);S.tag=2,u!=null&&(S.callback=u),u=za(a,S,h),u!==null&&(ga(u,a,h),Lc(u,a,h))}};function _v(a,u,h,S,C,R,G){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(S,R,G):u.prototype&&u.prototype.isPureReactComponent?!ru(h,S)||!ru(C,R):!0}function Nv(a,u,h,S){a=u.state,typeof u.componentWillReceiveProps=="function"&&u.componentWillReceiveProps(h,S),typeof u.UNSAFE_componentWillReceiveProps=="function"&&u.UNSAFE_componentWillReceiveProps(h,S),u.state!==a&&Qc.enqueueReplaceState(u,u.state,null)}function Al(a,u){var h=u;if("ref"in u){h={};for(var S in u)S!=="ref"&&(h[S]=u[S])}if(a=a.defaultProps){h===u&&(h=m({},h));for(var C in a)h[C]===void 0&&(h[C]=a[C])}return h}var Ln=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var u=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(u))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)};function Av(a){Ln(a)}function Ah(a){console.error(a)}function Ou(a){Ln(a)}function ao(a,u){try{var h=a.onUncaughtError;h(u.value,{componentStack:u.stack})}catch(S){setTimeout(function(){throw S})}}function Kc(a,u,h){try{var S=a.onCaughtError;S(h.value,{componentStack:h.stack,errorBoundary:u.tag===1?u.stateNode:null})}catch(C){setTimeout(function(){throw C})}}function Xc(a,u,h){return h=la(h),h.tag=3,h.payload={element:null},h.callback=function(){ao(a,u)},h}function Oh(a){return a=la(a),a.tag=3,a}function Dh(a,u,h,S){var C=h.type.getDerivedStateFromError;if(typeof C=="function"){var R=S.value;a.payload=function(){return C(R)},a.callback=function(){Kc(u,h,S)}}var G=h.stateNode;G!==null&&typeof G.componentDidCatch=="function"&&(a.callback=function(){Kc(u,h,S),typeof C!="function"&&(of===null?of=new Set([this]):of.add(this));var ne=S.stack;this.componentDidCatch(S.value,{componentStack:ne!==null?ne:""})})}function Ov(a,u,h,S,C){if(h.flags|=32768,S!==null&&typeof S=="object"&&typeof S.then=="function"){if(u=h.alternate,u!==null&&kc(u,h,C,!0),h=So.current,h!==null){switch(h.tag){case 13:return fa===null?__():h.alternate===null&&Vr===0&&(Vr=3),h.flags&=-257,h.flags|=65536,h.lanes=C,S===uh?h.flags|=16384:(u=h.updateQueue,u===null?h.updateQueue=new Set([S]):u.add(S),A_(a,S,C)),!1;case 22:return h.flags|=65536,S===uh?h.flags|=16384:(u=h.updateQueue,u===null?(u={transitions:null,markerInstances:null,retryQueue:new Set([S])},h.updateQueue=u):(h=u.retryQueue,h===null?u.retryQueue=new Set([S]):h.add(S)),A_(a,S,C)),!1}throw Error(r(435,h.tag))}return A_(a,S,C),__(),!1}if(Sn)return u=So.current,u!==null?((u.flags&65536)===0&&(u.flags|=256),u.flags|=65536,u.lanes=C,S!==Pa&&(a=Error(r(422),{cause:S}),Wr(xi(a,h)))):(S!==Pa&&(u=Error(r(423),{cause:S}),Wr(xi(u,h))),a=a.current.alternate,a.flags|=65536,C&=-C,a.lanes|=C,S=xi(S,h),C=Xc(a.stateNode,S,C),Sd(a,C),Vr!==4&&(Vr=2)),!1;var R=Error(r(520),{cause:S});if(R=xi(R,h),Fv===null?Fv=[R]:Fv.push(R),Vr!==4&&(Vr=2),u===null)return!0;S=xi(S,h),h=u;do{switch(h.tag){case 3:return h.flags|=65536,a=C&-C,h.lanes|=a,a=Xc(h.stateNode,S,a),Sd(h,a),!1;case 1:if(u=h.type,R=h.stateNode,(h.flags&128)===0&&(typeof u.getDerivedStateFromError=="function"||R!==null&&typeof R.componentDidCatch=="function"&&(of===null||!of.has(R))))return h.flags|=65536,C&=-C,h.lanes|=C,C=Oh(C),Dh(C,a,h,S),Sd(h,C),!1}h=h.return}while(h!==null);return!1}var kh=Error(r(461)),jr=!1;function ti(a,u,h,S){u.child=a===null?_h(u,null,h,S):Au(u,a.child,h,S)}function Id(a,u,h,S,C){h=h.render;var R=u.ref;if("ref"in S){var G={};for(var ne in S)ne!=="ref"&&(G[ne]=S[ne])}else G=S;return Va(u),S=xd(a,u,h,G,R,C),ne=Eu(),a!==null&&!jr?(wd(a,u,C),I(a,u,C)):(Sn&&ne&&cu(u),u.flags|=1,ti(a,u,S,C),u.child)}function Rh(a,u,h,S,C){if(a===null){var R=h.type;return typeof R=="function"&&!uu(R)&&R.defaultProps===void 0&&h.compare===null?(u.tag=15,u.type=R,_n(a,u,R,S,C)):(a=gd(h.type,null,S,u,u.mode,C),a.ref=u.ref,a.return=u,u.child=a)}if(R=a.child,!U(a,C)){var G=R.memoizedProps;if(h=h.compare,h=h!==null?h:ru,h(G,S)&&a.ref===u.ref)return I(a,u,C)}return u.flags|=1,a=aa(R,S),a.ref=u.ref,a.return=u,u.child=a}function _n(a,u,h,S,C){if(a!==null){var R=a.memoizedProps;if(ru(R,S)&&a.ref===u.ref)if(jr=!1,u.pendingProps=S=R,U(a,C))(a.flags&131072)!==0&&(jr=!0);else return u.lanes=a.lanes,I(a,u,C)}return Lh(a,u,h,S,C)}function Mh(a,u,h){var S=u.pendingProps,C=S.children,R=a!==null?a.memoizedState:null;if(S.mode==="hidden"){if((u.flags&128)!==0){if(S=R!==null?R.baseLanes|h:h,a!==null){for(C=u.child=a.child,R=0;C!==null;)R=R|C.lanes|C.childLanes,C=C.sibling;u.childLanes=R&~S}else u.childLanes=0,u.child=null;return Dv(a,u,S,h)}if((h&536870912)!==0)u.memoizedState={baseLanes:0,cachePool:null},a!==null&&Vo(u,R!==null?R.cachePool:null),R!==null?El(u,R):Pc(),Ld(u);else return u.lanes=u.childLanes=536870912,Dv(a,u,R!==null?R.baseLanes|h:h,h)}else R!==null?(Vo(u,R.cachePool),El(u,R),Qa(),u.memoizedState=null):(a!==null&&Vo(u,null),Pc(),Qa());return ti(a,u,C,h),u.child}function Dv(a,u,h,S){var C=io();return C=C===null?null:{parent:Ar._currentValue,pool:C},u.memoizedState={baseLanes:h,cachePool:C},a!==null&&Vo(u,null),Pc(),Ld(u),a!==null&&kc(a,u,S,!0),null}function Xa(a,u){var h=u.ref;if(h===null)a!==null&&a.ref!==null&&(u.flags|=4194816);else{if(typeof h!="function"&&typeof h!="object")throw Error(r(284));(a===null||a.ref!==h)&&(u.flags|=4194816)}}function Lh(a,u,h,S,C){return Va(u),h=xd(a,u,h,S,void 0,C),S=Eu(),a!==null&&!jr?(wd(a,u,C),I(a,u,C)):(Sn&&S&&cu(u),u.flags|=1,ti(a,u,h,C),u.child)}function Zc(a,u,h,S,C,R){return Va(u),u.updateQueue=null,h=Tl(u,S,h,C),mh(a),S=Eu(),a!==null&&!jr?(wd(a,u,R),I(a,u,R)):(Sn&&S&&cu(u),u.flags|=1,ti(a,u,h,R),u.child)}function kv(a,u,h,S,C){if(Va(u),u.stateNode===null){var R=Ns,G=h.contextType;typeof G=="object"&&G!==null&&(R=ei(G)),R=new h(S,R),u.memoizedState=R.state!==null&&R.state!==void 0?R.state:null,R.updater=Qc,u.stateNode=R,R._reactInternals=u,R=u.stateNode,R.props=S,R.state=u.memoizedState,R.refs={},dh(u),G=h.contextType,R.context=typeof G=="object"&&G!==null?ei(G):Ns,R.state=u.memoizedState,G=h.getDerivedStateFromProps,typeof G=="function"&&(Nh(u,h,G,S),R.state=u.memoizedState),typeof h.getDerivedStateFromProps=="function"||typeof R.getSnapshotBeforeUpdate=="function"||typeof R.UNSAFE_componentWillMount!="function"&&typeof R.componentWillMount!="function"||(G=R.state,typeof R.componentWillMount=="function"&&R.componentWillMount(),typeof R.UNSAFE_componentWillMount=="function"&&R.UNSAFE_componentWillMount(),G!==R.state&&Qc.enqueueReplaceState(R,R.state,null),Ms(u,S,R,C),Ic(),R.state=u.memoizedState),typeof R.componentDidMount=="function"&&(u.flags|=4194308),S=!0}else if(a===null){R=u.stateNode;var ne=u.memoizedProps,de=Al(h,ne);R.props=de;var _e=R.context,qe=h.contextType;G=Ns,typeof qe=="object"&&qe!==null&&(G=ei(qe));var He=h.getDerivedStateFromProps;qe=typeof He=="function"||typeof R.getSnapshotBeforeUpdate=="function",ne=u.pendingProps!==ne,qe||typeof R.UNSAFE_componentWillReceiveProps!="function"&&typeof R.componentWillReceiveProps!="function"||(ne||_e!==G)&&Nv(u,R,S,G),$a=!1;var De=u.memoizedState;R.state=De,Ms(u,S,R,C),Ic(),_e=u.memoizedState,ne||De!==_e||$a?(typeof He=="function"&&(Nh(u,h,He,S),_e=u.memoizedState),(de=$a||_v(u,h,de,S,De,_e,G))?(qe||typeof R.UNSAFE_componentWillMount!="function"&&typeof R.componentWillMount!="function"||(typeof R.componentWillMount=="function"&&R.componentWillMount(),typeof R.UNSAFE_componentWillMount=="function"&&R.UNSAFE_componentWillMount()),typeof R.componentDidMount=="function"&&(u.flags|=4194308)):(typeof R.componentDidMount=="function"&&(u.flags|=4194308),u.memoizedProps=S,u.memoizedState=_e),R.props=S,R.state=_e,R.context=G,S=de):(typeof R.componentDidMount=="function"&&(u.flags|=4194308),S=!1)}else{R=u.stateNode,mu(a,u),G=u.memoizedProps,qe=Al(h,G),R.props=qe,He=u.pendingProps,De=R.context,_e=h.contextType,de=Ns,typeof _e=="object"&&_e!==null&&(de=ei(_e)),ne=h.getDerivedStateFromProps,(_e=typeof ne=="function"||typeof R.getSnapshotBeforeUpdate=="function")||typeof R.UNSAFE_componentWillReceiveProps!="function"&&typeof R.componentWillReceiveProps!="function"||(G!==He||De!==de)&&Nv(u,R,S,de),$a=!1,De=u.memoizedState,R.state=De,Ms(u,S,R,C),Ic();var Re=u.memoizedState;G!==He||De!==Re||$a||a!==null&&a.dependencies!==null&&yd(a.dependencies)?(typeof ne=="function"&&(Nh(u,h,ne,S),Re=u.memoizedState),(qe=$a||_v(u,h,qe,S,De,Re,de)||a!==null&&a.dependencies!==null&&yd(a.dependencies))?(_e||typeof R.UNSAFE_componentWillUpdate!="function"&&typeof R.componentWillUpdate!="function"||(typeof R.componentWillUpdate=="function"&&R.componentWillUpdate(S,Re,de),typeof R.UNSAFE_componentWillUpdate=="function"&&R.UNSAFE_componentWillUpdate(S,Re,de)),typeof R.componentDidUpdate=="function"&&(u.flags|=4),typeof R.getSnapshotBeforeUpdate=="function"&&(u.flags|=1024)):(typeof R.componentDidUpdate!="function"||G===a.memoizedProps&&De===a.memoizedState||(u.flags|=4),typeof R.getSnapshotBeforeUpdate!="function"||G===a.memoizedProps&&De===a.memoizedState||(u.flags|=1024),u.memoizedProps=S,u.memoizedState=Re),R.props=S,R.state=Re,R.context=de,S=qe):(typeof R.componentDidUpdate!="function"||G===a.memoizedProps&&De===a.memoizedState||(u.flags|=4),typeof R.getSnapshotBeforeUpdate!="function"||G===a.memoizedProps&&De===a.memoizedState||(u.flags|=1024),S=!1)}return R=S,Xa(a,u),S=(u.flags&128)!==0,R||S?(R=u.stateNode,h=S&&typeof h.getDerivedStateFromError!="function"?null:R.render(),u.flags|=1,a!==null&&S?(u.child=Au(u,a.child,null,C),u.child=Au(u,null,h,C)):ti(a,u,h,C),u.memoizedState=R.state,a=u.child):a=I(a,u,C),a}function gr(a,u,h,S){return Oc(),u.flags|=256,ti(a,u,h,S),u.child}var Ih={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Fh(a){return{baseLanes:a,cachePool:qa()}}function Rv(a,u,h){return a=a!==null?a.childLanes&~h:0,u&&(a|=Ja),a}function Fd(a,u,h){var S=u.pendingProps,C=!1,R=(u.flags&128)!==0,G;if((G=R)||(G=a!==null&&a.memoizedState===null?!1:(Dr.current&2)!==0),G&&(C=!0,u.flags&=-129),G=(u.flags&32)!==0,u.flags&=-33,a===null){if(Sn){if(C?Wa(u):Qa(),Sn){var ne=pr,de;if(de=ne){e:{for(de=ne,ne=mi;de.nodeType!==8;){if(!ne){ne=null;break e}if(de=Us(de.nextSibling),de===null){ne=null;break e}}ne=de}ne!==null?(u.memoizedState={dehydrated:ne,treeContext:Po!==null?{id:sa,overflow:Ci}:null,retryLane:536870912,hydrationErrors:null},de=Yr(18,null,null,0),de.stateNode=ne,de.return=u,u.child=de,hi=u,pr=null,de=!0):de=!1}de||yl(u)}if(ne=u.memoizedState,ne!==null&&(ne=ne.dehydrated,ne!==null))return $_(ne)?u.lanes=32:u.lanes=536870912,null;Ka(u)}return ne=S.children,S=S.fallback,C?(Qa(),C=u.mode,ne=f({mode:"hidden",children:ne},C),S=gl(S,C,h,null),ne.return=u,S.return=u,ne.sibling=S,u.child=ne,C=u.child,C.memoizedState=Fh(h),C.childLanes=Rv(a,G,h),u.memoizedState=Ih,S):(Wa(u),s(u,ne))}if(de=a.memoizedState,de!==null&&(ne=de.dehydrated,ne!==null)){if(R)u.flags&256?(Wa(u),u.flags&=-257,u=v(a,u,h)):u.memoizedState!==null?(Qa(),u.child=a.child,u.flags|=128,u=null):(Qa(),C=S.fallback,ne=u.mode,S=f({mode:"visible",children:S.children},ne),C=gl(C,ne,h,null),C.flags|=2,S.return=u,C.return=u,S.sibling=C,u.child=S,Au(u,a.child,null,h),S=u.child,S.memoizedState=Fh(h),S.childLanes=Rv(a,G,h),u.memoizedState=Ih,u=C);else if(Wa(u),$_(ne)){if(G=ne.nextSibling&&ne.nextSibling.dataset,G)var _e=G.dgst;G=_e,S=Error(r(419)),S.stack="",S.digest=G,Wr({value:S,source:null,stack:null}),u=v(a,u,h)}else if(jr||kc(a,u,h,!1),G=(h&a.childLanes)!==0,jr||G){if(G=ar,G!==null&&(S=h&-h,S=(S&42)!==0?1:cn(S),S=(S&(G.suspendedLanes|h))!==0?0:S,S!==0&&S!==de.retryLane))throw de.retryLane=S,lu(a,S),ga(G,a,S),kh;ne.data==="$?"||__(),u=v(a,u,h)}else ne.data==="$?"?(u.flags|=192,u.child=a.child,u=null):(a=de.treeContext,pr=Us(ne.nextSibling),hi=u,Sn=!0,fu=null,mi=!1,a!==null&&(wi[to++]=sa,wi[to++]=Ci,wi[to++]=Po,sa=a.id,Ci=a.overflow,Po=u),u=s(u,S.children),u.flags|=4096);return u}return C?(Qa(),C=S.fallback,ne=u.mode,de=a.child,_e=de.sibling,S=aa(de,{mode:"hidden",children:S.children}),S.subtreeFlags=de.subtreeFlags&65011712,_e!==null?C=aa(_e,C):(C=gl(C,ne,h,null),C.flags|=2),C.return=u,S.return=u,S.sibling=C,u.child=S,S=C,C=u.child,ne=a.child.memoizedState,ne===null?ne=Fh(h):(de=ne.cachePool,de!==null?(_e=Ar._currentValue,de=de.parent!==_e?{parent:_e,pool:_e}:de):de=qa(),ne={baseLanes:ne.baseLanes|h,cachePool:de}),C.memoizedState=ne,C.childLanes=Rv(a,G,h),u.memoizedState=Ih,S):(Wa(u),h=a.child,a=h.sibling,h=aa(h,{mode:"visible",children:S.children}),h.return=u,h.sibling=null,a!==null&&(G=u.deletions,G===null?(u.deletions=[a],u.flags|=16):G.push(a)),u.child=h,u.memoizedState=null,h)}function s(a,u){return u=f({mode:"visible",children:u},a.mode),u.return=a,a.child=u}function f(a,u){return a=Yr(22,a,null,u),a.lanes=0,a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},a}function v(a,u,h){return Au(u,a.child,null,h),a=s(u,u.pendingProps.children),a.flags|=2,u.memoizedState=null,a}function g(a,u,h){a.lanes|=u;var S=a.alternate;S!==null&&(S.lanes|=u),Dc(a.return,u,h)}function T(a,u,h,S,C){var R=a.memoizedState;R===null?a.memoizedState={isBackwards:u,rendering:null,renderingStartTime:0,last:S,tail:h,tailMode:C}:(R.isBackwards=u,R.rendering=null,R.renderingStartTime=0,R.last=S,R.tail=h,R.tailMode=C)}function D(a,u,h){var S=u.pendingProps,C=S.revealOrder,R=S.tail;if(ti(a,u,S.children,h),S=Dr.current,(S&2)!==0)S=S&1|2,u.flags|=128;else{if(a!==null&&(a.flags&128)!==0)e:for(a=u.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&g(a,h,u);else if(a.tag===19)g(a,h,u);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===u)break e;for(;a.sibling===null;){if(a.return===null||a.return===u)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}S&=1}switch(pe(Dr,S),C){case"forwards":for(h=u.child,C=null;h!==null;)a=h.alternate,a!==null&&js(a)===null&&(C=h),h=h.sibling;h=C,h===null?(C=u.child,u.child=null):(C=h.sibling,h.sibling=null),T(u,!1,C,h,R);break;case"backwards":for(h=null,C=u.child,u.child=null;C!==null;){if(a=C.alternate,a!==null&&js(a)===null){u.child=C;break}a=C.sibling,C.sibling=h,h=C,C=a}T(u,!0,h,null,R);break;case"together":T(u,!1,null,null,void 0);break;default:u.memoizedState=null}return u.child}function I(a,u,h){if(a!==null&&(u.dependencies=a.dependencies),rf|=u.lanes,(h&u.childLanes)===0)if(a!==null){if(kc(a,u,h,!1),(h&u.childLanes)===0)return null}else return null;if(a!==null&&u.child!==a.child)throw Error(r(153));if(u.child!==null){for(a=u.child,h=aa(a,a.pendingProps),u.child=h,h.return=u;a.sibling!==null;)a=a.sibling,h=h.sibling=aa(a,a.pendingProps),h.return=u;h.sibling=null}return u.child}function U(a,u){return(a.lanes&u)!==0?!0:(a=a.dependencies,!!(a!==null&&yd(a)))}function B(a,u,h){switch(u.tag){case 3:Ge(u,u.stateNode.containerInfo),Eo(u,Ar,a.memoizedState.cache),Oc();break;case 27:case 5:Ot(u);break;case 4:Ge(u,u.stateNode.containerInfo);break;case 10:Eo(u,u.type,u.memoizedProps.value);break;case 13:var S=u.memoizedState;if(S!==null)return S.dehydrated!==null?(Wa(u),u.flags|=128,null):(h&u.child.childLanes)!==0?Fd(a,u,h):(Wa(u),a=I(a,u,h),a!==null?a.sibling:null);Wa(u);break;case 19:var C=(a.flags&128)!==0;if(S=(h&u.childLanes)!==0,S||(kc(a,u,h,!1),S=(h&u.childLanes)!==0),C){if(S)return D(a,u,h);u.flags|=128}if(C=u.memoizedState,C!==null&&(C.rendering=null,C.tail=null,C.lastEffect=null),pe(Dr,Dr.current),S)break;return null;case 22:case 23:return u.lanes=0,Mh(a,u,h);case 24:Eo(u,Ar,a.memoizedState.cache)}return I(a,u,h)}function H(a,u,h){if(a!==null)if(a.memoizedProps!==u.pendingProps)jr=!0;else{if(!U(a,h)&&(u.flags&128)===0)return jr=!1,B(a,u,h);jr=(a.flags&131072)!==0}else jr=!1,Sn&&(u.flags&1048576)!==0&&vl(u,vd,u.index);switch(u.lanes=0,u.tag){case 16:e:{a=u.pendingProps;var S=u.elementType,C=S._init;if(S=C(S._payload),u.type=S,typeof S=="function")uu(S)?(a=Al(S,a),u.tag=1,u=kv(null,u,S,a,h)):(u.tag=0,u=Lh(null,u,S,a,h));else{if(S!=null){if(C=S.$$typeof,C===_){u.tag=11,u=Id(null,u,S,a,h);break e}else if(C===P){u.tag=14,u=Rh(null,u,S,a,h);break e}}throw u=W(S)||S,Error(r(306,u,""))}}return u;case 0:return Lh(a,u,u.type,u.pendingProps,h);case 1:return S=u.type,C=Al(S,u.pendingProps),kv(a,u,S,C,h);case 3:e:{if(Ge(u,u.stateNode.containerInfo),a===null)throw Error(r(387));S=u.pendingProps;var R=u.memoizedState;C=R.element,mu(a,u),Ms(u,S,null,h);var G=u.memoizedState;if(S=G.cache,Eo(u,Ar,S),S!==R.cache&&oh(u,[Ar],h,!0),Ic(),S=G.element,R.isDehydrated)if(R={element:S,isDehydrated:!1,cache:G.cache},u.updateQueue.baseState=R,u.memoizedState=R,u.flags&256){u=gr(a,u,S,h);break e}else if(S!==C){C=xi(Error(r(424)),u),Wr(C),u=gr(a,u,S,h);break e}else{switch(a=u.stateNode.containerInfo,a.nodeType){case 9:a=a.body;break;default:a=a.nodeName==="HTML"?a.ownerDocument.body:a}for(pr=Us(a.firstChild),hi=u,Sn=!0,fu=null,mi=!0,h=_h(u,null,S,h),u.child=h;h;)h.flags=h.flags&-3|4096,h=h.sibling}else{if(Oc(),S===C){u=I(a,u,h);break e}ti(a,u,S,h)}u=u.child}return u;case 26:return Xa(a,u),a===null?(h=jj(u.type,null,u.pendingProps,null))?u.memoizedState=h:Sn||(h=u.type,a=u.pendingProps,S=B1(Se.current).createElement(h),S[Gt]=u,S[En]=a,zi(S,h,a),Mn(S),u.stateNode=S):u.memoizedState=jj(u.type,a.memoizedProps,u.pendingProps,a.memoizedState),null;case 27:return Ot(u),a===null&&Sn&&(S=u.stateNode=Ij(u.type,u.pendingProps,Se.current),hi=u,mi=!0,C=pr,lf(u.type)?(z_=C,pr=Us(S.firstChild)):pr=C),ti(a,u,u.pendingProps.children,h),Xa(a,u),a===null&&(u.flags|=4194304),u.child;case 5:return a===null&&Sn&&((C=S=pr)&&(S=_ie(S,u.type,u.pendingProps,mi),S!==null?(u.stateNode=S,hi=u,pr=Us(S.firstChild),mi=!1,C=!0):C=!1),C||yl(u)),Ot(u),C=u.type,R=u.pendingProps,G=a!==null?a.memoizedProps:null,S=R.children,U_(C,R)?S=null:G!==null&&U_(C,G)&&(u.flags|=32),u.memoizedState!==null&&(C=xd(a,u,lv,null,null,h),Hv._currentValue=C),Xa(a,u),ti(a,u,S,h),u.child;case 6:return a===null&&Sn&&((a=h=pr)&&(h=Nie(h,u.pendingProps,mi),h!==null?(u.stateNode=h,hi=u,pr=null,a=!0):a=!1),a||yl(u)),null;case 13:return Fd(a,u,h);case 4:return Ge(u,u.stateNode.containerInfo),S=u.pendingProps,a===null?u.child=Au(u,null,S,h):ti(a,u,S,h),u.child;case 11:return Id(a,u,u.type,u.pendingProps,h);case 7:return ti(a,u,u.pendingProps,h),u.child;case 8:return ti(a,u,u.pendingProps.children,h),u.child;case 12:return ti(a,u,u.pendingProps.children,h),u.child;case 10:return S=u.pendingProps,Eo(u,u.type,S.value),ti(a,u,S.children,h),u.child;case 9:return C=u.type._context,S=u.pendingProps.children,Va(u),C=ei(C),S=S(C),u.flags|=1,ti(a,u,S,h),u.child;case 14:return Rh(a,u,u.type,u.pendingProps,h);case 15:return _n(a,u,u.type,u.pendingProps,h);case 19:return D(a,u,h);case 31:return S=u.pendingProps,h=u.mode,S={mode:S.mode,children:S.children},a===null?(h=f(S,h),h.ref=u.ref,u.child=h,h.return=u,u=h):(h=aa(a.child,S),h.ref=u.ref,u.child=h,h.return=u,u=h),u;case 22:return Mh(a,u,h);case 24:return Va(u),S=ei(Ar),a===null?(C=io(),C===null&&(C=ar,R=Rc(),C.pooledCache=R,R.refCount++,R!==null&&(C.pooledCacheLanes|=h),C=R),u.memoizedState={parent:S,cache:C},dh(u),Eo(u,Ar,C)):((a.lanes&h)!==0&&(mu(a,u),Ms(u,null,null,h),Ic()),C=a.memoizedState,R=u.memoizedState,C.parent!==S?(C={parent:S,cache:S},u.memoizedState=C,u.lanes===0&&(u.memoizedState=u.updateQueue.baseState=C),Eo(u,Ar,S)):(S=R.cache,Eo(u,Ar,S),S!==C.cache&&oh(u,[Ar],h,!0))),ti(a,u,u.pendingProps.children,h),u.child;case 29:throw u.pendingProps}throw Error(r(156,u.tag))}function ie(a){a.flags|=4}function le(a,u){if(u.type!=="stylesheet"||(u.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!$j(u)){if(u=So.current,u!==null&&((Cn&4194048)===Cn?fa!==null:(Cn&62914560)!==Cn&&(Cn&536870912)===0||u!==fa))throw bl=uh,bd;a.flags|=8192}}function Ee(a,u){u!==null&&(a.flags|=4),a.flags&16384&&(u=a.tag!==22?an():536870912,a.lanes|=u,Uh|=u)}function ge(a,u){if(!Sn)switch(a.tailMode){case"hidden":u=a.tail;for(var h=null;u!==null;)u.alternate!==null&&(h=u),u=u.sibling;h===null?a.tail=null:h.sibling=null;break;case"collapsed":h=a.tail;for(var S=null;h!==null;)h.alternate!==null&&(S=h),h=h.sibling;S===null?u||a.tail===null?a.tail=null:a.tail.sibling=null:S.sibling=null}}function we(a){var u=a.alternate!==null&&a.alternate.child===a.child,h=0,S=0;if(u)for(var C=a.child;C!==null;)h|=C.lanes|C.childLanes,S|=C.subtreeFlags&65011712,S|=C.flags&65011712,C.return=a,C=C.sibling;else for(C=a.child;C!==null;)h|=C.lanes|C.childLanes,S|=C.subtreeFlags,S|=C.flags,C.return=a,C=C.sibling;return a.subtreeFlags|=S,a.childLanes=h,u}function Ve(a,u,h){var S=u.pendingProps;switch(Ds(u),u.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return we(u),null;case 1:return we(u),null;case 3:return h=u.stateNode,S=null,a!==null&&(S=a.memoizedState.cache),u.memoizedState.cache!==S&&(u.flags|=2048),ja(Ar),Ye(),h.pendingContext&&(h.context=h.pendingContext,h.pendingContext=null),(a===null||a.child===null)&&(Ac(u)?ie(u):a===null||a.memoizedState.isDehydrated&&(u.flags&256)===0||(u.flags|=1024,tv())),we(u),null;case 26:return h=u.memoizedState,a===null?(ie(u),h!==null?(we(u),le(u,h)):(we(u),u.flags&=-16777217)):h?h!==a.memoizedState?(ie(u),we(u),le(u,h)):(we(u),u.flags&=-16777217):(a.memoizedProps!==S&&ie(u),we(u),u.flags&=-16777217),null;case 27:gt(u),h=Se.current;var C=u.type;if(a!==null&&u.stateNode!=null)a.memoizedProps!==S&&ie(u);else{if(!S){if(u.stateNode===null)throw Error(r(166));return we(u),null}a=ce.current,Ac(u)?Jg(u):(a=Ij(C,S,h),u.stateNode=a,ie(u))}return we(u),null;case 5:if(gt(u),h=u.type,a!==null&&u.stateNode!=null)a.memoizedProps!==S&&ie(u);else{if(!S){if(u.stateNode===null)throw Error(r(166));return we(u),null}if(a=ce.current,Ac(u))Jg(u);else{switch(C=B1(Se.current),a){case 1:a=C.createElementNS("http://www.w3.org/2000/svg",h);break;case 2:a=C.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;default:switch(h){case"svg":a=C.createElementNS("http://www.w3.org/2000/svg",h);break;case"math":a=C.createElementNS("http://www.w3.org/1998/Math/MathML",h);break;case"script":a=C.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild);break;case"select":a=typeof S.is=="string"?C.createElement("select",{is:S.is}):C.createElement("select"),S.multiple?a.multiple=!0:S.size&&(a.size=S.size);break;default:a=typeof S.is=="string"?C.createElement(h,{is:S.is}):C.createElement(h)}}a[Gt]=u,a[En]=S;e:for(C=u.child;C!==null;){if(C.tag===5||C.tag===6)a.appendChild(C.stateNode);else if(C.tag!==4&&C.tag!==27&&C.child!==null){C.child.return=C,C=C.child;continue}if(C===u)break e;for(;C.sibling===null;){if(C.return===null||C.return===u)break e;C=C.return}C.sibling.return=C.return,C=C.sibling}u.stateNode=a;e:switch(zi(a,h,S),h){case"button":case"input":case"select":case"textarea":a=!!S.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&ie(u)}}return we(u),u.flags&=-16777217,null;case 6:if(a&&u.stateNode!=null)a.memoizedProps!==S&&ie(u);else{if(typeof S!="string"&&u.stateNode===null)throw Error(r(166));if(a=Se.current,Ac(u)){if(a=u.stateNode,h=u.memoizedProps,S=null,C=hi,C!==null)switch(C.tag){case 27:case 5:S=C.memoizedProps}a[Gt]=u,a=!!(a.nodeValue===h||S!==null&&S.suppressHydrationWarning===!0||Aj(a.nodeValue,h)),a||yl(u)}else a=B1(a).createTextNode(S),a[Gt]=u,u.stateNode=a}return we(u),null;case 13:if(S=u.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(C=Ac(u),S!==null&&S.dehydrated!==null){if(a===null){if(!C)throw Error(r(318));if(C=u.memoizedState,C=C!==null?C.dehydrated:null,!C)throw Error(r(317));C[Gt]=u}else Oc(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;we(u),C=!1}else C=tv(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=C),C=!0;if(!C)return u.flags&256?(Ka(u),u):(Ka(u),null)}if(Ka(u),(u.flags&128)!==0)return u.lanes=h,u;if(h=S!==null,a=a!==null&&a.memoizedState!==null,h){S=u.child,C=null,S.alternate!==null&&S.alternate.memoizedState!==null&&S.alternate.memoizedState.cachePool!==null&&(C=S.alternate.memoizedState.cachePool.pool);var R=null;S.memoizedState!==null&&S.memoizedState.cachePool!==null&&(R=S.memoizedState.cachePool.pool),R!==C&&(S.flags|=2048)}return h!==a&&h&&(u.child.flags|=8192),Ee(u,u.updateQueue),we(u),null;case 4:return Ye(),a===null&&I_(u.stateNode.containerInfo),we(u),null;case 10:return ja(u.type),we(u),null;case 19:if(se(Dr),C=u.memoizedState,C===null)return we(u),null;if(S=(u.flags&128)!==0,R=C.rendering,R===null)if(S)ge(C,!1);else{if(Vr!==0||a!==null&&(a.flags&128)!==0)for(a=u.child;a!==null;){if(R=js(a),R!==null){for(u.flags|=128,ge(C,!1),a=R.updateQueue,u.updateQueue=a,Ee(u,a),u.subtreeFlags=0,a=h,h=u.child;h!==null;)_c(h,a),h=h.sibling;return pe(Dr,Dr.current&1|2),u.child}a=a.sibling}C.tail!==null&&oe()>R1&&(u.flags|=128,S=!0,ge(C,!1),u.lanes=4194304)}else{if(!S)if(a=js(R),a!==null){if(u.flags|=128,S=!0,a=a.updateQueue,u.updateQueue=a,Ee(u,a),ge(C,!0),C.tail===null&&C.tailMode==="hidden"&&!R.alternate&&!Sn)return we(u),null}else 2*oe()-C.renderingStartTime>R1&&h!==536870912&&(u.flags|=128,S=!0,ge(C,!1),u.lanes=4194304);C.isBackwards?(R.sibling=u.child,u.child=R):(a=C.last,a!==null?a.sibling=R:u.child=R,C.last=R)}return C.tail!==null?(u=C.tail,C.rendering=u,C.tail=u.sibling,C.renderingStartTime=oe(),u.sibling=null,a=Dr.current,pe(Dr,S?a&1|2:a&1),u):(we(u),null);case 22:case 23:return Ka(u),vu(),S=u.memoizedState!==null,a!==null?a.memoizedState!==null!==S&&(u.flags|=8192):S&&(u.flags|=8192),S?(h&536870912)!==0&&(u.flags&128)===0&&(we(u),u.subtreeFlags&6&&(u.flags|=8192)):we(u),h=u.updateQueue,h!==null&&Ee(u,h.retryQueue),h=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(h=a.memoizedState.cachePool.pool),S=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(S=u.memoizedState.cachePool.pool),S!==h&&(u.flags|=2048),a!==null&&se(tn),null;case 24:return h=null,a!==null&&(h=a.memoizedState.cache),u.memoizedState.cache!==h&&(u.flags|=2048),ja(Ar),we(u),null;case 25:return null;case 30:return null}throw Error(r(156,u.tag))}function Xe(a,u){switch(Ds(u),u.tag){case 1:return a=u.flags,a&65536?(u.flags=a&-65537|128,u):null;case 3:return ja(Ar),Ye(),a=u.flags,(a&65536)!==0&&(a&128)===0?(u.flags=a&-65537|128,u):null;case 26:case 27:case 5:return gt(u),null;case 13:if(Ka(u),a=u.memoizedState,a!==null&&a.dehydrated!==null){if(u.alternate===null)throw Error(r(340));Oc()}return a=u.flags,a&65536?(u.flags=a&-65537|128,u):null;case 19:return se(Dr),null;case 4:return Ye(),null;case 10:return ja(u.type),null;case 22:case 23:return Ka(u),vu(),a!==null&&se(tn),a=u.flags,a&65536?(u.flags=a&-65537|128,u):null;case 24:return ja(Ar),null;case 25:return null;default:return null}}function rt(a,u){switch(Ds(u),u.tag){case 3:ja(Ar),Ye();break;case 26:case 27:case 5:gt(u);break;case 4:Ye();break;case 13:Ka(u);break;case 19:se(Dr);break;case 10:ja(u.type);break;case 22:case 23:Ka(u),vu(),a!==null&&se(tn);break;case 24:ja(Ar)}}function it(a,u){try{var h=u.updateQueue,S=h!==null?h.lastEffect:null;if(S!==null){var C=S.next;h=C;do{if((h.tag&a)===a){S=void 0;var R=h.create,G=h.inst;S=R(),G.destroy=S}h=h.next}while(h!==C)}}catch(ne){Xn(u,u.return,ne)}}function et(a,u,h){try{var S=u.updateQueue,C=S!==null?S.lastEffect:null;if(C!==null){var R=C.next;S=R;do{if((S.tag&a)===a){var G=S.inst,ne=G.destroy;if(ne!==void 0){G.destroy=void 0,C=u;var de=h,_e=ne;try{_e()}catch(qe){Xn(C,de,qe)}}}S=S.next}while(S!==R)}}catch(qe){Xn(u,u.return,qe)}}function ut(a){var u=a.updateQueue;if(u!==null){var h=a.stateNode;try{sv(u,h)}catch(S){Xn(a,a.return,S)}}}function Ct(a,u,h){h.props=Al(a.type,a.memoizedProps),h.state=a.memoizedState;try{h.componentWillUnmount()}catch(S){Xn(a,u,S)}}function yt(a,u){try{var h=a.ref;if(h!==null){switch(a.tag){case 26:case 27:case 5:var S=a.stateNode;break;case 30:S=a.stateNode;break;default:S=a.stateNode}typeof h=="function"?a.refCleanup=h(S):h.current=S}}catch(C){Xn(a,u,C)}}function kt(a,u){var h=a.ref,S=a.refCleanup;if(h!==null)if(typeof S=="function")try{S()}catch(C){Xn(a,u,C)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof h=="function")try{h(null)}catch(C){Xn(a,u,C)}else h.current=null}function In(a){var u=a.type,h=a.memoizedProps,S=a.stateNode;try{e:switch(u){case"button":case"input":case"select":case"textarea":h.autoFocus&&S.focus();break e;case"img":h.src?S.src=h.src:h.srcSet&&(S.srcset=h.srcSet)}}catch(C){Xn(a,a.return,C)}}function kr(a,u,h){try{var S=a.stateNode;Sie(S,a.type,h,u),S[En]=u}catch(C){Xn(a,a.return,C)}}function Hn(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&lf(a.type)||a.tag===4}function gi(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||Hn(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.tag===27&&lf(a.type)||a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function vi(a,u,h){var S=a.tag;if(S===5||S===6)a=a.stateNode,u?(h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h).insertBefore(a,u):(u=h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h,u.appendChild(a),h=h._reactRootContainer,h!=null||u.onclick!==null||(u.onclick=q1));else if(S!==4&&(S===27&&lf(a.type)&&(h=a.stateNode,u=null),a=a.child,a!==null))for(vi(a,u,h),a=a.sibling;a!==null;)vi(a,u,h),a=a.sibling}function ir(a,u,h){var S=a.tag;if(S===5||S===6)a=a.stateNode,u?h.insertBefore(a,u):h.appendChild(a);else if(S!==4&&(S===27&&lf(a.type)&&(h=a.stateNode),a=a.child,a!==null))for(ir(a,u,h),a=a.sibling;a!==null;)ir(a,u,h),a=a.sibling}function Ni(a){var u=a.stateNode,h=a.memoizedProps;try{for(var S=a.type,C=u.attributes;C.length;)u.removeAttributeNode(C[0]);zi(u,S,h),u[Gt]=a,u[En]=h}catch(R){Xn(a,a.return,R)}}var Gn=!1,Qt=!1,vr=!1,or=typeof WeakSet=="function"?WeakSet:Set,xn=null;function Jc(a,u){if(a=a.containerInfo,j_=W1,a=Zp(a),iu(a)){if("selectionStart"in a)var h={start:a.selectionStart,end:a.selectionEnd};else e:{h=(h=a.ownerDocument)&&h.defaultView||window;var S=h.getSelection&&h.getSelection();if(S&&S.rangeCount!==0){h=S.anchorNode;var C=S.anchorOffset,R=S.focusNode;S=S.focusOffset;try{h.nodeType,R.nodeType}catch{h=null;break e}var G=0,ne=-1,de=-1,_e=0,qe=0,He=a,De=null;t:for(;;){for(var Re;He!==h||C!==0&&He.nodeType!==3||(ne=G+C),He!==R||S!==0&&He.nodeType!==3||(de=G+S),He.nodeType===3&&(G+=He.nodeValue.length),(Re=He.firstChild)!==null;)De=He,He=Re;for(;;){if(He===a)break t;if(De===h&&++_e===C&&(ne=G),De===R&&++qe===S&&(de=G),(Re=He.nextSibling)!==null)break;He=De,De=He.parentNode}He=Re}h=ne===-1||de===-1?null:{start:ne,end:de}}else h=null}h=h||{start:0,end:0}}else h=null;for(V_={focusedElem:a,selectionRange:h},W1=!1,xn=u;xn!==null;)if(u=xn,a=u.child,(u.subtreeFlags&1024)!==0&&a!==null)a.return=u,xn=a;else for(;xn!==null;){switch(u=xn,R=u.alternate,a=u.flags,u.tag){case 0:break;case 11:case 15:break;case 1:if((a&1024)!==0&&R!==null){a=void 0,h=u,C=R.memoizedProps,R=R.memoizedState,S=h.stateNode;try{var Ut=Al(h.type,C,h.elementType===h.type);a=S.getSnapshotBeforeUpdate(Ut,R),S.__reactInternalSnapshotBeforeUpdate=a}catch(Rt){Xn(h,h.return,Rt)}}break;case 3:if((a&1024)!==0){if(a=u.stateNode.containerInfo,h=a.nodeType,h===9)B_(a);else if(h===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":B_(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((a&1024)!==0)throw Error(r(163))}if(a=u.sibling,a!==null){a.return=u.return,xn=a;break}xn=u.return}}function Vs(a,u,h){var S=h.flags;switch(h.tag){case 0:case 11:case 15:ef(a,h),S&4&&it(5,h);break;case 1:if(ef(a,h),S&4)if(a=h.stateNode,u===null)try{a.componentDidMount()}catch(G){Xn(h,h.return,G)}else{var C=Al(h.type,u.memoizedProps);u=u.memoizedState;try{a.componentDidUpdate(C,u,a.__reactInternalSnapshotBeforeUpdate)}catch(G){Xn(h,h.return,G)}}S&64&&ut(h),S&512&&yt(h,h.return);break;case 3:if(ef(a,h),S&64&&(a=h.updateQueue,a!==null)){if(u=null,h.child!==null)switch(h.child.tag){case 27:case 5:u=h.child.stateNode;break;case 1:u=h.child.stateNode}try{sv(a,u)}catch(G){Xn(h,h.return,G)}}break;case 27:u===null&&S&4&&Ni(h);case 26:case 5:ef(a,h),u===null&&S&4&&In(h),S&512&&yt(h,h.return);break;case 12:ef(a,h);break;case 13:ef(a,h),S&4&&Ol(a,h),S&64&&(a=h.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(h=cie.bind(null,h),Aie(a,h))));break;case 22:if(S=h.memoizedState!==null||Gn,!S){u=u!==null&&u.memoizedState!==null||Qt,C=Gn;var R=Qt;Gn=S,(Qt=u)&&!R?tf(a,h,(h.subtreeFlags&8772)!==0):ef(a,h),Gn=C,Qt=R}break;case 30:break;default:ef(a,h)}}function ni(a){var u=a.alternate;u!==null&&(a.alternate=null,ni(u)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(u=a.stateNode,u!==null&&Ir(u)),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}var Tn=null,wn=!1;function da(a,u,h){for(h=h.child;h!==null;)Za(a,u,h),h=h.sibling}function Za(a,u,h){if(jt&&typeof jt.onCommitFiberUnmount=="function")try{jt.onCommitFiberUnmount(Dt,h)}catch{}switch(h.tag){case 26:Qt||kt(h,u),da(a,u,h),h.memoizedState?h.memoizedState.count--:h.stateNode&&(h=h.stateNode,h.parentNode.removeChild(h));break;case 27:Qt||kt(h,u);var S=Tn,C=wn;lf(h.type)&&(Tn=h.stateNode,wn=!1),da(a,u,h),qv(h.stateNode),Tn=S,wn=C;break;case 5:Qt||kt(h,u);case 6:if(S=Tn,C=wn,Tn=null,da(a,u,h),Tn=S,wn=C,Tn!==null)if(wn)try{(Tn.nodeType===9?Tn.body:Tn.nodeName==="HTML"?Tn.ownerDocument.body:Tn).removeChild(h.stateNode)}catch(R){Xn(h,u,R)}else try{Tn.removeChild(h.stateNode)}catch(R){Xn(h,u,R)}break;case 18:Tn!==null&&(wn?(a=Tn,Mj(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,h.stateNode),Qv(a)):Mj(Tn,h.stateNode));break;case 4:S=Tn,C=wn,Tn=h.stateNode.containerInfo,wn=!0,da(a,u,h),Tn=S,wn=C;break;case 0:case 11:case 14:case 15:Qt||et(2,h,u),Qt||et(4,h,u),da(a,u,h);break;case 1:Qt||(kt(h,u),S=h.stateNode,typeof S.componentWillUnmount=="function"&&Ct(h,u,S)),da(a,u,h);break;case 21:da(a,u,h);break;case 22:Qt=(S=Qt)||h.memoizedState!==null,da(a,u,h),Qt=S;break;default:da(a,u,h)}}function Ol(a,u){if(u.memoizedState===null&&(a=u.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{Qv(a)}catch(h){Xn(u,u.return,h)}}function Du(a){switch(a.tag){case 13:case 19:var u=a.stateNode;return u===null&&(u=a.stateNode=new or),u;case 22:return a=a.stateNode,u=a._retryCache,u===null&&(u=a._retryCache=new or),u;default:throw Error(r(435,a.tag))}}function ri(a,u){var h=Du(a);u.forEach(function(S){var C=fie.bind(null,a,S);h.has(S)||(h.add(S),S.then(C,C))})}function ii(a,u){var h=u.deletions;if(h!==null)for(var S=0;S<h.length;S++){var C=h[S],R=a,G=u,ne=G;e:for(;ne!==null;){switch(ne.tag){case 27:if(lf(ne.type)){Tn=ne.stateNode,wn=!1;break e}break;case 5:Tn=ne.stateNode,wn=!1;break e;case 3:case 4:Tn=ne.stateNode.containerInfo,wn=!0;break e}ne=ne.return}if(Tn===null)throw Error(r(160));Za(R,G,C),Tn=null,wn=!1,R=C.alternate,R!==null&&(R.return=null),C.return=null}if(u.subtreeFlags&13878)for(u=u.child;u!==null;)YP(u,a),u=u.sibling}var To=null;function YP(a,u){var h=a.alternate,S=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:ii(u,a),pa(a),S&4&&(et(3,a,a.return),it(3,a),et(5,a,a.return));break;case 1:ii(u,a),pa(a),S&512&&(Qt||h===null||kt(h,h.return)),S&64&&Gn&&(a=a.updateQueue,a!==null&&(S=a.callbacks,S!==null&&(h=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=h===null?S:h.concat(S))));break;case 26:var C=To;if(ii(u,a),pa(a),S&512&&(Qt||h===null||kt(h,h.return)),S&4){var R=h!==null?h.memoizedState:null;if(S=a.memoizedState,h===null)if(S===null)if(a.stateNode===null){e:{S=a.type,h=a.memoizedProps,C=C.ownerDocument||C;t:switch(S){case"title":R=C.getElementsByTagName("title")[0],(!R||R[$n]||R[Gt]||R.namespaceURI==="http://www.w3.org/2000/svg"||R.hasAttribute("itemprop"))&&(R=C.createElement(S),C.head.insertBefore(R,C.querySelector("head > title"))),zi(R,S,h),R[Gt]=a,Mn(R),S=R;break e;case"link":var G=qj("link","href",C).get(S+(h.href||""));if(G){for(var ne=0;ne<G.length;ne++)if(R=G[ne],R.getAttribute("href")===(h.href==null||h.href===""?null:h.href)&&R.getAttribute("rel")===(h.rel==null?null:h.rel)&&R.getAttribute("title")===(h.title==null?null:h.title)&&R.getAttribute("crossorigin")===(h.crossOrigin==null?null:h.crossOrigin)){G.splice(ne,1);break t}}R=C.createElement(S),zi(R,S,h),C.head.appendChild(R);break;case"meta":if(G=qj("meta","content",C).get(S+(h.content||""))){for(ne=0;ne<G.length;ne++)if(R=G[ne],R.getAttribute("content")===(h.content==null?null:""+h.content)&&R.getAttribute("name")===(h.name==null?null:h.name)&&R.getAttribute("property")===(h.property==null?null:h.property)&&R.getAttribute("http-equiv")===(h.httpEquiv==null?null:h.httpEquiv)&&R.getAttribute("charset")===(h.charSet==null?null:h.charSet)){G.splice(ne,1);break t}}R=C.createElement(S),zi(R,S,h),C.head.appendChild(R);break;default:throw Error(r(468,S))}R[Gt]=a,Mn(R),S=R}a.stateNode=S}else Bj(C,a.type,a.stateNode);else a.stateNode=Uj(C,S,a.memoizedProps);else R!==S?(R===null?h.stateNode!==null&&(h=h.stateNode,h.parentNode.removeChild(h)):R.count--,S===null?Bj(C,a.type,a.stateNode):Uj(C,S,a.memoizedProps)):S===null&&a.stateNode!==null&&kr(a,a.memoizedProps,h.memoizedProps)}break;case 27:ii(u,a),pa(a),S&512&&(Qt||h===null||kt(h,h.return)),h!==null&&S&4&&kr(a,a.memoizedProps,h.memoizedProps);break;case 5:if(ii(u,a),pa(a),S&512&&(Qt||h===null||kt(h,h.return)),a.flags&32){C=a.stateNode;try{ol(C,"")}catch(Re){Xn(a,a.return,Re)}}S&4&&a.stateNode!=null&&(C=a.memoizedProps,kr(a,C,h!==null?h.memoizedProps:C)),S&1024&&(vr=!0);break;case 6:if(ii(u,a),pa(a),S&4){if(a.stateNode===null)throw Error(r(162));S=a.memoizedProps,h=a.stateNode;try{h.nodeValue=S}catch(Re){Xn(a,a.return,Re)}}break;case 3:if(H1=null,C=To,To=$1(u.containerInfo),ii(u,a),To=C,pa(a),S&4&&h!==null&&h.memoizedState.isDehydrated)try{Qv(u.containerInfo)}catch(Re){Xn(a,a.return,Re)}vr&&(vr=!1,WP(a));break;case 4:S=To,To=$1(a.stateNode.containerInfo),ii(u,a),pa(a),To=S;break;case 12:ii(u,a),pa(a);break;case 13:ii(u,a),pa(a),a.child.flags&8192&&a.memoizedState!==null!=(h!==null&&h.memoizedState!==null)&&(S_=oe()),S&4&&(S=a.updateQueue,S!==null&&(a.updateQueue=null,ri(a,S)));break;case 22:C=a.memoizedState!==null;var de=h!==null&&h.memoizedState!==null,_e=Gn,qe=Qt;if(Gn=_e||C,Qt=qe||de,ii(u,a),Qt=qe,Gn=_e,pa(a),S&8192)e:for(u=a.stateNode,u._visibility=C?u._visibility&-2:u._visibility|1,C&&(h===null||de||Gn||Qt||Pd(a)),h=null,u=a;;){if(u.tag===5||u.tag===26){if(h===null){de=h=u;try{if(R=de.stateNode,C)G=R.style,typeof G.setProperty=="function"?G.setProperty("display","none","important"):G.display="none";else{ne=de.stateNode;var He=de.memoizedProps.style,De=He!=null&&He.hasOwnProperty("display")?He.display:null;ne.style.display=De==null||typeof De=="boolean"?"":(""+De).trim()}}catch(Re){Xn(de,de.return,Re)}}}else if(u.tag===6){if(h===null){de=u;try{de.stateNode.nodeValue=C?"":de.memoizedProps}catch(Re){Xn(de,de.return,Re)}}}else if((u.tag!==22&&u.tag!==23||u.memoizedState===null||u===a)&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===a)break e;for(;u.sibling===null;){if(u.return===null||u.return===a)break e;h===u&&(h=null),u=u.return}h===u&&(h=null),u.sibling.return=u.return,u=u.sibling}S&4&&(S=a.updateQueue,S!==null&&(h=S.retryQueue,h!==null&&(S.retryQueue=null,ri(a,h))));break;case 19:ii(u,a),pa(a),S&4&&(S=a.updateQueue,S!==null&&(a.updateQueue=null,ri(a,S)));break;case 30:break;case 21:break;default:ii(u,a),pa(a)}}function pa(a){var u=a.flags;if(u&2){try{for(var h,S=a.return;S!==null;){if(Hn(S)){h=S;break}S=S.return}if(h==null)throw Error(r(160));switch(h.tag){case 27:var C=h.stateNode,R=gi(a);ir(a,R,C);break;case 5:var G=h.stateNode;h.flags&32&&(ol(G,""),h.flags&=-33);var ne=gi(a);ir(a,ne,G);break;case 3:case 4:var de=h.stateNode.containerInfo,_e=gi(a);vi(a,_e,de);break;default:throw Error(r(161))}}catch(qe){Xn(a,a.return,qe)}a.flags&=-3}u&4096&&(a.flags&=-4097)}function WP(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var u=a;WP(u),u.tag===5&&u.flags&1024&&u.stateNode.reset(),a=a.sibling}}function ef(a,u){if(u.subtreeFlags&8772)for(u=u.child;u!==null;)Vs(a,u.alternate,u),u=u.sibling}function Pd(a){for(a=a.child;a!==null;){var u=a;switch(u.tag){case 0:case 11:case 14:case 15:et(4,u,u.return),Pd(u);break;case 1:kt(u,u.return);var h=u.stateNode;typeof h.componentWillUnmount=="function"&&Ct(u,u.return,h),Pd(u);break;case 27:qv(u.stateNode);case 26:case 5:kt(u,u.return),Pd(u);break;case 22:u.memoizedState===null&&Pd(u);break;case 30:Pd(u);break;default:Pd(u)}a=a.sibling}}function tf(a,u,h){for(h=h&&(u.subtreeFlags&8772)!==0,u=u.child;u!==null;){var S=u.alternate,C=a,R=u,G=R.flags;switch(R.tag){case 0:case 11:case 15:tf(C,R,h),it(4,R);break;case 1:if(tf(C,R,h),S=R,C=S.stateNode,typeof C.componentDidMount=="function")try{C.componentDidMount()}catch(_e){Xn(S,S.return,_e)}if(S=R,C=S.updateQueue,C!==null){var ne=S.stateNode;try{var de=C.shared.hiddenCallbacks;if(de!==null)for(C.shared.hiddenCallbacks=null,C=0;C<de.length;C++)hh(de[C],ne)}catch(_e){Xn(S,S.return,_e)}}h&&G&64&&ut(R),yt(R,R.return);break;case 27:Ni(R);case 26:case 5:tf(C,R,h),h&&S===null&&G&4&&In(R),yt(R,R.return);break;case 12:tf(C,R,h);break;case 13:tf(C,R,h),h&&G&4&&Ol(C,R);break;case 22:R.memoizedState===null&&tf(C,R,h),yt(R,R.return);break;case 30:break;default:tf(C,R,h)}u=u.sibling}}function g_(a,u){var h=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(h=a.memoizedState.cachePool.pool),a=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(a=u.memoizedState.cachePool.pool),a!==h&&(a!=null&&a.refCount++,h!=null&&pu(h))}function v_(a,u){a=null,u.alternate!==null&&(a=u.alternate.memoizedState.cache),u=u.memoizedState.cache,u!==a&&(u.refCount++,a!=null&&pu(a))}function Dl(a,u,h,S){if(u.subtreeFlags&10256)for(u=u.child;u!==null;)QP(a,u,h,S),u=u.sibling}function QP(a,u,h,S){var C=u.flags;switch(u.tag){case 0:case 11:case 15:Dl(a,u,h,S),C&2048&&it(9,u);break;case 1:Dl(a,u,h,S);break;case 3:Dl(a,u,h,S),C&2048&&(a=null,u.alternate!==null&&(a=u.alternate.memoizedState.cache),u=u.memoizedState.cache,u!==a&&(u.refCount++,a!=null&&pu(a)));break;case 12:if(C&2048){Dl(a,u,h,S),a=u.stateNode;try{var R=u.memoizedProps,G=R.id,ne=R.onPostCommit;typeof ne=="function"&&ne(G,u.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(de){Xn(u,u.return,de)}}else Dl(a,u,h,S);break;case 13:Dl(a,u,h,S);break;case 23:break;case 22:R=u.stateNode,G=u.alternate,u.memoizedState!==null?R._visibility&2?Dl(a,u,h,S):Mv(a,u):R._visibility&2?Dl(a,u,h,S):(R._visibility|=2,Ph(a,u,h,S,(u.subtreeFlags&10256)!==0)),C&2048&&g_(G,u);break;case 24:Dl(a,u,h,S),C&2048&&v_(u.alternate,u);break;default:Dl(a,u,h,S)}}function Ph(a,u,h,S,C){for(C=C&&(u.subtreeFlags&10256)!==0,u=u.child;u!==null;){var R=a,G=u,ne=h,de=S,_e=G.flags;switch(G.tag){case 0:case 11:case 15:Ph(R,G,ne,de,C),it(8,G);break;case 23:break;case 22:var qe=G.stateNode;G.memoizedState!==null?qe._visibility&2?Ph(R,G,ne,de,C):Mv(R,G):(qe._visibility|=2,Ph(R,G,ne,de,C)),C&&_e&2048&&g_(G.alternate,G);break;case 24:Ph(R,G,ne,de,C),C&&_e&2048&&v_(G.alternate,G);break;default:Ph(R,G,ne,de,C)}u=u.sibling}}function Mv(a,u){if(u.subtreeFlags&10256)for(u=u.child;u!==null;){var h=a,S=u,C=S.flags;switch(S.tag){case 22:Mv(h,S),C&2048&&g_(S.alternate,S);break;case 24:Mv(h,S),C&2048&&v_(S.alternate,S);break;default:Mv(h,S)}u=u.sibling}}var Lv=8192;function jh(a){if(a.subtreeFlags&Lv)for(a=a.child;a!==null;)KP(a),a=a.sibling}function KP(a){switch(a.tag){case 26:jh(a),a.flags&Lv&&a.memoizedState!==null&&qie(To,a.memoizedState,a.memoizedProps);break;case 5:jh(a);break;case 3:case 4:var u=To;To=$1(a.stateNode.containerInfo),jh(a),To=u;break;case 22:a.memoizedState===null&&(u=a.alternate,u!==null&&u.memoizedState!==null?(u=Lv,Lv=16777216,jh(a),Lv=u):jh(a));break;default:jh(a)}}function XP(a){var u=a.alternate;if(u!==null&&(a=u.child,a!==null)){u.child=null;do u=a.sibling,a.sibling=null,a=u;while(a!==null)}}function Iv(a){var u=a.deletions;if((a.flags&16)!==0){if(u!==null)for(var h=0;h<u.length;h++){var S=u[h];xn=S,JP(S,a)}XP(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)ZP(a),a=a.sibling}function ZP(a){switch(a.tag){case 0:case 11:case 15:Iv(a),a.flags&2048&&et(9,a,a.return);break;case 3:Iv(a);break;case 12:Iv(a);break;case 22:var u=a.stateNode;a.memoizedState!==null&&u._visibility&2&&(a.return===null||a.return.tag!==13)?(u._visibility&=-3,k1(a)):Iv(a);break;default:Iv(a)}}function k1(a){var u=a.deletions;if((a.flags&16)!==0){if(u!==null)for(var h=0;h<u.length;h++){var S=u[h];xn=S,JP(S,a)}XP(a)}for(a=a.child;a!==null;){switch(u=a,u.tag){case 0:case 11:case 15:et(8,u,u.return),k1(u);break;case 22:h=u.stateNode,h._visibility&2&&(h._visibility&=-3,k1(u));break;default:k1(u)}a=a.sibling}}function JP(a,u){for(;xn!==null;){var h=xn;switch(h.tag){case 0:case 11:case 15:et(8,h,u);break;case 23:case 22:if(h.memoizedState!==null&&h.memoizedState.cachePool!==null){var S=h.memoizedState.cachePool.pool;S!=null&&S.refCount++}break;case 24:pu(h.memoizedState.cache)}if(S=h.child,S!==null)S.return=h,xn=S;else e:for(h=a;xn!==null;){S=xn;var C=S.sibling,R=S.return;if(ni(S),S===h){xn=null;break e}if(C!==null){C.return=R,xn=C;break e}xn=R}}}var rie={getCacheForType:function(a){var u=ei(Ar),h=u.data.get(a);return h===void 0&&(h=a(),u.data.set(a,h)),h}},iie=typeof WeakMap=="function"?WeakMap:Map,Vn=0,ar=null,dn=null,Cn=0,Un=0,ha=null,nf=!1,Vh=!1,y_=!1,ku=0,Vr=0,rf=0,jd=0,b_=0,Ja=0,Uh=0,Fv=null,Uo=null,E_=!1,S_=0,R1=1/0,M1=null,of=null,$i=0,af=null,qh=null,Bh=0,T_=0,x_=null,ej=null,Pv=0,w_=null;function ma(){if((Vn&2)!==0&&Cn!==0)return Cn&-Cn;if(te.T!==null){var a=ks;return a!==0?a:k_()}return nr()}function tj(){Ja===0&&(Ja=(Cn&536870912)===0||Sn?pi():536870912);var a=So.current;return a!==null&&(a.flags|=32),Ja}function ga(a,u,h){(a===ar&&(Un===2||Un===9)||a.cancelPendingCommit!==null)&&($h(a,0),sf(a,Cn,Ja,!1)),On(a,h),((Vn&2)===0||a!==ar)&&(a===ar&&((Vn&2)===0&&(jd|=h),Vr===4&&sf(a,Cn,Ja,!1)),kl(a))}function nj(a,u,h){if((Vn&6)!==0)throw Error(r(327));var S=!h&&(u&124)===0&&(u&a.expiredLanes)===0||mt(a,u),C=S?sie(a,u):N_(a,u,!0),R=S;do{if(C===0){Vh&&!S&&sf(a,u,0,!1);break}else{if(h=a.current.alternate,R&&!oie(h)){C=N_(a,u,!1),R=!1;continue}if(C===2){if(R=u,a.errorRecoveryDisabledLanes&R)var G=0;else G=a.pendingLanes&-536870913,G=G!==0?G:G&536870912?536870912:0;if(G!==0){u=G;e:{var ne=a;C=Fv;var de=ne.current.memoizedState.isDehydrated;if(de&&($h(ne,G).flags|=256),G=N_(ne,G,!1),G!==2){if(y_&&!de){ne.errorRecoveryDisabledLanes|=R,jd|=R,C=4;break e}R=Uo,Uo=C,R!==null&&(Uo===null?Uo=R:Uo.push.apply(Uo,R))}C=G}if(R=!1,C!==2)continue}}if(C===1){$h(a,0),sf(a,u,0,!0);break}e:{switch(S=a,R=C,R){case 0:case 1:throw Error(r(345));case 4:if((u&4194048)!==u)break;case 6:sf(S,u,Ja,!nf);break e;case 2:Uo=null;break;case 3:case 5:break;default:throw Error(r(329))}if((u&62914560)===u&&(C=S_+300-oe(),10<C)){if(sf(S,u,Ja,!nf),yn(S,0,!0)!==0)break e;S.timeoutHandle=kj(rj.bind(null,S,h,Uo,M1,E_,u,Ja,jd,Uh,nf,R,2,-0,0),C);break e}rj(S,h,Uo,M1,E_,u,Ja,jd,Uh,nf,R,0,-0,0)}}break}while(!0);kl(a)}function rj(a,u,h,S,C,R,G,ne,de,_e,qe,He,De,Re){if(a.timeoutHandle=-1,He=u.subtreeFlags,(He&8192||(He&16785408)===16785408)&&(zv={stylesheets:null,count:0,unsuspend:Uie},KP(u),He=Bie(),He!==null)){a.cancelPendingCommit=He(cj.bind(null,a,u,R,h,S,C,G,ne,de,qe,1,De,Re)),sf(a,R,G,!_e);return}cj(a,u,R,h,S,C,G,ne,de)}function oie(a){for(var u=a;;){var h=u.tag;if((h===0||h===11||h===15)&&u.flags&16384&&(h=u.updateQueue,h!==null&&(h=h.stores,h!==null)))for(var S=0;S<h.length;S++){var C=h[S],R=C.getSnapshot;C=C.value;try{if(!Zr(R(),C))return!1}catch{return!1}}if(h=u.child,u.subtreeFlags&16384&&h!==null)h.return=u,u=h;else{if(u===a)break;for(;u.sibling===null;){if(u.return===null||u.return===a)return!0;u=u.return}u.sibling.return=u.return,u=u.sibling}}return!0}function sf(a,u,h,S){u&=~b_,u&=~jd,a.suspendedLanes|=u,a.pingedLanes&=~u,S&&(a.warmLanes|=u),S=a.expirationTimes;for(var C=u;0<C;){var R=31-Et(C),G=1<<R;S[R]=-1,C&=~G}h!==0&&wt(a,h,u)}function L1(){return(Vn&6)===0?(jv(0),!1):!0}function C_(){if(dn!==null){if(Un===0)var a=dn.return;else a=dn,jn=hr=null,xl(a),Ya=null,Ps=0,a=dn;for(;a!==null;)rt(a.alternate,a),a=a.return;dn=null}}function $h(a,u){var h=a.timeoutHandle;h!==-1&&(a.timeoutHandle=-1,xie(h)),h=a.cancelPendingCommit,h!==null&&(a.cancelPendingCommit=null,h()),C_(),ar=a,dn=h=aa(a.current,null),Cn=u,Un=0,ha=null,nf=!1,Vh=mt(a,u),y_=!1,Uh=Ja=b_=jd=rf=Vr=0,Uo=Fv=null,E_=!1,(u&8)!==0&&(u|=u&32);var S=a.entangledLanes;if(S!==0)for(a=a.entanglements,S&=u;0<S;){var C=31-Et(S),R=1<<C;u|=a[C],S&=~R}return ku=u,wc(),h}function ij(a,u){Ht=null,te.H=Wc,u===hu||u===Mc?(u=Ba(),Un=3):u===bd?(u=Ba(),Un=4):Un=u===kh?8:u!==null&&typeof u=="object"&&typeof u.then=="function"?6:1,ha=u,dn===null&&(Vr=1,ao(a,xi(u,a.current)))}function oj(){var a=te.H;return te.H=Wc,a===null?Wc:a}function aj(){var a=te.A;return te.A=rie,a}function __(){Vr=4,nf||(Cn&4194048)!==Cn&&So.current!==null||(Vh=!0),(rf&134217727)===0&&(jd&134217727)===0||ar===null||sf(ar,Cn,Ja,!1)}function N_(a,u,h){var S=Vn;Vn|=2;var C=oj(),R=aj();(ar!==a||Cn!==u)&&(M1=null,$h(a,u)),u=!1;var G=Vr;e:do try{if(Un!==0&&dn!==null){var ne=dn,de=ha;switch(Un){case 8:C_(),G=6;break e;case 3:case 2:case 9:case 6:So.current===null&&(u=!0);var _e=Un;if(Un=0,ha=null,zh(a,ne,de,_e),h&&Vh){G=0;break e}break;default:_e=Un,Un=0,ha=null,zh(a,ne,de,_e)}}aie(),G=Vr;break}catch(qe){ij(a,qe)}while(!0);return u&&a.shellSuspendCounter++,jn=hr=null,Vn=S,te.H=C,te.A=R,dn===null&&(ar=null,Cn=0,wc()),G}function aie(){for(;dn!==null;)sj(dn)}function sie(a,u){var h=Vn;Vn|=2;var S=oj(),C=aj();ar!==a||Cn!==u?(M1=null,R1=oe()+500,$h(a,u)):Vh=mt(a,u);e:do try{if(Un!==0&&dn!==null){u=dn;var R=ha;t:switch(Un){case 1:Un=0,ha=null,zh(a,u,R,1);break;case 2:case 9:if(Ed(R)){Un=0,ha=null,lj(u);break}u=function(){Un!==2&&Un!==9||ar!==a||(Un=7),kl(a)},R.then(u,u);break e;case 3:Un=7;break e;case 4:Un=5;break e;case 7:Ed(R)?(Un=0,ha=null,lj(u)):(Un=0,ha=null,zh(a,u,R,7));break;case 5:var G=null;switch(dn.tag){case 26:G=dn.memoizedState;case 5:case 27:var ne=dn;if(!G||$j(G)){Un=0,ha=null;var de=ne.sibling;if(de!==null)dn=de;else{var _e=ne.return;_e!==null?(dn=_e,I1(_e)):dn=null}break t}}Un=0,ha=null,zh(a,u,R,5);break;case 6:Un=0,ha=null,zh(a,u,R,6);break;case 8:C_(),Vr=6;break e;default:throw Error(r(462))}}lie();break}catch(qe){ij(a,qe)}while(!0);return jn=hr=null,te.H=S,te.A=C,Vn=h,dn!==null?0:(ar=null,Cn=0,wc(),Vr)}function lie(){for(;dn!==null&&!Le();)sj(dn)}function sj(a){var u=H(a.alternate,a,ku);a.memoizedProps=a.pendingProps,u===null?I1(a):dn=u}function lj(a){var u=a,h=u.alternate;switch(u.tag){case 15:case 0:u=Zc(h,u,u.pendingProps,u.type,void 0,Cn);break;case 11:u=Zc(h,u,u.pendingProps,u.type.render,u.ref,Cn);break;case 5:xl(u);default:rt(h,u),u=dn=_c(u,ku),u=H(h,u,ku)}a.memoizedProps=a.pendingProps,u===null?I1(a):dn=u}function zh(a,u,h,S){jn=hr=null,xl(u),Ya=null,Ps=0;var C=u.return;try{if(Ov(a,C,u,h,Cn)){Vr=1,ao(a,xi(h,a.current)),dn=null;return}}catch(R){if(C!==null)throw dn=C,R;Vr=1,ao(a,xi(h,a.current)),dn=null;return}u.flags&32768?(Sn||S===1?a=!0:Vh||(Cn&536870912)!==0?a=!1:(nf=a=!0,(S===2||S===9||S===3||S===6)&&(S=So.current,S!==null&&S.tag===13&&(S.flags|=16384))),uj(u,a)):I1(u)}function I1(a){var u=a;do{if((u.flags&32768)!==0){uj(u,nf);return}a=u.return;var h=Ve(u.alternate,u,ku);if(h!==null){dn=h;return}if(u=u.sibling,u!==null){dn=u;return}dn=u=a}while(u!==null);Vr===0&&(Vr=5)}function uj(a,u){do{var h=Xe(a.alternate,a);if(h!==null){h.flags&=32767,dn=h;return}if(h=a.return,h!==null&&(h.flags|=32768,h.subtreeFlags=0,h.deletions=null),!u&&(a=a.sibling,a!==null)){dn=a;return}dn=a=h}while(a!==null);Vr=6,dn=null}function cj(a,u,h,S,C,R,G,ne,de){a.cancelPendingCommit=null;do F1();while($i!==0);if((Vn&6)!==0)throw Error(r(327));if(u!==null){if(u===a.current)throw Error(r(177));if(R=u.lanes|u.childLanes,R|=ml,Zi(a,h,R,G,ne,de),a===ar&&(dn=ar=null,Cn=0),qh=u,af=a,Bh=h,T_=R,x_=C,ej=S,(u.subtreeFlags&10256)!==0||(u.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,die(We,function(){return mj(),null})):(a.callbackNode=null,a.callbackPriority=0),S=(u.flags&13878)!==0,(u.subtreeFlags&13878)!==0||S){S=te.T,te.T=null,C=re.p,re.p=2,G=Vn,Vn|=4;try{Jc(a,u,h)}finally{Vn=G,re.p=C,te.T=S}}$i=1,fj(),dj(),pj()}}function fj(){if($i===1){$i=0;var a=af,u=qh,h=(u.flags&13878)!==0;if((u.subtreeFlags&13878)!==0||h){h=te.T,te.T=null;var S=re.p;re.p=2;var C=Vn;Vn|=4;try{YP(u,a);var R=V_,G=Zp(a.containerInfo),ne=R.focusedElem,de=R.selectionRange;if(G!==ne&&ne&&ne.ownerDocument&&Tc(ne.ownerDocument.documentElement,ne)){if(de!==null&&iu(ne)){var _e=de.start,qe=de.end;if(qe===void 0&&(qe=_e),"selectionStart"in ne)ne.selectionStart=_e,ne.selectionEnd=Math.min(qe,ne.value.length);else{var He=ne.ownerDocument||document,De=He&&He.defaultView||window;if(De.getSelection){var Re=De.getSelection(),Ut=ne.textContent.length,Rt=Math.min(de.start,Ut),Wn=de.end===void 0?Rt:Math.min(de.end,Ut);!Re.extend&&Rt>Wn&&(G=Wn,Wn=Rt,Rt=G);var Te=dd(ne,Rt),ve=dd(ne,Wn);if(Te&&ve&&(Re.rangeCount!==1||Re.anchorNode!==Te.node||Re.anchorOffset!==Te.offset||Re.focusNode!==ve.node||Re.focusOffset!==ve.offset)){var Ce=He.createRange();Ce.setStart(Te.node,Te.offset),Re.removeAllRanges(),Rt>Wn?(Re.addRange(Ce),Re.extend(ve.node,ve.offset)):(Ce.setEnd(ve.node,ve.offset),Re.addRange(Ce))}}}}for(He=[],Re=ne;Re=Re.parentNode;)Re.nodeType===1&&He.push({element:Re,left:Re.scrollLeft,top:Re.scrollTop});for(typeof ne.focus=="function"&&ne.focus(),ne=0;ne<He.length;ne++){var Be=He[ne];Be.element.scrollLeft=Be.left,Be.element.scrollTop=Be.top}}W1=!!j_,V_=j_=null}finally{Vn=C,re.p=S,te.T=h}}a.current=u,$i=2}}function dj(){if($i===2){$i=0;var a=af,u=qh,h=(u.flags&8772)!==0;if((u.subtreeFlags&8772)!==0||h){h=te.T,te.T=null;var S=re.p;re.p=2;var C=Vn;Vn|=4;try{Vs(a,u.alternate,u)}finally{Vn=C,re.p=S,te.T=h}}$i=3}}function pj(){if($i===4||$i===3){$i=0,be();var a=af,u=qh,h=Bh,S=ej;(u.subtreeFlags&10256)!==0||(u.flags&10256)!==0?$i=5:($i=0,qh=af=null,hj(a,a.pendingLanes));var C=a.pendingLanes;if(C===0&&(of=null),Rn(h),u=u.stateNode,jt&&typeof jt.onCommitFiberRoot=="function")try{jt.onCommitFiberRoot(Dt,u,void 0,(u.current.flags&128)===128)}catch{}if(S!==null){u=te.T,C=re.p,re.p=2,te.T=null;try{for(var R=a.onRecoverableError,G=0;G<S.length;G++){var ne=S[G];R(ne.value,{componentStack:ne.stack})}}finally{te.T=u,re.p=C}}(Bh&3)!==0&&F1(),kl(a),C=a.pendingLanes,(h&4194090)!==0&&(C&42)!==0?a===w_?Pv++:(Pv=0,w_=a):Pv=0,jv(0)}}function hj(a,u){(a.pooledCacheLanes&=u)===0&&(u=a.pooledCache,u!=null&&(a.pooledCache=null,pu(u)))}function F1(a){return fj(),dj(),pj(),mj()}function mj(){if($i!==5)return!1;var a=af,u=T_;T_=0;var h=Rn(Bh),S=te.T,C=re.p;try{re.p=32>h?32:h,te.T=null,h=x_,x_=null;var R=af,G=Bh;if($i=0,qh=af=null,Bh=0,(Vn&6)!==0)throw Error(r(331));var ne=Vn;if(Vn|=4,ZP(R.current),QP(R,R.current,G,h),Vn=ne,jv(0,!1),jt&&typeof jt.onPostCommitFiberRoot=="function")try{jt.onPostCommitFiberRoot(Dt,R)}catch{}return!0}finally{re.p=C,te.T=S,hj(a,u)}}function gj(a,u,h){u=xi(h,u),u=Xc(a.stateNode,u,2),a=za(a,u,2),a!==null&&(On(a,2),kl(a))}function Xn(a,u,h){if(a.tag===3)gj(a,a,h);else for(;u!==null;){if(u.tag===3){gj(u,a,h);break}else if(u.tag===1){var S=u.stateNode;if(typeof u.type.getDerivedStateFromError=="function"||typeof S.componentDidCatch=="function"&&(of===null||!of.has(S))){a=xi(h,a),h=Oh(2),S=za(u,h,2),S!==null&&(Dh(h,S,u,a),On(S,2),kl(S));break}}u=u.return}}function A_(a,u,h){var S=a.pingCache;if(S===null){S=a.pingCache=new iie;var C=new Set;S.set(u,C)}else C=S.get(u),C===void 0&&(C=new Set,S.set(u,C));C.has(h)||(y_=!0,C.add(h),a=uie.bind(null,a,u,h),u.then(a,a))}function uie(a,u,h){var S=a.pingCache;S!==null&&S.delete(u),a.pingedLanes|=a.suspendedLanes&h,a.warmLanes&=~h,ar===a&&(Cn&h)===h&&(Vr===4||Vr===3&&(Cn&62914560)===Cn&&300>oe()-S_?(Vn&2)===0&&$h(a,0):b_|=h,Uh===Cn&&(Uh=0)),kl(a)}function vj(a,u){u===0&&(u=an()),a=lu(a,u),a!==null&&(On(a,u),kl(a))}function cie(a){var u=a.memoizedState,h=0;u!==null&&(h=u.retryLane),vj(a,h)}function fie(a,u){var h=0;switch(a.tag){case 13:var S=a.stateNode,C=a.memoizedState;C!==null&&(h=C.retryLane);break;case 19:S=a.stateNode;break;case 22:S=a.stateNode._retryCache;break;default:throw Error(r(314))}S!==null&&S.delete(u),vj(a,h)}function die(a,u){return Oe(a,u)}var P1=null,Hh=null,O_=!1,j1=!1,D_=!1,Vd=0;function kl(a){a!==Hh&&a.next===null&&(Hh===null?P1=Hh=a:Hh=Hh.next=a),j1=!0,O_||(O_=!0,hie())}function jv(a,u){if(!D_&&j1){D_=!0;do for(var h=!1,S=P1;S!==null;){if(a!==0){var C=S.pendingLanes;if(C===0)var R=0;else{var G=S.suspendedLanes,ne=S.pingedLanes;R=(1<<31-Et(42|a)+1)-1,R&=C&~(G&~ne),R=R&201326741?R&201326741|1:R?R|2:0}R!==0&&(h=!0,Sj(S,R))}else R=Cn,R=yn(S,S===ar?R:0,S.cancelPendingCommit!==null||S.timeoutHandle!==-1),(R&3)===0||mt(S,R)||(h=!0,Sj(S,R));S=S.next}while(h);D_=!1}}function pie(){yj()}function yj(){j1=O_=!1;var a=0;Vd!==0&&(Tie()&&(a=Vd),Vd=0);for(var u=oe(),h=null,S=P1;S!==null;){var C=S.next,R=bj(S,u);R===0?(S.next=null,h===null?P1=C:h.next=C,C===null&&(Hh=h)):(h=S,(a!==0||(R&3)!==0)&&(j1=!0)),S=C}jv(a)}function bj(a,u){for(var h=a.suspendedLanes,S=a.pingedLanes,C=a.expirationTimes,R=a.pendingLanes&-62914561;0<R;){var G=31-Et(R),ne=1<<G,de=C[G];de===-1?((ne&h)===0||(ne&S)!==0)&&(C[G]=bn(ne,u)):de<=u&&(a.expiredLanes|=ne),R&=~ne}if(u=ar,h=Cn,h=yn(a,a===u?h:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),S=a.callbackNode,h===0||a===u&&(Un===2||Un===9)||a.cancelPendingCommit!==null)return S!==null&&S!==null&&ye(S),a.callbackNode=null,a.callbackPriority=0;if((h&3)===0||mt(a,h)){if(u=h&-h,u===a.callbackPriority)return u;switch(S!==null&&ye(S),Rn(h)){case 2:case 8:h=ct;break;case 32:h=We;break;case 268435456:h=$e;break;default:h=We}return S=Ej.bind(null,a),h=Oe(h,S),a.callbackPriority=u,a.callbackNode=h,u}return S!==null&&S!==null&&ye(S),a.callbackPriority=2,a.callbackNode=null,2}function Ej(a,u){if($i!==0&&$i!==5)return a.callbackNode=null,a.callbackPriority=0,null;var h=a.callbackNode;if(F1()&&a.callbackNode!==h)return null;var S=Cn;return S=yn(a,a===ar?S:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),S===0?null:(nj(a,S,u),bj(a,oe()),a.callbackNode!=null&&a.callbackNode===h?Ej.bind(null,a):null)}function Sj(a,u){if(F1())return null;nj(a,u,!0)}function hie(){wie(function(){(Vn&6)!==0?Oe(Je,pie):yj()})}function k_(){return Vd===0&&(Vd=pi()),Vd}function Tj(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:od(""+a)}function xj(a,u){var h=u.ownerDocument.createElement("input");return h.name=u.name,h.value=u.value,a.id&&h.setAttribute("form",a.id),u.parentNode.insertBefore(h,u),a=new FormData(a),h.parentNode.removeChild(h),a}function mie(a,u,h,S,C){if(u==="submit"&&h&&h.stateNode===C){var R=Tj((C[En]||null).action),G=S.submitter;G&&(u=(u=G[En]||null)?Tj(u.formAction):G.getAttribute("formAction"),u!==null&&(R=u,G=null));var ne=new qi("action","action",null,S,C);a.push({event:ne,listeners:[{instance:null,listener:function(){if(S.defaultPrevented){if(Vd!==0){var de=G?xj(C,G):new FormData(C);Cu(h,{pending:!0,data:de,method:C.method,action:R},null,de)}}else typeof R=="function"&&(ne.preventDefault(),de=G?xj(C,G):new FormData(C),Cu(h,{pending:!0,data:de,method:C.method,action:R},R,de))},currentTarget:C}]})}}for(var R_=0;R_<Jr.length;R_++){var M_=Jr[R_],gie=M_.toLowerCase(),vie=M_[0].toUpperCase()+M_.slice(1);Gr(gie,"on"+vie)}Gr(dl,"onAnimationEnd"),Gr(pl,"onAnimationIteration"),Gr(hd,"onAnimationStart"),Gr("dblclick","onDoubleClick"),Gr("focusin","onFocus"),Gr("focusout","onBlur"),Gr(th,"onTransitionRun"),Gr(Zg,"onTransitionStart"),Gr(nh,"onTransitionCancel"),Gr(Cs,"onTransitionEnd"),ko("onMouseEnter",["mouseout","mouseover"]),ko("onMouseLeave",["mouseout","mouseover"]),ko("onPointerEnter",["pointerout","pointerover"]),ko("onPointerLeave",["pointerout","pointerover"]),mo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),mo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),mo("onBeforeInput",["compositionend","keypress","textInput","paste"]),mo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),mo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),mo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Vv="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(" "),yie=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Vv));function wj(a,u){u=(u&4)!==0;for(var h=0;h<a.length;h++){var S=a[h],C=S.event;S=S.listeners;e:{var R=void 0;if(u)for(var G=S.length-1;0<=G;G--){var ne=S[G],de=ne.instance,_e=ne.currentTarget;if(ne=ne.listener,de!==R&&C.isPropagationStopped())break e;R=ne,C.currentTarget=_e;try{R(C)}catch(qe){Ln(qe)}C.currentTarget=null,R=de}else for(G=0;G<S.length;G++){if(ne=S[G],de=ne.instance,_e=ne.currentTarget,ne=ne.listener,de!==R&&C.isPropagationStopped())break e;R=ne,C.currentTarget=_e;try{R(C)}catch(qe){Ln(qe)}C.currentTarget=null,R=de}}}}function pn(a,u){var h=u[Jo];h===void 0&&(h=u[Jo]=new Set);var S=a+"__bubble";h.has(S)||(Cj(u,a,2,!1),h.add(S))}function L_(a,u,h){var S=0;u&&(S|=4),Cj(h,a,S,u)}var V1="_reactListening"+Math.random().toString(36).slice(2);function I_(a){if(!a[V1]){a[V1]=!0,Ji.forEach(function(h){h!=="selectionchange"&&(yie.has(h)||L_(h,!1,a),L_(h,!0,a))});var u=a.nodeType===9?a:a.ownerDocument;u===null||u[V1]||(u[V1]=!0,L_("selectionchange",!1,u))}}function Cj(a,u,h,S){switch(Qj(u)){case 2:var C=Hie;break;case 8:C=Gie;break;default:C=Q_}h=C.bind(null,u,h,a),C=void 0,!Up||u!=="touchstart"&&u!=="touchmove"&&u!=="wheel"||(C=!0),S?C!==void 0?a.addEventListener(u,h,{capture:!0,passive:C}):a.addEventListener(u,h,!0):C!==void 0?a.addEventListener(u,h,{passive:C}):a.addEventListener(u,h,!1)}function F_(a,u,h,S,C){var R=S;if((u&1)===0&&(u&2)===0&&S!==null)e:for(;;){if(S===null)return;var G=S.tag;if(G===3||G===4){var ne=S.stateNode.containerInfo;if(ne===C)break;if(G===4)for(G=S.return;G!==null;){var de=G.tag;if((de===3||de===4)&&G.stateNode.containerInfo===C)return;G=G.return}for(;ne!==null;){if(G=Pi(ne),G===null)return;if(de=G.tag,de===5||de===6||de===26||de===27){S=R=G;continue e}ne=ne.parentNode}}S=S.return}Lg(function(){var _e=R,qe=Zl(h),He=[];e:{var De=_s.get(a);if(De!==void 0){var Re=qi,Ut=a;switch(a){case"keypress":if(dc(h)===0)break e;case"keydown":case"keyup":Re=ud;break;case"focusin":Ut="focus",Re=Bp;break;case"focusout":Ut="blur",Re=Bp;break;case"beforeblur":case"afterblur":Re=Bp;break;case"click":if(h.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Re=ia;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Re=qp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Re=b1;break;case dl:case pl:case hd:Re=p_;break;case Cs:Re=Pr;break;case"scroll":case"scrollend":Re=p1;break;case"wheel":Re=qg;break;case"copy":case"cut":case"paste":Re=Ig;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Re=Ug;break;case"toggle":case"beforetoggle":Re=S1}var Rt=(u&4)!==0,Wn=!Rt&&(a==="scroll"||a==="scrollend"),Te=Rt?De!==null?De+"Capture":null:De;Rt=[];for(var ve=_e,Ce;ve!==null;){var Be=ve;if(Ce=Be.stateNode,Be=Be.tag,Be!==5&&Be!==26&&Be!==27||Ce===null||Te===null||(Be=al(ve,Te),Be!=null&&Rt.push(Uv(ve,Be,Ce))),Wn)break;ve=ve.return}0<Rt.length&&(De=new Re(De,Ut,null,h,qe),He.push({event:De,listeners:Rt}))}}if((u&7)===0){e:{if(De=a==="mouseover"||a==="pointerover",Re=a==="mouseout"||a==="pointerout",De&&h!==jp&&(Ut=h.relatedTarget||h.fromElement)&&(Pi(Ut)||Ut[Fi]))break e;if((Re||De)&&(De=qe.window===qe?qe:(De=qe.ownerDocument)?De.defaultView||De.parentWindow:window,Re?(Ut=h.relatedTarget||h.toElement,Re=_e,Ut=Ut?Pi(Ut):null,Ut!==null&&(Wn=o(Ut),Rt=Ut.tag,Ut!==Wn||Rt!==5&&Rt!==27&&Rt!==6)&&(Ut=null)):(Re=null,Ut=_e),Re!==Ut)){if(Rt=ia,Be="onMouseLeave",Te="onMouseEnter",ve="mouse",(a==="pointerout"||a==="pointerover")&&(Rt=Ug,Be="onPointerLeave",Te="onPointerEnter",ve="pointer"),Wn=Re==null?De:Do(Re),Ce=Ut==null?De:Do(Ut),De=new Rt(Be,ve+"leave",Re,h,qe),De.target=Wn,De.relatedTarget=Ce,Be=null,Pi(qe)===_e&&(Rt=new Rt(Te,ve+"enter",Ut,h,qe),Rt.target=Ce,Rt.relatedTarget=Wn,Be=Rt),Wn=Be,Re&&Ut)t:{for(Rt=Re,Te=Ut,ve=0,Ce=Rt;Ce;Ce=Gh(Ce))ve++;for(Ce=0,Be=Te;Be;Be=Gh(Be))Ce++;for(;0<ve-Ce;)Rt=Gh(Rt),ve--;for(;0<Ce-ve;)Te=Gh(Te),Ce--;for(;ve--;){if(Rt===Te||Te!==null&&Rt===Te.alternate)break t;Rt=Gh(Rt),Te=Gh(Te)}Rt=null}else Rt=null;Re!==null&&_j(He,De,Re,Rt,!1),Ut!==null&&Wn!==null&&_j(He,Wn,Ut,Rt,!0)}}e:{if(De=_e?Do(_e):window,Re=De.nodeName&&De.nodeName.toLowerCase(),Re==="select"||Re==="input"&&De.type==="file")var Tt=Yg;else if(Wp(De))if(Qp)Tt=Qg;else{Tt=w1;var ln=x1}else Re=De.nodeName,!Re||Re.toLowerCase()!=="input"||De.type!=="checkbox"&&De.type!=="radio"?_e&&Pp(_e.elementType)&&(Tt=Yg):Tt=C1;if(Tt&&(Tt=Tt(a,_e))){Ro(He,Tt,h,qe);break e}ln&&ln(a,De,_e),a==="focusout"&&_e&&De.type==="number"&&_e.memoizedProps.value!=null&&fc(De,"number",De.value)}switch(ln=_e?Do(_e):window,a){case"focusin":(Wp(ln)||ln.contentEditable==="true")&&(cl=ln,xc=_e,fl=null);break;case"focusout":fl=xc=cl=null;break;case"mousedown":pd=!0;break;case"contextmenu":case"mouseup":case"dragend":pd=!1,Jp(He,h,qe);break;case"selectionchange":if(Io)break;case"keydown":case"keyup":Jp(He,h,qe)}var Nt;if(zp)e:{switch(a){case"compositionstart":var Lt="onCompositionStart";break e;case"compositionend":Lt="onCompositionEnd";break e;case"compositionupdate":Lt="onCompositionUpdate";break e}Lt=void 0}else oa?Gp(a,h)&&(Lt="onCompositionEnd"):a==="keydown"&&h.keyCode===229&&(Lt="onCompositionStart");Lt&&(zg&&h.locale!=="ko"&&(oa||Lt!=="onCompositionStart"?Lt==="onCompositionEnd"&&oa&&(Nt=ad()):(Ma=qe,tu="value"in Ma?Ma.value:Ma.textContent,oa=!0)),ln=U1(_e,Lt),0<ln.length&&(Lt=new Pg(Lt,a,null,h,qe),He.push({event:Lt,listeners:ln}),Nt?Lt.data=Nt:(Nt=Gg(h),Nt!==null&&(Lt.data=Nt)))),(Nt=$g?La(a,h):fd(a,h))&&(Lt=U1(_e,"onBeforeInput"),0<Lt.length&&(ln=new Pg("onBeforeInput","beforeinput",null,h,qe),He.push({event:ln,listeners:Lt}),ln.data=Nt)),mie(He,a,_e,h,qe)}wj(He,u)})}function Uv(a,u,h){return{instance:a,listener:u,currentTarget:h}}function U1(a,u){for(var h=u+"Capture",S=[];a!==null;){var C=a,R=C.stateNode;if(C=C.tag,C!==5&&C!==26&&C!==27||R===null||(C=al(a,h),C!=null&&S.unshift(Uv(a,C,R)),C=al(a,u),C!=null&&S.push(Uv(a,C,R))),a.tag===3)return S;a=a.return}return[]}function Gh(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function _j(a,u,h,S,C){for(var R=u._reactName,G=[];h!==null&&h!==S;){var ne=h,de=ne.alternate,_e=ne.stateNode;if(ne=ne.tag,de!==null&&de===S)break;ne!==5&&ne!==26&&ne!==27||_e===null||(de=_e,C?(_e=al(h,R),_e!=null&&G.unshift(Uv(h,_e,de))):C||(_e=al(h,R),_e!=null&&G.push(Uv(h,_e,de)))),h=h.return}G.length!==0&&a.push({event:u,listeners:G})}var bie=/\r\n?/g,Eie=/\u0000|\uFFFD/g;function Nj(a){return(typeof a=="string"?a:""+a).replace(bie,`
`).replace(Eie,"")}function Aj(a,u){return u=Nj(u),Nj(a)===u}function q1(){}function Yn(a,u,h,S,C,R){switch(h){case"children":typeof S=="string"?u==="body"||u==="textarea"&&S===""||ol(a,S):(typeof S=="number"||typeof S=="bigint")&&u!=="body"&&ol(a,""+S);break;case"className":sn(a,"class",S);break;case"tabIndex":sn(a,"tabindex",S);break;case"dir":case"role":case"viewBox":case"width":case"height":sn(a,h,S);break;case"style":Rg(a,S,R);break;case"data":if(u!=="object"){sn(a,"data",S);break}case"src":case"href":if(S===""&&(u!=="a"||h!=="href")){a.removeAttribute(h);break}if(S==null||typeof S=="function"||typeof S=="symbol"||typeof S=="boolean"){a.removeAttribute(h);break}S=od(""+S),a.setAttribute(h,S);break;case"action":case"formAction":if(typeof S=="function"){a.setAttribute(h,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof R=="function"&&(h==="formAction"?(u!=="input"&&Yn(a,u,"name",C.name,C,null),Yn(a,u,"formEncType",C.formEncType,C,null),Yn(a,u,"formMethod",C.formMethod,C,null),Yn(a,u,"formTarget",C.formTarget,C,null)):(Yn(a,u,"encType",C.encType,C,null),Yn(a,u,"method",C.method,C,null),Yn(a,u,"target",C.target,C,null)));if(S==null||typeof S=="symbol"||typeof S=="boolean"){a.removeAttribute(h);break}S=od(""+S),a.setAttribute(h,S);break;case"onClick":S!=null&&(a.onclick=q1);break;case"onScroll":S!=null&&pn("scroll",a);break;case"onScrollEnd":S!=null&&pn("scrollend",a);break;case"dangerouslySetInnerHTML":if(S!=null){if(typeof S!="object"||!("__html"in S))throw Error(r(61));if(h=S.__html,h!=null){if(C.children!=null)throw Error(r(60));a.innerHTML=h}}break;case"multiple":a.multiple=S&&typeof S!="function"&&typeof S!="symbol";break;case"muted":a.muted=S&&typeof S!="function"&&typeof S!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(S==null||typeof S=="function"||typeof S=="boolean"||typeof S=="symbol"){a.removeAttribute("xlink:href");break}h=od(""+S),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",h);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":S!=null&&typeof S!="function"&&typeof S!="symbol"?a.setAttribute(h,""+S):a.removeAttribute(h);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":S&&typeof S!="function"&&typeof S!="symbol"?a.setAttribute(h,""):a.removeAttribute(h);break;case"capture":case"download":S===!0?a.setAttribute(h,""):S!==!1&&S!=null&&typeof S!="function"&&typeof S!="symbol"?a.setAttribute(h,S):a.removeAttribute(h);break;case"cols":case"rows":case"size":case"span":S!=null&&typeof S!="function"&&typeof S!="symbol"&&!isNaN(S)&&1<=S?a.setAttribute(h,S):a.removeAttribute(h);break;case"rowSpan":case"start":S==null||typeof S=="function"||typeof S=="symbol"||isNaN(S)?a.removeAttribute(h):a.setAttribute(h,S);break;case"popover":pn("beforetoggle",a),pn("toggle",a),Hr(a,"popover",S);break;case"xlinkActuate":Fr(a,"http://www.w3.org/1999/xlink","xlink:actuate",S);break;case"xlinkArcrole":Fr(a,"http://www.w3.org/1999/xlink","xlink:arcrole",S);break;case"xlinkRole":Fr(a,"http://www.w3.org/1999/xlink","xlink:role",S);break;case"xlinkShow":Fr(a,"http://www.w3.org/1999/xlink","xlink:show",S);break;case"xlinkTitle":Fr(a,"http://www.w3.org/1999/xlink","xlink:title",S);break;case"xlinkType":Fr(a,"http://www.w3.org/1999/xlink","xlink:type",S);break;case"xmlBase":Fr(a,"http://www.w3.org/XML/1998/namespace","xml:base",S);break;case"xmlLang":Fr(a,"http://www.w3.org/XML/1998/namespace","xml:lang",S);break;case"xmlSpace":Fr(a,"http://www.w3.org/XML/1998/namespace","xml:space",S);break;case"is":Hr(a,"is",S);break;case"innerText":case"textContent":break;default:(!(2<h.length)||h[0]!=="o"&&h[0]!=="O"||h[1]!=="n"&&h[1]!=="N")&&(h=d1.get(h)||h,Hr(a,h,S))}}function P_(a,u,h,S,C,R){switch(h){case"style":Rg(a,S,R);break;case"dangerouslySetInnerHTML":if(S!=null){if(typeof S!="object"||!("__html"in S))throw Error(r(61));if(h=S.__html,h!=null){if(C.children!=null)throw Error(r(60));a.innerHTML=h}}break;case"children":typeof S=="string"?ol(a,S):(typeof S=="number"||typeof S=="bigint")&&ol(a,""+S);break;case"onScroll":S!=null&&pn("scroll",a);break;case"onScrollEnd":S!=null&&pn("scrollend",a);break;case"onClick":S!=null&&(a.onclick=q1);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ji.hasOwnProperty(h))e:{if(h[0]==="o"&&h[1]==="n"&&(C=h.endsWith("Capture"),u=h.slice(2,C?h.length-7:void 0),R=a[En]||null,R=R!=null?R[h]:null,typeof R=="function"&&a.removeEventListener(u,R,C),typeof S=="function")){typeof R!="function"&&R!==null&&(h in a?a[h]=null:a.hasAttribute(h)&&a.removeAttribute(h)),a.addEventListener(u,S,C);break e}h in a?a[h]=S:S===!0?a.setAttribute(h,""):Hr(a,h,S)}}}function zi(a,u,h){switch(u){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":pn("error",a),pn("load",a);var S=!1,C=!1,R;for(R in h)if(h.hasOwnProperty(R)){var G=h[R];if(G!=null)switch(R){case"src":S=!0;break;case"srcSet":C=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,u));default:Yn(a,u,R,G,h,null)}}C&&Yn(a,u,"srcSet",h.srcSet,h,null),S&&Yn(a,u,"src",h.src,h,null);return;case"input":pn("invalid",a);var ne=R=G=C=null,de=null,_e=null;for(S in h)if(h.hasOwnProperty(S)){var qe=h[S];if(qe!=null)switch(S){case"name":C=qe;break;case"type":G=qe;break;case"checked":de=qe;break;case"defaultChecked":_e=qe;break;case"value":R=qe;break;case"defaultValue":ne=qe;break;case"children":case"dangerouslySetInnerHTML":if(qe!=null)throw Error(r(137,u));break;default:Yn(a,u,S,qe,h,null)}}Xl(a,R,ne,de,_e,G,C,!1),Nr(a);return;case"select":pn("invalid",a),S=G=R=null;for(C in h)if(h.hasOwnProperty(C)&&(ne=h[C],ne!=null))switch(C){case"value":R=ne;break;case"defaultValue":G=ne;break;case"multiple":S=ne;default:Yn(a,u,C,ne,h,null)}u=R,h=G,a.multiple=!!S,u!=null?il(a,!!S,u,!1):h!=null&&il(a,!!S,h,!0);return;case"textarea":pn("invalid",a),R=C=S=null;for(G in h)if(h.hasOwnProperty(G)&&(ne=h[G],ne!=null))switch(G){case"value":S=ne;break;case"defaultValue":C=ne;break;case"children":R=ne;break;case"dangerouslySetInnerHTML":if(ne!=null)throw Error(r(91));break;default:Yn(a,u,G,ne,h,null)}Dg(a,S,C,R),Nr(a);return;case"option":for(de in h)if(h.hasOwnProperty(de)&&(S=h[de],S!=null))switch(de){case"selected":a.selected=S&&typeof S!="function"&&typeof S!="symbol";break;default:Yn(a,u,de,S,h,null)}return;case"dialog":pn("beforetoggle",a),pn("toggle",a),pn("cancel",a),pn("close",a);break;case"iframe":case"object":pn("load",a);break;case"video":case"audio":for(S=0;S<Vv.length;S++)pn(Vv[S],a);break;case"image":pn("error",a),pn("load",a);break;case"details":pn("toggle",a);break;case"embed":case"source":case"link":pn("error",a),pn("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(_e in h)if(h.hasOwnProperty(_e)&&(S=h[_e],S!=null))switch(_e){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,u));default:Yn(a,u,_e,S,h,null)}return;default:if(Pp(u)){for(qe in h)h.hasOwnProperty(qe)&&(S=h[qe],S!==void 0&&P_(a,u,qe,S,h,void 0));return}}for(ne in h)h.hasOwnProperty(ne)&&(S=h[ne],S!=null&&Yn(a,u,ne,S,h,null))}function Sie(a,u,h,S){switch(u){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var C=null,R=null,G=null,ne=null,de=null,_e=null,qe=null;for(Re in h){var He=h[Re];if(h.hasOwnProperty(Re)&&He!=null)switch(Re){case"checked":break;case"value":break;case"defaultValue":de=He;default:S.hasOwnProperty(Re)||Yn(a,u,Re,null,S,He)}}for(var De in S){var Re=S[De];if(He=h[De],S.hasOwnProperty(De)&&(Re!=null||He!=null))switch(De){case"type":R=Re;break;case"name":C=Re;break;case"checked":_e=Re;break;case"defaultChecked":qe=Re;break;case"value":G=Re;break;case"defaultValue":ne=Re;break;case"children":case"dangerouslySetInnerHTML":if(Re!=null)throw Error(r(137,u));break;default:Re!==He&&Yn(a,u,De,Re,S,He)}}rd(a,G,ne,de,_e,qe,R,C);return;case"select":Re=G=ne=De=null;for(R in h)if(de=h[R],h.hasOwnProperty(R)&&de!=null)switch(R){case"value":break;case"multiple":Re=de;default:S.hasOwnProperty(R)||Yn(a,u,R,null,S,de)}for(C in S)if(R=S[C],de=h[C],S.hasOwnProperty(C)&&(R!=null||de!=null))switch(C){case"value":De=R;break;case"defaultValue":ne=R;break;case"multiple":G=R;default:R!==de&&Yn(a,u,C,R,S,de)}u=ne,h=G,S=Re,De!=null?il(a,!!h,De,!1):!!S!=!!h&&(u!=null?il(a,!!h,u,!0):il(a,!!h,h?[]:"",!1));return;case"textarea":Re=De=null;for(ne in h)if(C=h[ne],h.hasOwnProperty(ne)&&C!=null&&!S.hasOwnProperty(ne))switch(ne){case"value":break;case"children":break;default:Yn(a,u,ne,null,S,C)}for(G in S)if(C=S[G],R=h[G],S.hasOwnProperty(G)&&(C!=null||R!=null))switch(G){case"value":De=C;break;case"defaultValue":Re=C;break;case"children":break;case"dangerouslySetInnerHTML":if(C!=null)throw Error(r(91));break;default:C!==R&&Yn(a,u,G,C,S,R)}id(a,De,Re);return;case"option":for(var Ut in h)if(De=h[Ut],h.hasOwnProperty(Ut)&&De!=null&&!S.hasOwnProperty(Ut))switch(Ut){case"selected":a.selected=!1;break;default:Yn(a,u,Ut,null,S,De)}for(de in S)if(De=S[de],Re=h[de],S.hasOwnProperty(de)&&De!==Re&&(De!=null||Re!=null))switch(de){case"selected":a.selected=De&&typeof De!="function"&&typeof De!="symbol";break;default:Yn(a,u,de,De,S,Re)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Rt in h)De=h[Rt],h.hasOwnProperty(Rt)&&De!=null&&!S.hasOwnProperty(Rt)&&Yn(a,u,Rt,null,S,De);for(_e in S)if(De=S[_e],Re=h[_e],S.hasOwnProperty(_e)&&De!==Re&&(De!=null||Re!=null))switch(_e){case"children":case"dangerouslySetInnerHTML":if(De!=null)throw Error(r(137,u));break;default:Yn(a,u,_e,De,S,Re)}return;default:if(Pp(u)){for(var Wn in h)De=h[Wn],h.hasOwnProperty(Wn)&&De!==void 0&&!S.hasOwnProperty(Wn)&&P_(a,u,Wn,void 0,S,De);for(qe in S)De=S[qe],Re=h[qe],!S.hasOwnProperty(qe)||De===Re||De===void 0&&Re===void 0||P_(a,u,qe,De,S,Re);return}}for(var Te in h)De=h[Te],h.hasOwnProperty(Te)&&De!=null&&!S.hasOwnProperty(Te)&&Yn(a,u,Te,null,S,De);for(He in S)De=S[He],Re=h[He],!S.hasOwnProperty(He)||De===Re||De==null&&Re==null||Yn(a,u,He,De,S,Re)}var j_=null,V_=null;function B1(a){return a.nodeType===9?a:a.ownerDocument}function Oj(a){switch(a){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Dj(a,u){if(a===0)switch(u){case"svg":return 1;case"math":return 2;default:return 0}return a===1&&u==="foreignObject"?0:a}function U_(a,u){return a==="textarea"||a==="noscript"||typeof u.children=="string"||typeof u.children=="number"||typeof u.children=="bigint"||typeof u.dangerouslySetInnerHTML=="object"&&u.dangerouslySetInnerHTML!==null&&u.dangerouslySetInnerHTML.__html!=null}var q_=null;function Tie(){var a=window.event;return a&&a.type==="popstate"?a===q_?!1:(q_=a,!0):(q_=null,!1)}var kj=typeof setTimeout=="function"?setTimeout:void 0,xie=typeof clearTimeout=="function"?clearTimeout:void 0,Rj=typeof Promise=="function"?Promise:void 0,wie=typeof queueMicrotask=="function"?queueMicrotask:typeof Rj<"u"?function(a){return Rj.resolve(null).then(a).catch(Cie)}:kj;function Cie(a){setTimeout(function(){throw a})}function lf(a){return a==="head"}function Mj(a,u){var h=u,S=0,C=0;do{var R=h.nextSibling;if(a.removeChild(h),R&&R.nodeType===8)if(h=R.data,h==="/$"){if(0<S&&8>S){h=S;var G=a.ownerDocument;if(h&1&&qv(G.documentElement),h&2&&qv(G.body),h&4)for(h=G.head,qv(h),G=h.firstChild;G;){var ne=G.nextSibling,de=G.nodeName;G[$n]||de==="SCRIPT"||de==="STYLE"||de==="LINK"&&G.rel.toLowerCase()==="stylesheet"||h.removeChild(G),G=ne}}if(C===0){a.removeChild(R),Qv(u);return}C--}else h==="$"||h==="$?"||h==="$!"?C++:S=h.charCodeAt(0)-48;else S=0;h=R}while(h);Qv(u)}function B_(a){var u=a.firstChild;for(u&&u.nodeType===10&&(u=u.nextSibling);u;){var h=u;switch(u=u.nextSibling,h.nodeName){case"HTML":case"HEAD":case"BODY":B_(h),Ir(h);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(h.rel.toLowerCase()==="stylesheet")continue}a.removeChild(h)}}function _ie(a,u,h,S){for(;a.nodeType===1;){var C=h;if(a.nodeName.toLowerCase()!==u.toLowerCase()){if(!S&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(S){if(!a[$n])switch(u){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(R=a.getAttribute("rel"),R==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(R!==C.rel||a.getAttribute("href")!==(C.href==null||C.href===""?null:C.href)||a.getAttribute("crossorigin")!==(C.crossOrigin==null?null:C.crossOrigin)||a.getAttribute("title")!==(C.title==null?null:C.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(R=a.getAttribute("src"),(R!==(C.src==null?null:C.src)||a.getAttribute("type")!==(C.type==null?null:C.type)||a.getAttribute("crossorigin")!==(C.crossOrigin==null?null:C.crossOrigin))&&R&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(u==="input"&&a.type==="hidden"){var R=C.name==null?null:""+C.name;if(C.type==="hidden"&&a.getAttribute("name")===R)return a}else return a;if(a=Us(a.nextSibling),a===null)break}return null}function Nie(a,u,h){if(u==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!h||(a=Us(a.nextSibling),a===null))return null;return a}function $_(a){return a.data==="$!"||a.data==="$?"&&a.ownerDocument.readyState==="complete"}function Aie(a,u){var h=a.ownerDocument;if(a.data!=="$?"||h.readyState==="complete")u();else{var S=function(){u(),h.removeEventListener("DOMContentLoaded",S)};h.addEventListener("DOMContentLoaded",S),a._reactRetry=S}}function Us(a){for(;a!=null;a=a.nextSibling){var u=a.nodeType;if(u===1||u===3)break;if(u===8){if(u=a.data,u==="$"||u==="$!"||u==="$?"||u==="F!"||u==="F")break;if(u==="/$")return null}}return a}var z_=null;function Lj(a){a=a.previousSibling;for(var u=0;a;){if(a.nodeType===8){var h=a.data;if(h==="$"||h==="$!"||h==="$?"){if(u===0)return a;u--}else h==="/$"&&u++}a=a.previousSibling}return null}function Ij(a,u,h){switch(u=B1(h),a){case"html":if(a=u.documentElement,!a)throw Error(r(452));return a;case"head":if(a=u.head,!a)throw Error(r(453));return a;case"body":if(a=u.body,!a)throw Error(r(454));return a;default:throw Error(r(451))}}function qv(a){for(var u=a.attributes;u.length;)a.removeAttributeNode(u[0]);Ir(a)}var es=new Map,Fj=new Set;function $1(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}var Ru=re.d;re.d={f:Oie,r:Die,D:kie,C:Rie,L:Mie,m:Lie,X:Fie,S:Iie,M:Pie};function Oie(){var a=Ru.f(),u=L1();return a||u}function Die(a){var u=zr(a);u!==null&&u.tag===5&&u.type==="form"?Ev(u):Ru.r(a)}var Yh=typeof document>"u"?null:document;function Pj(a,u,h){var S=Yh;if(S&&typeof u=="string"&&u){var C=eo(u);C='link[rel="'+a+'"][href="'+C+'"]',typeof h=="string"&&(C+='[crossorigin="'+h+'"]'),Fj.has(C)||(Fj.add(C),a={rel:a,crossOrigin:h,href:u},S.querySelector(C)===null&&(u=S.createElement("link"),zi(u,"link",a),Mn(u),S.head.appendChild(u)))}}function kie(a){Ru.D(a),Pj("dns-prefetch",a,null)}function Rie(a,u){Ru.C(a,u),Pj("preconnect",a,u)}function Mie(a,u,h){Ru.L(a,u,h);var S=Yh;if(S&&a&&u){var C='link[rel="preload"][as="'+eo(u)+'"]';u==="image"&&h&&h.imageSrcSet?(C+='[imagesrcset="'+eo(h.imageSrcSet)+'"]',typeof h.imageSizes=="string"&&(C+='[imagesizes="'+eo(h.imageSizes)+'"]')):C+='[href="'+eo(a)+'"]';var R=C;switch(u){case"style":R=Wh(a);break;case"script":R=Qh(a)}es.has(R)||(a=m({rel:"preload",href:u==="image"&&h&&h.imageSrcSet?void 0:a,as:u},h),es.set(R,a),S.querySelector(C)!==null||u==="style"&&S.querySelector(Bv(R))||u==="script"&&S.querySelector($v(R))||(u=S.createElement("link"),zi(u,"link",a),Mn(u),S.head.appendChild(u)))}}function Lie(a,u){Ru.m(a,u);var h=Yh;if(h&&a){var S=u&&typeof u.as=="string"?u.as:"script",C='link[rel="modulepreload"][as="'+eo(S)+'"][href="'+eo(a)+'"]',R=C;switch(S){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":R=Qh(a)}if(!es.has(R)&&(a=m({rel:"modulepreload",href:a},u),es.set(R,a),h.querySelector(C)===null)){switch(S){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(h.querySelector($v(R)))return}S=h.createElement("link"),zi(S,"link",a),Mn(S),h.head.appendChild(S)}}}function Iie(a,u,h){Ru.S(a,u,h);var S=Yh;if(S&&a){var C=ho(S).hoistableStyles,R=Wh(a);u=u||"default";var G=C.get(R);if(!G){var ne={loading:0,preload:null};if(G=S.querySelector(Bv(R)))ne.loading=5;else{a=m({rel:"stylesheet",href:a,"data-precedence":u},h),(h=es.get(R))&&H_(a,h);var de=G=S.createElement("link");Mn(de),zi(de,"link",a),de._p=new Promise(function(_e,qe){de.onload=_e,de.onerror=qe}),de.addEventListener("load",function(){ne.loading|=1}),de.addEventListener("error",function(){ne.loading|=2}),ne.loading|=4,z1(G,u,S)}G={type:"stylesheet",instance:G,count:1,state:ne},C.set(R,G)}}}function Fie(a,u){Ru.X(a,u);var h=Yh;if(h&&a){var S=ho(h).hoistableScripts,C=Qh(a),R=S.get(C);R||(R=h.querySelector($v(C)),R||(a=m({src:a,async:!0},u),(u=es.get(C))&&G_(a,u),R=h.createElement("script"),Mn(R),zi(R,"link",a),h.head.appendChild(R)),R={type:"script",instance:R,count:1,state:null},S.set(C,R))}}function Pie(a,u){Ru.M(a,u);var h=Yh;if(h&&a){var S=ho(h).hoistableScripts,C=Qh(a),R=S.get(C);R||(R=h.querySelector($v(C)),R||(a=m({src:a,async:!0,type:"module"},u),(u=es.get(C))&&G_(a,u),R=h.createElement("script"),Mn(R),zi(R,"link",a),h.head.appendChild(R)),R={type:"script",instance:R,count:1,state:null},S.set(C,R))}}function jj(a,u,h,S){var C=(C=Se.current)?$1(C):null;if(!C)throw Error(r(446));switch(a){case"meta":case"title":return null;case"style":return typeof h.precedence=="string"&&typeof h.href=="string"?(u=Wh(h.href),h=ho(C).hoistableStyles,S=h.get(u),S||(S={type:"style",instance:null,count:0,state:null},h.set(u,S)),S):{type:"void",instance:null,count:0,state:null};case"link":if(h.rel==="stylesheet"&&typeof h.href=="string"&&typeof h.precedence=="string"){a=Wh(h.href);var R=ho(C).hoistableStyles,G=R.get(a);if(G||(C=C.ownerDocument||C,G={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},R.set(a,G),(R=C.querySelector(Bv(a)))&&!R._p&&(G.instance=R,G.state.loading=5),es.has(a)||(h={rel:"preload",as:"style",href:h.href,crossOrigin:h.crossOrigin,integrity:h.integrity,media:h.media,hrefLang:h.hrefLang,referrerPolicy:h.referrerPolicy},es.set(a,h),R||jie(C,a,h,G.state))),u&&S===null)throw Error(r(528,""));return G}if(u&&S!==null)throw Error(r(529,""));return null;case"script":return u=h.async,h=h.src,typeof h=="string"&&u&&typeof u!="function"&&typeof u!="symbol"?(u=Qh(h),h=ho(C).hoistableScripts,S=h.get(u),S||(S={type:"script",instance:null,count:0,state:null},h.set(u,S)),S):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,a))}}function Wh(a){return'href="'+eo(a)+'"'}function Bv(a){return'link[rel="stylesheet"]['+a+"]"}function Vj(a){return m({},a,{"data-precedence":a.precedence,precedence:null})}function jie(a,u,h,S){a.querySelector('link[rel="preload"][as="style"]['+u+"]")?S.loading=1:(u=a.createElement("link"),S.preload=u,u.addEventListener("load",function(){return S.loading|=1}),u.addEventListener("error",function(){return S.loading|=2}),zi(u,"link",h),Mn(u),a.head.appendChild(u))}function Qh(a){return'[src="'+eo(a)+'"]'}function $v(a){return"script[async]"+a}function Uj(a,u,h){if(u.count++,u.instance===null)switch(u.type){case"style":var S=a.querySelector('style[data-href~="'+eo(h.href)+'"]');if(S)return u.instance=S,Mn(S),S;var C=m({},h,{"data-href":h.href,"data-precedence":h.precedence,href:null,precedence:null});return S=(a.ownerDocument||a).createElement("style"),Mn(S),zi(S,"style",C),z1(S,h.precedence,a),u.instance=S;case"stylesheet":C=Wh(h.href);var R=a.querySelector(Bv(C));if(R)return u.state.loading|=4,u.instance=R,Mn(R),R;S=Vj(h),(C=es.get(C))&&H_(S,C),R=(a.ownerDocument||a).createElement("link"),Mn(R);var G=R;return G._p=new Promise(function(ne,de){G.onload=ne,G.onerror=de}),zi(R,"link",S),u.state.loading|=4,z1(R,h.precedence,a),u.instance=R;case"script":return R=Qh(h.src),(C=a.querySelector($v(R)))?(u.instance=C,Mn(C),C):(S=h,(C=es.get(R))&&(S=m({},h),G_(S,C)),a=a.ownerDocument||a,C=a.createElement("script"),Mn(C),zi(C,"link",S),a.head.appendChild(C),u.instance=C);case"void":return null;default:throw Error(r(443,u.type))}else u.type==="stylesheet"&&(u.state.loading&4)===0&&(S=u.instance,u.state.loading|=4,z1(S,h.precedence,a));return u.instance}function z1(a,u,h){for(var S=h.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),C=S.length?S[S.length-1]:null,R=C,G=0;G<S.length;G++){var ne=S[G];if(ne.dataset.precedence===u)R=ne;else if(R!==C)break}R?R.parentNode.insertBefore(a,R.nextSibling):(u=h.nodeType===9?h.head:h,u.insertBefore(a,u.firstChild))}function H_(a,u){a.crossOrigin==null&&(a.crossOrigin=u.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=u.referrerPolicy),a.title==null&&(a.title=u.title)}function G_(a,u){a.crossOrigin==null&&(a.crossOrigin=u.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=u.referrerPolicy),a.integrity==null&&(a.integrity=u.integrity)}var H1=null;function qj(a,u,h){if(H1===null){var S=new Map,C=H1=new Map;C.set(h,S)}else C=H1,S=C.get(h),S||(S=new Map,C.set(h,S));if(S.has(a))return S;for(S.set(a,null),h=h.getElementsByTagName(a),C=0;C<h.length;C++){var R=h[C];if(!(R[$n]||R[Gt]||a==="link"&&R.getAttribute("rel")==="stylesheet")&&R.namespaceURI!=="http://www.w3.org/2000/svg"){var G=R.getAttribute(u)||"";G=a+G;var ne=S.get(G);ne?ne.push(R):S.set(G,[R])}}return S}function Bj(a,u,h){a=a.ownerDocument||a,a.head.insertBefore(h,u==="title"?a.querySelector("head > title"):null)}function Vie(a,u,h){if(h===1||u.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof u.precedence!="string"||typeof u.href!="string"||u.href==="")break;return!0;case"link":if(typeof u.rel!="string"||typeof u.href!="string"||u.href===""||u.onLoad||u.onError)break;switch(u.rel){case"stylesheet":return a=u.disabled,typeof u.precedence=="string"&&a==null;default:return!0}case"script":if(u.async&&typeof u.async!="function"&&typeof u.async!="symbol"&&!u.onLoad&&!u.onError&&u.src&&typeof u.src=="string")return!0}return!1}function $j(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}var zv=null;function Uie(){}function qie(a,u,h){if(zv===null)throw Error(r(475));var S=zv;if(u.type==="stylesheet"&&(typeof h.media!="string"||matchMedia(h.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var C=Wh(h.href),R=a.querySelector(Bv(C));if(R){a=R._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(S.count++,S=G1.bind(S),a.then(S,S)),u.state.loading|=4,u.instance=R,Mn(R);return}R=a.ownerDocument||a,h=Vj(h),(C=es.get(C))&&H_(h,C),R=R.createElement("link"),Mn(R);var G=R;G._p=new Promise(function(ne,de){G.onload=ne,G.onerror=de}),zi(R,"link",h),u.instance=R}S.stylesheets===null&&(S.stylesheets=new Map),S.stylesheets.set(u,a),(a=u.state.preload)&&(u.state.loading&3)===0&&(S.count++,u=G1.bind(S),a.addEventListener("load",u),a.addEventListener("error",u))}}function Bie(){if(zv===null)throw Error(r(475));var a=zv;return a.stylesheets&&a.count===0&&Y_(a,a.stylesheets),0<a.count?function(u){var h=setTimeout(function(){if(a.stylesheets&&Y_(a,a.stylesheets),a.unsuspend){var S=a.unsuspend;a.unsuspend=null,S()}},6e4);return a.unsuspend=u,function(){a.unsuspend=null,clearTimeout(h)}}:null}function G1(){if(this.count--,this.count===0){if(this.stylesheets)Y_(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var Y1=null;function Y_(a,u){a.stylesheets=null,a.unsuspend!==null&&(a.count++,Y1=new Map,u.forEach($ie,a),Y1=null,G1.call(a))}function $ie(a,u){if(!(u.state.loading&4)){var h=Y1.get(a);if(h)var S=h.get(null);else{h=new Map,Y1.set(a,h);for(var C=a.querySelectorAll("link[data-precedence],style[data-precedence]"),R=0;R<C.length;R++){var G=C[R];(G.nodeName==="LINK"||G.getAttribute("media")!=="not all")&&(h.set(G.dataset.precedence,G),S=G)}S&&h.set(null,S)}C=u.instance,G=C.getAttribute("data-precedence"),R=h.get(G)||S,R===S&&h.set(null,C),h.set(G,C),this.count++,S=G1.bind(this),C.addEventListener("load",S),C.addEventListener("error",S),R?R.parentNode.insertBefore(C,R.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(C,a.firstChild)),u.state.loading|=4}}var Hv={$$typeof:O,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function zie(a,u,h,S,C,R,G,ne){this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Lr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Lr(0),this.hiddenUpdates=Lr(null),this.identifierPrefix=S,this.onUncaughtError=C,this.onCaughtError=R,this.onRecoverableError=G,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=ne,this.incompleteTransitions=new Map}function zj(a,u,h,S,C,R,G,ne,de,_e,qe,He){return a=new zie(a,u,h,G,ne,de,_e,He),u=1,R===!0&&(u|=24),R=Yr(3,null,null,u),a.current=R,R.stateNode=a,u=Rc(),u.refCount++,a.pooledCache=u,u.refCount++,R.memoizedState={element:S,isDehydrated:h,cache:u},dh(R),a}function Hj(a){return a?(a=Ns,a):Ns}function Gj(a,u,h,S,C,R){C=Hj(C),S.context===null?S.context=C:S.pendingContext=C,S=la(u),S.payload={element:h},R=R===void 0?null:R,R!==null&&(S.callback=R),h=za(a,S,u),h!==null&&(ga(h,a,u),Lc(h,a,u))}function Yj(a,u){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var h=a.retryLane;a.retryLane=h!==0&&h<u?h:u}}function W_(a,u){Yj(a,u),(a=a.alternate)&&Yj(a,u)}function Wj(a){if(a.tag===13){var u=lu(a,67108864);u!==null&&ga(u,a,67108864),W_(a,67108864)}}var W1=!0;function Hie(a,u,h,S){var C=te.T;te.T=null;var R=re.p;try{re.p=2,Q_(a,u,h,S)}finally{re.p=R,te.T=C}}function Gie(a,u,h,S){var C=te.T;te.T=null;var R=re.p;try{re.p=8,Q_(a,u,h,S)}finally{re.p=R,te.T=C}}function Q_(a,u,h,S){if(W1){var C=K_(S);if(C===null)F_(a,u,S,Q1,h),Kj(a,S);else if(Wie(C,a,u,h,S))S.stopPropagation();else if(Kj(a,S),u&4&&-1<Yie.indexOf(a)){for(;C!==null;){var R=zr(C);if(R!==null)switch(R.tag){case 3:if(R=R.stateNode,R.current.memoizedState.isDehydrated){var G=Bn(R.pendingLanes);if(G!==0){var ne=R;for(ne.pendingLanes|=2,ne.entangledLanes|=2;G;){var de=1<<31-Et(G);ne.entanglements[1]|=de,G&=~de}kl(R),(Vn&6)===0&&(R1=oe()+500,jv(0))}}break;case 13:ne=lu(R,2),ne!==null&&ga(ne,R,2),L1(),W_(R,2)}if(R=K_(S),R===null&&F_(a,u,S,Q1,h),R===C)break;C=R}C!==null&&S.stopPropagation()}else F_(a,u,S,null,h)}}function K_(a){return a=Zl(a),X_(a)}var Q1=null;function X_(a){if(Q1=null,a=Pi(a),a!==null){var u=o(a);if(u===null)a=null;else{var h=u.tag;if(h===13){if(a=l(u),a!==null)return a;a=null}else if(h===3){if(u.stateNode.current.memoizedState.isDehydrated)return u.tag===3?u.stateNode.containerInfo:null;a=null}else u!==a&&(a=null)}}return Q1=a,null}function Qj(a){switch(a){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Fe()){case Je:return 2;case ct:return 8;case We:case xe:return 32;case $e:return 268435456;default:return 32}default:return 32}}var Z_=!1,uf=null,cf=null,ff=null,Gv=new Map,Yv=new Map,df=[],Yie="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".split(" ");function Kj(a,u){switch(a){case"focusin":case"focusout":uf=null;break;case"dragenter":case"dragleave":cf=null;break;case"mouseover":case"mouseout":ff=null;break;case"pointerover":case"pointerout":Gv.delete(u.pointerId);break;case"gotpointercapture":case"lostpointercapture":Yv.delete(u.pointerId)}}function Wv(a,u,h,S,C,R){return a===null||a.nativeEvent!==R?(a={blockedOn:u,domEventName:h,eventSystemFlags:S,nativeEvent:R,targetContainers:[C]},u!==null&&(u=zr(u),u!==null&&Wj(u)),a):(a.eventSystemFlags|=S,u=a.targetContainers,C!==null&&u.indexOf(C)===-1&&u.push(C),a)}function Wie(a,u,h,S,C){switch(u){case"focusin":return uf=Wv(uf,a,u,h,S,C),!0;case"dragenter":return cf=Wv(cf,a,u,h,S,C),!0;case"mouseover":return ff=Wv(ff,a,u,h,S,C),!0;case"pointerover":var R=C.pointerId;return Gv.set(R,Wv(Gv.get(R)||null,a,u,h,S,C)),!0;case"gotpointercapture":return R=C.pointerId,Yv.set(R,Wv(Yv.get(R)||null,a,u,h,S,C)),!0}return!1}function Xj(a){var u=Pi(a.target);if(u!==null){var h=o(u);if(h!==null){if(u=h.tag,u===13){if(u=l(h),u!==null){a.blockedOn=u,Ft(a.priority,function(){if(h.tag===13){var S=ma();S=cn(S);var C=lu(h,S);C!==null&&ga(C,h,S),W_(h,S)}});return}}else if(u===3&&h.stateNode.current.memoizedState.isDehydrated){a.blockedOn=h.tag===3?h.stateNode.containerInfo:null;return}}}a.blockedOn=null}function K1(a){if(a.blockedOn!==null)return!1;for(var u=a.targetContainers;0<u.length;){var h=K_(a.nativeEvent);if(h===null){h=a.nativeEvent;var S=new h.constructor(h.type,h);jp=S,h.target.dispatchEvent(S),jp=null}else return u=zr(h),u!==null&&Wj(u),a.blockedOn=h,!1;u.shift()}return!0}function Zj(a,u,h){K1(a)&&h.delete(u)}function Qie(){Z_=!1,uf!==null&&K1(uf)&&(uf=null),cf!==null&&K1(cf)&&(cf=null),ff!==null&&K1(ff)&&(ff=null),Gv.forEach(Zj),Yv.forEach(Zj)}function X1(a,u){a.blockedOn===u&&(a.blockedOn=null,Z_||(Z_=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Qie)))}var Z1=null;function Jj(a){Z1!==a&&(Z1=a,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Z1===a&&(Z1=null);for(var u=0;u<a.length;u+=3){var h=a[u],S=a[u+1],C=a[u+2];if(typeof S!="function"){if(X_(S||h)===null)continue;break}var R=zr(h);R!==null&&(a.splice(u,3),u-=3,Cu(R,{pending:!0,data:C,method:h.method,action:S},S,C))}}))}function Qv(a){function u(de){return X1(de,a)}uf!==null&&X1(uf,a),cf!==null&&X1(cf,a),ff!==null&&X1(ff,a),Gv.forEach(u),Yv.forEach(u);for(var h=0;h<df.length;h++){var S=df[h];S.blockedOn===a&&(S.blockedOn=null)}for(;0<df.length&&(h=df[0],h.blockedOn===null);)Xj(h),h.blockedOn===null&&df.shift();if(h=(a.ownerDocument||a).$$reactFormReplay,h!=null)for(S=0;S<h.length;S+=3){var C=h[S],R=h[S+1],G=C[En]||null;if(typeof R=="function")G||Jj(h);else if(G){var ne=null;if(R&&R.hasAttribute("formAction")){if(C=R,G=R[En]||null)ne=G.formAction;else if(X_(C)!==null)continue}else ne=G.action;typeof ne=="function"?h[S+1]=ne:(h.splice(S,3),S-=3),Jj(h)}}}function J_(a){this._internalRoot=a}J1.prototype.render=J_.prototype.render=function(a){var u=this._internalRoot;if(u===null)throw Error(r(409));var h=u.current,S=ma();Gj(h,S,a,u,null,null)},J1.prototype.unmount=J_.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var u=a.containerInfo;Gj(a.current,2,null,a,null,null),L1(),u[Fi]=null}};function J1(a){this._internalRoot=a}J1.prototype.unstable_scheduleHydration=function(a){if(a){var u=nr();a={blockedOn:null,target:a,priority:u};for(var h=0;h<df.length&&u!==0&&u<df[h].priority;h++);df.splice(h,0,a),h===0&&Xj(a)}};var eV=t.version;if(eV!=="19.1.0")throw Error(r(527,eV,"19.1.0"));re.findDOMNode=function(a){var u=a._reactInternals;if(u===void 0)throw typeof a.render=="function"?Error(r(188)):(a=Object.keys(a).join(","),Error(r(268,a)));return a=p(u),a=a!==null?d(a):null,a=a===null?null:a.stateNode,a};var Kie={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:te,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var eE=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!eE.isDisabled&&eE.supportsFiber)try{Dt=eE.inject(Kie),jt=eE}catch{}}return Xh.createRoot=function(a,u){if(!i(a))throw Error(r(299));var h=!1,S="",C=Av,R=Ah,G=Ou,ne=null;return u!=null&&(u.unstable_strictMode===!0&&(h=!0),u.identifierPrefix!==void 0&&(S=u.identifierPrefix),u.onUncaughtError!==void 0&&(C=u.onUncaughtError),u.onCaughtError!==void 0&&(R=u.onCaughtError),u.onRecoverableError!==void 0&&(G=u.onRecoverableError),u.unstable_transitionCallbacks!==void 0&&(ne=u.unstable_transitionCallbacks)),u=zj(a,1,!1,null,null,h,S,C,R,G,ne,null),a[Fi]=u.current,I_(a),new J_(u)},Xh.hydrateRoot=function(a,u,h){if(!i(a))throw Error(r(299));var S=!1,C="",R=Av,G=Ah,ne=Ou,de=null,_e=null;return h!=null&&(h.unstable_strictMode===!0&&(S=!0),h.identifierPrefix!==void 0&&(C=h.identifierPrefix),h.onUncaughtError!==void 0&&(R=h.onUncaughtError),h.onCaughtError!==void 0&&(G=h.onCaughtError),h.onRecoverableError!==void 0&&(ne=h.onRecoverableError),h.unstable_transitionCallbacks!==void 0&&(de=h.unstable_transitionCallbacks),h.formState!==void 0&&(_e=h.formState)),u=zj(a,1,!0,u,h??null,S,C,R,G,ne,de,_e),u.context=Hj(null),h=u.current,S=ma(),S=cn(S),C=la(S),C.callback=null,za(h,C,S),h=S,u.current.lanes=h,On(u,h),kl(u),a[Fi]=u.current,I_(a),new J1(u)},Xh.version="19.1.0",Xh}var fN;function lV(){if(fN)return rE.exports;fN=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),rE.exports=sV(),rE.exports}var uV=lV();function dN(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=dN(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function yi(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=dN(e))&&(r&&(r+=" "),r+=t);return r}const cV="16.11.0",Zv=Object.freeze({major:16,minor:11,patch:0,preReleaseTag:null});function Zt(e,t){if(!!!e)throw new Error(t)}function Bo(e){return typeof(e==null?void 0:e.then)=="function"}function $o(e){return typeof e=="object"&&e!==null}function Ur(e,t){if(!!!e)throw new Error(t??"Unexpected invariant triggered.")}const fV=/\r\n|[\n\r]/g;function Jv(e,t){let n=0,r=1;for(const i of e.body.matchAll(fV)){if(typeof i.index=="number"||Ur(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function pN(e){return sE(e.source,Jv(e.source,e.start))}function sE(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,l=t.line+o,c=t.line===1?n:0,p=t.column+c,d=`${e.name}:${l}:${p}
`,m=r.split(/\r\n|[\n\r]/g),E=m[i];if(E.length>120){const b=Math.floor(p/80),y=p%80,x=[];for(let w=0;w<E.length;w+=80)x.push(E.slice(w,w+80));return d+hN([[`${l} |`,x[0]],...x.slice(1,b+1).map(w=>["|",w]),["|","^".padStart(y)],["|",x[b+1]]])}return d+hN([[`${l-1} |`,m[i-1]],[`${l} |`,E],["|","^".padStart(p)],[`${l+1} |`,m[i+1]]])}function hN(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(`
`)}function dV(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}class Me extends Error{constructor(t,...n){var r,i,o;const{nodes:l,source:c,positions:p,path:d,originalError:m,extensions:E}=dV(n);super(t),this.name="GraphQLError",this.path=d??void 0,this.originalError=m??void 0,this.nodes=mN(Array.isArray(l)?l:l?[l]:void 0);const b=mN((r=this.nodes)===null||r===void 0?void 0:r.map(x=>x.loc).filter(x=>x!=null));this.source=c??(b==null||(i=b[0])===null||i===void 0?void 0:i.source),this.positions=p??(b==null?void 0:b.map(x=>x.start)),this.locations=p&&c?p.map(x=>Jv(c,x)):b==null?void 0:b.map(x=>Jv(x.source,x.start));const y=$o(m==null?void 0:m.extensions)?m==null?void 0:m.extensions:void 0;this.extensions=(o=E??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}}),m!=null&&m.stack?Object.defineProperty(this,"stack",{value:m.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,Me):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+=`

`+pN(n.loc));else if(this.source&&this.locations)for(const n of this.locations)t+=`

`+sE(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 mN(e){return e===void 0||e.length===0?void 0:e}function pV(e){return e.toString()}function hV(e){return e.toJSON()}function oi(e,t,n){return new Me(`Syntax Error: ${n}`,{source:e,positions:[t]})}let gN=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}}};class lE{constructor(t,n,r,i,o,l){this.kind=t,this.start=n,this.end=r,this.line=i,this.column=o,this.value=l,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 vN={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"]},mV=new Set(Object.keys(vN));function uE(e){const t=e==null?void 0:e.kind;return typeof t=="string"&&mV.has(t)}var ai;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(ai||(ai={}));var lt;(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"})(lt||(lt={}));var X;(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"})(X||(X={}));function cE(e){return e===9||e===32}function Zh(e){return e>=48&&e<=57}function yN(e){return e>=97&&e<=122||e>=65&&e<=90}function fE(e){return yN(e)||e===95}function bN(e){return yN(e)||Zh(e)||e===95}function gV(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let l=0;l<e.length;++l){var o;const c=e[l],p=vV(c);p!==c.length&&(r=(o=r)!==null&&o!==void 0?o:l,i=l,l!==0&&p<n&&(n=p))}return e.map((l,c)=>c===0?l:l.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,i+1)}function vV(e){let t=0;for(;t<e.length&&cE(e.charCodeAt(t));)++t;return t}function yV(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 EN(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||cE(y.charCodeAt(0))),l=n.endsWith('\\"""'),c=e.endsWith('"')&&!l,p=e.endsWith("\\"),d=c||p,m=!(t!=null&&t.minimize)&&(!i||e.length>70||d||o||l);let E="";const b=i&&cE(e.charCodeAt(0));return(m&&!b||o)&&(E+=`
`),E+=n,(m||d)&&(E+=`
`),'"""'+E+'"""'}var Pe;(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"})(Pe||(Pe={}));class dE{constructor(t){const n=new lE(Pe.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!==Pe.EOF)do if(t.next)t=t.next;else{const n=bV(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===Pe.COMMENT);return t}}function SN(e){return e===Pe.BANG||e===Pe.DOLLAR||e===Pe.AMP||e===Pe.PAREN_L||e===Pe.PAREN_R||e===Pe.SPREAD||e===Pe.COLON||e===Pe.EQUALS||e===Pe.AT||e===Pe.BRACKET_L||e===Pe.BRACKET_R||e===Pe.BRACE_L||e===Pe.PIPE||e===Pe.BRACE_R}function Ud(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function ey(e,t){return TN(e.charCodeAt(t))&&xN(e.charCodeAt(t+1))}function TN(e){return e>=55296&&e<=56319}function xN(e){return e>=56320&&e<=57343}function mf(e,t){const n=e.source.body.codePointAt(t);if(n===void 0)return Pe.EOF;if(n>=32&&n<=126){const r=String.fromCodePoint(n);return r==='"'?`'"'`:`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function Qr(e,t,n,r,i){const o=e.line,l=1+n-e.lineStart;return new lE(t,n,r,o,l,i)}function bV(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 EV(e,i);case 33:return Qr(e,Pe.BANG,i,i+1);case 36:return Qr(e,Pe.DOLLAR,i,i+1);case 38:return Qr(e,Pe.AMP,i,i+1);case 40:return Qr(e,Pe.PAREN_L,i,i+1);case 41:return Qr(e,Pe.PAREN_R,i,i+1);case 46:if(n.charCodeAt(i+1)===46&&n.charCodeAt(i+2)===46)return Qr(e,Pe.SPREAD,i,i+3);break;case 58:return Qr(e,Pe.COLON,i,i+1);case 61:return Qr(e,Pe.EQUALS,i,i+1);case 64:return Qr(e,Pe.AT,i,i+1);case 91:return Qr(e,Pe.BRACKET_L,i,i+1);case 93:return Qr(e,Pe.BRACKET_R,i,i+1);case 123:return Qr(e,Pe.BRACE_L,i,i+1);case 124:return Qr(e,Pe.PIPE,i,i+1);case 125:return Qr(e,Pe.BRACE_R,i,i+1);case 34:return n.charCodeAt(i+1)===34&&n.charCodeAt(i+2)===34?_V(e,i):TV(e,i)}if(Zh(o)||o===45)return SV(e,i,o);if(fE(o))return NV(e,i);throw oi(e.source,i,o===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:Ud(o)||ey(n,i)?`Unexpected character: ${mf(e,i)}.`:`Invalid character: ${mf(e,i)}.`)}return Qr(e,Pe.EOF,r,r)}function EV(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(Ud(o))++i;else if(ey(n,i))i+=2;else break}return Qr(e,Pe.COMMENT,t,i,n.slice(t+1,i))}function SV(e,t,n){const r=e.source.body;let i=t,o=n,l=!1;if(o===45&&(o=r.charCodeAt(++i)),o===48){if(o=r.charCodeAt(++i),Zh(o))throw oi(e.source,i,`Invalid number, unexpected digit after 0: ${mf(e,i)}.`)}else i=pE(e,i,o),o=r.charCodeAt(i);if(o===46&&(l=!0,o=r.charCodeAt(++i),i=pE(e,i,o),o=r.charCodeAt(i)),(o===69||o===101)&&(l=!0,o=r.charCodeAt(++i),(o===43||o===45)&&(o=r.charCodeAt(++i)),i=pE(e,i,o),o=r.charCodeAt(i)),o===46||fE(o))throw oi(e.source,i,`Invalid number, expected digit but got: ${mf(e,i)}.`);return Qr(e,l?Pe.FLOAT:Pe.INT,t,i,r.slice(t,i))}function pE(e,t,n){if(!Zh(n))throw oi(e.source,t,`Invalid number, expected digit but got: ${mf(e,t)}.`);const r=e.source.body;let i=t+1;for(;Zh(r.charCodeAt(i));)++i;return i}function TV(e,t){const n=e.source.body,r=n.length;let i=t+1,o=i,l="";for(;i<r;){const c=n.charCodeAt(i);if(c===34)return l+=n.slice(o,i),Qr(e,Pe.STRING,t,i+1,l);if(c===92){l+=n.slice(o,i);const p=n.charCodeAt(i+1)===117?n.charCodeAt(i+2)===123?xV(e,i):wV(e,i):CV(e,i);l+=p.value,i+=p.size,o=i;continue}if(c===10||c===13)break;if(Ud(c))++i;else if(ey(n,i))i+=2;else throw oi(e.source,i,`Invalid character within String: ${mf(e,i)}.`)}throw oi(e.source,i,"Unterminated string.")}function xV(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||!Ud(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|Jh(o),r<0)break}throw oi(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}function wV(e,t){const n=e.source.body,r=wN(n,t+2);if(Ud(r))return{value:String.fromCodePoint(r),size:6};if(TN(r)&&n.charCodeAt(t+6)===92&&n.charCodeAt(t+7)===117){const i=wN(n,t+8);if(xN(i))return{value:String.fromCodePoint(r,i),size:12}}throw oi(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function wN(e,t){return Jh(e.charCodeAt(t))<<12|Jh(e.charCodeAt(t+1))<<8|Jh(e.charCodeAt(t+2))<<4|Jh(e.charCodeAt(t+3))}function Jh(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function CV(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:`
`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:"	",size:2}}throw oi(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function _V(e,t){const n=e.source.body,r=n.length;let i=e.lineStart,o=t+3,l=o,c="";const p=[];for(;o<r;){const d=n.charCodeAt(o);if(d===34&&n.charCodeAt(o+1)===34&&n.charCodeAt(o+2)===34){c+=n.slice(l,o),p.push(c);const m=Qr(e,Pe.BLOCK_STRING,t,o+3,gV(p).join(`
`));return e.line+=p.length-1,e.lineStart=i,m}if(d===92&&n.charCodeAt(o+1)===34&&n.charCodeAt(o+2)===34&&n.charCodeAt(o+3)===34){c+=n.slice(l,o),l=o+1,o+=4;continue}if(d===10||d===13){c+=n.slice(l,o),p.push(c),d===13&&n.charCodeAt(o+1)===10?o+=2:++o,c="",l=o,i=o;continue}if(Ud(d))++o;else if(ey(n,o))o+=2;else throw oi(e.source,o,`Invalid character within String: ${mf(e,o)}.`)}throw oi(e.source,o,"Unterminated string.")}function NV(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const o=n.charCodeAt(i);if(bN(o))++i;else break}return Qr(e,Pe.NAME,t,i,n.slice(t,i))}const AV=10,CN=2;function Ue(e){return ty(e,[])}function ty(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return OV(e,t);default:return String(e)}}function OV(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(DV(e)){const r=e.toJSON();if(r!==e)return typeof r=="string"?r:ty(r,n)}else if(Array.isArray(e))return RV(e,n);return kV(e,n)}function DV(e){return typeof e.toJSON=="function"}function kV(e,t){const n=Object.entries(e);return n.length===0?"{}":t.length>CN?"["+MV(e)+"]":"{ "+n.map(([i,o])=>i+": "+ty(o,t)).join(", ")+" }"}function RV(e,t){if(e.length===0)return"[]";if(t.length>CN)return"[Array]";const n=Math.min(AV,e.length),r=e.length-n,i=[];for(let o=0;o<n;++o)i.push(ty(e[o],t));return r===1?i.push("... 1 more item"):r>1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function MV(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 ts=globalThis.process&&!0?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var r;const i=n.prototype[Symbol.toStringTag],o=Symbol.toStringTag in t?t[Symbol.toStringTag]:(r=t.constructor)===null||r===void 0?void 0:r.name;if(i===o){const l=Ue(t);throw new Error(`Cannot use ${i} "${l}" from another module or realm.

Ensure that there is only one instance of "graphql" in the node_modules
directory. If different versions of "graphql" are the dependencies of other
relied on modules, use "resolutions" to ensure only one version is installed.

https://yarnpkg.com/en/docs/selective-version-resolutions

Duplicate "graphql" modules cannot be used at the same time since different
versions may have different capabilities and behavior. The data from one
version used in the function from another could produce confusing and
spurious results.`)}}return!1};class em{constructor(t,n="GraphQL request",r={line:1,column:1}){typeof t=="string"||Zt(!1,`Body must be a string. Received: ${Ue(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||Zt(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Zt(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function _N(e){return ts(e,em)}function Oi(e,t){const n=new ny(e,t),r=n.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:n.tokenCount}),r}function NN(e,t){const n=new ny(e,t);n.expectToken(Pe.SOF);const r=n.parseValueLiteral(!1);return n.expectToken(Pe.EOF),r}function LV(e,t){const n=new ny(e,t);n.expectToken(Pe.SOF);const r=n.parseConstValueLiteral();return n.expectToken(Pe.EOF),r}function IV(e,t){const n=new ny(e,t);n.expectToken(Pe.SOF);const r=n.parseTypeReference();return n.expectToken(Pe.EOF),r}class ny{constructor(t,n={}){const r=_N(t)?t:new em(t);this._lexer=new dE(r),this._options=n,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const t=this.expectToken(Pe.NAME);return this.node(t,{kind:X.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:X.DOCUMENT,definitions:this.many(Pe.SOF,this.parseDefinition,Pe.EOF)})}parseDefinition(){if(this.peek(Pe.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===Pe.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 oi(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(Pe.BRACE_L))return this.node(t,{kind:X.OPERATION_DEFINITION,operation:ai.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const n=this.parseOperationType();let r;return this.peek(Pe.NAME)&&(r=this.parseName()),this.node(t,{kind:X.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(Pe.NAME);switch(t.value){case"query":return ai.QUERY;case"mutation":return ai.MUTATION;case"subscription":return ai.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(Pe.PAREN_L,this.parseVariableDefinition,Pe.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:X.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Pe.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Pe.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(Pe.DOLLAR),this.node(t,{kind:X.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:X.SELECTION_SET,selections:this.many(Pe.BRACE_L,this.parseSelection,Pe.BRACE_R)})}parseSelection(){return this.peek(Pe.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,n=this.parseName();let r,i;return this.expectOptionalToken(Pe.COLON)?(r=n,i=this.parseName()):i=n,this.node(t,{kind:X.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Pe.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(Pe.PAREN_L,n,Pe.PAREN_R)}parseArgument(t=!1){const n=this._lexer.token,r=this.parseName();return this.expectToken(Pe.COLON),this.node(n,{kind:X.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(Pe.SPREAD);const n=this.expectOptionalKeyword("on");return!n&&this.peek(Pe.NAME)?this.node(t,{kind:X.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:X.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:X.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:X.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 Pe.BRACKET_L:return this.parseList(t);case Pe.BRACE_L:return this.parseObject(t);case Pe.INT:return this.advanceLexer(),this.node(n,{kind:X.INT,value:n.value});case Pe.FLOAT:return this.advanceLexer(),this.node(n,{kind:X.FLOAT,value:n.value});case Pe.STRING:case Pe.BLOCK_STRING:return this.parseStringLiteral();case Pe.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:X.BOOLEAN,value:!0});case"false":return this.node(n,{kind:X.BOOLEAN,value:!1});case"null":return this.node(n,{kind:X.NULL});default:return this.node(n,{kind:X.ENUM,value:n.value})}case Pe.DOLLAR:if(t)if(this.expectToken(Pe.DOLLAR),this._lexer.token.kind===Pe.NAME){const r=this._lexer.token.value;throw oi(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:X.STRING,value:t.value,block:t.kind===Pe.BLOCK_STRING})}parseList(t){const n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:X.LIST,values:this.any(Pe.BRACKET_L,n,Pe.BRACKET_R)})}parseObject(t){const n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:X.OBJECT,fields:this.any(Pe.BRACE_L,n,Pe.BRACE_R)})}parseObjectField(t){const n=this._lexer.token,r=this.parseName();return this.expectToken(Pe.COLON),this.node(n,{kind:X.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){const n=[];for(;this.peek(Pe.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const n=this._lexer.token;return this.expectToken(Pe.AT),this.node(n,{kind:X.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let n;if(this.expectOptionalToken(Pe.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(Pe.BRACKET_R),n=this.node(t,{kind:X.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(Pe.BANG)?this.node(t,{kind:X.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:X.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(Pe.STRING)||this.peek(Pe.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(Pe.BRACE_L,this.parseOperationTypeDefinition,Pe.BRACE_R);return this.node(t,{kind:X.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:i})}parseOperationTypeDefinition(){const t=this._lexer.token,n=this.parseOperationType();this.expectToken(Pe.COLON);const r=this.parseNamedType();return this.node(t,{kind:X.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:X.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(),l=this.parseFieldsDefinition();return this.node(t,{kind:X.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:o,fields:l})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(Pe.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(Pe.BRACE_L,this.parseFieldDefinition,Pe.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(Pe.COLON);const o=this.parseTypeReference(),l=this.parseConstDirectives();return this.node(t,{kind:X.FIELD_DEFINITION,description:n,name:r,arguments:i,type:o,directives:l})}parseArgumentDefs(){return this.optionalMany(Pe.PAREN_L,this.parseInputValueDef,Pe.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(Pe.COLON);const i=this.parseTypeReference();let o;this.expectOptionalToken(Pe.EQUALS)&&(o=this.parseConstValueLiteral());const l=this.parseConstDirectives();return this.node(t,{kind:X.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:o,directives:l})}parseInterfaceTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");const r=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),l=this.parseFieldsDefinition();return this.node(t,{kind:X.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:o,fields:l})}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:X.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(Pe.EQUALS)?this.delimitedMany(Pe.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:X.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:o})}parseEnumValuesDefinition(){return this.optionalMany(Pe.BRACE_L,this.parseEnumValueDefinition,Pe.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:X.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 oi(this._lexer.source,this._lexer.token.start,`${ry(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:X.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(Pe.BRACE_L,this.parseInputValueDef,Pe.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===Pe.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(Pe.BRACE_L,this.parseOperationTypeDefinition,Pe.BRACE_R);if(n.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:X.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:X.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:X.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:X.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:X.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:X.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:X.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:i})}parseDirectiveDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Pe.AT);const r=this.parseName(),i=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const l=this.parseDirectiveLocations();return this.node(t,{kind:X.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:o,locations:l})}parseDirectiveLocations(){return this.delimitedMany(Pe.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(lt,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new gN(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 oi(this._lexer.source,n.start,`Expected ${AN(t)}, found ${ry(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){const n=this._lexer.token;if(n.kind===Pe.NAME&&n.value===t)this.advanceLexer();else throw oi(this._lexer.source,n.start,`Expected "${t}", found ${ry(n)}.`)}expectOptionalKeyword(t){const n=this._lexer.token;return n.kind===Pe.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){const n=t??this._lexer.token;return oi(this._lexer.source,n.start,`Unexpected ${ry(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(n.kind!==Pe.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw oi(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function ry(e){const t=e.value;return AN(e.kind)+(t!=null?` "${t}"`:"")}function AN(e){return SN(e)?`"${e}"`:e}const FV=5;function Rl(e,t){const[n,r]=t?[e,t]:[void 0,e];let i=" Did you mean ";n&&(i+=n+" ");const o=r.map(p=>`"${p}"`);switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}const l=o.slice(0,FV),c=l.pop();return i+l.join(", ")+", or "+c+"?"}function ON(e){return e}function Ml(e,t){const n=Object.create(null);for(const r of e)n[t(r)]=r;return n}function Lu(e,t,n){const r=Object.create(null);for(const i of e)r[t(i)]=n(i);return r}function Ll(e,t){const n=Object.create(null);for(const r of Object.keys(e))n[r]=t(e[r],r);return n}function tm(e,t){let n=0,r=0;for(;n<e.length&&r<t.length;){let i=e.charCodeAt(n),o=t.charCodeAt(r);if(iy(i)&&iy(o)){let l=0;do++n,l=l*10+i-hE,i=e.charCodeAt(n);while(iy(i)&&l>0);let c=0;do++r,c=c*10+o-hE,o=t.charCodeAt(r);while(iy(o)&&c>0);if(l<c)return-1;if(l>c)return 1}else{if(i<o)return-1;if(i>o)return 1;++n,++r}}return e.length-t.length}const hE=48,PV=57;function iy(e){return!isNaN(e)&&hE<=e&&e<=PV}function Iu(e,t){const n=Object.create(null),r=new jV(e),i=Math.floor(e.length*.4)+1;for(const o of t){const l=r.measure(o,i);l!==void 0&&(n[o]=l)}return Object.keys(n).sort((o,l)=>{const c=n[o]-n[l];return c!==0?c:tm(o,l)})}class jV{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=DN(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=DN(r),o=this._inputArray;if(i.length<o.length){const m=i;i=o,o=m}const l=i.length,c=o.length;if(l-c>n)return;const p=this._rows;for(let m=0;m<=c;m++)p[0][m]=m;for(let m=1;m<=l;m++){const E=p[(m-1)%3],b=p[m%3];let y=b[0]=m;for(let x=1;x<=c;x++){const w=i[m-1]===o[x-1]?0:1;let k=Math.min(E[x]+1,b[x-1]+1,E[x-1]+w);if(m>1&&x>1&&i[m-1]===o[x-2]&&i[m-2]===o[x-1]){const N=p[(m-2)%3][x-2];k=Math.min(k,N+1)}k<y&&(y=k),b[x]=k}if(y>n)return}const d=p[l%3][c];return d<=n?d:void 0}}function DN(e){const t=e.length,n=new Array(t);for(let r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}function ya(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 VV(e){return`"${e.replace(UV,qV)}"`}const UV=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function qV(e){return BV[e.charCodeAt(0)]}const BV=["\\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"],gf=Object.freeze({});function wr(e,t,n=vN){const r=new Map;for(const N of Object.values(X))r.set(N,qd(t,N));let i,o=Array.isArray(e),l=[e],c=-1,p=[],d=e,m,E;const b=[],y=[];do{c++;const N=c===l.length,A=N&&p.length!==0;if(N){if(m=y.length===0?void 0:b[b.length-1],d=E,E=y.pop(),A)if(o){d=d.slice();let _=0;for(const[M,j]of p){const P=M-_;j===null?(d.splice(P,1),_++):d[P]=j}}else{d={...d};for(const[_,M]of p)d[_]=M}c=i.index,l=i.keys,p=i.edits,o=i.inArray,i=i.prev}else if(E){if(m=o?c:l[c],d=E[m],d==null)continue;b.push(m)}let O;if(!Array.isArray(d)){var x,w;uE(d)||Zt(!1,`Invalid AST Node: ${Ue(d)}.`);const _=N?(x=r.get(d.kind))===null||x===void 0?void 0:x.leave:(w=r.get(d.kind))===null||w===void 0?void 0:w.enter;if(O=_==null?void 0:_.call(t,d,m,E,b,y),O===gf)break;if(O===!1){if(!N){b.pop();continue}}else if(O!==void 0&&(p.push([m,O]),!N))if(uE(O))d=O;else{b.pop();continue}}if(O===void 0&&A&&p.push([m,d]),N)b.pop();else{var k;i={inArray:o,index:c,keys:l,edits:p,prev:i},o=Array.isArray(d),l=o?d:(k=n[d.kind])!==null&&k!==void 0?k:[],c=-1,p=[],E&&y.push(E),E=d}}while(i!==void 0);return p.length!==0?p[p.length-1][1]:e}function mE(e){const t=new Array(e.length).fill(null),n=Object.create(null);for(const r of Object.values(X)){let i=!1;const o=new Array(e.length).fill(void 0),l=new Array(e.length).fill(void 0);for(let p=0;p<e.length;++p){const{enter:d,leave:m}=qd(e[p],r);i||(i=d!=null||m!=null),o[p]=d,l[p]=m}if(!i)continue;const c={enter(...p){const d=p[0];for(let E=0;E<e.length;E++)if(t[E]===null){var m;const b=(m=o[E])===null||m===void 0?void 0:m.apply(e[E],p);if(b===!1)t[E]=d;else if(b===gf)t[E]=gf;else if(b!==void 0)return b}},leave(...p){const d=p[0];for(let E=0;E<e.length;E++)if(t[E]===null){var m;const b=(m=l[E])===null||m===void 0?void 0:m.apply(e[E],p);if(b===gf)t[E]=gf;else if(b!==void 0&&b!==!1)return b}else t[E]===d&&(t[E]=null)}};n[r]=c}return n}function qd(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 $V(e,t,n){const{enter:r,leave:i}=qd(e,t);return n?i:r}function hn(e){return wr(e,HV)}const zV=80,HV={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>xt(e.definitions,`

`)},OperationDefinition:{leave(e){const t=mn("(",xt(e.variableDefinitions,", "),")"),n=xt([e.operation,xt([e.name,t]),xt(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+mn(" = ",n)+mn(" ",xt(r," "))},SelectionSet:{leave:({selections:e})=>ns(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=mn("",e,": ")+t;let l=o+mn("(",xt(n,", "),")");return l.length>zV&&(l=o+mn(`(
`,oy(xt(n,`
`)),`
)`)),xt([l,xt(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+mn(" ",xt(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>xt(["...",mn("on ",e),xt(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${mn("(",xt(n,", "),")")} on ${t} ${mn("",xt(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?EN(e):VV(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+xt(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+xt(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+mn("(",xt(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>mn("",e,`
`)+xt(["schema",xt(t," "),ns(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>mn("",e,`
`)+xt(["scalar",t,xt(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>mn("",e,`
`)+xt(["type",t,mn("implements ",xt(n," & ")),xt(r," "),ns(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>mn("",e,`
`)+t+(kN(n)?mn(`(
`,oy(xt(n,`
`)),`
)`):mn("(",xt(n,", "),")"))+": "+r+mn(" ",xt(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>mn("",e,`
`)+xt([t+": "+n,mn("= ",r),xt(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>mn("",e,`
`)+xt(["interface",t,mn("implements ",xt(n," & ")),xt(r," "),ns(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>mn("",e,`
`)+xt(["union",t,xt(n," "),mn("= ",xt(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>mn("",e,`
`)+xt(["enum",t,xt(n," "),ns(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>mn("",e,`
`)+xt([t,xt(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>mn("",e,`
`)+xt(["input",t,xt(n," "),ns(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>mn("",e,`
`)+"directive @"+t+(kN(n)?mn(`(
`,oy(xt(n,`
`)),`
)`):mn("(",xt(n,", "),")"))+(r?" repeatable":"")+" on "+xt(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>xt(["extend schema",xt(e," "),ns(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>xt(["extend scalar",e,xt(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>xt(["extend type",e,mn("implements ",xt(t," & ")),xt(n," "),ns(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>xt(["extend interface",e,mn("implements ",xt(t," & ")),xt(n," "),ns(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>xt(["extend union",e,xt(t," "),mn("= ",xt(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>xt(["extend enum",e,xt(t," "),ns(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>xt(["extend input",e,xt(t," "),ns(n)]," ")}};function xt(e,t=""){var n;return(n=e==null?void 0:e.filter(r=>r).join(t))!==null&&n!==void 0?n:""}function ns(e){return mn(`{
`,oy(xt(e,`
`)),`
}`)}function mn(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function oy(e){return mn("  ",e.replace(/\n/g,`
  `))}function kN(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(`
`)))!==null&&t!==void 0?t:!1}function ay(e,t){switch(e.kind){case X.NULL:return null;case X.INT:return parseInt(e.value,10);case X.FLOAT:return parseFloat(e.value);case X.STRING:case X.ENUM:case X.BOOLEAN:return e.value;case X.LIST:return e.values.map(n=>ay(n,t));case X.OBJECT:return Lu(e.fields,n=>n.name.value,n=>ay(n.value,t));case X.VARIABLE:return t==null?void 0:t[e.name.value]}}function zo(e){if(e!=null||Zt(!1,"Must provide name."),typeof e=="string"||Zt(!1,"Expected name to be a string."),e.length===0)throw new Me("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!bN(e.charCodeAt(t)))throw new Me(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!fE(e.charCodeAt(0)))throw new Me(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function RN(e){if(e==="true"||e==="false"||e==="null")throw new Me(`Enum values cannot be named: ${e}`);return zo(e)}function Bd(e){return Di(e)||At(e)||Mt(e)||sr(e)||Qn(e)||rn(e)||gn(e)||_t(e)}function GV(e){if(!Bd(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL type.`);return e}function Di(e){return ts(e,ba)}function YV(e){if(!Di(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL Scalar type.`);return e}function At(e){return ts(e,li)}function MN(e){if(!At(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL Object type.`);return e}function Mt(e){return ts(e,so)}function LN(e){if(!Mt(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL Interface type.`);return e}function sr(e){return ts(e,ju)}function WV(e){if(!sr(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL Union type.`);return e}function Qn(e){return ts(e,Gi)}function QV(e){if(!Qn(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL Enum type.`);return e}function rn(e){return ts(e,lo)}function KV(e){if(!rn(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL Input Object type.`);return e}function gn(e){return ts(e,ur)}function XV(e){if(!gn(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL List type.`);return e}function _t(e){return ts(e,Pt)}function ZV(e){if(!_t(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL Non-Null type.`);return e}function ki(e){return Di(e)||Qn(e)||rn(e)||nm(e)&&ki(e.ofType)}function JV(e){if(!ki(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL input type.`);return e}function Il(e){return Di(e)||At(e)||Mt(e)||sr(e)||Qn(e)||nm(e)&&Il(e.ofType)}function e6(e){if(!Il(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL output type.`);return e}function si(e){return Di(e)||Qn(e)}function t6(e){if(!si(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL leaf type.`);return e}function Kr(e){return At(e)||Mt(e)||sr(e)}function n6(e){if(!Kr(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL composite type.`);return e}function lr(e){return Mt(e)||sr(e)}function IN(e){if(!lr(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL abstract type.`);return e}class ur{constructor(t){Bd(t)||Zt(!1,`Expected ${Ue(t)} to be a GraphQL type.`),this.ofType=t}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}}class Pt{constructor(t){rm(t)||Zt(!1,`Expected ${Ue(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 nm(e){return gn(e)||_t(e)}function r6(e){if(!nm(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL wrapping type.`);return e}function rm(e){return Bd(e)&&!_t(e)}function FN(e){if(!rm(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL nullable type.`);return e}function Fu(e){if(e)return _t(e)?e.ofType:e}function Fl(e){return Di(e)||At(e)||Mt(e)||sr(e)||Qn(e)||rn(e)}function i6(e){if(!Fl(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL named type.`);return e}function vn(e){if(e){let t=e;for(;nm(t);)t=t.ofType;return t}}function gE(e){return typeof e=="function"?e():e}function vE(e){return typeof e=="function"?e():e}class ba{constructor(t){var n,r,i,o;const l=(n=t.parseValue)!==null&&n!==void 0?n:ON;this.name=zo(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(r=t.serialize)!==null&&r!==void 0?r:ON,this.parseValue=l,this.parseLiteral=(i=t.parseLiteral)!==null&&i!==void 0?i:(c,p)=>l(ay(c,p)),this.extensions=ya(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(o=t.extensionASTNodes)!==null&&o!==void 0?o:[],t.specifiedByURL==null||typeof t.specifiedByURL=="string"||Zt(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${Ue(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||Zt(!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"||Zt(!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()}}class li{constructor(t){var n;this.name=zo(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=ya(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>jN(t),this._interfaces=()=>PN(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||Zt(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${Ue(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:UN(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function PN(e){var t;const n=gE((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(n)||Zt(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function jN(e){const t=vE(e.fields);return $d(t)||Zt(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),Ll(t,(n,r)=>{var i;$d(n)||Zt(!1,`${e.name}.${r} field config must be an object.`),n.resolve==null||typeof n.resolve=="function"||Zt(!1,`${e.name}.${r} field resolver must be a function if provided, but got: ${Ue(n.resolve)}.`);const o=(i=n.args)!==null&&i!==void 0?i:{};return $d(o)||Zt(!1,`${e.name}.${r} args must be an object with argument names as keys.`),{name:zo(r),description:n.description,type:n.type,args:VN(o),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:ya(n.extensions),astNode:n.astNode}})}function VN(e){return Object.entries(e).map(([t,n])=>({name:zo(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:ya(n.extensions),astNode:n.astNode}))}function $d(e){return $o(e)&&!Array.isArray(e)}function UN(e){return Ll(e,t=>({description:t.description,type:t.type,args:qN(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function qN(e){return Lu(e,t=>t.name,t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function Pu(e){return _t(e.type)&&e.defaultValue===void 0}class so{constructor(t){var n;this.name=zo(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=ya(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=jN.bind(void 0,t),this._interfaces=PN.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||Zt(!1,`${this.name} must provide "resolveType" as a function, but got: ${Ue(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:UN(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class ju{constructor(t){var n;this.name=zo(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=ya(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=o6.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||Zt(!1,`${this.name} must provide "resolveType" as a function, but got: ${Ue(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 o6(e){const t=gE(e.types);return Array.isArray(t)||Zt(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}class Gi{constructor(t){var n;this.name=zo(t.name),this.description=t.description,this.extensions=ya(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._values=typeof t.values=="function"?t.values:BN(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=BN(this.name,this._values())),this._values}getValue(t){return this._nameLookup===null&&(this._nameLookup=Ml(this.getValues(),n=>n.name)),this._nameLookup[t]}serialize(t){this._valueLookup===null&&(this._valueLookup=new Map(this.getValues().map(r=>[r.value,r])));const n=this._valueLookup.get(t);if(n===void 0)throw new Me(`Enum "${this.name}" cannot represent value: ${Ue(t)}`);return n.name}parseValue(t){if(typeof t!="string"){const r=Ue(t);throw new Me(`Enum "${this.name}" cannot represent non-string value: ${r}.`+sy(this,r))}const n=this.getValue(t);if(n==null)throw new Me(`Value "${t}" does not exist in "${this.name}" enum.`+sy(this,t));return n.value}parseLiteral(t,n){if(t.kind!==X.ENUM){const i=hn(t);throw new Me(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+sy(this,i),{nodes:t})}const r=this.getValue(t.value);if(r==null){const i=hn(t);throw new Me(`Value "${i}" does not exist in "${this.name}" enum.`+sy(this,i),{nodes:t})}return r.value}toConfig(){const t=Lu(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 sy(e,t){const n=e.getValues().map(i=>i.name),r=Iu(t,n);return Rl("the enum value",r)}function BN(e,t){return $d(t)||Zt(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([n,r])=>($d(r)||Zt(!1,`${e}.${n} must refer to an object with a "value" key representing an internal value but got: ${Ue(r)}.`),{name:RN(n),description:r.description,value:r.value!==void 0?r.value:n,deprecationReason:r.deprecationReason,extensions:ya(r.extensions),astNode:r.astNode}))}class lo{constructor(t){var n,r;this.name=zo(t.name),this.description=t.description,this.extensions=ya(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this.isOneOf=(r=t.isOneOf)!==null&&r!==void 0?r:!1,this._fields=a6.bind(void 0,t)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){const t=Ll(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,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}function a6(e){const t=vE(e.fields);return $d(t)||Zt(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),Ll(t,(n,r)=>(!("resolve"in n)||Zt(!1,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`),{name:zo(r),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:ya(n.extensions),astNode:n.astNode}))}function ly(e){return _t(e.type)&&e.defaultValue===void 0}function uy(e,t){return e===t?!0:_t(e)&&_t(t)||gn(e)&&gn(t)?uy(e.ofType,t.ofType):!1}function vf(e,t,n){return t===n?!0:_t(n)?_t(t)?vf(e,t.ofType,n.ofType):!1:_t(t)?vf(e,t.ofType,n):gn(n)?gn(t)?vf(e,t.ofType,n.ofType):!1:gn(t)?!1:lr(n)&&(Mt(t)||At(t))&&e.isSubType(n,t)}function im(e,t,n){return t===n?!0:lr(t)?lr(n)?e.getPossibleTypes(t).some(r=>e.isSubType(n,r)):e.isSubType(t,n):lr(n)?e.isSubType(n,t):!1}const cy=2147483647,fy=-2147483648,om=new ba({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=cm(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 Me(`Int cannot represent non-integer value: ${Ue(t)}`);if(n>cy||n<fy)throw new Me("Int cannot represent non 32-bit signed integer value: "+Ue(t));return n},parseValue(e){if(typeof e!="number"||!Number.isInteger(e))throw new Me(`Int cannot represent non-integer value: ${Ue(e)}`);if(e>cy||e<fy)throw new Me(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==X.INT)throw new Me(`Int cannot represent non-integer value: ${hn(e)}`,{nodes:e});const t=parseInt(e.value,10);if(t>cy||t<fy)throw new Me(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),am=new ba({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=cm(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 Me(`Float cannot represent non numeric value: ${Ue(t)}`);return n},parseValue(e){if(typeof e!="number"||!Number.isFinite(e))throw new Me(`Float cannot represent non numeric value: ${Ue(e)}`);return e},parseLiteral(e){if(e.kind!==X.FLOAT&&e.kind!==X.INT)throw new Me(`Float cannot represent non numeric value: ${hn(e)}`,e);return parseFloat(e.value)}}),Zn=new ba({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=cm(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 Me(`String cannot represent value: ${Ue(e)}`)},parseValue(e){if(typeof e!="string")throw new Me(`String cannot represent a non string value: ${Ue(e)}`);return e},parseLiteral(e){if(e.kind!==X.STRING)throw new Me(`String cannot represent a non string value: ${hn(e)}`,{nodes:e});return e.value}}),Jn=new ba({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const t=cm(e);if(typeof t=="boolean")return t;if(Number.isFinite(t))return t!==0;throw new Me(`Boolean cannot represent a non boolean value: ${Ue(t)}`)},parseValue(e){if(typeof e!="boolean")throw new Me(`Boolean cannot represent a non boolean value: ${Ue(e)}`);return e},parseLiteral(e){if(e.kind!==X.BOOLEAN)throw new Me(`Boolean cannot represent a non boolean value: ${hn(e)}`,{nodes:e});return e.value}}),sm=new ba({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=cm(e);if(typeof t=="string")return t;if(Number.isInteger(t))return String(t);throw new Me(`ID cannot represent value: ${Ue(e)}`)},parseValue(e){if(typeof e=="string")return e;if(typeof e=="number"&&Number.isInteger(e))return e.toString();throw new Me(`ID cannot represent value: ${Ue(e)}`)},parseLiteral(e){if(e.kind!==X.STRING&&e.kind!==X.INT)throw new Me("ID cannot represent a non-string and non-integer value: "+hn(e),{nodes:e});return e.value}}),lm=Object.freeze([Zn,om,am,Jn,sm]);function um(e){return lm.some(({name:t})=>e.name===t)}function cm(e){if($o(e)){if(typeof e.valueOf=="function"){const t=e.valueOf();if(!$o(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}function dy(e){return ts(e,xo)}function s6(e){if(!dy(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL directive.`);return e}class xo{constructor(t){var n,r;this.name=zo(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=(n=t.isRepeatable)!==null&&n!==void 0?n:!1,this.extensions=ya(t.extensions),this.astNode=t.astNode,Array.isArray(t.locations)||Zt(!1,`@${t.name} locations must be an Array.`);const i=(r=t.args)!==null&&r!==void 0?r:{};$o(i)&&!Array.isArray(i)||Zt(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=VN(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:qN(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}const py=new xo({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[lt.FIELD,lt.FRAGMENT_SPREAD,lt.INLINE_FRAGMENT],args:{if:{type:new Pt(Jn),description:"Included when true."}}}),hy=new xo({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[lt.FIELD,lt.FRAGMENT_SPREAD,lt.INLINE_FRAGMENT],args:{if:{type:new Pt(Jn),description:"Skipped when true."}}}),yE="No longer supported",my=new xo({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[lt.FIELD_DEFINITION,lt.ARGUMENT_DEFINITION,lt.INPUT_FIELD_DEFINITION,lt.ENUM_VALUE],args:{reason:{type:Zn,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:yE}}}),bE=new xo({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[lt.SCALAR],args:{url:{type:new Pt(Zn),description:"The URL that specifies the behavior of this scalar."}}}),EE=new xo({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[lt.INPUT_OBJECT],args:{}}),Vu=Object.freeze([py,hy,my,bE,EE]);function gy(e){return Vu.some(({name:t})=>t===e.name)}function SE(e){return typeof e=="object"&&typeof(e==null?void 0:e[Symbol.iterator])=="function"}function Pl(e,t){if(_t(t)){const n=Pl(e,t.ofType);return(n==null?void 0:n.kind)===X.NULL?null:n}if(e===null)return{kind:X.NULL};if(e===void 0)return null;if(gn(t)){const n=t.ofType;if(SE(e)){const r=[];for(const i of e){const o=Pl(i,n);o!=null&&r.push(o)}return{kind:X.LIST,values:r}}return Pl(e,n)}if(rn(t)){if(!$o(e))return null;const n=[];for(const r of Object.values(t.getFields())){const i=Pl(e[r.name],r.type);i&&n.push({kind:X.OBJECT_FIELD,name:{kind:X.NAME,value:r.name},value:i})}return{kind:X.OBJECT,fields:n}}if(si(t)){const n=t.serialize(e);if(n==null)return null;if(typeof n=="boolean")return{kind:X.BOOLEAN,value:n};if(typeof n=="number"&&Number.isFinite(n)){const r=String(n);return $N.test(r)?{kind:X.INT,value:r}:{kind:X.FLOAT,value:r}}if(typeof n=="string")return Qn(t)?{kind:X.ENUM,value:n}:t===sm&&$N.test(n)?{kind:X.INT,value:n}:{kind:X.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${Ue(n)}.`)}Ur(!1,"Unexpected input type: "+Ue(t))}const $N=/^-?(?:0|[1-9][0-9]*)$/,vy=new li({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:Zn,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new Pt(new ur(new Pt(Ea))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new Pt(Ea),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Ea,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Ea,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new Pt(new ur(new Pt(TE))),resolve:e=>e.getDirectives()}})}),TE=new li({name:"__Directive",description:`A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.

In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.`,fields:()=>({name:{type:new Pt(Zn),resolve:e=>e.name},description:{type:Zn,resolve:e=>e.description},isRepeatable:{type:new Pt(Jn),resolve:e=>e.isRepeatable},locations:{type:new Pt(new ur(new Pt(xE))),resolve:e=>e.locations},args:{type:new Pt(new ur(new Pt(fm))),args:{includeDeprecated:{type:Jn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}}})}),xE=new Gi({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:lt.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:lt.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:lt.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:lt.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:lt.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:lt.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:lt.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:lt.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:lt.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:lt.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:lt.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:lt.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:lt.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:lt.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:lt.UNION,description:"Location adjacent to a union definition."},ENUM:{value:lt.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:lt.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:lt.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:lt.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),Ea=new li({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 Pt(_E),resolve(e){if(Di(e))return qn.SCALAR;if(At(e))return qn.OBJECT;if(Mt(e))return qn.INTERFACE;if(sr(e))return qn.UNION;if(Qn(e))return qn.ENUM;if(rn(e))return qn.INPUT_OBJECT;if(gn(e))return qn.LIST;if(_t(e))return qn.NON_NULL;Ur(!1,`Unexpected type: "${Ue(e)}".`)}},name:{type:Zn,resolve:e=>"name"in e?e.name:void 0},description:{type:Zn,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:Zn,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new ur(new Pt(wE)),args:{includeDeprecated:{type:Jn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(At(e)||Mt(e)){const n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},interfaces:{type:new ur(new Pt(Ea)),resolve(e){if(At(e)||Mt(e))return e.getInterfaces()}},possibleTypes:{type:new ur(new Pt(Ea)),resolve(e,t,n,{schema:r}){if(lr(e))return r.getPossibleTypes(e)}},enumValues:{type:new ur(new Pt(CE)),args:{includeDeprecated:{type:Jn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(Qn(e)){const n=e.getValues();return t?n:n.filter(r=>r.deprecationReason==null)}}},inputFields:{type:new ur(new Pt(fm)),args:{includeDeprecated:{type:Jn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(rn(e)){const n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},ofType:{type:Ea,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:Jn,resolve:e=>{if(rn(e))return e.isOneOf}}})}),wE=new li({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 Pt(Zn),resolve:e=>e.name},description:{type:Zn,resolve:e=>e.description},args:{type:new Pt(new ur(new Pt(fm))),args:{includeDeprecated:{type:Jn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}},type:{type:new Pt(Ea),resolve:e=>e.type},isDeprecated:{type:new Pt(Jn),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Zn,resolve:e=>e.deprecationReason}})}),fm=new li({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 Pt(Zn),resolve:e=>e.name},description:{type:Zn,resolve:e=>e.description},type:{type:new Pt(Ea),resolve:e=>e.type},defaultValue:{type:Zn,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:n}=e,r=Pl(n,t);return r?hn(r):null}},isDeprecated:{type:new Pt(Jn),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Zn,resolve:e=>e.deprecationReason}})}),CE=new li({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 Pt(Zn),resolve:e=>e.name},description:{type:Zn,resolve:e=>e.description},isDeprecated:{type:new Pt(Jn),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:Zn,resolve:e=>e.deprecationReason}})});var qn;(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"})(qn||(qn={}));const _E=new Gi({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:qn.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:qn.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:qn.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:qn.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:qn.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:qn.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:qn.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:qn.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),Sa={name:"__schema",type:new Pt(vy),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},Ta={name:"__type",type:Ea,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new Pt(Zn),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},xa={name:"__typename",type:new Pt(Zn),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},dm=Object.freeze([vy,TE,xE,Ea,wE,fm,CE,_E]);function yf(e){return dm.some(({name:t})=>e.name===t)}function yy(e){return ts(e,bf)}function NE(e){if(!yy(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL schema.`);return e}class bf{constructor(t){var n,r;this.__validationErrors=t.assumeValid===!0?[]:void 0,$o(t)||Zt(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||Zt(!1,`"types" must be Array if provided but got: ${Ue(t.types)}.`),!t.directives||Array.isArray(t.directives)||Zt(!1,`"directives" must be Array if provided but got: ${Ue(t.directives)}.`),this.description=t.description,this.extensions=ya(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:Vu;const i=new Set(t.types);if(t.types!=null)for(const o of t.types)i.delete(o),rs(o,i);this._queryType!=null&&rs(this._queryType,i),this._mutationType!=null&&rs(this._mutationType,i),this._subscriptionType!=null&&rs(this._subscriptionType,i);for(const o of this._directives)if(dy(o))for(const l of o.args)rs(l.type,i);rs(vy,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 l=o.name;if(l||Zt(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[l]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${l}".`);if(this._typeMap[l]=o,Mt(o)){for(const c of o.getInterfaces())if(Mt(c)){let p=this._implementationsMap[c.name];p===void 0&&(p=this._implementationsMap[c.name]={objects:[],interfaces:[]}),p.interfaces.push(o)}}else if(At(o)){for(const c of o.getInterfaces())if(Mt(c)){let p=this._implementationsMap[c.name];p===void 0&&(p=this._implementationsMap[c.name]={objects:[],interfaces:[]}),p.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 ai.QUERY:return this.getQueryType();case ai.MUTATION:return this.getMutationType();case ai.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return sr(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),sr(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 rs(e,t){const n=vn(e);if(!t.has(n)){if(t.add(n),sr(n))for(const r of n.getTypes())rs(r,t);else if(At(n)||Mt(n)){for(const r of n.getInterfaces())rs(r,t);for(const r of Object.values(n.getFields())){rs(r.type,t);for(const i of r.args)rs(i.type,t)}}else if(rn(n))for(const r of Object.values(n.getFields()))rs(r.type,t)}return t}function by(e){if(NE(e),e.__validationErrors)return e.__validationErrors;const t=new l6(e);u6(t),c6(t),f6(t);const n=t.getErrors();return e.__validationErrors=n,n}function Ey(e){const t=by(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(`

`))}class l6{constructor(t){this._errors=[],this.schema=t}reportError(t,n){const r=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new Me(t,{nodes:r}))}getErrors(){return this._errors}}function u6(e){const t=e.schema,n=t.getQueryType();if(!n)e.reportError("Query root type must be provided.",t.astNode);else if(!At(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${Ue(n)}.`,(r=AE(t,ai.QUERY))!==null&&r!==void 0?r:n.astNode)}const i=t.getMutationType();if(i&&!At(i)){var o;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${Ue(i)}.`,(o=AE(t,ai.MUTATION))!==null&&o!==void 0?o:i.astNode)}const l=t.getSubscriptionType();if(l&&!At(l)){var c;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${Ue(l)}.`,(c=AE(t,ai.SUBSCRIPTION))!==null&&c!==void 0?c:l.astNode)}}function AE(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 c6(e){for(const n of e.schema.getDirectives()){if(!dy(n)){e.reportError(`Expected directive but got: ${Ue(n)}.`,n==null?void 0:n.astNode);continue}Ef(e,n),n.locations.length===0&&e.reportError(`Directive @${n.name} must include 1 or more locations.`,n.astNode);for(const r of n.args)if(Ef(e,r),ki(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${Ue(r.type)}.`,r.astNode),Pu(r)&&r.deprecationReason!=null){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[OE(r.astNode),(t=r.astNode)===null||t===void 0?void 0:t.type])}}}function Ef(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function f6(e){const t=y6(e),n=e.schema.getTypeMap();for(const r of Object.values(n)){if(!Fl(r)){e.reportError(`Expected GraphQL named type but got: ${Ue(r)}.`,r.astNode);continue}yf(r)||Ef(e,r),At(r)||Mt(r)?(zN(e,r),HN(e,r)):sr(r)?h6(e,r):Qn(r)?m6(e,r):rn(r)&&(g6(e,r),t(r))}}function zN(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 l of n){if(Ef(e,l),!Il(l.type)){var r;e.reportError(`The type of ${t.name}.${l.name} must be Output Type but got: ${Ue(l.type)}.`,(r=l.astNode)===null||r===void 0?void 0:r.type)}for(const c of l.args){const p=c.name;if(Ef(e,c),!ki(c.type)){var i;e.reportError(`The type of ${t.name}.${l.name}(${p}:) must be Input Type but got: ${Ue(c.type)}.`,(i=c.astNode)===null||i===void 0?void 0:i.type)}if(Pu(c)&&c.deprecationReason!=null){var o;e.reportError(`Required argument ${t.name}.${l.name}(${p}:) cannot be deprecated.`,[OE(c.astNode),(o=c.astNode)===null||o===void 0?void 0:o.type])}}}}function HN(e,t){const n=Object.create(null);for(const r of t.getInterfaces()){if(!Mt(r)){e.reportError(`Type ${Ue(t)} must only implement Interface types, it cannot implement ${Ue(r)}.`,pm(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,pm(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,pm(t,r));continue}n[r.name]=!0,p6(e,t,r),d6(e,t,r)}}function d6(e,t,n){const r=t.getFields();for(const p of Object.values(n.getFields())){const d=p.name,m=r[d];if(!m){e.reportError(`Interface field ${n.name}.${d} expected but ${t.name} does not provide it.`,[p.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!vf(e.schema,m.type,p.type)){var i,o;e.reportError(`Interface field ${n.name}.${d} expects type ${Ue(p.type)} but ${t.name}.${d} is type ${Ue(m.type)}.`,[(i=p.astNode)===null||i===void 0?void 0:i.type,(o=m.astNode)===null||o===void 0?void 0:o.type])}for(const E of p.args){const b=E.name,y=m.args.find(x=>x.name===b);if(!y){e.reportError(`Interface field argument ${n.name}.${d}(${b}:) expected but ${t.name}.${d} does not provide it.`,[E.astNode,m.astNode]);continue}if(!uy(E.type,y.type)){var l,c;e.reportError(`Interface field argument ${n.name}.${d}(${b}:) expects type ${Ue(E.type)} but ${t.name}.${d}(${b}:) is type ${Ue(y.type)}.`,[(l=E.astNode)===null||l===void 0?void 0:l.type,(c=y.astNode)===null||c===void 0?void 0:c.type])}}for(const E of m.args){const b=E.name;!p.args.find(x=>x.name===b)&&Pu(E)&&e.reportError(`Object field ${t.name}.${d} includes required argument ${b} that is missing from the Interface field ${n.name}.${d}.`,[E.astNode,p.astNode])}}}function p6(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}.`,[...pm(n,i),...pm(t,n)])}function h6(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.`,GN(t,i.name));continue}r[i.name]=!0,At(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${Ue(i)}.`,GN(t,String(i)))}}function m6(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)Ef(e,r)}function g6(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(Ef(e,o),!ki(o.type)){var r;e.reportError(`The type of ${t.name}.${o.name} must be Input Type but got: ${Ue(o.type)}.`,(r=o.astNode)===null||r===void 0?void 0:r.type)}if(ly(o)&&o.deprecationReason!=null){var i;e.reportError(`Required input field ${t.name}.${o.name} cannot be deprecated.`,[OE(o.astNode),(i=o.astNode)===null||i===void 0?void 0:i.type])}t.isOneOf&&v6(t,o,e)}}function v6(e,t,n){if(_t(t.type)){var r;n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,(r=t.astNode)===null||r===void 0?void 0:r.type)}t.defaultValue!==void 0&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function y6(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 l=Object.values(o.getFields());for(const c of l)if(_t(c.type)&&rn(c.type.ofType)){const p=c.type.ofType,d=r[p.name];if(n.push(c),d===void 0)i(p);else{const m=n.slice(d),E=m.map(b=>b.name).join(".");e.reportError(`Cannot reference Input Object "${p.name}" within itself through a series of non-null fields: "${E}".`,m.map(b=>b.astNode))}n.pop()}r[o.name]=void 0}}function pm(e,t){const{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(o=>{var l;return(l=o.interfaces)!==null&&l!==void 0?l:[]}).filter(o=>o.name.value===t.name)}function GN(e,t){const{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(o=>{var l;return(l=o.types)!==null&&l!==void 0?l:[]}).filter(o=>o.name.value===t)}function OE(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(n=>n.name.value===my.name)}function bi(e,t){switch(t.kind){case X.LIST_TYPE:{const n=bi(e,t.type);return n&&new ur(n)}case X.NON_NULL_TYPE:{const n=bi(e,t.type);return n&&new Pt(n)}case X.NAMED_TYPE:return e.getType(t.name.value)}}class Uu{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??b6,n&&(ki(n)&&this._inputTypeStack.push(n),Kr(n)&&this._parentTypeStack.push(n),Il(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 X.SELECTION_SET:{const i=vn(this.getType());this._parentTypeStack.push(Kr(i)?i:void 0);break}case X.FIELD:{const i=this.getParentType();let o,l;i&&(o=this._getFieldDef(n,i,t),o&&(l=o.type)),this._fieldDefStack.push(o),this._typeStack.push(Il(l)?l:void 0);break}case X.DIRECTIVE:this._directive=n.getDirective(t.name.value);break;case X.OPERATION_DEFINITION:{const i=n.getRootType(t.operation);this._typeStack.push(At(i)?i:void 0);break}case X.INLINE_FRAGMENT:case X.FRAGMENT_DEFINITION:{const i=t.typeCondition,o=i?bi(n,i):vn(this.getType());this._typeStack.push(Il(o)?o:void 0);break}case X.VARIABLE_DEFINITION:{const i=bi(n,t.type);this._inputTypeStack.push(ki(i)?i:void 0);break}case X.ARGUMENT:{var r;let i,o;const l=(r=this.getDirective())!==null&&r!==void 0?r:this.getFieldDef();l&&(i=l.args.find(c=>c.name===t.name.value),i&&(o=i.type)),this._argument=i,this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push(ki(o)?o:void 0);break}case X.LIST:{const i=Fu(this.getInputType()),o=gn(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push(ki(o)?o:void 0);break}case X.OBJECT_FIELD:{const i=vn(this.getInputType());let o,l;rn(i)&&(l=i.getFields()[t.name.value],l&&(o=l.type)),this._defaultValueStack.push(l?l.defaultValue:void 0),this._inputTypeStack.push(ki(o)?o:void 0);break}case X.ENUM:{const i=vn(this.getInputType());let o;Qn(i)&&(o=i.getValue(t.value)),this._enumValue=o;break}}}leave(t){switch(t.kind){case X.SELECTION_SET:this._parentTypeStack.pop();break;case X.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case X.DIRECTIVE:this._directive=null;break;case X.OPERATION_DEFINITION:case X.INLINE_FRAGMENT:case X.FRAGMENT_DEFINITION:this._typeStack.pop();break;case X.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case X.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case X.LIST:case X.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case X.ENUM:this._enumValue=null;break}}}function b6(e,t,n){const r=n.name.value;if(r===Sa.name&&e.getQueryType()===t)return Sa;if(r===Ta.name&&e.getQueryType()===t)return Ta;if(r===xa.name&&Kr(t))return xa;if(At(t)||Mt(t))return t.getFields()[r]}function qu(e,t){return{enter(...n){const r=n[0];e.enter(r);const i=qd(t,r.kind).enter;if(i){const o=i.apply(t,n);return o!==void 0&&(e.leave(r),uE(o)&&e.enter(o)),o}},leave(...n){const r=n[0],i=qd(t,r.kind).leave;let o;return i&&(o=i.apply(t,n)),e.leave(r),o}}}function E6(e){return DE(e)||Sy(e)||RE(e)}function DE(e){return e.kind===X.OPERATION_DEFINITION||e.kind===X.FRAGMENT_DEFINITION}function S6(e){return e.kind===X.FIELD||e.kind===X.FRAGMENT_SPREAD||e.kind===X.INLINE_FRAGMENT}function YN(e){return e.kind===X.VARIABLE||e.kind===X.INT||e.kind===X.FLOAT||e.kind===X.STRING||e.kind===X.BOOLEAN||e.kind===X.NULL||e.kind===X.ENUM||e.kind===X.LIST||e.kind===X.OBJECT}function kE(e){return YN(e)&&(e.kind===X.LIST?e.values.some(kE):e.kind===X.OBJECT?e.fields.some(t=>kE(t.value)):e.kind!==X.VARIABLE)}function T6(e){return e.kind===X.NAMED_TYPE||e.kind===X.LIST_TYPE||e.kind===X.NON_NULL_TYPE}function Sy(e){return e.kind===X.SCHEMA_DEFINITION||zd(e)||e.kind===X.DIRECTIVE_DEFINITION}function zd(e){return e.kind===X.SCALAR_TYPE_DEFINITION||e.kind===X.OBJECT_TYPE_DEFINITION||e.kind===X.INTERFACE_TYPE_DEFINITION||e.kind===X.UNION_TYPE_DEFINITION||e.kind===X.ENUM_TYPE_DEFINITION||e.kind===X.INPUT_OBJECT_TYPE_DEFINITION}function RE(e){return e.kind===X.SCHEMA_EXTENSION||Ty(e)}function Ty(e){return e.kind===X.SCALAR_TYPE_EXTENSION||e.kind===X.OBJECT_TYPE_EXTENSION||e.kind===X.INTERFACE_TYPE_EXTENSION||e.kind===X.UNION_TYPE_EXTENSION||e.kind===X.ENUM_TYPE_EXTENSION||e.kind===X.INPUT_OBJECT_TYPE_EXTENSION}function ME(e){return{Document(t){for(const n of t.definitions)if(!DE(n)){const r=n.kind===X.SCHEMA_DEFINITION||n.kind===X.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new Me(`The ${r} definition is not executable.`,{nodes:n}))}return!1}}}function WN(e){return{Field(t){const n=e.getParentType();if(n&&!e.getFieldDef()){const i=e.getSchema(),o=t.name.value;let l=Rl("to use an inline fragment on",x6(i,n,o));l===""&&(l=Rl(w6(n,o))),e.reportError(new Me(`Cannot query field "${o}" on type "${n.name}".`+l,{nodes:t}))}}}}function x6(e,t,n){if(!lr(t))return[];const r=new Set,i=Object.create(null);for(const l of e.getPossibleTypes(t))if(l.getFields()[n]){r.add(l),i[l.name]=1;for(const c of l.getInterfaces()){var o;c.getFields()[n]&&(r.add(c),i[c.name]=((o=i[c.name])!==null&&o!==void 0?o:0)+1)}}return[...r].sort((l,c)=>{const p=i[c.name]-i[l.name];return p!==0?p:Mt(l)&&e.isSubType(l,c)?-1:Mt(c)&&e.isSubType(c,l)?1:tm(l.name,c.name)}).map(l=>l.name)}function w6(e,t){if(At(e)||Mt(e)){const n=Object.keys(e.getFields());return Iu(t,n)}return[]}function QN(e){return{InlineFragment(t){const n=t.typeCondition;if(n){const r=bi(e.getSchema(),n);if(r&&!Kr(r)){const i=hn(n);e.reportError(new Me(`Fragment cannot condition on non composite type "${i}".`,{nodes:n}))}}},FragmentDefinition(t){const n=bi(e.getSchema(),t.typeCondition);if(n&&!Kr(n)){const r=hn(t.typeCondition);e.reportError(new Me(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}function KN(e){return{...XN(e),Argument(t){const n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){const o=t.name.value,l=r.args.map(p=>p.name),c=Iu(o,l);e.reportError(new Me(`Unknown argument "${o}" on field "${i.name}.${r.name}".`+Rl(c),{nodes:t}))}}}}function XN(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Vu;for(const l of r)t[l.name]=l.args.map(c=>c.name);const i=e.getDocument().definitions;for(const l of i)if(l.kind===X.DIRECTIVE_DEFINITION){var o;const c=(o=l.arguments)!==null&&o!==void 0?o:[];t[l.name.value]=c.map(p=>p.name.value)}return{Directive(l){const c=l.name.value,p=t[c];if(l.arguments&&p)for(const d of l.arguments){const m=d.name.value;if(!p.includes(m)){const E=Iu(m,p);e.reportError(new Me(`Unknown argument "${m}" on directive "@${c}".`+Rl(E),{nodes:d}))}}return!1}}}function LE(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Vu;for(const o of r)t[o.name]=o.locations;const i=e.getDocument().definitions;for(const o of i)o.kind===X.DIRECTIVE_DEFINITION&&(t[o.name.value]=o.locations.map(l=>l.value));return{Directive(o,l,c,p,d){const m=o.name.value,E=t[m];if(!E){e.reportError(new Me(`Unknown directive "@${m}".`,{nodes:o}));return}const b=C6(d);b&&!E.includes(b)&&e.reportError(new Me(`Directive "@${m}" may not be used on ${b}.`,{nodes:o}))}}}function C6(e){const t=e[e.length-1];switch("kind"in t||Ur(!1),t.kind){case X.OPERATION_DEFINITION:return _6(t.operation);case X.FIELD:return lt.FIELD;case X.FRAGMENT_SPREAD:return lt.FRAGMENT_SPREAD;case X.INLINE_FRAGMENT:return lt.INLINE_FRAGMENT;case X.FRAGMENT_DEFINITION:return lt.FRAGMENT_DEFINITION;case X.VARIABLE_DEFINITION:return lt.VARIABLE_DEFINITION;case X.SCHEMA_DEFINITION:case X.SCHEMA_EXTENSION:return lt.SCHEMA;case X.SCALAR_TYPE_DEFINITION:case X.SCALAR_TYPE_EXTENSION:return lt.SCALAR;case X.OBJECT_TYPE_DEFINITION:case X.OBJECT_TYPE_EXTENSION:return lt.OBJECT;case X.FIELD_DEFINITION:return lt.FIELD_DEFINITION;case X.INTERFACE_TYPE_DEFINITION:case X.INTERFACE_TYPE_EXTENSION:return lt.INTERFACE;case X.UNION_TYPE_DEFINITION:case X.UNION_TYPE_EXTENSION:return lt.UNION;case X.ENUM_TYPE_DEFINITION:case X.ENUM_TYPE_EXTENSION:return lt.ENUM;case X.ENUM_VALUE_DEFINITION:return lt.ENUM_VALUE;case X.INPUT_OBJECT_TYPE_DEFINITION:case X.INPUT_OBJECT_TYPE_EXTENSION:return lt.INPUT_OBJECT;case X.INPUT_VALUE_DEFINITION:{const n=e[e.length-3];return"kind"in n||Ur(!1),n.kind===X.INPUT_OBJECT_TYPE_DEFINITION?lt.INPUT_FIELD_DEFINITION:lt.ARGUMENT_DEFINITION}default:Ur(!1,"Unexpected kind: "+Ue(t.kind))}}function _6(e){switch(e){case ai.QUERY:return lt.QUERY;case ai.MUTATION:return lt.MUTATION;case ai.SUBSCRIPTION:return lt.SUBSCRIPTION}}function ZN(e){return{FragmentSpread(t){const n=t.name.value;e.getFragment(n)||e.reportError(new Me(`Unknown fragment "${n}".`,{nodes:t.name}))}}}function IE(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(const o of e.getDocument().definitions)zd(o)&&(r[o.name.value]=!0);const i=[...Object.keys(n),...Object.keys(r)];return{NamedType(o,l,c,p,d){const m=o.name.value;if(!n[m]&&!r[m]){var E;const b=(E=d[2])!==null&&E!==void 0?E:c,y=b!=null&&N6(b);if(y&&JN.includes(m))return;const x=Iu(m,y?JN.concat(i):i);e.reportError(new Me(`Unknown type "${m}".`+Rl(x),{nodes:o}))}}}}const JN=[...lm,...dm].map(e=>e.name);function N6(e){return"kind"in e&&(Sy(e)||RE(e))}function eA(e){let t=0;return{Document(n){t=n.definitions.filter(r=>r.kind===X.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new Me("This anonymous operation must be the only defined operation.",{nodes:n}))}}}function tA(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 l=0;return{SchemaDefinition(c){if(o){e.reportError(new Me("Cannot define a new schema within a schema extension.",{nodes:c}));return}l>0&&e.reportError(new Me("Must provide only one schema definition.",{nodes:c})),++l}}}const A6=3;function nA(e){function t(n,r=Object.create(null),i=0){if(n.kind===X.FRAGMENT_SPREAD){const o=n.name.value;if(r[o]===!0)return!1;const l=e.getFragment(o);if(!l)return!1;try{return r[o]=!0,t(l,r,i)}finally{r[o]=void 0}}if(n.kind===X.FIELD&&(n.name.value==="fields"||n.name.value==="interfaces"||n.name.value==="possibleTypes"||n.name.value==="inputFields")&&(i++,i>=A6))return!0;if("selectionSet"in n&&n.selectionSet){for(const o of n.selectionSet.selections)if(t(o,r,i))return!0}return!1}return{Field(n){if((n.name.value==="__schema"||n.name.value==="__type")&&t(n))return e.reportError(new Me("Maximum introspection depth exceeded",{nodes:[n]})),!1}}}function rA(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 l=o.name.value;t[l]=!0;const c=e.getFragmentSpreads(o.selectionSet);if(c.length!==0){r[l]=n.length;for(const p of c){const d=p.name.value,m=r[d];if(n.push(p),m===void 0){const E=e.getFragment(d);E&&i(E)}else{const E=n.slice(m),b=E.slice(0,-1).map(y=>'"'+y.name.value+'"').join(", ");e.reportError(new Me(`Cannot spread fragment "${d}" within itself`+(b!==""?` via ${b}.`:"."),{nodes:E}))}n.pop()}r[l]=void 0}}}function iA(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 Me(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 FE(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 Me(`Fragment "${o}" is never used.`,{nodes:i}))}}}}}function oA(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 l=o.variable.name.value;r[l]!==!0&&e.reportError(new Me(n.name?`Variable "$${l}" is never used in operation "${n.name.value}".`:`Variable "$${l}" is never used.`,{nodes:o}))}}},VariableDefinition(n){t.push(n)}}}function xy(e){switch(e.kind){case X.OBJECT:return{...e,fields:O6(e.fields)};case X.LIST:return{...e,values:e.values.map(xy)};case X.INT:case X.FLOAT:case X.STRING:case X.BOOLEAN:case X.NULL:case X.ENUM:case X.VARIABLE:return e}}function O6(e){return e.map(t=>({...t,value:xy(t.value)})).sort((t,n)=>tm(t.name.value,n.name.value))}function aA(e){return Array.isArray(e)?e.map(([t,n])=>`subfields "${t}" conflict because `+aA(n)).join(" and "):e}function sA(e){const t=new fA,n=new I6,r=new Map;return{SelectionSet(i){const o=D6(e,r,t,n,e.getParentType(),i);for(const[[l,c],p,d]of o){const m=aA(c);e.reportError(new Me(`Fields "${l}" conflict because ${m}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:p.concat(d)}))}}}}function D6(e,t,n,r,i,o){const l=[],[c,p]=_y(e,t,i,o);if(R6(e,l,t,n,r,c),p.length!==0)for(let d=0;d<p.length;d++){wy(e,l,t,n,r,!1,c,p[d]);for(let m=d+1;m<p.length;m++)Cy(e,l,t,n,r,!1,p[d],p[m])}return l}function wy(e,t,n,r,i,o,l,c){if(r.has(l,c,o))return;r.add(l,c,o);const p=e.getFragment(c);if(!p)return;const[d,m]=VE(e,n,p);if(l!==d){PE(e,t,n,r,i,o,l,d);for(const E of m)wy(e,t,n,r,i,o,l,E)}}function Cy(e,t,n,r,i,o,l,c){if(l===c||i.has(l,c,o))return;i.add(l,c,o);const p=e.getFragment(l),d=e.getFragment(c);if(!p||!d)return;const[m,E]=VE(e,n,p),[b,y]=VE(e,n,d);PE(e,t,n,r,i,o,m,b);for(const x of y)Cy(e,t,n,r,i,o,l,x);for(const x of E)Cy(e,t,n,r,i,o,x,c)}function k6(e,t,n,r,i,o,l,c,p){const d=[],[m,E]=_y(e,t,o,l),[b,y]=_y(e,t,c,p);PE(e,d,t,n,r,i,m,b);for(const x of y)wy(e,d,t,n,r,i,m,x);for(const x of E)wy(e,d,t,n,r,i,b,x);for(const x of E)for(const w of y)Cy(e,d,t,n,r,i,x,w);return d}function R6(e,t,n,r,i,o){for(const[l,c]of Object.entries(o))if(c.length>1)for(let p=0;p<c.length;p++)for(let d=p+1;d<c.length;d++){const m=lA(e,n,r,i,!1,l,c[p],c[d]);m&&t.push(m)}}function PE(e,t,n,r,i,o,l,c){for(const[p,d]of Object.entries(l)){const m=c[p];if(m)for(const E of d)for(const b of m){const y=lA(e,n,r,i,o,p,E,b);y&&t.push(y)}}}function lA(e,t,n,r,i,o,l,c){const[p,d,m]=l,[E,b,y]=c,x=i||p!==E&&At(p)&&At(E);if(!x){const O=d.name.value,_=b.name.value;if(O!==_)return[[o,`"${O}" and "${_}" are different fields`],[d],[b]];if(!M6(d,b))return[[o,"they have differing arguments"],[d],[b]]}const w=m==null?void 0:m.type,k=y==null?void 0:y.type;if(w&&k&&jE(w,k))return[[o,`they return conflicting types "${Ue(w)}" and "${Ue(k)}"`],[d],[b]];const N=d.selectionSet,A=b.selectionSet;if(N&&A){const O=k6(e,t,n,r,x,vn(w),N,vn(k),A);return L6(O,o,d,b)}}function M6(e,t){const n=e.arguments,r=t.arguments;if(n===void 0||n.length===0)return r===void 0||r.length===0;if(r===void 0||r.length===0||n.length!==r.length)return!1;const i=new Map(r.map(({name:o,value:l})=>[o.value,l]));return n.every(o=>{const l=o.value,c=i.get(o.name.value);return c===void 0?!1:uA(l)===uA(c)})}function uA(e){return hn(xy(e))}function jE(e,t){return gn(e)?gn(t)?jE(e.ofType,t.ofType):!0:gn(t)?!0:_t(e)?_t(t)?jE(e.ofType,t.ofType):!0:_t(t)?!0:si(e)||si(t)?e!==t:!1}function _y(e,t,n,r){const i=t.get(r);if(i)return i;const o=Object.create(null),l=Object.create(null);cA(e,n,r,o,l);const c=[o,Object.keys(l)];return t.set(r,c),c}function VE(e,t,n){const r=t.get(n.selectionSet);if(r)return r;const i=bi(e.getSchema(),n.typeCondition);return _y(e,t,i,n.selectionSet)}function cA(e,t,n,r,i){for(const o of n.selections)switch(o.kind){case X.FIELD:{const l=o.name.value;let c;(At(t)||Mt(t))&&(c=t.getFields()[l]);const p=o.alias?o.alias.value:l;r[p]||(r[p]=[]),r[p].push([t,o,c]);break}case X.FRAGMENT_SPREAD:i[o.name.value]=!0;break;case X.INLINE_FRAGMENT:{const l=o.typeCondition,c=l?bi(e.getSchema(),l):t;cA(e,c,o.selectionSet,r,i);break}}}function L6(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 fA{constructor(){this._data=new Map}has(t,n,r){var i;const o=(i=this._data.get(t))===null||i===void 0?void 0:i.get(n);return o===void 0?!1:r?!0:r===o}add(t,n,r){const i=this._data.get(t);i===void 0?this._data.set(t,new Map([[n,r]])):i.set(n,r)}}class I6{constructor(){this._orderedPairSet=new fA}has(t,n,r){return t<n?this._orderedPairSet.has(t,n,r):this._orderedPairSet.has(n,t,r)}add(t,n,r){t<n?this._orderedPairSet.add(t,n,r):this._orderedPairSet.add(n,t,r)}}function dA(e){return{InlineFragment(t){const n=e.getType(),r=e.getParentType();if(Kr(n)&&Kr(r)&&!im(e.getSchema(),n,r)){const i=Ue(r),o=Ue(n);e.reportError(new Me(`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=F6(e,n),i=e.getParentType();if(r&&i&&!im(e.getSchema(),r,i)){const o=Ue(i),l=Ue(r);e.reportError(new Me(`Fragment "${n}" cannot be spread here as objects of type "${o}" can never be of type "${l}".`,{nodes:t}))}}}}function F6(e,t){const n=e.getFragment(t);if(n){const r=bi(e.getSchema(),n.typeCondition);if(Kr(r))return r}}function pA(e){const t=e.getSchema(),n=Object.create(null);for(const i of e.getDocument().definitions)zd(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,l=n[o],c=t==null?void 0:t.getType(o);let p;if(l?p=P6[l.kind]:c&&(p=j6(c)),p){if(p!==i.kind){const d=V6(i.kind);e.reportError(new Me(`Cannot extend non-${d} type "${o}".`,{nodes:l?[l,i]:i}))}}else{const d=Object.keys({...n,...t==null?void 0:t.getTypeMap()}),m=Iu(o,d);e.reportError(new Me(`Cannot extend type "${o}" because it is not defined.`+Rl(m),{nodes:i.name}))}}}const P6={[X.SCALAR_TYPE_DEFINITION]:X.SCALAR_TYPE_EXTENSION,[X.OBJECT_TYPE_DEFINITION]:X.OBJECT_TYPE_EXTENSION,[X.INTERFACE_TYPE_DEFINITION]:X.INTERFACE_TYPE_EXTENSION,[X.UNION_TYPE_DEFINITION]:X.UNION_TYPE_EXTENSION,[X.ENUM_TYPE_DEFINITION]:X.ENUM_TYPE_EXTENSION,[X.INPUT_OBJECT_TYPE_DEFINITION]:X.INPUT_OBJECT_TYPE_EXTENSION};function j6(e){if(Di(e))return X.SCALAR_TYPE_EXTENSION;if(At(e))return X.OBJECT_TYPE_EXTENSION;if(Mt(e))return X.INTERFACE_TYPE_EXTENSION;if(sr(e))return X.UNION_TYPE_EXTENSION;if(Qn(e))return X.ENUM_TYPE_EXTENSION;if(rn(e))return X.INPUT_OBJECT_TYPE_EXTENSION;Ur(!1,"Unexpected type: "+Ue(e))}function V6(e){switch(e){case X.SCALAR_TYPE_EXTENSION:return"scalar";case X.OBJECT_TYPE_EXTENSION:return"object";case X.INTERFACE_TYPE_EXTENSION:return"interface";case X.UNION_TYPE_EXTENSION:return"union";case X.ENUM_TYPE_EXTENSION:return"enum";case X.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:Ur(!1,"Unexpected kind: "+Ue(e))}}function hA(e){return{...mA(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)&&Pu(o)){const l=Ue(o.type);e.reportError(new Me(`Field "${r.name}" argument "${o.name}" of type "${l}" is required, but it was not provided.`,{nodes:t}))}}}}}function mA(e){var t;const n=Object.create(null),r=e.getSchema(),i=(t=r==null?void 0:r.getDirectives())!==null&&t!==void 0?t:Vu;for(const c of i)n[c.name]=Ml(c.args.filter(Pu),p=>p.name);const o=e.getDocument().definitions;for(const c of o)if(c.kind===X.DIRECTIVE_DEFINITION){var l;const p=(l=c.arguments)!==null&&l!==void 0?l:[];n[c.name.value]=Ml(p.filter(U6),d=>d.name.value)}return{Directive:{leave(c){const p=c.name.value,d=n[p];if(d){var m;const E=(m=c.arguments)!==null&&m!==void 0?m:[],b=new Set(E.map(y=>y.name.value));for(const[y,x]of Object.entries(d))if(!b.has(y)){const w=Bd(x.type)?Ue(x.type):hn(x.type);e.reportError(new Me(`Directive "@${p}" argument "${y}" of type "${w}" is required, but it was not provided.`,{nodes:c}))}}}}}}function U6(e){return e.type.kind===X.NON_NULL_TYPE&&e.defaultValue==null}function gA(e){return{Field(t){const n=e.getType(),r=t.selectionSet;if(n)if(si(vn(n))){if(r){const i=t.name.value,o=Ue(n);e.reportError(new Me(`Field "${i}" must not have a selection since type "${o}" has no subfields.`,{nodes:r}))}}else if(r){if(r.selections.length===0){const i=t.name.value,o=Ue(n);e.reportError(new Me(`Field "${i}" of type "${o}" must have at least one field selected.`,{nodes:t}))}}else{const i=t.name.value,o=Ue(n);e.reportError(new Me(`Field "${i}" of type "${o}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:t}))}}}}function vA(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}function Hd(e,t,n){return{prev:e,key:t,typename:n}}function Ei(e){const t=[];let n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}function UE(e,t,n=q6){return hm(e,t,n,void 0)}function q6(e,t,n){let r="Invalid value "+Ue(t);throw e.length>0&&(r+=` at "value${vA(e)}"`),n.message=r+": "+n.message,n}function hm(e,t,n,r){if(_t(t)){if(e!=null)return hm(e,t.ofType,n,r);n(Ei(r),e,new Me(`Expected non-nullable type "${Ue(t)}" not to be null.`));return}if(e==null)return null;if(gn(t)){const i=t.ofType;return SE(e)?Array.from(e,(o,l)=>{const c=Hd(r,l,void 0);return hm(o,i,n,c)}):[hm(e,i,n,r)]}if(rn(t)){if(!$o(e)||Array.isArray(e)){n(Ei(r),e,new Me(`Expected type "${t.name}" to be an object.`));return}const i={},o=t.getFields();for(const l of Object.values(o)){const c=e[l.name];if(c===void 0){if(l.defaultValue!==void 0)i[l.name]=l.defaultValue;else if(_t(l.type)){const p=Ue(l.type);n(Ei(r),e,new Me(`Field "${l.name}" of required type "${p}" was not provided.`))}continue}i[l.name]=hm(c,l.type,n,Hd(r,l.name,t.name))}for(const l of Object.keys(e))if(!o[l]){const c=Iu(l,Object.keys(t.getFields()));n(Ei(r),e,new Me(`Field "${l}" is not defined by type "${t.name}".`+Rl(c)))}if(t.isOneOf){const l=Object.keys(i);l.length!==1&&n(Ei(r),e,new Me(`Exactly one key must be specified for OneOf type "${t.name}".`));const c=l[0],p=i[c];p===null&&n(Ei(r).concat(c),p,new Me(`Field "${c}" must be non-null.`))}return i}if(si(t)){let i;try{i=t.parseValue(e)}catch(o){o instanceof Me?n(Ei(r),e,o):n(Ei(r),e,new Me(`Expected type "${t.name}". `+o.message,{originalError:o}));return}return i===void 0&&n(Ei(r),e,new Me(`Expected type "${t.name}".`)),i}Ur(!1,"Unexpected input type: "+Ue(t))}function wa(e,t,n){if(e){if(e.kind===X.VARIABLE){const r=e.name.value;if(n==null||n[r]===void 0)return;const i=n[r];return i===null&&_t(t)?void 0:i}if(_t(t))return e.kind===X.NULL?void 0:wa(e,t.ofType,n);if(e.kind===X.NULL)return null;if(gn(t)){const r=t.ofType;if(e.kind===X.LIST){const o=[];for(const l of e.values)if(yA(l,n)){if(_t(r))return;o.push(null)}else{const c=wa(l,r,n);if(c===void 0)return;o.push(c)}return o}const i=wa(e,r,n);return i===void 0?void 0:[i]}if(rn(t)){if(e.kind!==X.OBJECT)return;const r=Object.create(null),i=Ml(e.fields,o=>o.name.value);for(const o of Object.values(t.getFields())){const l=i[o.name];if(!l||yA(l.value,n)){if(o.defaultValue!==void 0)r[o.name]=o.defaultValue;else if(_t(o.type))return;continue}const c=wa(l.value,o.type,n);if(c===void 0)return;r[o.name]=c}if(t.isOneOf){const o=Object.keys(r);if(o.length!==1||r[o[0]]===null)return}return r}if(si(t)){let r;try{r=t.parseLiteral(e,n)}catch{return}return r===void 0?void 0:r}Ur(!1,"Unexpected input type: "+Ue(t))}}function yA(e,t){return e.kind===X.VARIABLE&&(t==null||t[e.name.value]===void 0)}function bA(e,t,n,r){const i=[],o=r==null?void 0:r.maxErrors;try{const l=B6(e,t,n,c=>{if(o!=null&&i.length>=o)throw new Me("Too many errors processing variables, error limit reached. Execution aborted.");i.push(c)});if(i.length===0)return{coerced:l}}catch(l){i.push(l)}return{errors:i}}function B6(e,t,n,r){const i={};for(const o of t){const l=o.variable.name.value,c=bi(e,o.type);if(!ki(c)){const d=hn(o.type);r(new Me(`Variable "$${l}" expected value of type "${d}" which cannot be used as an input type.`,{nodes:o.type}));continue}if(!EA(n,l)){if(o.defaultValue)i[l]=wa(o.defaultValue,c);else if(_t(c)){const d=Ue(c);r(new Me(`Variable "$${l}" of required type "${d}" was not provided.`,{nodes:o}))}continue}const p=n[l];if(p===null&&_t(c)){const d=Ue(c);r(new Me(`Variable "$${l}" of non-null type "${d}" must not be null.`,{nodes:o}));continue}i[l]=UE(p,c,(d,m,E)=>{let b=`Variable "$${l}" got invalid value `+Ue(m);d.length>0&&(b+=` at "${l}${vA(d)}"`),r(new Me(b+"; "+E.message,{nodes:o,originalError:E}))})}return i}function Ny(e,t,n){var r;const i={},o=(r=t.arguments)!==null&&r!==void 0?r:[],l=Ml(o,c=>c.name.value);for(const c of e.args){const p=c.name,d=c.type,m=l[p];if(!m){if(c.defaultValue!==void 0)i[p]=c.defaultValue;else if(_t(d))throw new Me(`Argument "${p}" of required type "${Ue(d)}" was not provided.`,{nodes:t});continue}const E=m.value;let b=E.kind===X.NULL;if(E.kind===X.VARIABLE){const x=E.name.value;if(n==null||!EA(n,x)){if(c.defaultValue!==void 0)i[p]=c.defaultValue;else if(_t(d))throw new Me(`Argument "${p}" of required type "${Ue(d)}" was provided the variable "$${x}" which was not provided a runtime value.`,{nodes:E});continue}b=n[x]==null}if(b&&_t(d))throw new Me(`Argument "${p}" of non-null type "${Ue(d)}" must not be null.`,{nodes:E});const y=wa(E,d,n);if(y===void 0)throw new Me(`Argument "${p}" has invalid value ${hn(E)}.`,{nodes:E});i[p]=y}return i}function qs(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 Ny(e,i,n)}function EA(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function qE(e,t,n,r,i){const o=new Map;return Ay(e,t,n,r,i,o,new Set),o}function $6(e,t,n,r,i){const o=new Map,l=new Set;for(const c of i)c.selectionSet&&Ay(e,t,n,r,c.selectionSet,o,l);return o}function Ay(e,t,n,r,i,o,l){for(const c of i.selections)switch(c.kind){case X.FIELD:{if(!BE(n,c))continue;const p=z6(c),d=o.get(p);d!==void 0?d.push(c):o.set(p,[c]);break}case X.INLINE_FRAGMENT:{if(!BE(n,c)||!SA(e,c,r))continue;Ay(e,t,n,r,c.selectionSet,o,l);break}case X.FRAGMENT_SPREAD:{const p=c.name.value;if(l.has(p)||!BE(n,c))continue;l.add(p);const d=t[p];if(!d||!SA(e,d,r))continue;Ay(e,t,n,r,d.selectionSet,o,l);break}}}function BE(e,t){const n=qs(hy,t,e);if((n==null?void 0:n.if)===!0)return!1;const r=qs(py,t,e);return(r==null?void 0:r.if)!==!1}function SA(e,t,n){const r=t.typeCondition;if(!r)return!0;const i=bi(e,r);return i===n?!0:lr(i)?e.isSubType(i,n):!1}function z6(e){return e.alias?e.alias.value:e.name.value}function TA(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),l=e.getDocument(),c=Object.create(null);for(const d of l.definitions)d.kind===X.FRAGMENT_DEFINITION&&(c[d.name.value]=d);const p=qE(n,c,o,r,t.selectionSet);if(p.size>1){const E=[...p.values()].slice(1).flat();e.reportError(new Me(i!=null?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:E}))}for(const d of p.values())d[0].name.value.startsWith("__")&&e.reportError(new Me(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:d}))}}}}}function $E(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 xA(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,l=(i=r.fields)!==null&&i!==void 0?i:[];for(const p of l){var c;const d=p.name.value,m=(c=p.arguments)!==null&&c!==void 0?c:[];n(`${o}.${d}`,m)}return!1}function n(r,i){const o=$E(i,l=>l.name.value);for(const[l,c]of o)c.length>1&&e.reportError(new Me(`Argument "${r}(${l}:)" can only be defined once.`,{nodes:c.map(p=>p.name)}));return!1}}function zE(e){return{Field:t,Directive:t};function t(n){var r;const i=(r=n.arguments)!==null&&r!==void 0?r:[],o=$E(i,l=>l.name.value);for(const[l,c]of o)c.length>1&&e.reportError(new Me(`There can be only one argument named "${l}".`,{nodes:c.map(p=>p.name)}))}}function wA(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 Me(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}));return}return t[i]?e.reportError(new Me(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}}}function HE(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Vu;for(const c of r)t[c.name]=!c.isRepeatable;const i=e.getDocument().definitions;for(const c of i)c.kind===X.DIRECTIVE_DEFINITION&&(t[c.name.value]=!c.repeatable);const o=Object.create(null),l=Object.create(null);return{enter(c){if(!("directives"in c)||!c.directives)return;let p;if(c.kind===X.SCHEMA_DEFINITION||c.kind===X.SCHEMA_EXTENSION)p=o;else if(zd(c)||Ty(c)){const d=c.name.value;p=l[d],p===void 0&&(l[d]=p=Object.create(null))}else p=Object.create(null);for(const d of c.directives){const m=d.name.value;t[m]&&(p[m]?e.reportError(new Me(`The directive "@${m}" can only be used once at this location.`,{nodes:[p[m],d]})):p[m]=d)}}}}function CA(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 l;const c=o.name.value;r[c]||(r[c]=Object.create(null));const p=(l=o.values)!==null&&l!==void 0?l:[],d=r[c];for(const m of p){const E=m.name.value,b=n[c];Qn(b)&&b.getValue(E)?e.reportError(new Me(`Enum value "${c}.${E}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:m.name})):d[E]?e.reportError(new Me(`Enum value "${c}.${E}" can only be defined once.`,{nodes:[d[E],m.name]})):d[E]=m.name}return!1}}function _A(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 l;const c=o.name.value;r[c]||(r[c]=Object.create(null));const p=(l=o.fields)!==null&&l!==void 0?l:[],d=r[c];for(const m of p){const E=m.name.value;H6(n[c],E)?e.reportError(new Me(`Field "${c}.${E}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:m.name})):d[E]?e.reportError(new Me(`Field "${c}.${E}" can only be defined once.`,{nodes:[d[E],m.name]})):d[E]=m.name}return!1}}function H6(e,t){return At(e)||Mt(e)||rn(e)?e.getFields()[t]!=null:!1}function NA(e){const t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){const r=n.name.value;return t[r]?e.reportError(new Me(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}function GE(e){const t=[];let n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){const r=t.pop();r||Ur(!1),n=r}},ObjectField(r){const i=r.name.value;n[i]?e.reportError(new Me(`There can be only one input field named "${i}".`,{nodes:[n[i],r.name]})):n[i]=r.name}}}function AA(e){const t=Object.create(null);return{OperationDefinition(n){const r=n.name;return r&&(t[r.value]?e.reportError(new Me(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}function OA(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 l;const c=(l=o.operationTypes)!==null&&l!==void 0?l:[];for(const p of c){const d=p.operation,m=n[d];r[d]?e.reportError(new Me(`Type for ${d} already defined in the schema. It cannot be redefined.`,{nodes:p})):m?e.reportError(new Me(`There can be only one ${d} type in schema.`,{nodes:[m,p]})):n[d]=p}return!1}}function DA(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 Me(`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 Me(`There can be only one type named "${o}".`,{nodes:[t[o],i.name]})):t[o]=i.name,!1}}function kA(e){return{OperationDefinition(t){var n;const r=(n=t.variableDefinitions)!==null&&n!==void 0?n:[],i=$E(r,o=>o.variable.name.value);for(const[o,l]of i)l.length>1&&e.reportError(new Me(`There can be only one variable named "$${o}".`,{nodes:l.map(c=>c.variable.name)}))}}}function RA(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(n){t[n.variable.name.value]=n},ListValue(n){const r=Fu(e.getParentInputType());if(!gn(r))return Sf(e,n),!1},ObjectValue(n){const r=vn(e.getInputType());if(!rn(r))return Sf(e,n),!1;const i=Ml(n.fields,o=>o.name.value);for(const o of Object.values(r.getFields()))if(!i[o.name]&&ly(o)){const c=Ue(o.type);e.reportError(new Me(`Field "${r.name}.${o.name}" of required type "${c}" was not provided.`,{nodes:n}))}r.isOneOf&&G6(e,n,r,i,t)},ObjectField(n){const r=vn(e.getParentInputType());if(!e.getInputType()&&rn(r)){const o=Iu(n.name.value,Object.keys(r.getFields()));e.reportError(new Me(`Field "${n.name.value}" is not defined by type "${r.name}".`+Rl(o),{nodes:n}))}},NullValue(n){const r=e.getInputType();_t(r)&&e.reportError(new Me(`Expected value of type "${Ue(r)}", found ${hn(n)}.`,{nodes:n}))},EnumValue:n=>Sf(e,n),IntValue:n=>Sf(e,n),FloatValue:n=>Sf(e,n),StringValue:n=>Sf(e,n),BooleanValue:n=>Sf(e,n)}}function Sf(e,t){const n=e.getInputType();if(!n)return;const r=vn(n);if(!si(r)){const i=Ue(n);e.reportError(new Me(`Expected value of type "${i}", found ${hn(t)}.`,{nodes:t}));return}try{if(r.parseLiteral(t,void 0)===void 0){const o=Ue(n);e.reportError(new Me(`Expected value of type "${o}", found ${hn(t)}.`,{nodes:t}))}}catch(i){const o=Ue(n);i instanceof Me?e.reportError(i):e.reportError(new Me(`Expected value of type "${o}", found ${hn(t)}; `+i.message,{nodes:t,originalError:i}))}}function G6(e,t,n,r,i){var o;const l=Object.keys(r);if(l.length!==1){e.reportError(new Me(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));return}const p=(o=r[l[0]])===null||o===void 0?void 0:o.value,d=!p||p.kind===X.NULL,m=(p==null?void 0:p.kind)===X.VARIABLE;if(d){e.reportError(new Me(`Field "${n.name}.${l[0]}" must be non-null.`,{nodes:[t]}));return}if(m){const E=p.name.value;i[E].type.kind!==X.NON_NULL_TYPE&&e.reportError(new Me(`Variable "${E}" must be non-nullable to be used for OneOf Input Object "${n.name}".`,{nodes:[t]}))}}function MA(e){return{VariableDefinition(t){const n=bi(e.getSchema(),t.type);if(n!==void 0&&!ki(n)){const r=t.variable.name.value,i=hn(t.type);e.reportError(new Me(`Variable "$${r}" cannot be non-input type "${i}".`,{nodes:t.type}))}}}}function LA(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:l,parentType:c}of r){const p=i.name.value,d=t[p];if(d&&o){const m=e.getSchema(),E=bi(m,d.type);if(E&&!Y6(m,E,d.defaultValue,o,l)){const b=Ue(E),y=Ue(o);e.reportError(new Me(`Variable "$${p}" of type "${b}" used in position expecting type "${y}".`,{nodes:[d,i]}))}rn(c)&&c.isOneOf&&rm(E)&&e.reportError(new Me(`Variable "$${p}" is of type "${E}" but must be non-nullable to be used for OneOf Input Object "${c}".`,{nodes:[d,i]}))}}}},VariableDefinition(n){t[n.variable.name.value]=n}}}function Y6(e,t,n,r,i){if(_t(r)&&!_t(t)){if(!(n!=null&&n.kind!==X.NULL)&&!(i!==void 0))return!1;const c=r.ofType;return vf(e,t,c)}return vf(e,t,r)}const IA=Object.freeze([nA]),YE=Object.freeze([ME,AA,eA,TA,IE,QN,MA,gA,WN,NA,ZN,FE,dA,rA,kA,iA,oA,LE,HE,KN,zE,RA,hA,LA,sA,GE,...IA]),W6=Object.freeze([tA,OA,DA,CA,_A,xA,wA,IE,LE,HE,pA,XN,zE,GE,mA]);class FA{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===X.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===X.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 l of this.getFragmentSpreads(o)){const c=l.name.value;if(r[c]!==!0){r[c]=!0;const p=this.getFragment(c);p&&(n.push(p),i.push(p.selectionSet))}}this._recursivelyReferencedFragments.set(t,n)}return n}}class Q6 extends FA{constructor(t,n,r){super(t,r),this._schema=n}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}class PA extends FA{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 Uu(this._schema);wr(t,qu(i,{VariableDefinition:()=>!1,Variable(o){r.push({node:o,type:i.getInputType(),defaultValue:i.getDefaultValue(),parentType:i.getParentInputType()})}})),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 mm(e,t,n=YE,r,i=new Uu(e)){var o;const l=(o=r==null?void 0:r.maxErrors)!==null&&o!==void 0?o:100;t||Zt(!1,"Must provide document."),Ey(e);const c=Object.freeze({}),p=[],d=new PA(e,t,i,E=>{if(p.length>=l)throw p.push(new Me("Too many validation errors, error limit reached. Validation aborted.")),c;p.push(E)}),m=mE(n.map(E=>E(d)));try{wr(t,qu(i,m))}catch(E){if(E!==c)throw E}return p}function jA(e,t,n=W6){const r=[],i=new Q6(e,t,l=>{r.push(l)}),o=n.map(l=>l(i));return wr(e,mE(o)),r}function K6(e){const t=jA(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(`

`))}function X6(e,t){const n=jA(e,t);if(n.length!==0)throw new Error(n.map(r=>r.message).join(`

`))}function Z6(e){let t;return function(r,i,o){t===void 0&&(t=new WeakMap);let l=t.get(r);l===void 0&&(l=new WeakMap,t.set(r,l));let c=l.get(i);c===void 0&&(c=new WeakMap,l.set(i,c));let p=c.get(o);return p===void 0&&(p=e(r,i,o),c.set(o,p)),p}}function VA(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 J6(e,t,n){let r=n;for(const i of e)r=Bo(r)?r.then(o=>t(o,i)):t(r,i);return r}function e8(e){return e instanceof Error?e:new t8(e)}class t8 extends Error{constructor(t){super("Unexpected error value: "+Ue(t)),this.name="NonErrorThrown",this.thrownValue=t}}function yr(e,t,n){var r;const i=e8(e);return n8(i)?i:new Me(i.message,{nodes:(r=i.nodes)!==null&&r!==void 0?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}function n8(e){return Array.isArray(e.path)}const r8=Z6((e,t,n)=>$6(e.schema,e.fragments,e.variableValues,t,n));function Oy(e){arguments.length<2||Zt(!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;qA(t,n,r);const o=BA(e);if(!("schema"in o))return{errors:o};try{const{operation:l}=o,c=i8(o,l,i);return Bo(c)?c.then(p=>Dy(p,o.errors),p=>(o.errors.push(p),Dy(null,o.errors))):Dy(c,o.errors)}catch(l){return o.errors.push(l),Dy(null,o.errors)}}function UA(e){const t=Oy(e);if(Bo(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 qA(e,t,n){t||Zt(!1,"Must provide document."),Ey(e),n==null||$o(n)||Zt(!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 BA(e){var t,n,r;const{schema:i,document:o,rootValue:l,contextValue:c,variableValues:p,operationName:d,fieldResolver:m,typeResolver:E,subscribeFieldResolver:b,options:y}=e;let x;const w=Object.create(null);for(const A of o.definitions)switch(A.kind){case X.OPERATION_DEFINITION:if(d==null){if(x!==void 0)return[new Me("Must provide operation name if query contains multiple operations.")];x=A}else((t=A.name)===null||t===void 0?void 0:t.value)===d&&(x=A);break;case X.FRAGMENT_DEFINITION:w[A.name.value]=A;break}if(!x)return d!=null?[new Me(`Unknown operation named "${d}".`)]:[new Me("Must provide an operation.")];const k=(n=x.variableDefinitions)!==null&&n!==void 0?n:[],N=bA(i,k,p??{},{maxErrors:(r=y==null?void 0:y.maxCoercionErrors)!==null&&r!==void 0?r:50});return N.errors?N.errors:{schema:i,fragments:w,rootValue:l,contextValue:c,operation:x,variableValues:N.coerced,fieldResolver:m??My,typeResolver:E??YA,subscribeFieldResolver:b??My,errors:[]}}function i8(e,t,n){const r=e.schema.getRootType(t.operation);if(r==null)throw new Me(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});const i=qE(e.schema,e.fragments,e.variableValues,r,t.selectionSet),o=void 0;switch(t.operation){case ai.QUERY:return ky(e,r,n,o,i);case ai.MUTATION:return o8(e,r,n,o,i);case ai.SUBSCRIPTION:return ky(e,r,n,o,i)}}function o8(e,t,n,r,i){return J6(i.entries(),(o,[l,c])=>{const p=Hd(r,l,t.name),d=$A(e,t,n,c,p);return d===void 0?o:Bo(d)?d.then(m=>(o[l]=m,o)):(o[l]=d,o)},Object.create(null))}function ky(e,t,n,r,i){const o=Object.create(null);let l=!1;try{for(const[c,p]of i.entries()){const d=Hd(r,c,t.name),m=$A(e,t,n,p,d);m!==void 0&&(o[c]=m,Bo(m)&&(l=!0))}}catch(c){if(l)return VA(o).finally(()=>{throw c});throw c}return l?VA(o):o}function $A(e,t,n,r,i){var o;const l=WA(e.schema,t,r[0]);if(!l)return;const c=l.type,p=(o=l.resolve)!==null&&o!==void 0?o:e.fieldResolver,d=zA(e,l,r,t,i);try{const m=Ny(l,r[0],e.variableValues),E=e.contextValue,b=p(n,m,E,d);let y;return Bo(b)?y=b.then(x=>gm(e,c,r,d,i,x)):y=gm(e,c,r,d,i,b),Bo(y)?y.then(void 0,x=>{const w=yr(x,r,Ei(i));return Ry(w,c,e)}):y}catch(m){const E=yr(m,r,Ei(i));return Ry(E,c,e)}}function zA(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 Ry(e,t,n){if(_t(t))throw e;return n.errors.push(e),null}function gm(e,t,n,r,i,o){if(o instanceof Error)throw o;if(_t(t)){const l=gm(e,t.ofType,n,r,i,o);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(gn(t))return a8(e,t,n,r,i,o);if(si(t))return s8(t,o);if(lr(t))return l8(e,t,n,r,i,o);if(At(t))return WE(e,t,n,r,i,o);Ur(!1,"Cannot complete value of unexpected output type: "+Ue(t))}function a8(e,t,n,r,i,o){if(!SE(o))throw new Me(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);const l=t.ofType;let c=!1;const p=Array.from(o,(d,m)=>{const E=Hd(i,m,void 0);try{let b;return Bo(d)?b=d.then(y=>gm(e,l,n,r,E,y)):b=gm(e,l,n,r,E,d),Bo(b)?(c=!0,b.then(void 0,y=>{const x=yr(y,n,Ei(E));return Ry(x,l,e)})):b}catch(b){const y=yr(b,n,Ei(E));return Ry(y,l,e)}});return c?Promise.all(p):p}function s8(e,t){const n=e.serialize(t);if(n==null)throw new Error(`Expected \`${Ue(e)}.serialize(${Ue(t)})\` to return non-nullable value, returned: ${Ue(n)}`);return n}function l8(e,t,n,r,i,o){var l;const c=(l=t.resolveType)!==null&&l!==void 0?l:e.typeResolver,p=e.contextValue,d=c(o,p,r,t);return Bo(d)?d.then(m=>WE(e,HA(m,e,t,n,r,o),n,r,i,o)):WE(e,HA(d,e,t,n,r,o),n,r,i,o)}function HA(e,t,n,r,i,o){if(e==null)throw new Me(`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(At(e))throw new Me("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 Me(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${Ue(o)}, received "${Ue(e)}".`);const l=t.schema.getType(e);if(l==null)throw new Me(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!At(l))throw new Me(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,l))throw new Me(`Runtime Object type "${l.name}" is not a possible type for "${n.name}".`,{nodes:r});return l}function WE(e,t,n,r,i,o){const l=r8(e,t,n);if(t.isTypeOf){const c=t.isTypeOf(o,e.contextValue,r);if(Bo(c))return c.then(p=>{if(!p)throw GA(t,o,n);return ky(e,t,o,i,l)});if(!c)throw GA(t,o,n)}return ky(e,t,o,i,l)}function GA(e,t,n){return new Me(`Expected value of type "${e.name}" but got: ${Ue(t)}.`,{nodes:n})}const YA=function(e,t,n,r){if($o(e)&&typeof e.__typename=="string")return e.__typename;const i=n.schema.getPossibleTypes(r),o=[];for(let l=0;l<i.length;l++){const c=i[l];if(c.isTypeOf){const p=c.isTypeOf(e,t,n);if(Bo(p))o[l]=p;else if(p)return c.name}}if(o.length)return Promise.all(o).then(l=>{for(let c=0;c<l.length;c++)if(l[c])return i[c].name})},My=function(e,t,n,r){if($o(e)||typeof e=="function"){const i=e[r.fieldName];return typeof i=="function"?e[r.fieldName](t,n,r):i}};function WA(e,t,n){const r=n.name.value;return r===Sa.name&&e.getQueryType()===t?Sa:r===Ta.name&&e.getQueryType()===t?Ta:r===xa.name?xa:t.getFields()[r]}function u8(e){return new Promise(t=>t(QA(e)))}function c8(e){const t=QA(e);if(Bo(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function QA(e){arguments.length<2||Zt(!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:l,fieldResolver:c,typeResolver:p}=e,d=by(t);if(d.length>0)return{errors:d};let m;try{m=Oi(n)}catch(b){return{errors:[b]}}const E=mm(t,m);return E.length>0?{errors:E}:Oy({schema:t,document:m,rootValue:r,contextValue:i,variableValues:o,operationName:l,fieldResolver:c,typeResolver:p})}function KA(e){return typeof(e==null?void 0:e[Symbol.asyncIterator])=="function"}function f8(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 d8(e){arguments.length<2||Zt(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const t=await XA(e);return KA(t)?f8(t,r=>Oy({...e,rootValue:r})):t}function p8(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 XA(...e){const t=p8(e),{schema:n,document:r,variableValues:i}=t;qA(n,r,i);const o=BA(t);if(!("schema"in o))return{errors:o};try{const l=await h8(o);if(!KA(l))throw new Error(`Subscription field must return Async Iterable. Received: ${Ue(l)}.`);return l}catch(l){if(l instanceof Me)return{errors:[l]};throw l}}async function h8(e){const{schema:t,fragments:n,operation:r,variableValues:i,rootValue:o}=e,l=t.getSubscriptionType();if(l==null)throw new Me("Schema is not configured to execute subscription operation.",{nodes:r});const c=qE(t,n,i,l,r.selectionSet),[p,d]=[...c.entries()][0],m=WA(t,l,d[0]);if(!m){const x=d[0].name.value;throw new Me(`The subscription field "${x}" is not defined.`,{nodes:d})}const E=Hd(void 0,p,l.name),b=zA(e,m,d,l,E);try{var y;const x=Ny(m,d[0],i),w=e.contextValue,N=await((y=m.subscribe)!==null&&y!==void 0?y:e.subscribeFieldResolver)(o,x,w,b);if(N instanceof Error)throw N;return N}catch(x){throw yr(x,d,Ei(E))}}function ZA(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||Ur(!1),e.reportError(new Me(`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 Me(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{const o=e.getParentType(),l=e.getFieldDef();o!=null&&l!=null||Ur(!1),e.reportError(new Me(`Field "${o.name}.${l.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){const n=vn(e.getParentInputType());if(rn(n)){const r=n.getFields()[t.name.value],i=r==null?void 0:r.deprecationReason;i!=null&&e.reportError(new Me(`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=vn(e.getInputType());i!=null||Ur(!1),e.reportError(new Me(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}function m8(e){return{Field(t){const n=vn(e.getType());n&&yf(n)&&e.reportError(new Me(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}function Ly(e){const t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...e},n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"",i=t.directiveIsRepeatable?"isRepeatable":"",o=t.schemaDescription?n:"";function l(p){return t.inputValueDeprecation?p:""}const c=t.oneOf?"isOneOf":"";return`
    query IntrospectionQuery {
      __schema {
        ${o}
        queryType { name kind }
        mutationType { name kind }
        subscriptionType { name kind }
        types {
          ...FullType
        }
        directives {
          name
          ${n}
          ${i}
          locations
          args${l("(includeDeprecated: true)")} {
            ...InputValue
          }
        }
      }
    }

    fragment FullType on __Type {
      kind
      name
      ${n}
      ${r}
      ${c}
      fields(includeDeprecated: true) {
        name
        ${n}
        args${l("(includeDeprecated: true)")} {
          ...InputValue
        }
        type {
          ...TypeRef
        }
        isDeprecated
        deprecationReason
      }
      inputFields${l("(includeDeprecated: true)")} {
        ...InputValue
      }
      interfaces {
        ...TypeRef
      }
      enumValues(includeDeprecated: true) {
        name
        ${n}
        isDeprecated
        deprecationReason
      }
      possibleTypes {
        ...TypeRef
      }
    }

    fragment InputValue on __InputValue {
      name
      ${n}
      type { ...TypeRef }
      defaultValue
      ${l("isDeprecated")}
      ${l("deprecationReason")}
    }

    fragment TypeRef on __Type {
      kind
      name
      ofType {
        kind
        name
        ofType {
          kind
          name
          ofType {
            kind
            name
            ofType {
              kind
              name
              ofType {
                kind
                name
                ofType {
                  kind
                  name
                  ofType {
                    kind
                    name
                    ofType {
                      kind
                      name
                      ofType {
                        kind
                        name
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  `}function QE(e,t){let n=null;for(const i of e.definitions)if(i.kind===X.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 g8(e,t){if(t.operation==="query"){const n=e.getQueryType();if(!n)throw new Me("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 Me("Schema is not configured for mutations.",{nodes:t});return n}if(t.operation==="subscription"){const n=e.getSubscriptionType();if(!n)throw new Me("Schema is not configured for subscriptions.",{nodes:t});return n}throw new Me("Can only have query, mutation and subscription operations.",{nodes:t})}function v8(e,t){const n={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0,...t},r=Oi(Ly(n)),i=UA({schema:e,document:r});return!i.errors&&i.data||Ur(!1),i.data}function KE(e,t){$o(e)&&$o(e.__schema)||Zt(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${Ue(e)}.`);const n=e.__schema,r=Lu(n.types,V=>V.name,V=>b(V));for(const V of[...lm,...dm])r[V.name]&&(r[V.name]=V);const i=n.queryType?m(n.queryType):null,o=n.mutationType?m(n.mutationType):null,l=n.subscriptionType?m(n.subscriptionType):null,c=n.directives?n.directives.map(F):[];return new bf({description:n.description,query:i,mutation:o,subscription:l,types:Object.values(r),directives:c,assumeValid:t==null?void 0:t.assumeValid});function p(V){if(V.kind===qn.LIST){const $=V.ofType;if(!$)throw new Error("Decorated type deeper than introspection query.");return new ur(p($))}if(V.kind===qn.NON_NULL){const $=V.ofType;if(!$)throw new Error("Decorated type deeper than introspection query.");const K=p($);return new Pt(FN(K))}return d(V)}function d(V){const $=V.name;if(!$)throw new Error(`Unknown type reference: ${Ue(V)}.`);const K=r[$];if(!K)throw new Error(`Invalid or incomplete schema, unknown type: ${$}. Ensure that a full introspection query is used in order to build a client schema.`);return K}function m(V){return MN(d(V))}function E(V){return LN(d(V))}function b(V){if(V!=null&&V.name!=null&&V.kind!=null)switch(V.kind){case qn.SCALAR:return y(V);case qn.OBJECT:return w(V);case qn.INTERFACE:return k(V);case qn.UNION:return N(V);case qn.ENUM:return A(V);case qn.INPUT_OBJECT:return O(V)}const $=Ue(V);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${$}.`)}function y(V){return new ba({name:V.name,description:V.description,specifiedByURL:V.specifiedByURL})}function x(V){if(V.interfaces===null&&V.kind===qn.INTERFACE)return[];if(!V.interfaces){const $=Ue(V);throw new Error(`Introspection result missing interfaces: ${$}.`)}return V.interfaces.map(E)}function w(V){return new li({name:V.name,description:V.description,interfaces:()=>x(V),fields:()=>_(V)})}function k(V){return new so({name:V.name,description:V.description,interfaces:()=>x(V),fields:()=>_(V)})}function N(V){if(!V.possibleTypes){const $=Ue(V);throw new Error(`Introspection result missing possibleTypes: ${$}.`)}return new ju({name:V.name,description:V.description,types:()=>V.possibleTypes.map(m)})}function A(V){if(!V.enumValues){const $=Ue(V);throw new Error(`Introspection result missing enumValues: ${$}.`)}return new Gi({name:V.name,description:V.description,values:Lu(V.enumValues,$=>$.name,$=>({description:$.description,deprecationReason:$.deprecationReason}))})}function O(V){if(!V.inputFields){const $=Ue(V);throw new Error(`Introspection result missing inputFields: ${$}.`)}return new lo({name:V.name,description:V.description,fields:()=>j(V.inputFields),isOneOf:V.isOneOf})}function _(V){if(!V.fields)throw new Error(`Introspection result missing fields: ${Ue(V)}.`);return Lu(V.fields,$=>$.name,M)}function M(V){const $=p(V.type);if(!Il($)){const K=Ue($);throw new Error(`Introspection must provide output type for fields, but received: ${K}.`)}if(!V.args){const K=Ue(V);throw new Error(`Introspection result missing field args: ${K}.`)}return{description:V.description,deprecationReason:V.deprecationReason,type:$,args:j(V.args)}}function j(V){return Lu(V,$=>$.name,P)}function P(V){const $=p(V.type);if(!ki($)){const ee=Ue($);throw new Error(`Introspection must provide input type for arguments, but received: ${ee}.`)}const K=V.defaultValue!=null?wa(NN(V.defaultValue),$):void 0;return{description:V.description,type:$,defaultValue:K,deprecationReason:V.deprecationReason}}function F(V){if(!V.args){const $=Ue(V);throw new Error(`Introspection result missing directive args: ${$}.`)}if(!V.locations){const $=Ue(V);throw new Error(`Introspection result missing directive locations: ${$}.`)}return new xo({name:V.name,description:V.description,isRepeatable:V.isRepeatable,locations:V.locations.slice(),args:j(V.args)})}}function y8(e,t,n){NE(e),t!=null&&t.kind===X.DOCUMENT||Zt(!1,"Must provide valid Document AST."),(n==null?void 0:n.assumeValid)!==!0&&(n==null?void 0:n.assumeValidSDL)!==!0&&X6(t,e);const r=e.toConfig(),i=JA(r,t,n);return r===i?e:new bf(i)}function JA(e,t,n){var r,i,o,l;const c=[],p=Object.create(null),d=[];let m;const E=[];for(const se of t.definitions)if(se.kind===X.SCHEMA_DEFINITION)m=se;else if(se.kind===X.SCHEMA_EXTENSION)E.push(se);else if(zd(se))c.push(se);else if(Ty(se)){const pe=se.name.value,ce=p[pe];p[pe]=ce?ce.concat([se]):[se]}else se.kind===X.DIRECTIVE_DEFINITION&&d.push(se);if(Object.keys(p).length===0&&c.length===0&&d.length===0&&E.length===0&&m==null)return e;const b=Object.create(null);for(const se of e.types)b[se.name]=A(se);for(const se of c){var y;const pe=se.name.value;b[pe]=(y=eO[pe])!==null&&y!==void 0?y:he(se)}const x={query:e.query&&k(e.query),mutation:e.mutation&&k(e.mutation),subscription:e.subscription&&k(e.subscription),...m&&K([m]),...K(E)};return{description:(r=m)===null||r===void 0||(i=r.description)===null||i===void 0?void 0:i.value,...x,types:Object.values(b),directives:[...e.directives.map(N),...d.map(W)],extensions:Object.create(null),astNode:(o=m)!==null&&o!==void 0?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(E),assumeValid:(l=n==null?void 0:n.assumeValid)!==null&&l!==void 0?l:!1};function w(se){return gn(se)?new ur(w(se.ofType)):_t(se)?new Pt(w(se.ofType)):k(se)}function k(se){return b[se.name]}function N(se){const pe=se.toConfig();return new xo({...pe,args:Ll(pe.args,$)})}function A(se){if(yf(se)||um(se))return se;if(Di(se))return M(se);if(At(se))return j(se);if(Mt(se))return P(se);if(sr(se))return F(se);if(Qn(se))return _(se);if(rn(se))return O(se);Ur(!1,"Unexpected type: "+Ue(se))}function O(se){var pe;const ce=se.toConfig(),me=(pe=p[ce.name])!==null&&pe!==void 0?pe:[];return new lo({...ce,fields:()=>({...Ll(ce.fields,Se=>({...Se,type:w(Se.type)})),...re(me)}),extensionASTNodes:ce.extensionASTNodes.concat(me)})}function _(se){var pe;const ce=se.toConfig(),me=(pe=p[se.name])!==null&&pe!==void 0?pe:[];return new Gi({...ce,values:{...ce.values,...ae(me)},extensionASTNodes:ce.extensionASTNodes.concat(me)})}function M(se){var pe;const ce=se.toConfig(),me=(pe=p[ce.name])!==null&&pe!==void 0?pe:[];let Se=ce.specifiedByURL;for(const Ge of me){var je;Se=(je=tO(Ge))!==null&&je!==void 0?je:Se}return new ba({...ce,specifiedByURL:Se,extensionASTNodes:ce.extensionASTNodes.concat(me)})}function j(se){var pe;const ce=se.toConfig(),me=(pe=p[ce.name])!==null&&pe!==void 0?pe:[];return new li({...ce,interfaces:()=>[...se.getInterfaces().map(k),...fe(me)],fields:()=>({...Ll(ce.fields,V),...q(me)}),extensionASTNodes:ce.extensionASTNodes.concat(me)})}function P(se){var pe;const ce=se.toConfig(),me=(pe=p[ce.name])!==null&&pe!==void 0?pe:[];return new so({...ce,interfaces:()=>[...se.getInterfaces().map(k),...fe(me)],fields:()=>({...Ll(ce.fields,V),...q(me)}),extensionASTNodes:ce.extensionASTNodes.concat(me)})}function F(se){var pe;const ce=se.toConfig(),me=(pe=p[ce.name])!==null&&pe!==void 0?pe:[];return new ju({...ce,types:()=>[...se.getTypes().map(k),...Z(me)],extensionASTNodes:ce.extensionASTNodes.concat(me)})}function V(se){return{...se,type:w(se.type),args:se.args&&Ll(se.args,$)}}function $(se){return{...se,type:w(se.type)}}function K(se){const pe={};for(const me of se){var ce;const Se=(ce=me.operationTypes)!==null&&ce!==void 0?ce:[];for(const je of Se)pe[je.operation]=ee(je.type)}return pe}function ee(se){var pe;const ce=se.name.value,me=(pe=eO[ce])!==null&&pe!==void 0?pe:b[ce];if(me===void 0)throw new Error(`Unknown type: "${ce}".`);return me}function J(se){return se.kind===X.LIST_TYPE?new ur(J(se.type)):se.kind===X.NON_NULL_TYPE?new Pt(J(se.type)):ee(se)}function W(se){var pe;return new xo({name:se.name.value,description:(pe=se.description)===null||pe===void 0?void 0:pe.value,locations:se.locations.map(({value:ce})=>ce),isRepeatable:se.repeatable,args:te(se.arguments),astNode:se})}function q(se){const pe=Object.create(null);for(const Se of se){var ce;const je=(ce=Se.fields)!==null&&ce!==void 0?ce:[];for(const Ge of je){var me;pe[Ge.name.value]={type:J(Ge.type),description:(me=Ge.description)===null||me===void 0?void 0:me.value,args:te(Ge.arguments),deprecationReason:Iy(Ge),astNode:Ge}}}return pe}function te(se){const pe=se??[],ce=Object.create(null);for(const Se of pe){var me;const je=J(Se.type);ce[Se.name.value]={type:je,description:(me=Se.description)===null||me===void 0?void 0:me.value,defaultValue:wa(Se.defaultValue,je),deprecationReason:Iy(Se),astNode:Se}}return ce}function re(se){const pe=Object.create(null);for(const Se of se){var ce;const je=(ce=Se.fields)!==null&&ce!==void 0?ce:[];for(const Ge of je){var me;const Ye=J(Ge.type);pe[Ge.name.value]={type:Ye,description:(me=Ge.description)===null||me===void 0?void 0:me.value,defaultValue:wa(Ge.defaultValue,Ye),deprecationReason:Iy(Ge),astNode:Ge}}}return pe}function ae(se){const pe=Object.create(null);for(const Se of se){var ce;const je=(ce=Se.values)!==null&&ce!==void 0?ce:[];for(const Ge of je){var me;pe[Ge.name.value]={description:(me=Ge.description)===null||me===void 0?void 0:me.value,deprecationReason:Iy(Ge),astNode:Ge}}}return pe}function fe(se){return se.flatMap(pe=>{var ce,me;return(ce=(me=pe.interfaces)===null||me===void 0?void 0:me.map(ee))!==null&&ce!==void 0?ce:[]})}function Z(se){return se.flatMap(pe=>{var ce,me;return(ce=(me=pe.types)===null||me===void 0?void 0:me.map(ee))!==null&&ce!==void 0?ce:[]})}function he(se){var pe;const ce=se.name.value,me=(pe=p[ce])!==null&&pe!==void 0?pe:[];switch(se.kind){case X.OBJECT_TYPE_DEFINITION:{var Se;const ot=[se,...me];return new li({name:ce,description:(Se=se.description)===null||Se===void 0?void 0:Se.value,interfaces:()=>fe(ot),fields:()=>q(ot),astNode:se,extensionASTNodes:me})}case X.INTERFACE_TYPE_DEFINITION:{var je;const ot=[se,...me];return new so({name:ce,description:(je=se.description)===null||je===void 0?void 0:je.value,interfaces:()=>fe(ot),fields:()=>q(ot),astNode:se,extensionASTNodes:me})}case X.ENUM_TYPE_DEFINITION:{var Ge;const ot=[se,...me];return new Gi({name:ce,description:(Ge=se.description)===null||Ge===void 0?void 0:Ge.value,values:ae(ot),astNode:se,extensionASTNodes:me})}case X.UNION_TYPE_DEFINITION:{var Ye;const ot=[se,...me];return new ju({name:ce,description:(Ye=se.description)===null||Ye===void 0?void 0:Ye.value,types:()=>Z(ot),astNode:se,extensionASTNodes:me})}case X.SCALAR_TYPE_DEFINITION:{var Ot;return new ba({name:ce,description:(Ot=se.description)===null||Ot===void 0?void 0:Ot.value,specifiedByURL:tO(se),astNode:se,extensionASTNodes:me})}case X.INPUT_OBJECT_TYPE_DEFINITION:{var gt;const ot=[se,...me];return new lo({name:ce,description:(gt=se.description)===null||gt===void 0?void 0:gt.value,fields:()=>re(ot),astNode:se,extensionASTNodes:me,isOneOf:b8(se)})}}}}const eO=Ml([...lm,...dm],e=>e.name);function Iy(e){const t=qs(my,e);return t==null?void 0:t.reason}function tO(e){const t=qs(bE,e);return t==null?void 0:t.url}function b8(e){return!!qs(EE,e)}function Fy(e,t){e!=null&&e.kind===X.DOCUMENT||Zt(!1,"Must provide valid Document AST."),(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&K6(e);const r=JA({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,...Vu.filter(o=>r.directives.every(l=>l.name!==o.name))];return new bf({...r,directives:i})}function XE(e,t){const n=Oi(e,{noLocation:t==null?void 0:t.noLocation,allowLegacyFragmentVariables:t==null?void 0:t.allowLegacyFragmentVariables});return Fy(n,{assumeValidSDL:t==null?void 0:t.assumeValidSDL,assumeValid:t==null?void 0:t.assumeValid})}function E8(e){const t=e.toConfig(),n=Lu(ZE(t.types),b=>b.name,E);return new bf({...t,types:Object.values(n),directives:ZE(t.directives).map(l),query:o(t.query),mutation:o(t.mutation),subscription:o(t.subscription)});function r(b){return gn(b)?new ur(r(b.ofType)):_t(b)?new Pt(r(b.ofType)):i(b)}function i(b){return n[b.name]}function o(b){return b&&i(b)}function l(b){const y=b.toConfig();return new xo({...y,locations:nO(y.locations,x=>x),args:c(y.args)})}function c(b){return Py(b,y=>({...y,type:r(y.type)}))}function p(b){return Py(b,y=>({...y,type:r(y.type),args:y.args&&c(y.args)}))}function d(b){return Py(b,y=>({...y,type:r(y.type)}))}function m(b){return ZE(b).map(i)}function E(b){if(Di(b)||yf(b))return b;if(At(b)){const y=b.toConfig();return new li({...y,interfaces:()=>m(y.interfaces),fields:()=>p(y.fields)})}if(Mt(b)){const y=b.toConfig();return new so({...y,interfaces:()=>m(y.interfaces),fields:()=>p(y.fields)})}if(sr(b)){const y=b.toConfig();return new ju({...y,types:()=>m(y.types)})}if(Qn(b)){const y=b.toConfig();return new Gi({...y,values:Py(y.values,x=>x)})}if(rn(b)){const y=b.toConfig();return new lo({...y,fields:()=>d(y.fields)})}Ur(!1,"Unexpected type: "+Ue(b))}}function Py(e,t){const n=Object.create(null);for(const r of Object.keys(e).sort(tm))n[r]=t(e[r]);return n}function ZE(e){return nO(e,t=>t.name)}function nO(e,t){return e.slice().sort((n,r)=>{const i=t(n),o=t(r);return tm(i,o)})}function S8(e){return rO(e,t=>!gy(t),x8)}function T8(e){return rO(e,gy,yf)}function x8(e){return!um(e)&&!yf(e)}function rO(e,t,n){const r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[w8(e),...r.map(o=>R8(o)),...i.map(o=>iO(o))].filter(Boolean).join(`

`)}function w8(e){if(e.description==null&&C8(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}`),Ca(e)+`schema {
${t.join(`
`)}
}`}function C8(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 iO(e){if(Di(e))return _8(e);if(At(e))return N8(e);if(Mt(e))return A8(e);if(sr(e))return O8(e);if(Qn(e))return D8(e);if(rn(e))return k8(e);Ur(!1,"Unexpected type: "+Ue(e))}function _8(e){return Ca(e)+`scalar ${e.name}`+M8(e)}function oO(e){const t=e.getInterfaces();return t.length?" implements "+t.map(n=>n.name).join(" & "):""}function N8(e){return Ca(e)+`type ${e.name}`+oO(e)+aO(e)}function A8(e){return Ca(e)+`interface ${e.name}`+oO(e)+aO(e)}function O8(e){const t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return Ca(e)+"union "+e.name+n}function D8(e){const t=e.getValues().map((n,r)=>Ca(n,"  ",!r)+"  "+n.name+tS(n.deprecationReason));return Ca(e)+`enum ${e.name}`+JE(t)}function k8(e){const t=Object.values(e.getFields()).map((n,r)=>Ca(n,"  ",!r)+"  "+eS(n));return Ca(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+JE(t)}function aO(e){const t=Object.values(e.getFields()).map((n,r)=>Ca(n,"  ",!r)+"  "+n.name+sO(n.args,"  ")+": "+String(n.type)+tS(n.deprecationReason));return JE(t)}function JE(e){return e.length!==0?` {
`+e.join(`
`)+`
}`:""}function sO(e,t=""){return e.length===0?"":e.every(n=>!n.description)?"("+e.map(eS).join(", ")+")":`(
`+e.map((n,r)=>Ca(n,"  "+t,!r)+"  "+t+eS(n)).join(`
`)+`
`+t+")"}function eS(e){const t=Pl(e.defaultValue,e.type);let n=e.name+": "+String(e.type);return t&&(n+=` = ${hn(t)}`),n+tS(e.deprecationReason)}function R8(e){return Ca(e)+"directive @"+e.name+sO(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function tS(e){return e==null?"":e!==yE?` @deprecated(reason: ${hn({kind:X.STRING,value:e})})`:" @deprecated"}function M8(e){return e.specifiedByURL==null?"":` @specifiedBy(url: ${hn({kind:X.STRING,value:e.specifiedByURL})})`}function Ca(e,t="",n=!0){const{description:r}=e;if(r==null)return"";const i=hn({kind:X.STRING,value:r,block:yV(r)});return(t&&!n?`
`+t:t)+i.replace(/\n/g,`
`+t)+`
`}function L8(e){const t=[];for(const n of e)t.push(...n.definitions);return{kind:X.DOCUMENT,definitions:t}}function I8(e){const t=[],n=Object.create(null);for(const i of e.definitions)switch(i.kind){case X.OPERATION_DEFINITION:t.push(i);break;case X.FRAGMENT_DEFINITION:n[i.name.value]=uO(i.selectionSet);break}const r=Object.create(null);for(const i of t){const o=new Set;for(const c of uO(i.selectionSet))lO(o,n,c);const l=i.name?i.name.value:"";r[l]={kind:X.DOCUMENT,definitions:e.definitions.filter(c=>c===i||c.kind===X.FRAGMENT_DEFINITION&&o.has(c.name.value))}}return r}function lO(e,t,n){if(!e.has(n)){e.add(n);const r=t[n];if(r!==void 0)for(const i of r)lO(e,t,i)}}function uO(e){const t=[];return wr(e,{FragmentSpread(n){t.push(n.name.value)}}),t}function cO(e){const t=_N(e)?e:new em(e),n=t.body,r=new dE(t);let i="",o=!1;for(;r.advance().kind!==Pe.EOF;){const l=r.token,c=l.kind,p=!SN(l.kind);o&&(p||l.kind===Pe.SPREAD)&&(i+=" ");const d=n.slice(l.start,l.end);c===Pe.BLOCK_STRING?i+=EN(l.value,{minimize:!0}):i+=d,o=p}return i}function F8(e){const t=fO(e);if(t)throw t;return e}function fO(e){if(typeof e=="string"||Zt(!1,"Expected name to be a string."),e.startsWith("__"))return new Me(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{zo(e)}catch(t){return t}}var Rr;(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"})(Rr||(Rr={}));var is;(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"})(is||(is={}));function P8(e,t){return dO(e,t).filter(n=>n.type in Rr)}function j8(e,t){return dO(e,t).filter(n=>n.type in is)}function dO(e,t){return[...U8(e,t),...V8(e,t)]}function V8(e,t){const n=[],r=jl(e.getDirectives(),t.getDirectives());for(const i of r.removed)n.push({type:Rr.DIRECTIVE_REMOVED,description:`${i.name} was removed.`});for(const[i,o]of r.persisted){const l=jl(i.args,o.args);for(const c of l.added)Pu(c)&&n.push({type:Rr.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${c.name} on directive ${i.name} was added.`});for(const c of l.removed)n.push({type:Rr.DIRECTIVE_ARG_REMOVED,description:`${c.name} was removed from ${i.name}.`});i.isRepeatable&&!o.isRepeatable&&n.push({type:Rr.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${i.name}.`});for(const c of i.locations)o.locations.includes(c)||n.push({type:Rr.DIRECTIVE_LOCATION_REMOVED,description:`${c} was removed from ${i.name}.`})}return n}function U8(e,t){const n=[],r=jl(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(const i of r.removed)n.push({type:Rr.TYPE_REMOVED,description:um(i)?`Standard scalar ${i.name} was removed because it is not referenced anymore.`:`${i.name} was removed.`});for(const[i,o]of r.persisted)Qn(i)&&Qn(o)?n.push(...$8(i,o)):sr(i)&&sr(o)?n.push(...B8(i,o)):rn(i)&&rn(o)?n.push(...q8(i,o)):At(i)&&At(o)?n.push(...hO(i,o),...pO(i,o)):Mt(i)&&Mt(o)?n.push(...hO(i,o),...pO(i,o)):i.constructor!==o.constructor&&n.push({type:Rr.TYPE_CHANGED_KIND,description:`${i.name} changed from ${mO(i)} to ${mO(o)}.`});return n}function q8(e,t){const n=[],r=jl(Object.values(e.getFields()),Object.values(t.getFields()));for(const i of r.added)ly(i)?n.push({type:Rr.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${i.name} on input type ${e.name} was added.`}):n.push({type:is.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:Rr.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(const[i,o]of r.persisted)ym(i.type,o.type)||n.push({type:Rr.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(o.type)}.`});return n}function B8(e,t){const n=[],r=jl(e.getTypes(),t.getTypes());for(const i of r.added)n.push({type:is.TYPE_ADDED_TO_UNION,description:`${i.name} was added to union type ${e.name}.`});for(const i of r.removed)n.push({type:Rr.TYPE_REMOVED_FROM_UNION,description:`${i.name} was removed from union type ${e.name}.`});return n}function $8(e,t){const n=[],r=jl(e.getValues(),t.getValues());for(const i of r.added)n.push({type:is.VALUE_ADDED_TO_ENUM,description:`${i.name} was added to enum type ${e.name}.`});for(const i of r.removed)n.push({type:Rr.VALUE_REMOVED_FROM_ENUM,description:`${i.name} was removed from enum type ${e.name}.`});return n}function pO(e,t){const n=[],r=jl(e.getInterfaces(),t.getInterfaces());for(const i of r.added)n.push({type:is.IMPLEMENTED_INTERFACE_ADDED,description:`${i.name} added to interfaces implemented by ${e.name}.`});for(const i of r.removed)n.push({type:Rr.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${i.name}.`});return n}function hO(e,t){const n=[],r=jl(Object.values(e.getFields()),Object.values(t.getFields()));for(const i of r.removed)n.push({type:Rr.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(const[i,o]of r.persisted)n.push(...z8(e,i,o)),vm(i.type,o.type)||n.push({type:Rr.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(o.type)}.`});return n}function z8(e,t,n){const r=[],i=jl(t.args,n.args);for(const o of i.removed)r.push({type:Rr.ARG_REMOVED,description:`${e.name}.${t.name} arg ${o.name} was removed.`});for(const[o,l]of i.persisted)if(!ym(o.type,l.type))r.push({type:Rr.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${o.name} has changed type from ${String(o.type)} to ${String(l.type)}.`});else if(o.defaultValue!==void 0)if(l.defaultValue===void 0)r.push({type:is.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${o.name} defaultValue was removed.`});else{const p=gO(o.defaultValue,o.type),d=gO(l.defaultValue,l.type);p!==d&&r.push({type:is.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${o.name} has changed defaultValue from ${p} to ${d}.`})}for(const o of i.added)Pu(o)?r.push({type:Rr.REQUIRED_ARG_ADDED,description:`A required arg ${o.name} on ${e.name}.${t.name} was added.`}):r.push({type:is.OPTIONAL_ARG_ADDED,description:`An optional arg ${o.name} on ${e.name}.${t.name} was added.`});return r}function vm(e,t){return gn(e)?gn(t)&&vm(e.ofType,t.ofType)||_t(t)&&vm(e,t.ofType):_t(e)?_t(t)&&vm(e.ofType,t.ofType):Fl(t)&&e.name===t.name||_t(t)&&vm(e,t.ofType)}function ym(e,t){return gn(e)?gn(t)&&ym(e.ofType,t.ofType):_t(e)?_t(t)&&ym(e.ofType,t.ofType)||!_t(t)&&ym(e.ofType,t):Fl(t)&&e.name===t.name}function mO(e){if(Di(e))return"a Scalar type";if(At(e))return"an Object type";if(Mt(e))return"an Interface type";if(sr(e))return"a Union type";if(Qn(e))return"an Enum type";if(rn(e))return"an Input type";Ur(!1,"Unexpected type: "+Ue(e))}function gO(e,t){const n=Pl(e,t);return n!=null||Ur(!1),hn(xy(n))}function jl(e,t){const n=[],r=[],i=[],o=Ml(e,({name:c})=>c),l=Ml(t,({name:c})=>c);for(const c of e){const p=l[c.name];p===void 0?r.push(c):i.push([c,p])}for(const c of t)o[c.name]===void 0&&n.push(c);return{added:n,persisted:i,removed:r}}const H8=Object.freeze(Object.defineProperty({__proto__:null,BREAK:gf,get BreakingChangeType(){return Rr},DEFAULT_DEPRECATION_REASON:yE,get DangerousChangeType(){return is},get DirectiveLocation(){return lt},ExecutableDefinitionsRule:ME,FieldsOnCorrectTypeRule:WN,FragmentsOnCompositeTypesRule:QN,GRAPHQL_MAX_INT:cy,GRAPHQL_MIN_INT:fy,GraphQLBoolean:Jn,GraphQLDeprecatedDirective:my,GraphQLDirective:xo,GraphQLEnumType:Gi,GraphQLError:Me,GraphQLFloat:am,GraphQLID:sm,GraphQLIncludeDirective:py,GraphQLInputObjectType:lo,GraphQLInt:om,GraphQLInterfaceType:so,GraphQLList:ur,GraphQLNonNull:Pt,GraphQLObjectType:li,GraphQLOneOfDirective:EE,GraphQLScalarType:ba,GraphQLSchema:bf,GraphQLSkipDirective:hy,GraphQLSpecifiedByDirective:bE,GraphQLString:Zn,GraphQLUnionType:ju,get Kind(){return X},KnownArgumentNamesRule:KN,KnownDirectivesRule:LE,KnownFragmentNamesRule:ZN,KnownTypeNamesRule:IE,Lexer:dE,Location:gN,LoneAnonymousOperationRule:eA,LoneSchemaDefinitionRule:tA,MaxIntrospectionDepthRule:nA,NoDeprecatedCustomRule:ZA,NoFragmentCyclesRule:rA,NoSchemaIntrospectionCustomRule:m8,NoUndefinedVariablesRule:iA,NoUnusedFragmentsRule:FE,NoUnusedVariablesRule:oA,get OperationTypeNode(){return ai},OverlappingFieldsCanBeMergedRule:sA,PossibleFragmentSpreadsRule:dA,PossibleTypeExtensionsRule:pA,ProvidedRequiredArgumentsRule:hA,ScalarLeafsRule:gA,SchemaMetaFieldDef:Sa,SingleFieldSubscriptionsRule:TA,Source:em,Token:lE,get TokenKind(){return Pe},TypeInfo:Uu,get TypeKind(){return qn},TypeMetaFieldDef:Ta,TypeNameMetaFieldDef:xa,UniqueArgumentDefinitionNamesRule:xA,UniqueArgumentNamesRule:zE,UniqueDirectiveNamesRule:wA,UniqueDirectivesPerLocationRule:HE,UniqueEnumValueNamesRule:CA,UniqueFieldDefinitionNamesRule:_A,UniqueFragmentNamesRule:NA,UniqueInputFieldNamesRule:GE,UniqueOperationNamesRule:AA,UniqueOperationTypesRule:OA,UniqueTypeNamesRule:DA,UniqueVariableNamesRule:kA,ValidationContext:PA,ValuesOfCorrectTypeRule:RA,VariablesAreInputTypesRule:MA,VariablesInAllowedPositionRule:LA,__Directive:TE,__DirectiveLocation:xE,__EnumValue:CE,__Field:wE,__InputValue:fm,__Schema:vy,__Type:Ea,__TypeKind:_E,assertAbstractType:IN,assertCompositeType:n6,assertDirective:s6,assertEnumType:QV,assertEnumValueName:RN,assertInputObjectType:KV,assertInputType:JV,assertInterfaceType:LN,assertLeafType:t6,assertListType:XV,assertName:zo,assertNamedType:i6,assertNonNullType:ZV,assertNullableType:FN,assertObjectType:MN,assertOutputType:e6,assertScalarType:YV,assertSchema:NE,assertType:GV,assertUnionType:WV,assertValidName:F8,assertValidSchema:Ey,assertWrappingType:r6,astFromValue:Pl,buildASTSchema:Fy,buildClientSchema:KE,buildSchema:XE,coerceInputValue:UE,concatAST:L8,createSourceEventStream:XA,defaultFieldResolver:My,defaultTypeResolver:YA,doTypesOverlap:im,execute:Oy,executeSync:UA,extendSchema:y8,findBreakingChanges:P8,findDangerousChanges:j8,formatError:hV,getArgumentValues:Ny,getDirectiveValues:qs,getEnterLeaveForKind:qd,getIntrospectionQuery:Ly,getLocation:Jv,getNamedType:vn,getNullableType:Fu,getOperationAST:QE,getOperationRootType:g8,getVariableValues:bA,getVisitFn:$V,graphql:u8,graphqlSync:c8,introspectionFromSchema:v8,introspectionTypes:dm,isAbstractType:lr,isCompositeType:Kr,isConstValueNode:kE,isDefinitionNode:E6,isDirective:dy,isEnumType:Qn,isEqualType:uy,isExecutableDefinitionNode:DE,isInputObjectType:rn,isInputType:ki,isInterfaceType:Mt,isIntrospectionType:yf,isLeafType:si,isListType:gn,isNamedType:Fl,isNonNullType:_t,isNullableType:rm,isObjectType:At,isOutputType:Il,isRequiredArgument:Pu,isRequiredInputField:ly,isScalarType:Di,isSchema:yy,isSelectionNode:S6,isSpecifiedDirective:gy,isSpecifiedScalarType:um,isType:Bd,isTypeDefinitionNode:zd,isTypeExtensionNode:Ty,isTypeNode:T6,isTypeSubTypeOf:vf,isTypeSystemDefinitionNode:Sy,isTypeSystemExtensionNode:RE,isUnionType:sr,isValidNameError:fO,isValueNode:YN,isWrappingType:nm,lexicographicSortSchema:E8,locatedError:yr,parse:Oi,parseConstValue:LV,parseType:IV,parseValue:NN,print:hn,printError:pV,printIntrospectionSchema:T8,printLocation:pN,printSchema:S8,printSourceLocation:sE,printType:iO,recommendedRules:IA,resolveObjMapThunk:vE,resolveReadonlyArrayThunk:gE,responsePathAsArray:Ei,separateOperations:I8,specifiedDirectives:Vu,specifiedRules:YE,specifiedScalarTypes:lm,stripIgnoredCharacters:cO,subscribe:d8,syntaxError:oi,typeFromAST:bi,validate:mm,validateSchema:by,valueFromAST:wa,valueFromASTUntyped:ay,version:cV,versionInfo:Zv,visit:wr,visitInParallel:mE,visitWithTypeInfo:qu},Symbol.toStringTag,{value:"Module"}));var vO=function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(l){l(o)})}return new(n||(n=Promise))(function(o,l){function c(m){try{d(r.next(m))}catch(E){l(E)}}function p(m){try{d(r.throw(m))}catch(E){l(E)}}function d(m){m.done?o(m.value):i(m.value).then(c,p)}d((r=r.apply(e,t||[])).next())})};function yO(e){return typeof e=="object"&&e!==null&&typeof e.then=="function"}function G8(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"))}})})}function bO(e){return typeof e=="object"&&e!==null&&"subscribe"in e&&typeof e.subscribe=="function"}function EO(e){return typeof e=="object"&&e!==null&&(e[Symbol.toStringTag]==="AsyncGenerator"||Symbol.asyncIterator in e)}function Y8(e){var t;return vO(this,void 0,void 0,function*(){const n=(t=("return"in e?e:e[Symbol.asyncIterator]()).return)===null||t===void 0?void 0:t.bind(e),i=yield("next"in e?e:e[Symbol.asyncIterator]()).next.bind(e)();return n==null||n(),i.value})}function SO(e){return vO(this,void 0,void 0,function*(){const t=yield e;return EO(t)?Y8(t):bO(t)?G8(t):t})}var W8=new TextDecoder;async function Q8(e,t){if(!e.ok||!e.body||e.bodyUsed)return e;let n=e.headers.get("content-type");if(!n||!~n.indexOf("multipart/"))return e;let r=n.indexOf("boundary="),i="-";if(~r){let o=r+9,l=n.indexOf(";",o);i=n.slice(o,l>-1?l:void 0).trim().replace(/"/g,"")}return async function*(o,l,c){let p,d,m,E=o.getReader(),b=!0,y=l.length,x="",w=[];try{let k;e:for(;!(k=await E.read()).done;){let N=W8.decode(k.value);p=x.length,x+=N;let A=N.indexOf(l);for(~A?p+=A:p=x.indexOf(l),w=[];~p;){let O=x.slice(0,p),_=x.slice(p+y);if(d){let M=O.indexOf(`\r
\r
`)+4,j=O.lastIndexOf(`\r
`,M),P=!1,F=O.slice(M,j>-1?void 0:j),V=String(O.slice(0,M)).trim().split(`\r
`),$={},K=V.length;for(;m=V[--K];m=m.split(": "),$[m.shift().toLowerCase()]=m.join(": "));if(m=$["content-type"],m&&~m.indexOf("application/json"))try{F=JSON.parse(F),P=!0}catch{}if(m={headers:$,body:F,json:P},b?yield m:w.push(m),_.slice(0,2)==="--")break e}else l=`\r
`+l,d=y+=2;x=_,p=x.indexOf(l)}w.length&&(yield w)}}finally{w.length&&(yield w),await E.cancel()}}(e.body,`--${i}`)}var nS=function(e){return this instanceof nS?(this.v=e,this):new nS(e)};function rS(e){return JSON.stringify(e,null,2)}function K8(e){return Object.assign(Object.assign({},e),{message:e.message,stack:e.stack})}function TO(e){return e instanceof Error?K8(e):e}function bm(e){return Array.isArray(e)?rS({errors:e.map(t=>TO(t))}):rS({errors:[TO(e)]})}function iS(e){return rS(e)}function X8(e,t,n){const r=[];if(!e||!t)return{insertions:r,result:t};let i;try{i=Oi(t)}catch{return{insertions:r,result:t}}const o=n||Z8,l=new Uu(e);return wr(i,{leave(c){l.leave(c)},enter(c){if(l.enter(c),c.kind==="Field"&&!c.selectionSet){const p=l.getType(),d=xO(t9(p),o);if(d&&c.loc){const m=e9(t,c.loc.start);r.push({index:c.loc.end,string:" "+hn(d).replaceAll(`
`,`
`+m)})}}}}),{insertions:r,result:J8(t,r)}}function Z8(e){if(!("getFields"in e))return[];const t=e.getFields();if(t.id)return["id"];if(t.edges)return["edges"];if(t.node)return["node"];const n=[];for(const r of Object.keys(t))si(t[r].type)&&n.push(r);return n}function xO(e,t){const n=vn(e);if(!e||si(e))return;const r=t(n);if(!(!Array.isArray(r)||r.length===0||!("getFields"in n)))return{kind:X.SELECTION_SET,selections:r.map(i=>{const o=n.getFields()[i],l=o?o.type:null;return{kind:X.FIELD,name:{kind:X.NAME,value:i},selectionSet:xO(l,t)}})}}function J8(e,t){if(t.length===0)return e;let n="",r=0;for(const{index:i,string:o}of t)n+=e.slice(r,i)+o,r=i;return n+=e.slice(r),n}function e9(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.slice(n,r)}function t9(e){if(e)return e}function n9(e,t){var n;const r=new Map,i=[];for(const o of e)if(o.kind==="Field"){const l=t(o),c=r.get(l);if(!((n=o.directives)===null||n===void 0)&&n.length){const p=Object.assign({},o);i.push(p)}else if(c!=null&&c.selectionSet&&o.selectionSet)c.selectionSet.selections=[...c.selectionSet.selections,...o.selectionSet.selections];else if(!c){const p=Object.assign({},o);r.set(l,p),i.push(p)}}else i.push(o);return i}function wO(e,t,n){var r;const i=n?vn(n).name:null,o=[],l=[];for(let c of t){if(c.kind==="FragmentSpread"){const p=c.name.value;if(!c.directives||c.directives.length===0){if(l.includes(p))continue;l.push(p)}const d=e[c.name.value];if(d){const{typeCondition:m,directives:E,selectionSet:b}=d;c={kind:X.INLINE_FRAGMENT,typeCondition:m,directives:E,selectionSet:b}}}if(c.kind===X.INLINE_FRAGMENT&&(!c.directives||((r=c.directives)===null||r===void 0?void 0:r.length)===0)){const p=c.typeCondition?c.typeCondition.name.value:null;if(!p||p===i){o.push(...wO(e,c.selectionSet.selections,n));continue}}o.push(c)}return o}function r9(e,t){const n=t?new Uu(t):null,r=Object.create(null);for(const c of e.definitions)c.kind===X.FRAGMENT_DEFINITION&&(r[c.name.value]=c);const i={SelectionSet(c){const p=n?n.getParentType():null;let{selections:d}=c;return d=wO(r,d,p),Object.assign(Object.assign({},c),{selections:d})},FragmentDefinition(){return null}},o=wr(e,n?qu(n,i):i);return wr(o,{SelectionSet(c){let{selections:p}=c;return p=n9(p,d=>d.alias?d.alias.value:d.name.value),Object.assign(Object.assign({},c),{selections:p})},FragmentDefinition(){return null}})}function i9(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.includes(t))return t;if(t&&e){const o=e.map(l=>{var c;return(c=l.name)===null||c===void 0?void 0:c.value}).indexOf(t);if(o!==-1&&o<r.length)return r[o]}return r[0]}function o9(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}class oS{constructor(t){t?this.storage=t:t===null?this.storage=null:typeof window>"u"?this.storage=null:this.storage={getItem:localStorage.getItem.bind(localStorage),setItem:localStorage.setItem.bind(localStorage),removeItem:localStorage.removeItem.bind(localStorage),get length(){let n=0;for(const r in localStorage)r.indexOf(`${jy}:`)===0&&(n+=1);return n},clear(){for(const n in localStorage)n.indexOf(`${jy}:`)===0&&localStorage.removeItem(n)}}}get(t){if(!this.storage)return null;const n=`${jy}:${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=`${jy}:${t}`;if(n)try{this.storage.setItem(o,n)}catch(l){i=l instanceof Error?l:new Error(`${l}`),r=o9(this.storage,l)}else this.storage.removeItem(o)}return{isQuotaError:r,error:i}}clear(){this.storage&&this.storage.clear()}}const jy="graphiql";class CO{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,n){if(typeof n=="number"&&this.items[n]){const i=this.items[n];if(i.query===t.query&&i.variables===t.variables&&i.headers===t.headers&&i.operationName===t.operationName){this.items.splice(n,1,t),this.save();return}}const r=this.items.findIndex(i=>i.query===t.query&&i.variables===t.variables&&i.headers===t.headers&&i.operationName===t.operationName);r!==-1&&(this.items.splice(r,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.at(-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!=null&&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}))}}const a9=1e5;class s9{constructor(t,n){this.storage=t,this.maxHistoryLength=n,this.updateHistory=({query:r,variables:i,headers:o,operationName:l})=>{if(!this.shouldSaveQuery(r,i,o,this.history.fetchRecent()))return;this.history.push({query:r,variables:i,headers:o,operationName:l});const c=this.history.items,p=this.favorite.items;this.queries=c.concat(p)},this.deleteHistory=({query:r,variables:i,headers:o,operationName:l,favorite:c},p=!1)=>{function d(m){const E=m.items.find(b=>b.query===r&&b.variables===i&&b.headers===o&&b.operationName===l);E&&m.delete(E)}(c||p)&&d(this.favorite),(!c||p)&&d(this.history),this.queries=[...this.history.items,...this.favorite.items]},this.history=new CO("queries",this.storage,this.maxHistoryLength),this.favorite=new CO("favorites",this.storage,null),this.queries=[...this.history.fetchAll(),...this.favorite.fetchAll()]}shouldSaveQuery(t,n,r,i){if(!t)return!1;try{Oi(t)}catch{return!1}return t.length>a9?!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({query:t,variables:n,headers:r,operationName:i,label:o,favorite:l}){const c={query:t,variables:n,headers:r,operationName:i,label:o};l?(c.favorite=!1,this.favorite.delete(c),this.history.push(c)):(c.favorite=!0,this.favorite.push(c),this.history.delete(c)),this.queries=[...this.history.items,...this.favorite.items]}editLabel({query:t,variables:n,headers:r,operationName:i,label:o,favorite:l},c){const p={query:t,variables:n,headers:r,operationName:i,label:o};l?this.favorite.edit(Object.assign(Object.assign({},p),{favorite:l}),c):this.history.edit(p,c),this.queries=[...this.history.items,...this.favorite.items]}}function Tf(e){const t=Object.keys(e),n=t.length,r=new Array(n);for(let i=0;i<n;++i)r[i]=e[t[i]];return r}function cr(e,t){return l9(t,_O(e.string))}function l9(e,t){if(!t||t.trim()===""||t.trim()===":"||t.trim()==="{")return aS(e,r=>!r.isDeprecated);const n=e.map(r=>({proximity:u9(_O(r.label),t),entry:r}));return aS(aS(n,r=>r.proximity<=2),r=>!r.entry.isDeprecated).sort((r,i)=>(r.entry.isDeprecated?1:0)-(i.entry.isDeprecated?1:0)||r.proximity-i.proximity||r.entry.label.length-i.entry.label.length).map(r=>r.entry)}function aS(e,t){const n=e.filter(t);return n.length===0?e:n}function _O(e){return e.toLowerCase().replaceAll(/\W/g,"")}function u9(e,t){let n=c9(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=e.indexOf(t)===0?0:.5),n}function c9(e,t){let n,r;const i=[],o=e.length,l=t.length;for(n=0;n<=o;n++)i[n]=[n];for(r=1;r<=l;r++)i[0][r]=r;for(n=1;n<=o;n++)for(r=1;r<=l;r++){const c=e[n-1]===t[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+c),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+c))}return i[o][l]}const f9=e=>` {
   $1
}`,Vy=(e,t,n)=>{if(!t)return n??e;const r=vn(t);return At(r)||rn(r)||gn(r)||lr(r)?e+f9():n??e},NO=(e,t,n)=>{if(gn(t)){const r=vn(t.ofType);return e+`[${Vy("",r,"$1")}]`}return Vy(e,t,n)},d9=e=>{const t=e.args.filter(n=>n.type.toString().endsWith("!"));if(t.length)return e.name+`(${t.map((n,r)=>`${n.name}: $${r+1}`)}) ${Vy("",e.type,`
`)}`};var AO;(function(e){function t(n){return typeof n=="string"}e.is=t})(AO||(AO={}));var sS;(function(e){function t(n){return typeof n=="string"}e.is=t})(sS||(sS={}));var OO;(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.is=t})(OO||(OO={}));var Uy;(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.is=t})(Uy||(Uy={}));var os;(function(e){function t(r,i){return r===Number.MAX_VALUE&&(r=Uy.MAX_VALUE),i===Number.MAX_VALUE&&(i=Uy.MAX_VALUE),{line:r,character:i}}e.create=t;function n(r){let i=r;return Ne.objectLiteral(i)&&Ne.uinteger(i.line)&&Ne.uinteger(i.character)}e.is=n})(os||(os={}));var qr;(function(e){function t(r,i,o,l){if(Ne.uinteger(r)&&Ne.uinteger(i)&&Ne.uinteger(o)&&Ne.uinteger(l))return{start:os.create(r,i),end:os.create(o,l)};if(os.is(r)&&os.is(i))return{start:r,end:i};throw new Error(`Range#create called with invalid arguments[${r}, ${i}, ${o}, ${l}]`)}e.create=t;function n(r){let i=r;return Ne.objectLiteral(i)&&os.is(i.start)&&os.is(i.end)}e.is=n})(qr||(qr={}));var qy;(function(e){function t(r,i){return{uri:r,range:i}}e.create=t;function n(r){let i=r;return Ne.objectLiteral(i)&&qr.is(i.range)&&(Ne.string(i.uri)||Ne.undefined(i.uri))}e.is=n})(qy||(qy={}));var DO;(function(e){function t(r,i,o,l){return{targetUri:r,targetRange:i,targetSelectionRange:o,originSelectionRange:l}}e.create=t;function n(r){let i=r;return Ne.objectLiteral(i)&&qr.is(i.targetRange)&&Ne.string(i.targetUri)&&qr.is(i.targetSelectionRange)&&(qr.is(i.originSelectionRange)||Ne.undefined(i.originSelectionRange))}e.is=n})(DO||(DO={}));var lS;(function(e){function t(r,i,o,l){return{red:r,green:i,blue:o,alpha:l}}e.create=t;function n(r){const i=r;return Ne.objectLiteral(i)&&Ne.numberRange(i.red,0,1)&&Ne.numberRange(i.green,0,1)&&Ne.numberRange(i.blue,0,1)&&Ne.numberRange(i.alpha,0,1)}e.is=n})(lS||(lS={}));var kO;(function(e){function t(r,i){return{range:r,color:i}}e.create=t;function n(r){const i=r;return Ne.objectLiteral(i)&&qr.is(i.range)&&lS.is(i.color)}e.is=n})(kO||(kO={}));var RO;(function(e){function t(r,i,o){return{label:r,textEdit:i,additionalTextEdits:o}}e.create=t;function n(r){const i=r;return Ne.objectLiteral(i)&&Ne.string(i.label)&&(Ne.undefined(i.textEdit)||Yd.is(i))&&(Ne.undefined(i.additionalTextEdits)||Ne.typedArray(i.additionalTextEdits,Yd.is))}e.is=n})(RO||(RO={}));var MO;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(MO||(MO={}));var LO;(function(e){function t(r,i,o,l,c,p){const d={startLine:r,endLine:i};return Ne.defined(o)&&(d.startCharacter=o),Ne.defined(l)&&(d.endCharacter=l),Ne.defined(c)&&(d.kind=c),Ne.defined(p)&&(d.collapsedText=p),d}e.create=t;function n(r){const i=r;return Ne.objectLiteral(i)&&Ne.uinteger(i.startLine)&&Ne.uinteger(i.startLine)&&(Ne.undefined(i.startCharacter)||Ne.uinteger(i.startCharacter))&&(Ne.undefined(i.endCharacter)||Ne.uinteger(i.endCharacter))&&(Ne.undefined(i.kind)||Ne.string(i.kind))}e.is=n})(LO||(LO={}));var uS;(function(e){function t(r,i){return{location:r,message:i}}e.create=t;function n(r){let i=r;return Ne.defined(i)&&qy.is(i.location)&&Ne.string(i.message)}e.is=n})(uS||(uS={}));var IO;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(IO||(IO={}));var FO;(function(e){e.Unnecessary=1,e.Deprecated=2})(FO||(FO={}));var PO;(function(e){function t(n){const r=n;return Ne.objectLiteral(r)&&Ne.string(r.href)}e.is=t})(PO||(PO={}));var By;(function(e){function t(r,i,o,l,c,p){let d={range:r,message:i};return Ne.defined(o)&&(d.severity=o),Ne.defined(l)&&(d.code=l),Ne.defined(c)&&(d.source=c),Ne.defined(p)&&(d.relatedInformation=p),d}e.create=t;function n(r){var i;let o=r;return Ne.defined(o)&&qr.is(o.range)&&Ne.string(o.message)&&(Ne.number(o.severity)||Ne.undefined(o.severity))&&(Ne.integer(o.code)||Ne.string(o.code)||Ne.undefined(o.code))&&(Ne.undefined(o.codeDescription)||Ne.string((i=o.codeDescription)===null||i===void 0?void 0:i.href))&&(Ne.string(o.source)||Ne.undefined(o.source))&&(Ne.undefined(o.relatedInformation)||Ne.typedArray(o.relatedInformation,uS.is))}e.is=n})(By||(By={}));var Gd;(function(e){function t(r,i,...o){let l={title:r,command:i};return Ne.defined(o)&&o.length>0&&(l.arguments=o),l}e.create=t;function n(r){let i=r;return Ne.defined(i)&&Ne.string(i.title)&&Ne.string(i.command)}e.is=n})(Gd||(Gd={}));var Yd;(function(e){function t(o,l){return{range:o,newText:l}}e.replace=t;function n(o,l){return{range:{start:o,end:o},newText:l}}e.insert=n;function r(o){return{range:o,newText:""}}e.del=r;function i(o){const l=o;return Ne.objectLiteral(l)&&Ne.string(l.newText)&&qr.is(l.range)}e.is=i})(Yd||(Yd={}));var cS;(function(e){function t(r,i,o){const l={label:r};return i!==void 0&&(l.needsConfirmation=i),o!==void 0&&(l.description=o),l}e.create=t;function n(r){const i=r;return Ne.objectLiteral(i)&&Ne.string(i.label)&&(Ne.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(Ne.string(i.description)||i.description===void 0)}e.is=n})(cS||(cS={}));var Wd;(function(e){function t(n){const r=n;return Ne.string(r)}e.is=t})(Wd||(Wd={}));var jO;(function(e){function t(o,l,c){return{range:o,newText:l,annotationId:c}}e.replace=t;function n(o,l,c){return{range:{start:o,end:o},newText:l,annotationId:c}}e.insert=n;function r(o,l){return{range:o,newText:"",annotationId:l}}e.del=r;function i(o){const l=o;return Yd.is(l)&&(cS.is(l.annotationId)||Wd.is(l.annotationId))}e.is=i})(jO||(jO={}));var fS;(function(e){function t(r,i){return{textDocument:r,edits:i}}e.create=t;function n(r){let i=r;return Ne.defined(i)&&gS.is(i.textDocument)&&Array.isArray(i.edits)}e.is=n})(fS||(fS={}));var dS;(function(e){function t(r,i,o){let l={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(l.options=i),o!==void 0&&(l.annotationId=o),l}e.create=t;function n(r){let i=r;return i&&i.kind==="create"&&Ne.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||Ne.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||Ne.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Wd.is(i.annotationId))}e.is=n})(dS||(dS={}));var pS;(function(e){function t(r,i,o,l){let c={kind:"rename",oldUri:r,newUri:i};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(c.options=o),l!==void 0&&(c.annotationId=l),c}e.create=t;function n(r){let i=r;return i&&i.kind==="rename"&&Ne.string(i.oldUri)&&Ne.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||Ne.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||Ne.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Wd.is(i.annotationId))}e.is=n})(pS||(pS={}));var hS;(function(e){function t(r,i,o){let l={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(l.options=i),o!==void 0&&(l.annotationId=o),l}e.create=t;function n(r){let i=r;return i&&i.kind==="delete"&&Ne.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||Ne.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||Ne.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||Wd.is(i.annotationId))}e.is=n})(hS||(hS={}));var mS;(function(e){function t(n){let r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(i=>Ne.string(i.kind)?dS.is(i)||pS.is(i)||hS.is(i):fS.is(i)))}e.is=t})(mS||(mS={}));var VO;(function(e){function t(r){return{uri:r}}e.create=t;function n(r){let i=r;return Ne.defined(i)&&Ne.string(i.uri)}e.is=n})(VO||(VO={}));var UO;(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return Ne.defined(i)&&Ne.string(i.uri)&&Ne.integer(i.version)}e.is=n})(UO||(UO={}));var gS;(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return Ne.defined(i)&&Ne.string(i.uri)&&(i.version===null||Ne.integer(i.version))}e.is=n})(gS||(gS={}));var qO;(function(e){function t(r,i,o,l){return{uri:r,languageId:i,version:o,text:l}}e.create=t;function n(r){let i=r;return Ne.defined(i)&&Ne.string(i.uri)&&Ne.string(i.languageId)&&Ne.integer(i.version)&&Ne.string(i.text)}e.is=n})(qO||(qO={}));var vS;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(n){const r=n;return r===e.PlainText||r===e.Markdown}e.is=t})(vS||(vS={}));var Em;(function(e){function t(n){const r=n;return Ne.objectLiteral(n)&&vS.is(r.kind)&&Ne.string(r.value)}e.is=t})(Em||(Em={}));var BO;(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})(BO||(BO={}));var Qd;(function(e){e.PlainText=1,e.Snippet=2})(Qd||(Qd={}));var $O;(function(e){e.Deprecated=1})($O||($O={}));var zO;(function(e){function t(r,i,o){return{newText:r,insert:i,replace:o}}e.create=t;function n(r){const i=r;return i&&Ne.string(i.newText)&&qr.is(i.insert)&&qr.is(i.replace)}e.is=n})(zO||(zO={}));var xf;(function(e){e.asIs=1,e.adjustIndentation=2})(xf||(xf={}));var HO;(function(e){function t(n){const r=n;return r&&(Ne.string(r.detail)||r.detail===void 0)&&(Ne.string(r.description)||r.description===void 0)}e.is=t})(HO||(HO={}));var GO;(function(e){function t(n){return{label:n}}e.create=t})(GO||(GO={}));var YO;(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(YO||(YO={}));var $y;(function(e){function t(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function n(r){const i=r;return Ne.string(i)||Ne.objectLiteral(i)&&Ne.string(i.language)&&Ne.string(i.value)}e.is=n})($y||($y={}));var WO;(function(e){function t(n){let r=n;return!!r&&Ne.objectLiteral(r)&&(Em.is(r.contents)||$y.is(r.contents)||Ne.typedArray(r.contents,$y.is))&&(n.range===void 0||qr.is(n.range))}e.is=t})(WO||(WO={}));var QO;(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(QO||(QO={}));var KO;(function(e){function t(n,r,...i){let o={label:n};return Ne.defined(r)&&(o.documentation=r),Ne.defined(i)?o.parameters=i:o.parameters=[],o}e.create=t})(KO||(KO={}));var XO;(function(e){e.Text=1,e.Read=2,e.Write=3})(XO||(XO={}));var ZO;(function(e){function t(n,r){let i={range:n};return Ne.number(r)&&(i.kind=r),i}e.create=t})(ZO||(ZO={}));var JO;(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})(JO||(JO={}));var eD;(function(e){e.Deprecated=1})(eD||(eD={}));var tD;(function(e){function t(n,r,i,o,l){let c={name:n,kind:r,location:{uri:o,range:i}};return l&&(c.containerName=l),c}e.create=t})(tD||(tD={}));var nD;(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.create=t})(nD||(nD={}));var rD;(function(e){function t(r,i,o,l,c,p){let d={name:r,detail:i,kind:o,range:l,selectionRange:c};return p!==void 0&&(d.children=p),d}e.create=t;function n(r){let i=r;return i&&Ne.string(i.name)&&Ne.number(i.kind)&&qr.is(i.range)&&qr.is(i.selectionRange)&&(i.detail===void 0||Ne.string(i.detail))&&(i.deprecated===void 0||Ne.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}e.is=n})(rD||(rD={}));var iD;(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"})(iD||(iD={}));var zy;(function(e){e.Invoked=1,e.Automatic=2})(zy||(zy={}));var oD;(function(e){function t(r,i,o){let l={diagnostics:r};return i!=null&&(l.only=i),o!=null&&(l.triggerKind=o),l}e.create=t;function n(r){let i=r;return Ne.defined(i)&&Ne.typedArray(i.diagnostics,By.is)&&(i.only===void 0||Ne.typedArray(i.only,Ne.string))&&(i.triggerKind===void 0||i.triggerKind===zy.Invoked||i.triggerKind===zy.Automatic)}e.is=n})(oD||(oD={}));var aD;(function(e){function t(r,i,o){let l={title:r},c=!0;return typeof i=="string"?(c=!1,l.kind=i):Gd.is(i)?l.command=i:l.edit=i,c&&o!==void 0&&(l.kind=o),l}e.create=t;function n(r){let i=r;return i&&Ne.string(i.title)&&(i.diagnostics===void 0||Ne.typedArray(i.diagnostics,By.is))&&(i.kind===void 0||Ne.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||Gd.is(i.command))&&(i.isPreferred===void 0||Ne.boolean(i.isPreferred))&&(i.edit===void 0||mS.is(i.edit))}e.is=n})(aD||(aD={}));var sD;(function(e){function t(r,i){let o={range:r};return Ne.defined(i)&&(o.data=i),o}e.create=t;function n(r){let i=r;return Ne.defined(i)&&qr.is(i.range)&&(Ne.undefined(i.command)||Gd.is(i.command))}e.is=n})(sD||(sD={}));var lD;(function(e){function t(r,i){return{tabSize:r,insertSpaces:i}}e.create=t;function n(r){let i=r;return Ne.defined(i)&&Ne.uinteger(i.tabSize)&&Ne.boolean(i.insertSpaces)}e.is=n})(lD||(lD={}));var uD;(function(e){function t(r,i,o){return{range:r,target:i,data:o}}e.create=t;function n(r){let i=r;return Ne.defined(i)&&qr.is(i.range)&&(Ne.undefined(i.target)||Ne.string(i.target))}e.is=n})(uD||(uD={}));var cD;(function(e){function t(r,i){return{range:r,parent:i}}e.create=t;function n(r){let i=r;return Ne.objectLiteral(i)&&qr.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=n})(cD||(cD={}));var fD;(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"})(fD||(fD={}));var dD;(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"})(dD||(dD={}));var pD;(function(e){function t(n){const r=n;return Ne.objectLiteral(r)&&(r.resultId===void 0||typeof r.resultId=="string")&&Array.isArray(r.data)&&(r.data.length===0||typeof r.data[0]=="number")}e.is=t})(pD||(pD={}));var hD;(function(e){function t(r,i){return{range:r,text:i}}e.create=t;function n(r){const i=r;return i!=null&&qr.is(i.range)&&Ne.string(i.text)}e.is=n})(hD||(hD={}));var mD;(function(e){function t(r,i,o){return{range:r,variableName:i,caseSensitiveLookup:o}}e.create=t;function n(r){const i=r;return i!=null&&qr.is(i.range)&&Ne.boolean(i.caseSensitiveLookup)&&(Ne.string(i.variableName)||i.variableName===void 0)}e.is=n})(mD||(mD={}));var gD;(function(e){function t(r,i){return{range:r,expression:i}}e.create=t;function n(r){const i=r;return i!=null&&qr.is(i.range)&&(Ne.string(i.expression)||i.expression===void 0)}e.is=n})(gD||(gD={}));var vD;(function(e){function t(r,i){return{frameId:r,stoppedLocation:i}}e.create=t;function n(r){const i=r;return Ne.defined(i)&&qr.is(r.stoppedLocation)}e.is=n})(vD||(vD={}));var yS;(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(yS||(yS={}));var bS;(function(e){function t(r){return{value:r}}e.create=t;function n(r){const i=r;return Ne.objectLiteral(i)&&(i.tooltip===void 0||Ne.string(i.tooltip)||Em.is(i.tooltip))&&(i.location===void 0||qy.is(i.location))&&(i.command===void 0||Gd.is(i.command))}e.is=n})(bS||(bS={}));var yD;(function(e){function t(r,i,o){const l={position:r,label:i};return o!==void 0&&(l.kind=o),l}e.create=t;function n(r){const i=r;return Ne.objectLiteral(i)&&os.is(i.position)&&(Ne.string(i.label)||Ne.typedArray(i.label,bS.is))&&(i.kind===void 0||yS.is(i.kind))&&i.textEdits===void 0||Ne.typedArray(i.textEdits,Yd.is)&&(i.tooltip===void 0||Ne.string(i.tooltip)||Em.is(i.tooltip))&&(i.paddingLeft===void 0||Ne.boolean(i.paddingLeft))&&(i.paddingRight===void 0||Ne.boolean(i.paddingRight))}e.is=n})(yD||(yD={}));var bD;(function(e){function t(n){return{kind:"snippet",value:n}}e.createSnippet=t})(bD||(bD={}));var ED;(function(e){function t(n,r,i,o){return{insertText:n,filterText:r,range:i,command:o}}e.create=t})(ED||(ED={}));var SD;(function(e){function t(n){return{items:n}}e.create=t})(SD||(SD={}));var TD;(function(e){e.Invoked=0,e.Automatic=1})(TD||(TD={}));var xD;(function(e){function t(n,r){return{range:n,text:r}}e.create=t})(xD||(xD={}));var wD;(function(e){function t(n,r){return{triggerKind:n,selectedCompletionInfo:r}}e.create=t})(wD||(wD={}));var CD;(function(e){function t(n){const r=n;return Ne.objectLiteral(r)&&sS.is(r.uri)&&Ne.string(r.name)}e.is=t})(CD||(CD={}));var _D;(function(e){function t(o,l,c,p){return new p9(o,l,c,p)}e.create=t;function n(o){let l=o;return!!(Ne.defined(l)&&Ne.string(l.uri)&&(Ne.undefined(l.languageId)||Ne.string(l.languageId))&&Ne.uinteger(l.lineCount)&&Ne.func(l.getText)&&Ne.func(l.positionAt)&&Ne.func(l.offsetAt))}e.is=n;function r(o,l){let c=o.getText(),p=i(l,(m,E)=>{let b=m.range.start.line-E.range.start.line;return b===0?m.range.start.character-E.range.start.character:b}),d=c.length;for(let m=p.length-1;m>=0;m--){let E=p[m],b=o.offsetAt(E.range.start),y=o.offsetAt(E.range.end);if(y<=d)c=c.substring(0,b)+E.newText+c.substring(y,c.length);else throw new Error("Overlapping edit");d=b}return c}e.applyEdits=r;function i(o,l){if(o.length<=1)return o;const c=o.length/2|0,p=o.slice(0,c),d=o.slice(c);i(p,l),i(d,l);let m=0,E=0,b=0;for(;m<p.length&&E<d.length;)l(p[m],d[E])<=0?o[b++]=p[m++]:o[b++]=d[E++];for(;m<p.length;)o[b++]=p[m++];for(;E<d.length;)o[b++]=d[E++];return o}})(_D||(_D={}));class p9{constructor(t,n,r,i){this._uri=t,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content}update(t,n){this._content=t.text,this._version=n,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let t=[],n=this._content,r=!0;for(let i=0;i<n.length;i++){r&&(t.push(i),r=!1);let o=n.charAt(i);r=o==="\r"||o===`
`,o==="\r"&&i+1<n.length&&n.charAt(i+1)===`
`&&i++}r&&n.length>0&&t.push(n.length),this._lineOffsets=t}return this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return os.create(0,t);for(;r<i;){let l=Math.floor((r+i)/2);n[l]>t?i=l:r=l+1}let o=r-1;return os.create(o,t-n[o])}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let 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)}get lineCount(){return this.getLineOffsets().length}}var Ne;(function(e){const t=Object.prototype.toString;function n(y){return typeof y<"u"}e.defined=n;function r(y){return typeof y>"u"}e.undefined=r;function i(y){return y===!0||y===!1}e.boolean=i;function o(y){return t.call(y)==="[object String]"}e.string=o;function l(y){return t.call(y)==="[object Number]"}e.number=l;function c(y,x,w){return t.call(y)==="[object Number]"&&x<=y&&y<=w}e.numberRange=c;function p(y){return t.call(y)==="[object Number]"&&-2147483648<=y&&y<=2147483647}e.integer=p;function d(y){return t.call(y)==="[object Number]"&&0<=y&&y<=2147483647}e.uinteger=d;function m(y){return t.call(y)==="[object Function]"}e.func=m;function E(y){return y!==null&&typeof y=="object"}e.objectLiteral=E;function b(y,x){return Array.isArray(y)&&y.every(x)}e.typedArray=b})(Ne||(Ne={}));class ES{constructor(t){this._start=0,this._pos=0,this.getStartOfToken=()=>this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>this._pos===0,this.peek=()=>this._sourceText.charAt(this._pos)||null,this.next=()=>{const n=this._sourceText.charAt(this._pos);return this._pos++,n},this.eat=n=>{if(this._testNextCharacter(n))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=n=>{let r=this._testNextCharacter(n),i=!1;for(r&&(i=r,this._start=this._pos);r;)this._pos++,r=this._testNextCharacter(n),i=!0;return i},this.eatSpace=()=>this.eatWhile(/[\s\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=n=>{this._pos=n},this.match=(n,r=!0,i=!1)=>{let o=null,l=null;return typeof n=="string"?(l=new RegExp(n,i?"i":"g").test(this._sourceText.slice(this._pos,this._pos+n.length)),o=n):n instanceof RegExp&&(l=this._sourceText.slice(this._pos).match(n),o=l==null?void 0:l[0]),l!=null&&(typeof n=="string"||l instanceof Array&&this._sourceText.startsWith(l[0],this._pos))?(r&&(this._start=this._pos,o&&o.length&&(this._pos+=o.length)),l):!1},this.backUp=n=>{this._pos-=n},this.column=()=>this._pos,this.indentation=()=>{const n=this._sourceText.match(/\s*/);let r=0;if(n&&n.length!==0){const i=n[0];let o=0;for(;i.length>o;)i.charCodeAt(o)===9?r+=2:r++,o++}return r},this.current=()=>this._sourceText.slice(this._start,this._pos),this._sourceText=t}_testNextCharacter(t){const n=this._sourceText.charAt(this._pos);let r=!1;return typeof t=="string"?r=n===t:r=t instanceof RegExp?t.test(n):t(n),r}}function br(e){return{ofRule:e}}function on(e,t){return{ofRule:e,isList:!0,separator:t}}function h9(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}function Ho(e,t){return{style:t,match:n=>n.kind===e}}function vt(e,t){return{style:t||"punctuation",match:n=>n.kind==="Punctuation"&&n.value===e}}const ND=e=>e===" "||e==="	"||e===","||e===`
`||e==="\r"||e==="\uFEFF"||e===" ",AD={Name:/^[_A-Za-z][_0-9A-Za-z]*/,Punctuation:/^(?:!|\$|\(|\)|\.\.\.|:|=|&|@|\[|]|\{|\||\})/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^(?:"""(?:\\"""|[^"]|"[^"]|""[^"])*(?:""")?|"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?)/,Comment:/^#.*/},OD={Document:[on("Definition")],Definition(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return X.FRAGMENT_DEFINITION;case"schema":return"SchemaDef";case"scalar":return"ScalarDef";case"type":return"ObjectTypeDef";case"interface":return"InterfaceDef";case"union":return"UnionDef";case"enum":return"EnumDef";case"input":return"InputDef";case"extend":return"ExtendDef";case"directive":return"DirectiveDef"}},ShortQuery:["SelectionSet"],Query:[Ri("query"),br(er("def")),br("VariableDefinitions"),on("Directive"),"SelectionSet"],Mutation:[Ri("mutation"),br(er("def")),br("VariableDefinitions"),on("Directive"),"SelectionSet"],Subscription:[Ri("subscription"),br(er("def")),br("VariableDefinitions"),on("Directive"),"SelectionSet"],VariableDefinitions:[vt("("),on("VariableDefinition"),vt(")")],VariableDefinition:["Variable",vt(":"),"Type",br("DefaultValue")],Variable:[vt("$","variable"),er("variable")],DefaultValue:[vt("="),"Value"],SelectionSet:[vt("{"),on("Selection"),vt("}")],Selection(e,t){return e.value==="..."?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field"},AliasedField:[er("property"),vt(":"),er("qualifier"),br("Arguments"),on("Directive"),br("SelectionSet")],Field:[er("property"),br("Arguments"),on("Directive"),br("SelectionSet")],Arguments:[vt("("),on("Argument"),vt(")")],Argument:[er("attribute"),vt(":"),"Value"],FragmentSpread:[vt("..."),er("def"),on("Directive")],InlineFragment:[vt("..."),br("TypeCondition"),on("Directive"),"SelectionSet"],FragmentDefinition:[Ri("fragment"),br(h9(er("def"),[Ri("on")])),"TypeCondition",on("Directive"),"SelectionSet"],TypeCondition:[Ri("on"),"NamedType"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable";case"&":return"NamedType"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return e.value==="null"?"NullValue":"EnumValue"}},NumberValue:[Ho("Number","number")],StringValue:[{style:"string",match:e=>e.kind==="String",update(e,t){t.value.startsWith('"""')&&(e.inBlockstring=!t.value.slice(3).endsWith('"""'))}}],BooleanValue:[Ho("Name","builtin")],NullValue:[Ho("Name","keyword")],EnumValue:[er("string-2")],ListValue:[vt("["),on("Value"),vt("]")],ObjectValue:[vt("{"),on("ObjectField"),vt("}")],ObjectField:[er("attribute"),vt(":"),"Value"],Type(e){return e.value==="["?"ListType":"NonNullType"},ListType:[vt("["),"Type",vt("]"),br(vt("!"))],NonNullType:["NamedType",br(vt("!"))],NamedType:[m9("atom")],Directive:[vt("@","meta"),er("meta"),br("Arguments")],DirectiveDef:[Ri("directive"),vt("@","meta"),er("meta"),br("ArgumentsDef"),Ri("on"),on("DirectiveLocation",vt("|"))],InterfaceDef:[Ri("interface"),er("atom"),br("Implements"),on("Directive"),vt("{"),on("FieldDef"),vt("}")],Implements:[Ri("implements"),on("NamedType",vt("&"))],DirectiveLocation:[er("string-2")],SchemaDef:[Ri("schema"),on("Directive"),vt("{"),on("OperationTypeDef"),vt("}")],OperationTypeDef:[er("keyword"),vt(":"),er("atom")],ScalarDef:[Ri("scalar"),er("atom"),on("Directive")],ObjectTypeDef:[Ri("type"),er("atom"),br("Implements"),on("Directive"),vt("{"),on("FieldDef"),vt("}")],FieldDef:[er("property"),br("ArgumentsDef"),vt(":"),"Type",on("Directive")],ArgumentsDef:[vt("("),on("InputValueDef"),vt(")")],InputValueDef:[er("attribute"),vt(":"),"Type",br("DefaultValue"),on("Directive")],UnionDef:[Ri("union"),er("atom"),on("Directive"),vt("="),on("UnionMember",vt("|"))],UnionMember:["NamedType"],EnumDef:[Ri("enum"),er("atom"),on("Directive"),vt("{"),on("EnumValueDef"),vt("}")],EnumValueDef:[er("string-2"),on("Directive")],InputDef:[Ri("input"),er("atom"),on("Directive"),vt("{"),on("InputValueDef"),vt("}")],ExtendDef:[Ri("extend"),"ExtensionDefinition"],ExtensionDefinition(e){switch(e.value){case"schema":return X.SCHEMA_EXTENSION;case"scalar":return X.SCALAR_TYPE_EXTENSION;case"type":return X.OBJECT_TYPE_EXTENSION;case"interface":return X.INTERFACE_TYPE_EXTENSION;case"union":return X.UNION_TYPE_EXTENSION;case"enum":return X.ENUM_TYPE_EXTENSION;case"input":return X.INPUT_OBJECT_TYPE_EXTENSION}},[X.SCHEMA_EXTENSION]:["SchemaDef"],[X.SCALAR_TYPE_EXTENSION]:["ScalarDef"],[X.OBJECT_TYPE_EXTENSION]:["ObjectTypeDef"],[X.INTERFACE_TYPE_EXTENSION]:["InterfaceDef"],[X.UNION_TYPE_EXTENSION]:["UnionDef"],[X.ENUM_TYPE_EXTENSION]:["EnumDef"],[X.INPUT_OBJECT_TYPE_EXTENSION]:["InputDef"]};function Ri(e){return{style:"keyword",match:t=>t.kind==="Name"&&t.value===e}}function er(e){return{style:e,match:t=>t.kind==="Name",update(t,n){t.name=n.value}}}function m9(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)}}}function Sm(e={eatWhitespace:t=>t.eatWhile(ND),lexRules:AD,parseRules:OD,editorConfig:{}}){return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeparator:!1,prevState:null};return Tm(e.parseRules,t,X.DOCUMENT),t},token(t,n){return g9(t,n,e)}}}function g9(e,t,n){var r;if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");const{lexRules:i,parseRules:o,eatWhitespace:l,editorConfig:c}=n;if(t.rule&&t.rule.length===0?TS(t):t.needsAdvance&&(t.needsAdvance=!1,xS(t,!0)),e.sol()){const m=(c==null?void 0:c.tabSize)||2;t.indentLevel=Math.floor(e.indentation()/m)}if(l(e))return"ws";const p=y9(i,e);if(!p)return e.match(/\S+/)||e.match(/\s/),Tm(SS,t,"Invalid"),"invalidchar";if(p.kind==="Comment")return Tm(SS,t,"Comment"),"comment";const d=DD({},t);if(p.kind==="Punctuation"){if(/^[{([]/.test(p.value))t.indentLevel!==void 0&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\]]/.test(p.value)){const m=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&m.length>0&&m.at(-1)<t.indentLevel&&(t.indentLevel=m.at(-1))}}for(;t.rule;){let m=typeof t.rule=="function"?t.step===0?t.rule(p,e):null:t.rule[t.step];if(t.needsSeparator&&(m=m==null?void 0:m.separator),m){if(m.ofRule&&(m=m.ofRule),typeof m=="string"){Tm(o,t,m);continue}if(!((r=m.match)===null||r===void 0)&&r.call(m,p))return m.update&&m.update(t,p),p.kind==="Punctuation"?xS(t,!0):t.needsAdvance=!0,m.style}v9(t)}return DD(t,d),Tm(SS,t,"Invalid"),"invalidchar"}function DD(e,t){const n=Object.keys(t);for(let r=0;r<n.length;r++)e[n[r]]=t[n[r]];return e}const SS={Invalid:[],Comment:[]};function Tm(e,t,n){if(!e[n])throw new TypeError("Unknown rule: "+n);t.prevState=Object.assign({},t),t.kind=n,t.name=null,t.type=null,t.rule=e[n],t.step=0,t.needsSeparator=!1}function TS(e){e.prevState&&(e.kind=e.prevState.kind,e.name=e.prevState.name,e.type=e.prevState.type,e.rule=e.prevState.rule,e.step=e.prevState.step,e.needsSeparator=e.prevState.needsSeparator,e.prevState=e.prevState.prevState)}function xS(e,t){var n;if(kD(e)&&e.rule){const r=e.rule[e.step];if(r.separator){const{separator:i}=r;if(e.needsSeparator=!e.needsSeparator,!e.needsSeparator&&i.ofRule)return}if(t)return}for(e.needsSeparator=!1,e.step++;e.rule&&!(Array.isArray(e.rule)&&e.step<e.rule.length);)TS(e),e.rule&&(kD(e)?!((n=e.rule)===null||n===void 0)&&n[e.step].separator&&(e.needsSeparator=!e.needsSeparator):(e.needsSeparator=!1,e.step++))}function kD(e){const t=Array.isArray(e.rule)&&typeof e.rule[e.step]!="string"&&e.rule[e.step];return t&&t.isList}function v9(e){for(;e.rule&&!(Array.isArray(e.rule)&&e.rule[e.step].ofRule);)TS(e);e.rule&&xS(e,!1)}function y9(e,t){const n=Object.keys(e);for(let r=0;r<n.length;r++){const i=t.match(e[n[r]]);if(i&&i instanceof Array)return{kind:n[r],value:i[0]}}}function Hy(e,t){const n=e.split(`
`),r=Sm();let i=r.startState(),o="",l=new ES("");for(let c=0;c<n.length;c++){for(l=new ES(n[c]);!l.eol()&&(o=r.token(l,i),t(l,i,o,c)!=="BREAK"););t(l,i,o,c),i.kind||(i=r.startState())}return{start:l.getStartOfToken(),end:l.getCurrentPosition(),string:l.current(),state:i,style:o}}var wf;(function(e){e.TYPE_SYSTEM="TYPE_SYSTEM",e.EXECUTABLE="EXECUTABLE",e.UNKNOWN="UNKNOWN"})(wf||(wf={}));const b9=[X.SCHEMA_DEFINITION,X.OPERATION_TYPE_DEFINITION,X.SCALAR_TYPE_DEFINITION,X.OBJECT_TYPE_DEFINITION,X.INTERFACE_TYPE_DEFINITION,X.UNION_TYPE_DEFINITION,X.ENUM_TYPE_DEFINITION,X.INPUT_OBJECT_TYPE_DEFINITION,X.DIRECTIVE_DEFINITION,X.SCHEMA_EXTENSION,X.SCALAR_TYPE_EXTENSION,X.OBJECT_TYPE_EXTENSION,X.INTERFACE_TYPE_EXTENSION,X.UNION_TYPE_EXTENSION,X.ENUM_TYPE_EXTENSION,X.INPUT_OBJECT_TYPE_EXTENSION],E9=e=>{let t=wf.UNKNOWN;if(e)try{wr(Oi(e),{enter(n){if(n.kind==="Document"){t=wf.EXECUTABLE;return}return b9.includes(n.kind)?(t=wf.TYPE_SYSTEM,gf):!1}})}catch{return t}return t};function S9(e,t){return E9(e)}function T9(e,t,n=0){let r=null,i=null,o=null;const l=Hy(e,(c,p,d,m)=>{if(!(m!==t.line||c.getCurrentPosition()+n<t.character+1))return r=d,i=Object.assign({},p),o=c.current(),"BREAK"});return{start:l.start,end:l.end,string:o||l.string,state:i||l.state,style:r||l.style}}function x9(e,t,n,r,i){const o=r||T9(e,t,1);if(!o)return null;const l=o.state.kind==="Invalid"?o.state.prevState:o.state;if(!l)return null;const c=C9(n,o.state),p=S9(e);return{token:o,state:l,typeInfo:c,mode:p}}function RD(e,t,n){return n===Sa.name&&e.getQueryType()===t?Sa:n===Ta.name&&e.getQueryType()===t?Ta:n===xa.name&&Kr(t)?xa:"getFields"in t?t.getFields()[n]:null}function MD(e,t){const n=[];let r=e;for(;r!=null&&r.kind;)n.push(r),r=r.prevState;for(let i=n.length-1;i>=0;i--)t(n[i])}function w9(e){let t;return MD(e,n=>{switch(n.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=n;break}}),t}function C9(e,t){let n,r,i,o,l,c,p,d,m,E,b;return MD(t,y=>{var x;switch(y.kind){case tt.QUERY:case"ShortQuery":E=e.getQueryType();break;case tt.MUTATION:E=e.getMutationType();break;case tt.SUBSCRIPTION:E=e.getSubscriptionType();break;case tt.INLINE_FRAGMENT:case tt.FRAGMENT_DEFINITION:y.type&&(E=e.getType(y.type));break;case tt.FIELD:case tt.ALIASED_FIELD:{!E||!y.name?l=null:(l=m?RD(e,m,y.name):null,E=l?l.type:null);break}case tt.SELECTION_SET:m=vn(E);break;case tt.DIRECTIVE:i=y.name?e.getDirective(y.name):null;break;case tt.INTERFACE_DEF:y.name&&(p=null,b=new so({name:y.name,interfaces:[],fields:{}}));break;case tt.OBJECT_TYPE_DEF:y.name&&(b=null,p=new li({name:y.name,interfaces:[],fields:{}}));break;case tt.ARGUMENTS:{if(y.prevState)switch(y.prevState.kind){case tt.FIELD:r=l&&l.args;break;case tt.DIRECTIVE:r=i&&i.args;break;case tt.ALIASED_FIELD:{const O=(x=y.prevState)===null||x===void 0?void 0:x.name;if(!O){r=null;break}const _=m?RD(e,m,O):null;if(!_){r=null;break}r=_.args;break}default:r=null;break}else r=null;break}case tt.ARGUMENT:if(r){for(let O=0;O<r.length;O++)if(r[O].name===y.name){n=r[O];break}}c=n==null?void 0:n.type;break;case tt.VARIABLE_DEFINITION:case tt.VARIABLE:E=c;break;case tt.ENUM_VALUE:const w=vn(c);o=w instanceof Gi?w.getValues().find(O=>O.value===y.name):null;break;case tt.LIST_VALUE:const k=Fu(c);c=k instanceof ur?k.ofType:null;break;case tt.OBJECT_VALUE:const N=vn(c);d=N instanceof lo?N.getFields():null;break;case tt.OBJECT_FIELD:const A=y.name&&d?d[y.name]:null;c=A==null?void 0:A.type,l=A,E=l?l.type:null;break;case tt.NAMED_TYPE:y.name&&(E=e.getType(y.name));break}}),{argDef:n,argDefs:r,directiveDef:i,enumValue:o,fieldDef:l,inputType:c,objectFieldDefs:d,parentType:m,type:E,interfaceDef:b,objectTypeDef:p}}const _9={ALIASED_FIELD:"AliasedField",ARGUMENTS:"Arguments",SHORT_QUERY:"ShortQuery",QUERY:"Query",MUTATION:"Mutation",SUBSCRIPTION:"Subscription",TYPE_CONDITION:"TypeCondition",INVALID:"Invalid",COMMENT:"Comment",SCHEMA_DEF:"SchemaDef",SCALAR_DEF:"ScalarDef",OBJECT_TYPE_DEF:"ObjectTypeDef",OBJECT_VALUE:"ObjectValue",LIST_VALUE:"ListValue",INTERFACE_DEF:"InterfaceDef",UNION_DEF:"UnionDef",ENUM_DEF:"EnumDef",ENUM_VALUE:"EnumValue",FIELD_DEF:"FieldDef",INPUT_DEF:"InputDef",INPUT_VALUE_DEF:"InputValueDef",ARGUMENTS_DEF:"ArgumentsDef",EXTEND_DEF:"ExtendDef",EXTENSION_DEFINITION:"ExtensionDefinition",DIRECTIVE_DEF:"DirectiveDef",IMPLEMENTS:"Implements",VARIABLE_DEFINITIONS:"VariableDefinitions",TYPE:"Type",VARIABLE:"Variable"},tt=Object.assign(Object.assign({},X),_9);var un;(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})(un||(un={}));const wS={command:"editor.action.triggerSuggest",title:"Suggestions"},N9=e=>{const t=[];if(e)try{wr(Oi(e),{FragmentDefinition(n){t.push(n)}})}catch{return[]}return t};function A9(e,t,n,r,i,o){var l;const c=Object.assign(Object.assign({},o),{schema:e}),p=x9(t,n,e,r);if(!p)return[];const{state:d,typeInfo:m,mode:E,token:b}=p,{kind:y,step:x,prevState:w}=d;if(y===tt.DOCUMENT)return E===wf.TYPE_SYSTEM?O9(b):E===wf.EXECUTABLE?D9(b):k9(b);if(y===tt.EXTEND_DEF)return R9(b);if(((l=w==null?void 0:w.prevState)===null||l===void 0?void 0:l.kind)===tt.EXTENSION_DEFINITION&&d.name)return cr(b,[]);if((w==null?void 0:w.kind)===X.SCALAR_TYPE_EXTENSION)return cr(b,Object.values(e.getTypeMap()).filter(Di).map(N=>({label:N.name,kind:un.Function})));if((w==null?void 0:w.kind)===X.OBJECT_TYPE_EXTENSION)return cr(b,Object.values(e.getTypeMap()).filter(N=>At(N)&&!N.name.startsWith("__")).map(N=>({label:N.name,kind:un.Function})));if((w==null?void 0:w.kind)===X.INTERFACE_TYPE_EXTENSION)return cr(b,Object.values(e.getTypeMap()).filter(Mt).map(N=>({label:N.name,kind:un.Function})));if((w==null?void 0:w.kind)===X.UNION_TYPE_EXTENSION)return cr(b,Object.values(e.getTypeMap()).filter(sr).map(N=>({label:N.name,kind:un.Function})));if((w==null?void 0:w.kind)===X.ENUM_TYPE_EXTENSION)return cr(b,Object.values(e.getTypeMap()).filter(N=>Qn(N)&&!N.name.startsWith("__")).map(N=>({label:N.name,kind:un.Function})));if((w==null?void 0:w.kind)===X.INPUT_OBJECT_TYPE_EXTENSION)return cr(b,Object.values(e.getTypeMap()).filter(rn).map(N=>({label:N.name,kind:un.Function})));if(y===tt.IMPLEMENTS||y===tt.NAMED_TYPE&&(w==null?void 0:w.kind)===tt.IMPLEMENTS)return I9(b,d,e,t,m);if(y===tt.SELECTION_SET||y===tt.FIELD||y===tt.ALIASED_FIELD)return M9(b,m,c);if(y===tt.ARGUMENTS||y===tt.ARGUMENT&&x===0){const{argDefs:N}=m;if(N)return cr(b,N.map(A=>{var O;return{label:A.name,insertText:NO(A.name+": ",A.type),insertTextMode:xf.adjustIndentation,insertTextFormat:Qd.Snippet,command:wS,labelDetails:{detail:" "+String(A.type)},documentation:(O=A.description)!==null&&O!==void 0?O:void 0,kind:un.Variable,type:A.type}}))}if((y===tt.OBJECT_VALUE||y===tt.OBJECT_FIELD&&x===0)&&m.objectFieldDefs){const N=Tf(m.objectFieldDefs),A=y===tt.OBJECT_VALUE?un.Value:un.Field;return cr(b,N.map(O=>{var _;return{label:O.name,detail:String(O.type),documentation:(_=O==null?void 0:O.description)!==null&&_!==void 0?_:void 0,kind:A,type:O.type,insertText:NO(O.name+": ",O.type),insertTextMode:xf.adjustIndentation,insertTextFormat:Qd.Snippet,command:wS}}))}if(y===tt.ENUM_VALUE||y===tt.LIST_VALUE&&x===1||y===tt.OBJECT_FIELD&&x===2||y===tt.ARGUMENT&&x===2)return L9(b,m,t,e);if(y===tt.VARIABLE&&x===1){const N=vn(m.inputType),A=ID(t,e,b);return cr(b,A.filter(O=>O.detail===(N==null?void 0:N.name)))}if(y===tt.TYPE_CONDITION&&x===1||y===tt.NAMED_TYPE&&w!=null&&w.kind===tt.TYPE_CONDITION)return F9(b,m,e);if(y===tt.FRAGMENT_SPREAD&&x===1)return P9(b,m,e,t,Array.isArray(i)?i:N9(i));const k=FD(d);return k.kind===tt.FIELD_DEF?cr(b,Object.values(e.getTypeMap()).filter(N=>Il(N)&&!N.name.startsWith("__")).map(N=>({label:N.name,kind:un.Function,insertText:N.name,insertTextMode:xf.adjustIndentation}))):k.kind===tt.INPUT_VALUE_DEF&&x===2?cr(b,Object.values(e.getTypeMap()).filter(N=>ki(N)&&!N.name.startsWith("__")).map(N=>({label:N.name,kind:un.Function,insertText:N.name,insertTextMode:xf.adjustIndentation,insertTextFormat:Qd.Snippet}))):y===tt.VARIABLE_DEFINITION&&x===2||y===tt.LIST_TYPE&&x===1||y===tt.NAMED_TYPE&&w&&(w.kind===tt.VARIABLE_DEFINITION||w.kind===tt.LIST_TYPE||w.kind===tt.NON_NULL_TYPE)?U9(b,e):y===tt.DIRECTIVE?q9(b,d,e):y===tt.DIRECTIVE_DEF?B9(b,d,e):[]}const CS=[{label:"type",kind:un.Function},{label:"interface",kind:un.Function},{label:"union",kind:un.Function},{label:"input",kind:un.Function},{label:"scalar",kind:un.Function},{label:"schema",kind:un.Function}],LD=[{label:"query",kind:un.Function},{label:"mutation",kind:un.Function},{label:"subscription",kind:un.Function},{label:"fragment",kind:un.Function},{label:"{",kind:un.Constructor}];function O9(e){return cr(e,[{label:"extend",kind:un.Function},...CS])}function D9(e){return cr(e,LD)}function k9(e){return cr(e,[{label:"extend",kind:un.Function},...LD,...CS])}function R9(e){return cr(e,CS)}function M9(e,t,n){var r;if(t.parentType){const{parentType:i}=t;let o=[];return"getFields"in i&&(o=Tf(i.getFields())),Kr(i)&&o.push(xa),i===((r=n==null?void 0:n.schema)===null||r===void 0?void 0:r.getQueryType())&&o.push(Sa,Ta),cr(e,o.map((l,c)=>{var p;const d={sortText:String(c)+l.name,label:l.name,detail:String(l.type),documentation:(p=l.description)!==null&&p!==void 0?p:void 0,deprecated:!!l.deprecationReason,isDeprecated:!!l.deprecationReason,deprecationReason:l.deprecationReason,kind:un.Field,labelDetails:{detail:" "+l.type.toString()},type:l.type};return n!=null&&n.fillLeafsOnComplete&&(d.insertText=d9(l),d.insertText||(d.insertText=Vy(l.name,l.type,l.name+(e.state.needsAdvance?"":`
`))),d.insertText&&(d.insertTextFormat=Qd.Snippet,d.insertTextMode=xf.adjustIndentation,d.command=wS)),d}))}return[]}function L9(e,t,n,r){const i=vn(t.inputType),o=ID(n,r,e).filter(l=>l.detail===(i==null?void 0:i.name));if(i instanceof Gi){const l=i.getValues();return cr(e,l.map(c=>{var p;return{label:c.name,detail:String(i),documentation:(p=c.description)!==null&&p!==void 0?p:void 0,deprecated:!!c.deprecationReason,isDeprecated:!!c.deprecationReason,deprecationReason:c.deprecationReason,kind:un.EnumMember,type:i}}).concat(o))}return i===Jn?cr(e,o.concat([{label:"true",detail:String(Jn),documentation:"Not false.",kind:un.Variable,type:Jn},{label:"false",detail:String(Jn),documentation:"Not true.",kind:un.Variable,type:Jn}])):o}function I9(e,t,n,r,i){if(t.needsSeparator)return[];const o=n.getTypeMap(),l=Tf(o).filter(Mt),c=l.map(({name:y})=>y),p=new Set;Hy(r,(y,x)=>{var w,k,N,A,O;if(x.name&&(x.kind===tt.INTERFACE_DEF&&!c.includes(x.name)&&p.add(x.name),x.kind===tt.NAMED_TYPE&&((w=x.prevState)===null||w===void 0?void 0:w.kind)===tt.IMPLEMENTS)){if(i.interfaceDef){if((k=i.interfaceDef)===null||k===void 0?void 0:k.getInterfaces().find(({name:P})=>P===x.name))return;const M=n.getType(x.name),j=(N=i.interfaceDef)===null||N===void 0?void 0:N.toConfig();i.interfaceDef=new so(Object.assign(Object.assign({},j),{interfaces:[...j.interfaces,M||new so({name:x.name,fields:{}})]}))}else if(i.objectTypeDef){if((A=i.objectTypeDef)===null||A===void 0?void 0:A.getInterfaces().find(({name:P})=>P===x.name))return;const M=n.getType(x.name),j=(O=i.objectTypeDef)===null||O===void 0?void 0:O.toConfig();i.objectTypeDef=new li(Object.assign(Object.assign({},j),{interfaces:[...j.interfaces,M||new so({name:x.name,fields:{}})]}))}}});const d=i.interfaceDef||i.objectTypeDef,E=((d==null?void 0:d.getInterfaces())||[]).map(({name:y})=>y),b=l.concat([...p].map(y=>({name:y}))).filter(({name:y})=>y!==(d==null?void 0:d.name)&&!E.includes(y));return cr(e,b.map(y=>{const x={label:y.name,kind:un.Interface,type:y};return y!=null&&y.description&&(x.documentation=y.description),x}))}function F9(e,t,n,r){let i;if(t.parentType)if(lr(t.parentType)){const o=IN(t.parentType),l=n.getPossibleTypes(o),c=Object.create(null);for(const p of l)for(const d of p.getInterfaces())c[d.name]=d;i=l.concat(Tf(c))}else i=[t.parentType];else{const o=n.getTypeMap();i=Tf(o).filter(l=>Kr(l)&&!l.name.startsWith("__"))}return cr(e,i.map(o=>{const l=vn(o);return{label:String(o),documentation:(l==null?void 0:l.description)||"",kind:un.Field}}))}function P9(e,t,n,r,i){if(!r)return[];const o=n.getTypeMap(),l=w9(e.state),c=V9(r);i&&i.length>0&&c.push(...i);const p=c.filter(d=>o[d.typeCondition.name.value]&&!(l&&l.kind===tt.FRAGMENT_DEFINITION&&l.name===d.name.value)&&Kr(t.parentType)&&Kr(o[d.typeCondition.name.value])&&im(n,t.parentType,o[d.typeCondition.name.value]));return cr(e,p.map(d=>({label:d.name.value,detail:String(o[d.typeCondition.name.value]),documentation:`fragment ${d.name.value} on ${d.typeCondition.name.value}`,labelDetails:{detail:`fragment ${d.name.value} on ${d.typeCondition.name.value}`},kind:un.Field,type:o[d.typeCondition.name.value]})))}const j9=(e,t)=>{var n,r,i,o,l,c,p,d,m,E;if(((n=e.prevState)===null||n===void 0?void 0:n.kind)===t)return e.prevState;if(((i=(r=e.prevState)===null||r===void 0?void 0:r.prevState)===null||i===void 0?void 0:i.kind)===t)return e.prevState.prevState;if(((c=(l=(o=e.prevState)===null||o===void 0?void 0:o.prevState)===null||l===void 0?void 0:l.prevState)===null||c===void 0?void 0:c.kind)===t)return e.prevState.prevState.prevState;if(((E=(m=(d=(p=e.prevState)===null||p===void 0?void 0:p.prevState)===null||d===void 0?void 0:d.prevState)===null||m===void 0?void 0:m.prevState)===null||E===void 0?void 0:E.kind)===t)return e.prevState.prevState.prevState.prevState};function ID(e,t,n){let r=null,i;const o=Object.create({});return Hy(e,(l,c)=>{var p;if((c==null?void 0:c.kind)===tt.VARIABLE&&c.name&&(r=c.name),(c==null?void 0:c.kind)===tt.NAMED_TYPE&&r){const d=j9(c,tt.TYPE);d!=null&&d.type&&(i=t.getType(d==null?void 0:d.type))}if(r&&i&&!o[r]){const d=n.string==="$"||((p=n==null?void 0:n.state)===null||p===void 0?void 0:p.kind)==="Variable"?r:"$"+r;o[r]={detail:i.toString(),insertText:d,label:"$"+r,rawInsert:d,type:i,kind:un.Variable},r=null,i=null}}),Tf(o)}function V9(e){const t=[];return Hy(e,(n,r)=>{r.kind===tt.FRAGMENT_DEFINITION&&r.name&&r.type&&t.push({kind:tt.FRAGMENT_DEFINITION,name:{kind:X.NAME,value:r.name},selectionSet:{kind:tt.SELECTION_SET,selections:[]},typeCondition:{kind:tt.NAMED_TYPE,name:{kind:X.NAME,value:r.type}}})}),t}function U9(e,t,n){const r=t.getTypeMap(),i=Tf(r).filter(ki);return cr(e,i.map(o=>({label:o.name,documentation:(o==null?void 0:o.description)||"",kind:un.Variable})))}function q9(e,t,n,r){var i;if(!((i=t.prevState)===null||i===void 0)&&i.kind){const o=n.getDirectives().filter(l=>$9(t.prevState,l));return cr(e,o.map(l=>({label:l.name,documentation:(l==null?void 0:l.description)||"",kind:un.Function})))}return[]}function B9(e,t,n,r){const i=n.getDirectives().find(o=>o.name===t.name);return cr(e,(i==null?void 0:i.args.map(o=>({label:o.name,documentation:o.description||"",kind:un.Field})))||[])}function $9(e,t){if(!(e!=null&&e.kind))return!1;const{kind:n,prevState:r}=e,{locations:i}=t;switch(n){case tt.QUERY:return i.includes(lt.QUERY);case tt.MUTATION:return i.includes(lt.MUTATION);case tt.SUBSCRIPTION:return i.includes(lt.SUBSCRIPTION);case tt.FIELD:case tt.ALIASED_FIELD:return i.includes(lt.FIELD);case tt.FRAGMENT_DEFINITION:return i.includes(lt.FRAGMENT_DEFINITION);case tt.FRAGMENT_SPREAD:return i.includes(lt.FRAGMENT_SPREAD);case tt.INLINE_FRAGMENT:return i.includes(lt.INLINE_FRAGMENT);case tt.SCHEMA_DEF:return i.includes(lt.SCHEMA);case tt.SCALAR_DEF:return i.includes(lt.SCALAR);case tt.OBJECT_TYPE_DEF:return i.includes(lt.OBJECT);case tt.FIELD_DEF:return i.includes(lt.FIELD_DEFINITION);case tt.INTERFACE_DEF:return i.includes(lt.INTERFACE);case tt.UNION_DEF:return i.includes(lt.UNION);case tt.ENUM_DEF:return i.includes(lt.ENUM);case tt.ENUM_VALUE:return i.includes(lt.ENUM_VALUE);case tt.INPUT_DEF:return i.includes(lt.INPUT_OBJECT);case tt.INPUT_VALUE_DEF:switch(r==null?void 0:r.kind){case tt.ARGUMENTS_DEF:return i.includes(lt.ARGUMENT_DEFINITION);case tt.INPUT_DEF:return i.includes(lt.INPUT_FIELD_DEFINITION)}}return!1}function FD(e){return e.prevState&&e.kind&&[tt.NAMED_TYPE,tt.LIST_TYPE,tt.TYPE,tt.NON_NULL_TYPE].includes(e.kind)?FD(e.prevState):e}var xm={exports:{}},PD;function z9(){if(PD)return xm.exports;PD=1;function e(t,n){if(t!=null)return t;var r=new Error(n!==void 0?n:"Got unexpected "+t);throw r.framesToPop=1,r}return xm.exports=e,xm.exports.default=e,Object.defineProperty(xm.exports,"__esModule",{value:!0}),xm.exports}var H9=z9();const jD=Mu(H9),G9=(e,t)=>{if(!t)return[];const n=new Map,r=new Set;wr(e,{FragmentDefinition(l){n.set(l.name.value,!0)},FragmentSpread(l){r.has(l.name.value)||r.add(l.name.value)}});const i=new Set;for(const l of r)!n.has(l)&&t.has(l)&&i.add(jD(t.get(l)));const o=[];for(const l of i)wr(l,{FragmentSpread(c){!r.has(c.name.value)&&t.get(c.name.value)&&(i.add(jD(t.get(c.name.value))),r.add(c.name.value))}}),n.has(l.name.value)||o.push(l);return o};class VD{constructor(t,n){this.containsPosition=r=>this.start.line===r.line?this.start.character<=r.character:this.end.line===r.line?this.end.character>=r.character:this.start.line<=r.line&&this.end.line>=r.line,this.start=t,this.end=n}setStart(t,n){this.start=new Cf(t,n)}setEnd(t,n){this.end=new Cf(t,n)}}class Cf{constructor(t,n){this.lessThanOrEqualTo=r=>this.line<r.line||this.line===r.line&&this.character<=r.character,this.line=t,this.character=n}setLine(t){this.line=t}setCharacter(t){this.character=t}}function Y9(e,t,n,r,i){const o=YE.filter(c=>!(c===FE||c===ME));return n&&Array.prototype.push.apply(o,n),mm(e,t,o).filter(c=>{if(c.message.includes("Unknown directive")&&c.nodes){const p=c.nodes[0];if(p&&p.kind===X.DIRECTIVE){const d=p.name.value;if(d==="arguments"||d==="argumentDefinitions")return!1}}return!0})}function W9(e,t){const n=Object.create(null);for(const r of t.definitions)if(r.kind==="OperationDefinition"){const{variableDefinitions:i}=r;if(i)for(const{variable:o,type:l}of i){const c=bi(e,l);c?n[o.name.value]=c:l.kind===X.NAMED_TYPE&&l.name.value==="Float"&&(n[o.name.value]=am)}}return n}function Q9(e,t){const n=t?W9(t,e):void 0,r=[];return wr(e,{OperationDefinition(i){r.push(i)}}),{variableToType:n,operations:r}}function K9(e,t){if(t)try{const n=Oi(t);return Object.assign(Object.assign({},Q9(n,e)),{documentAST:n})}catch{return}}const UD={Error:"Error",Warning:"Warning"},_S={[UD.Error]:1,[UD.Warning]:2},Gy=(e,t)=>{if(!e)throw new Error(t)};function X9(e,t=null,n,r,i){var o,l;let c=null,p="";i&&(p=typeof i=="string"?i:i.reduce((m,E)=>m+hn(E)+`

`,""));const d=p?`${e}

${p}`:e;try{c=Oi(d)}catch(m){if(m instanceof Me){const E=J9((l=(o=m.locations)===null||o===void 0?void 0:o[0])!==null&&l!==void 0?l:{line:0},d);return[{severity:_S.Error,message:m.message,source:"GraphQL: Syntax",range:E}]}throw m}return Z9(c,t,n)}function Z9(e,t=null,n,r){if(!t)return[];const i=Y9(t,e,n).flatMap(l=>qD(l,_S.Error,"Validation")),o=mm(t,e,[ZA]).flatMap(l=>qD(l,_S.Warning,"Deprecation"));return i.concat(o)}function qD(e,t,n){if(!e.nodes)return[];const r=[];for(const[i,o]of e.nodes.entries()){const l=o.kind!=="Variable"&&"name"in o&&o.name!==void 0?o.name:"variable"in o&&o.variable!==void 0?o.variable:o;if(l){Gy(e.locations,"GraphQL validation error requires locations.");const c=e.locations[i],p=e7(l),d=c.column+(p.end-p.start);r.push({source:`GraphQL: ${n}`,message:e.message,severity:t,range:new VD(new Cf(c.line-1,c.column-1),new Cf(c.line-1,d))})}}return r}function J9(e,t){const n=Sm(),r=n.startState(),i=t.split(`
`);Gy(i.length>=e.line,"Query text must have more lines than where the error happened");let o=null;for(let d=0;d<e.line;d++)for(o=new ES(i[d]);!o.eol()&&n.token(o,r)!=="invalidchar";);Gy(o,"Expected Parser stream to be available.");const l=e.line-1,c=o.getStartOfToken(),p=o.getCurrentPosition();return new VD(new Cf(l,c),new Cf(l,p))}function e7(e){const n=e.loc;return Gy(n,"Expected ASTNode to have a location."),n}/*!
 * is-primitive <https://github.com/jonschlinkert/is-primitive>
 *
 * Copyright (c) 2014-present, Jon Schlinkert.
 * Released under the MIT License.
 */var NS,BD;function t7(){return BD||(BD=1,NS=function(t){return typeof t=="object"?t===null:typeof t!="function"}),NS}/*!
 * isobject <https://github.com/jonschlinkert/isobject>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */var AS,$D;function n7(){return $D||($D=1,AS=function(t){return t!=null&&typeof t=="object"&&Array.isArray(t)===!1}),AS}/*!
 * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
 *
 * Copyright (c) 2014-2017, Jon Schlinkert.
 * Released under the MIT License.
 */var OS,zD;function r7(){if(zD)return OS;zD=1;var e=n7();function t(n){return e(n)===!0&&Object.prototype.toString.call(n)==="[object Object]"}return OS=function(r){var i,o;return!(t(r)===!1||(i=r.constructor,typeof i!="function")||(o=i.prototype,t(o)===!1)||o.hasOwnProperty("isPrototypeOf")===!1)},OS}/*!
 * set-value <https://github.com/jonschlinkert/set-value>
 *
 * Copyright (c) Jon Schlinkert (https://github.com/jonschlinkert).
 * Released under the MIT License.
 */var DS,HD;function i7(){if(HD)return DS;HD=1;const{deleteProperty:e}=Reflect,t=t7(),n=r7(),r=y=>typeof y=="object"&&y!==null||typeof y=="function",i=y=>y==="__proto__"||y==="constructor"||y==="prototype",o=y=>{if(!t(y))throw new TypeError("Object keys must be strings or symbols");if(i(y))throw new Error(`Cannot set unsafe key: "${y}"`)},l=y=>Array.isArray(y)?y.flat().map(String).join(","):y,c=(y,x)=>{if(typeof y!="string"||!x)return y;let w=y+";";return x.arrays!==void 0&&(w+=`arrays=${x.arrays};`),x.separator!==void 0&&(w+=`separator=${x.separator};`),x.split!==void 0&&(w+=`split=${x.split};`),x.merge!==void 0&&(w+=`merge=${x.merge};`),x.preservePaths!==void 0&&(w+=`preservePaths=${x.preservePaths};`),w},p=(y,x,w)=>{const k=l(x?c(y,x):y);o(k);const N=b.cache.get(k)||w();return b.cache.set(k,N),N},d=(y,x={})=>{const w=x.separator||".",k=w==="/"?!1:x.preservePaths;if(typeof y=="string"&&k!==!1&&/\//.test(y))return[y];const N=[];let A="";const O=_=>{let M;_.trim()!==""&&Number.isInteger(M=Number(_))?N.push(M):N.push(_)};for(let _=0;_<y.length;_++){const M=y[_];if(M==="\\"){A+=y[++_];continue}if(M===w){O(A),A="";continue}A+=M}return A&&O(A),N},m=(y,x)=>x&&typeof x.split=="function"?x.split(y):typeof y=="symbol"?[y]:Array.isArray(y)?y:p(y,x,()=>d(y,x)),E=(y,x,w,k)=>{if(o(x),w===void 0)e(y,x);else if(k&&k.merge){const N=k.merge==="function"?k.merge:Object.assign;N&&n(y[x])&&n(w)?y[x]=N(y[x],w):y[x]=w}else y[x]=w;return y},b=(y,x,w,k)=>{if(!x||!r(y))return y;const N=m(x,k);let A=y;for(let O=0;O<N.length;O++){const _=N[O],M=N[O+1];if(o(_),M===void 0){E(A,_,w,k);break}if(typeof M=="number"&&!Array.isArray(A[_])){A=A[_]=[];continue}r(A[_])||(A[_]={}),A=A[_]}return y};return b.split=m,b.cache=new Map,b.clear=()=>{b.cache=new Map},DS=b,DS}var o7=i7();const a7=Mu(o7);var kS,GD;function s7(){return GD||(GD=1,kS=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()}}),kS}var RS,YD;function l7(){if(YD)return RS;YD=1;var e=s7(),t={"text/plain":"Text","text/html":"Url",default:"Text"},n="Copy to clipboard: #{key}, Enter";function r(o){var l=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return o.replace(/#{\s*key\s*}/g,l)}function i(o,l){var c,p,d,m,E,b,y=!1;l||(l={}),c=l.debug||!1;try{d=e(),m=document.createRange(),E=document.getSelection(),b=document.createElement("span"),b.textContent=o,b.ariaHidden="true",b.style.all="unset",b.style.position="fixed",b.style.top=0,b.style.clip="rect(0, 0, 0, 0)",b.style.whiteSpace="pre",b.style.webkitUserSelect="text",b.style.MozUserSelect="text",b.style.msUserSelect="text",b.style.userSelect="text",b.addEventListener("copy",function(w){if(w.stopPropagation(),l.format)if(w.preventDefault(),typeof w.clipboardData>"u"){c&&console.warn("unable to use e.clipboardData"),c&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var k=t[l.format]||t.default;window.clipboardData.setData(k,o)}else w.clipboardData.clearData(),w.clipboardData.setData(l.format,o);l.onCopy&&(w.preventDefault(),l.onCopy(w.clipboardData))}),document.body.appendChild(b),m.selectNodeContents(b),E.addRange(m);var x=document.execCommand("copy");if(!x)throw new Error("copy command was unsuccessful");y=!0}catch(w){c&&console.error("unable to copy using execCommand: ",w),c&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(l.format||"text",o),l.onCopy&&l.onCopy(window.clipboardData),y=!0}catch(k){c&&console.error("unable to copy using clipboardData: ",k),c&&console.error("falling back to prompt"),p=r("message"in l?l.message:n),window.prompt(p,o)}}finally{E&&(typeof E.removeRange=="function"?E.removeRange(m):E.removeAllRanges()),b&&document.body.removeChild(b),d()}return y}return RS=i,RS}var u7=l7();const c7=Mu(u7);function $t(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function WD(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Yy(...e){return t=>{let n=!1;const r=e.map(i=>{const o=WD(i,t);return!n&&typeof o=="function"&&(n=!0),o});if(n)return()=>{for(let i=0;i<r.length;i++){const o=r[i];typeof o=="function"?o():WD(e[i],null)}}}}function ui(...e){return L.useCallback(Yy(...e),e)}function f7(e,t){const n=L.createContext(t),r=o=>{const{children:l,...c}=o,p=L.useMemo(()=>c,Object.values(c));return Y.jsx(n.Provider,{value:p,children:l})};r.displayName=e+"Provider";function i(o){const l=L.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[r,i]}function _f(e,t=[]){let n=[];function r(o,l){const c=L.createContext(l),p=n.length;n=[...n,l];const d=E=>{var N;const{scope:b,children:y,...x}=E,w=((N=b==null?void 0:b[e])==null?void 0:N[p])||c,k=L.useMemo(()=>x,Object.values(x));return Y.jsx(w.Provider,{value:k,children:y})};d.displayName=o+"Provider";function m(E,b){var w;const y=((w=b==null?void 0:b[e])==null?void 0:w[p])||c,x=L.useContext(y);if(x)return x;if(l!==void 0)return l;throw new Error(`\`${E}\` must be used within \`${o}\``)}return[d,m]}const i=()=>{const o=n.map(l=>L.createContext(l));return function(c){const p=(c==null?void 0:c[e])||o;return L.useMemo(()=>({[`__scope${e}`]:{...c,[e]:p}}),[c,p])}};return i.scopeName=e,[r,d7(i,...t)]}function d7(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(o){const l=r.reduce((c,{useScope:p,scopeName:d})=>{const E=p(o)[`__scope${d}`];return{...c,...E}},{});return L.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}var Bu=globalThis!=null&&globalThis.document?L.useLayoutEffect:()=>{},p7=Xv[" useId ".trim().toString()]||(()=>{}),h7=0;function Nf(e){const[t,n]=L.useState(p7());return Bu(()=>{n(r=>r??String(h7++))},[e]),t?`radix-${t}`:""}var m7=Xv[" useInsertionEffect ".trim().toString()]||Bu;function Wy({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,o,l]=g7({defaultProp:t,onChange:n}),c=e!==void 0,p=c?e:i;{const m=L.useRef(e!==void 0);L.useEffect(()=>{const E=m.current;E!==c&&console.warn(`${r} is changing from ${E?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),m.current=c},[c,r])}const d=L.useCallback(m=>{var E;if(c){const b=v7(m)?m(e):m;b!==e&&((E=l.current)==null||E.call(l,b))}else o(m)},[c,e,o,l]);return[p,d]}function g7({defaultProp:e,onChange:t}){const[n,r]=L.useState(e),i=L.useRef(n),o=L.useRef(t);return m7(()=>{o.current=t},[t]),L.useEffect(()=>{var l;i.current!==n&&((l=o.current)==null||l.call(o,n),i.current=n)},[n,i]),[n,r,o]}function v7(e){return typeof e=="function"}var Qy=uN();const MS=Mu(Qy);function wm(e){const t=y7(e),n=L.forwardRef((r,i)=>{const{children:o,...l}=r,c=L.Children.toArray(o),p=c.find(E7);if(p){const d=p.props.children,m=c.map(E=>E===p?L.Children.count(d)>1?L.Children.only(null):L.isValidElement(d)?d.props.children:null:E);return Y.jsx(t,{...l,ref:i,children:L.isValidElement(d)?L.cloneElement(d,void 0,m):null})}return Y.jsx(t,{...l,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}function y7(e){const t=L.forwardRef((n,r)=>{const{children:i,...o}=n;if(L.isValidElement(i)){const l=T7(i),c=S7(o,i.props);return i.type!==L.Fragment&&(c.ref=r?Yy(r,l):l),L.cloneElement(i,c)}return L.Children.count(i)>1?L.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var QD=Symbol("radix.slottable");function b7(e){const t=({children:n})=>Y.jsx(Y.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=QD,t}function E7(e){return L.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===QD}function S7(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...c)=>{const p=o(...c);return i(...c),p}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function T7(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var x7=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Mr=x7.reduce((e,t)=>{const n=wm(`Primitive.${t}`),r=L.forwardRef((i,o)=>{const{asChild:l,...c}=i,p=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),Y.jsx(p,{...c,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function KD(e,t){e&&Qy.flushSync(()=>e.dispatchEvent(t))}function Vl(e){const t=L.useRef(e);return L.useEffect(()=>{t.current=e}),L.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function w7(e,t=globalThis==null?void 0:globalThis.document){const n=Vl(e);L.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var C7="DismissableLayer",LS="dismissableLayer.update",_7="dismissableLayer.pointerDownOutside",N7="dismissableLayer.focusOutside",XD,ZD=L.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ky=L.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:l,onDismiss:c,...p}=e,d=L.useContext(ZD),[m,E]=L.useState(null),b=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,y]=L.useState({}),x=ui(t,P=>E(P)),w=Array.from(d.layers),[k]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),N=w.indexOf(k),A=m?w.indexOf(m):-1,O=d.layersWithOutsidePointerEventsDisabled.size>0,_=A>=N,M=D7(P=>{const F=P.target,V=[...d.branches].some($=>$.contains(F));!_||V||(i==null||i(P),l==null||l(P),P.defaultPrevented||c==null||c())},b),j=k7(P=>{const F=P.target;[...d.branches].some($=>$.contains(F))||(o==null||o(P),l==null||l(P),P.defaultPrevented||c==null||c())},b);return w7(P=>{A===d.layers.size-1&&(r==null||r(P),!P.defaultPrevented&&c&&(P.preventDefault(),c()))},b),L.useEffect(()=>{if(m)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(XD=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(m)),d.layers.add(m),JD(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=XD)}},[m,b,n,d]),L.useEffect(()=>()=>{m&&(d.layers.delete(m),d.layersWithOutsidePointerEventsDisabled.delete(m),JD())},[m,d]),L.useEffect(()=>{const P=()=>y({});return document.addEventListener(LS,P),()=>document.removeEventListener(LS,P)},[]),Y.jsx(Mr.div,{...p,ref:x,style:{pointerEvents:O?_?"auto":"none":void 0,...e.style},onFocusCapture:$t(e.onFocusCapture,j.onFocusCapture),onBlurCapture:$t(e.onBlurCapture,j.onBlurCapture),onPointerDownCapture:$t(e.onPointerDownCapture,M.onPointerDownCapture)})});Ky.displayName=C7;var A7="DismissableLayerBranch",O7=L.forwardRef((e,t)=>{const n=L.useContext(ZD),r=L.useRef(null),i=ui(t,r);return L.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),Y.jsx(Mr.div,{...e,ref:i})});O7.displayName=A7;function D7(e,t=globalThis==null?void 0:globalThis.document){const n=Vl(e),r=L.useRef(!1),i=L.useRef(()=>{});return L.useEffect(()=>{const o=c=>{if(c.target&&!r.current){let p=function(){ek(_7,n,d,{discrete:!0})};const d={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=p,t.addEventListener("click",i.current,{once:!0})):p()}else t.removeEventListener("click",i.current);r.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function k7(e,t=globalThis==null?void 0:globalThis.document){const n=Vl(e),r=L.useRef(!1);return L.useEffect(()=>{const i=o=>{o.target&&!r.current&&ek(N7,n,{originalEvent:o},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function JD(){const e=new CustomEvent(LS);document.dispatchEvent(e)}function ek(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?KD(i,o):i.dispatchEvent(o)}var IS="focusScope.autoFocusOnMount",FS="focusScope.autoFocusOnUnmount",tk={bubbles:!1,cancelable:!0},R7="FocusScope",PS=L.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...l}=e,[c,p]=L.useState(null),d=Vl(i),m=Vl(o),E=L.useRef(null),b=ui(t,w=>p(w)),y=L.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;L.useEffect(()=>{if(r){let w=function(O){if(y.paused||!c)return;const _=O.target;c.contains(_)?E.current=_:$u(E.current,{select:!0})},k=function(O){if(y.paused||!c)return;const _=O.relatedTarget;_!==null&&(c.contains(_)||$u(E.current,{select:!0}))},N=function(O){if(document.activeElement===document.body)for(const M of O)M.removedNodes.length>0&&$u(c)};document.addEventListener("focusin",w),document.addEventListener("focusout",k);const A=new MutationObserver(N);return c&&A.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",k),A.disconnect()}}},[r,c,y.paused]),L.useEffect(()=>{if(c){ik.add(y);const w=document.activeElement;if(!c.contains(w)){const N=new CustomEvent(IS,tk);c.addEventListener(IS,d),c.dispatchEvent(N),N.defaultPrevented||(M7(j7(nk(c)),{select:!0}),document.activeElement===w&&$u(c))}return()=>{c.removeEventListener(IS,d),setTimeout(()=>{const N=new CustomEvent(FS,tk);c.addEventListener(FS,m),c.dispatchEvent(N),N.defaultPrevented||$u(w??document.body,{select:!0}),c.removeEventListener(FS,m),ik.remove(y)},0)}}},[c,d,m,y]);const x=L.useCallback(w=>{if(!n&&!r||y.paused)return;const k=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,N=document.activeElement;if(k&&N){const A=w.currentTarget,[O,_]=L7(A);O&&_?!w.shiftKey&&N===_?(w.preventDefault(),n&&$u(O,{select:!0})):w.shiftKey&&N===O&&(w.preventDefault(),n&&$u(_,{select:!0})):N===A&&w.preventDefault()}},[n,r,y.paused]);return Y.jsx(Mr.div,{tabIndex:-1,...l,ref:b,onKeyDown:x})});PS.displayName=R7;function M7(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if($u(r,{select:t}),document.activeElement!==n)return}function L7(e){const t=nk(e),n=rk(t,e),r=rk(t.reverse(),e);return[n,r]}function nk(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function rk(e,t){for(const n of e)if(!I7(n,{upTo:t}))return n}function I7(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function F7(e){return e instanceof HTMLInputElement&&"select"in e}function $u(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&F7(e)&&t&&e.select()}}var ik=P7();function P7(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=ok(e,t),e.unshift(t)},remove(t){var n;e=ok(e,t),(n=e[0])==null||n.resume()}}}function ok(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function j7(e){return e.filter(t=>t.tagName!=="A")}var V7="Portal",Xy=L.forwardRef((e,t)=>{var c;const{container:n,...r}=e,[i,o]=L.useState(!1);Bu(()=>o(!0),[]);const l=n||i&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return l?MS.createPortal(Y.jsx(Mr.div,{...r,ref:t}),l):null});Xy.displayName=V7;function U7(e,t){return L.useReducer((n,r)=>t[n][r]??n,e)}var Bs=e=>{const{present:t,children:n}=e,r=q7(t),i=typeof n=="function"?n({present:r.isPresent}):L.Children.only(n),o=ui(r.ref,B7(i));return typeof n=="function"||r.isPresent?L.cloneElement(i,{ref:o}):null};Bs.displayName="Presence";function q7(e){const[t,n]=L.useState(),r=L.useRef(null),i=L.useRef(e),o=L.useRef("none"),l=e?"mounted":"unmounted",[c,p]=U7(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return L.useEffect(()=>{const d=Zy(r.current);o.current=c==="mounted"?d:"none"},[c]),Bu(()=>{const d=r.current,m=i.current;if(m!==e){const b=o.current,y=Zy(d);e?p("MOUNT"):y==="none"||(d==null?void 0:d.display)==="none"?p("UNMOUNT"):p(m&&b!==y?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,p]),Bu(()=>{if(t){let d;const m=t.ownerDocument.defaultView??window,E=y=>{const w=Zy(r.current).includes(y.animationName);if(y.target===t&&w&&(p("ANIMATION_END"),!i.current)){const k=t.style.animationFillMode;t.style.animationFillMode="forwards",d=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=k)})}},b=y=>{y.target===t&&(o.current=Zy(r.current))};return t.addEventListener("animationstart",b),t.addEventListener("animationcancel",E),t.addEventListener("animationend",E),()=>{m.clearTimeout(d),t.removeEventListener("animationstart",b),t.removeEventListener("animationcancel",E),t.removeEventListener("animationend",E)}}else p("ANIMATION_END")},[t,p]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:L.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function Zy(e){return(e==null?void 0:e.animationName)||"none"}function B7(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var jS=0;function ak(){L.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??sk()),document.body.insertAdjacentElement("beforeend",e[1]??sk()),jS++,()=>{jS===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),jS--}},[])}function sk(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var VS=function(e,t){return VS=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},VS(e,t)};function lk(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");VS(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Ke=function(){return Ke=Object.assign||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},Ke.apply(this,arguments)};function Yi(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}function Er(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],l;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(c){l={error:c}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return o}function as(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))}typeof SuppressedError=="function"&&SuppressedError;var Jy="right-scroll-bar-position",e0="width-before-scroll-bar",$7="with-scroll-bars-hidden",z7="--removed-body-scroll-bar-size";function US(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function H7(e,t){var n=L.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}var G7=typeof window<"u"?L.useLayoutEffect:L.useEffect,uk=new WeakMap;function Y7(e,t){var n=H7(null,function(r){return e.forEach(function(i){return US(i,r)})});return G7(function(){var r=uk.get(n);if(r){var i=new Set(r),o=new Set(e),l=n.current;i.forEach(function(c){o.has(c)||US(c,null)}),o.forEach(function(c){i.has(c)||US(c,l)})}uk.set(n,e)},[e]),n}function W7(e){return e}function Q7(e,t){t===void 0&&(t=W7);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 l=t(o,r);return n.push(l),function(){n=n.filter(function(c){return c!==l})}},assignSyncMedium:function(o){for(r=!0;n.length;){var l=n;n=[],l.forEach(o)}n={push:function(c){return o(c)},filter:function(){return n}}},assignMedium:function(o){r=!0;var l=[];if(n.length){var c=n;n=[],c.forEach(o),l=n}var p=function(){var m=l;l=[],m.forEach(o)},d=function(){return Promise.resolve().then(p)};d(),n={push:function(m){l.push(m),d()},filter:function(m){return l=l.filter(m),n}}}};return i}function K7(e){e===void 0&&(e={});var t=Q7(null);return t.options=Ke({async:!0,ssr:!1},e),t}var ck=function(e){var t=e.sideCar,n=Yi(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 L.createElement(r,Ke({},n))};ck.isSideCarExport=!0;function X7(e,t){return e.useMedium(t),ck}var fk=K7(),qS=function(){},t0=L.forwardRef(function(e,t){var n=L.useRef(null),r=L.useState({onScrollCapture:qS,onWheelCapture:qS,onTouchMoveCapture:qS}),i=r[0],o=r[1],l=e.forwardProps,c=e.children,p=e.className,d=e.removeScrollBar,m=e.enabled,E=e.shards,b=e.sideCar,y=e.noRelative,x=e.noIsolation,w=e.inert,k=e.allowPinchZoom,N=e.as,A=N===void 0?"div":N,O=e.gapMode,_=Yi(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),M=b,j=Y7([n,t]),P=Ke(Ke({},_),i);return L.createElement(L.Fragment,null,m&&L.createElement(M,{sideCar:fk,removeScrollBar:d,shards:E,noRelative:y,noIsolation:x,inert:w,setCallbacks:o,allowPinchZoom:!!k,lockRef:n,gapMode:O}),l?L.cloneElement(L.Children.only(c),Ke(Ke({},P),{ref:j})):L.createElement(A,Ke({},P,{className:p,ref:j}),c))});t0.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},t0.classNames={fullWidth:e0,zeroRight:Jy};var Z7=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function J7(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Z7();return t&&e.setAttribute("nonce",t),e}function eU(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function tU(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var nU=function(){var e=0,t=null;return{add:function(n){e==0&&(t=J7())&&(eU(t,n),tU(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},rU=function(){var e=nU();return function(t,n){L.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},dk=function(){var e=rU(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},iU={left:0,top:0,right:0,gap:0},BS=function(e){return parseInt(e||"",10)||0},oU=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[BS(n),BS(r),BS(i)]},aU=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return iU;var t=oU(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])}},sU=dk(),Kd="data-scroll-locked",lU=function(e,t,n,r){var i=e.left,o=e.top,l=e.right,c=e.gap;return n===void 0&&(n="margin"),`
  .`.concat($7,` {
   overflow: hidden `).concat(r,`;
   padding-right: `).concat(c,"px ").concat(r,`;
  }
  body[`).concat(Kd,`] {
    overflow: hidden `).concat(r,`;
    overscroll-behavior: contain;
    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
    padding-left: `.concat(i,`px;
    padding-top: `).concat(o,`px;
    padding-right: `).concat(l,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(c,"px ").concat(r,`;
    `),n==="padding"&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(Jy,` {
    right: `).concat(c,"px ").concat(r,`;
  }
  
  .`).concat(e0,` {
    margin-right: `).concat(c,"px ").concat(r,`;
  }
  
  .`).concat(Jy," .").concat(Jy,` {
    right: 0 `).concat(r,`;
  }
  
  .`).concat(e0," .").concat(e0,` {
    margin-right: 0 `).concat(r,`;
  }
  
  body[`).concat(Kd,`] {
    `).concat(z7,": ").concat(c,`px;
  }
`)},pk=function(){var e=parseInt(document.body.getAttribute(Kd)||"0",10);return isFinite(e)?e:0},uU=function(){L.useEffect(function(){return document.body.setAttribute(Kd,(pk()+1).toString()),function(){var e=pk()-1;e<=0?document.body.removeAttribute(Kd):document.body.setAttribute(Kd,e.toString())}},[])},cU=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;uU();var o=L.useMemo(function(){return aU(i)},[i]);return L.createElement(sU,{styles:lU(o,!t,i,n?"":"!important")})},$S=!1;if(typeof window<"u")try{var n0=Object.defineProperty({},"passive",{get:function(){return $S=!0,!0}});window.addEventListener("test",n0,n0),window.removeEventListener("test",n0,n0)}catch{$S=!1}var Xd=$S?{passive:!1}:!1,fU=function(e){return e.tagName==="TEXTAREA"},hk=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!fU(e)&&n[t]==="visible")},dU=function(e){return hk(e,"overflowY")},pU=function(e){return hk(e,"overflowX")},mk=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=gk(e,r);if(i){var o=vk(e,r),l=o[1],c=o[2];if(l>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},hU=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},mU=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},gk=function(e,t){return e==="v"?dU(t):pU(t)},vk=function(e,t){return e==="v"?hU(t):mU(t)},gU=function(e,t){return e==="h"&&t==="rtl"?-1:1},vU=function(e,t,n,r,i){var o=gU(e,window.getComputedStyle(t).direction),l=o*r,c=n.target,p=t.contains(c),d=!1,m=l>0,E=0,b=0;do{if(!c)break;var y=vk(e,c),x=y[0],w=y[1],k=y[2],N=w-k-o*x;(x||N)&&gk(e,c)&&(E+=N,b+=x);var A=c.parentNode;c=A&&A.nodeType===Node.DOCUMENT_FRAGMENT_NODE?A.host:A}while(!p&&c!==document.body||p&&(t.contains(c)||t===c));return(m&&Math.abs(E)<1||!m&&Math.abs(b)<1)&&(d=!0),d},r0=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},yk=function(e){return[e.deltaX,e.deltaY]},bk=function(e){return e&&"current"in e?e.current:e},yU=function(e,t){return e[0]===t[0]&&e[1]===t[1]},bU=function(e){return`
  .block-interactivity-`.concat(e,` {pointer-events: none;}
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},EU=0,Zd=[];function SU(e){var t=L.useRef([]),n=L.useRef([0,0]),r=L.useRef(),i=L.useState(EU++)[0],o=L.useState(dk)[0],l=L.useRef(e);L.useEffect(function(){l.current=e},[e]),L.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var w=as([e.lockRef.current],(e.shards||[]).map(bk),!0).filter(Boolean);return w.forEach(function(k){return k.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),w.forEach(function(k){return k.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var c=L.useCallback(function(w,k){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!l.current.allowPinchZoom;var N=r0(w),A=n.current,O="deltaX"in w?w.deltaX:A[0]-N[0],_="deltaY"in w?w.deltaY:A[1]-N[1],M,j=w.target,P=Math.abs(O)>Math.abs(_)?"h":"v";if("touches"in w&&P==="h"&&j.type==="range")return!1;var F=mk(P,j);if(!F)return!0;if(F?M=P:(M=P==="v"?"h":"v",F=mk(P,j)),!F)return!1;if(!r.current&&"changedTouches"in w&&(O||_)&&(r.current=M),!M)return!0;var V=r.current||M;return vU(V,k,w,V==="h"?O:_)},[]),p=L.useCallback(function(w){var k=w;if(!(!Zd.length||Zd[Zd.length-1]!==o)){var N="deltaY"in k?yk(k):r0(k),A=t.current.filter(function(M){return M.name===k.type&&(M.target===k.target||k.target===M.shadowParent)&&yU(M.delta,N)})[0];if(A&&A.should){k.cancelable&&k.preventDefault();return}if(!A){var O=(l.current.shards||[]).map(bk).filter(Boolean).filter(function(M){return M.contains(k.target)}),_=O.length>0?c(k,O[0]):!l.current.noIsolation;_&&k.cancelable&&k.preventDefault()}}},[]),d=L.useCallback(function(w,k,N,A){var O={name:w,delta:k,target:N,should:A,shadowParent:TU(N)};t.current.push(O),setTimeout(function(){t.current=t.current.filter(function(_){return _!==O})},1)},[]),m=L.useCallback(function(w){n.current=r0(w),r.current=void 0},[]),E=L.useCallback(function(w){d(w.type,yk(w),w.target,c(w,e.lockRef.current))},[]),b=L.useCallback(function(w){d(w.type,r0(w),w.target,c(w,e.lockRef.current))},[]);L.useEffect(function(){return Zd.push(o),e.setCallbacks({onScrollCapture:E,onWheelCapture:E,onTouchMoveCapture:b}),document.addEventListener("wheel",p,Xd),document.addEventListener("touchmove",p,Xd),document.addEventListener("touchstart",m,Xd),function(){Zd=Zd.filter(function(w){return w!==o}),document.removeEventListener("wheel",p,Xd),document.removeEventListener("touchmove",p,Xd),document.removeEventListener("touchstart",m,Xd)}},[]);var y=e.removeScrollBar,x=e.inert;return L.createElement(L.Fragment,null,x?L.createElement(o,{styles:bU(i)}):null,y?L.createElement(cU,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function TU(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const xU=X7(fk,SU);var zS=L.forwardRef(function(e,t){return L.createElement(t0,Ke({},e,{ref:t,sideCar:xU}))});zS.classNames=t0.classNames;var wU=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Jd=new WeakMap,i0=new WeakMap,o0={},HS=0,Ek=function(e){return e&&(e.host||Ek(e.parentNode))},CU=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Ek(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},_U=function(e,t,n,r){var i=CU(t,Array.isArray(e)?e:[e]);o0[n]||(o0[n]=new WeakMap);var o=o0[n],l=[],c=new Set,p=new Set(i),d=function(E){!E||c.has(E)||(c.add(E),d(E.parentNode))};i.forEach(d);var m=function(E){!E||p.has(E)||Array.prototype.forEach.call(E.children,function(b){if(c.has(b))m(b);else try{var y=b.getAttribute(r),x=y!==null&&y!=="false",w=(Jd.get(b)||0)+1,k=(o.get(b)||0)+1;Jd.set(b,w),o.set(b,k),l.push(b),w===1&&x&&i0.set(b,!0),k===1&&b.setAttribute(n,"true"),x||b.setAttribute(r,"true")}catch(N){console.error("aria-hidden: cannot operate on ",b,N)}})};return m(t),c.clear(),HS++,function(){l.forEach(function(E){var b=Jd.get(E)-1,y=o.get(E)-1;Jd.set(E,b),o.set(E,y),b||(i0.has(E)||E.removeAttribute(r),i0.delete(E)),y||E.removeAttribute(n)}),HS--,HS||(Jd=new WeakMap,Jd=new WeakMap,i0=new WeakMap,o0={})}},Sk=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=wU(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),_U(r,i,n,"aria-hidden")):function(){return null}},a0="Dialog",[Tk,toe]=_f(a0),[NU,ss]=Tk(a0),xk=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:l=!0}=e,c=L.useRef(null),p=L.useRef(null),[d,m]=Wy({prop:r,defaultProp:i??!1,onChange:o,caller:a0});return Y.jsx(NU,{scope:t,triggerRef:c,contentRef:p,contentId:Nf(),titleId:Nf(),descriptionId:Nf(),open:d,onOpenChange:m,onOpenToggle:L.useCallback(()=>m(E=>!E),[m]),modal:l,children:n})};xk.displayName=a0;var wk="DialogTrigger",Ck=L.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=ss(wk,n),o=ui(t,i.triggerRef);return Y.jsx(Mr.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":WS(i.open),...r,ref:o,onClick:$t(e.onClick,i.onOpenToggle)})});Ck.displayName=wk;var GS="DialogPortal",[AU,_k]=Tk(GS,{forceMount:void 0}),Nk=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,o=ss(GS,t);return Y.jsx(AU,{scope:t,forceMount:n,children:L.Children.map(r,l=>Y.jsx(Bs,{present:n||o.open,children:Y.jsx(Xy,{asChild:!0,container:i,children:l})}))})};Nk.displayName=GS;var s0="DialogOverlay",Ak=L.forwardRef((e,t)=>{const n=_k(s0,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=ss(s0,e.__scopeDialog);return o.modal?Y.jsx(Bs,{present:r||o.open,children:Y.jsx(DU,{...i,ref:t})}):null});Ak.displayName=s0;var OU=wm("DialogOverlay.RemoveScroll"),DU=L.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=ss(s0,n);return Y.jsx(zS,{as:OU,allowPinchZoom:!0,shards:[i.contentRef],children:Y.jsx(Mr.div,{"data-state":WS(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Af="DialogContent",Ok=L.forwardRef((e,t)=>{const n=_k(Af,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=ss(Af,e.__scopeDialog);return Y.jsx(Bs,{present:r||o.open,children:o.modal?Y.jsx(kU,{...i,ref:t}):Y.jsx(RU,{...i,ref:t})})});Ok.displayName=Af;var kU=L.forwardRef((e,t)=>{const n=ss(Af,e.__scopeDialog),r=L.useRef(null),i=ui(t,n.contentRef,r);return L.useEffect(()=>{const o=r.current;if(o)return Sk(o)},[]),Y.jsx(Dk,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:$t(e.onCloseAutoFocus,o=>{var l;o.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:$t(e.onPointerDownOutside,o=>{const l=o.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0;(l.button===2||c)&&o.preventDefault()}),onFocusOutside:$t(e.onFocusOutside,o=>o.preventDefault())})}),RU=L.forwardRef((e,t)=>{const n=ss(Af,e.__scopeDialog),r=L.useRef(!1),i=L.useRef(!1);return Y.jsx(Dk,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var l,c;(l=e.onCloseAutoFocus)==null||l.call(e,o),o.defaultPrevented||(r.current||(c=n.triggerRef.current)==null||c.focus(),o.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:o=>{var p,d;(p=e.onInteractOutside)==null||p.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const l=o.target;((d=n.triggerRef.current)==null?void 0:d.contains(l))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),Dk=L.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...l}=e,c=ss(Af,n),p=L.useRef(null),d=ui(t,p);return ak(),Y.jsxs(Y.Fragment,{children:[Y.jsx(PS,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:Y.jsx(Ky,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":WS(c.open),...l,ref:d,onDismiss:()=>c.onOpenChange(!1)})}),Y.jsxs(Y.Fragment,{children:[Y.jsx(MU,{titleId:c.titleId}),Y.jsx(IU,{contentRef:p,descriptionId:c.descriptionId})]})]})}),YS="DialogTitle",kk=L.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=ss(YS,n);return Y.jsx(Mr.h2,{id:i.titleId,...r,ref:t})});kk.displayName=YS;var Rk="DialogDescription",Mk=L.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=ss(Rk,n);return Y.jsx(Mr.p,{id:i.descriptionId,...r,ref:t})});Mk.displayName=Rk;var Lk="DialogClose",Ik=L.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=ss(Lk,n);return Y.jsx(Mr.button,{type:"button",...r,ref:t,onClick:$t(e.onClick,()=>i.onOpenChange(!1))})});Ik.displayName=Lk;function WS(e){return e?"open":"closed"}var Fk="DialogTitleWarning",[noe,Pk]=f7(Fk,{contentName:Af,titleName:YS,docsSlug:"dialog"}),MU=({titleId:e})=>{const t=Pk(Fk),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.

If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.

For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return L.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},LU="DialogDescriptionWarning",IU=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Pk(LU).contentName}}.`;return L.useEffect(()=>{var o;const i=(o=e.current)==null?void 0:o.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},FU=xk,PU=Ck,jU=Nk,VU=Ak,UU=Ok,qU=kk,BU=Mk,$U=Ik,zU=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),HU="VisuallyHidden",jk=L.forwardRef((e,t)=>Y.jsx(Mr.span,{...e,ref:t,style:{...zU,...e.style}}));jk.displayName=HU;var Vk=jk;function Uk(e){const t=e+"CollectionProvider",[n,r]=_f(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=w=>{const{scope:k,children:N}=w,A=Ae.useRef(null),O=Ae.useRef(new Map).current;return Y.jsx(i,{scope:k,itemMap:O,collectionRef:A,children:N})};l.displayName=t;const c=e+"CollectionSlot",p=wm(c),d=Ae.forwardRef((w,k)=>{const{scope:N,children:A}=w,O=o(c,N),_=ui(k,O.collectionRef);return Y.jsx(p,{ref:_,children:A})});d.displayName=c;const m=e+"CollectionItemSlot",E="data-radix-collection-item",b=wm(m),y=Ae.forwardRef((w,k)=>{const{scope:N,children:A,...O}=w,_=Ae.useRef(null),M=ui(k,_),j=o(m,N);return Ae.useEffect(()=>(j.itemMap.set(_,{ref:_,...O}),()=>void j.itemMap.delete(_))),Y.jsx(b,{[E]:"",ref:M,children:A})});y.displayName=m;function x(w){const k=o(e+"CollectionConsumer",w);return Ae.useCallback(()=>{const A=k.collectionRef.current;if(!A)return[];const O=Array.from(A.querySelectorAll(`[${E}]`));return Array.from(k.itemMap.values()).sort((j,P)=>O.indexOf(j.ref.current)-O.indexOf(P.ref.current))},[k.collectionRef,k.itemMap])}return[{Provider:l,Slot:d,ItemSlot:y},x,r]}var GU=L.createContext(void 0);function qk(e){const t=L.useContext(GU);return e||t||"ltr"}const YU=["top","right","bottom","left"],zu=Math.min,Go=Math.max,l0=Math.round,u0=Math.floor,$s=e=>({x:e,y:e}),WU={left:"right",right:"left",bottom:"top",top:"bottom"},QU={start:"end",end:"start"};function QS(e,t,n){return Go(e,zu(t,n))}function Ul(e,t){return typeof e=="function"?e(t):e}function ql(e){return e.split("-")[0]}function ep(e){return e.split("-")[1]}function KS(e){return e==="x"?"y":"x"}function XS(e){return e==="y"?"height":"width"}function zs(e){return["top","bottom"].includes(ql(e))?"y":"x"}function ZS(e){return KS(zs(e))}function KU(e,t,n){n===void 0&&(n=!1);const r=ep(e),i=ZS(e),o=XS(i);let l=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(l=c0(l)),[l,c0(l)]}function XU(e){const t=c0(e);return[JS(e),t,JS(t)]}function JS(e){return e.replace(/start|end/g,t=>QU[t])}function ZU(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:l;default:return[]}}function JU(e,t,n,r){const i=ep(e);let o=ZU(ql(e),n==="start",r);return i&&(o=o.map(l=>l+"-"+i),t&&(o=o.concat(o.map(JS)))),o}function c0(e){return e.replace(/left|right|bottom|top/g,t=>WU[t])}function eq(e){return{top:0,right:0,bottom:0,left:0,...e}}function Bk(e){return typeof e!="number"?eq(e):{top:e,right:e,bottom:e,left:e}}function f0(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function $k(e,t,n){let{reference:r,floating:i}=e;const o=zs(t),l=ZS(t),c=XS(l),p=ql(t),d=o==="y",m=r.x+r.width/2-i.width/2,E=r.y+r.height/2-i.height/2,b=r[c]/2-i[c]/2;let y;switch(p){case"top":y={x:m,y:r.y-i.height};break;case"bottom":y={x:m,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:E};break;case"left":y={x:r.x-i.width,y:E};break;default:y={x:r.x,y:r.y}}switch(ep(t)){case"start":y[l]-=b*(n&&d?-1:1);break;case"end":y[l]+=b*(n&&d?-1:1);break}return y}const tq=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:l}=n,c=o.filter(Boolean),p=await(l.isRTL==null?void 0:l.isRTL(t));let d=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:m,y:E}=$k(d,r,p),b=r,y={},x=0;for(let w=0;w<c.length;w++){const{name:k,fn:N}=c[w],{x:A,y:O,data:_,reset:M}=await N({x:m,y:E,initialPlacement:r,placement:b,strategy:i,middlewareData:y,rects:d,platform:l,elements:{reference:e,floating:t}});m=A??m,E=O??E,y={...y,[k]:{...y[k],..._}},M&&x<=50&&(x++,typeof M=="object"&&(M.placement&&(b=M.placement),M.rects&&(d=M.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:i}):M.rects),{x:m,y:E}=$k(d,b,p)),w=-1)}return{x:m,y:E,placement:b,strategy:i,middlewareData:y}};async function Cm(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:l,elements:c,strategy:p}=e,{boundary:d="clippingAncestors",rootBoundary:m="viewport",elementContext:E="floating",altBoundary:b=!1,padding:y=0}=Ul(t,e),x=Bk(y),k=c[b?E==="floating"?"reference":"floating":E],N=f0(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(k)))==null||n?k:k.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(c.floating)),boundary:d,rootBoundary:m,strategy:p})),A=E==="floating"?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,O=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),_=await(o.isElement==null?void 0:o.isElement(O))?await(o.getScale==null?void 0:o.getScale(O))||{x:1,y:1}:{x:1,y:1},M=f0(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:A,offsetParent:O,strategy:p}):A);return{top:(N.top-M.top+x.top)/_.y,bottom:(M.bottom-N.bottom+x.bottom)/_.y,left:(N.left-M.left+x.left)/_.x,right:(M.right-N.right+x.right)/_.x}}const nq=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:l,elements:c,middlewareData:p}=t,{element:d,padding:m=0}=Ul(e,t)||{};if(d==null)return{};const E=Bk(m),b={x:n,y:r},y=ZS(i),x=XS(y),w=await l.getDimensions(d),k=y==="y",N=k?"top":"left",A=k?"bottom":"right",O=k?"clientHeight":"clientWidth",_=o.reference[x]+o.reference[y]-b[y]-o.floating[x],M=b[y]-o.reference[y],j=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d));let P=j?j[O]:0;(!P||!await(l.isElement==null?void 0:l.isElement(j)))&&(P=c.floating[O]||o.floating[x]);const F=_/2-M/2,V=P/2-w[x]/2-1,$=zu(E[N],V),K=zu(E[A],V),ee=$,J=P-w[x]-K,W=P/2-w[x]/2+F,q=QS(ee,W,J),te=!p.arrow&&ep(i)!=null&&W!==q&&o.reference[x]/2-(W<ee?$:K)-w[x]/2<0,re=te?W<ee?W-ee:W-J:0;return{[y]:b[y]+re,data:{[y]:q,centerOffset:W-q-re,...te&&{alignmentOffset:re}},reset:te}}}),rq=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:l,initialPlacement:c,platform:p,elements:d}=t,{mainAxis:m=!0,crossAxis:E=!0,fallbackPlacements:b,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:w=!0,...k}=Ul(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const N=ql(i),A=zs(c),O=ql(c)===c,_=await(p.isRTL==null?void 0:p.isRTL(d.floating)),M=b||(O||!w?[c0(c)]:XU(c)),j=x!=="none";!b&&j&&M.push(...JU(c,w,x,_));const P=[c,...M],F=await Cm(t,k),V=[];let $=((r=o.flip)==null?void 0:r.overflows)||[];if(m&&V.push(F[N]),E){const W=KU(i,l,_);V.push(F[W[0]],F[W[1]])}if($=[...$,{placement:i,overflows:V}],!V.every(W=>W<=0)){var K,ee;const W=(((K=o.flip)==null?void 0:K.index)||0)+1,q=P[W];if(q&&(!(E==="alignment"?A!==zs(q):!1)||$.every(ae=>ae.overflows[0]>0&&zs(ae.placement)===A)))return{data:{index:W,overflows:$},reset:{placement:q}};let te=(ee=$.filter(re=>re.overflows[0]<=0).sort((re,ae)=>re.overflows[1]-ae.overflows[1])[0])==null?void 0:ee.placement;if(!te)switch(y){case"bestFit":{var J;const re=(J=$.filter(ae=>{if(j){const fe=zs(ae.placement);return fe===A||fe==="y"}return!0}).map(ae=>[ae.placement,ae.overflows.filter(fe=>fe>0).reduce((fe,Z)=>fe+Z,0)]).sort((ae,fe)=>ae[1]-fe[1])[0])==null?void 0:J[0];re&&(te=re);break}case"initialPlacement":te=c;break}if(i!==te)return{reset:{placement:te}}}return{}}}};function zk(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Hk(e){return YU.some(t=>e[t]>=0)}const iq=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=Ul(e,t);switch(r){case"referenceHidden":{const o=await Cm(t,{...i,elementContext:"reference"}),l=zk(o,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:Hk(l)}}}case"escaped":{const o=await Cm(t,{...i,altBoundary:!0}),l=zk(o,n.floating);return{data:{escapedOffsets:l,escaped:Hk(l)}}}default:return{}}}}};async function oq(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),l=ql(n),c=ep(n),p=zs(n)==="y",d=["left","top"].includes(l)?-1:1,m=o&&p?-1:1,E=Ul(t,e);let{mainAxis:b,crossAxis:y,alignmentAxis:x}=typeof E=="number"?{mainAxis:E,crossAxis:0,alignmentAxis:null}:{mainAxis:E.mainAxis||0,crossAxis:E.crossAxis||0,alignmentAxis:E.alignmentAxis};return c&&typeof x=="number"&&(y=c==="end"?x*-1:x),p?{x:y*m,y:b*d}:{x:b*d,y:y*m}}const aq=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:l,middlewareData:c}=t,p=await oq(t,e);return l===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:i+p.x,y:o+p.y,data:{...p,placement:l}}}}},sq=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:l=!1,limiter:c={fn:k=>{let{x:N,y:A}=k;return{x:N,y:A}}},...p}=Ul(e,t),d={x:n,y:r},m=await Cm(t,p),E=zs(ql(i)),b=KS(E);let y=d[b],x=d[E];if(o){const k=b==="y"?"top":"left",N=b==="y"?"bottom":"right",A=y+m[k],O=y-m[N];y=QS(A,y,O)}if(l){const k=E==="y"?"top":"left",N=E==="y"?"bottom":"right",A=x+m[k],O=x-m[N];x=QS(A,x,O)}const w=c.fn({...t,[b]:y,[E]:x});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[b]:o,[E]:l}}}}}},lq=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:l}=t,{offset:c=0,mainAxis:p=!0,crossAxis:d=!0}=Ul(e,t),m={x:n,y:r},E=zs(i),b=KS(E);let y=m[b],x=m[E];const w=Ul(c,t),k=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(p){const O=b==="y"?"height":"width",_=o.reference[b]-o.floating[O]+k.mainAxis,M=o.reference[b]+o.reference[O]-k.mainAxis;y<_?y=_:y>M&&(y=M)}if(d){var N,A;const O=b==="y"?"width":"height",_=["top","left"].includes(ql(i)),M=o.reference[E]-o.floating[O]+(_&&((N=l.offset)==null?void 0:N[E])||0)+(_?0:k.crossAxis),j=o.reference[E]+o.reference[O]+(_?0:((A=l.offset)==null?void 0:A[E])||0)-(_?k.crossAxis:0);x<M?x=M:x>j&&(x=j)}return{[b]:y,[E]:x}}}},uq=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:l,elements:c}=t,{apply:p=()=>{},...d}=Ul(e,t),m=await Cm(t,d),E=ql(i),b=ep(i),y=zs(i)==="y",{width:x,height:w}=o.floating;let k,N;E==="top"||E==="bottom"?(k=E,N=b===(await(l.isRTL==null?void 0:l.isRTL(c.floating))?"start":"end")?"left":"right"):(N=E,k=b==="end"?"top":"bottom");const A=w-m.top-m.bottom,O=x-m.left-m.right,_=zu(w-m[k],A),M=zu(x-m[N],O),j=!t.middlewareData.shift;let P=_,F=M;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(F=O),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(P=A),j&&!b){const $=Go(m.left,0),K=Go(m.right,0),ee=Go(m.top,0),J=Go(m.bottom,0);y?F=x-2*($!==0||K!==0?$+K:Go(m.left,m.right)):P=w-2*(ee!==0||J!==0?ee+J:Go(m.top,m.bottom))}await p({...t,availableWidth:F,availableHeight:P});const V=await l.getDimensions(c.floating);return x!==V.width||w!==V.height?{reset:{rects:!0}}:{}}}};function d0(){return typeof window<"u"}function tp(e){return Gk(e)?(e.nodeName||"").toLowerCase():"#document"}function Yo(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Hs(e){var t;return(t=(Gk(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Gk(e){return d0()?e instanceof Node||e instanceof Yo(e).Node:!1}function ls(e){return d0()?e instanceof Element||e instanceof Yo(e).Element:!1}function Gs(e){return d0()?e instanceof HTMLElement||e instanceof Yo(e).HTMLElement:!1}function Yk(e){return!d0()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Yo(e).ShadowRoot}function _m(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=us(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function cq(e){return["table","td","th"].includes(tp(e))}function p0(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function eT(e){const t=tT(),n=ls(e)?us(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function fq(e){let t=Hu(e);for(;Gs(t)&&!np(t);){if(eT(t))return t;if(p0(t))return null;t=Hu(t)}return null}function tT(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function np(e){return["html","body","#document"].includes(tp(e))}function us(e){return Yo(e).getComputedStyle(e)}function h0(e){return ls(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Hu(e){if(tp(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Yk(e)&&e.host||Hs(e);return Yk(t)?t.host:t}function Wk(e){const t=Hu(e);return np(t)?e.ownerDocument?e.ownerDocument.body:e.body:Gs(t)&&_m(t)?t:Wk(t)}function Nm(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Wk(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),l=Yo(i);if(o){const c=nT(l);return t.concat(l,l.visualViewport||[],_m(i)?i:[],c&&n?Nm(c):[])}return t.concat(i,Nm(i,[],n))}function nT(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Qk(e){const t=us(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Gs(e),o=i?e.offsetWidth:n,l=i?e.offsetHeight:r,c=l0(n)!==o||l0(r)!==l;return c&&(n=o,r=l),{width:n,height:r,$:c}}function rT(e){return ls(e)?e:e.contextElement}function rp(e){const t=rT(e);if(!Gs(t))return $s(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Qk(t);let l=(o?l0(n.width):n.width)/r,c=(o?l0(n.height):n.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}const dq=$s(0);function Kk(e){const t=Yo(e);return!tT()||!t.visualViewport?dq:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function pq(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Yo(e)?!1:t}function Of(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=rT(e);let l=$s(1);t&&(r?ls(r)&&(l=rp(r)):l=rp(e));const c=pq(o,n,r)?Kk(o):$s(0);let p=(i.left+c.x)/l.x,d=(i.top+c.y)/l.y,m=i.width/l.x,E=i.height/l.y;if(o){const b=Yo(o),y=r&&ls(r)?Yo(r):r;let x=b,w=nT(x);for(;w&&r&&y!==x;){const k=rp(w),N=w.getBoundingClientRect(),A=us(w),O=N.left+(w.clientLeft+parseFloat(A.paddingLeft))*k.x,_=N.top+(w.clientTop+parseFloat(A.paddingTop))*k.y;p*=k.x,d*=k.y,m*=k.x,E*=k.y,p+=O,d+=_,x=Yo(w),w=nT(x)}}return f0({width:m,height:E,x:p,y:d})}function iT(e,t){const n=h0(e).scrollLeft;return t?t.left+n:Of(Hs(e)).left+n}function Xk(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:iT(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function hq(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",l=Hs(r),c=t?p0(t.floating):!1;if(r===l||c&&o)return n;let p={scrollLeft:0,scrollTop:0},d=$s(1);const m=$s(0),E=Gs(r);if((E||!E&&!o)&&((tp(r)!=="body"||_m(l))&&(p=h0(r)),Gs(r))){const y=Of(r);d=rp(r),m.x=y.x+r.clientLeft,m.y=y.y+r.clientTop}const b=l&&!E&&!o?Xk(l,p,!0):$s(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-p.scrollLeft*d.x+m.x+b.x,y:n.y*d.y-p.scrollTop*d.y+m.y+b.y}}function mq(e){return Array.from(e.getClientRects())}function gq(e){const t=Hs(e),n=h0(e),r=e.ownerDocument.body,i=Go(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Go(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+iT(e);const c=-n.scrollTop;return us(r).direction==="rtl"&&(l+=Go(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:l,y:c}}function vq(e,t){const n=Yo(e),r=Hs(e),i=n.visualViewport;let o=r.clientWidth,l=r.clientHeight,c=0,p=0;if(i){o=i.width,l=i.height;const d=tT();(!d||d&&t==="fixed")&&(c=i.offsetLeft,p=i.offsetTop)}return{width:o,height:l,x:c,y:p}}function yq(e,t){const n=Of(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Gs(e)?rp(e):$s(1),l=e.clientWidth*o.x,c=e.clientHeight*o.y,p=i*o.x,d=r*o.y;return{width:l,height:c,x:p,y:d}}function Zk(e,t,n){let r;if(t==="viewport")r=vq(e,n);else if(t==="document")r=gq(Hs(e));else if(ls(t))r=yq(t,n);else{const i=Kk(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return f0(r)}function Jk(e,t){const n=Hu(e);return n===t||!ls(n)||np(n)?!1:us(n).position==="fixed"||Jk(n,t)}function bq(e,t){const n=t.get(e);if(n)return n;let r=Nm(e,[],!1).filter(c=>ls(c)&&tp(c)!=="body"),i=null;const o=us(e).position==="fixed";let l=o?Hu(e):e;for(;ls(l)&&!np(l);){const c=us(l),p=eT(l);!p&&c.position==="fixed"&&(i=null),(o?!p&&!i:!p&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||_m(l)&&!p&&Jk(e,l))?r=r.filter(m=>m!==l):i=c,l=Hu(l)}return t.set(e,r),r}function Eq(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const l=[...n==="clippingAncestors"?p0(t)?[]:bq(t,this._c):[].concat(n),r],c=l[0],p=l.reduce((d,m)=>{const E=Zk(t,m,i);return d.top=Go(E.top,d.top),d.right=zu(E.right,d.right),d.bottom=zu(E.bottom,d.bottom),d.left=Go(E.left,d.left),d},Zk(t,c,i));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function Sq(e){const{width:t,height:n}=Qk(e);return{width:t,height:n}}function Tq(e,t,n){const r=Gs(t),i=Hs(t),o=n==="fixed",l=Of(e,!0,o,t);let c={scrollLeft:0,scrollTop:0};const p=$s(0);function d(){p.x=iT(i)}if(r||!r&&!o)if((tp(t)!=="body"||_m(i))&&(c=h0(t)),r){const y=Of(t,!0,o,t);p.x=y.x+t.clientLeft,p.y=y.y+t.clientTop}else i&&d();o&&!r&&i&&d();const m=i&&!r&&!o?Xk(i,c):$s(0),E=l.left+c.scrollLeft-p.x-m.x,b=l.top+c.scrollTop-p.y-m.y;return{x:E,y:b,width:l.width,height:l.height}}function oT(e){return us(e).position==="static"}function e2(e,t){if(!Gs(e)||us(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Hs(e)===n&&(n=n.ownerDocument.body),n}function t2(e,t){const n=Yo(e);if(p0(e))return n;if(!Gs(e)){let i=Hu(e);for(;i&&!np(i);){if(ls(i)&&!oT(i))return i;i=Hu(i)}return n}let r=e2(e,t);for(;r&&cq(r)&&oT(r);)r=e2(r,t);return r&&np(r)&&oT(r)&&!eT(r)?n:r||fq(e)||n}const xq=async function(e){const t=this.getOffsetParent||t2,n=this.getDimensions,r=await n(e.floating);return{reference:Tq(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function wq(e){return us(e).direction==="rtl"}const Cq={convertOffsetParentRelativeRectToViewportRelativeRect:hq,getDocumentElement:Hs,getClippingRect:Eq,getOffsetParent:t2,getElementRects:xq,getClientRects:mq,getDimensions:Sq,getScale:rp,isElement:ls,isRTL:wq};function n2(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function _q(e,t){let n=null,r;const i=Hs(e);function o(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function l(c,p){c===void 0&&(c=!1),p===void 0&&(p=1),o();const d=e.getBoundingClientRect(),{left:m,top:E,width:b,height:y}=d;if(c||t(),!b||!y)return;const x=u0(E),w=u0(i.clientWidth-(m+b)),k=u0(i.clientHeight-(E+y)),N=u0(m),O={rootMargin:-x+"px "+-w+"px "+-k+"px "+-N+"px",threshold:Go(0,zu(1,p))||1};let _=!0;function M(j){const P=j[0].intersectionRatio;if(P!==p){if(!_)return l();P?l(!1,P):r=setTimeout(()=>{l(!1,1e-7)},1e3)}P===1&&!n2(d,e.getBoundingClientRect())&&l(),_=!1}try{n=new IntersectionObserver(M,{...O,root:i.ownerDocument})}catch{n=new IntersectionObserver(M,O)}n.observe(e)}return l(!0),o}function Nq(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:p=!1}=r,d=rT(e),m=i||o?[...d?Nm(d):[],...Nm(t)]:[];m.forEach(N=>{i&&N.addEventListener("scroll",n,{passive:!0}),o&&N.addEventListener("resize",n)});const E=d&&c?_q(d,n):null;let b=-1,y=null;l&&(y=new ResizeObserver(N=>{let[A]=N;A&&A.target===d&&y&&(y.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var O;(O=y)==null||O.observe(t)})),n()}),d&&!p&&y.observe(d),y.observe(t));let x,w=p?Of(e):null;p&&k();function k(){const N=Of(e);w&&!n2(w,N)&&n(),w=N,x=requestAnimationFrame(k)}return n(),()=>{var N;m.forEach(A=>{i&&A.removeEventListener("scroll",n),o&&A.removeEventListener("resize",n)}),E==null||E(),(N=y)==null||N.disconnect(),y=null,p&&cancelAnimationFrame(x)}}const Aq=aq,Oq=sq,Dq=rq,kq=uq,Rq=iq,r2=nq,Mq=lq,Lq=(e,t,n)=>{const r=new Map,i={platform:Cq,...n},o={...i.platform,_c:r};return tq(e,t,{...i,platform:o})};var Iq=typeof document<"u",Fq=function(){},m0=Iq?L.useLayoutEffect:Fq;function g0(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!g0(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!g0(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function i2(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function o2(e,t){const n=i2(e);return Math.round(t*n)/n}function aT(e){const t=L.useRef(e);return m0(()=>{t.current=e}),t}function Pq(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:l}={},transform:c=!0,whileElementsMounted:p,open:d}=e,[m,E]=L.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,y]=L.useState(r);g0(b,r)||y(r);const[x,w]=L.useState(null),[k,N]=L.useState(null),A=L.useCallback(ae=>{ae!==j.current&&(j.current=ae,w(ae))},[]),O=L.useCallback(ae=>{ae!==P.current&&(P.current=ae,N(ae))},[]),_=o||x,M=l||k,j=L.useRef(null),P=L.useRef(null),F=L.useRef(m),V=p!=null,$=aT(p),K=aT(i),ee=aT(d),J=L.useCallback(()=>{if(!j.current||!P.current)return;const ae={placement:t,strategy:n,middleware:b};K.current&&(ae.platform=K.current),Lq(j.current,P.current,ae).then(fe=>{const Z={...fe,isPositioned:ee.current!==!1};W.current&&!g0(F.current,Z)&&(F.current=Z,Qy.flushSync(()=>{E(Z)}))})},[b,t,n,K,ee]);m0(()=>{d===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,E(ae=>({...ae,isPositioned:!1})))},[d]);const W=L.useRef(!1);m0(()=>(W.current=!0,()=>{W.current=!1}),[]),m0(()=>{if(_&&(j.current=_),M&&(P.current=M),_&&M){if($.current)return $.current(_,M,J);J()}},[_,M,J,$,V]);const q=L.useMemo(()=>({reference:j,floating:P,setReference:A,setFloating:O}),[A,O]),te=L.useMemo(()=>({reference:_,floating:M}),[_,M]),re=L.useMemo(()=>{const ae={position:n,left:0,top:0};if(!te.floating)return ae;const fe=o2(te.floating,m.x),Z=o2(te.floating,m.y);return c?{...ae,transform:"translate("+fe+"px, "+Z+"px)",...i2(te.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:fe,top:Z}},[n,c,te.floating,m.x,m.y]);return L.useMemo(()=>({...m,update:J,refs:q,elements:te,floatingStyles:re}),[m,J,q,te,re])}const jq=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?r2({element:r.current,padding:i}).fn(n):{}:r?r2({element:r,padding:i}).fn(n):{}}}},Vq=(e,t)=>({...Aq(e),options:[e,t]}),Uq=(e,t)=>({...Oq(e),options:[e,t]}),qq=(e,t)=>({...Mq(e),options:[e,t]}),Bq=(e,t)=>({...Dq(e),options:[e,t]}),$q=(e,t)=>({...kq(e),options:[e,t]}),zq=(e,t)=>({...Rq(e),options:[e,t]}),Hq=(e,t)=>({...jq(e),options:[e,t]});var Gq="Arrow",a2=L.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...o}=e;return Y.jsx(Mr.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:Y.jsx("polygon",{points:"0,0 30,0 15,10"})})});a2.displayName=Gq;var Yq=a2;function Wq(e){const[t,n]=L.useState(void 0);return Bu(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const o=i[0];let l,c;if("borderBoxSize"in o){const p=o.borderBoxSize,d=Array.isArray(p)?p[0]:p;l=d.inlineSize,c=d.blockSize}else l=e.offsetWidth,c=e.offsetHeight;n({width:l,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var sT="Popper",[s2,v0]=_f(sT),[Qq,l2]=s2(sT),u2=e=>{const{__scopePopper:t,children:n}=e,[r,i]=L.useState(null);return Y.jsx(Qq,{scope:t,anchor:r,onAnchorChange:i,children:n})};u2.displayName=sT;var c2="PopperAnchor",f2=L.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,o=l2(c2,n),l=L.useRef(null),c=ui(t,l);return L.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||l.current)}),r?null:Y.jsx(Mr.div,{...i,ref:c})});f2.displayName=c2;var lT="PopperContent",[Kq,Xq]=s2(lT),d2=L.forwardRef((e,t)=>{var je,Ge,Ye,Ot,gt,ot;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:o="center",alignOffset:l=0,arrowPadding:c=0,avoidCollisions:p=!0,collisionBoundary:d=[],collisionPadding:m=0,sticky:E="partial",hideWhenDetached:b=!1,updatePositionStrategy:y="optimized",onPlaced:x,...w}=e,k=l2(lT,n),[N,A]=L.useState(null),O=ui(t,Oe=>A(Oe)),[_,M]=L.useState(null),j=Wq(_),P=(j==null?void 0:j.width)??0,F=(j==null?void 0:j.height)??0,V=r+(o!=="center"?"-"+o:""),$=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},K=Array.isArray(d)?d:[d],ee=K.length>0,J={padding:$,boundary:K.filter(Jq),altBoundary:ee},{refs:W,floatingStyles:q,placement:te,isPositioned:re,middlewareData:ae}=Pq({strategy:"fixed",placement:V,whileElementsMounted:(...Oe)=>Nq(...Oe,{animationFrame:y==="always"}),elements:{reference:k.anchor},middleware:[Vq({mainAxis:i+F,alignmentAxis:l}),p&&Uq({mainAxis:!0,crossAxis:!1,limiter:E==="partial"?qq():void 0,...J}),p&&Bq({...J}),$q({...J,apply:({elements:Oe,rects:ye,availableWidth:Le,availableHeight:be})=>{const{width:oe,height:Fe}=ye.reference,Je=Oe.floating.style;Je.setProperty("--radix-popper-available-width",`${Le}px`),Je.setProperty("--radix-popper-available-height",`${be}px`),Je.setProperty("--radix-popper-anchor-width",`${oe}px`),Je.setProperty("--radix-popper-anchor-height",`${Fe}px`)}}),_&&Hq({element:_,padding:c}),eB({arrowWidth:P,arrowHeight:F}),b&&zq({strategy:"referenceHidden",...J})]}),[fe,Z]=m2(te),he=Vl(x);Bu(()=>{re&&(he==null||he())},[re,he]);const se=(je=ae.arrow)==null?void 0:je.x,pe=(Ge=ae.arrow)==null?void 0:Ge.y,ce=((Ye=ae.arrow)==null?void 0:Ye.centerOffset)!==0,[me,Se]=L.useState();return Bu(()=>{N&&Se(window.getComputedStyle(N).zIndex)},[N]),Y.jsx("div",{ref:W.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:re?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:me,"--radix-popper-transform-origin":[(Ot=ae.transformOrigin)==null?void 0:Ot.x,(gt=ae.transformOrigin)==null?void 0:gt.y].join(" "),...((ot=ae.hide)==null?void 0:ot.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:Y.jsx(Kq,{scope:n,placedSide:fe,onArrowChange:M,arrowX:se,arrowY:pe,shouldHideArrow:ce,children:Y.jsx(Mr.div,{"data-side":fe,"data-align":Z,...w,ref:O,style:{...w.style,animation:re?void 0:"none"}})})})});d2.displayName=lT;var p2="PopperArrow",Zq={top:"bottom",right:"left",bottom:"top",left:"right"},h2=L.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,o=Xq(p2,r),l=Zq[o.placedSide];return Y.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:Y.jsx(Yq,{...i,ref:n,style:{...i.style,display:"block"}})})});h2.displayName=p2;function Jq(e){return e!==null}var eB=e=>({name:"transformOrigin",options:e,fn(t){var k,N,A;const{placement:n,rects:r,middlewareData:i}=t,l=((k=i.arrow)==null?void 0:k.centerOffset)!==0,c=l?0:e.arrowWidth,p=l?0:e.arrowHeight,[d,m]=m2(n),E={start:"0%",center:"50%",end:"100%"}[m],b=(((N=i.arrow)==null?void 0:N.x)??0)+c/2,y=(((A=i.arrow)==null?void 0:A.y)??0)+p/2;let x="",w="";return d==="bottom"?(x=l?E:`${b}px`,w=`${-p}px`):d==="top"?(x=l?E:`${b}px`,w=`${r.floating.height+p}px`):d==="right"?(x=`${-p}px`,w=l?E:`${y}px`):d==="left"&&(x=`${r.floating.width+p}px`,w=l?E:`${y}px`),{data:{x,y:w}}}});function m2(e){const[t,n="center"]=e.split("-");return[t,n]}var g2=u2,v2=f2,y2=d2,b2=h2,uT="rovingFocusGroup.onEntryFocus",tB={bubbles:!1,cancelable:!0},Am="RovingFocusGroup",[cT,E2,nB]=Uk(Am),[rB,S2]=_f(Am,[nB]),[iB,oB]=rB(Am),T2=L.forwardRef((e,t)=>Y.jsx(cT.Provider,{scope:e.__scopeRovingFocusGroup,children:Y.jsx(cT.Slot,{scope:e.__scopeRovingFocusGroup,children:Y.jsx(aB,{...e,ref:t})})}));T2.displayName=Am;var aB=L.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:o,currentTabStopId:l,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:p,onEntryFocus:d,preventScrollOnEntryFocus:m=!1,...E}=e,b=L.useRef(null),y=ui(t,b),x=qk(o),[w,k]=Wy({prop:l,defaultProp:c??null,onChange:p,caller:Am}),[N,A]=L.useState(!1),O=Vl(d),_=E2(n),M=L.useRef(!1),[j,P]=L.useState(0);return L.useEffect(()=>{const F=b.current;if(F)return F.addEventListener(uT,O),()=>F.removeEventListener(uT,O)},[O]),Y.jsx(iB,{scope:n,orientation:r,dir:x,loop:i,currentTabStopId:w,onItemFocus:L.useCallback(F=>k(F),[k]),onItemShiftTab:L.useCallback(()=>A(!0),[]),onFocusableItemAdd:L.useCallback(()=>P(F=>F+1),[]),onFocusableItemRemove:L.useCallback(()=>P(F=>F-1),[]),children:Y.jsx(Mr.div,{tabIndex:N||j===0?-1:0,"data-orientation":r,...E,ref:y,style:{outline:"none",...e.style},onMouseDown:$t(e.onMouseDown,()=>{M.current=!0}),onFocus:$t(e.onFocus,F=>{const V=!M.current;if(F.target===F.currentTarget&&V&&!N){const $=new CustomEvent(uT,tB);if(F.currentTarget.dispatchEvent($),!$.defaultPrevented){const K=_().filter(te=>te.focusable),ee=K.find(te=>te.active),J=K.find(te=>te.id===w),q=[ee,J,...K].filter(Boolean).map(te=>te.ref.current);C2(q,m)}}M.current=!1}),onBlur:$t(e.onBlur,()=>A(!1))})})}),x2="RovingFocusGroupItem",w2=L.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:o,children:l,...c}=e,p=Nf(),d=o||p,m=oB(x2,n),E=m.currentTabStopId===d,b=E2(n),{onFocusableItemAdd:y,onFocusableItemRemove:x,currentTabStopId:w}=m;return L.useEffect(()=>{if(r)return y(),()=>x()},[r,y,x]),Y.jsx(cT.ItemSlot,{scope:n,id:d,focusable:r,active:i,children:Y.jsx(Mr.span,{tabIndex:E?0:-1,"data-orientation":m.orientation,...c,ref:t,onMouseDown:$t(e.onMouseDown,k=>{r?m.onItemFocus(d):k.preventDefault()}),onFocus:$t(e.onFocus,()=>m.onItemFocus(d)),onKeyDown:$t(e.onKeyDown,k=>{if(k.key==="Tab"&&k.shiftKey){m.onItemShiftTab();return}if(k.target!==k.currentTarget)return;const N=uB(k,m.orientation,m.dir);if(N!==void 0){if(k.metaKey||k.ctrlKey||k.altKey||k.shiftKey)return;k.preventDefault();let O=b().filter(_=>_.focusable).map(_=>_.ref.current);if(N==="last")O.reverse();else if(N==="prev"||N==="next"){N==="prev"&&O.reverse();const _=O.indexOf(k.currentTarget);O=m.loop?cB(O,_+1):O.slice(_+1)}setTimeout(()=>C2(O))}}),children:typeof l=="function"?l({isCurrentTabStop:E,hasTabStop:w!=null}):l})})});w2.displayName=x2;var sB={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function lB(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function uB(e,t,n){const r=lB(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return sB[r]}function C2(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function cB(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var fB=T2,dB=w2,fT=["Enter"," "],pB=["ArrowDown","PageUp","Home"],_2=["ArrowUp","PageDown","End"],hB=[...pB,..._2],mB={ltr:[...fT,"ArrowRight"],rtl:[...fT,"ArrowLeft"]},gB={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Om="Menu",[Dm,vB,yB]=Uk(Om),[Df,N2]=_f(Om,[yB,v0,S2]),y0=v0(),A2=S2(),[bB,kf]=Df(Om),[EB,km]=Df(Om),O2=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:o,modal:l=!0}=e,c=y0(t),[p,d]=L.useState(null),m=L.useRef(!1),E=Vl(o),b=qk(i);return L.useEffect(()=>{const y=()=>{m.current=!0,document.addEventListener("pointerdown",x,{capture:!0,once:!0}),document.addEventListener("pointermove",x,{capture:!0,once:!0})},x=()=>m.current=!1;return document.addEventListener("keydown",y,{capture:!0}),()=>{document.removeEventListener("keydown",y,{capture:!0}),document.removeEventListener("pointerdown",x,{capture:!0}),document.removeEventListener("pointermove",x,{capture:!0})}},[]),Y.jsx(g2,{...c,children:Y.jsx(bB,{scope:t,open:n,onOpenChange:E,content:p,onContentChange:d,children:Y.jsx(EB,{scope:t,onClose:L.useCallback(()=>E(!1),[E]),isUsingKeyboardRef:m,dir:b,modal:l,children:r})})})};O2.displayName=Om;var SB="MenuAnchor",dT=L.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=y0(n);return Y.jsx(v2,{...i,...r,ref:t})});dT.displayName=SB;var pT="MenuPortal",[TB,D2]=Df(pT,{forceMount:void 0}),k2=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:i}=e,o=kf(pT,t);return Y.jsx(TB,{scope:t,forceMount:n,children:Y.jsx(Bs,{present:n||o.open,children:Y.jsx(Xy,{asChild:!0,container:i,children:r})})})};k2.displayName=pT;var _a="MenuContent",[xB,hT]=Df(_a),R2=L.forwardRef((e,t)=>{const n=D2(_a,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=kf(_a,e.__scopeMenu),l=km(_a,e.__scopeMenu);return Y.jsx(Dm.Provider,{scope:e.__scopeMenu,children:Y.jsx(Bs,{present:r||o.open,children:Y.jsx(Dm.Slot,{scope:e.__scopeMenu,children:l.modal?Y.jsx(wB,{...i,ref:t}):Y.jsx(CB,{...i,ref:t})})})})}),wB=L.forwardRef((e,t)=>{const n=kf(_a,e.__scopeMenu),r=L.useRef(null),i=ui(t,r);return L.useEffect(()=>{const o=r.current;if(o)return Sk(o)},[]),Y.jsx(mT,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:$t(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),CB=L.forwardRef((e,t)=>{const n=kf(_a,e.__scopeMenu);return Y.jsx(mT,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),_B=wm("MenuContent.ScrollLock"),mT=L.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:l,disableOutsidePointerEvents:c,onEntryFocus:p,onEscapeKeyDown:d,onPointerDownOutside:m,onFocusOutside:E,onInteractOutside:b,onDismiss:y,disableOutsideScroll:x,...w}=e,k=kf(_a,n),N=km(_a,n),A=y0(n),O=A2(n),_=vB(n),[M,j]=L.useState(null),P=L.useRef(null),F=ui(t,P,k.onContentChange),V=L.useRef(0),$=L.useRef(""),K=L.useRef(0),ee=L.useRef(null),J=L.useRef("right"),W=L.useRef(0),q=x?zS:L.Fragment,te=x?{as:_B,allowPinchZoom:!0}:void 0,re=fe=>{var je,Ge;const Z=$.current+fe,he=_().filter(Ye=>!Ye.disabled),se=document.activeElement,pe=(je=he.find(Ye=>Ye.ref.current===se))==null?void 0:je.textValue,ce=he.map(Ye=>Ye.textValue),me=jB(ce,Z,pe),Se=(Ge=he.find(Ye=>Ye.textValue===me))==null?void 0:Ge.ref.current;(function Ye(Ot){$.current=Ot,window.clearTimeout(V.current),Ot!==""&&(V.current=window.setTimeout(()=>Ye(""),1e3))})(Z),Se&&setTimeout(()=>Se.focus())};L.useEffect(()=>()=>window.clearTimeout(V.current),[]),ak();const ae=L.useCallback(fe=>{var he,se;return J.current===((he=ee.current)==null?void 0:he.side)&&UB(fe,(se=ee.current)==null?void 0:se.area)},[]);return Y.jsx(xB,{scope:n,searchRef:$,onItemEnter:L.useCallback(fe=>{ae(fe)&&fe.preventDefault()},[ae]),onItemLeave:L.useCallback(fe=>{var Z;ae(fe)||((Z=P.current)==null||Z.focus(),j(null))},[ae]),onTriggerLeave:L.useCallback(fe=>{ae(fe)&&fe.preventDefault()},[ae]),pointerGraceTimerRef:K,onPointerGraceIntentChange:L.useCallback(fe=>{ee.current=fe},[]),children:Y.jsx(q,{...te,children:Y.jsx(PS,{asChild:!0,trapped:i,onMountAutoFocus:$t(o,fe=>{var Z;fe.preventDefault(),(Z=P.current)==null||Z.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:Y.jsx(Ky,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:d,onPointerDownOutside:m,onFocusOutside:E,onInteractOutside:b,onDismiss:y,children:Y.jsx(fB,{asChild:!0,...O,dir:N.dir,orientation:"vertical",loop:r,currentTabStopId:M,onCurrentTabStopIdChange:j,onEntryFocus:$t(p,fe=>{N.isUsingKeyboardRef.current||fe.preventDefault()}),preventScrollOnEntryFocus:!0,children:Y.jsx(y2,{role:"menu","aria-orientation":"vertical","data-state":Q2(k.open),"data-radix-menu-content":"",dir:N.dir,...A,...w,ref:F,style:{outline:"none",...w.style},onKeyDown:$t(w.onKeyDown,fe=>{const he=fe.target.closest("[data-radix-menu-content]")===fe.currentTarget,se=fe.ctrlKey||fe.altKey||fe.metaKey,pe=fe.key.length===1;he&&(fe.key==="Tab"&&fe.preventDefault(),!se&&pe&&re(fe.key));const ce=P.current;if(fe.target!==ce||!hB.includes(fe.key))return;fe.preventDefault();const Se=_().filter(je=>!je.disabled).map(je=>je.ref.current);_2.includes(fe.key)&&Se.reverse(),FB(Se)}),onBlur:$t(e.onBlur,fe=>{fe.currentTarget.contains(fe.target)||(window.clearTimeout(V.current),$.current="")}),onPointerMove:$t(e.onPointerMove,Mm(fe=>{const Z=fe.target,he=W.current!==fe.clientX;if(fe.currentTarget.contains(Z)&&he){const se=fe.clientX>W.current?"right":"left";J.current=se,W.current=fe.clientX}}))})})})})})})});R2.displayName=_a;var NB="MenuGroup",gT=L.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return Y.jsx(Mr.div,{role:"group",...r,ref:t})});gT.displayName=NB;var AB="MenuLabel",M2=L.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return Y.jsx(Mr.div,{...r,ref:t})});M2.displayName=AB;var b0="MenuItem",L2="menu.itemSelect",E0=L.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...i}=e,o=L.useRef(null),l=km(b0,e.__scopeMenu),c=hT(b0,e.__scopeMenu),p=ui(t,o),d=L.useRef(!1),m=()=>{const E=o.current;if(!n&&E){const b=new CustomEvent(L2,{bubbles:!0,cancelable:!0});E.addEventListener(L2,y=>r==null?void 0:r(y),{once:!0}),KD(E,b),b.defaultPrevented?d.current=!1:l.onClose()}};return Y.jsx(I2,{...i,ref:p,disabled:n,onClick:$t(e.onClick,m),onPointerDown:E=>{var b;(b=e.onPointerDown)==null||b.call(e,E),d.current=!0},onPointerUp:$t(e.onPointerUp,E=>{var b;d.current||(b=E.currentTarget)==null||b.click()}),onKeyDown:$t(e.onKeyDown,E=>{const b=c.searchRef.current!=="";n||b&&E.key===" "||fT.includes(E.key)&&(E.currentTarget.click(),E.preventDefault())})})});E0.displayName=b0;var I2=L.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:i,...o}=e,l=hT(b0,n),c=A2(n),p=L.useRef(null),d=ui(t,p),[m,E]=L.useState(!1),[b,y]=L.useState("");return L.useEffect(()=>{const x=p.current;x&&y((x.textContent??"").trim())},[o.children]),Y.jsx(Dm.ItemSlot,{scope:n,disabled:r,textValue:i??b,children:Y.jsx(dB,{asChild:!0,...c,focusable:!r,children:Y.jsx(Mr.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...o,ref:d,onPointerMove:$t(e.onPointerMove,Mm(x=>{r?l.onItemLeave(x):(l.onItemEnter(x),x.defaultPrevented||x.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:$t(e.onPointerLeave,Mm(x=>l.onItemLeave(x))),onFocus:$t(e.onFocus,()=>E(!0)),onBlur:$t(e.onBlur,()=>E(!1))})})})}),OB="MenuCheckboxItem",F2=L.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...i}=e;return Y.jsx(q2,{scope:e.__scopeMenu,checked:n,children:Y.jsx(E0,{role:"menuitemcheckbox","aria-checked":S0(n)?"mixed":n,...i,ref:t,"data-state":yT(n),onSelect:$t(i.onSelect,()=>r==null?void 0:r(S0(n)?!0:!n),{checkForDefaultPrevented:!1})})})});F2.displayName=OB;var P2="MenuRadioGroup",[DB,kB]=Df(P2,{value:void 0,onValueChange:()=>{}}),j2=L.forwardRef((e,t)=>{const{value:n,onValueChange:r,...i}=e,o=Vl(r);return Y.jsx(DB,{scope:e.__scopeMenu,value:n,onValueChange:o,children:Y.jsx(gT,{...i,ref:t})})});j2.displayName=P2;var V2="MenuRadioItem",U2=L.forwardRef((e,t)=>{const{value:n,...r}=e,i=kB(V2,e.__scopeMenu),o=n===i.value;return Y.jsx(q2,{scope:e.__scopeMenu,checked:o,children:Y.jsx(E0,{role:"menuitemradio","aria-checked":o,...r,ref:t,"data-state":yT(o),onSelect:$t(r.onSelect,()=>{var l;return(l=i.onValueChange)==null?void 0:l.call(i,n)},{checkForDefaultPrevented:!1})})})});U2.displayName=V2;var vT="MenuItemIndicator",[q2,RB]=Df(vT,{checked:!1}),B2=L.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...i}=e,o=RB(vT,n);return Y.jsx(Bs,{present:r||S0(o.checked)||o.checked===!0,children:Y.jsx(Mr.span,{...i,ref:t,"data-state":yT(o.checked)})})});B2.displayName=vT;var MB="MenuSeparator",$2=L.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return Y.jsx(Mr.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});$2.displayName=MB;var LB="MenuArrow",z2=L.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=y0(n);return Y.jsx(b2,{...i,...r,ref:t})});z2.displayName=LB;var IB="MenuSub",[roe,H2]=Df(IB),Rm="MenuSubTrigger",G2=L.forwardRef((e,t)=>{const n=kf(Rm,e.__scopeMenu),r=km(Rm,e.__scopeMenu),i=H2(Rm,e.__scopeMenu),o=hT(Rm,e.__scopeMenu),l=L.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:p}=o,d={__scopeMenu:e.__scopeMenu},m=L.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return L.useEffect(()=>m,[m]),L.useEffect(()=>{const E=c.current;return()=>{window.clearTimeout(E),p(null)}},[c,p]),Y.jsx(dT,{asChild:!0,...d,children:Y.jsx(I2,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":Q2(n.open),...e,ref:Yy(t,i.onTriggerChange),onClick:E=>{var b;(b=e.onClick)==null||b.call(e,E),!(e.disabled||E.defaultPrevented)&&(E.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:$t(e.onPointerMove,Mm(E=>{o.onItemEnter(E),!E.defaultPrevented&&!e.disabled&&!n.open&&!l.current&&(o.onPointerGraceIntentChange(null),l.current=window.setTimeout(()=>{n.onOpenChange(!0),m()},100))})),onPointerLeave:$t(e.onPointerLeave,Mm(E=>{var y,x;m();const b=(y=n.content)==null?void 0:y.getBoundingClientRect();if(b){const w=(x=n.content)==null?void 0:x.dataset.side,k=w==="right",N=k?-5:5,A=b[k?"left":"right"],O=b[k?"right":"left"];o.onPointerGraceIntentChange({area:[{x:E.clientX+N,y:E.clientY},{x:A,y:b.top},{x:O,y:b.top},{x:O,y:b.bottom},{x:A,y:b.bottom}],side:w}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(E),E.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:$t(e.onKeyDown,E=>{var y;const b=o.searchRef.current!=="";e.disabled||b&&E.key===" "||mB[r.dir].includes(E.key)&&(n.onOpenChange(!0),(y=n.content)==null||y.focus(),E.preventDefault())})})})});G2.displayName=Rm;var Y2="MenuSubContent",W2=L.forwardRef((e,t)=>{const n=D2(_a,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=kf(_a,e.__scopeMenu),l=km(_a,e.__scopeMenu),c=H2(Y2,e.__scopeMenu),p=L.useRef(null),d=ui(t,p);return Y.jsx(Dm.Provider,{scope:e.__scopeMenu,children:Y.jsx(Bs,{present:r||o.open,children:Y.jsx(Dm.Slot,{scope:e.__scopeMenu,children:Y.jsx(mT,{id:c.contentId,"aria-labelledby":c.triggerId,...i,ref:d,align:"start",side:l.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:m=>{var E;l.isUsingKeyboardRef.current&&((E=p.current)==null||E.focus()),m.preventDefault()},onCloseAutoFocus:m=>m.preventDefault(),onFocusOutside:$t(e.onFocusOutside,m=>{m.target!==c.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:$t(e.onEscapeKeyDown,m=>{l.onClose(),m.preventDefault()}),onKeyDown:$t(e.onKeyDown,m=>{var y;const E=m.currentTarget.contains(m.target),b=gB[l.dir].includes(m.key);E&&b&&(o.onOpenChange(!1),(y=c.trigger)==null||y.focus(),m.preventDefault())})})})})})});W2.displayName=Y2;function Q2(e){return e?"open":"closed"}function S0(e){return e==="indeterminate"}function yT(e){return S0(e)?"indeterminate":e?"checked":"unchecked"}function FB(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function PB(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function jB(e,t,n){const i=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let l=PB(e,Math.max(o,0));i.length===1&&(l=l.filter(d=>d!==n));const p=l.find(d=>d.toLowerCase().startsWith(i.toLowerCase()));return p!==n?p:void 0}function VB(e,t){const{x:n,y:r}=e;let i=!1;for(let o=0,l=t.length-1;o<t.length;l=o++){const c=t[o],p=t[l],d=c.x,m=c.y,E=p.x,b=p.y;m>r!=b>r&&n<(E-d)*(r-m)/(b-m)+d&&(i=!i)}return i}function UB(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return VB(n,t)}function Mm(e){return t=>t.pointerType==="mouse"?e(t):void 0}var qB=O2,BB=dT,$B=k2,zB=R2,HB=gT,GB=M2,YB=E0,WB=F2,QB=j2,KB=U2,XB=B2,ZB=$2,JB=z2,e$=G2,t$=W2,T0="DropdownMenu",[n$,ioe]=_f(T0,[N2]),uo=N2(),[r$,K2]=n$(T0),X2=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:o,onOpenChange:l,modal:c=!0}=e,p=uo(t),d=L.useRef(null),[m,E]=Wy({prop:i,defaultProp:o??!1,onChange:l,caller:T0});return Y.jsx(r$,{scope:t,triggerId:Nf(),triggerRef:d,contentId:Nf(),open:m,onOpenChange:E,onOpenToggle:L.useCallback(()=>E(b=>!b),[E]),modal:c,children:Y.jsx(qB,{...p,open:m,onOpenChange:E,dir:r,modal:c,children:n})})};X2.displayName=T0;var Z2="DropdownMenuTrigger",J2=L.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,o=K2(Z2,n),l=uo(n);return Y.jsx(BB,{asChild:!0,...l,children:Y.jsx(Mr.button,{type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...i,ref:Yy(t,o.triggerRef),onPointerDown:$t(e.onPointerDown,c=>{!r&&c.button===0&&c.ctrlKey===!1&&(o.onOpenToggle(),o.open||c.preventDefault())}),onKeyDown:$t(e.onKeyDown,c=>{r||(["Enter"," "].includes(c.key)&&o.onOpenToggle(),c.key==="ArrowDown"&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});J2.displayName=Z2;var i$="DropdownMenuPortal",eR=e=>{const{__scopeDropdownMenu:t,...n}=e,r=uo(t);return Y.jsx($B,{...r,...n})};eR.displayName=i$;var tR="DropdownMenuContent",nR=L.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=K2(tR,n),o=uo(n),l=L.useRef(!1);return Y.jsx(zB,{id:i.contentId,"aria-labelledby":i.triggerId,...o,...r,ref:t,onCloseAutoFocus:$t(e.onCloseAutoFocus,c=>{var p;l.current||(p=i.triggerRef.current)==null||p.focus(),l.current=!1,c.preventDefault()}),onInteractOutside:$t(e.onInteractOutside,c=>{const p=c.detail.originalEvent,d=p.button===0&&p.ctrlKey===!0,m=p.button===2||d;(!i.modal||m)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});nR.displayName=tR;var o$="DropdownMenuGroup",a$=L.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=uo(n);return Y.jsx(HB,{...i,...r,ref:t})});a$.displayName=o$;var s$="DropdownMenuLabel",l$=L.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=uo(n);return Y.jsx(GB,{...i,...r,ref:t})});l$.displayName=s$;var u$="DropdownMenuItem",rR=L.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=uo(n);return Y.jsx(YB,{...i,...r,ref:t})});rR.displayName=u$;var c$="DropdownMenuCheckboxItem",f$=L.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=uo(n);return Y.jsx(WB,{...i,...r,ref:t})});f$.displayName=c$;var d$="DropdownMenuRadioGroup",p$=L.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=uo(n);return Y.jsx(QB,{...i,...r,ref:t})});p$.displayName=d$;var h$="DropdownMenuRadioItem",m$=L.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=uo(n);return Y.jsx(KB,{...i,...r,ref:t})});m$.displayName=h$;var g$="DropdownMenuItemIndicator",v$=L.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=uo(n);return Y.jsx(XB,{...i,...r,ref:t})});v$.displayName=g$;var y$="DropdownMenuSeparator",b$=L.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=uo(n);return Y.jsx(ZB,{...i,...r,ref:t})});b$.displayName=y$;var E$="DropdownMenuArrow",S$=L.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=uo(n);return Y.jsx(JB,{...i,...r,ref:t})});S$.displayName=E$;var T$="DropdownMenuSubTrigger",x$=L.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=uo(n);return Y.jsx(e$,{...i,...r,ref:t})});x$.displayName=T$;var w$="DropdownMenuSubContent",C$=L.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=uo(n);return Y.jsx(t$,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});C$.displayName=w$;var _$=X2,N$=J2,A$=eR,O$=nR,D$=rR,bT={};const k$={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:`
`,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:"	",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:"‌"};var ET,iR;function oR(){return iR||(iR=1,ET=k$),ET}var ST,aR;function TT(){return aR||(aR=1,ST=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/),ST}var ip={},xT,sR;function R$(){if(sR)return xT;sR=1;var e={};function t(r){var i,o,l=e[r];if(l)return l;for(l=e[r]=[],i=0;i<128;i++)o=String.fromCharCode(i),/^[0-9a-z]$/i.test(o)?l.push(o):l.push("%"+("0"+i.toString(16).toUpperCase()).slice(-2));for(i=0;i<r.length;i++)l[r.charCodeAt(i)]=r[i];return l}function n(r,i,o){var l,c,p,d,m,E="";for(typeof i!="string"&&(o=i,i=n.defaultChars),typeof o>"u"&&(o=!0),m=t(i),l=0,c=r.length;l<c;l++){if(p=r.charCodeAt(l),o&&p===37&&l+2<c&&/^[0-9a-f]{2}$/i.test(r.slice(l+1,l+3))){E+=r.slice(l,l+3),l+=2;continue}if(p<128){E+=m[p];continue}if(p>=55296&&p<=57343){if(p>=55296&&p<=56319&&l+1<c&&(d=r.charCodeAt(l+1),d>=56320&&d<=57343)){E+=encodeURIComponent(r[l]+r[l+1]),l++;continue}E+="%EF%BF%BD";continue}E+=encodeURIComponent(r[l])}return E}return n.defaultChars=";/?:@&=+$,-_.!~*'()#",n.componentChars="-_.!~*'()",xT=n,xT}var wT,lR;function M$(){if(lR)return wT;lR=1;var e={};function t(r){var i,o,l=e[r];if(l)return l;for(l=e[r]=[],i=0;i<128;i++)o=String.fromCharCode(i),l.push(o);for(i=0;i<r.length;i++)o=r.charCodeAt(i),l[o]="%"+("0"+o.toString(16).toUpperCase()).slice(-2);return l}function n(r,i){var o;return typeof i!="string"&&(i=n.defaultChars),o=t(i),r.replace(/(%[a-f0-9]{2})+/gi,function(l){var c,p,d,m,E,b,y,x="";for(c=0,p=l.length;c<p;c+=3){if(d=parseInt(l.slice(c+1,c+3),16),d<128){x+=o[d];continue}if((d&224)===192&&c+3<p&&(m=parseInt(l.slice(c+4,c+6),16),(m&192)===128)){y=d<<6&1984|m&63,y<128?x+="��":x+=String.fromCharCode(y),c+=3;continue}if((d&240)===224&&c+6<p&&(m=parseInt(l.slice(c+4,c+6),16),E=parseInt(l.slice(c+7,c+9),16),(m&192)===128&&(E&192)===128)){y=d<<12&61440|m<<6&4032|E&63,y<2048||y>=55296&&y<=57343?x+="���":x+=String.fromCharCode(y),c+=6;continue}if((d&248)===240&&c+9<p&&(m=parseInt(l.slice(c+4,c+6),16),E=parseInt(l.slice(c+7,c+9),16),b=parseInt(l.slice(c+10,c+12),16),(m&192)===128&&(E&192)===128&&(b&192)===128)){y=d<<18&1835008|m<<12&258048|E<<6&4032|b&63,y<65536||y>1114111?x+="����":(y-=65536,x+=String.fromCharCode(55296+(y>>10),56320+(y&1023))),c+=9;continue}x+="�"}return x})}return n.defaultChars=";/?:@&=+$,#",n.componentChars="",wT=n,wT}var CT,uR;function L$(){return uR||(uR=1,CT=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}),CT}var _T,cR;function I$(){if(cR)return _T;cR=1;function e(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var t=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,r=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,i=["<",">",'"',"`"," ","\r",`
`,"	"],o=["{","}","|","\\","^","`"].concat(i),l=["'"].concat(o),c=["%","/","?",";","#"].concat(l),p=["/","?","#"],d=255,m=/^[+a-z0-9A-Z_-]{0,63}$/,E=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,b={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function x(w,k){if(w&&w instanceof e)return w;var N=new e;return N.parse(w,k),N}return e.prototype.parse=function(w,k){var N,A,O,_,M,j=w;if(j=j.trim(),!k&&w.split("#").length===1){var P=r.exec(j);if(P)return this.pathname=P[1],P[2]&&(this.search=P[2]),this}var F=t.exec(j);if(F&&(F=F[0],O=F.toLowerCase(),this.protocol=F,j=j.substr(F.length)),(k||F||j.match(/^\/\/[^@\/]+@[^@\/]+/))&&(M=j.substr(0,2)==="//",M&&!(F&&b[F])&&(j=j.substr(2),this.slashes=!0)),!b[F]&&(M||F&&!y[F])){var V=-1;for(N=0;N<p.length;N++)_=j.indexOf(p[N]),_!==-1&&(V===-1||_<V)&&(V=_);var $,K;for(V===-1?K=j.lastIndexOf("@"):K=j.lastIndexOf("@",V),K!==-1&&($=j.slice(0,K),j=j.slice(K+1),this.auth=$),V=-1,N=0;N<c.length;N++)_=j.indexOf(c[N]),_!==-1&&(V===-1||_<V)&&(V=_);V===-1&&(V=j.length),j[V-1]===":"&&V--;var ee=j.slice(0,V);j=j.slice(V),this.parseHost(ee),this.hostname=this.hostname||"";var J=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!J){var W=this.hostname.split(/\./);for(N=0,A=W.length;N<A;N++){var q=W[N];if(q&&!q.match(m)){for(var te="",re=0,ae=q.length;re<ae;re++)q.charCodeAt(re)>127?te+="x":te+=q[re];if(!te.match(m)){var fe=W.slice(0,N),Z=W.slice(N+1),he=q.match(E);he&&(fe.push(he[1]),Z.unshift(he[2])),Z.length&&(j=Z.join(".")+j),this.hostname=fe.join(".");break}}}}this.hostname.length>d&&(this.hostname=""),J&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var se=j.indexOf("#");se!==-1&&(this.hash=j.substr(se),j=j.slice(0,se));var pe=j.indexOf("?");return pe!==-1&&(this.search=j.substr(pe),j=j.slice(0,pe)),j&&(this.pathname=j),y[O]&&this.hostname&&!this.pathname&&(this.pathname=""),this},e.prototype.parseHost=function(w){var k=n.exec(w);k&&(k=k[0],k!==":"&&(this.port=k.substr(1)),w=w.substr(0,w.length-k.length)),w&&(this.hostname=w)},_T=x,_T}var fR;function dR(){return fR||(fR=1,ip.encode=R$(),ip.decode=M$(),ip.format=L$(),ip.parse=I$()),ip}var Rf={},NT,pR;function hR(){return pR||(pR=1,NT=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),NT}var AT,mR;function gR(){return mR||(mR=1,AT=/[\0-\x1F\x7F-\x9F]/),AT}var OT,vR;function F$(){return vR||(vR=1,OT=/[\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]/),OT}var DT,yR;function bR(){return yR||(yR=1,DT=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),DT}var ER;function P$(){return ER||(ER=1,Rf.Any=hR(),Rf.Cc=gR(),Rf.Cf=F$(),Rf.P=TT(),Rf.Z=bR()),Rf}var SR;function Fn(){return SR||(SR=1,function(e){function t(W){return Object.prototype.toString.call(W)}function n(W){return t(W)==="[object String]"}var r=Object.prototype.hasOwnProperty;function i(W,q){return r.call(W,q)}function o(W){var q=Array.prototype.slice.call(arguments,1);return q.forEach(function(te){if(te){if(typeof te!="object")throw new TypeError(te+"must be object");Object.keys(te).forEach(function(re){W[re]=te[re]})}}),W}function l(W,q,te){return[].concat(W.slice(0,q),te,W.slice(q+1))}function c(W){return!(W>=55296&&W<=57343||W>=64976&&W<=65007||(W&65535)===65535||(W&65535)===65534||W>=0&&W<=8||W===11||W>=14&&W<=31||W>=127&&W<=159||W>1114111)}function p(W){if(W>65535){W-=65536;var q=55296+(W>>10),te=56320+(W&1023);return String.fromCharCode(q,te)}return String.fromCharCode(W)}var d=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,m=/&([a-z#][a-z0-9]{1,31});/gi,E=new RegExp(d.source+"|"+m.source,"gi"),b=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,y=oR();function x(W,q){var te=0;return i(y,q)?y[q]:q.charCodeAt(0)===35&&b.test(q)&&(te=q[1].toLowerCase()==="x"?parseInt(q.slice(2),16):parseInt(q.slice(1),10),c(te))?p(te):W}function w(W){return W.indexOf("\\")<0?W:W.replace(d,"$1")}function k(W){return W.indexOf("\\")<0&&W.indexOf("&")<0?W:W.replace(E,function(q,te,re){return te||x(q,re)})}var N=/[&<>"]/,A=/[&<>"]/g,O={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function _(W){return O[W]}function M(W){return N.test(W)?W.replace(A,_):W}var j=/[.?*+^$[\]\\(){}|-]/g;function P(W){return W.replace(j,"\\$&")}function F(W){switch(W){case 9:case 32:return!0}return!1}function V(W){if(W>=8192&&W<=8202)return!0;switch(W){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var $=TT();function K(W){return $.test(W)}function ee(W){switch(W){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function J(W){return W=W.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(W=W.replace(/ẞ/g,"ß")),W.toLowerCase().toUpperCase()}e.lib={},e.lib.mdurl=dR(),e.lib.ucmicro=P$(),e.assign=o,e.isString=n,e.has=i,e.unescapeMd=w,e.unescapeAll=k,e.isValidEntityCode=c,e.fromCodePoint=p,e.escapeHtml=M,e.arrayReplaceAt=l,e.isSpace=F,e.isWhiteSpace=V,e.isMdAsciiPunct=ee,e.isPunctChar=K,e.escapeRE=P,e.normalizeReference=J}(bT)),bT}var Lm={},kT,TR;function j$(){return TR||(TR=1,kT=function(t,n,r){var i,o,l,c,p=-1,d=t.posMax,m=t.pos;for(t.pos=n+1,i=1;t.pos<d;){if(l=t.src.charCodeAt(t.pos),l===93&&(i--,i===0)){o=!0;break}if(c=t.pos,t.md.inline.skipToken(t),l===91){if(c===t.pos-1)i++;else if(r)return t.pos=m,-1}}return o&&(p=t.pos),t.pos=m,p}),kT}var RT,xR;function V$(){if(xR)return RT;xR=1;var e=Fn().unescapeAll;return RT=function(n,r,i){var o,l,c=0,p=r,d={ok:!1,pos:0,lines:0,str:""};if(n.charCodeAt(r)===60){for(r++;r<i;){if(o=n.charCodeAt(r),o===10||o===60)return d;if(o===62)return d.pos=r+1,d.str=e(n.slice(p+1,r)),d.ok=!0,d;if(o===92&&r+1<i){r+=2;continue}r++}return d}for(l=0;r<i&&(o=n.charCodeAt(r),!(o===32||o<32||o===127));){if(o===92&&r+1<i){if(n.charCodeAt(r+1)===32)break;r+=2;continue}if(o===40&&(l++,l>32))return d;if(o===41){if(l===0)break;l--}r++}return p===r||l!==0||(d.str=e(n.slice(p,r)),d.lines=c,d.pos=r,d.ok=!0),d},RT}var MT,wR;function U$(){if(wR)return MT;wR=1;var e=Fn().unescapeAll;return MT=function(n,r,i){var o,l,c=0,p=r,d={ok:!1,pos:0,lines:0,str:""};if(r>=i||(l=n.charCodeAt(r),l!==34&&l!==39&&l!==40))return d;for(r++,l===40&&(l=41);r<i;){if(o=n.charCodeAt(r),o===l)return d.pos=r+1,d.lines=c,d.str=e(n.slice(p+1,r)),d.ok=!0,d;if(o===40&&l===41)return d;o===10?c++:o===92&&r+1<i&&(r++,n.charCodeAt(r)===10&&c++),r++}return d},MT}var CR;function q$(){return CR||(CR=1,Lm.parseLinkLabel=j$(),Lm.parseLinkDestination=V$(),Lm.parseLinkTitle=U$()),Lm}var LT,_R;function B$(){if(_R)return LT;_R=1;var e=Fn().assign,t=Fn().unescapeAll,n=Fn().escapeHtml,r={};r.code_inline=function(o,l,c,p,d){var m=o[l];return"<code"+d.renderAttrs(m)+">"+n(o[l].content)+"</code>"},r.code_block=function(o,l,c,p,d){var m=o[l];return"<pre"+d.renderAttrs(m)+"><code>"+n(o[l].content)+`</code></pre>
`},r.fence=function(o,l,c,p,d){var m=o[l],E=m.info?t(m.info).trim():"",b="",y="",x,w,k,N,A;return E&&(k=E.split(/(\s+)/g),b=k[0],y=k.slice(2).join("")),c.highlight?x=c.highlight(m.content,b,y)||n(m.content):x=n(m.content),x.indexOf("<pre")===0?x+`
`:E?(w=m.attrIndex("class"),N=m.attrs?m.attrs.slice():[],w<0?N.push(["class",c.langPrefix+b]):(N[w]=N[w].slice(),N[w][1]+=" "+c.langPrefix+b),A={attrs:N},"<pre><code"+d.renderAttrs(A)+">"+x+`</code></pre>
`):"<pre><code"+d.renderAttrs(m)+">"+x+`</code></pre>
`},r.image=function(o,l,c,p,d){var m=o[l];return m.attrs[m.attrIndex("alt")][1]=d.renderInlineAsText(m.children,c,p),d.renderToken(o,l,c)},r.hardbreak=function(o,l,c){return c.xhtmlOut?`<br />
`:`<br>
`},r.softbreak=function(o,l,c){return c.breaks?c.xhtmlOut?`<br />
`:`<br>
`:`
`},r.text=function(o,l){return n(o[l].content)},r.html_block=function(o,l){return o[l].content},r.html_inline=function(o,l){return o[l].content};function i(){this.rules=e({},r)}return i.prototype.renderAttrs=function(l){var c,p,d;if(!l.attrs)return"";for(d="",c=0,p=l.attrs.length;c<p;c++)d+=" "+n(l.attrs[c][0])+'="'+n(l.attrs[c][1])+'"';return d},i.prototype.renderToken=function(l,c,p){var d,m="",E=!1,b=l[c];return b.hidden?"":(b.block&&b.nesting!==-1&&c&&l[c-1].hidden&&(m+=`
`),m+=(b.nesting===-1?"</":"<")+b.tag,m+=this.renderAttrs(b),b.nesting===0&&p.xhtmlOut&&(m+=" /"),b.block&&(E=!0,b.nesting===1&&c+1<l.length&&(d=l[c+1],(d.type==="inline"||d.hidden||d.nesting===-1&&d.tag===b.tag)&&(E=!1))),m+=E?`>
`:">",m)},i.prototype.renderInline=function(o,l,c){for(var p,d="",m=this.rules,E=0,b=o.length;E<b;E++)p=o[E].type,typeof m[p]<"u"?d+=m[p](o,E,l,c,this):d+=this.renderToken(o,E,l);return d},i.prototype.renderInlineAsText=function(o,l,c){for(var p="",d=0,m=o.length;d<m;d++)o[d].type==="text"?p+=o[d].content:o[d].type==="image"?p+=this.renderInlineAsText(o[d].children,l,c):o[d].type==="softbreak"&&(p+=`
`);return p},i.prototype.render=function(o,l,c){var p,d,m,E="",b=this.rules;for(p=0,d=o.length;p<d;p++)m=o[p].type,m==="inline"?E+=this.renderInline(o[p].children,l,c):typeof b[m]<"u"?E+=b[o[p].type](o,p,l,c,this):E+=this.renderToken(o,p,l,c);return E},LT=i,LT}var IT,NR;function FT(){if(NR)return IT;NR=1;function e(){this.__rules__=[],this.__cache__=null}return e.prototype.__find__=function(t){for(var n=0;n<this.__rules__.length;n++)if(this.__rules__[n].name===t)return n;return-1},e.prototype.__compile__=function(){var t=this,n=[""];t.__rules__.forEach(function(r){r.enabled&&r.alt.forEach(function(i){n.indexOf(i)<0&&n.push(i)})}),t.__cache__={},n.forEach(function(r){t.__cache__[r]=[],t.__rules__.forEach(function(i){i.enabled&&(r&&i.alt.indexOf(r)<0||t.__cache__[r].push(i.fn))})})},e.prototype.at=function(t,n,r){var i=this.__find__(t),o=r||{};if(i===-1)throw new Error("Parser rule not found: "+t);this.__rules__[i].fn=n,this.__rules__[i].alt=o.alt||[],this.__cache__=null},e.prototype.before=function(t,n,r,i){var o=this.__find__(t),l=i||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(o,0,{name:n,enabled:!0,fn:r,alt:l.alt||[]}),this.__cache__=null},e.prototype.after=function(t,n,r,i){var o=this.__find__(t),l=i||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(o+1,0,{name:n,enabled:!0,fn:r,alt:l.alt||[]}),this.__cache__=null},e.prototype.push=function(t,n,r){var i=r||{};this.__rules__.push({name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null},e.prototype.enable=function(t,n){Array.isArray(t)||(t=[t]);var r=[];return t.forEach(function(i){var o=this.__find__(i);if(o<0){if(n)return;throw new Error("Rules manager: invalid rule name "+i)}this.__rules__[o].enabled=!0,r.push(i)},this),this.__cache__=null,r},e.prototype.enableOnly=function(t,n){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(r){r.enabled=!1}),this.enable(t,n)},e.prototype.disable=function(t,n){Array.isArray(t)||(t=[t]);var r=[];return t.forEach(function(i){var o=this.__find__(i);if(o<0){if(n)return;throw new Error("Rules manager: invalid rule name "+i)}this.__rules__[o].enabled=!1,r.push(i)},this),this.__cache__=null,r},e.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]},IT=e,IT}var PT,AR;function $$(){if(AR)return PT;AR=1;var e=/\r\n?|\n/g,t=/\0/g;return PT=function(r){var i;i=r.src.replace(e,`
`),i=i.replace(t,"�"),r.src=i},PT}var jT,OR;function z$(){return OR||(OR=1,jT=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)}),jT}var VT,DR;function H$(){return DR||(DR=1,VT=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)}),VT}var UT,kR;function G$(){if(kR)return UT;kR=1;var e=Fn().arrayReplaceAt;function t(r){return/^<a[>\s]/i.test(r)}function n(r){return/^<\/a\s*>/i.test(r)}return UT=function(i){var o,l,c,p,d,m,E,b,y,x,w,k,N,A,O,_,M=i.tokens,j;if(i.md.options.linkify){for(l=0,c=M.length;l<c;l++)if(!(M[l].type!=="inline"||!i.md.linkify.pretest(M[l].content)))for(p=M[l].children,N=0,o=p.length-1;o>=0;o--){if(m=p[o],m.type==="link_close"){for(o--;p[o].level!==m.level&&p[o].type!=="link_open";)o--;continue}if(m.type==="html_inline"&&(t(m.content)&&N>0&&N--,n(m.content)&&N++),!(N>0)&&m.type==="text"&&i.md.linkify.test(m.content)){for(y=m.content,j=i.md.linkify.match(y),E=[],k=m.level,w=0,b=0;b<j.length;b++)A=j[b].url,O=i.md.normalizeLink(A),i.md.validateLink(O)&&(_=j[b].text,j[b].schema?j[b].schema==="mailto:"&&!/^mailto:/i.test(_)?_=i.md.normalizeLinkText("mailto:"+_).replace(/^mailto:/,""):_=i.md.normalizeLinkText(_):_=i.md.normalizeLinkText("http://"+_).replace(/^http:\/\//,""),x=j[b].index,x>w&&(d=new i.Token("text","",0),d.content=y.slice(w,x),d.level=k,E.push(d)),d=new i.Token("link_open","a",1),d.attrs=[["href",O]],d.level=k++,d.markup="linkify",d.info="auto",E.push(d),d=new i.Token("text","",0),d.content=_,d.level=k,E.push(d),d=new i.Token("link_close","a",-1),d.level=--k,d.markup="linkify",d.info="auto",E.push(d),w=j[b].lastIndex);w<y.length&&(d=new i.Token("text","",0),d.content=y.slice(w),d.level=k,E.push(d)),M[l].children=p=e(p,o,E)}}}},UT}var qT,RR;function Y$(){if(RR)return qT;RR=1;var e=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,t=/\((c|tm|r|p)\)/i,n=/\((c|tm|r|p)\)/ig,r={c:"©",r:"®",p:"§",tm:"™"};function i(c,p){return r[p.toLowerCase()]}function o(c){var p,d,m=0;for(p=c.length-1;p>=0;p--)d=c[p],d.type==="text"&&!m&&(d.content=d.content.replace(n,i)),d.type==="link_open"&&d.info==="auto"&&m--,d.type==="link_close"&&d.info==="auto"&&m++}function l(c){var p,d,m=0;for(p=c.length-1;p>=0;p--)d=c[p],d.type==="text"&&!m&&e.test(d.content)&&(d.content=d.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–")),d.type==="link_open"&&d.info==="auto"&&m--,d.type==="link_close"&&d.info==="auto"&&m++}return qT=function(p){var d;if(p.md.options.typographer)for(d=p.tokens.length-1;d>=0;d--)p.tokens[d].type==="inline"&&(t.test(p.tokens[d].content)&&o(p.tokens[d].children),e.test(p.tokens[d].content)&&l(p.tokens[d].children))},qT}var BT,MR;function W$(){if(MR)return BT;MR=1;var e=Fn().isWhiteSpace,t=Fn().isPunctChar,n=Fn().isMdAsciiPunct,r=/['"]/,i=/['"]/g,o="’";function l(p,d,m){return p.substr(0,d)+m+p.substr(d+1)}function c(p,d){var m,E,b,y,x,w,k,N,A,O,_,M,j,P,F,V,$,K,ee,J,W;for(ee=[],m=0;m<p.length;m++){for(E=p[m],k=p[m].level,$=ee.length-1;$>=0&&!(ee[$].level<=k);$--);if(ee.length=$+1,E.type==="text"){b=E.content,x=0,w=b.length;e:for(;x<w&&(i.lastIndex=x,y=i.exec(b),!!y);){if(F=V=!0,x=y.index+1,K=y[0]==="'",A=32,y.index-1>=0)A=b.charCodeAt(y.index-1);else for($=m-1;$>=0&&!(p[$].type==="softbreak"||p[$].type==="hardbreak");$--)if(p[$].content){A=p[$].content.charCodeAt(p[$].content.length-1);break}if(O=32,x<w)O=b.charCodeAt(x);else for($=m+1;$<p.length&&!(p[$].type==="softbreak"||p[$].type==="hardbreak");$++)if(p[$].content){O=p[$].content.charCodeAt(0);break}if(_=n(A)||t(String.fromCharCode(A)),M=n(O)||t(String.fromCharCode(O)),j=e(A),P=e(O),P?F=!1:M&&(j||_||(F=!1)),j?V=!1:_&&(P||M||(V=!1)),O===34&&y[0]==='"'&&A>=48&&A<=57&&(V=F=!1),F&&V&&(F=_,V=M),!F&&!V){K&&(E.content=l(E.content,y.index,o));continue}if(V){for($=ee.length-1;$>=0&&(N=ee[$],!(ee[$].level<k));$--)if(N.single===K&&ee[$].level===k){N=ee[$],K?(J=d.md.options.quotes[2],W=d.md.options.quotes[3]):(J=d.md.options.quotes[0],W=d.md.options.quotes[1]),E.content=l(E.content,y.index,W),p[N.token].content=l(p[N.token].content,N.pos,J),x+=W.length-1,N.token===m&&(x+=J.length-1),b=E.content,w=b.length,ee.length=$;continue e}}F?ee.push({token:m,pos:y.index,single:K,level:k}):V&&K&&(E.content=l(E.content,y.index,o))}}}}return BT=function(d){var m;if(d.md.options.typographer)for(m=d.tokens.length-1;m>=0;m--)d.tokens[m].type!=="inline"||!r.test(d.tokens[m].content)||c(d.tokens[m].children,d)},BT}var $T,LR;function zT(){if(LR)return $T;LR=1;function e(t,n,r){this.type=t,this.tag=n,this.attrs=null,this.map=null,this.nesting=r,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}return e.prototype.attrIndex=function(n){var r,i,o;if(!this.attrs)return-1;for(r=this.attrs,i=0,o=r.length;i<o;i++)if(r[i][0]===n)return i;return-1},e.prototype.attrPush=function(n){this.attrs?this.attrs.push(n):this.attrs=[n]},e.prototype.attrSet=function(n,r){var i=this.attrIndex(n),o=[n,r];i<0?this.attrPush(o):this.attrs[i]=o},e.prototype.attrGet=function(n){var r=this.attrIndex(n),i=null;return r>=0&&(i=this.attrs[r][1]),i},e.prototype.attrJoin=function(n,r){var i=this.attrIndex(n);i<0?this.attrPush([n,r]):this.attrs[i][1]=this.attrs[i][1]+" "+r},$T=e,$T}var HT,IR;function Q$(){if(IR)return HT;IR=1;var e=zT();function t(n,r,i){this.src=n,this.env=i,this.tokens=[],this.inlineMode=!1,this.md=r}return t.prototype.Token=e,HT=t,HT}var GT,FR;function K$(){if(FR)return GT;FR=1;var e=FT(),t=[["normalize",$$()],["block",z$()],["inline",H$()],["linkify",G$()],["replacements",Y$()],["smartquotes",W$()]];function n(){this.ruler=new e;for(var r=0;r<t.length;r++)this.ruler.push(t[r][0],t[r][1])}return n.prototype.process=function(r){var i,o,l;for(l=this.ruler.getRules(""),i=0,o=l.length;i<o;i++)l[i](r)},n.prototype.State=Q$(),GT=n,GT}var YT,PR;function X$(){if(PR)return YT;PR=1;var e=Fn().isSpace;function t(r,i){var o=r.bMarks[i]+r.tShift[i],l=r.eMarks[i];return r.src.substr(o,l-o)}function n(r){var i=[],o=0,l=r.length,c,p=!1,d=0,m="";for(c=r.charCodeAt(o);o<l;)c===124&&(p?(m+=r.substring(d,o-1),d=o):(i.push(m+r.substring(d,o)),m="",d=o+1)),p=c===92,o++,c=r.charCodeAt(o);return i.push(m+r.substring(d)),i}return YT=function(i,o,l,c){var p,d,m,E,b,y,x,w,k,N,A,O,_,M,j,P,F,V;if(o+2>l||(y=o+1,i.sCount[y]<i.blkIndent)||i.sCount[y]-i.blkIndent>=4||(m=i.bMarks[y]+i.tShift[y],m>=i.eMarks[y])||(F=i.src.charCodeAt(m++),F!==124&&F!==45&&F!==58)||m>=i.eMarks[y]||(V=i.src.charCodeAt(m++),V!==124&&V!==45&&V!==58&&!e(V))||F===45&&e(V))return!1;for(;m<i.eMarks[y];){if(p=i.src.charCodeAt(m),p!==124&&p!==45&&p!==58&&!e(p))return!1;m++}for(d=t(i,o+1),x=d.split("|"),N=[],E=0;E<x.length;E++){if(A=x[E].trim(),!A){if(E===0||E===x.length-1)continue;return!1}if(!/^:?-+:?$/.test(A))return!1;A.charCodeAt(A.length-1)===58?N.push(A.charCodeAt(0)===58?"center":"right"):A.charCodeAt(0)===58?N.push("left"):N.push("")}if(d=t(i,o).trim(),d.indexOf("|")===-1||i.sCount[o]-i.blkIndent>=4||(x=n(d),x.length&&x[0]===""&&x.shift(),x.length&&x[x.length-1]===""&&x.pop(),w=x.length,w===0||w!==N.length))return!1;if(c)return!0;for(M=i.parentType,i.parentType="table",P=i.md.block.ruler.getRules("blockquote"),k=i.push("table_open","table",1),k.map=O=[o,0],k=i.push("thead_open","thead",1),k.map=[o,o+1],k=i.push("tr_open","tr",1),k.map=[o,o+1],E=0;E<x.length;E++)k=i.push("th_open","th",1),N[E]&&(k.attrs=[["style","text-align:"+N[E]]]),k=i.push("inline","",0),k.content=x[E].trim(),k.children=[],k=i.push("th_close","th",-1);for(k=i.push("tr_close","tr",-1),k=i.push("thead_close","thead",-1),y=o+2;y<l&&!(i.sCount[y]<i.blkIndent);y++){for(j=!1,E=0,b=P.length;E<b;E++)if(P[E](i,y,l,!0)){j=!0;break}if(j||(d=t(i,y).trim(),!d)||i.sCount[y]-i.blkIndent>=4)break;for(x=n(d),x.length&&x[0]===""&&x.shift(),x.length&&x[x.length-1]===""&&x.pop(),y===o+2&&(k=i.push("tbody_open","tbody",1),k.map=_=[o+2,0]),k=i.push("tr_open","tr",1),k.map=[y,y+1],E=0;E<w;E++)k=i.push("td_open","td",1),N[E]&&(k.attrs=[["style","text-align:"+N[E]]]),k=i.push("inline","",0),k.content=x[E]?x[E].trim():"",k.children=[],k=i.push("td_close","td",-1);k=i.push("tr_close","tr",-1)}return _&&(k=i.push("tbody_close","tbody",-1),_[1]=y),k=i.push("table_close","table",-1),O[1]=y,i.parentType=M,i.line=y,!0},YT}var WT,jR;function Z$(){return jR||(jR=1,WT=function(t,n,r){var i,o,l;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,l=t.push("code_block","code",0),l.content=t.getLines(n,o,4+t.blkIndent,!1)+`
`,l.map=[n,t.line],!0}),WT}var QT,VR;function J$(){return VR||(VR=1,QT=function(t,n,r,i){var o,l,c,p,d,m,E,b=!1,y=t.bMarks[n]+t.tShift[n],x=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||y+3>x||(o=t.src.charCodeAt(y),o!==126&&o!==96)||(d=y,y=t.skipChars(y,o),l=y-d,l<3)||(E=t.src.slice(d,y),c=t.src.slice(y,x),o===96&&c.indexOf(String.fromCharCode(o))>=0))return!1;if(i)return!0;for(p=n;p++,!(p>=r||(y=d=t.bMarks[p]+t.tShift[p],x=t.eMarks[p],y<x&&t.sCount[p]<t.blkIndent));)if(t.src.charCodeAt(y)===o&&!(t.sCount[p]-t.blkIndent>=4)&&(y=t.skipChars(y,o),!(y-d<l)&&(y=t.skipSpaces(y),!(y<x)))){b=!0;break}return l=t.sCount[n],t.line=p+(b?1:0),m=t.push("fence","code",0),m.info=c,m.content=t.getLines(n+1,p,l,!0),m.markup=E,m.map=[n,t.line],!0}),QT}var KT,UR;function ez(){if(UR)return KT;UR=1;var e=Fn().isSpace;return KT=function(n,r,i,o){var l,c,p,d,m,E,b,y,x,w,k,N,A,O,_,M,j,P,F,V,$=n.lineMax,K=n.bMarks[r]+n.tShift[r],ee=n.eMarks[r];if(n.sCount[r]-n.blkIndent>=4||n.src.charCodeAt(K++)!==62)return!1;if(o)return!0;for(d=x=n.sCount[r]+1,n.src.charCodeAt(K)===32?(K++,d++,x++,l=!1,M=!0):n.src.charCodeAt(K)===9?(M=!0,(n.bsCount[r]+x)%4===3?(K++,d++,x++,l=!1):l=!0):M=!1,w=[n.bMarks[r]],n.bMarks[r]=K;K<ee&&(c=n.src.charCodeAt(K),e(c));){c===9?x+=4-(x+n.bsCount[r]+(l?1:0))%4:x++;K++}for(k=[n.bsCount[r]],n.bsCount[r]=n.sCount[r]+1+(M?1:0),E=K>=ee,O=[n.sCount[r]],n.sCount[r]=x-d,_=[n.tShift[r]],n.tShift[r]=K-n.bMarks[r],P=n.md.block.ruler.getRules("blockquote"),A=n.parentType,n.parentType="blockquote",y=r+1;y<i&&(V=n.sCount[y]<n.blkIndent,K=n.bMarks[y]+n.tShift[y],ee=n.eMarks[y],!(K>=ee));y++){if(n.src.charCodeAt(K++)===62&&!V){for(d=x=n.sCount[y]+1,n.src.charCodeAt(K)===32?(K++,d++,x++,l=!1,M=!0):n.src.charCodeAt(K)===9?(M=!0,(n.bsCount[y]+x)%4===3?(K++,d++,x++,l=!1):l=!0):M=!1,w.push(n.bMarks[y]),n.bMarks[y]=K;K<ee&&(c=n.src.charCodeAt(K),e(c));){c===9?x+=4-(x+n.bsCount[y]+(l?1:0))%4:x++;K++}E=K>=ee,k.push(n.bsCount[y]),n.bsCount[y]=n.sCount[y]+1+(M?1:0),O.push(n.sCount[y]),n.sCount[y]=x-d,_.push(n.tShift[y]),n.tShift[y]=K-n.bMarks[y];continue}if(E)break;for(j=!1,p=0,m=P.length;p<m;p++)if(P[p](n,y,i,!0)){j=!0;break}if(j){n.lineMax=y,n.blkIndent!==0&&(w.push(n.bMarks[y]),k.push(n.bsCount[y]),_.push(n.tShift[y]),O.push(n.sCount[y]),n.sCount[y]-=n.blkIndent);break}w.push(n.bMarks[y]),k.push(n.bsCount[y]),_.push(n.tShift[y]),O.push(n.sCount[y]),n.sCount[y]=-1}for(N=n.blkIndent,n.blkIndent=0,F=n.push("blockquote_open","blockquote",1),F.markup=">",F.map=b=[r,0],n.md.block.tokenize(n,r,y),F=n.push("blockquote_close","blockquote",-1),F.markup=">",n.lineMax=$,n.parentType=A,b[1]=n.line,p=0;p<_.length;p++)n.bMarks[p+r]=w[p],n.tShift[p+r]=_[p],n.sCount[p+r]=O[p],n.bsCount[p+r]=k[p];return n.blkIndent=N,!0},KT}var XT,qR;function tz(){if(qR)return XT;qR=1;var e=Fn().isSpace;return XT=function(n,r,i,o){var l,c,p,d,m=n.bMarks[r]+n.tShift[r],E=n.eMarks[r];if(n.sCount[r]-n.blkIndent>=4||(l=n.src.charCodeAt(m++),l!==42&&l!==45&&l!==95))return!1;for(c=1;m<E;){if(p=n.src.charCodeAt(m++),p!==l&&!e(p))return!1;p===l&&c++}return c<3?!1:(o||(n.line=r+1,d=n.push("hr","hr",0),d.map=[r,n.line],d.markup=Array(c+1).join(String.fromCharCode(l))),!0)},XT}var ZT,BR;function nz(){if(BR)return ZT;BR=1;var e=Fn().isSpace;function t(i,o){var l,c,p,d;return c=i.bMarks[o]+i.tShift[o],p=i.eMarks[o],l=i.src.charCodeAt(c++),l!==42&&l!==45&&l!==43||c<p&&(d=i.src.charCodeAt(c),!e(d))?-1:c}function n(i,o){var l,c=i.bMarks[o]+i.tShift[o],p=c,d=i.eMarks[o];if(p+1>=d||(l=i.src.charCodeAt(p++),l<48||l>57))return-1;for(;;){if(p>=d)return-1;if(l=i.src.charCodeAt(p++),l>=48&&l<=57){if(p-c>=10)return-1;continue}if(l===41||l===46)break;return-1}return p<d&&(l=i.src.charCodeAt(p),!e(l))?-1:p}function r(i,o){var l,c,p=i.level+2;for(l=o+2,c=i.tokens.length-2;l<c;l++)i.tokens[l].level===p&&i.tokens[l].type==="paragraph_open"&&(i.tokens[l+2].hidden=!0,i.tokens[l].hidden=!0,l+=2)}return ZT=function(o,l,c,p){var d,m,E,b,y,x,w,k,N,A,O,_,M,j,P,F,V,$,K,ee,J,W,q,te,re,ae,fe,Z,he=!1,se=!0;if(o.sCount[l]-o.blkIndent>=4||o.listIndent>=0&&o.sCount[l]-o.listIndent>=4&&o.sCount[l]<o.blkIndent)return!1;if(p&&o.parentType==="paragraph"&&o.sCount[l]>=o.blkIndent&&(he=!0),(q=n(o,l))>=0){if(w=!0,re=o.bMarks[l]+o.tShift[l],M=Number(o.src.slice(re,q-1)),he&&M!==1)return!1}else if((q=t(o,l))>=0)w=!1;else return!1;if(he&&o.skipSpaces(q)>=o.eMarks[l])return!1;if(_=o.src.charCodeAt(q-1),p)return!0;for(O=o.tokens.length,w?(Z=o.push("ordered_list_open","ol",1),M!==1&&(Z.attrs=[["start",M]])):Z=o.push("bullet_list_open","ul",1),Z.map=A=[l,0],Z.markup=String.fromCharCode(_),P=l,te=!1,fe=o.md.block.ruler.getRules("list"),$=o.parentType,o.parentType="list";P<c;){for(W=q,j=o.eMarks[P],x=F=o.sCount[P]+q-(o.bMarks[l]+o.tShift[l]);W<j;){if(d=o.src.charCodeAt(W),d===9)F+=4-(F+o.bsCount[P])%4;else if(d===32)F++;else break;W++}if(m=W,m>=j?y=1:y=F-x,y>4&&(y=1),b=x+y,Z=o.push("list_item_open","li",1),Z.markup=String.fromCharCode(_),Z.map=k=[l,0],w&&(Z.info=o.src.slice(re,q-1)),J=o.tight,ee=o.tShift[l],K=o.sCount[l],V=o.listIndent,o.listIndent=o.blkIndent,o.blkIndent=b,o.tight=!0,o.tShift[l]=m-o.bMarks[l],o.sCount[l]=F,m>=j&&o.isEmpty(l+1)?o.line=Math.min(o.line+2,c):o.md.block.tokenize(o,l,c,!0),(!o.tight||te)&&(se=!1),te=o.line-l>1&&o.isEmpty(o.line-1),o.blkIndent=o.listIndent,o.listIndent=V,o.tShift[l]=ee,o.sCount[l]=K,o.tight=J,Z=o.push("list_item_close","li",-1),Z.markup=String.fromCharCode(_),P=l=o.line,k[1]=P,m=o.bMarks[l],P>=c||o.sCount[P]<o.blkIndent||o.sCount[l]-o.blkIndent>=4)break;for(ae=!1,E=0,N=fe.length;E<N;E++)if(fe[E](o,P,c,!0)){ae=!0;break}if(ae)break;if(w){if(q=n(o,P),q<0)break;re=o.bMarks[P]+o.tShift[P]}else if(q=t(o,P),q<0)break;if(_!==o.src.charCodeAt(q-1))break}return w?Z=o.push("ordered_list_close","ol",-1):Z=o.push("bullet_list_close","ul",-1),Z.markup=String.fromCharCode(_),A[1]=P,o.line=P,o.parentType=$,se&&r(o,O),!0},ZT}var JT,$R;function rz(){if($R)return JT;$R=1;var e=Fn().normalizeReference,t=Fn().isSpace;return JT=function(r,i,o,l){var c,p,d,m,E,b,y,x,w,k,N,A,O,_,M,j,P=0,F=r.bMarks[i]+r.tShift[i],V=r.eMarks[i],$=i+1;if(r.sCount[i]-r.blkIndent>=4||r.src.charCodeAt(F)!==91)return!1;for(;++F<V;)if(r.src.charCodeAt(F)===93&&r.src.charCodeAt(F-1)!==92){if(F+1===V||r.src.charCodeAt(F+1)!==58)return!1;break}for(m=r.lineMax,M=r.md.block.ruler.getRules("reference"),k=r.parentType,r.parentType="reference";$<m&&!r.isEmpty($);$++)if(!(r.sCount[$]-r.blkIndent>3)&&!(r.sCount[$]<0)){for(_=!1,b=0,y=M.length;b<y;b++)if(M[b](r,$,m,!0)){_=!0;break}if(_)break}for(O=r.getLines(i,$,r.blkIndent,!1).trim(),V=O.length,F=1;F<V;F++){if(c=O.charCodeAt(F),c===91)return!1;if(c===93){w=F;break}else c===10?P++:c===92&&(F++,F<V&&O.charCodeAt(F)===10&&P++)}if(w<0||O.charCodeAt(w+1)!==58)return!1;for(F=w+2;F<V;F++)if(c=O.charCodeAt(F),c===10)P++;else if(!t(c))break;if(N=r.md.helpers.parseLinkDestination(O,F,V),!N.ok||(E=r.md.normalizeLink(N.str),!r.md.validateLink(E)))return!1;for(F=N.pos,P+=N.lines,p=F,d=P,A=F;F<V;F++)if(c=O.charCodeAt(F),c===10)P++;else if(!t(c))break;for(N=r.md.helpers.parseLinkTitle(O,F,V),F<V&&A!==F&&N.ok?(j=N.str,F=N.pos,P+=N.lines):(j="",F=p,P=d);F<V&&(c=O.charCodeAt(F),!!t(c));)F++;if(F<V&&O.charCodeAt(F)!==10&&j)for(j="",F=p,P=d;F<V&&(c=O.charCodeAt(F),!!t(c));)F++;return F<V&&O.charCodeAt(F)!==10||(x=e(O.slice(1,w)),!x)?!1:(l||(typeof r.env.references>"u"&&(r.env.references={}),typeof r.env.references[x]>"u"&&(r.env.references[x]={title:j,href:E}),r.parentType=k,r.line=i+P+1),!0)},JT}var ex,zR;function iz(){return zR||(zR=1,ex=["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"]),ex}var x0={},HR;function GR(){if(HR)return x0;HR=1;var e="[a-zA-Z_:][a-zA-Z0-9:._-]*",t="[^\"'=<>`\\x00-\\x20]+",n="'[^']*'",r='"[^"]*"',i="(?:"+t+"|"+n+"|"+r+")",o="(?:\\s+"+e+"(?:\\s*=\\s*"+i+")?)",l="<[A-Za-z][A-Za-z0-9\\-]*"+o+"*\\s*\\/?>",c="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",p="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",d="<[?][\\s\\S]*?[?]>",m="<![A-Z]+\\s+[^>]*>",E="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",b=new RegExp("^(?:"+l+"|"+c+"|"+p+"|"+d+"|"+m+"|"+E+")"),y=new RegExp("^(?:"+l+"|"+c+")");return x0.HTML_TAG_RE=b,x0.HTML_OPEN_CLOSE_TAG_RE=y,x0}var tx,YR;function oz(){if(YR)return tx;YR=1;var e=iz(),t=GR().HTML_OPEN_CLOSE_TAG_RE,n=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+e.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(t.source+"\\s*$"),/^$/,!1]];return tx=function(i,o,l,c){var p,d,m,E,b=i.bMarks[o]+i.tShift[o],y=i.eMarks[o];if(i.sCount[o]-i.blkIndent>=4||!i.md.options.html||i.src.charCodeAt(b)!==60)return!1;for(E=i.src.slice(b,y),p=0;p<n.length&&!n[p][0].test(E);p++);if(p===n.length)return!1;if(c)return n[p][2];if(d=o+1,!n[p][1].test(E)){for(;d<l&&!(i.sCount[d]<i.blkIndent);d++)if(b=i.bMarks[d]+i.tShift[d],y=i.eMarks[d],E=i.src.slice(b,y),n[p][1].test(E)){E.length!==0&&d++;break}}return i.line=d,m=i.push("html_block","",0),m.map=[o,d],m.content=i.getLines(o,d,i.blkIndent,!0),!0},tx}var nx,WR;function az(){if(WR)return nx;WR=1;var e=Fn().isSpace;return nx=function(n,r,i,o){var l,c,p,d,m=n.bMarks[r]+n.tShift[r],E=n.eMarks[r];if(n.sCount[r]-n.blkIndent>=4||(l=n.src.charCodeAt(m),l!==35||m>=E))return!1;for(c=1,l=n.src.charCodeAt(++m);l===35&&m<E&&c<=6;)c++,l=n.src.charCodeAt(++m);return c>6||m<E&&!e(l)?!1:(o||(E=n.skipSpacesBack(E,m),p=n.skipCharsBack(E,35,m),p>m&&e(n.src.charCodeAt(p-1))&&(E=p),n.line=r+1,d=n.push("heading_open","h"+String(c),1),d.markup="########".slice(0,c),d.map=[r,n.line],d=n.push("inline","",0),d.content=n.src.slice(m,E).trim(),d.map=[r,n.line],d.children=[],d=n.push("heading_close","h"+String(c),-1),d.markup="########".slice(0,c)),!0)},nx}var rx,QR;function sz(){return QR||(QR=1,rx=function(t,n,r){var i,o,l,c,p,d,m,E,b,y=n+1,x,w=t.md.block.ruler.getRules("paragraph");if(t.sCount[n]-t.blkIndent>=4)return!1;for(x=t.parentType,t.parentType="paragraph";y<r&&!t.isEmpty(y);y++)if(!(t.sCount[y]-t.blkIndent>3)){if(t.sCount[y]>=t.blkIndent&&(d=t.bMarks[y]+t.tShift[y],m=t.eMarks[y],d<m&&(b=t.src.charCodeAt(d),(b===45||b===61)&&(d=t.skipChars(d,b),d=t.skipSpaces(d),d>=m)))){E=b===61?1:2;break}if(!(t.sCount[y]<0)){for(o=!1,l=0,c=w.length;l<c;l++)if(w[l](t,y,r,!0)){o=!0;break}if(o)break}}return E?(i=t.getLines(n,y,t.blkIndent,!1).trim(),t.line=y+1,p=t.push("heading_open","h"+String(E),1),p.markup=String.fromCharCode(b),p.map=[n,t.line],p=t.push("inline","",0),p.content=i,p.map=[n,t.line-1],p.children=[],p=t.push("heading_close","h"+String(E),-1),p.markup=String.fromCharCode(b),t.parentType=x,!0):!1}),rx}var ix,KR;function lz(){return KR||(KR=1,ix=function(t,n){var r,i,o,l,c,p,d=n+1,m=t.md.block.ruler.getRules("paragraph"),E=t.lineMax;for(p=t.parentType,t.parentType="paragraph";d<E&&!t.isEmpty(d);d++)if(!(t.sCount[d]-t.blkIndent>3)&&!(t.sCount[d]<0)){for(i=!1,o=0,l=m.length;o<l;o++)if(m[o](t,d,E,!0)){i=!0;break}if(i)break}return r=t.getLines(n,d,t.blkIndent,!1).trim(),t.line=d,c=t.push("paragraph_open","p",1),c.map=[n,t.line],c=t.push("inline","",0),c.content=r,c.map=[n,t.line],c.children=[],c=t.push("paragraph_close","p",-1),t.parentType=p,!0}),ix}var ox,XR;function uz(){if(XR)return ox;XR=1;var e=zT(),t=Fn().isSpace;function n(r,i,o,l){var c,p,d,m,E,b,y,x;for(this.src=r,this.md=i,this.env=o,this.tokens=l,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="",p=this.src,x=!1,d=m=b=y=0,E=p.length;m<E;m++){if(c=p.charCodeAt(m),!x)if(t(c)){b++,c===9?y+=4-y%4:y++;continue}else x=!0;(c===10||m===E-1)&&(c!==10&&m++,this.bMarks.push(d),this.eMarks.push(m),this.tShift.push(b),this.sCount.push(y),this.bsCount.push(0),x=!1,b=0,y=0,d=m+1)}this.bMarks.push(p.length),this.eMarks.push(p.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}return n.prototype.push=function(r,i,o){var l=new e(r,i,o);return l.block=!0,o<0&&this.level--,l.level=this.level,o>0&&this.level++,this.tokens.push(l),l},n.prototype.isEmpty=function(i){return this.bMarks[i]+this.tShift[i]>=this.eMarks[i]},n.prototype.skipEmptyLines=function(i){for(var o=this.lineMax;i<o&&!(this.bMarks[i]+this.tShift[i]<this.eMarks[i]);i++);return i},n.prototype.skipSpaces=function(i){for(var o,l=this.src.length;i<l&&(o=this.src.charCodeAt(i),!!t(o));i++);return i},n.prototype.skipSpacesBack=function(i,o){if(i<=o)return i;for(;i>o;)if(!t(this.src.charCodeAt(--i)))return i+1;return i},n.prototype.skipChars=function(i,o){for(var l=this.src.length;i<l&&this.src.charCodeAt(i)===o;i++);return i},n.prototype.skipCharsBack=function(i,o,l){if(i<=l)return i;for(;i>l;)if(o!==this.src.charCodeAt(--i))return i+1;return i},n.prototype.getLines=function(i,o,l,c){var p,d,m,E,b,y,x,w=i;if(i>=o)return"";for(y=new Array(o-i),p=0;w<o;w++,p++){for(d=0,x=E=this.bMarks[w],w+1<o||c?b=this.eMarks[w]+1:b=this.eMarks[w];E<b&&d<l;){if(m=this.src.charCodeAt(E),t(m))m===9?d+=4-(d+this.bsCount[w])%4:d++;else if(E-x<this.tShift[w])d++;else break;E++}d>l?y[p]=new Array(d-l+1).join(" ")+this.src.slice(E,b):y[p]=this.src.slice(E,b)}return y.join("")},n.prototype.Token=e,ox=n,ox}var ax,ZR;function cz(){if(ZR)return ax;ZR=1;var e=FT(),t=[["table",X$(),["paragraph","reference"]],["code",Z$()],["fence",J$(),["paragraph","reference","blockquote","list"]],["blockquote",ez(),["paragraph","reference","blockquote","list"]],["hr",tz(),["paragraph","reference","blockquote","list"]],["list",nz(),["paragraph","reference","blockquote"]],["reference",rz()],["html_block",oz(),["paragraph","reference","blockquote"]],["heading",az(),["paragraph","reference","blockquote"]],["lheading",sz()],["paragraph",lz()]];function n(){this.ruler=new e;for(var r=0;r<t.length;r++)this.ruler.push(t[r][0],t[r][1],{alt:(t[r][2]||[]).slice()})}return n.prototype.tokenize=function(r,i,o){for(var l,c,p=this.ruler.getRules(""),d=p.length,m=i,E=!1,b=r.md.options.maxNesting;m<o&&(r.line=m=r.skipEmptyLines(m),!(m>=o||r.sCount[m]<r.blkIndent));){if(r.level>=b){r.line=o;break}for(c=0;c<d&&(l=p[c](r,m,o,!1),!l);c++);r.tight=!E,r.isEmpty(r.line-1)&&(E=!0),m=r.line,m<o&&r.isEmpty(m)&&(E=!0,m++,r.line=m)}},n.prototype.parse=function(r,i,o,l){var c;r&&(c=new this.State(r,i,o,l),this.tokenize(c,c.line,c.lineMax))},n.prototype.State=uz(),ax=n,ax}var sx,JR;function fz(){if(JR)return sx;JR=1;function e(t){switch(t){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}}return sx=function(n,r){for(var i=n.pos;i<n.posMax&&!e(n.src.charCodeAt(i));)i++;return i===n.pos?!1:(r||(n.pending+=n.src.slice(n.pos,i)),n.pos=i,!0)},sx}var lx,eM;function dz(){if(eM)return lx;eM=1;var e=Fn().isSpace;return lx=function(n,r){var i,o,l,c=n.pos;if(n.src.charCodeAt(c)!==10)return!1;if(i=n.pending.length-1,o=n.posMax,!r)if(i>=0&&n.pending.charCodeAt(i)===32)if(i>=1&&n.pending.charCodeAt(i-1)===32){for(l=i-1;l>=1&&n.pending.charCodeAt(l-1)===32;)l--;n.pending=n.pending.slice(0,l),n.push("hardbreak","br",0)}else n.pending=n.pending.slice(0,-1),n.push("softbreak","br",0);else n.push("softbreak","br",0);for(c++;c<o&&e(n.src.charCodeAt(c));)c++;return n.pos=c,!0},lx}var ux,tM;function pz(){if(tM)return ux;tM=1;for(var e=Fn().isSpace,t=[],n=0;n<256;n++)t.push(0);return"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(r){t[r.charCodeAt(0)]=1}),ux=function(i,o){var l,c=i.pos,p=i.posMax;if(i.src.charCodeAt(c)!==92)return!1;if(c++,c<p){if(l=i.src.charCodeAt(c),l<256&&t[l]!==0)return o||(i.pending+=i.src[c]),i.pos+=2,!0;if(l===10){for(o||i.push("hardbreak","br",0),c++;c<p&&(l=i.src.charCodeAt(c),!!e(l));)c++;return i.pos=c,!0}}return o||(i.pending+="\\"),i.pos++,!0},ux}var cx,nM;function hz(){return nM||(nM=1,cx=function(t,n){var r,i,o,l,c,p,d,m,E=t.pos,b=t.src.charCodeAt(E);if(b!==96)return!1;for(r=E,E++,i=t.posMax;E<i&&t.src.charCodeAt(E)===96;)E++;if(o=t.src.slice(r,E),d=o.length,t.backticksScanned&&(t.backticks[d]||0)<=r)return n||(t.pending+=o),t.pos+=d,!0;for(c=p=E;(c=t.src.indexOf("`",p))!==-1;){for(p=c+1;p<i&&t.src.charCodeAt(p)===96;)p++;if(m=p-c,m===d)return n||(l=t.push("code_inline","code",0),l.markup=o,l.content=t.src.slice(E,c).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),t.pos=p,!0;t.backticks[m]=c}return t.backticksScanned=!0,n||(t.pending+=o),t.pos+=d,!0}),cx}var w0={},rM;function iM(){if(rM)return w0;rM=1,w0.tokenize=function(n,r){var i,o,l,c,p,d=n.pos,m=n.src.charCodeAt(d);if(r||m!==126||(o=n.scanDelims(n.pos,!0),c=o.length,p=String.fromCharCode(m),c<2))return!1;for(c%2&&(l=n.push("text","",0),l.content=p,c--),i=0;i<c;i+=2)l=n.push("text","",0),l.content=p+p,n.delimiters.push({marker:m,length:0,token:n.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return n.pos+=o.length,!0};function e(t,n){var r,i,o,l,c,p=[],d=n.length;for(r=0;r<d;r++)o=n[r],o.marker===126&&o.end!==-1&&(l=n[o.end],c=t.tokens[o.token],c.type="s_open",c.tag="s",c.nesting=1,c.markup="~~",c.content="",c=t.tokens[l.token],c.type="s_close",c.tag="s",c.nesting=-1,c.markup="~~",c.content="",t.tokens[l.token-1].type==="text"&&t.tokens[l.token-1].content==="~"&&p.push(l.token-1));for(;p.length;){for(r=p.pop(),i=r+1;i<t.tokens.length&&t.tokens[i].type==="s_close";)i++;i--,r!==i&&(c=t.tokens[i],t.tokens[i]=t.tokens[r],t.tokens[r]=c)}}return w0.postProcess=function(n){var r,i=n.tokens_meta,o=n.tokens_meta.length;for(e(n,n.delimiters),r=0;r<o;r++)i[r]&&i[r].delimiters&&e(n,i[r].delimiters)},w0}var C0={},oM;function aM(){if(oM)return C0;oM=1,C0.tokenize=function(n,r){var i,o,l,c=n.pos,p=n.src.charCodeAt(c);if(r||p!==95&&p!==42)return!1;for(o=n.scanDelims(n.pos,p===42),i=0;i<o.length;i++)l=n.push("text","",0),l.content=String.fromCharCode(p),n.delimiters.push({marker:p,length:o.length,token:n.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return n.pos+=o.length,!0};function e(t,n){var r,i,o,l,c,p,d=n.length;for(r=d-1;r>=0;r--)i=n[r],!(i.marker!==95&&i.marker!==42)&&i.end!==-1&&(o=n[i.end],p=r>0&&n[r-1].end===i.end+1&&n[r-1].marker===i.marker&&n[r-1].token===i.token-1&&n[i.end+1].token===o.token+1,c=String.fromCharCode(i.marker),l=t.tokens[i.token],l.type=p?"strong_open":"em_open",l.tag=p?"strong":"em",l.nesting=1,l.markup=p?c+c:c,l.content="",l=t.tokens[o.token],l.type=p?"strong_close":"em_close",l.tag=p?"strong":"em",l.nesting=-1,l.markup=p?c+c:c,l.content="",p&&(t.tokens[n[r-1].token].content="",t.tokens[n[i.end+1].token].content="",r--))}return C0.postProcess=function(n){var r,i=n.tokens_meta,o=n.tokens_meta.length;for(e(n,n.delimiters),r=0;r<o;r++)i[r]&&i[r].delimiters&&e(n,i[r].delimiters)},C0}var fx,sM;function mz(){if(sM)return fx;sM=1;var e=Fn().normalizeReference,t=Fn().isSpace;return fx=function(r,i){var o,l,c,p,d,m,E,b,y,x="",w="",k=r.pos,N=r.posMax,A=r.pos,O=!0;if(r.src.charCodeAt(r.pos)!==91||(d=r.pos+1,p=r.md.helpers.parseLinkLabel(r,r.pos,!0),p<0))return!1;if(m=p+1,m<N&&r.src.charCodeAt(m)===40){for(O=!1,m++;m<N&&(l=r.src.charCodeAt(m),!(!t(l)&&l!==10));m++);if(m>=N)return!1;if(A=m,E=r.md.helpers.parseLinkDestination(r.src,m,r.posMax),E.ok){for(x=r.md.normalizeLink(E.str),r.md.validateLink(x)?m=E.pos:x="",A=m;m<N&&(l=r.src.charCodeAt(m),!(!t(l)&&l!==10));m++);if(E=r.md.helpers.parseLinkTitle(r.src,m,r.posMax),m<N&&A!==m&&E.ok)for(w=E.str,m=E.pos;m<N&&(l=r.src.charCodeAt(m),!(!t(l)&&l!==10));m++);}(m>=N||r.src.charCodeAt(m)!==41)&&(O=!0),m++}if(O){if(typeof r.env.references>"u")return!1;if(m<N&&r.src.charCodeAt(m)===91?(A=m+1,m=r.md.helpers.parseLinkLabel(r,m),m>=0?c=r.src.slice(A,m++):m=p+1):m=p+1,c||(c=r.src.slice(d,p)),b=r.env.references[e(c)],!b)return r.pos=k,!1;x=b.href,w=b.title}return i||(r.pos=d,r.posMax=p,y=r.push("link_open","a",1),y.attrs=o=[["href",x]],w&&o.push(["title",w]),r.md.inline.tokenize(r),y=r.push("link_close","a",-1)),r.pos=m,r.posMax=N,!0},fx}var dx,lM;function gz(){if(lM)return dx;lM=1;var e=Fn().normalizeReference,t=Fn().isSpace;return dx=function(r,i){var o,l,c,p,d,m,E,b,y,x,w,k,N,A="",O=r.pos,_=r.posMax;if(r.src.charCodeAt(r.pos)!==33||r.src.charCodeAt(r.pos+1)!==91||(m=r.pos+2,d=r.md.helpers.parseLinkLabel(r,r.pos+1,!1),d<0))return!1;if(E=d+1,E<_&&r.src.charCodeAt(E)===40){for(E++;E<_&&(l=r.src.charCodeAt(E),!(!t(l)&&l!==10));E++);if(E>=_)return!1;for(N=E,y=r.md.helpers.parseLinkDestination(r.src,E,r.posMax),y.ok&&(A=r.md.normalizeLink(y.str),r.md.validateLink(A)?E=y.pos:A=""),N=E;E<_&&(l=r.src.charCodeAt(E),!(!t(l)&&l!==10));E++);if(y=r.md.helpers.parseLinkTitle(r.src,E,r.posMax),E<_&&N!==E&&y.ok)for(x=y.str,E=y.pos;E<_&&(l=r.src.charCodeAt(E),!(!t(l)&&l!==10));E++);else x="";if(E>=_||r.src.charCodeAt(E)!==41)return r.pos=O,!1;E++}else{if(typeof r.env.references>"u")return!1;if(E<_&&r.src.charCodeAt(E)===91?(N=E+1,E=r.md.helpers.parseLinkLabel(r,E),E>=0?p=r.src.slice(N,E++):E=d+1):E=d+1,p||(p=r.src.slice(m,d)),b=r.env.references[e(p)],!b)return r.pos=O,!1;A=b.href,x=b.title}return i||(c=r.src.slice(m,d),r.md.inline.parse(c,r.md,r.env,k=[]),w=r.push("image","img",0),w.attrs=o=[["src",A],["alt",""]],w.children=k,w.content=c,x&&o.push(["title",x])),r.pos=E,r.posMax=_,!0},dx}var px,uM;function vz(){if(uM)return px;uM=1;var e=/^([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])?)*)$/,t=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;return px=function(r,i){var o,l,c,p,d,m,E=r.pos;if(r.src.charCodeAt(E)!==60)return!1;for(d=r.pos,m=r.posMax;;){if(++E>=m||(p=r.src.charCodeAt(E),p===60))return!1;if(p===62)break}return o=r.src.slice(d+1,E),t.test(o)?(l=r.md.normalizeLink(o),r.md.validateLink(l)?(i||(c=r.push("link_open","a",1),c.attrs=[["href",l]],c.markup="autolink",c.info="auto",c=r.push("text","",0),c.content=r.md.normalizeLinkText(o),c=r.push("link_close","a",-1),c.markup="autolink",c.info="auto"),r.pos+=o.length+2,!0):!1):e.test(o)?(l=r.md.normalizeLink("mailto:"+o),r.md.validateLink(l)?(i||(c=r.push("link_open","a",1),c.attrs=[["href",l]],c.markup="autolink",c.info="auto",c=r.push("text","",0),c.content=r.md.normalizeLinkText(o),c=r.push("link_close","a",-1),c.markup="autolink",c.info="auto"),r.pos+=o.length+2,!0):!1):!1},px}var hx,cM;function yz(){if(cM)return hx;cM=1;var e=GR().HTML_TAG_RE;function t(n){var r=n|32;return r>=97&&r<=122}return hx=function(r,i){var o,l,c,p,d=r.pos;return!r.md.options.html||(c=r.posMax,r.src.charCodeAt(d)!==60||d+2>=c)||(o=r.src.charCodeAt(d+1),o!==33&&o!==63&&o!==47&&!t(o))||(l=r.src.slice(d).match(e),!l)?!1:(i||(p=r.push("html_inline","",0),p.content=r.src.slice(d,d+l[0].length)),r.pos+=l[0].length,!0)},hx}var mx,fM;function bz(){if(fM)return mx;fM=1;var e=oR(),t=Fn().has,n=Fn().isValidEntityCode,r=Fn().fromCodePoint,i=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,o=/^&([a-z][a-z0-9]{1,31});/i;return mx=function(c,p){var d,m,E,b=c.pos,y=c.posMax;if(c.src.charCodeAt(b)!==38)return!1;if(b+1<y){if(d=c.src.charCodeAt(b+1),d===35){if(E=c.src.slice(b).match(i),E)return p||(m=E[1][0].toLowerCase()==="x"?parseInt(E[1].slice(1),16):parseInt(E[1],10),c.pending+=n(m)?r(m):r(65533)),c.pos+=E[0].length,!0}else if(E=c.src.slice(b).match(o),E&&t(e,E[1]))return p||(c.pending+=e[E[1]]),c.pos+=E[0].length,!0}return p||(c.pending+="&"),c.pos++,!0},mx}var gx,dM;function Ez(){if(dM)return gx;dM=1;function e(t,n){var r,i,o,l,c,p,d,m,E={},b=n.length;if(b){var y=0,x=-2,w=[];for(r=0;r<b;r++)if(o=n[r],w.push(0),(n[y].marker!==o.marker||x!==o.token-1)&&(y=r),x=o.token,o.length=o.length||0,!!o.close){for(E.hasOwnProperty(o.marker)||(E[o.marker]=[-1,-1,-1,-1,-1,-1]),c=E[o.marker][(o.open?3:0)+o.length%3],i=y-w[y]-1,p=i;i>c;i-=w[i]+1)if(l=n[i],l.marker===o.marker&&l.open&&l.end<0&&(d=!1,(l.close||o.open)&&(l.length+o.length)%3===0&&(l.length%3!==0||o.length%3!==0)&&(d=!0),!d)){m=i>0&&!n[i-1].open?w[i-1]+1:0,w[r]=r-i+m,w[i]=m,o.open=!1,l.end=r,l.close=!1,p=-1,x=-2;break}p!==-1&&(E[o.marker][(o.open?3:0)+(o.length||0)%3]=p)}}}return gx=function(n){var r,i=n.tokens_meta,o=n.tokens_meta.length;for(e(n,n.delimiters),r=0;r<o;r++)i[r]&&i[r].delimiters&&e(n,i[r].delimiters)},gx}var vx,pM;function Sz(){return pM||(pM=1,vx=function(t){var n,r,i=0,o=t.tokens,l=t.tokens.length;for(n=r=0;n<l;n++)o[n].nesting<0&&i--,o[n].level=i,o[n].nesting>0&&i++,o[n].type==="text"&&n+1<l&&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)}),vx}var yx,hM;function Tz(){if(hM)return yx;hM=1;var e=zT(),t=Fn().isWhiteSpace,n=Fn().isPunctChar,r=Fn().isMdAsciiPunct;function i(o,l,c,p){this.src=o,this.env=c,this.md=l,this.tokens=p,this.tokens_meta=Array(p.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}return i.prototype.pushPending=function(){var o=new e("text","",0);return o.content=this.pending,o.level=this.pendingLevel,this.tokens.push(o),this.pending="",o},i.prototype.push=function(o,l,c){this.pending&&this.pushPending();var p=new e(o,l,c),d=null;return c<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),p.level=this.level,c>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],d={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(p),this.tokens_meta.push(d),p},i.prototype.scanDelims=function(o,l){var c=o,p,d,m,E,b,y,x,w,k,N=!0,A=!0,O=this.posMax,_=this.src.charCodeAt(o);for(p=o>0?this.src.charCodeAt(o-1):32;c<O&&this.src.charCodeAt(c)===_;)c++;return m=c-o,d=c<O?this.src.charCodeAt(c):32,x=r(p)||n(String.fromCharCode(p)),k=r(d)||n(String.fromCharCode(d)),y=t(p),w=t(d),w?N=!1:k&&(y||x||(N=!1)),y?A=!1:x&&(w||k||(A=!1)),l?(E=N,b=A):(E=N&&(!A||x),b=A&&(!N||k)),{can_open:E,can_close:b,length:m}},i.prototype.Token=e,yx=i,yx}var bx,mM;function xz(){if(mM)return bx;mM=1;var e=FT(),t=[["text",fz()],["newline",dz()],["escape",pz()],["backticks",hz()],["strikethrough",iM().tokenize],["emphasis",aM().tokenize],["link",mz()],["image",gz()],["autolink",vz()],["html_inline",yz()],["entity",bz()]],n=[["balance_pairs",Ez()],["strikethrough",iM().postProcess],["emphasis",aM().postProcess],["text_collapse",Sz()]];function r(){var i;for(this.ruler=new e,i=0;i<t.length;i++)this.ruler.push(t[i][0],t[i][1]);for(this.ruler2=new e,i=0;i<n.length;i++)this.ruler2.push(n[i][0],n[i][1])}return r.prototype.skipToken=function(i){var o,l,c=i.pos,p=this.ruler.getRules(""),d=p.length,m=i.md.options.maxNesting,E=i.cache;if(typeof E[c]<"u"){i.pos=E[c];return}if(i.level<m)for(l=0;l<d&&(i.level++,o=p[l](i,!0),i.level--,!o);l++);else i.pos=i.posMax;o||i.pos++,E[c]=i.pos},r.prototype.tokenize=function(i){for(var o,l,c=this.ruler.getRules(""),p=c.length,d=i.posMax,m=i.md.options.maxNesting;i.pos<d;){if(i.level<m)for(l=0;l<p&&(o=c[l](i,!1),!o);l++);if(o){if(i.pos>=d)break;continue}i.pending+=i.src[i.pos++]}i.pending&&i.pushPending()},r.prototype.parse=function(i,o,l,c){var p,d,m,E=new this.State(i,o,l,c);for(this.tokenize(E),d=this.ruler2.getRules(""),m=d.length,p=0;p<m;p++)d[p](E)},r.prototype.State=Tz(),bx=r,bx}var Ex,gM;function wz(){return gM||(gM=1,Ex=function(e){var t={};t.src_Any=hR().source,t.src_Cc=gR().source,t.src_Z=bR().source,t.src_P=TT().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}),Ex}var Sx,vM;function Cz(){if(vM)return Sx;vM=1;function e(O){var _=Array.prototype.slice.call(arguments,1);return _.forEach(function(M){M&&Object.keys(M).forEach(function(j){O[j]=M[j]})}),O}function t(O){return Object.prototype.toString.call(O)}function n(O){return t(O)==="[object String]"}function r(O){return t(O)==="[object Object]"}function i(O){return t(O)==="[object RegExp]"}function o(O){return t(O)==="[object Function]"}function l(O){return O.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var c={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function p(O){return Object.keys(O||{}).reduce(function(_,M){return _||c.hasOwnProperty(M)},!1)}var d={"http:":{validate:function(O,_,M){var j=O.slice(_);return M.re.http||(M.re.http=new RegExp("^\\/\\/"+M.re.src_auth+M.re.src_host_port_strict+M.re.src_path,"i")),M.re.http.test(j)?j.match(M.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(O,_,M){var j=O.slice(_);return M.re.no_http||(M.re.no_http=new RegExp("^"+M.re.src_auth+"(?:localhost|(?:(?:"+M.re.src_domain+")\\.)+"+M.re.src_domain_root+")"+M.re.src_port+M.re.src_host_terminator+M.re.src_path,"i")),M.re.no_http.test(j)?_>=3&&O[_-3]===":"||_>=3&&O[_-3]==="/"?0:j.match(M.re.no_http)[0].length:0}},"mailto:":{validate:function(O,_,M){var j=O.slice(_);return M.re.mailto||(M.re.mailto=new RegExp("^"+M.re.src_email_name+"@"+M.re.src_host_strict,"i")),M.re.mailto.test(j)?j.match(M.re.mailto)[0].length:0}}},m="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]",E="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function b(O){O.__index__=-1,O.__text_cache__=""}function y(O){return function(_,M){var j=_.slice(M);return O.test(j)?j.match(O)[0].length:0}}function x(){return function(O,_){_.normalize(O)}}function w(O){var _=O.re=wz()(O.__opts__),M=O.__tlds__.slice();O.onCompile(),O.__tlds_replaced__||M.push(m),M.push(_.src_xn),_.src_tlds=M.join("|");function j($){return $.replace("%TLDS%",_.src_tlds)}_.email_fuzzy=RegExp(j(_.tpl_email_fuzzy),"i"),_.link_fuzzy=RegExp(j(_.tpl_link_fuzzy),"i"),_.link_no_ip_fuzzy=RegExp(j(_.tpl_link_no_ip_fuzzy),"i"),_.host_fuzzy_test=RegExp(j(_.tpl_host_fuzzy_test),"i");var P=[];O.__compiled__={};function F($,K){throw new Error('(LinkifyIt) Invalid schema "'+$+'": '+K)}Object.keys(O.__schemas__).forEach(function($){var K=O.__schemas__[$];if(K!==null){var ee={validate:null,link:null};if(O.__compiled__[$]=ee,r(K)){i(K.validate)?ee.validate=y(K.validate):o(K.validate)?ee.validate=K.validate:F($,K),o(K.normalize)?ee.normalize=K.normalize:K.normalize?F($,K):ee.normalize=x();return}if(n(K)){P.push($);return}F($,K)}}),P.forEach(function($){O.__compiled__[O.__schemas__[$]]&&(O.__compiled__[$].validate=O.__compiled__[O.__schemas__[$]].validate,O.__compiled__[$].normalize=O.__compiled__[O.__schemas__[$]].normalize)}),O.__compiled__[""]={validate:null,normalize:x()};var V=Object.keys(O.__compiled__).filter(function($){return $.length>0&&O.__compiled__[$]}).map(l).join("|");O.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+_.src_ZPCc+"))("+V+")","i"),O.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+_.src_ZPCc+"))("+V+")","ig"),O.re.pretest=RegExp("("+O.re.schema_test.source+")|("+O.re.host_fuzzy_test.source+")|@","i"),b(O)}function k(O,_){var M=O.__index__,j=O.__last_index__,P=O.__text_cache__.slice(M,j);this.schema=O.__schema__.toLowerCase(),this.index=M+_,this.lastIndex=j+_,this.raw=P,this.text=P,this.url=P}function N(O,_){var M=new k(O,_);return O.__compiled__[M.schema].normalize(M,O),M}function A(O,_){if(!(this instanceof A))return new A(O,_);_||p(O)&&(_=O,O={}),this.__opts__=e({},c,_),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=e({},d,O),this.__compiled__={},this.__tlds__=E,this.__tlds_replaced__=!1,this.re={},w(this)}return A.prototype.add=function(_,M){return this.__schemas__[_]=M,w(this),this},A.prototype.set=function(_){return this.__opts__=e(this.__opts__,_),this},A.prototype.test=function(_){if(this.__text_cache__=_,this.__index__=-1,!_.length)return!1;var M,j,P,F,V,$,K,ee,J;if(this.re.schema_test.test(_)){for(K=this.re.schema_search,K.lastIndex=0;(M=K.exec(_))!==null;)if(F=this.testSchemaAt(_,M[2],K.lastIndex),F){this.__schema__=M[2],this.__index__=M.index+M[1].length,this.__last_index__=M.index+M[0].length+F;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(ee=_.search(this.re.host_fuzzy_test),ee>=0&&(this.__index__<0||ee<this.__index__)&&(j=_.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(V=j.index+j[1].length,(this.__index__<0||V<this.__index__)&&(this.__schema__="",this.__index__=V,this.__last_index__=j.index+j[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(J=_.indexOf("@"),J>=0&&(P=_.match(this.re.email_fuzzy))!==null&&(V=P.index+P[1].length,$=P.index+P[0].length,(this.__index__<0||V<this.__index__||V===this.__index__&&$>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=V,this.__last_index__=$))),this.__index__>=0},A.prototype.pretest=function(_){return this.re.pretest.test(_)},A.prototype.testSchemaAt=function(_,M,j){return this.__compiled__[M.toLowerCase()]?this.__compiled__[M.toLowerCase()].validate(_,j,this):0},A.prototype.match=function(_){var M=0,j=[];this.__index__>=0&&this.__text_cache__===_&&(j.push(N(this,M)),M=this.__last_index__);for(var P=M?_.slice(M):_;this.test(P);)j.push(N(this,M)),P=P.slice(this.__last_index__),M+=this.__last_index__;return j.length?j:null},A.prototype.tlds=function(_,M){return _=Array.isArray(_)?_:[_],M?(this.__tlds__=this.__tlds__.concat(_).sort().filter(function(j,P,F){return j!==F[P-1]}).reverse(),w(this),this):(this.__tlds__=_.slice(),this.__tlds_replaced__=!0,w(this),this)},A.prototype.normalize=function(_){_.schema||(_.url="http://"+_.url),_.schema==="mailto:"&&!/^mailto:/i.test(_.url)&&(_.url="mailto:"+_.url)},A.prototype.onCompile=function(){},Sx=A,Sx}const op=2147483647,Ys=36,Tx=1,Im=26,_z=38,Nz=700,yM=72,bM=128,EM="-",Az=/^xn--/,Oz=/[^\0-\x7F]/,Dz=/[\x2E\u3002\uFF0E\uFF61]/g,kz={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},xx=Ys-Tx,Ws=Math.floor,wx=String.fromCharCode;function Gu(e){throw new RangeError(kz[e])}function Rz(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function SM(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(Dz,".");const i=e.split("."),o=Rz(i,t).join(".");return r+o}function Cx(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}const TM=e=>String.fromCodePoint(...e),Mz=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:Ys},xM=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},wM=function(e,t,n){let r=0;for(e=n?Ws(e/Nz):e>>1,e+=Ws(e/t);e>xx*Im>>1;r+=Ys)e=Ws(e/xx);return Ws(r+(xx+1)*e/(e+_z))},_x=function(e){const t=[],n=e.length;let r=0,i=bM,o=yM,l=e.lastIndexOf(EM);l<0&&(l=0);for(let c=0;c<l;++c)e.charCodeAt(c)>=128&&Gu("not-basic"),t.push(e.charCodeAt(c));for(let c=l>0?l+1:0;c<n;){const p=r;for(let m=1,E=Ys;;E+=Ys){c>=n&&Gu("invalid-input");const b=Mz(e.charCodeAt(c++));b>=Ys&&Gu("invalid-input"),b>Ws((op-r)/m)&&Gu("overflow"),r+=b*m;const y=E<=o?Tx:E>=o+Im?Im:E-o;if(b<y)break;const x=Ys-y;m>Ws(op/x)&&Gu("overflow"),m*=x}const d=t.length+1;o=wM(r-p,d,p==0),Ws(r/d)>op-i&&Gu("overflow"),i+=Ws(r/d),r%=d,t.splice(r++,0,i)}return String.fromCodePoint(...t)},Nx=function(e){const t=[];e=Cx(e);const n=e.length;let r=bM,i=0,o=yM;for(const p of e)p<128&&t.push(wx(p));const l=t.length;let c=l;for(l&&t.push(EM);c<n;){let p=op;for(const m of e)m>=r&&m<p&&(p=m);const d=c+1;p-r>Ws((op-i)/d)&&Gu("overflow"),i+=(p-r)*d,r=p;for(const m of e)if(m<r&&++i>op&&Gu("overflow"),m===r){let E=i;for(let b=Ys;;b+=Ys){const y=b<=o?Tx:b>=o+Im?Im:b-o;if(E<y)break;const x=E-y,w=Ys-y;t.push(wx(xM(y+x%w,0))),E=Ws(x/w)}t.push(wx(xM(E,0))),o=wM(i,d,c===l),i=0,++c}++i,++r}return t.join("")},CM=function(e){return SM(e,function(t){return Az.test(t)?_x(t.slice(4).toLowerCase()):t})},_M=function(e){return SM(e,function(t){return Oz.test(t)?"xn--"+Nx(t):t})},Lz=eN(Object.freeze(Object.defineProperty({__proto__:null,decode:_x,default:{version:"2.3.1",ucs2:{decode:Cx,encode:TM},decode:_x,encode:Nx,toASCII:_M,toUnicode:CM},encode:Nx,toASCII:_M,toUnicode:CM,ucs2decode:Cx,ucs2encode:TM},Symbol.toStringTag,{value:"Module"})));var Ax,NM;function Iz(){return NM||(NM=1,Ax={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}),Ax}var Ox,AM;function Fz(){return AM||(AM=1,Ox={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"]}}}),Ox}var Dx,OM;function Pz(){return OM||(OM=1,Dx={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"]}}}),Dx}var kx,DM;function jz(){if(DM)return kx;DM=1;var e=Fn(),t=q$(),n=B$(),r=K$(),i=cz(),o=xz(),l=Cz(),c=dR(),p=Lz,d={default:Iz(),zero:Fz(),commonmark:Pz()},m=/^(vbscript|javascript|file|data):/,E=/^data:image\/(gif|png|jpeg|webp);/;function b(N){var A=N.trim().toLowerCase();return m.test(A)?!!E.test(A):!0}var y=["http:","https:","mailto:"];function x(N){var A=c.parse(N,!0);if(A.hostname&&(!A.protocol||y.indexOf(A.protocol)>=0))try{A.hostname=p.toASCII(A.hostname)}catch{}return c.encode(c.format(A))}function w(N){var A=c.parse(N,!0);if(A.hostname&&(!A.protocol||y.indexOf(A.protocol)>=0))try{A.hostname=p.toUnicode(A.hostname)}catch{}return c.decode(c.format(A),c.decode.defaultChars+"%")}function k(N,A){if(!(this instanceof k))return new k(N,A);A||e.isString(N)||(A=N||{},N="default"),this.inline=new o,this.block=new i,this.core=new r,this.renderer=new n,this.linkify=new l,this.validateLink=b,this.normalizeLink=x,this.normalizeLinkText=w,this.utils=e,this.helpers=e.assign({},t),this.options={},this.configure(N),A&&this.set(A)}return k.prototype.set=function(N){return e.assign(this.options,N),this},k.prototype.configure=function(N){var A=this,O;if(e.isString(N)&&(O=N,N=d[O],!N))throw new Error('Wrong `markdown-it` preset "'+O+'", check name');if(!N)throw new Error("Wrong `markdown-it` preset, can't be empty");return N.options&&A.set(N.options),N.components&&Object.keys(N.components).forEach(function(_){N.components[_].rules&&A[_].ruler.enableOnly(N.components[_].rules),N.components[_].rules2&&A[_].ruler2.enableOnly(N.components[_].rules2)}),this},k.prototype.enable=function(N,A){var O=[];Array.isArray(N)||(N=[N]),["core","block","inline"].forEach(function(M){O=O.concat(this[M].ruler.enable(N,!0))},this),O=O.concat(this.inline.ruler2.enable(N,!0));var _=N.filter(function(M){return O.indexOf(M)<0});if(_.length&&!A)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+_);return this},k.prototype.disable=function(N,A){var O=[];Array.isArray(N)||(N=[N]),["core","block","inline"].forEach(function(M){O=O.concat(this[M].ruler.disable(N,!0))},this),O=O.concat(this.inline.ruler2.disable(N,!0));var _=N.filter(function(M){return O.indexOf(M)<0});if(_.length&&!A)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+_);return this},k.prototype.use=function(N){var A=[this].concat(Array.prototype.slice.call(arguments,1));return N.apply(N,A),this},k.prototype.parse=function(N,A){if(typeof N!="string")throw new Error("Input data should be a String");var O=new this.core.State(N,this,A);return this.core.process(O),O.tokens},k.prototype.render=function(N,A){return A=A||{},this.renderer.render(this.parse(N,A),this.options,A)},k.prototype.parseInline=function(N,A){var O=new this.core.State(N,this,A);return O.inlineMode=!0,this.core.process(O),O.tokens},k.prototype.renderInline=function(N,A){return A=A||{},this.renderer.render(this.parseInline(N,A),this.options,A)},kx=k,kx}var Rx,kM;function Vz(){return kM||(kM=1,Rx=jz()),Rx}var Uz=Vz();const qz=Mu(Uz);var Bz="production",RM=typeof process>"u"||process.env===void 0?Bz:"production",Bl=function(e){return{isEnabled:function(t){return e.some(function(n){return!!t[n]})}}},Fm={measureLayout:Bl(["layout","layoutId","drag"]),animation:Bl(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Bl(["exit"]),drag:Bl(["drag","dragControls"]),focus:Bl(["whileFocus"]),hover:Bl(["whileHover","onHoverStart","onHoverEnd"]),tap:Bl(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Bl(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Bl(["whileInView","onViewportEnter","onViewportLeave"])};function $z(e){for(var t in e)e[t]!==null&&(t==="projectionNodeConstructor"?Fm.projectionNodeConstructor=e[t]:Fm[t].Component=e[t])}var _0=function(){},MM=L.createContext({strict:!1}),LM=Object.keys(Fm),zz=LM.length;function Hz(e,t,n){var r=[],i=L.useContext(MM);if(!t)return null;RM!=="production"&&n&&i.strict;for(var o=0;o<zz;o++){var l=LM[o],c=Fm[l],p=c.isEnabled,d=c.Component;p(e)&&d&&r.push(L.createElement(d,Ke({key:l},e,{visualElement:t})))}return r}var N0=L.createContext({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),A0=L.createContext({});function Gz(){return L.useContext(A0).visualElement}var O0=L.createContext(null),ap=typeof document<"u",Mx=ap?L.useLayoutEffect:L.useEffect,Lx={current:null},IM=!1;function Yz(){if(IM=!0,!!ap)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return Lx.current=e.matches};e.addListener(t),t()}else Lx.current=!1}function Wz(){!IM&&Yz();var e=Er(L.useState(Lx.current),1),t=e[0];return t}function Qz(){var e=Wz(),t=L.useContext(N0).reducedMotion;return t==="never"?!1:t==="always"?!0:e}function Kz(e,t,n,r){var i=L.useContext(MM),o=Gz(),l=L.useContext(O0),c=Qz(),p=L.useRef(void 0);r||(r=i.renderer),!p.current&&r&&(p.current=r(e,{visualState:t,parent:o,props:n,presenceId:l==null?void 0:l.id,blockInitialAnimation:(l==null?void 0:l.initial)===!1,shouldReduceMotion:c}));var d=p.current;return Mx(function(){d==null||d.syncRender()}),L.useEffect(function(){var m;(m=d==null?void 0:d.animationState)===null||m===void 0||m.animateChanges()}),Mx(function(){return function(){return d==null?void 0:d.notifyUnmount()}},[]),d}function sp(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Xz(e,t,n){return L.useCallback(function(r){var i;r&&((i=e.mount)===null||i===void 0||i.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):sp(n)&&(n.current=r))},[t])}function FM(e){return Array.isArray(e)}function cs(e){return typeof e=="string"||FM(e)}function Zz(e){var t={};return e.forEachValue(function(n,r){return t[r]=n.get()}),t}function Jz(e){var t={};return e.forEachValue(function(n,r){return t[r]=n.getVelocity()}),t}function PM(e,t,n,r,i){var o;return r===void 0&&(r={}),i===void 0&&(i={}),typeof t=="function"&&(t=t(n??e.custom,r,i)),typeof t=="string"&&(t=(o=e.variants)===null||o===void 0?void 0:o[t]),typeof t=="function"&&(t=t(n??e.custom,r,i)),t}function D0(e,t,n){var r=e.getProps();return PM(r,t,n??r.custom,Zz(e),Jz(e))}function k0(e){var t;return typeof((t=e.animate)===null||t===void 0?void 0:t.start)=="function"||cs(e.initial)||cs(e.animate)||cs(e.whileHover)||cs(e.whileDrag)||cs(e.whileTap)||cs(e.whileFocus)||cs(e.exit)}function jM(e){return!!(k0(e)||e.variants)}function eH(e,t){if(k0(e)){var n=e.initial,r=e.animate;return{initial:n===!1||cs(n)?n:void 0,animate:cs(r)?r:void 0}}return e.inherit!==!1?t:{}}function tH(e){var t=eH(e,L.useContext(A0)),n=t.initial,r=t.animate;return L.useMemo(function(){return{initial:n,animate:r}},[VM(n),VM(r)])}function VM(e){return Array.isArray(e)?e.join(" "):e}function Yu(e){var t=L.useRef(null);return t.current===null&&(t.current=e()),t.current}var Pm={hasAnimatedSinceResize:!0,hasEverUpdated:!1},nH=1;function rH(){return Yu(function(){if(Pm.hasEverUpdated)return nH++})}var UM=L.createContext({}),qM=L.createContext({});function iH(e,t,n,r){var i,o=t.layoutId,l=t.layout,c=t.drag,p=t.dragConstraints,d=t.layoutScroll,m=L.useContext(qM);!r||!n||n!=null&&n.projection||(n.projection=new r(e,n.getLatestValues(),(i=n.parent)===null||i===void 0?void 0:i.projection),n.projection.setOptions({layoutId:o,layout:l,alwaysMeasureLayout:!!c||p&&sp(p),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:typeof l=="string"?l:"both",initialPromotionConfig:m,layoutScroll:d}))}var oH=function(e){lk(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var n=this.props,r=n.visualElement,i=n.props;r&&r.setProps(i)},t.prototype.render=function(){return this.props.children},t}(Ae.Component);function aH(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,i=e.useRender,o=e.useVisualState,l=e.Component;t&&$z(t);function c(p,d){var m=sH(p);p=Ke(Ke({},p),{layoutId:m});var E=L.useContext(N0),b=null,y=tH(p),x=E.isStatic?void 0:rH(),w=o(p,E.isStatic);return!E.isStatic&&ap&&(y.visualElement=Kz(l,w,Ke(Ke({},E),p),n),iH(x,p,y.visualElement,r||Fm.projectionNodeConstructor),b=Hz(p,y.visualElement,t)),L.createElement(oH,{visualElement:y.visualElement,props:Ke(Ke({},E),p)},b,L.createElement(A0.Provider,{value:y},i(l,p,x,Xz(w,y.visualElement,d),w,E.isStatic,y.visualElement)))}return L.forwardRef(c)}function sH(e){var t,n=e.layoutId,r=(t=L.useContext(UM))===null||t===void 0?void 0:t.id;return r&&n!==void 0?r+"-"+n:n}function lH(e){function t(r,i){return i===void 0&&(i={}),aH(e(r,i))}if(typeof Proxy>"u")return t;var n=new Map;return new Proxy(t,{get:function(r,i){return n.has(i)||n.set(i,t(i)),n.get(i)}})}var uH=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function Ix(e){return typeof e!="string"||e.includes("-")?!1:!!(uH.indexOf(e)>-1||/[A-Z]/.test(e))}var R0={};function cH(e){Object.assign(R0,e)}var Fx=["","X","Y","Z"],fH=["translate","scale","rotate","skew"],jm=["transformPerspective","x","y","z"];fH.forEach(function(e){return Fx.forEach(function(t){return jm.push(e+t)})});function dH(e,t){return jm.indexOf(e)-jm.indexOf(t)}var pH=new Set(jm);function Vm(e){return pH.has(e)}var hH=new Set(["originX","originY","originZ"]);function BM(e){return hH.has(e)}function $M(e,t){var n=t.layout,r=t.layoutId;return Vm(e)||BM(e)||(n||r!==void 0)&&(!!R0[e]||e==="opacity")}var Qs=function(e){return!!(e!==null&&typeof e=="object"&&e.getVelocity)},mH={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function gH(e,t,n,r){var i=e.transform,o=e.transformKeys,l=t.enableHardwareAcceleration,c=l===void 0?!0:l,p=t.allowTransformNone,d=p===void 0?!0:p,m="";o.sort(dH);for(var E=!1,b=o.length,y=0;y<b;y++){var x=o[y];m+="".concat(mH[x]||x,"(").concat(i[x],") "),x==="z"&&(E=!0)}return!E&&c?m+="translateZ(0)":m=m.trim(),r?m=r(i,n?"":m):d&&n&&(m="none"),m}function vH(e){var t=e.originX,n=t===void 0?"50%":t,r=e.originY,i=r===void 0?"50%":r,o=e.originZ,l=o===void 0?0:o;return"".concat(n," ").concat(i," ").concat(l)}function zM(e){return e.startsWith("--")}var yH=function(e,t){return t&&typeof e=="number"?t.transform(e):e};const HM=(e,t)=>n=>Math.max(Math.min(n,t),e),Um=e=>e%1?Number(e.toFixed(5)):e,qm=/(-)?([\d]*\.?[\d])+/g,Px=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,bH=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function Bm(e){return typeof e=="string"}const Mf={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},$m=Object.assign(Object.assign({},Mf),{transform:HM(0,1)}),M0=Object.assign(Object.assign({},Mf),{default:1}),zm=e=>({test:t=>Bm(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Wu=zm("deg"),Ks=zm("%"),It=zm("px"),EH=zm("vh"),SH=zm("vw"),GM=Object.assign(Object.assign({},Ks),{parse:e=>Ks.parse(e)/100,transform:e=>Ks.transform(e*100)}),jx=(e,t)=>n=>!!(Bm(n)&&bH.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),YM=(e,t,n)=>r=>{if(!Bm(r))return r;const[i,o,l,c]=r.match(qm);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(l),alpha:c!==void 0?parseFloat(c):1}},Lf={test:jx("hsl","hue"),parse:YM("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ks.transform(Um(t))+", "+Ks.transform(Um(n))+", "+Um($m.transform(r))+")"},TH=HM(0,255),Vx=Object.assign(Object.assign({},Mf),{transform:e=>Math.round(TH(e))}),Qu={test:jx("rgb","red"),parse:YM("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Vx.transform(e)+", "+Vx.transform(t)+", "+Vx.transform(n)+", "+Um($m.transform(r))+")"};function xH(e){let t="",n="",r="",i="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),i=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),i=e.substr(4,1),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const Ux={test:jx("#"),parse:xH,transform:Qu.transform},co={test:e=>Qu.test(e)||Ux.test(e)||Lf.test(e),parse:e=>Qu.test(e)?Qu.parse(e):Lf.test(e)?Lf.parse(e):Ux.parse(e),transform:e=>Bm(e)?e:e.hasOwnProperty("red")?Qu.transform(e):Lf.transform(e)},WM="${c}",QM="${n}";function wH(e){var t,n,r,i;return isNaN(e)&&Bm(e)&&((n=(t=e.match(qm))===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)+((i=(r=e.match(Px))===null||r===void 0?void 0:r.length)!==null&&i!==void 0?i:0)>0}function KM(e){typeof e=="number"&&(e=`${e}`);const t=[];let n=0;const r=e.match(Px);r&&(n=r.length,e=e.replace(Px,WM),t.push(...r.map(co.parse)));const i=e.match(qm);return i&&(e=e.replace(qm,QM),t.push(...i.map(Mf.parse))),{values:t,numColors:n,tokenised:e}}function XM(e){return KM(e).values}function ZM(e){const{values:t,numColors:n,tokenised:r}=KM(e),i=t.length;return o=>{let l=r;for(let c=0;c<i;c++)l=l.replace(c<n?WM:QM,c<n?co.transform(o[c]):Um(o[c]));return l}}const CH=e=>typeof e=="number"?0:e;function _H(e){const t=XM(e);return ZM(e)(t.map(CH))}const $l={test:wH,parse:XM,createTransformer:ZM,getAnimatableNone:_H},NH=new Set(["brightness","contrast","saturate","opacity"]);function AH(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(qm)||[];if(!r)return e;const i=n.replace(r,"");let o=NH.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const OH=/([a-z-]*)\(.*?\)/g,qx=Object.assign(Object.assign({},$l),{getAnimatableNone:e=>{const t=e.match(OH);return t?t.map(AH).join(" "):e}});var JM=Ke(Ke({},Mf),{transform:Math.round}),eL={borderWidth:It,borderTopWidth:It,borderRightWidth:It,borderBottomWidth:It,borderLeftWidth:It,borderRadius:It,radius:It,borderTopLeftRadius:It,borderTopRightRadius:It,borderBottomRightRadius:It,borderBottomLeftRadius:It,width:It,maxWidth:It,height:It,maxHeight:It,size:It,top:It,right:It,bottom:It,left:It,padding:It,paddingTop:It,paddingRight:It,paddingBottom:It,paddingLeft:It,margin:It,marginTop:It,marginRight:It,marginBottom:It,marginLeft:It,rotate:Wu,rotateX:Wu,rotateY:Wu,rotateZ:Wu,scale:M0,scaleX:M0,scaleY:M0,scaleZ:M0,skew:Wu,skewX:Wu,skewY:Wu,distance:It,translateX:It,translateY:It,translateZ:It,x:It,y:It,z:It,perspective:It,transformPerspective:It,opacity:$m,originX:GM,originY:GM,originZ:It,zIndex:JM,fillOpacity:$m,strokeOpacity:$m,numOctaves:JM};function Bx(e,t,n,r){var i,o=e.style,l=e.vars,c=e.transform,p=e.transformKeys,d=e.transformOrigin;p.length=0;var m=!1,E=!1,b=!0;for(var y in t){var x=t[y];if(zM(y)){l[y]=x;continue}var w=eL[y],k=yH(x,w);if(Vm(y)){if(m=!0,c[y]=k,p.push(y),!b)continue;x!==((i=w.default)!==null&&i!==void 0?i:0)&&(b=!1)}else BM(y)?(d[y]=k,E=!0):o[y]=k}m?o.transform=gH(e,n,b,r):r?o.transform=r({},""):!t.transform&&o.transform&&(o.transform="none"),E&&(o.transformOrigin=vH(d))}var $x=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function tL(e,t,n){for(var r in t)!Qs(t[r])&&!$M(r,n)&&(e[r]=t[r])}function DH(e,t,n){var r=e.transformTemplate;return L.useMemo(function(){var i=$x();Bx(i,t,{enableHardwareAcceleration:!n},r);var o=i.vars,l=i.style;return Ke(Ke({},o),l)},[t])}function kH(e,t,n){var r=e.style||{},i={};return tL(i,r,e),Object.assign(i,DH(e,t,n)),e.transformValues&&(i=e.transformValues(i)),i}function RH(e,t,n){var r={},i=kH(e,t,n);return e.drag&&e.dragListener!==!1&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=e.drag===!0?"none":"pan-".concat(e.drag==="x"?"y":"x")),r.style=i,r}var MH=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function L0(e){return MH.has(e)}var nL=function(e){return!L0(e)};function LH(e){e&&(nL=function(t){return t.startsWith("on")?!L0(t):e(t)})}try{LH(require("@emotion/is-prop-valid").default)}catch{}function IH(e,t,n){var r={};for(var i in e)(nL(i)||n===!0&&L0(i)||!t&&!L0(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function rL(e,t,n){return typeof e=="string"?e:It.transform(t+n*e)}function FH(e,t,n){var r=rL(t,e.x,e.width),i=rL(n,e.y,e.height);return"".concat(r," ").concat(i)}var PH={offset:"strokeDashoffset",array:"strokeDasharray"};function jH(e,t,n,r,i){n===void 0&&(n=1),r===void 0&&(r=0),e.pathLength=1;var o=PH;e[o.offset]=It.transform(-r);var l=It.transform(t),c=It.transform(n);e[o.array]="".concat(l," ").concat(c)}function zx(e,t,n,r){var i=t.attrX,o=t.attrY,l=t.originX,c=t.originY,p=t.pathLength,d=t.pathSpacing,m=d===void 0?1:d,E=t.pathOffset,b=E===void 0?0:E,y=Yi(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]);Bx(e,y,n,r),e.attrs=e.style,e.style={};var x=e.attrs,w=e.style,k=e.dimensions;x.transform&&(k&&(w.transform=x.transform),delete x.transform),k&&(l!==void 0||c!==void 0||w.transform)&&(w.transformOrigin=FH(k,l!==void 0?l:.5,c!==void 0?c:.5)),i!==void 0&&(x.x=i),o!==void 0&&(x.y=o),p!==void 0&&jH(x,p,m,b)}var iL=function(){return Ke(Ke({},$x()),{attrs:{}})};function VH(e,t){var n=L.useMemo(function(){var i=iL();return zx(i,t,{enableHardwareAcceleration:!1},e.transformTemplate),Ke(Ke({},i.attrs),{style:Ke({},i.style)})},[t]);if(e.style){var r={};tL(r,e.style,e),n.style=Ke(Ke({},r),n.style)}return n}function UH(e){e===void 0&&(e=!1);var t=function(n,r,i,o,l,c){var p=l.latestValues,d=Ix(n)?VH:RH,m=d(r,p,c),E=IH(r,typeof n=="string",e),b=Ke(Ke(Ke({},E),m),{ref:o});return i&&(b["data-projection-id"]=i),L.createElement(n,b)};return t}var qH=/([a-z])([A-Z])/g,BH="$1-$2",oL=function(e){return e.replace(qH,BH).toLowerCase()};function aL(e,t,n,r){var i=t.style,o=t.vars;Object.assign(e.style,i,r&&r.getProjectionStyles(n));for(var l in o)e.style.setProperty(l,o[l])}var sL=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function lL(e,t,n,r){aL(e,t,void 0,r);for(var i in t.attrs)e.setAttribute(sL.has(i)?i:oL(i),t.attrs[i])}function Hx(e){var t=e.style,n={};for(var r in t)(Qs(t[r])||$M(r,e))&&(n[r]=t[r]);return n}function uL(e){var t=Hx(e);for(var n in e)if(Qs(e[n])){var r=n==="x"||n==="y"?"attr"+n.toUpperCase():n;t[r]=e[n]}return t}function Gx(e){return typeof e=="object"&&typeof e.start=="function"}var Hm=function(e){return Array.isArray(e)},$H=function(e){return!!(e&&typeof e=="object"&&e.mix&&e.toValue)},cL=function(e){return Hm(e)?e[e.length-1]||0:e};function I0(e){var t=Qs(e)?e.get():e;return $H(t)?t.toValue():t}function fL(e,t,n,r){var i=e.scrapeMotionValuesFromProps,o=e.createRenderState,l=e.onMount,c={latestValues:zH(t,n,r,i),renderState:o()};return l&&(c.mount=function(p){return l(t,p,c)}),c}var dL=function(e){return function(t,n){var r=L.useContext(A0),i=L.useContext(O0);return n?fL(e,t,r,i):Yu(function(){return fL(e,t,r,i)})}};function zH(e,t,n,r){var i={},o=(n==null?void 0:n.initial)===!1,l=r(e);for(var c in l)i[c]=I0(l[c]);var p=e.initial,d=e.animate,m=k0(e),E=jM(e);t&&E&&!m&&e.inherit!==!1&&(p??(p=t.initial),d??(d=t.animate));var b=o||p===!1,y=b?d:p;if(y&&typeof y!="boolean"&&!Gx(y)){var x=Array.isArray(y)?y:[y];x.forEach(function(w){var k=PM(e,w);if(k){var N=k.transitionEnd;k.transition;var A=Yi(k,["transitionEnd","transition"]);for(var O in A){var _=A[O];if(Array.isArray(_)){var M=b?_.length-1:0;_=_[M]}_!==null&&(i[O]=_)}for(var O in N)i[O]=N[O]}})}return i}var HH={useVisualState:dL({scrapeMotionValuesFromProps:uL,createRenderState:iL,onMount:function(e,t,n){var r=n.renderState,i=n.latestValues;try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}zx(r,i,{enableHardwareAcceleration:!1},e.transformTemplate),lL(t,r)}})},GH={useVisualState:dL({scrapeMotionValuesFromProps:Hx,createRenderState:$x})};function YH(e,t,n,r,i){var o=t.forwardMotionProps,l=o===void 0?!1:o,c=Ix(e)?HH:GH;return Ke(Ke({},c),{preloadedFeatures:n,useRender:UH(l),createVisualElement:r,projectionNodeConstructor:i,Component:e})}var tr;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(tr||(tr={}));function F0(e,t,n,r){return r===void 0&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function Yx(e,t,n,r){L.useEffect(function(){var i=e.current;if(n&&i)return F0(i,t,n,r)},[e,t,n,r])}function WH(e){var t=e.whileFocus,n=e.visualElement,r=function(){var o;(o=n.animationState)===null||o===void 0||o.setActive(tr.Focus,!0)},i=function(){var o;(o=n.animationState)===null||o===void 0||o.setActive(tr.Focus,!1)};Yx(n,"focus",t?r:void 0),Yx(n,"blur",t?i:void 0)}function pL(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function hL(e){var t=!!e.touches;return t}function QH(e){return function(t){var n=t instanceof MouseEvent,r=!n||n&&t.button===0;r&&e(t)}}var KH={pageX:0,pageY:0};function XH(e,t){t===void 0&&(t="page");var n=e.touches[0]||e.changedTouches[0],r=n||KH;return{x:r[t+"X"],y:r[t+"Y"]}}function ZH(e,t){return t===void 0&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function Wx(e,t){return t===void 0&&(t="page"),{point:hL(e)?XH(e,t):ZH(e,t)}}var mL=function(e,t){t===void 0&&(t=!1);var n=function(r){return e(r,Wx(r))};return t?QH(n):n},JH=function(){return ap&&window.onpointerdown===null},eG=function(){return ap&&window.ontouchstart===null},tG=function(){return ap&&window.onmousedown===null},nG={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},rG={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function gL(e){return JH()?e:eG()?rG[e]:tG()?nG[e]:e}function lp(e,t,n,r){return F0(e,gL(t),mL(n,t==="pointerdown"),r)}function P0(e,t,n,r){return Yx(e,gL(t),n&&mL(n,t==="pointerdown"),r)}function vL(e){var t=null;return function(){var n=function(){t=null};return t===null?(t=e,n):!1}}var yL=vL("dragHorizontal"),bL=vL("dragVertical");function EL(e){var t=!1;if(e==="y")t=bL();else if(e==="x")t=yL();else{var n=yL(),r=bL();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function SL(){var e=EL(!0);return e?(e(),!1):!0}function TL(e,t,n){return function(r,i){var o;!pL(r)||SL()||((o=e.animationState)===null||o===void 0||o.setActive(tr.Hover,t),n==null||n(r,i))}}function iG(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,i=e.visualElement;P0(i,"pointerenter",t||r?TL(i,!0,t):void 0,{passive:!t}),P0(i,"pointerleave",n||r?TL(i,!1,n):void 0,{passive:!n})}var xL=function(e,t){return t?e===t?!0:xL(e,t.parentElement):!1};function wL(e){return L.useEffect(function(){return function(){return e()}},[])}const j0=(e,t,n)=>Math.min(Math.max(n,e),t),Qx=.001,oG=.01,aG=10,sG=.05,lG=1;function uG({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o,l=1-t;l=j0(sG,lG,l),e=j0(oG,aG,e/1e3),l<1?(i=d=>{const m=d*l,E=m*e,b=m-n,y=Kx(d,l),x=Math.exp(-E);return Qx-b/y*x},o=d=>{const E=d*l*e,b=E*n+n,y=Math.pow(l,2)*Math.pow(d,2)*e,x=Math.exp(-E),w=Kx(Math.pow(d,2),l);return(-i(d)+Qx>0?-1:1)*((b-y)*x)/w}):(i=d=>{const m=Math.exp(-d*e),E=(d-n)*e+1;return-Qx+m*E},o=d=>{const m=Math.exp(-d*e),E=(n-d)*(e*e);return m*E});const c=5/e,p=fG(i,o,c);if(e=e*1e3,isNaN(p))return{stiffness:100,damping:10,duration:e};{const d=Math.pow(p,2)*r;return{stiffness:d,damping:l*2*Math.sqrt(r*d),duration:e}}}const cG=12;function fG(e,t,n){let r=n;for(let i=1;i<cG;i++)r=r-e(r)/t(r);return r}function Kx(e,t){return e*Math.sqrt(1-t*t)}const dG=["duration","bounce"],pG=["stiffness","damping","mass"];function CL(e,t){return t.some(n=>e[n]!==void 0)}function hG(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!CL(e,pG)&&CL(e,dG)){const n=uG(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function Xx(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:i}=e,o=Yi(e,["from","to","restSpeed","restDelta"]);const l={done:!1,value:t};let{stiffness:c,damping:p,mass:d,velocity:m,duration:E,isResolvedFromDuration:b}=hG(o),y=_L,x=_L;function w(){const k=m?-(m/1e3):0,N=n-t,A=p/(2*Math.sqrt(c*d)),O=Math.sqrt(c/d)/1e3;if(i===void 0&&(i=Math.min(Math.abs(n-t)/100,.4)),A<1){const _=Kx(O,A);y=M=>{const j=Math.exp(-A*O*M);return n-j*((k+A*O*N)/_*Math.sin(_*M)+N*Math.cos(_*M))},x=M=>{const j=Math.exp(-A*O*M);return A*O*j*(Math.sin(_*M)*(k+A*O*N)/_+N*Math.cos(_*M))-j*(Math.cos(_*M)*(k+A*O*N)-_*N*Math.sin(_*M))}}else if(A===1)y=_=>n-Math.exp(-O*_)*(N+(k+O*N)*_);else{const _=O*Math.sqrt(A*A-1);y=M=>{const j=Math.exp(-A*O*M),P=Math.min(_*M,300);return n-j*((k+A*O*N)*Math.sinh(P)+_*N*Math.cosh(P))/_}}}return w(),{next:k=>{const N=y(k);if(b)l.done=k>=E;else{const A=x(k)*1e3,O=Math.abs(A)<=r,_=Math.abs(n-N)<=i;l.done=O&&_}return l.value=l.done?n:N,l},flipTarget:()=>{m=-m,[t,n]=[n,t],w()}}}Xx.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";const _L=e=>0,Gm=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Cr=(e,t,n)=>-n*e+n*t+e;function Zx(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function NL({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,l=0;if(!t)i=o=l=n;else{const c=n<.5?n*(1+t):n+t-n*t,p=2*n-c;i=Zx(p,c,e+1/3),o=Zx(p,c,e),l=Zx(p,c,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(l*255),alpha:r}}const mG=(e,t,n)=>{const r=e*e,i=t*t;return Math.sqrt(Math.max(0,n*(i-r)+r))},gG=[Ux,Qu,Lf],AL=e=>gG.find(t=>t.test(e)),OL=(e,t)=>{let n=AL(e),r=AL(t),i=n.parse(e),o=r.parse(t);n===Lf&&(i=NL(i),n=Qu),r===Lf&&(o=NL(o),r=Qu);const l=Object.assign({},i);return c=>{for(const p in l)p!=="alpha"&&(l[p]=mG(i[p],o[p],c));return l.alpha=Cr(i.alpha,o.alpha,c),n.transform(l)}},Jx=e=>typeof e=="number",vG=(e,t)=>n=>t(e(n)),V0=(...e)=>e.reduce(vG);function DL(e,t){return Jx(e)?n=>Cr(e,t,n):co.test(e)?OL(e,t):ML(e,t)}const kL=(e,t)=>{const n=[...e],r=n.length,i=e.map((o,l)=>DL(o,t[l]));return o=>{for(let l=0;l<r;l++)n[l]=i[l](o);return n}},yG=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=DL(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}};function RL(e){const t=$l.parse(e),n=t.length;let r=0,i=0,o=0;for(let l=0;l<n;l++)r||typeof t[l]=="number"?r++:t[l].hue!==void 0?o++:i++;return{parsed:t,numNumbers:r,numRGB:i,numHSL:o}}const ML=(e,t)=>{const n=$l.createTransformer(t),r=RL(e),i=RL(t);return r.numHSL===i.numHSL&&r.numRGB===i.numRGB&&r.numNumbers>=i.numNumbers?V0(kL(r.parsed,i.parsed),n):l=>`${l>0?t:e}`},bG=(e,t)=>n=>Cr(e,t,n);function EG(e){if(typeof e=="number")return bG;if(typeof e=="string")return co.test(e)?OL:ML;if(Array.isArray(e))return kL;if(typeof e=="object")return yG}function SG(e,t,n){const r=[],i=n||EG(e[0]),o=e.length-1;for(let l=0;l<o;l++){let c=i(e[l],e[l+1]);if(t){const p=Array.isArray(t)?t[l]:t;c=V0(p,c)}r.push(c)}return r}function TG([e,t],[n]){return r=>n(Gm(e,t,r))}function xG(e,t){const n=e.length,r=n-1;return i=>{let o=0,l=!1;if(i<=e[0]?l=!0:i>=e[r]&&(o=r-1,l=!0),!l){let p=1;for(;p<n&&!(e[p]>i||p===r);p++);o=p-1}const c=Gm(e[o],e[o+1],i);return t[o](c)}}function ew(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;_0(o===t.length),_0(!r||!Array.isArray(r)||r.length===o-1),e[0]>e[o-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const l=SG(t,r,i),c=o===2?TG(e,l):xG(e,l);return n?p=>c(j0(e[0],e[o-1],p)):c}const U0=e=>t=>1-e(1-t),tw=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,wG=e=>t=>Math.pow(t,e),LL=e=>t=>t*t*((e+1)*t-e),CG=e=>{const t=LL(e);return n=>(n*=2)<1?.5*t(n):.5*(2-Math.pow(2,-10*(n-1)))},IL=1.525,_G=4/11,NG=8/11,AG=9/10,nw=e=>e,rw=wG(2),OG=U0(rw),FL=tw(rw),PL=e=>1-Math.sin(Math.acos(e)),iw=U0(PL),DG=tw(iw),ow=LL(IL),kG=U0(ow),RG=tw(ow),MG=CG(IL),LG=4356/361,IG=35442/1805,FG=16061/1805,q0=e=>{if(e===1||e===0)return e;const t=e*e;return e<_G?7.5625*t:e<NG?9.075*t-9.9*e+3.4:e<AG?LG*t-IG*e+FG:10.8*e*e-20.52*e+10.72},PG=U0(q0),jG=e=>e<.5?.5*(1-q0(1-e*2)):.5*q0(e*2-1)+.5;function VG(e,t){return e.map(()=>t||FL).splice(0,e.length-1)}function UG(e){const t=e.length;return e.map((n,r)=>r!==0?r/(t-1):0)}function qG(e,t){return e.map(n=>n*t)}function B0({from:e=0,to:t=1,ease:n,offset:r,duration:i=300}){const o={done:!1,value:e},l=Array.isArray(t)?t:[e,t],c=qG(r&&r.length===l.length?r:UG(l),i);function p(){return ew(c,l,{ease:Array.isArray(n)?n:VG(l,n)})}let d=p();return{next:m=>(o.value=d(m),o.done=m>=i,o),flipTarget:()=>{l.reverse(),d=p()}}}function BG({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:i=.5,modifyTarget:o}){const l={done:!1,value:t};let c=n*e;const p=t+c,d=o===void 0?p:o(p);return d!==p&&(c=d-t),{next:m=>{const E=-c*Math.exp(-m/r);return l.done=!(E>i||E<-i),l.value=l.done?d:d+E,l},flipTarget:()=>{}}}const jL={keyframes:B0,spring:Xx,decay:BG};function $G(e){if(Array.isArray(e.to))return B0;if(jL[e.type])return jL[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?B0:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?Xx:B0}const VL=1/60*1e3,zG=typeof performance<"u"?()=>performance.now():()=>Date.now(),UL=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(zG()),VL);function HG(e){let t=[],n=[],r=0,i=!1,o=!1;const l=new WeakSet,c={schedule:(p,d=!1,m=!1)=>{const E=m&&i,b=E?t:n;return d&&l.add(p),b.indexOf(p)===-1&&(b.push(p),E&&i&&(r=t.length)),p},cancel:p=>{const d=n.indexOf(p);d!==-1&&n.splice(d,1),l.delete(p)},process:p=>{if(i){o=!0;return}if(i=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let d=0;d<r;d++){const m=t[d];m(p),l.has(m)&&(c.schedule(m),e())}i=!1,o&&(o=!1,c.process(p))}};return c}const GG=40;let aw=!0,Ym=!1,sw=!1;const up={delta:0,timestamp:0},Wm=["read","update","preRender","render","postRender"],$0=Wm.reduce((e,t)=>(e[t]=HG(()=>Ym=!0),e),{}),fs=Wm.reduce((e,t)=>{const n=$0[t];return e[t]=(r,i=!1,o=!1)=>(Ym||WG(),n.schedule(r,i,o)),e},{}),cp=Wm.reduce((e,t)=>(e[t]=$0[t].cancel,e),{}),lw=Wm.reduce((e,t)=>(e[t]=()=>$0[t].process(up),e),{}),YG=e=>$0[e].process(up),qL=e=>{Ym=!1,up.delta=aw?VL:Math.max(Math.min(e-up.timestamp,GG),1),up.timestamp=e,sw=!0,Wm.forEach(YG),sw=!1,Ym&&(aw=!1,UL(qL))},WG=()=>{Ym=!0,aw=!0,sw||UL(qL)},z0=()=>up;function BL(e,t,n=0){return e-t-n}function QG(e,t,n=0,r=!0){return r?BL(t+-e,t,n):t-(e-t)+n}function KG(e,t,n,r){return r?e>=t+n:e<=-n}const XG=e=>{const t=({delta:n})=>e(n);return{start:()=>fs.update(t,!0),stop:()=>cp.update(t)}};function $L(e){var t,n,{from:r,autoplay:i=!0,driver:o=XG,elapsed:l=0,repeat:c=0,repeatType:p="loop",repeatDelay:d=0,onPlay:m,onStop:E,onComplete:b,onRepeat:y,onUpdate:x}=e,w=Yi(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:k}=w,N,A=0,O=w.duration,_,M=!1,j=!0,P;const F=$G(w);!((n=(t=F).needsInterpolation)===null||n===void 0)&&n.call(t,r,k)&&(P=ew([0,100],[r,k],{clamp:!1}),r=0,k=100);const V=F(Object.assign(Object.assign({},w),{from:r,to:k}));function $(){A++,p==="reverse"?(j=A%2===0,l=QG(l,O,d,j)):(l=BL(l,O,d),p==="mirror"&&V.flipTarget()),M=!1,y&&y()}function K(){N.stop(),b&&b()}function ee(W){if(j||(W=-W),l+=W,!M){const q=V.next(Math.max(0,l));_=q.value,P&&(_=P(_)),M=j?q.done:l<=0}x==null||x(_),M&&(A===0&&(O??(O=l)),A<c?KG(l,O,d,j)&&$():K())}function J(){m==null||m(),N=o(ee),N.start()}return i&&J(),{stop:()=>{E==null||E(),N.stop()}}}function zL(e,t){return t?e*(1e3/t):0}function ZG({from:e=0,velocity:t=0,min:n,max:r,power:i=.8,timeConstant:o=750,bounceStiffness:l=500,bounceDamping:c=10,restDelta:p=1,modifyTarget:d,driver:m,onUpdate:E,onComplete:b,onStop:y}){let x;function w(O){return n!==void 0&&O<n||r!==void 0&&O>r}function k(O){return n===void 0?r:r===void 0||Math.abs(n-O)<Math.abs(r-O)?n:r}function N(O){x==null||x.stop(),x=$L(Object.assign(Object.assign({},O),{driver:m,onUpdate:_=>{var M;E==null||E(_),(M=O.onUpdate)===null||M===void 0||M.call(O,_)},onComplete:b,onStop:y}))}function A(O){N(Object.assign({type:"spring",stiffness:l,damping:c,restDelta:p},O))}if(w(e))A({from:e,velocity:t,to:k(e)});else{let O=i*t+e;typeof d<"u"&&(O=d(O));const _=k(O),M=_===n?-1:1;let j,P;const F=V=>{j=P,P=V,t=zL(V-j,z0().delta),(M===1&&V>_||M===-1&&V<_)&&A({from:V,to:_,velocity:t})};N({type:"decay",from:e,velocity:t,timeConstant:o,power:i,restDelta:p,modifyTarget:d,onUpdate:w(O)?F:void 0})}return{stop:()=>x==null?void 0:x.stop()}}const uw=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),HL=e=>uw(e)&&e.hasOwnProperty("z"),H0=(e,t)=>Math.abs(e-t);function GL(e,t){if(Jx(e)&&Jx(t))return H0(e,t);if(uw(e)&&uw(t)){const n=H0(e.x,t.x),r=H0(e.y,t.y),i=HL(e)&&HL(t)?H0(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(i,2))}}const YL=(e,t)=>1-3*t+3*e,WL=(e,t)=>3*t-6*e,QL=e=>3*e,G0=(e,t,n)=>((YL(t,n)*e+WL(t,n))*e+QL(t))*e,KL=(e,t,n)=>3*YL(t,n)*e*e+2*WL(t,n)*e+QL(t),JG=1e-7,eY=10;function tY(e,t,n,r,i){let o,l,c=0;do l=t+(n-t)/2,o=G0(l,r,i)-e,o>0?n=l:t=l;while(Math.abs(o)>JG&&++c<eY);return l}const nY=8,rY=.001;function iY(e,t,n,r){for(let i=0;i<nY;++i){const o=KL(t,n,r);if(o===0)return t;const l=G0(t,n,r)-e;t-=l/o}return t}const Y0=11,W0=1/(Y0-1);function oY(e,t,n,r){if(e===t&&n===r)return nw;const i=new Float32Array(Y0);for(let l=0;l<Y0;++l)i[l]=G0(l*W0,e,n);function o(l){let c=0,p=1;const d=Y0-1;for(;p!==d&&i[p]<=l;++p)c+=W0;--p;const m=(l-i[p])/(i[p+1]-i[p]),E=c+m*W0,b=KL(E,e,n);return b>=rY?iY(l,E,e,n):b===0?E:tY(l,c,c+W0,e,n)}return l=>l===0||l===1?l:G0(o(l),t,r)}function aY(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,i=e.whileTap,o=e.visualElement,l=t||n||r||i,c=L.useRef(!1),p=L.useRef(null),d={passive:!(n||t||r||x)};function m(){var w;(w=p.current)===null||w===void 0||w.call(p),p.current=null}function E(){var w;return m(),c.current=!1,(w=o.animationState)===null||w===void 0||w.setActive(tr.Tap,!1),!SL()}function b(w,k){E()&&(xL(o.getInstance(),w.target)?t==null||t(w,k):r==null||r(w,k))}function y(w,k){E()&&(r==null||r(w,k))}function x(w,k){var N;m(),!c.current&&(c.current=!0,p.current=V0(lp(window,"pointerup",b,d),lp(window,"pointercancel",y,d)),(N=o.animationState)===null||N===void 0||N.setActive(tr.Tap,!0),n==null||n(w,k))}P0(o,"pointerdown",l?x:void 0,d),wL(m)}var XL=new Set;function sY(e,t,n){XL.has(t)||(console.warn(t),XL.add(t))}var cw=new WeakMap,fw=new WeakMap,lY=function(e){var t;(t=cw.get(e.target))===null||t===void 0||t(e)},uY=function(e){e.forEach(lY)};function cY(e){var t=e.root,n=Yi(e,["root"]),r=t||document;fw.has(r)||fw.set(r,{});var i=fw.get(r),o=JSON.stringify(n);return i[o]||(i[o]=new IntersectionObserver(uY,Ke({root:t},n))),i[o]}function fY(e,t,n){var r=cY(t);return cw.set(e,n),r.observe(e),function(){cw.delete(e),r.unobserve(e)}}function dY(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,i=e.onViewportLeave,o=e.viewport,l=o===void 0?{}:o,c=L.useRef({hasEnteredView:!1,isInView:!1}),p=!!(n||r||i);l.once&&c.current.hasEnteredView&&(p=!1);var d=typeof IntersectionObserver>"u"?mY:hY;d(p,c.current,t,l)}var pY={some:0,all:1};function hY(e,t,n,r){var i=r.root,o=r.margin,l=r.amount,c=l===void 0?"some":l,p=r.once;L.useEffect(function(){if(e){var d={root:i==null?void 0:i.current,rootMargin:o,threshold:typeof c=="number"?c:pY[c]},m=function(E){var b,y=E.isIntersecting;if(t.isInView!==y&&(t.isInView=y,!(p&&!y&&t.hasEnteredView))){y&&(t.hasEnteredView=!0),(b=n.animationState)===null||b===void 0||b.setActive(tr.InView,y);var x=n.getProps(),w=y?x.onViewportEnter:x.onViewportLeave;w==null||w(E)}};return fY(n.getInstance(),d,m)}},[e,i,o,c])}function mY(e,t,n,r){var i=r.fallback,o=i===void 0?!0:i;L.useEffect(function(){!e||!o||(RM!=="production"&&sY(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(function(){var l;t.hasEnteredView=!0;var c=n.getProps().onViewportEnter;c==null||c(null),(l=n.animationState)===null||l===void 0||l.setActive(tr.InView,!0)}))},[e])}var Ku=function(e){return function(t){return e(t),null}},gY={inView:Ku(dY),tap:Ku(aY),focus:Ku(WH),hover:Ku(iG)},vY=0,yY=function(){return vY++},bY=function(){return Yu(yY)};function ZL(){var e=L.useContext(O0);if(e===null)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,i=bY();L.useEffect(function(){return r(i)},[]);var o=function(){return n==null?void 0:n(i)};return!t&&n?[!1,o]:[!0]}function JL(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Q0=function(e){return e*1e3},EY={linear:nw,easeIn:rw,easeInOut:FL,easeOut:OG,circIn:PL,circInOut:DG,circOut:iw,backIn:ow,backInOut:RG,backOut:kG,anticipate:MG,bounceIn:PG,bounceInOut:jG,bounceOut:q0},eI=function(e){if(Array.isArray(e)){_0(e.length===4);var t=Er(e,4),n=t[0],r=t[1],i=t[2],o=t[3];return oY(n,r,i,o)}else if(typeof e=="string")return EY[e];return e},SY=function(e){return Array.isArray(e)&&typeof e[0]!="number"},tI=function(e,t){return e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&$l.test(t)&&!t.startsWith("url("))},If=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},K0=function(e){return{type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}},dw=function(){return{type:"keyframes",ease:"linear",duration:.3}},TY=function(e){return{type:"keyframes",duration:.8,values:e}},nI={x:If,y:If,z:If,rotate:If,rotateX:If,rotateY:If,rotateZ:If,scaleX:K0,scaleY:K0,scale:K0,opacity:dw,backgroundColor:dw,color:dw,default:K0},xY=function(e,t){var n;return Hm(t)?n=TY:n=nI[e]||nI.default,Ke({to:t},n(t))},wY=Ke(Ke({},eL),{color:co,backgroundColor:co,outlineColor:co,fill:co,stroke:co,borderColor:co,borderTopColor:co,borderRightColor:co,borderBottomColor:co,borderLeftColor:co,filter:qx,WebkitFilter:qx}),pw=function(e){return wY[e]};function hw(e,t){var n,r=pw(e);return r!==qx&&(r=$l),(n=r.getAnimatableNone)===null||n===void 0?void 0:n.call(r,t)}function CY(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=Yi(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}function _Y(e){var t=e.ease,n=e.times,r=e.yoyo,i=e.flip,o=e.loop,l=Yi(e,["ease","times","yoyo","flip","loop"]),c=Ke({},l);return n&&(c.offset=n),l.duration&&(c.duration=Q0(l.duration)),l.repeatDelay&&(c.repeatDelay=Q0(l.repeatDelay)),t&&(c.ease=SY(t)?t.map(eI):eI(t)),l.type==="tween"&&(c.type="keyframes"),(r||o||i)&&(r?c.repeatType="reverse":o?c.repeatType="loop":i&&(c.repeatType="mirror"),c.repeat=o||r||i||l.repeat),l.type!=="spring"&&(c.type="keyframes"),c}function NY(e,t){var n,r,i=mw(e,t)||{};return(r=(n=i.delay)!==null&&n!==void 0?n:e.delay)!==null&&r!==void 0?r:0}function AY(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=as([],Er(e.to),!1),e.to[0]=e.from),e}function OY(e,t,n){var r;return Array.isArray(t.to)&&((r=e.duration)!==null&&r!==void 0||(e.duration=.8)),AY(t),CY(e)||(e=Ke(Ke({},e),xY(n,t.to))),Ke(Ke({},t),_Y(e))}function DY(e,t,n,r,i){var o,l=mw(r,e),c=(o=l.from)!==null&&o!==void 0?o:t.get(),p=tI(e,n);c==="none"&&p&&typeof n=="string"?c=hw(e,n):rI(c)&&typeof n=="string"?c=iI(n):!Array.isArray(n)&&rI(n)&&typeof c=="string"&&(n=iI(c));var d=tI(e,c);function m(){var b={from:c,to:n,velocity:t.getVelocity(),onComplete:i,onUpdate:function(y){return t.set(y)}};return l.type==="inertia"||l.type==="decay"?ZG(Ke(Ke({},b),l)):$L(Ke(Ke({},OY(l,b,e)),{onUpdate:function(y){var x;b.onUpdate(y),(x=l.onUpdate)===null||x===void 0||x.call(l,y)},onComplete:function(){var y;b.onComplete(),(y=l.onComplete)===null||y===void 0||y.call(l)}}))}function E(){var b,y,x=cL(n);return t.set(x),i(),(b=l==null?void 0:l.onUpdate)===null||b===void 0||b.call(l,x),(y=l==null?void 0:l.onComplete)===null||y===void 0||y.call(l),{stop:function(){}}}return!d||!p||l.type===!1?E:m}function rI(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function iI(e){return typeof e=="number"?0:hw("",e)}function mw(e,t){return e[t]||e.default||e}function gw(e,t,n,r){return r===void 0&&(r={}),t.start(function(i){var o,l,c=DY(e,t,n,r,i),p=NY(r,e),d=function(){return l=c()};return p?o=window.setTimeout(d,Q0(p)):d(),function(){clearTimeout(o),l==null||l.stop()}})}var kY=function(e){return/^\-?\d*\.?\d+$/.test(e)},RY=function(e){return/^0[^.\s]+$/.test(e)};function vw(e,t){e.indexOf(t)===-1&&e.push(t)}function yw(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}function MY(e,t,n){var r=Er(e),i=r.slice(0),o=t<0?i.length+t:t;if(o>=0&&o<i.length){var l=n<0?i.length+n:n,c=Er(i.splice(t,1),1),p=c[0];i.splice(l,0,p)}return i}var Qm=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(t){var n=this;return vw(this.subscriptions,t),function(){return yw(n.subscriptions,t)}},e.prototype.notify=function(t,n,r){var i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(var o=0;o<i;o++){var l=this.subscriptions[o];l&&l(t,n,r)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),LY=function(e){return!isNaN(parseFloat(e))},IY=function(){function e(t){var n=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new Qm,this.velocityUpdateSubscribers=new Qm,this.renderSubscribers=new Qm,this.canTrackVelocity=!1,this.updateAndNotify=function(r,i){i===void 0&&(i=!0),n.prev=n.current,n.current=r;var o=z0(),l=o.delta,c=o.timestamp;n.lastUpdated!==c&&(n.timeDelta=l,n.lastUpdated=c,fs.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),i&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return fs.postRender(n.velocityCheck)},this.velocityCheck=function(r){var i=r.timestamp;i!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=LY(this.current)}return e.prototype.onChange=function(t){return this.updateSubscribers.add(t)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(t){return t(this.get()),this.renderSubscribers.add(t)},e.prototype.attach=function(t){this.passiveEffect=t},e.prototype.set=function(t,n){n===void 0&&(n=!0),!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?zL(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(t){var n=this;return this.stop(),new Promise(function(r){n.hasAnimated=!0,n.stopAnimation=t(r)}).then(function(){return n.clearAnimation()})},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function Ff(e){return new IY(e)}var oI=function(e){return function(t){return t.test(e)}},FY={test:function(e){return e==="auto"},parse:function(e){return e}},aI=[Mf,It,Ks,Wu,SH,EH,FY],Km=function(e){return aI.find(oI(e))},PY=as(as([],Er(aI),!1),[co,$l],!1),jY=function(e){return PY.find(oI(e))};function VY(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ff(n))}function UY(e,t){var n=D0(e,t),r=n?e.makeTargetAnimatable(n,!1):{},i=r.transitionEnd,o=i===void 0?{}:i;r.transition;var l=Yi(r,["transitionEnd","transition"]);l=Ke(Ke({},l),o);for(var c in l){var p=cL(l[c]);VY(e,c,p)}}function qY(e,t,n){var r,i,o,l,c=Object.keys(t).filter(function(y){return!e.hasValue(y)}),p=c.length;if(p)for(var d=0;d<p;d++){var m=c[d],E=t[m],b=null;Array.isArray(E)&&(b=E[0]),b===null&&(b=(i=(r=n[m])!==null&&r!==void 0?r:e.readValue(m))!==null&&i!==void 0?i:t[m]),b!=null&&(typeof b=="string"&&(kY(b)||RY(b))?b=parseFloat(b):!jY(b)&&$l.test(E)&&(b=hw(m,E)),e.addValue(m,Ff(b)),(o=(l=n)[m])!==null&&o!==void 0||(l[m]=b),e.setBaseTarget(m,b))}}function BY(e,t){if(t){var n=t[e]||t.default||t;return n.from}}function $Y(e,t,n){var r,i,o={};for(var l in e)o[l]=(r=BY(l,t))!==null&&r!==void 0?r:(i=n.getValue(l))===null||i===void 0?void 0:i.get();return o}function zY(e,t,n){n===void 0&&(n={}),e.notifyAnimationStart(t);var r;if(Array.isArray(t)){var i=t.map(function(l){return bw(e,l,n)});r=Promise.all(i)}else if(typeof t=="string")r=bw(e,t,n);else{var o=typeof t=="function"?D0(e,t,n.custom):t;r=sI(e,o,n)}return r.then(function(){return e.notifyAnimationComplete(t)})}function bw(e,t,n){var r;n===void 0&&(n={});var i=D0(e,t,n.custom),o=(i||{}).transition,l=o===void 0?e.getDefaultTransition()||{}:o;n.transitionOverride&&(l=n.transitionOverride);var c=i?function(){return sI(e,i,n)}:function(){return Promise.resolve()},p=!((r=e.variantChildren)===null||r===void 0)&&r.size?function(y){y===void 0&&(y=0);var x=l.delayChildren,w=x===void 0?0:x,k=l.staggerChildren,N=l.staggerDirection;return HY(e,t,w+y,k,N,n)}:function(){return Promise.resolve()},d=l.when;if(d){var m=Er(d==="beforeChildren"?[c,p]:[p,c],2),E=m[0],b=m[1];return E().then(b)}else return Promise.all([c(),p(n.delay)])}function sI(e,t,n){var r,i=n===void 0?{}:n,o=i.delay,l=o===void 0?0:o,c=i.transitionOverride,p=i.type,d=e.makeTargetAnimatable(t),m=d.transition,E=m===void 0?e.getDefaultTransition():m,b=d.transitionEnd,y=Yi(d,["transition","transitionEnd"]);c&&(E=c);var x=[],w=p&&((r=e.animationState)===null||r===void 0?void 0:r.getState()[p]);for(var k in y){var N=e.getValue(k),A=y[k];if(!(!N||A===void 0||w&&YY(w,k))){var O=Ke({delay:l},E);e.shouldReduceMotion&&Vm(k)&&(O=Ke(Ke({},O),{type:!1,delay:0}));var _=gw(k,N,A,O);x.push(_)}}return Promise.all(x).then(function(){b&&UY(e,b)})}function HY(e,t,n,r,i,o){n===void 0&&(n=0),r===void 0&&(r=0),i===void 0&&(i=1);var l=[],c=(e.variantChildren.size-1)*r,p=i===1?function(d){return d===void 0&&(d=0),d*r}:function(d){return d===void 0&&(d=0),c-d*r};return Array.from(e.variantChildren).sort(GY).forEach(function(d,m){l.push(bw(d,t,Ke(Ke({},o),{delay:n+p(m)})).then(function(){return d.notifyAnimationComplete(t)}))}),Promise.all(l)}function GY(e,t){return e.sortNodePosition(t)}function YY(e,t){var n=e.protectedKeys,r=e.needsAnimating,i=n.hasOwnProperty(t)&&r[t]!==!0;return r[t]=!1,i}var Ew=[tr.Animate,tr.InView,tr.Focus,tr.Hover,tr.Tap,tr.Drag,tr.Exit],WY=as([],Er(Ew),!1).reverse(),QY=Ew.length;function KY(e){return function(t){return Promise.all(t.map(function(n){var r=n.animation,i=n.options;return zY(e,r,i)}))}}function XY(e){var t=KY(e),n=JY(),r={},i=!0,o=function(m,E){var b=D0(e,E);if(b){b.transition;var y=b.transitionEnd,x=Yi(b,["transition","transitionEnd"]);m=Ke(Ke(Ke({},m),x),y)}return m};function l(m){return r[m]!==void 0}function c(m){t=m(e)}function p(m,E){for(var b,y=e.getProps(),x=e.getVariantContext(!0)||{},w=[],k=new Set,N={},A=1/0,O=function(P){var F=WY[P],V=n[F],$=(b=y[F])!==null&&b!==void 0?b:x[F],K=cs($),ee=F===E?V.isActive:null;ee===!1&&(A=P);var J=$===x[F]&&$!==y[F]&&K;if(J&&i&&e.manuallyAnimateOnMount&&(J=!1),V.protectedKeys=Ke({},N),!V.isActive&&ee===null||!$&&!V.prevProp||Gx($)||typeof $=="boolean")return"continue";var W=ZY(V.prevProp,$),q=W||F===E&&V.isActive&&!J&&K||P>A&&K,te=Array.isArray($)?$:[$],re=te.reduce(o,{});ee===!1&&(re={});var ae=V.prevResolvedValues,fe=ae===void 0?{}:ae,Z=Ke(Ke({},fe),re),he=function(me){q=!0,k.delete(me),V.needsAnimating[me]=!0};for(var se in Z){var pe=re[se],ce=fe[se];N.hasOwnProperty(se)||(pe!==ce?Hm(pe)&&Hm(ce)?!JL(pe,ce)||W?he(se):V.protectedKeys[se]=!0:pe!==void 0?he(se):k.add(se):pe!==void 0&&k.has(se)?he(se):V.protectedKeys[se]=!0)}V.prevProp=$,V.prevResolvedValues=re,V.isActive&&(N=Ke(Ke({},N),re)),i&&e.blockInitialAnimation&&(q=!1),q&&!J&&w.push.apply(w,as([],Er(te.map(function(me){return{animation:me,options:Ke({type:F},m)}})),!1))},_=0;_<QY;_++)O(_);if(r=Ke({},N),k.size){var M={};k.forEach(function(P){var F=e.getBaseTarget(P);F!==void 0&&(M[P]=F)}),w.push({animation:M})}var j=!!w.length;return i&&y.initial===!1&&!e.manuallyAnimateOnMount&&(j=!1),i=!1,j?t(w):Promise.resolve()}function d(m,E,b){var y;if(n[m].isActive===E)return Promise.resolve();(y=e.variantChildren)===null||y===void 0||y.forEach(function(k){var N;return(N=k.animationState)===null||N===void 0?void 0:N.setActive(m,E)}),n[m].isActive=E;var x=p(b,m);for(var w in n)n[w].protectedKeys={};return x}return{isAnimated:l,animateChanges:p,setActive:d,setAnimateFunction:c,getState:function(){return n}}}function ZY(e,t){return typeof t=="string"?t!==e:FM(t)?!JL(t,e):!1}function Pf(e){return e===void 0&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function JY(){var e;return e={},e[tr.Animate]=Pf(!0),e[tr.InView]=Pf(),e[tr.Hover]=Pf(),e[tr.Tap]=Pf(),e[tr.Drag]=Pf(),e[tr.Focus]=Pf(),e[tr.Exit]=Pf(),e}var eW={animation:Ku(function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=XY(t)),Gx(n)&&L.useEffect(function(){return n.subscribe(t)},[n])}),exit:Ku(function(e){var t=e.custom,n=e.visualElement,r=Er(ZL(),2),i=r[0],o=r[1],l=L.useContext(O0);L.useEffect(function(){var c,p;n.isPresent=i;var d=(c=n.animationState)===null||c===void 0?void 0:c.setActive(tr.Exit,!i,{custom:(p=l==null?void 0:l.custom)!==null&&p!==void 0?p:t});!i&&(d==null||d.then(o))},[i])})},lI=function(){function e(t,n,r){var i=this,o=r===void 0?{}:r,l=o.transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(i.lastMoveEvent&&i.lastMoveEventInfo){var b=Tw(i.lastMoveEventInfo,i.history),y=i.startEvent!==null,x=GL(b.offset,{x:0,y:0})>=3;if(!(!y&&!x)){var w=b.point,k=z0().timestamp;i.history.push(Ke(Ke({},w),{timestamp:k}));var N=i.handlers,A=N.onStart,O=N.onMove;y||(A&&A(i.lastMoveEvent,b),i.startEvent=i.lastMoveEvent),O&&O(i.lastMoveEvent,b)}}},this.handlePointerMove=function(b,y){if(i.lastMoveEvent=b,i.lastMoveEventInfo=Sw(y,i.transformPagePoint),pL(b)&&b.buttons===0){i.handlePointerUp(b,y);return}fs.update(i.updatePoint,!0)},this.handlePointerUp=function(b,y){i.end();var x=i.handlers,w=x.onEnd,k=x.onSessionEnd,N=Tw(Sw(y,i.transformPagePoint),i.history);i.startEvent&&w&&w(b,N),k&&k(b,N)},!(hL(t)&&t.touches.length>1)){this.handlers=n,this.transformPagePoint=l;var c=Wx(t),p=Sw(c,this.transformPagePoint),d=p.point,m=z0().timestamp;this.history=[Ke(Ke({},d),{timestamp:m})];var E=n.onSessionStart;E&&E(t,Tw(p,this.history)),this.removeListeners=V0(lp(window,"pointermove",this.handlePointerMove),lp(window,"pointerup",this.handlePointerUp),lp(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(t){this.handlers=t},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),cp.update(this.updatePoint)},e}();function Sw(e,t){return t?{point:t(e.point)}:e}function uI(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Tw(e,t){var n=e.point;return{point:n,delta:uI(n,cI(t)),offset:uI(n,tW(t)),velocity:nW(t,.1)}}function tW(e){return e[0]}function cI(e){return e[e.length-1]}function nW(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,i=cI(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Q0(t)));)n--;if(!r)return{x:0,y:0};var o=(i.timestamp-r.timestamp)/1e3;if(o===0)return{x:0,y:0};var l={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function zl(e){return e.max-e.min}function fI(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=.01),GL(e,t)<n}function dI(e,t,n,r){r===void 0&&(r=.5),e.origin=r,e.originPoint=Cr(t.min,t.max,e.origin),e.scale=zl(n)/zl(t),(fI(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Cr(n.min,n.max,e.origin)-e.originPoint,(fI(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Xm(e,t,n,r){dI(e.x,t.x,n.x,r==null?void 0:r.originX),dI(e.y,t.y,n.y,r==null?void 0:r.originY)}function pI(e,t,n){e.min=n.min+t.min,e.max=e.min+zl(t)}function rW(e,t,n){pI(e.x,t.x,n.x),pI(e.y,t.y,n.y)}function hI(e,t,n){e.min=t.min-n.min,e.max=e.min+zl(t)}function Zm(e,t,n){hI(e.x,t.x,n.x),hI(e.y,t.y,n.y)}function iW(e,t,n){var r=t.min,i=t.max;return r!==void 0&&e<r?e=n?Cr(r,e,n.min):Math.max(e,r):i!==void 0&&e>i&&(e=n?Cr(i,e,n.max):Math.min(e,i)),e}function mI(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function oW(e,t){var n=t.top,r=t.left,i=t.bottom,o=t.right;return{x:mI(e.x,r,o),y:mI(e.y,n,i)}}function gI(e,t){var n,r=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&(n=Er([i,r],2),r=n[0],i=n[1]),{min:r,max:i}}function aW(e,t){return{x:gI(e.x,t.x),y:gI(e.y,t.y)}}function sW(e,t){var n=.5,r=zl(e),i=zl(t);return i>r?n=Gm(t.min,t.max-r,e.min):r>i&&(n=Gm(e.min,e.max-i,t.min)),j0(0,1,n)}function lW(e,t){var n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var xw=.35;function uW(e){return e===void 0&&(e=xw),e===!1?e=0:e===!0&&(e=xw),{x:vI(e,"left","right"),y:vI(e,"top","bottom")}}function vI(e,t,n){return{min:yI(e,t),max:yI(e,n)}}function yI(e,t){var n;return typeof e=="number"?e:(n=e[t])!==null&&n!==void 0?n:0}var bI=function(){return{translate:0,scale:1,origin:0,originPoint:0}},Jm=function(){return{x:bI(),y:bI()}},EI=function(){return{min:0,max:0}},Wi=function(){return{x:EI(),y:EI()}};function Xs(e){return[e("x"),e("y")]}function SI(e){var t=e.top,n=e.left,r=e.right,i=e.bottom;return{x:{min:n,max:r},y:{min:t,max:i}}}function cW(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}function fW(e,t){if(!t)return e;var n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function ww(e){return e===void 0||e===1}function TI(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!ww(t)||!ww(n)||!ww(r)}function Xu(e){return TI(e)||xI(e.x)||xI(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function xI(e){return e&&e!=="0%"}function X0(e,t,n){var r=e-n,i=t*r;return n+i}function wI(e,t,n,r,i){return i!==void 0&&(e=X0(e,i,r)),X0(e,n,r)+t}function Cw(e,t,n,r,i){t===void 0&&(t=0),n===void 0&&(n=1),e.min=wI(e.min,t,n,r,i),e.max=wI(e.max,t,n,r,i)}function CI(e,t){var n=t.x,r=t.y;Cw(e.x,n.translate,n.scale,n.originPoint),Cw(e.y,r.translate,r.scale,r.originPoint)}function dW(e,t,n,r){var i,o;r===void 0&&(r=!1);var l=n.length;if(l){t.x=t.y=1;for(var c,p,d=0;d<l;d++)c=n[d],p=c.projectionDelta,((o=(i=c.instance)===null||i===void 0?void 0:i.style)===null||o===void 0?void 0:o.display)!=="contents"&&(r&&c.options.layoutScroll&&c.scroll&&c!==c.root&&fp(e,{x:-c.scroll.x,y:-c.scroll.y}),p&&(t.x*=p.x.scale,t.y*=p.y.scale,CI(e,p)),r&&Xu(c.latestValues)&&fp(e,c.latestValues))}}function Zu(e,t){e.min=e.min+t,e.max=e.max+t}function _I(e,t,n){var r=Er(n,3),i=r[0],o=r[1],l=r[2],c=t[l]!==void 0?t[l]:.5,p=Cr(e.min,e.max,c);Cw(e,t[i],t[o],p,t.scale)}var pW=["x","scaleX","originX"],hW=["y","scaleY","originY"];function fp(e,t){_I(e.x,t,pW),_I(e.y,t,hW)}function NI(e,t){return SI(fW(e.getBoundingClientRect(),t))}function mW(e,t,n){var r=NI(e,n),i=t.scroll;return i&&(Zu(r.x,i.x),Zu(r.y,i.y)),r}var gW=new WeakMap,vW=function(){function e(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Wi(),this.visualElement=t}return e.prototype.start=function(t,n){var r=this,i=n===void 0?{}:n,o=i.snapToCursor,l=o===void 0?!1:o;if(this.visualElement.isPresent!==!1){var c=function(E){r.stopAnimation(),l&&r.snapToCursor(Wx(E,"page").point)},p=function(E,b){var y,x=r.getProps(),w=x.drag,k=x.dragPropagation,N=x.onDragStart;w&&!k&&(r.openGlobalLock&&r.openGlobalLock(),r.openGlobalLock=EL(w),!r.openGlobalLock)||(r.isDragging=!0,r.currentDirection=null,r.resolveConstraints(),r.visualElement.projection&&(r.visualElement.projection.isAnimationBlocked=!0,r.visualElement.projection.target=void 0),Xs(function(A){var O,_,M=r.getAxisMotionValue(A).get()||0;if(Ks.test(M)){var j=(_=(O=r.visualElement.projection)===null||O===void 0?void 0:O.layout)===null||_===void 0?void 0:_.actual[A];if(j){var P=zl(j);M=P*(parseFloat(M)/100)}}r.originPoint[A]=M}),N==null||N(E,b),(y=r.visualElement.animationState)===null||y===void 0||y.setActive(tr.Drag,!0))},d=function(E,b){var y=r.getProps(),x=y.dragPropagation,w=y.dragDirectionLock,k=y.onDirectionLock,N=y.onDrag;if(!(!x&&!r.openGlobalLock)){var A=b.offset;if(w&&r.currentDirection===null){r.currentDirection=yW(A),r.currentDirection!==null&&(k==null||k(r.currentDirection));return}r.updateAxis("x",b.point,A),r.updateAxis("y",b.point,A),r.visualElement.syncRender(),N==null||N(E,b)}},m=function(E,b){return r.stop(E,b)};this.panSession=new lI(t,{onSessionStart:c,onStart:p,onMove:d,onSessionEnd:m},{transformPagePoint:this.visualElement.getTransformPagePoint()})}},e.prototype.stop=function(t,n){var r=this.isDragging;if(this.cancel(),!!r){var i=n.velocity;this.startAnimation(i);var o=this.getProps().onDragEnd;o==null||o(t,n)}},e.prototype.cancel=function(){var t,n;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(t=this.panSession)===null||t===void 0||t.end(),this.panSession=void 0;var r=this.getProps().dragPropagation;!r&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(n=this.visualElement.animationState)===null||n===void 0||n.setActive(tr.Drag,!1)},e.prototype.updateAxis=function(t,n,r){var i=this.getProps().drag;if(!(!r||!Z0(t,i,this.currentDirection))){var o=this.getAxisMotionValue(t),l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=iW(l,this.constraints[t],this.elastic[t])),o.set(l)}},e.prototype.resolveConstraints=function(){var t=this,n=this.getProps(),r=n.dragConstraints,i=n.dragElastic,o=(this.visualElement.projection||{}).layout,l=this.constraints;r&&sp(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&o?this.constraints=oW(o.actual,r):this.constraints=!1,this.elastic=uW(i),l!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Xs(function(c){t.getAxisMotionValue(c)&&(t.constraints[c]=lW(o.actual[c],t.constraints[c]))})},e.prototype.resolveRefConstraints=function(){var t=this.getProps(),n=t.dragConstraints,r=t.onMeasureDragConstraints;if(!n||!sp(n))return!1;var i=n.current,o=this.visualElement.projection;if(!o||!o.layout)return!1;var l=mW(i,o.root,this.visualElement.getTransformPagePoint()),c=aW(o.layout.actual,l);if(r){var p=r(cW(c));this.hasMutatedConstraints=!!p,p&&(c=SI(p))}return c},e.prototype.startAnimation=function(t){var n=this,r=this.getProps(),i=r.drag,o=r.dragMomentum,l=r.dragElastic,c=r.dragTransition,p=r.dragSnapToOrigin,d=r.onDragTransitionEnd,m=this.constraints||{},E=Xs(function(b){var y;if(Z0(b,i,n.currentDirection)){var x=(y=m==null?void 0:m[b])!==null&&y!==void 0?y:{};p&&(x={min:0,max:0});var w=l?200:1e6,k=l?40:1e7,N=Ke(Ke({type:"inertia",velocity:o?t[b]:0,bounceStiffness:w,bounceDamping:k,timeConstant:750,restDelta:1,restSpeed:10},c),x);return n.startAxisValueAnimation(b,N)}});return Promise.all(E).then(d)},e.prototype.startAxisValueAnimation=function(t,n){var r=this.getAxisMotionValue(t);return gw(t,r,0,n)},e.prototype.stopAnimation=function(){var t=this;Xs(function(n){return t.getAxisMotionValue(n).stop()})},e.prototype.getAxisMotionValue=function(t){var n,r,i="_drag"+t.toUpperCase(),o=this.visualElement.getProps()[i];return o||this.visualElement.getValue(t,(r=(n=this.visualElement.getProps().initial)===null||n===void 0?void 0:n[t])!==null&&r!==void 0?r:0)},e.prototype.snapToCursor=function(t){var n=this;Xs(function(r){var i=n.getProps().drag;if(Z0(r,i,n.currentDirection)){var o=n.visualElement.projection,l=n.getAxisMotionValue(r);if(o&&o.layout){var c=o.layout.actual[r],p=c.min,d=c.max;l.set(t[r]-Cr(p,d,.5))}}})},e.prototype.scalePositionWithinConstraints=function(){var t=this,n,r=this.getProps(),i=r.drag,o=r.dragConstraints,l=this.visualElement.projection;if(!(!sp(o)||!l||!this.constraints)){this.stopAnimation();var c={x:0,y:0};Xs(function(d){var m=t.getAxisMotionValue(d);if(m){var E=m.get();c[d]=sW({min:E,max:E},t.constraints[d])}});var p=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=p?p({},""):"none",(n=l.root)===null||n===void 0||n.updateScroll(),l.updateLayout(),this.resolveConstraints(),Xs(function(d){if(Z0(d,i,null)){var m=t.getAxisMotionValue(d),E=t.constraints[d],b=E.min,y=E.max;m.set(Cr(b,y,c[d]))}})}},e.prototype.addListeners=function(){var t=this,n;gW.set(this.visualElement,this);var r=this.visualElement.getInstance(),i=lp(r,"pointerdown",function(d){var m=t.getProps(),E=m.drag,b=m.dragListener,y=b===void 0?!0:b;E&&y&&t.start(d)}),o=function(){var d=t.getProps().dragConstraints;sp(d)&&(t.constraints=t.resolveRefConstraints())},l=this.visualElement.projection,c=l.addEventListener("measure",o);l&&!l.layout&&((n=l.root)===null||n===void 0||n.updateScroll(),l.updateLayout()),o();var p=F0(window,"resize",function(){return t.scalePositionWithinConstraints()});return l.addEventListener("didUpdate",function(d){var m=d.delta,E=d.hasLayoutChanged;t.isDragging&&E&&(Xs(function(b){var y=t.getAxisMotionValue(b);y&&(t.originPoint[b]+=m[b].translate,y.set(y.get()+m[b].translate))}),t.visualElement.syncRender())}),function(){p(),i(),c()}},e.prototype.getProps=function(){var t=this.visualElement.getProps(),n=t.drag,r=n===void 0?!1:n,i=t.dragDirectionLock,o=i===void 0?!1:i,l=t.dragPropagation,c=l===void 0?!1:l,p=t.dragConstraints,d=p===void 0?!1:p,m=t.dragElastic,E=m===void 0?xw:m,b=t.dragMomentum,y=b===void 0?!0:b;return Ke(Ke({},t),{drag:r,dragDirectionLock:o,dragPropagation:c,dragConstraints:d,dragElastic:E,dragMomentum:y})},e}();function Z0(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function yW(e,t){t===void 0&&(t=10);var n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}function bW(e){var t=e.dragControls,n=e.visualElement,r=Yu(function(){return new vW(n)});L.useEffect(function(){return t&&t.subscribe(r)},[r,t]),L.useEffect(function(){return r.addListeners()},[r])}function EW(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,i=e.onPanSessionStart,o=e.visualElement,l=t||n||r||i,c=L.useRef(null),p=L.useContext(N0).transformPagePoint,d={onSessionStart:i,onStart:n,onMove:t,onEnd:function(E,b){c.current=null,r&&r(E,b)}};L.useEffect(function(){c.current!==null&&c.current.updateHandlers(d)});function m(E){c.current=new lI(E,d,{transformPagePoint:p})}P0(o,"pointerdown",l&&m),wL(function(){return c.current&&c.current.end()})}var SW={pan:Ku(EW),drag:Ku(bW)},J0=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"];function TW(){var e=J0.map(function(){return new Qm}),t={},n={clearAllListeners:function(){return e.forEach(function(r){return r.clear()})},updatePropListeners:function(r){J0.forEach(function(i){var o,l="on"+i,c=r[l];(o=t[i])===null||o===void 0||o.call(t),c&&(t[i]=n[l](c))})}};return e.forEach(function(r,i){n["on"+J0[i]]=function(o){return r.add(o)},n["notify"+J0[i]]=function(){for(var o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];return r.notify.apply(r,as([],Er(o),!1))}}),n}function xW(e,t,n){var r;for(var i in t){var o=t[i],l=n[i];if(Qs(o))e.addValue(i,o);else if(Qs(l))e.addValue(i,Ff(o));else if(l!==o)if(e.hasValue(i)){var c=e.getValue(i);!c.hasAnimated&&c.set(o)}else e.addValue(i,Ff((r=e.getStaticValue(i))!==null&&r!==void 0?r:o))}for(var i in n)t[i]===void 0&&e.removeValue(i);return t}var AI=function(e){var t=e.treeType,n=t===void 0?"":t,r=e.build,i=e.getBaseTarget,o=e.makeTargetAnimatable,l=e.measureViewportBox,c=e.render,p=e.readValueFromInstance,d=e.removeValueFromRenderState,m=e.sortNodePosition,E=e.scrapeMotionValuesFromProps;return function(b,y){var x=b.parent,w=b.props,k=b.presenceId,N=b.blockInitialAnimation,A=b.visualState,O=b.shouldReduceMotion;y===void 0&&(y={});var _=!1,M=A.latestValues,j=A.renderState,P,F=TW(),V=new Map,$=new Map,K={},ee=Ke({},M),J;function W(){!P||!_||(q(),c(P,j,w.style,pe.projection))}function q(){r(pe,j,M,y,w)}function te(){F.notifyUpdate(M)}function re(ce,me){var Se=me.onChange(function(Ge){M[ce]=Ge,w.onUpdate&&fs.update(te,!1,!0)}),je=me.onRenderRequest(pe.scheduleRender);$.set(ce,function(){Se(),je()})}var ae=E(w);for(var fe in ae){var Z=ae[fe];M[fe]!==void 0&&Qs(Z)&&Z.set(M[fe],!1)}var he=k0(w),se=jM(w),pe=Ke(Ke({treeType:n,current:null,depth:x?x.depth+1:0,parent:x,children:new Set,presenceId:k,shouldReduceMotion:O,variantChildren:se?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:!!(x!=null&&x.isMounted()),blockInitialAnimation:N,isMounted:function(){return!!P},mount:function(ce){_=!0,P=pe.current=ce,pe.projection&&pe.projection.mount(ce),se&&x&&!he&&(J=x==null?void 0:x.addVariantChild(pe)),V.forEach(function(me,Se){return re(Se,me)}),x==null||x.children.add(pe),pe.setProps(w)},unmount:function(){var ce;(ce=pe.projection)===null||ce===void 0||ce.unmount(),cp.update(te),cp.render(W),$.forEach(function(me){return me()}),J==null||J(),x==null||x.children.delete(pe),F.clearAllListeners(),P=void 0,_=!1},addVariantChild:function(ce){var me,Se=pe.getClosestVariantNode();if(Se)return(me=Se.variantChildren)===null||me===void 0||me.add(ce),function(){return Se.variantChildren.delete(ce)}},sortNodePosition:function(ce){return!m||n!==ce.treeType?0:m(pe.getInstance(),ce.getInstance())},getClosestVariantNode:function(){return se?pe:x==null?void 0:x.getClosestVariantNode()},getLayoutId:function(){return w.layoutId},getInstance:function(){return P},getStaticValue:function(ce){return M[ce]},setStaticValue:function(ce,me){return M[ce]=me},getLatestValues:function(){return M},setVisibility:function(ce){pe.isVisible!==ce&&(pe.isVisible=ce,pe.scheduleRender())},makeTargetAnimatable:function(ce,me){return me===void 0&&(me=!0),o(pe,ce,w,me)},measureViewportBox:function(){return l(P,w)},addValue:function(ce,me){pe.hasValue(ce)&&pe.removeValue(ce),V.set(ce,me),M[ce]=me.get(),re(ce,me)},removeValue:function(ce){var me;V.delete(ce),(me=$.get(ce))===null||me===void 0||me(),$.delete(ce),delete M[ce],d(ce,j)},hasValue:function(ce){return V.has(ce)},getValue:function(ce,me){var Se=V.get(ce);return Se===void 0&&me!==void 0&&(Se=Ff(me),pe.addValue(ce,Se)),Se},forEachValue:function(ce){return V.forEach(ce)},readValue:function(ce){var me;return(me=M[ce])!==null&&me!==void 0?me:p(P,ce,y)},setBaseTarget:function(ce,me){ee[ce]=me},getBaseTarget:function(ce){if(i){var me=i(w,ce);if(me!==void 0&&!Qs(me))return me}return ee[ce]}},F),{build:function(){return q(),j},scheduleRender:function(){fs.render(W,!1,!0)},syncRender:W,setProps:function(ce){(ce.transformTemplate||w.transformTemplate)&&pe.scheduleRender(),w=ce,F.updatePropListeners(ce),K=xW(pe,E(w),K)},getProps:function(){return w},getVariant:function(ce){var me;return(me=w.variants)===null||me===void 0?void 0:me[ce]},getDefaultTransition:function(){return w.transition},getTransformPagePoint:function(){return w.transformPagePoint},getVariantContext:function(ce){if(ce===void 0&&(ce=!1),ce)return x==null?void 0:x.getVariantContext();if(!he){var me=(x==null?void 0:x.getVariantContext())||{};return w.initial!==void 0&&(me.initial=w.initial),me}for(var Se={},je=0;je<wW;je++){var Ge=OI[je],Ye=w[Ge];(cs(Ye)||Ye===!1)&&(Se[Ge]=Ye)}return Se}});return pe}},OI=as(["initial"],Er(Ew),!1),wW=OI.length;function _w(e){return typeof e=="string"&&e.startsWith("var(--")}var DI=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function CW(e){var t=DI.exec(e);if(!t)return[,];var n=Er(t,3),r=n[1],i=n[2];return[r,i]}function Nw(e,t,n){var r=Er(CW(e),2),i=r[0],o=r[1];if(i){var l=window.getComputedStyle(t).getPropertyValue(i);return l?l.trim():_w(o)?Nw(o,t):o}}function _W(e,t,n){var r,i=Yi(t,[]),o=e.getInstance();if(!(o instanceof Element))return{target:i,transitionEnd:n};n&&(n=Ke({},n)),e.forEachValue(function(d){var m=d.get();if(_w(m)){var E=Nw(m,o);E&&d.set(E)}});for(var l in i){var c=i[l];if(_w(c)){var p=Nw(c,o);p&&(i[l]=p,n&&((r=n[l])!==null&&r!==void 0||(n[l]=c)))}}return{target:i,transitionEnd:n}}var NW=new Set(["width","height","top","left","right","bottom","x","y"]),kI=function(e){return NW.has(e)},AW=function(e){return Object.keys(e).some(kI)},RI=function(e,t){e.set(t,!1),e.set(t)},MI=function(e){return e===Mf||e===It},LI;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(LI||(LI={}));var II=function(e,t){return parseFloat(e.split(", ")[t])},FI=function(e,t){return function(n,r){var i=r.transform;if(i==="none"||!i)return 0;var o=i.match(/^matrix3d\((.+)\)$/);if(o)return II(o[1],t);var l=i.match(/^matrix\((.+)\)$/);return l?II(l[1],e):0}},OW=new Set(["x","y","z"]),DW=jm.filter(function(e){return!OW.has(e)});function kW(e){var t=[];return DW.forEach(function(n){var r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t.length&&e.syncRender(),t}var PI={width:function(e,t){var n=e.x,r=t.paddingLeft,i=r===void 0?"0":r,o=t.paddingRight,l=o===void 0?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(l)},height:function(e,t){var n=e.y,r=t.paddingTop,i=r===void 0?"0":r,o=t.paddingBottom,l=o===void 0?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(l)},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:FI(4,13),y:FI(5,14)},RW=function(e,t,n){var r=t.measureViewportBox(),i=t.getInstance(),o=getComputedStyle(i),l=o.display,c={};l==="none"&&t.setStaticValue("display",e.display||"block"),n.forEach(function(d){c[d]=PI[d](r,o)}),t.syncRender();var p=t.measureViewportBox();return n.forEach(function(d){var m=t.getValue(d);RI(m,c[d]),e[d]=PI[d](p,o)}),e},MW=function(e,t,n,r){n===void 0&&(n={}),r===void 0&&(r={}),t=Ke({},t),r=Ke({},r);var i=Object.keys(t).filter(kI),o=[],l=!1,c=[];if(i.forEach(function(m){var E=e.getValue(m);if(e.hasValue(m)){var b=n[m],y=Km(b),x=t[m],w;if(Hm(x)){var k=x.length,N=x[0]===null?1:0;b=x[N],y=Km(b);for(var A=N;A<k;A++)w?_0(Km(x[A])===w):w=Km(x[A])}else w=Km(x);if(y!==w)if(MI(y)&&MI(w)){var O=E.get();typeof O=="string"&&E.set(parseFloat(O)),typeof x=="string"?t[m]=parseFloat(x):Array.isArray(x)&&w===It&&(t[m]=x.map(parseFloat))}else y!=null&&y.transform&&(w!=null&&w.transform)&&(b===0||x===0)?b===0?E.set(w.transform(b)):t[m]=y.transform(x):(l||(o=kW(e),l=!0),c.push(m),r[m]=r[m]!==void 0?r[m]:t[m],RI(E,x))}}),c.length){var p=c.indexOf("height")>=0?window.pageYOffset:null,d=RW(t,e,c);return o.length&&o.forEach(function(m){var E=Er(m,2),b=E[0],y=E[1];e.getValue(b).set(y)}),e.syncRender(),p!==null&&window.scrollTo({top:p}),{target:d,transitionEnd:r}}else return{target:t,transitionEnd:r}};function LW(e,t,n,r){return AW(t)?MW(e,t,n,r):{target:t,transitionEnd:r}}var IW=function(e,t,n,r){var i=_W(e,t,r);return t=i.target,r=i.transitionEnd,LW(e,t,n,r)};function FW(e){return window.getComputedStyle(e)}var jI={treeType:"dom",readValueFromInstance:function(e,t){if(Vm(t)){var n=pw(t);return n&&n.default||0}else{var r=FW(e);return(zM(t)?r.getPropertyValue(t):r[t])||0}},sortNodePosition:function(e,t){return e.compareDocumentPosition(t)&2?1:-1},getBaseTarget:function(e,t){var n;return(n=e.style)===null||n===void 0?void 0:n[t]},measureViewportBox:function(e,t){var n=t.transformPagePoint;return NI(e,n)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var i=n.transformValues;r===void 0&&(r=!0);var o=t.transition,l=t.transitionEnd,c=Yi(t,["transition","transitionEnd"]),p=$Y(c,o||{},e);if(i&&(l&&(l=i(l)),c&&(c=i(c)),p&&(p=i(p))),r){qY(e,c,p);var d=IW(e,c,p,l);l=d.transitionEnd,c=d.target}return Ke({transition:o,transitionEnd:l},c)},scrapeMotionValuesFromProps:Hx,build:function(e,t,n,r,i){e.isVisible!==void 0&&(t.style.visibility=e.isVisible?"visible":"hidden"),Bx(t,n,r,i.transformTemplate)},render:aL},PW=AI(jI),jW=AI(Ke(Ke({},jI),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return Vm(t)?((n=pw(t))===null||n===void 0?void 0:n.default)||0:(t=sL.has(t)?t:oL(t),e.getAttribute(t))},scrapeMotionValuesFromProps:uL,build:function(e,t,n,r,i){zx(t,n,r,i.transformTemplate)},render:lL})),VW=function(e,t){return Ix(e)?jW(t,{enableHardwareAcceleration:!1}):PW(t,{enableHardwareAcceleration:!0})};function VI(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var eg={correct:function(e,t){if(!t.target)return e;if(typeof e=="string")if(It.test(e))e=parseFloat(e);else return e;var n=VI(e,t.target.x),r=VI(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},UI="_$css",UW={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,i=e,o=e.includes("var("),l=[];o&&(e=e.replace(DI,function(w){return l.push(w),UI}));var c=$l.parse(e);if(c.length>5)return i;var p=$l.createTransformer(e),d=typeof c[0]!="number"?1:0,m=r.x.scale*n.x,E=r.y.scale*n.y;c[0+d]/=m,c[1+d]/=E;var b=Cr(m,E,.5);typeof c[2+d]=="number"&&(c[2+d]/=b),typeof c[3+d]=="number"&&(c[3+d]/=b);var y=p(c);if(o){var x=0;y=y.replace(UI,function(){var w=l[x];return x++,w})}return y}},qW=function(e){lk(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.componentDidMount=function(){var n=this,r=this.props,i=r.visualElement,o=r.layoutGroup,l=r.switchLayoutGroup,c=r.layoutId,p=i.projection;cH($W),p&&(o!=null&&o.group&&o.group.add(p),l!=null&&l.register&&c&&l.register(p),p.root.didUpdate(),p.addEventListener("animationComplete",function(){n.safeToRemove()}),p.setOptions(Ke(Ke({},p.options),{onExitComplete:function(){return n.safeToRemove()}}))),Pm.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(n){var r=this,i=this.props,o=i.layoutDependency,l=i.visualElement,c=i.drag,p=i.isPresent,d=l.projection;return d&&(d.isPresent=p,c||n.layoutDependency!==o||o===void 0?d.willUpdate():this.safeToRemove(),n.isPresent!==p&&(p?d.promote():d.relegate()||fs.postRender(function(){var m;!((m=d.getStack())===null||m===void 0)&&m.members.length||r.safeToRemove()}))),null},t.prototype.componentDidUpdate=function(){var n=this.props.visualElement.projection;n&&(n.root.didUpdate(),!n.currentAnimation&&n.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var n=this.props,r=n.visualElement,i=n.layoutGroup,o=n.switchLayoutGroup,l=r.projection;l&&(l.scheduleCheckAfterUnmount(),i!=null&&i.group&&i.group.remove(l),o!=null&&o.deregister&&o.deregister(l))},t.prototype.safeToRemove=function(){var n=this.props.safeToRemove;n==null||n()},t.prototype.render=function(){return null},t}(Ae.Component);function BW(e){var t=Er(ZL(),2),n=t[0],r=t[1],i=L.useContext(UM);return Ae.createElement(qW,Ke({},e,{layoutGroup:i,switchLayoutGroup:L.useContext(qM),isPresent:n,safeToRemove:r}))}var $W={borderRadius:Ke(Ke({},eg),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:eg,borderTopRightRadius:eg,borderBottomLeftRadius:eg,borderBottomRightRadius:eg,boxShadow:UW},zW={measureLayout:BW};function HW(e,t,n){n===void 0&&(n={});var r=Qs(e)?e:Ff(e);return gw("",r,t,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}var qI=["TopLeft","TopRight","BottomLeft","BottomRight"],GW=qI.length,BI=function(e){return typeof e=="string"?parseFloat(e):e},$I=function(e){return typeof e=="number"||It.test(e)};function YW(e,t,n,r,i,o){var l,c,p,d;i?(e.opacity=Cr(0,(l=n.opacity)!==null&&l!==void 0?l:1,WW(r)),e.opacityExit=Cr((c=t.opacity)!==null&&c!==void 0?c:1,0,QW(r))):o&&(e.opacity=Cr((p=t.opacity)!==null&&p!==void 0?p:1,(d=n.opacity)!==null&&d!==void 0?d:1,r));for(var m=0;m<GW;m++){var E="border".concat(qI[m],"Radius"),b=zI(t,E),y=zI(n,E);if(!(b===void 0&&y===void 0)){b||(b=0),y||(y=0);var x=b===0||y===0||$I(b)===$I(y);x?(e[E]=Math.max(Cr(BI(b),BI(y),r),0),(Ks.test(y)||Ks.test(b))&&(e[E]+="%")):e[E]=y}}(t.rotate||n.rotate)&&(e.rotate=Cr(t.rotate||0,n.rotate||0,r))}function zI(e,t){var n;return(n=e[t])!==null&&n!==void 0?n:e.borderRadius}var WW=HI(0,.5,iw),QW=HI(.5,.95,nw);function HI(e,t,n){return function(r){return r<e?0:r>t?1:n(Gm(e,t,r))}}function GI(e,t){e.min=t.min,e.max=t.max}function ds(e,t){GI(e.x,t.x),GI(e.y,t.y)}function YI(e,t,n,r,i){return e-=t,e=X0(e,1/n,r),i!==void 0&&(e=X0(e,1/i,r)),e}function KW(e,t,n,r,i,o,l){if(t===void 0&&(t=0),n===void 0&&(n=1),r===void 0&&(r=.5),o===void 0&&(o=e),l===void 0&&(l=e),Ks.test(t)){t=parseFloat(t);var c=Cr(l.min,l.max,t/100);t=c-l.min}if(typeof t=="number"){var p=Cr(o.min,o.max,r);e===o&&(p-=t),e.min=YI(e.min,t,n,p,i),e.max=YI(e.max,t,n,p,i)}}function WI(e,t,n,r,i){var o=Er(n,3),l=o[0],c=o[1],p=o[2];KW(e,t[l],t[c],t[p],t.scale,r,i)}var XW=["x","scaleX","originX"],ZW=["y","scaleY","originY"];function QI(e,t,n,r){WI(e.x,t,XW,n==null?void 0:n.x,r==null?void 0:r.x),WI(e.y,t,ZW,n==null?void 0:n.y,r==null?void 0:r.y)}function KI(e){return e.translate===0&&e.scale===1}function XI(e){return KI(e.x)&&KI(e.y)}function ZI(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var JW=function(){function e(){this.members=[]}return e.prototype.add=function(t){vw(this.members,t),t.scheduleRender()},e.prototype.remove=function(t){if(yw(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){var n=this.members[this.members.length-1];n&&this.promote(n)}},e.prototype.relegate=function(t){var n=this.members.findIndex(function(l){return t===l});if(n===0)return!1;for(var r,i=n;i>=0;i--){var o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1},e.prototype.promote=function(t,n){var r,i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,n&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues,t.snapshot.isShared=!0),!((r=t.root)===null||r===void 0)&&r.isUpdating&&(t.isLayoutDirty=!0);var o=t.options.crossfade;o===!1&&i.hide()}},e.prototype.exitAnimationComplete=function(){this.members.forEach(function(t){var n,r,i,o,l;(r=(n=t.options).onExitComplete)===null||r===void 0||r.call(n),(l=(i=t.resumingFrom)===null||i===void 0?void 0:(o=i.options).onExitComplete)===null||l===void 0||l.call(o)})},e.prototype.scheduleRender=function(){this.members.forEach(function(t){t.instance&&t.scheduleRender(!1)})},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}(),eQ="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function JI(e,t,n){var r=e.x.translate/t.x,i=e.y.translate/t.y,o="translate3d(".concat(r,"px, ").concat(i,"px, 0) ");if(o+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var l=n.rotate,c=n.rotateX,p=n.rotateY;l&&(o+="rotate(".concat(l,"deg) ")),c&&(o+="rotateX(".concat(c,"deg) ")),p&&(o+="rotateY(".concat(p,"deg) "))}var d=e.x.scale*t.x,m=e.y.scale*t.y;return o+="scale(".concat(d,", ").concat(m,")"),o===eQ?"none":o}var tQ=function(e,t){return e.depth-t.depth},nQ=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(t){vw(this.children,t),this.isDirty=!0},e.prototype.remove=function(t){yw(this.children,t),this.isDirty=!0},e.prototype.forEach=function(t){this.isDirty&&this.children.sort(tQ),this.isDirty=!1,this.children.forEach(t)},e}(),e3=1e3;function t3(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,i=e.checkIsScrollRoot,o=e.resetTransform;return function(){function l(c,p,d){var m=this;p===void 0&&(p={}),d===void 0&&(d=n==null?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){m.isUpdating&&(m.isUpdating=!1,m.clearAllSnapshots())},this.updateProjection=function(){m.nodes.forEach(lQ),m.nodes.forEach(uQ)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=c,this.latestValues=p,this.root=d?d.root||d:this,this.path=d?as(as([],Er(d.path),!1),[d],!1):[],this.parent=d,this.depth=d?d.depth+1:0,c&&this.root.registerPotentialNode(c,this);for(var E=0;E<this.path.length;E++)this.path[E].shouldResetTransform=!0;this.root===this&&(this.nodes=new nQ)}return l.prototype.addEventListener=function(c,p){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new Qm),this.eventHandlers.get(c).add(p)},l.prototype.notifyListeners=function(c){for(var p=[],d=1;d<arguments.length;d++)p[d-1]=arguments[d];var m=this.eventHandlers.get(c);m==null||m.notify.apply(m,as([],Er(p),!1))},l.prototype.hasListeners=function(c){return this.eventHandlers.has(c)},l.prototype.registerPotentialNode=function(c,p){this.potentialNodes.set(c,p)},l.prototype.mount=function(c,p){var d=this,m;if(p===void 0&&(p=!1),!this.instance){this.isSVG=c instanceof SVGElement&&c.tagName!=="svg",this.instance=c;var E=this.options,b=E.layoutId,y=E.layout,x=E.visualElement;if(x&&!x.getInstance()&&x.mount(c),this.root.nodes.add(this),(m=this.parent)===null||m===void 0||m.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),p&&(y||b)&&(this.isLayoutDirty=!0),t){var w,k=function(){return d.root.updateBlockedByResize=!1};t(c,function(){d.root.updateBlockedByResize=!0,clearTimeout(w),w=window.setTimeout(k,250),Pm.hasAnimatedSinceResize&&(Pm.hasAnimatedSinceResize=!1,d.nodes.forEach(sQ))})}b&&this.root.registerSharedNode(b,this),this.options.animate!==!1&&x&&(b||y)&&this.addEventListener("didUpdate",function(N){var A,O,_,M,j,P=N.delta,F=N.hasLayoutChanged,V=N.hasRelativeTargetChanged,$=N.layout;if(d.isTreeAnimationBlocked()){d.target=void 0,d.relativeTarget=void 0;return}var K=(O=(A=d.options.transition)!==null&&A!==void 0?A:x.getDefaultTransition())!==null&&O!==void 0?O:hQ,ee=x.getProps(),J=ee.onLayoutAnimationStart,W=ee.onLayoutAnimationComplete,q=!d.targetLayout||!ZI(d.targetLayout,$)||V,te=!F&&V;if(!((_=d.resumeFrom)===null||_===void 0)&&_.instance||te||F&&(q||!d.currentAnimation)){d.resumeFrom&&(d.resumingFrom=d.resumeFrom,d.resumingFrom.resumingFrom=void 0),d.setAnimationOrigin(P,te);var re=Ke(Ke({},mw(K,"layout")),{onPlay:J,onComplete:W});x.shouldReduceMotion&&(re.delay=0,re.type=!1),d.startAnimation(re)}else!F&&d.animationProgress===0&&d.finishAnimation(),d.isLead()&&((j=(M=d.options).onExitComplete)===null||j===void 0||j.call(M));d.targetLayout=$})}},l.prototype.unmount=function(){var c,p;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(c=this.getStack())===null||c===void 0||c.remove(this),(p=this.parent)===null||p===void 0||p.children.delete(this),this.instance=void 0,cp.preRender(this.updateProjection)},l.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},l.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},l.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},l.prototype.isTreeAnimationBlocked=function(){var c;return this.isAnimationBlocked||((c=this.parent)===null||c===void 0?void 0:c.isTreeAnimationBlocked())||!1},l.prototype.startUpdate=function(){var c;this.isUpdateBlocked()||(this.isUpdating=!0,(c=this.nodes)===null||c===void 0||c.forEach(cQ))},l.prototype.willUpdate=function(c){var p,d,m;if(c===void 0&&(c=!0),this.root.isUpdateBlocked()){(d=(p=this.options).onExitComplete)===null||d===void 0||d.call(p);return}if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var E=0;E<this.path.length;E++){var b=this.path[E];b.shouldResetTransform=!0,b.updateScroll()}var y=this.options,x=y.layoutId,w=y.layout;if(!(x===void 0&&!w)){var k=(m=this.options.visualElement)===null||m===void 0?void 0:m.getProps().transformTemplate;this.prevTransformTemplateValue=k==null?void 0:k(this.latestValues,""),this.updateSnapshot(),c&&this.notifyListeners("willUpdate")}}},l.prototype.didUpdate=function(){var c=this.isUpdateBlocked();if(c){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(n3);return}this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(mQ),this.potentialNodes.clear()),this.nodes.forEach(aQ),this.nodes.forEach(rQ),this.nodes.forEach(iQ),this.clearAllSnapshots(),lw.update(),lw.preRender(),lw.render())},l.prototype.clearAllSnapshots=function(){this.nodes.forEach(oQ),this.sharedNodes.forEach(fQ)},l.prototype.scheduleUpdateProjection=function(){fs.preRender(this.updateProjection,!1,!0)},l.prototype.scheduleCheckAfterUnmount=function(){var c=this;fs.postRender(function(){c.isLayoutDirty?c.root.didUpdate():c.root.checkUpdateFailed()})},l.prototype.updateSnapshot=function(){if(!(this.snapshot||!this.instance)){var c=this.measure(),p=this.removeTransform(this.removeElementScroll(c));a3(p),this.snapshot={measured:c,layout:p,latestValues:{}}}},l.prototype.updateLayout=function(){var c;if(this.instance&&(this.updateScroll(),!(!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))){if(this.resumeFrom&&!this.resumeFrom.instance)for(var p=0;p<this.path.length;p++){var d=this.path[p];d.updateScroll()}var m=this.measure();a3(m);var E=this.layout;this.layout={measured:m,actual:this.removeElementScroll(m)},this.layoutCorrected=Wi(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),(c=this.options.visualElement)===null||c===void 0||c.notifyLayoutMeasure(this.layout.actual,E==null?void 0:E.actual)}},l.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=i(this.instance),this.scroll=r(this.instance))},l.prototype.resetTransform=function(){var c;if(o){var p=this.isLayoutDirty||this.shouldResetTransform,d=this.projectionDelta&&!XI(this.projectionDelta),m=(c=this.options.visualElement)===null||c===void 0?void 0:c.getProps().transformTemplate,E=m==null?void 0:m(this.latestValues,""),b=E!==this.prevTransformTemplateValue;p&&(d||Xu(this.latestValues)||b)&&(o(this.instance,E),this.shouldResetTransform=!1,this.scheduleRender())}},l.prototype.measure=function(){var c=this.options.visualElement;if(!c)return Wi();var p=c.measureViewportBox(),d=this.root.scroll;return d&&(Zu(p.x,d.x),Zu(p.y,d.y)),p},l.prototype.removeElementScroll=function(c){var p=Wi();ds(p,c);for(var d=0;d<this.path.length;d++){var m=this.path[d],E=m.scroll,b=m.options,y=m.isScrollRoot;if(m!==this.root&&E&&b.layoutScroll){if(y){ds(p,c);var x=this.root.scroll;x&&(Zu(p.x,-x.x),Zu(p.y,-x.y))}Zu(p.x,E.x),Zu(p.y,E.y)}}return p},l.prototype.applyTransform=function(c,p){p===void 0&&(p=!1);var d=Wi();ds(d,c);for(var m=0;m<this.path.length;m++){var E=this.path[m];!p&&E.options.layoutScroll&&E.scroll&&E!==E.root&&fp(d,{x:-E.scroll.x,y:-E.scroll.y}),Xu(E.latestValues)&&fp(d,E.latestValues)}return Xu(this.latestValues)&&fp(d,this.latestValues),d},l.prototype.removeTransform=function(c){var p,d=Wi();ds(d,c);for(var m=0;m<this.path.length;m++){var E=this.path[m];if(E.instance&&Xu(E.latestValues)){TI(E.latestValues)&&E.updateSnapshot();var b=Wi(),y=E.measure();ds(b,y),QI(d,E.latestValues,(p=E.snapshot)===null||p===void 0?void 0:p.layout,b)}}return Xu(this.latestValues)&&QI(d,this.latestValues),d},l.prototype.setTargetDelta=function(c){this.targetDelta=c,this.root.scheduleUpdateProjection()},l.prototype.setOptions=function(c){var p;this.options=Ke(Ke(Ke({},this.options),c),{crossfade:(p=c.crossfade)!==null&&p!==void 0?p:!0})},l.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},l.prototype.resolveTargetDelta=function(){var c,p=this.options,d=p.layout,m=p.layoutId;!this.layout||!(d||m)||(!this.targetDelta&&!this.relativeTarget&&(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget=Wi(),this.relativeTargetOrigin=Wi(),Zm(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),ds(this.relativeTarget,this.relativeTargetOrigin))),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Wi(),this.targetWithTransforms=Wi()),this.relativeTarget&&this.relativeTargetOrigin&&(!((c=this.relativeParent)===null||c===void 0)&&c.target)?rW(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.actual):ds(this.target,this.layout.actual),CI(this.target,this.targetDelta)):ds(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&!!this.relativeParent.resumingFrom==!!this.resumingFrom&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget=Wi(),this.relativeTargetOrigin=Wi(),Zm(this.relativeTargetOrigin,this.target,this.relativeParent.target),ds(this.relativeTarget,this.relativeTargetOrigin)))))},l.prototype.getClosestProjectingParent=function(){if(!(!this.parent||Xu(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},l.prototype.calcProjection=function(){var c,p=this.options,d=p.layout,m=p.layoutId;if(this.isTreeAnimating=!!(!((c=this.parent)===null||c===void 0)&&c.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!(!this.layout||!(d||m))){var E=this.getLead();ds(this.layoutCorrected,this.layout.actual),dW(this.layoutCorrected,this.treeScale,this.path,!!this.resumingFrom||this!==E);var b=E.target;if(b){this.projectionDelta||(this.projectionDelta=Jm(),this.projectionDeltaWithTransform=Jm());var y=this.treeScale.x,x=this.treeScale.y,w=this.projectionTransform;Xm(this.projectionDelta,this.layoutCorrected,b,this.latestValues),this.projectionTransform=JI(this.projectionDelta,this.treeScale),(this.projectionTransform!==w||this.treeScale.x!==y||this.treeScale.y!==x)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",b))}}},l.prototype.hide=function(){this.isVisible=!1},l.prototype.show=function(){this.isVisible=!0},l.prototype.scheduleRender=function(c){var p,d,m;c===void 0&&(c=!0),(d=(p=this.options).scheduleRender)===null||d===void 0||d.call(p),c&&((m=this.getStack())===null||m===void 0||m.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},l.prototype.setAnimationOrigin=function(c,p){var d=this,m;p===void 0&&(p=!1);var E=this.snapshot,b=(E==null?void 0:E.latestValues)||{},y=Ke({},this.latestValues),x=Jm();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!p;var w=Wi(),k=E==null?void 0:E.isShared,N=(((m=this.getStack())===null||m===void 0?void 0:m.members.length)||0)<=1,A=!!(k&&!N&&this.options.crossfade===!0&&!this.path.some(pQ));this.animationProgress=0,this.mixTargetDelta=function(O){var _,M=O/1e3;r3(x.x,c.x,M),r3(x.y,c.y,M),d.setTargetDelta(x),d.relativeTarget&&d.relativeTargetOrigin&&d.layout&&(!((_=d.relativeParent)===null||_===void 0)&&_.layout)&&(Zm(w,d.layout.actual,d.relativeParent.layout.actual),dQ(d.relativeTarget,d.relativeTargetOrigin,w,M)),k&&(d.animationValues=y,YW(y,b,d.latestValues,M,A,N)),d.root.scheduleUpdateProjection(),d.scheduleRender(),d.animationProgress=M},this.mixTargetDelta(0)},l.prototype.startAnimation=function(c){var p=this,d,m;this.notifyListeners("animationStart"),(d=this.currentAnimation)===null||d===void 0||d.stop(),this.resumingFrom&&((m=this.resumingFrom.currentAnimation)===null||m===void 0||m.stop()),this.pendingAnimation&&(cp.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=fs.update(function(){Pm.hasAnimatedSinceResize=!0,p.currentAnimation=HW(0,e3,Ke(Ke({},c),{onUpdate:function(E){var b;p.mixTargetDelta(E),(b=c.onUpdate)===null||b===void 0||b.call(c,E)},onComplete:function(){var E;(E=c.onComplete)===null||E===void 0||E.call(c),p.completeAnimation()}})),p.resumingFrom&&(p.resumingFrom.currentAnimation=p.currentAnimation),p.pendingAnimation=void 0})},l.prototype.completeAnimation=function(){var c;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(c=this.getStack())===null||c===void 0||c.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},l.prototype.finishAnimation=function(){var c;this.currentAnimation&&((c=this.mixTargetDelta)===null||c===void 0||c.call(this,e3),this.currentAnimation.stop()),this.completeAnimation()},l.prototype.applyTransformsToTarget=function(){var c=this.getLead(),p=c.targetWithTransforms,d=c.target,m=c.layout,E=c.latestValues;!p||!d||!m||(ds(p,d),fp(p,E),Xm(this.projectionDeltaWithTransform,this.layoutCorrected,p,E))},l.prototype.registerSharedNode=function(c,p){var d,m,E;this.sharedNodes.has(c)||this.sharedNodes.set(c,new JW);var b=this.sharedNodes.get(c);b.add(p),p.promote({transition:(d=p.options.initialPromotionConfig)===null||d===void 0?void 0:d.transition,preserveFollowOpacity:(E=(m=p.options.initialPromotionConfig)===null||m===void 0?void 0:m.shouldPreserveFollowOpacity)===null||E===void 0?void 0:E.call(m,p)})},l.prototype.isLead=function(){var c=this.getStack();return c?c.lead===this:!0},l.prototype.getLead=function(){var c,p=this.options.layoutId;return p?((c=this.getStack())===null||c===void 0?void 0:c.lead)||this:this},l.prototype.getPrevLead=function(){var c,p=this.options.layoutId;return p?(c=this.getStack())===null||c===void 0?void 0:c.prevLead:void 0},l.prototype.getStack=function(){var c=this.options.layoutId;if(c)return this.root.sharedNodes.get(c)},l.prototype.promote=function(c){var p=c===void 0?{}:c,d=p.needsReset,m=p.transition,E=p.preserveFollowOpacity,b=this.getStack();b&&b.promote(this,E),d&&(this.projectionDelta=void 0,this.needsReset=!0),m&&this.setOptions({transition:m})},l.prototype.relegate=function(){var c=this.getStack();return c?c.relegate(this):!1},l.prototype.resetRotation=function(){var c=this.options.visualElement;if(c){for(var p=!1,d={},m=0;m<Fx.length;m++){var E=Fx[m],b="rotate"+E;c.getStaticValue(b)&&(p=!0,d[b]=c.getStaticValue(b),c.setStaticValue(b,0))}if(p){c==null||c.syncRender();for(var b in d)c.setStaticValue(b,d[b]);c.scheduleRender()}}},l.prototype.getProjectionStyles=function(c){var p,d,m,E,b,y;c===void 0&&(c={});var x={};if(!this.instance||this.isSVG)return x;if(this.isVisible)x.visibility="";else return{visibility:"hidden"};var w=(p=this.options.visualElement)===null||p===void 0?void 0:p.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,x.opacity="",x.pointerEvents=I0(c.pointerEvents)||"",x.transform=w?w(this.latestValues,""):"none",x;var k=this.getLead();if(!this.projectionDelta||!this.layout||!k.target){var N={};return this.options.layoutId&&(N.opacity=(d=this.latestValues.opacity)!==null&&d!==void 0?d:1,N.pointerEvents=I0(c.pointerEvents)||""),this.hasProjected&&!Xu(this.latestValues)&&(N.transform=w?w({},""):"none",this.hasProjected=!1),N}var A=k.animationValues||k.latestValues;this.applyTransformsToTarget(),x.transform=JI(this.projectionDeltaWithTransform,this.treeScale,A),w&&(x.transform=w(A,x.transform));var O=this.projectionDelta,_=O.x,M=O.y;x.transformOrigin="".concat(_.origin*100,"% ").concat(M.origin*100,"% 0"),k.animationValues?x.opacity=k===this?(E=(m=A.opacity)!==null&&m!==void 0?m:this.latestValues.opacity)!==null&&E!==void 0?E:1:this.preserveOpacity?this.latestValues.opacity:A.opacityExit:x.opacity=k===this?(b=A.opacity)!==null&&b!==void 0?b:"":(y=A.opacityExit)!==null&&y!==void 0?y:0;for(var j in R0)if(A[j]!==void 0){var P=R0[j],F=P.correct,V=P.applyTo,$=F(A[j],k);if(V)for(var K=V.length,ee=0;ee<K;ee++)x[V[ee]]=$;else x[j]=$}return this.options.layoutId&&(x.pointerEvents=k===this?I0(c.pointerEvents)||"":"none"),x},l.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},l.prototype.resetTree=function(){this.root.nodes.forEach(function(c){var p;return(p=c.currentAnimation)===null||p===void 0?void 0:p.stop()}),this.root.nodes.forEach(n3),this.root.sharedNodes.clear()},l}()}function rQ(e){e.updateLayout()}function iQ(e){var t,n,r,i,o=(n=(t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)!==null&&n!==void 0?n:e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){var l=e.layout,c=l.actual,p=l.measured;e.options.animationType==="size"?Xs(function(A){var O=o.isShared?o.measured[A]:o.layout[A],_=zl(O);O.min=c[A].min,O.max=O.min+_}):e.options.animationType==="position"&&Xs(function(A){var O=o.isShared?o.measured[A]:o.layout[A],_=zl(c[A]);O.max=O.min+_});var d=Jm();Xm(d,c,o.layout);var m=Jm();o.isShared?Xm(m,e.applyTransform(p,!0),o.measured):Xm(m,c,o.layout);var E=!XI(d),b=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var y=e.relativeParent,x=y.snapshot,w=y.layout;if(x&&w){var k=Wi();Zm(k,o.layout,x.layout);var N=Wi();Zm(N,c,w.actual),ZI(k,N)||(b=!0)}}e.notifyListeners("didUpdate",{layout:c,snapshot:o,delta:m,layoutDelta:d,hasLayoutChanged:E,hasRelativeTargetChanged:b})}else e.isLead()&&((i=(r=e.options).onExitComplete)===null||i===void 0||i.call(r));e.options.transition=void 0}function oQ(e){e.clearSnapshot()}function n3(e){e.clearMeasurements()}function aQ(e){var t=e.options.visualElement;t!=null&&t.getProps().onBeforeLayoutMeasure&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function sQ(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function lQ(e){e.resolveTargetDelta()}function uQ(e){e.calcProjection()}function cQ(e){e.resetRotation()}function fQ(e){e.removeLeadSnapshot()}function r3(e,t,n){e.translate=Cr(t.translate,0,n),e.scale=Cr(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function i3(e,t,n,r){e.min=Cr(t.min,n.min,r),e.max=Cr(t.max,n.max,r)}function dQ(e,t,n,r){i3(e.x,t.x,n.x,r),i3(e.y,t.y,n.y,r)}function pQ(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var hQ={duration:.45,ease:[.4,0,.1,1]};function mQ(e,t){for(var n=e.root,r=e.path.length-1;r>=0;r--)if(e.path[r].instance){n=e.path[r];break}var i=n&&n!==e.root?n.instance:document,o=i.querySelector('[data-projection-id="'.concat(t,'"]'));o&&e.mount(o,!0)}function o3(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function a3(e){o3(e.x),o3(e.y)}var gQ=t3({attachResizeListener:function(e,t){return F0(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),Aw={current:void 0},vQ=t3({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!Aw.current){var e=new gQ(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Aw.current=e}return Aw.current},resetTransform:function(e,t){e.style.transform=t??"none"},checkIsScrollRoot:function(e){return window.getComputedStyle(e).position==="fixed"}}),yQ=Ke(Ke(Ke(Ke({},eW),gY),SW),zW),s3=lH(function(e,t){return YH(e,t,yQ,VW,vQ)}),l3=L.createContext(null);function bQ(e,t,n,r){if(!r)return e;var i=e.findIndex(function(m){return m.value===t});if(i===-1)return e;var o=r>0?1:-1,l=e[i+o];if(!l)return e;var c=e[i],p=l.layout,d=Cr(p.min,p.max,.5);return o===1&&c.layout.max+n>d||o===-1&&c.layout.min+n<d?MY(e,i,i+o):e}function EQ(e,t){var n=e.children,r=e.as,i=r===void 0?"ul":r,o=e.axis,l=o===void 0?"y":o,c=e.onReorder,p=e.values,d=Yi(e,["children","as","axis","onReorder","values"]),m=Yu(function(){return s3(i)}),E=[],b=L.useRef(!1),y={axis:l,registerItem:function(x,w){w&&E.findIndex(function(k){return x===k.value})===-1&&(E.push({value:x,layout:w[l]}),E.sort(xQ))},updateOrder:function(x,w,k){if(!b.current){var N=bQ(E,x,w,k);E!==N&&(b.current=!0,c(N.map(TQ).filter(function(A){return p.indexOf(A)!==-1})))}}};return L.useEffect(function(){b.current=!1}),L.createElement(m,Ke({},d,{ref:t}),L.createElement(l3.Provider,{value:y},n))}var SQ=L.forwardRef(EQ);function TQ(e){return e.value}function xQ(e,t){return e.layout.min-t.layout.min}function u3(e){var t=Yu(function(){return Ff(e)}),n=L.useContext(N0).isStatic;if(n){var r=Er(L.useState(e),2),i=r[1];L.useEffect(function(){return t.onChange(i)},[])}return t}var wQ=function(e){return typeof e=="object"&&e.mix},CQ=function(e){return wQ(e)?e.mix:void 0};function _Q(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=!Array.isArray(e[0]),r=n?0:-1,i=e[0+r],o=e[1+r],l=e[2+r],c=e[3+r],p=ew(o,l,Ke({mixer:CQ(l[0])},c));return n?p(i):p}function NQ(e,t){Mx(function(){var n=e.map(function(r){return r.onChange(t)});return function(){return n.forEach(function(r){return r()})}})}function AQ(e,t){var n=u3(t()),r=function(){return n.set(t())};return r(),NQ(e,function(){return fs.update(r,!1,!0)}),n}function OQ(e,t,n,r){var i=typeof t=="function"?t:_Q(t,n,r);return Array.isArray(e)?c3(e,i):c3([e],function(o){var l=Er(o,1),c=l[0];return i(c)})}function c3(e,t){var n=Yu(function(){return[]});return AQ(e,function(){n.length=0;for(var r=e.length,i=0;i<r;i++)n[i]=e[i].get();return t(n)})}function f3(e,t){return t===void 0&&(t=0),Qs(e)?e:u3(t)}function DQ(e,t){var n=e.children,r=e.style,i=e.value,o=e.as,l=o===void 0?"li":o,c=e.onDrag,p=e.layout,d=p===void 0?!0:p,m=Yi(e,["children","style","value","as","onDrag","layout"]),E=Yu(function(){return s3(l)}),b=L.useContext(l3),y={x:f3(r==null?void 0:r.x),y:f3(r==null?void 0:r.y)},x=OQ([y.x,y.y],function(_){var M=Er(_,2),j=M[0],P=M[1];return j||P?1:"unset"}),w=L.useRef(null),k=b,N=k.axis,A=k.registerItem,O=k.updateOrder;return L.useEffect(function(){A(i,w.current)},[b]),L.createElement(E,Ke({drag:N},m,{dragSnapToOrigin:!0,style:Ke(Ke({},r),{x:y.x,y:y.y,zIndex:x}),layout:d,onDrag:function(_,M){var j=M.velocity;j[N]&&O(i,y[N].get(),j[N]),c==null||c(_,M)},onLayoutMeasure:function(_){w.current=_},ref:t}),n)}var kQ=L.forwardRef(DQ),d3={Group:SQ,Item:kQ},[eb,wje]=_f("Tooltip",[v0]),tb=v0(),p3="TooltipProvider",RQ=700,Ow="tooltip.open",[MQ,Dw]=eb(p3),h3=e=>{const{__scopeTooltip:t,delayDuration:n=RQ,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:o}=e,l=L.useRef(!0),c=L.useRef(!1),p=L.useRef(0);return L.useEffect(()=>{const d=p.current;return()=>window.clearTimeout(d)},[]),Y.jsx(MQ,{scope:t,isOpenDelayedRef:l,delayDuration:n,onOpen:L.useCallback(()=>{window.clearTimeout(p.current),l.current=!1},[]),onClose:L.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>l.current=!0,r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:L.useCallback(d=>{c.current=d},[]),disableHoverableContent:i,children:o})};h3.displayName=p3;var tg="Tooltip",[LQ,ng]=eb(tg),m3=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:o,disableHoverableContent:l,delayDuration:c}=e,p=Dw(tg,e.__scopeTooltip),d=tb(t),[m,E]=L.useState(null),b=Nf(),y=L.useRef(0),x=l??p.disableHoverableContent,w=c??p.delayDuration,k=L.useRef(!1),[N,A]=Wy({prop:r,defaultProp:i??!1,onChange:P=>{P?(p.onOpen(),document.dispatchEvent(new CustomEvent(Ow))):p.onClose(),o==null||o(P)},caller:tg}),O=L.useMemo(()=>N?k.current?"delayed-open":"instant-open":"closed",[N]),_=L.useCallback(()=>{window.clearTimeout(y.current),y.current=0,k.current=!1,A(!0)},[A]),M=L.useCallback(()=>{window.clearTimeout(y.current),y.current=0,A(!1)},[A]),j=L.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{k.current=!0,A(!0),y.current=0},w)},[w,A]);return L.useEffect(()=>()=>{y.current&&(window.clearTimeout(y.current),y.current=0)},[]),Y.jsx(g2,{...d,children:Y.jsx(LQ,{scope:t,contentId:b,open:N,stateAttribute:O,trigger:m,onTriggerChange:E,onTriggerEnter:L.useCallback(()=>{p.isOpenDelayedRef.current?j():_()},[p.isOpenDelayedRef,j,_]),onTriggerLeave:L.useCallback(()=>{x?M():(window.clearTimeout(y.current),y.current=0)},[M,x]),onOpen:_,onClose:M,disableHoverableContent:x,children:n})})};m3.displayName=tg;var kw="TooltipTrigger",g3=L.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=ng(kw,n),o=Dw(kw,n),l=tb(n),c=L.useRef(null),p=ui(t,c,i.onTriggerChange),d=L.useRef(!1),m=L.useRef(!1),E=L.useCallback(()=>d.current=!1,[]);return L.useEffect(()=>()=>document.removeEventListener("pointerup",E),[E]),Y.jsx(v2,{asChild:!0,...l,children:Y.jsx(Mr.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:p,onPointerMove:$t(e.onPointerMove,b=>{b.pointerType!=="touch"&&!m.current&&!o.isPointerInTransitRef.current&&(i.onTriggerEnter(),m.current=!0)}),onPointerLeave:$t(e.onPointerLeave,()=>{i.onTriggerLeave(),m.current=!1}),onPointerDown:$t(e.onPointerDown,()=>{i.open&&i.onClose(),d.current=!0,document.addEventListener("pointerup",E,{once:!0})}),onFocus:$t(e.onFocus,()=>{d.current||i.onOpen()}),onBlur:$t(e.onBlur,i.onClose),onClick:$t(e.onClick,i.onClose)})})});g3.displayName=kw;var Rw="TooltipPortal",[IQ,FQ]=eb(Rw,{forceMount:void 0}),v3=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,o=ng(Rw,t);return Y.jsx(IQ,{scope:t,forceMount:n,children:Y.jsx(Bs,{present:n||o.open,children:Y.jsx(Xy,{asChild:!0,container:i,children:r})})})};v3.displayName=Rw;var dp="TooltipContent",y3=L.forwardRef((e,t)=>{const n=FQ(dp,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=e,l=ng(dp,e.__scopeTooltip);return Y.jsx(Bs,{present:r||l.open,children:l.disableHoverableContent?Y.jsx(b3,{side:i,...o,ref:t}):Y.jsx(PQ,{side:i,...o,ref:t})})}),PQ=L.forwardRef((e,t)=>{const n=ng(dp,e.__scopeTooltip),r=Dw(dp,e.__scopeTooltip),i=L.useRef(null),o=ui(t,i),[l,c]=L.useState(null),{trigger:p,onClose:d}=n,m=i.current,{onPointerInTransitChange:E}=r,b=L.useCallback(()=>{c(null),E(!1)},[E]),y=L.useCallback((x,w)=>{const k=x.currentTarget,N={x:x.clientX,y:x.clientY},A=BQ(N,k.getBoundingClientRect()),O=$Q(N,A),_=zQ(w.getBoundingClientRect()),M=GQ([...O,..._]);c(M),E(!0)},[E]);return L.useEffect(()=>()=>b(),[b]),L.useEffect(()=>{if(p&&m){const x=k=>y(k,m),w=k=>y(k,p);return p.addEventListener("pointerleave",x),m.addEventListener("pointerleave",w),()=>{p.removeEventListener("pointerleave",x),m.removeEventListener("pointerleave",w)}}},[p,m,y,b]),L.useEffect(()=>{if(l){const x=w=>{const k=w.target,N={x:w.clientX,y:w.clientY},A=(p==null?void 0:p.contains(k))||(m==null?void 0:m.contains(k)),O=!HQ(N,l);A?b():O&&(b(),d())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[p,m,l,d,b]),Y.jsx(b3,{...e,ref:o})}),[jQ,VQ]=eb(tg,{isInside:!1}),UQ=b7("TooltipContent"),b3=L.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:o,onPointerDownOutside:l,...c}=e,p=ng(dp,n),d=tb(n),{onClose:m}=p;return L.useEffect(()=>(document.addEventListener(Ow,m),()=>document.removeEventListener(Ow,m)),[m]),L.useEffect(()=>{if(p.trigger){const E=b=>{const y=b.target;y!=null&&y.contains(p.trigger)&&m()};return window.addEventListener("scroll",E,{capture:!0}),()=>window.removeEventListener("scroll",E,{capture:!0})}},[p.trigger,m]),Y.jsx(Ky,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:l,onFocusOutside:E=>E.preventDefault(),onDismiss:m,children:Y.jsxs(y2,{"data-state":p.stateAttribute,...d,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[Y.jsx(UQ,{children:r}),Y.jsx(jQ,{scope:n,isInside:!0,children:Y.jsx(Vk,{id:p.contentId,role:"tooltip",children:i||r})})]})})});y3.displayName=dp;var E3="TooltipArrow",qQ=L.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=tb(n);return VQ(E3,n).isInside?null:Y.jsx(b2,{...i,...r,ref:t})});qQ.displayName=E3;function BQ(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function $Q(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function zQ(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function HQ(e,t){const{x:n,y:r}=e;let i=!1;for(let o=0,l=t.length-1;o<t.length;l=o++){const c=t[o],p=t[l],d=c.x,m=c.y,E=p.x,b=p.y;m>r!=b>r&&n<(E-d)*(r-m)/(b-m)+d&&(i=!i)}return i}function GQ(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),YQ(t)}function YQ(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const o=t[t.length-1],l=t[t.length-2];if((o.x-l.x)*(i.y-l.y)>=(o.y-l.y)*(i.x-l.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const o=n[n.length-1],l=n[n.length-2];if((o.x-l.x)*(i.y-l.y)>=(o.y-l.y)*(i.x-l.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var WQ=h3,QQ=m3,KQ=g3,XQ=v3,ZQ=y3;function pp(e,t,n){let r=n.initialDeps??[],i;function o(){var l,c,p,d;let m;n.key&&((l=n.debug)!=null&&l.call(n))&&(m=Date.now());const E=e();if(!(E.length!==r.length||E.some((x,w)=>r[w]!==x)))return i;r=E;let y;if(n.key&&((c=n.debug)!=null&&c.call(n))&&(y=Date.now()),i=t(...E),n.key&&((p=n.debug)!=null&&p.call(n))){const x=Math.round((Date.now()-m)*100)/100,w=Math.round((Date.now()-y)*100)/100,k=w/16,N=(A,O)=>{for(A=String(A);A.length<O;)A=" "+A;return A};console.info(`%c⏱ ${N(w,5)} /${N(x,5)} ms`,`
            font-size: .6rem;
            font-weight: bold;
            color: hsl(${Math.max(0,Math.min(120-120*k,120))}deg 100% 31%);`,n==null?void 0:n.key)}return(d=n==null?void 0:n.onChange)==null||d.call(n,i),i}return o.updateDeps=l=>{r=l},o}function S3(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const JQ=(e,t)=>Math.abs(e-t)<=1,eK=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}},T3=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},tK=e=>e,nK=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let i=t;i<=n;i++)r.push(i);return r},rK=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const i=l=>{const{width:c,height:p}=l;t({width:Math.round(c),height:Math.round(p)})};if(i(T3(n)),!r.ResizeObserver)return()=>{};const o=new r.ResizeObserver(l=>{const c=()=>{const p=l[0];if(p!=null&&p.borderBoxSize){const d=p.borderBoxSize[0];if(d){i({width:d.inlineSize,height:d.blockSize});return}}i(T3(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(c):c()});return o.observe(n,{box:"border-box"}),()=>{o.unobserve(n)}},x3={passive:!0},w3=typeof window>"u"?!0:"onscrollend"in window,iK=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let i=0;const o=e.options.useScrollendEvent&&w3?()=>{}:eK(r,()=>{t(i,!1)},e.options.isScrollingResetDelay),l=m=>()=>{const{horizontal:E,isRtl:b}=e.options;i=E?n.scrollLeft*(b&&-1||1):n.scrollTop,o(),t(i,m)},c=l(!0),p=l(!1);p(),n.addEventListener("scroll",c,x3);const d=e.options.useScrollendEvent&&w3;return d&&n.addEventListener("scrollend",p,x3),()=>{n.removeEventListener("scroll",c),d&&n.removeEventListener("scrollend",p)}},oK=(e,t,n)=>{if(t!=null&&t.borderBoxSize){const r=t.borderBoxSize[0];if(r)return Math.round(r[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},aK=(e,{adjustments:t=0,behavior:n},r)=>{var i,o;const l=e+t;(o=(i=r.scrollElement)==null?void 0:i.scrollTo)==null||o.call(i,{[r.options.horizontal?"left":"top"]:l,behavior:n})};class sK{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let n=null;const r=()=>n||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:n=new this.targetWindow.ResizeObserver(i=>{i.forEach(o=>{const l=()=>{this._measureElement(o.target,o)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(l):l()})}));return{disconnect:()=>{var i;(i=r())==null||i.disconnect(),n=null},observe:i=>{var o;return(o=r())==null?void 0:o.observe(i,{box:"border-box"})},unobserve:i=>{var o;return(o=r())==null?void 0:o.unobserve(i)}}})(),this.range=null,this.setOptions=n=>{Object.entries(n).forEach(([r,i])=>{typeof i>"u"&&delete n[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:tK,rangeExtractor:nK,onChange:()=>{},measureElement:oK,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...n}},this.notify=n=>{var r,i;(i=(r=this.options).onChange)==null||i.call(r,this,n)},this.maybeNotify=pp(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),n=>{this.notify(n)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(n=>n()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var n;const r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((n=this.scrollElement)==null?void 0:n.window)??null,this.elementsCache.forEach(i=>{this.observer.observe(i)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,i=>{this.scrollRect=i,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(i,o)=>{this.scrollAdjustments=0,this.scrollDirection=o?this.getScrollOffset()<i?"forward":"backward":null,this.scrollOffset=i,this.isScrolling=o,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(n,r)=>{const i=new Map,o=new Map;for(let l=r-1;l>=0;l--){const c=n[l];if(i.has(c.lane))continue;const p=o.get(c.lane);if(p==null||c.end>p.end?o.set(c.lane,c):c.end<p.end&&i.set(c.lane,!0),i.size===this.options.lanes)break}return o.size===this.options.lanes?Array.from(o.values()).sort((l,c)=>l.end===c.end?l.index-c.index:l.end-c.end)[0]:void 0},this.getMeasurementOptions=pp(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(n,r,i,o,l)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:r,scrollMargin:i,getItemKey:o,enabled:l}),{key:!1}),this.getMeasurements=pp(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:r,scrollMargin:i,getItemKey:o,enabled:l},c)=>{if(!l)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(m=>{this.itemSizeCache.set(m.key,m.size)}));const p=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const d=this.measurementsCache.slice(0,p);for(let m=p;m<n;m++){const E=o(m),b=this.options.lanes===1?d[m-1]:this.getFurthestMeasurement(d,m),y=b?b.end+this.options.gap:r+i,x=c.get(E),w=typeof x=="number"?x:this.options.estimateSize(m),k=y+w,N=b?b.lane:m%this.options.lanes;d[m]={index:m,start:y,size:w,end:k,key:E,lane:N}}return this.measurementsCache=d,d},{key:!1,debug:()=>this.options.debug}),this.calculateRange=pp(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,r,i,o)=>this.range=n.length>0&&r>0?lK({measurements:n,outerSize:r,scrollOffset:i,lanes:o}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=pp(()=>{let n=null,r=null;const i=this.calculateRange();return i&&(n=i.startIndex,r=i.endIndex),this.maybeNotify.updateDeps([this.isScrolling,n,r]),[this.options.rangeExtractor,this.options.overscan,this.options.count,n,r]},(n,r,i,o,l)=>o===null||l===null?[]:n({startIndex:o,endIndex:l,overscan:r,count:i}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=n=>{const r=this.options.indexAttribute,i=n.getAttribute(r);return i?parseInt(i,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(n,r)=>{const i=this.indexFromElement(n),o=this.measurementsCache[i];if(!o)return;const l=o.key,c=this.elementsCache.get(l);c!==n&&(c&&this.observer.unobserve(c),this.observer.observe(n),this.elementsCache.set(l,n)),n.isConnected&&this.resizeItem(i,this.options.measureElement(n,r,this))},this.resizeItem=(n,r)=>{const i=this.measurementsCache[n];if(!i)return;const o=this.itemSizeCache.get(i.key)??i.size,l=r-o;l!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,l,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=l,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(i.index),this.itemSizeCache=new Map(this.itemSizeCache.set(i.key,r)),this.notify(!1))},this.measureElement=n=>{if(!n){this.elementsCache.forEach((r,i)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(i))});return}this._measureElement(n,void 0)},this.getVirtualItems=pp(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,r)=>{const i=[];for(let o=0,l=n.length;o<l;o++){const c=n[o],p=r[c];i.push(p)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const r=this.getMeasurements();if(r.length!==0)return S3(r[C3(0,r.length-1,i=>S3(r[i]).start,n)])},this.getOffsetForAlignment=(n,r,i=0)=>{const o=this.getSize(),l=this.getScrollOffset();r==="auto"&&(r=n>=l+o?"end":"start"),r==="center"?n+=(i-o)/2:r==="end"&&(n-=o);const c=this.getTotalSize()-o;return Math.max(Math.min(c,n),0)},this.getOffsetForIndex=(n,r="auto")=>{n=Math.max(0,Math.min(n,this.options.count-1));const i=this.measurementsCache[n];if(!i)return;const o=this.getSize(),l=this.getScrollOffset();if(r==="auto")if(i.end>=l+o-this.options.scrollPaddingEnd)r="end";else if(i.start<=l+this.options.scrollPaddingStart)r="start";else return[l,r];const c=r==="end"?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(c,r,i.size),r]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(n,{align:r="start",behavior:i}={})=>{this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(n,r),{adjustments:void 0,behavior:i})},this.scrollToIndex=(n,{align:r="auto",behavior:i}={})=>{n=Math.max(0,Math.min(n,this.options.count-1)),this.cancelScrollToIndex(),i==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const o=this.getOffsetForIndex(n,r);if(!o)return;const[l,c]=o;this._scrollToOffset(l,{adjustments:void 0,behavior:i}),i!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(n))){const d=this.getOffsetForIndex(n,c);if(!d)return;const[m]=d,E=this.getScrollOffset();JQ(m,E)||this.scrollToIndex(n,{align:c,behavior:i})}else this.scrollToIndex(n,{align:c,behavior:i})}))},this.scrollBy=(n,{behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+n,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var n;const r=this.getMeasurements();let i;if(r.length===0)i=this.options.paddingStart;else if(this.options.lanes===1)i=((n=r[r.length-1])==null?void 0:n.end)??0;else{const o=Array(this.options.lanes).fill(null);let l=r.length-1;for(;l>=0&&o.some(c=>c===null);){const c=r[l];o[c.lane]===null&&(o[c.lane]=c.end),l--}i=Math.max(...o.filter(c=>c!==null))}return Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(n,{adjustments:r,behavior:i})=>{this.options.scrollToFn(n,{behavior:i,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(t)}}const C3=(e,t,n,r)=>{for(;e<=t;){const i=(e+t)/2|0,o=n(i);if(o<r)e=i+1;else if(o>r)t=i-1;else return i}return e>0?e-1:0};function lK({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){const i=e.length-1,o=p=>e[p].start;if(e.length<=r)return{startIndex:0,endIndex:i};let l=C3(0,i,o,n),c=l;if(r===1)for(;c<i&&e[c].end<n+t;)c++;else if(r>1){const p=Array(r).fill(0);for(;c<i&&p.some(m=>m<n+t);){const m=e[c];p[m.lane]=m.end,c++}const d=Array(r).fill(n+t);for(;l>=0&&d.some(m=>m>=n);){const m=e[l];d[m.lane]=m.start,l--}l=Math.max(0,l-l%r),c=Math.min(i,c+(r-1-c%r))}return{startIndex:l,endIndex:c}}const _3=typeof document<"u"?L.useLayoutEffect:L.useEffect;function uK(e){const t=L.useReducer(()=>({}),{})[1],n={...e,onChange:(i,o)=>{var l;o?Qy.flushSync(t):t(),(l=e.onChange)==null||l.call(e,i,o)}},[r]=L.useState(()=>new sK(n));return r.setOptions(n),_3(()=>r._didMount(),[]),_3(()=>r._willUpdate()),r}function cK(e){return uK({observeElementRect:rK,observeElementOffset:iK,scrollToFn:aK,...e})}var fK=Object.defineProperty,dK=(e,t,n)=>t in e?fK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Mw=(e,t,n)=>(dK(e,typeof t!="symbol"?t+"":t,n),n);let pK=class{constructor(){Mw(this,"current",this.detect()),Mw(this,"handoffState","pending"),Mw(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},jf=new pK,fo=(e,t)=>{jf.isServer?L.useEffect(e,t):L.useLayoutEffect(e,t)};function rg(e){let t=L.useRef(e);return fo(()=>{t.current=e},[e]),t}function Lw(e,t){let[n,r]=L.useState(e),i=rg(e);return fo(()=>r(i.current),[i,r,...t]),n}let Pn=function(e){let t=rg(e);return Ae.useCallback((...n)=>t.current(...n),[t])};function hK(e,t,n){let[r,i]=L.useState(n),o=e!==void 0,l=L.useRef(o),c=L.useRef(!1),p=L.useRef(!1);return o&&!l.current&&!c.current?(c.current=!0,l.current=o,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!o&&l.current&&!p.current&&(p.current=!0,l.current=o,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[o?e:r,Pn(d=>(o||i(d),t==null?void 0:t(d)))]}function mK(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function nb(){let e=[],t={addEventListener(n,r,i,o){return n.addEventListener(r,i,o),t.add(()=>n.removeEventListener(r,i,o))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return mK(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,i){let o=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:o})})},group(n){let r=nb();return n(r),this.add(()=>r.dispose())},add(n){return e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let i of e.splice(r,1))i()}},dispose(){for(let n of e.splice(0))n()}};return t}function Iw(){let[e]=L.useState(nb);return L.useEffect(()=>()=>e.dispose(),[e]),e}function gK(){let e=typeof document>"u";return"useSyncExternalStore"in Xv?(t=>t.useSyncExternalStore)(Xv)(()=>()=>{},()=>!1,()=>!e):!1}function vK(){let e=gK(),[t,n]=L.useState(jf.isHandoffComplete);return t&&jf.isHandoffComplete===!1&&n(!1),L.useEffect(()=>{t!==!0&&n(!0)},[t]),L.useEffect(()=>jf.handoff(),[]),e?!1:t}var N3;let ig=(N3=Ae.useId)!=null?N3:function(){let e=vK(),[t,n]=Ae.useState(e?()=>jf.nextId():null);return fo(()=>{t===null&&n(jf.nextId())},[t]),t!=null?""+t:void 0};function Hl(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Hl),r}function Fw(e){return jf.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let A3=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var yK=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(yK||{}),bK=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(bK||{}),EK=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(EK||{}),O3=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(O3||{});function SK(e,t=0){var n;return e===((n=Fw(e))==null?void 0:n.body)?!1:Hl(t,{0(){return e.matches(A3)},1(){let r=e;for(;r!==null;){if(r.matches(A3))return!0;r=r.parentElement}return!1}})}var TK=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(TK||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function xK(e,t=n=>n){return e.slice().sort((n,r)=>{let i=t(n),o=t(r);if(i===null||o===null)return 0;let l=i.compareDocumentPosition(o);return l&Node.DOCUMENT_POSITION_FOLLOWING?-1:l&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function wK(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function CK(){return/Android/gi.test(window.navigator.userAgent)}function D3(){return wK()||CK()}function rb(e,t,n){let r=rg(t);L.useEffect(()=>{function i(o){r.current(o)}return document.addEventListener(e,i,n),()=>document.removeEventListener(e,i,n)},[e,n])}function _K(e,t,n){let r=rg(t);L.useEffect(()=>{function i(o){r.current(o)}return window.addEventListener(e,i,n),()=>window.removeEventListener(e,i,n)},[e,n])}function NK(e,t,n=!0){let r=L.useRef(!1);L.useEffect(()=>{requestAnimationFrame(()=>{r.current=n})},[n]);function i(l,c){if(!r.current||l.defaultPrevented)return;let p=c(l);if(p===null||!p.getRootNode().contains(p)||!p.isConnected)return;let d=function m(E){return typeof E=="function"?m(E()):Array.isArray(E)||E instanceof Set?E:[E]}(e);for(let m of d){if(m===null)continue;let E=m instanceof HTMLElement?m:m.current;if(E!=null&&E.contains(p)||l.composed&&l.composedPath().includes(E))return}return!SK(p,O3.Loose)&&p.tabIndex!==-1&&l.preventDefault(),t(l,p)}let o=L.useRef(null);rb("pointerdown",l=>{var c,p;r.current&&(o.current=((p=(c=l.composedPath)==null?void 0:c.call(l))==null?void 0:p[0])||l.target)},!0),rb("mousedown",l=>{var c,p;r.current&&(o.current=((p=(c=l.composedPath)==null?void 0:c.call(l))==null?void 0:p[0])||l.target)},!0),rb("click",l=>{D3()||o.current&&(i(l,()=>o.current),o.current=null)},!0),rb("touchend",l=>i(l,()=>l.target instanceof HTMLElement?l.target:null),!0),_K("blur",l=>i(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function AK(...e){return L.useMemo(()=>Fw(...e),[...e])}function k3(e){var t;if(e.type)return e.type;let n=(t=e.as)!=null?t:"button";if(typeof n=="string"&&n.toLowerCase()==="button")return"button"}function OK(e,t){let[n,r]=L.useState(()=>k3(e));return fo(()=>{r(k3(e))},[e.type,e.as]),fo(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")},[n,t]),n}let DK=Symbol();function og(...e){let t=L.useRef(e);L.useEffect(()=>{t.current=e},[e]);let n=Pn(r=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(r):i.current=r)});return e.every(r=>r==null||(r==null?void 0:r[DK]))?void 0:n}function R3(e){return[e.screenX,e.screenY]}function kK(){let e=L.useRef([-1,-1]);return{wasMoved(t){let n=R3(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=R3(t)}}}function RK({container:e,accept:t,walk:n,enabled:r=!0}){let i=L.useRef(t),o=L.useRef(n);L.useEffect(()=>{i.current=t,o.current=n},[t,n]),fo(()=>{if(!e||!r)return;let l=Fw(e);if(!l)return;let c=i.current,p=o.current,d=Object.assign(E=>c(E),{acceptNode:c}),m=l.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,d,!1);for(;m.nextNode();)p(m.currentNode)},[e,r,i,o])}function M3(e,t){let n=L.useRef([]),r=Pn(e);L.useEffect(()=>{let i=[...n.current];for(let[o,l]of t.entries())if(n.current[o]!==l){let c=r(t,i);return n.current=t,c}},[r,...t])}function L3(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var Pw=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Pw||{}),MK=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(MK||{});function Vf({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:l,mergeRefs:c}){c=c??LK;let p=I3(t,e);if(o)return ib(p,n,r,l,c);let d=i??0;if(d&2){let{static:m=!1,...E}=p;if(m)return ib(E,n,r,l,c)}if(d&1){let{unmount:m=!0,...E}=p;return Hl(m?0:1,{0(){return null},1(){return ib({...E,hidden:!0,style:{display:"none"}},n,r,l,c)}})}return ib(p,n,r,l,c)}function ib(e,t={},n,r,i){let{as:o=n,children:l,refName:c="ref",...p}=Vw(e,["unmount","static"]),d=e.ref!==void 0?{[c]:e.ref}:{},m=typeof l=="function"?l(t):l;"className"in p&&p.className&&typeof p.className=="function"&&(p.className=p.className(t));let E={};if(t){let b=!1,y=[];for(let[x,w]of Object.entries(t))typeof w=="boolean"&&(b=!0),w===!0&&y.push(x);b&&(E["data-headlessui-state"]=y.join(" "))}if(o===L.Fragment&&Object.keys(jw(p)).length>0){if(!L.isValidElement(m)||Array.isArray(m)&&m.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(p).map(w=>`  - ${w}`).join(`
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(w=>`  - ${w}`).join(`
`)].join(`
`));let b=m.props,y=typeof(b==null?void 0:b.className)=="function"?(...w)=>L3(b==null?void 0:b.className(...w),p.className):L3(b==null?void 0:b.className,p.className),x=y?{className:y}:{};return L.cloneElement(m,Object.assign({},I3(m.props,jw(Vw(p,["ref"]))),E,d,{ref:i(m.ref,d.ref)},x))}return L.createElement(o,Object.assign({},Vw(p,["ref"]),o!==L.Fragment&&d,o!==L.Fragment&&E),m)}function LK(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function I3(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(r=>[r,void 0])));for(let r in n)Object.assign(t,{[r](i,...o){let l=n[r];for(let c of l){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;c(i,...o)}}});return t}function Uf(e){var t;return Object.assign(L.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function jw(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Vw(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}let IK="div";var F3=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(F3||{});function FK(e,t){var n;let{features:r=1,...i}=e,o={ref:t,"aria-hidden":(r&2)===2?!0:(n=i["aria-hidden"])!=null?n:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return Vf({ourProps:o,theirProps:i,slot:{},defaultTag:IK,name:"Hidden"})}let PK=Uf(FK),Uw=L.createContext(null);Uw.displayName="OpenClosedContext";var ag=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(ag||{});function jK(){return L.useContext(Uw)}function VK({value:e,children:t}){return Ae.createElement(Uw.Provider,{value:e},t)}function UK(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let qf=[];UK(()=>{function e(t){t.target instanceof HTMLElement&&t.target!==document.body&&qf[0]!==t.target&&(qf.unshift(t.target),qf=qf.filter(n=>n!=null&&n.isConnected),qf.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function qK(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&BK(n)?!1:r}function BK(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function $K(e){throw new Error("Unexpected object: "+e)}var ci=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(ci||{});function P3(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=r??-1;switch(e.focus){case 0:{for(let o=0;o<n.length;++o)if(!t.resolveDisabled(n[o],o,n))return o;return r}case 1:{for(let o=i-1;o>=0;--o)if(!t.resolveDisabled(n[o],o,n))return o;return r}case 2:{for(let o=i+1;o<n.length;++o)if(!t.resolveDisabled(n[o],o,n))return o;return r}case 3:{for(let o=n.length-1;o>=0;--o)if(!t.resolveDisabled(n[o],o,n))return o;return r}case 4:{for(let o=0;o<n.length;++o)if(t.resolveId(n[o],o,n)===e.id)return o;return r}case 5:return null;default:$K(e)}}function j3(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))U3(n,V3(t,r),i);return n}function V3(e,t){return e?e+"["+t+"]":t}function U3(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())U3(e,V3(t,r.toString()),i);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):j3(n,t,e)}var Wo=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Wo||{}),zK=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(zK||{}),HK=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(HK||{}),GK=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(GK||{}),YK=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.RegisterOption=3]="RegisterOption",e[e.UnregisterOption=4]="UnregisterOption",e[e.RegisterLabel=5]="RegisterLabel",e[e.SetActivationTrigger=6]="SetActivationTrigger",e[e.UpdateVirtualOptions=7]="UpdateVirtualOptions",e))(YK||{});function qw(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=t(e.options.slice()),i=r.length>0&&r[0].dataRef.current.order!==null?r.sort((l,c)=>l.dataRef.current.order-c.dataRef.current.order):xK(r,l=>l.dataRef.current.domRef.current),o=n?i.indexOf(n):null;return o===-1&&(o=null),{options:i,activeOptionIndex:o}}let WK={1(e){var t;return(t=e.dataRef.current)!=null&&t.disabled||e.comboboxState===1?e:{...e,activeOptionIndex:null,comboboxState:1}},0(e){var t,n;if((t=e.dataRef.current)!=null&&t.disabled||e.comboboxState===0)return e;if((n=e.dataRef.current)!=null&&n.value){let r=e.dataRef.current.calculateIndex(e.dataRef.current.value);if(r!==-1)return{...e,activeOptionIndex:r,comboboxState:0}}return{...e,comboboxState:0}},2(e,t){var n,r,i,o,l;if((n=e.dataRef.current)!=null&&n.disabled||(r=e.dataRef.current)!=null&&r.optionsRef.current&&!((i=e.dataRef.current)!=null&&i.optionsPropsRef.current.static)&&e.comboboxState===1)return e;if(e.virtual){let m=t.focus===ci.Specific?t.idx:P3(t,{resolveItems:()=>e.virtual.options,resolveActiveIndex:()=>{var b,y;return(y=(b=e.activeOptionIndex)!=null?b:e.virtual.options.findIndex(x=>!e.virtual.disabled(x)))!=null?y:null},resolveDisabled:e.virtual.disabled,resolveId(){throw new Error("Function not implemented.")}}),E=(o=t.trigger)!=null?o:2;return e.activeOptionIndex===m&&e.activationTrigger===E?e:{...e,activeOptionIndex:m,activationTrigger:E}}let c=qw(e);if(c.activeOptionIndex===null){let m=c.options.findIndex(E=>!E.dataRef.current.disabled);m!==-1&&(c.activeOptionIndex=m)}let p=t.focus===ci.Specific?t.idx:P3(t,{resolveItems:()=>c.options,resolveActiveIndex:()=>c.activeOptionIndex,resolveId:m=>m.id,resolveDisabled:m=>m.dataRef.current.disabled}),d=(l=t.trigger)!=null?l:2;return e.activeOptionIndex===p&&e.activationTrigger===d?e:{...e,...c,activeOptionIndex:p,activationTrigger:d}},3:(e,t)=>{var n,r,i;if((n=e.dataRef.current)!=null&&n.virtual)return{...e,options:[...e.options,t.payload]};let o=t.payload,l=qw(e,p=>(p.push(o),p));e.activeOptionIndex===null&&(r=e.dataRef.current)!=null&&r.isSelected(t.payload.dataRef.current.value)&&(l.activeOptionIndex=l.options.indexOf(o));let c={...e,...l,activationTrigger:2};return(i=e.dataRef.current)!=null&&i.__demoMode&&e.dataRef.current.value===void 0&&(c.activeOptionIndex=0),c},4:(e,t)=>{var n;if((n=e.dataRef.current)!=null&&n.virtual)return{...e,options:e.options.filter(i=>i.id!==t.id)};let r=qw(e,i=>{let o=i.findIndex(l=>l.id===t.id);return o!==-1&&i.splice(o,1),i});return{...e,...r,activationTrigger:2}},5:(e,t)=>e.labelId===t.id?e:{...e,labelId:t.id},6:(e,t)=>e.activationTrigger===t.trigger?e:{...e,activationTrigger:t.trigger},7:(e,t)=>{var n;if(((n=e.virtual)==null?void 0:n.options)===t.options)return e;let r=e.activeOptionIndex;if(e.activeOptionIndex!==null){let i=t.options.indexOf(e.virtual.options[e.activeOptionIndex]);i!==-1?r=i:r=null}return{...e,activeOptionIndex:r,virtual:Object.assign({},e.virtual,{options:t.options})}}},Bw=L.createContext(null);Bw.displayName="ComboboxActionsContext";function sg(e){let t=L.useContext(Bw);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,sg),n}return t}let q3=L.createContext(null);function QK(e){var t;let n=Bf("VirtualProvider"),[r,i]=L.useMemo(()=>{let p=n.optionsRef.current;if(!p)return[0,0];let d=window.getComputedStyle(p);return[parseFloat(d.paddingBlockStart||d.paddingTop),parseFloat(d.paddingBlockEnd||d.paddingBottom)]},[n.optionsRef.current]),o=cK({scrollPaddingStart:r,scrollPaddingEnd:i,count:n.virtual.options.length,estimateSize(){return 40},getScrollElement(){var p;return(p=n.optionsRef.current)!=null?p:null},overscan:12}),[l,c]=L.useState(0);return fo(()=>{c(p=>p+1)},[(t=n.virtual)==null?void 0:t.options]),Ae.createElement(q3.Provider,{value:o},Ae.createElement("div",{style:{position:"relative",width:"100%",height:`${o.getTotalSize()}px`},ref:p=>{if(p){if(typeof process<"u"&&process.env.JEST_WORKER_ID!==void 0||n.activationTrigger===0)return;n.activeOptionIndex!==null&&n.virtual.options.length>n.activeOptionIndex&&o.scrollToIndex(n.activeOptionIndex)}}},o.getVirtualItems().map(p=>{var d;return Ae.createElement(L.Fragment,{key:p.key},Ae.cloneElement((d=e.children)==null?void 0:d.call(e,{option:n.virtual.options[p.index],open:n.comboboxState===0}),{key:`${l}-${p.key}`,"data-index":p.index,"aria-setsize":n.virtual.options.length,"aria-posinset":p.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${p.start}px)`,overflowAnchor:"none"}}))})))}let $w=L.createContext(null);$w.displayName="ComboboxDataContext";function Bf(e){let t=L.useContext($w);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Bf),n}return t}function KK(e,t){return Hl(t.type,WK,e,t)}let XK=L.Fragment;function ZK(e,t){let{value:n,defaultValue:r,onChange:i,form:o,name:l,by:c=null,disabled:p=!1,__demoMode:d=!1,nullable:m=!1,multiple:E=!1,immediate:b=!1,virtual:y=null,...x}=e,w=!1,k=null,[N=E?[]:void 0,A]=hK(n,i,r),[O,_]=L.useReducer(KK,{dataRef:L.createRef(),comboboxState:d?0:1,options:[],virtual:null,activeOptionIndex:null,activationTrigger:2,labelId:null}),M=L.useRef(!1),j=L.useRef({static:!1,hold:!1}),P=L.useRef(null),F=L.useRef(null),V=L.useRef(null),$=L.useRef(null),K=Pn(typeof c=="string"?(Ye,Ot)=>{let gt=c;return(Ye==null?void 0:Ye[gt])===(Ot==null?void 0:Ot[gt])}:c??((Ye,Ot)=>Ye===Ot)),ee=Pn(Ye=>O.options.findIndex(Ot=>K(Ot.dataRef.current.value,Ye))),J=L.useCallback(Ye=>Hl(q.mode,{1:()=>N.some(Ot=>K(Ot,Ye)),0:()=>K(N,Ye)}),[N]),W=Pn(Ye=>O.activeOptionIndex===ee(Ye)),q=L.useMemo(()=>({...O,immediate:w,optionsPropsRef:j,labelRef:P,inputRef:F,buttonRef:V,optionsRef:$,value:N,defaultValue:r,disabled:p,mode:E?1:0,virtual:O.virtual,get activeOptionIndex(){if(M.current&&O.activeOptionIndex===null&&O.options.length>0){let Ye=O.options.findIndex(Ot=>!Ot.dataRef.current.disabled);if(Ye!==-1)return Ye}return O.activeOptionIndex},calculateIndex:ee,compare:K,isSelected:J,isActive:W,nullable:m,__demoMode:d}),[N,r,p,E,m,d,O,k]);fo(()=>{},[k,void 0]),fo(()=>{O.dataRef.current=q},[q]),NK([q.buttonRef,q.inputRef,q.optionsRef],()=>me.closeCombobox(),q.comboboxState===0);let te=L.useMemo(()=>{var Ye,Ot,gt;return{open:q.comboboxState===0,disabled:p,activeIndex:q.activeOptionIndex,activeOption:q.activeOptionIndex===null?null:q.virtual?q.virtual.options[(Ye=q.activeOptionIndex)!=null?Ye:0]:(gt=(Ot=q.options[q.activeOptionIndex])==null?void 0:Ot.dataRef.current.value)!=null?gt:null,value:N}},[q,p,N]),re=Pn(()=>{if(q.activeOptionIndex!==null){if(q.virtual)pe(q.virtual.options[q.activeOptionIndex]);else{let{dataRef:Ye}=q.options[q.activeOptionIndex];pe(Ye.current.value)}me.goToOption(ci.Specific,q.activeOptionIndex)}}),ae=Pn(()=>{_({type:0}),M.current=!0}),fe=Pn(()=>{_({type:1}),M.current=!1}),Z=Pn((Ye,Ot,gt)=>(M.current=!1,Ye===ci.Specific?_({type:2,focus:ci.Specific,idx:Ot,trigger:gt}):_({type:2,focus:Ye,trigger:gt}))),he=Pn((Ye,Ot)=>(_({type:3,payload:{id:Ye,dataRef:Ot}}),()=>{q.isActive(Ot.current.value)&&(M.current=!0),_({type:4,id:Ye})})),se=Pn(Ye=>(_({type:5,id:Ye}),()=>_({type:5,id:null}))),pe=Pn(Ye=>Hl(q.mode,{0(){return A==null?void 0:A(Ye)},1(){let Ot=q.value.slice(),gt=Ot.findIndex(ot=>K(ot,Ye));return gt===-1?Ot.push(Ye):Ot.splice(gt,1),A==null?void 0:A(Ot)}})),ce=Pn(Ye=>{_({type:6,trigger:Ye})}),me=L.useMemo(()=>({onChange:pe,registerOption:he,registerLabel:se,goToOption:Z,closeCombobox:fe,openCombobox:ae,setActivationTrigger:ce,selectActiveOption:re}),[]),Se=t===null?{}:{ref:t},je=L.useRef(null),Ge=Iw();return L.useEffect(()=>{je.current&&r!==void 0&&Ge.addEventListener(je.current,"reset",()=>{A==null||A(r)})},[je,A]),Ae.createElement(Bw.Provider,{value:me},Ae.createElement($w.Provider,{value:q},Ae.createElement(VK,{value:Hl(q.comboboxState,{0:ag.Open,1:ag.Closed})},l!=null&&N!=null&&j3({[l]:N}).map(([Ye,Ot],gt)=>Ae.createElement(PK,{features:F3.Hidden,ref:gt===0?ot=>{var Oe;je.current=(Oe=ot==null?void 0:ot.closest("form"))!=null?Oe:null}:void 0,...jw({key:Ye,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:o,disabled:p,name:Ye,value:Ot})})),Vf({ourProps:Se,theirProps:x,slot:te,defaultTag:XK,name:"Combobox"}))))}let JK="input";function eX(e,t){var n,r,i,o,l;let c=ig(),{id:p=`headlessui-combobox-input-${c}`,onChange:d,displayValue:m,type:E="text",...b}=e,y=Bf("Combobox.Input"),x=sg("Combobox.Input"),w=og(y.inputRef,t),k=AK(y.inputRef),N=L.useRef(!1),A=Iw(),O=Pn(()=>{x.onChange(null),y.optionsRef.current&&(y.optionsRef.current.scrollTop=0),x.goToOption(ci.Nothing)}),_=function(){var q;return typeof m=="function"&&y.value!==void 0?(q=m(y.value))!=null?q:"":typeof y.value=="string"?y.value:""}();M3(([q,te],[re,ae])=>{if(N.current)return;let fe=y.inputRef.current;fe&&((ae===0&&te===1||q!==re)&&(fe.value=q),requestAnimationFrame(()=>{if(N.current||!fe||(k==null?void 0:k.activeElement)!==fe)return;let{selectionStart:Z,selectionEnd:he}=fe;Math.abs((he??0)-(Z??0))===0&&Z===0&&fe.setSelectionRange(fe.value.length,fe.value.length)}))},[_,y.comboboxState,k]),M3(([q],[te])=>{if(q===0&&te===1){if(N.current)return;let re=y.inputRef.current;if(!re)return;let ae=re.value,{selectionStart:fe,selectionEnd:Z,selectionDirection:he}=re;re.value="",re.value=ae,he!==null?re.setSelectionRange(fe,Z,he):re.setSelectionRange(fe,Z)}},[y.comboboxState]);let M=L.useRef(!1),j=Pn(()=>{M.current=!0}),P=Pn(()=>{A.nextFrame(()=>{M.current=!1})}),F=Pn(q=>{switch(N.current=!0,q.key){case Wo.Enter:if(N.current=!1,y.comboboxState!==0||M.current)return;if(q.preventDefault(),q.stopPropagation(),y.activeOptionIndex===null){x.closeCombobox();return}x.selectActiveOption(),y.mode===0&&x.closeCombobox();break;case Wo.ArrowDown:return N.current=!1,q.preventDefault(),q.stopPropagation(),Hl(y.comboboxState,{0:()=>x.goToOption(ci.Next),1:()=>x.openCombobox()});case Wo.ArrowUp:return N.current=!1,q.preventDefault(),q.stopPropagation(),Hl(y.comboboxState,{0:()=>x.goToOption(ci.Previous),1:()=>{x.openCombobox(),A.nextFrame(()=>{y.value||x.goToOption(ci.Last)})}});case Wo.Home:if(q.shiftKey)break;return N.current=!1,q.preventDefault(),q.stopPropagation(),x.goToOption(ci.First);case Wo.PageUp:return N.current=!1,q.preventDefault(),q.stopPropagation(),x.goToOption(ci.First);case Wo.End:if(q.shiftKey)break;return N.current=!1,q.preventDefault(),q.stopPropagation(),x.goToOption(ci.Last);case Wo.PageDown:return N.current=!1,q.preventDefault(),q.stopPropagation(),x.goToOption(ci.Last);case Wo.Escape:return N.current=!1,y.comboboxState!==0?void 0:(q.preventDefault(),y.optionsRef.current&&!y.optionsPropsRef.current.static&&q.stopPropagation(),y.nullable&&y.mode===0&&y.value===null&&O(),x.closeCombobox());case Wo.Tab:if(N.current=!1,y.comboboxState!==0)return;y.mode===0&&y.activationTrigger!==1&&x.selectActiveOption(),x.closeCombobox();break}}),V=Pn(q=>{d==null||d(q),y.nullable&&y.mode===0&&q.target.value===""&&O(),x.openCombobox()}),$=Pn(q=>{var te,re,ae;let fe=(te=q.relatedTarget)!=null?te:qf.find(Z=>Z!==q.currentTarget);if(N.current=!1,!((re=y.optionsRef.current)!=null&&re.contains(fe))&&!((ae=y.buttonRef.current)!=null&&ae.contains(fe))&&y.comboboxState===0)return q.preventDefault(),y.mode===0&&(y.nullable&&y.value===null?O():y.activationTrigger!==1&&x.selectActiveOption()),x.closeCombobox()}),K=Pn(q=>{var te,re,ae;let fe=(te=q.relatedTarget)!=null?te:qf.find(Z=>Z!==q.currentTarget);(re=y.buttonRef.current)!=null&&re.contains(fe)||(ae=y.optionsRef.current)!=null&&ae.contains(fe)||y.disabled||y.immediate&&y.comboboxState!==0&&(x.openCombobox(),A.nextFrame(()=>{x.setActivationTrigger(1)}))}),ee=Lw(()=>{if(y.labelId)return[y.labelId].join(" ")},[y.labelId]),J=L.useMemo(()=>({open:y.comboboxState===0,disabled:y.disabled}),[y]),W={ref:w,id:p,role:"combobox",type:E,"aria-controls":(n=y.optionsRef.current)==null?void 0:n.id,"aria-expanded":y.comboboxState===0,"aria-activedescendant":y.activeOptionIndex===null?void 0:y.virtual?(r=y.options.find(q=>{var te;return!((te=y.virtual)!=null&&te.disabled(q.dataRef.current.value))&&y.compare(q.dataRef.current.value,y.virtual.options[y.activeOptionIndex])}))==null?void 0:r.id:(i=y.options[y.activeOptionIndex])==null?void 0:i.id,"aria-labelledby":ee,"aria-autocomplete":"list",defaultValue:(l=(o=e.defaultValue)!=null?o:y.defaultValue!==void 0?m==null?void 0:m(y.defaultValue):null)!=null?l:y.defaultValue,disabled:y.disabled,onCompositionStart:j,onCompositionEnd:P,onKeyDown:F,onChange:V,onFocus:K,onBlur:$};return Vf({ourProps:W,theirProps:b,slot:J,defaultTag:JK,name:"Combobox.Input"})}let tX="button";function nX(e,t){var n;let r=Bf("Combobox.Button"),i=sg("Combobox.Button"),o=og(r.buttonRef,t),l=ig(),{id:c=`headlessui-combobox-button-${l}`,...p}=e,d=Iw(),m=Pn(w=>{switch(w.key){case Wo.ArrowDown:return w.preventDefault(),w.stopPropagation(),r.comboboxState===1&&i.openCombobox(),d.nextFrame(()=>{var k;return(k=r.inputRef.current)==null?void 0:k.focus({preventScroll:!0})});case Wo.ArrowUp:return w.preventDefault(),w.stopPropagation(),r.comboboxState===1&&(i.openCombobox(),d.nextFrame(()=>{r.value||i.goToOption(ci.Last)})),d.nextFrame(()=>{var k;return(k=r.inputRef.current)==null?void 0:k.focus({preventScroll:!0})});case Wo.Escape:return r.comboboxState!==0?void 0:(w.preventDefault(),r.optionsRef.current&&!r.optionsPropsRef.current.static&&w.stopPropagation(),i.closeCombobox(),d.nextFrame(()=>{var k;return(k=r.inputRef.current)==null?void 0:k.focus({preventScroll:!0})}));default:return}}),E=Pn(w=>{if(qK(w.currentTarget))return w.preventDefault();r.comboboxState===0?i.closeCombobox():(w.preventDefault(),i.openCombobox()),d.nextFrame(()=>{var k;return(k=r.inputRef.current)==null?void 0:k.focus({preventScroll:!0})})}),b=Lw(()=>{if(r.labelId)return[r.labelId,c].join(" ")},[r.labelId,c]),y=L.useMemo(()=>({open:r.comboboxState===0,disabled:r.disabled,value:r.value}),[r]),x={ref:o,id:c,type:OK(e,r.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":(n=r.optionsRef.current)==null?void 0:n.id,"aria-expanded":r.comboboxState===0,"aria-labelledby":b,disabled:r.disabled,onClick:E,onKeyDown:m};return Vf({ourProps:x,theirProps:p,slot:y,defaultTag:tX,name:"Combobox.Button"})}let rX="label";function iX(e,t){let n=ig(),{id:r=`headlessui-combobox-label-${n}`,...i}=e,o=Bf("Combobox.Label"),l=sg("Combobox.Label"),c=og(o.labelRef,t);fo(()=>l.registerLabel(r),[r]);let p=Pn(()=>{var m;return(m=o.inputRef.current)==null?void 0:m.focus({preventScroll:!0})}),d=L.useMemo(()=>({open:o.comboboxState===0,disabled:o.disabled}),[o]);return Vf({ourProps:{ref:c,id:r,onClick:p},theirProps:i,slot:d,defaultTag:rX,name:"Combobox.Label"})}let oX="ul",aX=Pw.RenderStrategy|Pw.Static;function sX(e,t){let n=ig(),{id:r=`headlessui-combobox-options-${n}`,hold:i=!1,...o}=e,l=Bf("Combobox.Options"),c=og(l.optionsRef,t),p=jK(),d=p!==null?(p&ag.Open)===ag.Open:l.comboboxState===0;fo(()=>{var y;l.optionsPropsRef.current.static=(y=e.static)!=null?y:!1},[l.optionsPropsRef,e.static]),fo(()=>{l.optionsPropsRef.current.hold=i},[l.optionsPropsRef,i]),RK({container:l.optionsRef.current,enabled:l.comboboxState===0,accept(y){return y.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:y.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(y){y.setAttribute("role","none")}});let m=Lw(()=>{var y,x;return(x=l.labelId)!=null?x:(y=l.buttonRef.current)==null?void 0:y.id},[l.labelId,l.buttonRef.current]),E=L.useMemo(()=>({open:l.comboboxState===0,option:void 0}),[l]),b={"aria-labelledby":m,role:"listbox","aria-multiselectable":l.mode===1?!0:void 0,id:r,ref:c};return l.virtual&&l.comboboxState===0&&Object.assign(o,{children:Ae.createElement(QK,null,o.children)}),Vf({ourProps:b,theirProps:o,slot:E,defaultTag:oX,features:aX,visible:d,name:"Combobox.Options"})}let lX="li";function uX(e,t){var n;let r=ig(),{id:i=`headlessui-combobox-option-${r}`,disabled:o=!1,value:l,order:c=null,...p}=e,d=Bf("Combobox.Option"),m=sg("Combobox.Option"),E=d.virtual?d.activeOptionIndex===d.calculateIndex(l):d.activeOptionIndex===null?!1:((n=d.options[d.activeOptionIndex])==null?void 0:n.id)===i,b=d.isSelected(l),y=L.useRef(null),x=rg({disabled:o,value:l,domRef:y,order:c}),w=L.useContext(q3),k=og(t,y,w?w.measureElement:null),N=Pn(()=>m.onChange(l));fo(()=>m.registerOption(i,x),[x,i]);let A=L.useRef(!(d.virtual||d.__demoMode));fo(()=>{if(!d.virtual||!d.__demoMode)return;let $=nb();return $.requestAnimationFrame(()=>{A.current=!0}),$.dispose},[d.virtual,d.__demoMode]),fo(()=>{if(!A.current||d.comboboxState!==0||!E||d.activationTrigger===0)return;let $=nb();return $.requestAnimationFrame(()=>{var K,ee;(ee=(K=y.current)==null?void 0:K.scrollIntoView)==null||ee.call(K,{block:"nearest"})}),$.dispose},[y,E,d.comboboxState,d.activationTrigger,d.activeOptionIndex]);let O=Pn($=>{var K;if(o||(K=d.virtual)!=null&&K.disabled(l))return $.preventDefault();N(),D3()||requestAnimationFrame(()=>{var ee;return(ee=d.inputRef.current)==null?void 0:ee.focus({preventScroll:!0})}),d.mode===0&&requestAnimationFrame(()=>m.closeCombobox())}),_=Pn(()=>{var $;if(o||($=d.virtual)!=null&&$.disabled(l))return m.goToOption(ci.Nothing);let K=d.calculateIndex(l);m.goToOption(ci.Specific,K)}),M=kK(),j=Pn($=>M.update($)),P=Pn($=>{var K;if(!M.wasMoved($)||o||(K=d.virtual)!=null&&K.disabled(l)||E)return;let ee=d.calculateIndex(l);m.goToOption(ci.Specific,ee,0)}),F=Pn($=>{var K;M.wasMoved($)&&(o||(K=d.virtual)!=null&&K.disabled(l)||E&&(d.optionsPropsRef.current.hold||m.goToOption(ci.Nothing)))}),V=L.useMemo(()=>({active:E,selected:b,disabled:o}),[E,b,o]);return Vf({ourProps:{id:i,ref:k,role:"option",tabIndex:o===!0?void 0:-1,"aria-disabled":o===!0?!0:void 0,"aria-selected":b,disabled:void 0,onClick:O,onFocus:_,onPointerEnter:j,onMouseEnter:j,onPointerMove:P,onMouseMove:P,onPointerLeave:F,onMouseLeave:F},theirProps:p,slot:V,defaultTag:lX,name:"Combobox.Option"})}let cX=Uf(ZK),fX=Uf(nX),dX=Uf(eX),pX=Uf(iX),hX=Uf(sX),mX=Uf(uX),hp=Object.assign(cX,{Input:dX,Button:fX,Label:pX,Options:hX,Option:mX});var gX=Object.defineProperty,ke=(e,t)=>gX(e,"name",{value:t,configurable:!0});function Ju(e){const t=L.createContext(null);return t.displayName=e,t}ke(Ju,"createNullableContext");function ec(e){function t(n){var r;const i=L.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 ke(t,"useGivenContext"),Object.defineProperty(t,"name",{value:`use${e.displayName}`}),t}ke(ec,"createContextHook");const B3=Ju("StorageContext");function $3(e){const t=L.useRef(!0),[n,r]=L.useState(new oS(e.storage));return L.useEffect(()=>{t.current?t.current=!1:r(new oS(e.storage))},[e.storage]),Y.jsx(B3.Provider,{value:n,children:e.children})}ke($3,"StorageContextProvider");const tc=ec(B3),vX=ke(({title:e,titleId:t,...n})=>L.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?L.createElement("title",{id:t},e):null,L.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}),L.createElement("rect",{x:6,y:6,width:2,height:2,rx:1,fill:"currentColor"})),"SvgArgument"),yX=ke(({title:e,titleId:t,...n})=>L.createElement("svg",{height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?L.createElement("title",{id:t},e):null,L.createElement("path",{d:"M1 1L7 7L13 1",stroke:"currentColor",strokeWidth:1.5})),"SvgChevronDown"),bX=ke(({title:e,titleId:t,...n})=>L.createElement("svg",{height:"1em",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?L.createElement("title",{id:t},e):null,L.createElement("path",{d:"M6 1.04819L2 5.04819L6 9.04819",stroke:"currentColor",strokeWidth:1.75})),"SvgChevronLeft"),EX=ke(({title:e,titleId:t,...n})=>L.createElement("svg",{height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?L.createElement("title",{id:t},e):null,L.createElement("path",{d:"M13 8L7 2L1 8",stroke:"currentColor",strokeWidth:1.5})),"SvgChevronUp"),SX=ke(({title:e,titleId:t,...n})=>L.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?L.createElement("title",{id:t},e):null,L.createElement("path",{d:"M1 1L12.9998 12.9997",stroke:"currentColor",strokeWidth:1.5}),L.createElement("path",{d:"M13 1L1.00079 13.0003",stroke:"currentColor",strokeWidth:1.5})),"SvgClose"),TX=ke(({title:e,titleId:t,...n})=>L.createElement("svg",{height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?L.createElement("title",{id:t},e):null,L.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}),L.createElement("rect",{x:6.75,y:.75,width:10.5,height:10.5,rx:2.2069,stroke:"currentColor",strokeWidth:1.5})),"SvgCopy"),xX=ke(({title:e,titleId:t,...n})=>L.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?L.createElement("title",{id:t},e):null,L.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}),L.createElement("path",{d:"M5 9L9 5",stroke:"currentColor",strokeWidth:1.2}),L.createElement("path",{d:"M5 5L9 9",stroke:"currentColor",strokeWidth:1.2})),"SvgDeprecatedArgument"),wX=ke(({title:e,titleId:t,...n})=>L.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?L.createElement("title",{id:t},e):null,L.createElement("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),L.createElement("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2}),L.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"})),"SvgDeprecatedEnumValue"),CX=ke(({title:e,titleId:t,...n})=>L.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?L.createElement("title",{id:t},e):null,L.createElement("rect",{x:.6,y:.6,width:10.8,height:10.8,rx:3.4,stroke:"currentColor",strokeWidth:1.2}),L.createElement("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),L.createElement("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2})),"SvgDeprecatedField"),_X=ke(({title:e,titleId:t,...n})=>L.createElement("svg",{height:"1em",viewBox:"0 0.5 12 12",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?L.createElement("title",{id:t},e):null,L.createElement("rect",{x:7,y:5.5,width:2,height:2,rx:1,transform:"rotate(90 7 5.5)",fill:"currentColor"}),L.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"})),"SvgDirective"),NX=ke(({title:e,titleId:t,...n})=>L.createElement("svg",{height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?L.createElement("title",{id:t},e):null,L.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}),L.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}),L.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"})),"SvgDocsFilled"),AX=ke(({title:e,titleId:t,...n})=>L.createElement("svg",{height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?L.createElement("title",{id:t},e):null,L.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}),L.createElement("line",{x1:13,y1:11.75,x2:6,y2:11.75,stroke:"currentColor",strokeWidth:1.5})),"SvgDocs"),OX=ke(({title:e,titleId:t,...n})=>L.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?L.createElement("title",{id:t},e):null,L.createElement("rect",{x:5,y:5,width:2,height:2,rx:1,fill:"currentColor"}),L.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"})),"SvgEnumValue"),DX=ke(({title:e,titleId:t,...n})=>L.createElement("svg",{height:"1em",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?L.createElement("title",{id:t},e):null,L.createElement("rect",{x:.6,y:1.1,width:10.8,height:10.8,rx:2.4,stroke:"currentColor",strokeWidth:1.2}),L.createElement("rect",{x:5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"})),"SvgField"),kX=ke(({title:e,titleId:t,...n})=>L.createElement("svg",{height:"1em",viewBox:"0 0 24 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?L.createElement("title",{id:t},e):null,L.createElement("path",{d:"M1.59375 9.52344L4.87259 12.9944L8.07872 9.41249",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),L.createElement("path",{d:"M13.75 5.25V10.75H18.75",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),L.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})),"SvgHistory"),RX=ke(({title:e,titleId:t,...n})=>L.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?L.createElement("title",{id:t},e):null,L.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"}),L.createElement("circle",{cx:6,cy:6,r:1,fill:"currentColor"})),"SvgImplements"),MX=ke(({title:e,titleId:t,...n})=>L.createElement("svg",{height:"1em",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?L.createElement("title",{id:t},e):null,L.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"}),L.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"}),L.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"}),L.createElement("path",{d:"M12.6318 5.86775H6.36955V12.1285H12.6318V5.86775Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),L.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"})),"SvgKeyboardShortcut"),LX=ke(({title:e,titleId:t,...n})=>L.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?L.createElement("title",{id:t},e):null,L.createElement("circle",{cx:5,cy:5,r:4.35,stroke:"currentColor",strokeWidth:1.3}),L.createElement("line",{x1:8.45962,y1:8.54038,x2:11.7525,y2:11.8333,stroke:"currentColor",strokeWidth:1.3})),"SvgMagnifyingGlass"),IX=ke(({title:e,titleId:t,...n})=>L.createElement("svg",{height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?L.createElement("title",{id:t},e):null,L.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}),L.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}),L.createElement("path",{d:"M6 4.5L9 7.5L12 4.5",stroke:"currentColor",strokeWidth:1.5}),L.createElement("path",{d:"M12 13.5L9 10.5L6 13.5",stroke:"currentColor",strokeWidth:1.5})),"SvgMerge"),FX=ke(({title:e,titleId:t,...n})=>L.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?L.createElement("title",{id:t},e):null,L.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"}),L.createElement("path",{d:"M11.5 4.5L9.5 2.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"}),L.createElement("path",{d:"M5.5 10.5L3.5 8.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"})),"SvgPen"),PX=ke(({title:e,titleId:t,...n})=>L.createElement("svg",{height:"1em",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?L.createElement("title",{id:t},e):null,L.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"})),"SvgPlay"),jX=ke(({title:e,titleId:t,...n})=>L.createElement("svg",{height:"1em",viewBox:"0 0 10 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?L.createElement("title",{id:t},e):null,L.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"})),"SvgPlus"),VX=ke(({title:e,titleId:t,...n})=>L.createElement("svg",{width:25,height:25,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?L.createElement("title",{id:t},e):null,L.createElement("path",{d:"M10.2852 24.0745L13.7139 18.0742",stroke:"currentColor",strokeWidth:1.5625}),L.createElement("path",{d:"M14.5742 24.0749L17.1457 19.7891",stroke:"currentColor",strokeWidth:1.5625}),L.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}),L.createElement("path",{d:"M4 15L5 13L7 12L5 11L4 9L3 11L1 12L3 13L4 15Z",stroke:"currentColor",strokeWidth:1.5625,strokeLinejoin:"round"}),L.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"})),"SvgPrettify"),UX=ke(({title:e,titleId:t,...n})=>L.createElement("svg",{height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?L.createElement("title",{id:t},e):null,L.createElement("path",{d:"M4.75 9.25H1.25V12.75",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),L.createElement("path",{d:"M11.25 6.75H14.75V3.25",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),L.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}),L.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})),"SvgReload"),qX=ke(({title:e,titleId:t,...n})=>L.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?L.createElement("title",{id:t},e):null,L.createElement("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),L.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})),"SvgRootType"),BX=ke(({title:e,titleId:t,...n})=>L.createElement("svg",{height:"1em",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?L.createElement("title",{id:t},e):null,L.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"})),"SvgSettings"),$X=ke(({title:e,titleId:t,...n})=>L.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?L.createElement("title",{id:t},e):null,L.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"})),"SvgStarFilled"),zX=ke(({title:e,titleId:t,...n})=>L.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?L.createElement("title",{id:t},e):null,L.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})),"SvgStar"),HX=ke(({title:e,titleId:t,...n})=>L.createElement("svg",{height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?L.createElement("title",{id:t},e):null,L.createElement("rect",{width:16,height:16,rx:2,fill:"currentColor"})),"SvgStop"),GX=ke(({title:e,titleId:t,...n})=>L.createElement("svg",{width:"1em",height:"5em",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd","aria-hidden":"true",viewBox:"0 0 23 23",style:{height:"1.5em"},clipRule:"evenodd","aria-labelledby":t,...n},e===void 0?L.createElement("title",{id:t},"trash icon"):e?L.createElement("title",{id:t},e):null,L.createElement("path",{d:"M19 24h-14c-1.104 0-2-.896-2-2v-17h-1v-2h6v-1.5c0-.827.673-1.5 1.5-1.5h5c.825 0 1.5.671 1.5 1.5v1.5h6v2h-1v17c0 1.104-.896 2-2 2zm0-19h-14v16.5c0 .276.224.5.5.5h13c.276 0 .5-.224.5-.5v-16.5zm-7 7.586l3.293-3.293 1.414 1.414-3.293 3.293 3.293 3.293-1.414 1.414-3.293-3.293-3.293 3.293-1.414-1.414 3.293-3.293-3.293-3.293 1.414-1.414 3.293 3.293zm2-10.586h-4v1h4v-1z",fill:"currentColor",strokeWidth:.25,stroke:"currentColor"})),"SvgTrash"),YX=ke(({title:e,titleId:t,...n})=>L.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?L.createElement("title",{id:t},e):null,L.createElement("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),L.createElement("rect",{x:5.5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"})),"SvgType"),WX=Nn(vX),QX=Nn(yX),KX=Nn(bX),XX=Nn(EX),zw=Nn(SX),ZX=Nn(TX),JX=Nn(xX),eZ=Nn(wX),tZ=Nn(CX),nZ=Nn(_X),rZ=Nn(NX,"filled docs icon"),iZ=Nn(AX),oZ=Nn(OX),aZ=Nn(DX),sZ=Nn(kX),lZ=Nn(RX),uZ=Nn(MX),cZ=Nn(LX),fZ=Nn(IX),dZ=Nn(FX),pZ=Nn(PX),hZ=Nn(jX),mZ=Nn(VX),gZ=Nn(UX),vZ=Nn(qX),yZ=Nn(BX),bZ=Nn($X,"filled star icon"),EZ=Nn(zX),SZ=Nn(HX),TZ=Nn(GX,"trash icon"),ob=Nn(YX);function Nn(e,t=e.name.replace("Svg","").replaceAll(/([A-Z])/g," $1").trimStart().toLowerCase()+" icon"){return e.defaultProps={title:t},e}ke(Nn,"generateIcon");const fi=L.forwardRef((e,t)=>Y.jsx("button",{...e,ref:t,className:yi("graphiql-un-styled",e.className)}));fi.displayName="UnStyledButton";const ps=L.forwardRef((e,t)=>Y.jsx("button",{...e,ref:t,className:yi("graphiql-button",{success:"graphiql-button-success",error:"graphiql-button-error"}[e.state],e.className)}));ps.displayName="Button";const Hw=L.forwardRef((e,t)=>Y.jsx("div",{...e,ref:t,className:yi("graphiql-button-group",e.className)}));Hw.displayName="ButtonGroup";const lg=ke((e,t)=>Object.entries(t).reduce((n,[r,i])=>(n[r]=i,n),e),"createComponentGroup"),z3=L.forwardRef((e,t)=>Y.jsx($U,{asChild:!0,children:Y.jsxs(fi,{...e,ref:t,type:"button",className:yi("graphiql-dialog-close",e.className),children:[Y.jsx(Vk,{children:"Close dialog"}),Y.jsx(zw,{})]})}));z3.displayName="Dialog.Close";function H3({children:e,...t}){return Y.jsx(FU,{...t,children:Y.jsxs(jU,{children:[Y.jsx(VU,{className:"graphiql-dialog-overlay"}),Y.jsx(UU,{className:"graphiql-dialog",children:e})]})})}ke(H3,"DialogRoot");const mp=lg(H3,{Close:z3,Title:qU,Trigger:PU,Description:BU}),G3=L.forwardRef((e,t)=>Y.jsx(N$,{asChild:!0,children:Y.jsx("button",{...e,ref:t,className:yi("graphiql-un-styled",e.className)})}));G3.displayName="DropdownMenuButton";function Y3({children:e,align:t="start",sideOffset:n=5,className:r,...i}){return Y.jsx(A$,{children:Y.jsx(O$,{align:t,sideOffset:n,className:yi("graphiql-dropdown-content",r),...i,children:e})})}ke(Y3,"Content");const xZ=ke(({className:e,children:t,...n})=>Y.jsx(D$,{className:yi("graphiql-dropdown-item",e),...n,children:t}),"Item"),nc=lg(_$,{Button:G3,Item:xZ,Content:Y3}),ab=new qz({breaks:!0,linkify:!0}),Zs=L.forwardRef(({children:e,onlyShowFirstChild:t,type:n,...r},i)=>Y.jsx("div",{...r,ref:i,className:yi(`graphiql-markdown-${n}`,t&&"graphiql-markdown-preview",r.className),dangerouslySetInnerHTML:{__html:ab.render(e)}}));Zs.displayName="MarkdownContent";const Gw=L.forwardRef((e,t)=>Y.jsx("div",{...e,ref:t,className:yi("graphiql-spinner",e.className)}));Gw.displayName="Spinner";function W3({children:e,align:t="start",side:n="bottom",sideOffset:r=5,label:i}){return Y.jsxs(QQ,{children:[Y.jsx(KQ,{asChild:!0,children:e}),Y.jsx(XQ,{children:Y.jsx(ZQ,{className:"graphiql-tooltip",align:t,side:n,sideOffset:r,children:i})})]})}ke(W3,"TooltipRoot");const Qi=lg(W3,{Provider:WQ}),Q3=L.forwardRef(({isActive:e,value:t,children:n,className:r,...i},o)=>Y.jsx(d3.Item,{...i,ref:o,value:t,"aria-selected":e?"true":void 0,role:"tab",className:yi("graphiql-tab",e&&"graphiql-tab-active",r),children:n}));Q3.displayName="Tab";const K3=L.forwardRef((e,t)=>Y.jsx(fi,{...e,ref:t,type:"button",className:yi("graphiql-tab-button",e.className),children:e.children}));K3.displayName="Tab.Button";const X3=L.forwardRef((e,t)=>Y.jsx(Qi,{label:"Close Tab",children:Y.jsx(fi,{"aria-label":"Close Tab",...e,ref:t,type:"button",className:yi("graphiql-tab-close",e.className),children:Y.jsx(zw,{})})}));X3.displayName="Tab.Close";const Yw=lg(Q3,{Button:K3,Close:X3}),Z3=L.forwardRef(({values:e,onReorder:t,children:n,className:r,...i},o)=>Y.jsx(d3.Group,{...i,ref:o,values:e,onReorder:t,axis:"x",role:"tablist",className:yi("graphiql-tabs",r),children:n}));Z3.displayName="Tabs";const J3=Ju("HistoryContext");function eF(e){var t;const n=tc(),r=L.useRef(new s9(n||new oS(null),e.maxHistoryLength||wZ)),[i,o]=L.useState(((t=r.current)==null?void 0:t.queries)||[]),l=L.useCallback(b=>{var y;(y=r.current)==null||y.updateHistory(b),o(r.current.queries)},[]),c=L.useCallback((b,y)=>{r.current.editLabel(b,y),o(r.current.queries)},[]),p=L.useCallback(b=>{r.current.toggleFavorite(b),o(r.current.queries)},[]),d=L.useCallback(b=>b,[]),m=L.useCallback((b,y=!1)=>{r.current.deleteHistory(b,y),o(r.current.queries)},[]),E=L.useMemo(()=>({addToHistory:l,editLabel:c,items:i,toggleFavorite:p,setActive:d,deleteFromHistory:m}),[l,c,i,p,d,m]);return Y.jsx(J3.Provider,{value:E,children:e.children})}ke(eF,"HistoryContextProvider");const sb=ec(J3),wZ=20;function tF(){const{items:e,deleteFromHistory:t}=sb({nonNull:!0});let n=e.slice().map((c,p)=>({...c,index:p})).reverse();const r=n.filter(c=>c.favorite);r.length&&(n=n.filter(c=>!c.favorite));const[i,o]=L.useState(null);L.useEffect(()=>{i&&setTimeout(()=>{o(null)},2e3)},[i]);const l=L.useCallback(()=>{try{for(const c of n)t(c,!0);o("success")}catch{o("error")}},[t,n]);return Y.jsxs("section",{"aria-label":"History",className:"graphiql-history",children:[Y.jsxs("div",{className:"graphiql-history-header",children:["History",(i||n.length>0)&&Y.jsx(ps,{type:"button",state:i||void 0,disabled:!n.length,onClick:l,children:{success:"Cleared",error:"Failed to Clear"}[i]||"Clear"})]}),!!r.length&&Y.jsx("ul",{className:"graphiql-history-items",children:r.map(c=>Y.jsx(ug,{item:c},c.index))}),!!r.length&&!!n.length&&Y.jsx("div",{className:"graphiql-history-item-spacer"}),!!n.length&&Y.jsx("ul",{className:"graphiql-history-items",children:n.map(c=>Y.jsx(ug,{item:c},c.index))})]})}ke(tF,"History");function ug(e){const{editLabel:t,toggleFavorite:n,deleteFromHistory:r,setActive:i}=sb({nonNull:!0,caller:ug}),{headerEditor:o,queryEditor:l,variableEditor:c}=Si({nonNull:!0,caller:ug}),p=L.useRef(null),d=L.useRef(null),[m,E]=L.useState(!1);L.useEffect(()=>{var O;m&&((O=p.current)==null||O.focus())},[m]);const b=e.item.label||e.item.operationName||nF(e.item.query),y=L.useCallback(()=>{var O;E(!1);const{index:_,...M}=e.item;t({...M,label:(O=p.current)==null?void 0:O.value},_)},[t,e.item]),x=L.useCallback(()=>{E(!1)},[]),w=L.useCallback(O=>{O.stopPropagation(),E(!0)},[]),k=L.useCallback(()=>{const{query:O,variables:_,headers:M}=e.item;l==null||l.setValue(O??""),c==null||c.setValue(_??""),o==null||o.setValue(M??""),i(e.item)},[o,e.item,l,i,c]),N=L.useCallback(O=>{O.stopPropagation(),r(e.item)},[e.item,r]),A=L.useCallback(O=>{O.stopPropagation(),n(e.item)},[e.item,n]);return Y.jsx("li",{className:yi("graphiql-history-item",m&&"editable"),children:m?Y.jsxs(Y.Fragment,{children:[Y.jsx("input",{type:"text",defaultValue:e.item.label,ref:p,onKeyDown:O=>{O.key==="Esc"?E(!1):O.key==="Enter"&&(E(!1),t({...e.item,label:O.currentTarget.value}))},placeholder:"Type a label"}),Y.jsx(fi,{type:"button",ref:d,onClick:y,children:"Save"}),Y.jsx(fi,{type:"button",ref:d,onClick:x,children:Y.jsx(zw,{})})]}):Y.jsxs(Y.Fragment,{children:[Y.jsx(Qi,{label:"Set active",children:Y.jsx(fi,{type:"button",className:"graphiql-history-item-label",onClick:k,"aria-label":"Set active",children:b})}),Y.jsx(Qi,{label:"Edit label",children:Y.jsx(fi,{type:"button",className:"graphiql-history-item-action",onClick:w,"aria-label":"Edit label",children:Y.jsx(dZ,{"aria-hidden":"true"})})}),Y.jsx(Qi,{label:e.item.favorite?"Remove favorite":"Add favorite",children:Y.jsx(fi,{type:"button",className:"graphiql-history-item-action",onClick:A,"aria-label":e.item.favorite?"Remove favorite":"Add favorite",children:e.item.favorite?Y.jsx(bZ,{"aria-hidden":"true"}):Y.jsx(EZ,{"aria-hidden":"true"})})}),Y.jsx(Qi,{label:"Delete from history",children:Y.jsx(fi,{type:"button",className:"graphiql-history-item-action",onClick:N,"aria-label":"Delete from history",children:Y.jsx(TZ,{"aria-hidden":"true"})})})]})})}ke(ug,"HistoryItem");function nF(e){return e==null?void 0:e.split(`
`).map(t=>t.replace(/#(.*)/,"")).join(" ").replaceAll("{"," { ").replaceAll("}"," } ").replaceAll(/[\s]{2,}/g," ")}ke(nF,"formatQuery");const rF=Ju("ExecutionContext");function lb({fetcher:e,getDefaultFieldNames:t,children:n,operationName:r}){if(!e)throw new TypeError("The `ExecutionContextProvider` component requires a `fetcher` function to be passed as prop.");const{externalFragments:i,headerEditor:o,queryEditor:l,responseEditor:c,variableEditor:p,updateActiveTabValues:d}=Si({nonNull:!0,caller:lb}),m=sb(),E=bb({getDefaultFieldNames:t,caller:lb}),[b,y]=L.useState(!1),[x,w]=L.useState(null),k=L.useRef(0),N=L.useCallback(()=>{x==null||x.unsubscribe(),y(!1),w(null)},[x]),A=L.useCallback(async()=>{if(!l||!c)return;if(x){N();return}const M=ke(J=>{c.setValue(J),d({response:J})},"setResponse");k.current+=1;const j=k.current;let P=E()||l.getValue();const F=p==null?void 0:p.getValue();let V;try{V=Ww({json:F,errorMessageParse:"Variables are invalid JSON",errorMessageType:"Variables are not a JSON object."})}catch(J){M(J instanceof Error?J.message:`${J}`);return}const $=o==null?void 0:o.getValue();let K;try{K=Ww({json:$,errorMessageParse:"Headers are invalid JSON",errorMessageType:"Headers are not a JSON object."})}catch(J){M(J instanceof Error?J.message:`${J}`);return}if(i){const J=l.documentAST?G9(l.documentAST,i):[];J.length>0&&(P+=`
`+J.map(W=>hn(W)).join(`
`))}M(""),y(!0);const ee=r??l.operationName??void 0;m==null||m.addToHistory({query:P,variables:F,headers:$,operationName:ee});try{let J={data:{}};const W=ke(re=>{if(j!==k.current)return;let ae=Array.isArray(re)?re:!1;if(!ae&&typeof re=="object"&&re!==null&&"hasNext"in re&&(ae=[re]),ae){const fe={data:J.data},Z=[...(J==null?void 0:J.errors)||[],...ae.flatMap(he=>he.errors).filter(Boolean)];Z.length&&(fe.errors=Z);for(const he of ae){const{path:se,data:pe,errors:ce,...me}=he;if(se){if(!pe)throw new Error(`Expected part to contain a data property, but got ${he}`);a7(fe.data,se,pe,{merge:!0})}else pe&&(fe.data=pe);J={...fe,...me}}y(!1),M(iS(J))}else{const fe=iS(re);y(!1),M(fe)}},"handleResponse"),q=e({query:P,variables:V,operationName:ee},{headers:K??void 0,documentAST:l.documentAST??void 0}),te=await Promise.resolve(q);if(bO(te))w(te.subscribe({next(re){W(re)},error(re){y(!1),re&&M(bm(re)),w(null)},complete(){y(!1),w(null)}}));else if(EO(te)){w({unsubscribe:()=>{var re,ae;return(ae=(re=te[Symbol.asyncIterator]()).return)==null?void 0:ae.call(re)}});for await(const re of te)W(re);y(!1),w(null)}else W(te)}catch(J){y(!1),M(bm(J)),w(null)}},[E,i,e,o,m,r,l,c,N,x,d,p]),O=!!x,_=L.useMemo(()=>({isFetching:b,isSubscribed:O,operationName:r??null,run:A,stop:N}),[b,O,r,A,N]);return Y.jsx(rF.Provider,{value:_,children:n})}ke(lb,"ExecutionContextProvider");const gp=ec(rF);function Ww({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}ke(Ww,"tryParseJsonObject");const ub="graphiql",cb="sublime";let iF=!1;typeof window=="object"&&(iF=window.navigator.platform.toLowerCase().indexOf("mac")===0);const fb={[iF?"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 vp(e,t){const n=await Promise.resolve().then(()=>Bne).then(r=>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(()=>Hne).then(r=>r.s),Promise.resolve().then(()=>Kne).then(r=>r.m),Promise.resolve().then(()=>Jne).then(r=>r.c),Promise.resolve().then(()=>$4).then(r=>r.b),Promise.resolve().then(()=>W4).then(r=>r.f),Promise.resolve().then(()=>sre).then(r=>r.l),Promise.resolve().then(()=>eP).then(r=>r.s),Promise.resolve().then(()=>oP).then(r=>r.j),Promise.resolve().then(()=>nP).then(r=>r.d),Promise.resolve().then(()=>lP).then(r=>r.s),...e]),n}ke(vp,"importCodeMirror");const CZ=ke(e=>e?hn(e):"","printDefault");function Qw({field:e}){if(!("defaultValue"in e)||e.defaultValue===void 0)return null;const t=Pl(e.defaultValue,e.type);return t?Y.jsxs(Y.Fragment,{children:[" = ",Y.jsx("span",{className:"graphiql-doc-explorer-default-value",children:CZ(t)})]}):null}ke(Qw,"DefaultValue");const oF=Ju("SchemaContext");function Kw(e){if(!e.fetcher)throw new TypeError("The `SchemaContextProvider` component requires a `fetcher` function to be passed as prop.");const{initialHeaders:t,headerEditor:n}=Si({nonNull:!0,caller:Kw}),[r,i]=L.useState(),[o,l]=L.useState(!1),[c,p]=L.useState(null),d=L.useRef(0);L.useEffect(()=>{i(yy(e.schema)||e.schema===null||e.schema===void 0?e.schema:void 0),d.current++},[e.schema]);const m=L.useRef(t);L.useEffect(()=>{n&&(m.current=n.getValue())});const{introspectionQuery:E,introspectionQueryName:b,introspectionQuerySansSubscriptions:y}=aF({inputValueDeprecation:e.inputValueDeprecation,introspectionQueryName:e.introspectionQueryName,schemaDescription:e.schemaDescription}),{fetcher:x,onSchemaChange:w,dangerouslyAssumeSchemaIsValid:k,children:N}=e,A=L.useCallback(()=>{if(yy(e.schema)||e.schema===null)return;const M=++d.current,j=e.schema;async function P(){if(j)return j;const F=sF(m.current);if(!F.isValidJSON){p("Introspection failed as headers are invalid.");return}const V=F.headers?{headers:F.headers}:{},$=SO(x({query:E,operationName:b},V));if(!yO($)){p("Fetcher did not return a Promise for introspection.");return}l(!0),p(null);let K=await $;if(typeof K!="object"||K===null||!("data"in K)){const J=SO(x({query:y,operationName:b},V));if(!yO(J))throw new Error("Fetcher did not return a Promise for introspection.");K=await J}if(l(!1),K!=null&&K.data&&"__schema"in K.data)return K.data;const ee=typeof K=="string"?K:iS(K);p(ee)}ke(P,"fetchIntrospectionData"),P().then(F=>{if(!(M!==d.current||!F))try{const V=KE(F);i(V),w==null||w(V)}catch(V){p(bm(V))}}).catch(F=>{M===d.current&&(p(bm(F)),l(!1))})},[x,b,E,y,w,e.schema]);L.useEffect(()=>{A()},[A]),L.useEffect(()=>{function M(j){j.ctrlKey&&j.key==="R"&&A()}return ke(M,"triggerIntrospection"),window.addEventListener("keydown",M),()=>window.removeEventListener("keydown",M)});const O=L.useMemo(()=>!r||k?[]:by(r),[r,k]),_=L.useMemo(()=>({fetchError:c,introspect:A,isFetching:o,schema:r,validationErrors:O}),[c,A,o,r,O]);return Y.jsx(oF.Provider,{value:_,children:N})}ke(Kw,"SchemaContextProvider");const hs=ec(oF);function aF({inputValueDeprecation:e,introspectionQueryName:t,schemaDescription:n}){return L.useMemo(()=>{const r=t||"IntrospectionQuery";let i=Ly({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])}ke(aF,"useIntrospectionQuery");function sF(e){let t=null,n=!0;try{e&&(t=JSON.parse(e))}catch{n=!1}return{headers:t,isValidJSON:n}}ke(sF,"parseHeaderString");const db={name:"Docs"},lF=Ju("ExplorerContext");function Xw(e){const{schema:t,validationErrors:n}=hs({nonNull:!0,caller:Xw}),[r,i]=L.useState([db]),o=L.useCallback(d=>{i(m=>m.at(-1).def===d.def?m:[...m,d])},[]),l=L.useCallback(()=>{i(d=>d.length>1?d.slice(0,-1):d)},[]),c=L.useCallback(()=>{i(d=>d.length===1?d:[db])},[]);L.useEffect(()=>{t==null||n.length>0?c():i(d=>{if(d.length===1)return d;const m=[db];let E=null;for(const b of d)if(b!==db)if(b.def)if(Fl(b.def)){const y=t.getType(b.def.name);if(y)m.push({name:b.name,def:y}),E=y;else break}else{if(E===null)break;if(At(E)||rn(E)){const y=E.getFields()[b.name];if(y)m.push({name:b.name,def:y});else break}else{if(Di(E)||Qn(E)||Mt(E)||sr(E))break;{const y=E;if(y.args.find(x=>x.name===b.name))m.push({name:b.name,def:y});else break}}}else E=null,m.push(b);return m})},[c,t,n]);const p=L.useMemo(()=>({explorerNavStack:r,push:o,pop:l,reset:c}),[r,o,l,c]);return Y.jsx(lF.Provider,{value:p,children:e.children})}ke(Xw,"ExplorerContextProvider");const rc=ec(lF);function cg(e,t){return _t(e)?Y.jsxs(Y.Fragment,{children:[cg(e.ofType,t),"!"]}):gn(e)?Y.jsxs(Y.Fragment,{children:["[",cg(e.ofType,t),"]"]}):t(e)}ke(cg,"renderType");function ms(e){const{push:t}=rc({nonNull:!0,caller:ms});return e.type?cg(e.type,n=>Y.jsx("a",{className:"graphiql-doc-explorer-type-name",onClick:r=>{r.preventDefault(),t({name:n.name,def:n})},href:"#",children:n.name})):null}ke(ms,"TypeLink");function fg({arg:e,showDefaultValue:t,inline:n}){const r=Y.jsxs("span",{children:[Y.jsx("span",{className:"graphiql-doc-explorer-argument-name",children:e.name}),": ",Y.jsx(ms,{type:e.type}),t!==!1&&Y.jsx(Qw,{field:e})]});return n?r:Y.jsxs("div",{className:"graphiql-doc-explorer-argument",children:[r,e.description?Y.jsx(Zs,{type:"description",children:e.description}):null,e.deprecationReason?Y.jsxs("div",{className:"graphiql-doc-explorer-argument-deprecation",children:[Y.jsx("div",{className:"graphiql-doc-explorer-argument-deprecation-label",children:"Deprecated"}),Y.jsx(Zs,{type:"deprecation",children:e.deprecationReason})]}):null]})}ke(fg,"Argument");function Zw(e){return e.children?Y.jsxs("div",{className:"graphiql-doc-explorer-deprecation",children:[Y.jsx("div",{className:"graphiql-doc-explorer-deprecation-label",children:"Deprecated"}),Y.jsx(Zs,{type:"deprecation",onlyShowFirstChild:e.preview??!0,children:e.children})]}):null}ke(Zw,"DeprecationReason");function uF({directive:e}){return Y.jsxs("span",{className:"graphiql-doc-explorer-directive",children:["@",e.name.value]})}ke(uF,"Directive");function Qo(e){const t=_Z[e.title];return Y.jsxs("div",{children:[Y.jsxs("div",{className:"graphiql-doc-explorer-section-title",children:[Y.jsx(t,{}),e.title]}),Y.jsx("div",{className:"graphiql-doc-explorer-section-content",children:e.children})]})}ke(Qo,"ExplorerSection");const _Z={Arguments:WX,"Deprecated Arguments":JX,"Deprecated Enum Values":eZ,"Deprecated Fields":tZ,Directives:nZ,"Enum Values":oZ,Fields:aZ,Implements:lZ,Implementations:ob,"Possible Types":ob,"Root Types":vZ,Type:ob,"All Schema Types":ob};function cF(e){return Y.jsxs(Y.Fragment,{children:[e.field.description?Y.jsx(Zs,{type:"description",children:e.field.description}):null,Y.jsx(Zw,{preview:!1,children:e.field.deprecationReason}),Y.jsx(Qo,{title:"Type",children:Y.jsx(ms,{type:e.field.type})}),Y.jsx(fF,{field:e.field}),Y.jsx(dF,{field:e.field})]})}ke(cF,"FieldDocumentation");function fF({field:e}){const[t,n]=L.useState(!1),r=L.useCallback(()=>{n(!0)},[]);if(!("args"in e))return null;const i=[],o=[];for(const l of e.args)l.deprecationReason?o.push(l):i.push(l);return Y.jsxs(Y.Fragment,{children:[i.length>0?Y.jsx(Qo,{title:"Arguments",children:i.map(l=>Y.jsx(fg,{arg:l},l.name))}):null,o.length>0?t||i.length===0?Y.jsx(Qo,{title:"Deprecated Arguments",children:o.map(l=>Y.jsx(fg,{arg:l},l.name))}):Y.jsx(ps,{type:"button",onClick:r,children:"Show Deprecated Arguments"}):null]})}ke(fF,"Arguments");function dF({field:e}){var t;const n=((t=e.astNode)==null?void 0:t.directives)||[];return!n||n.length===0?null:Y.jsx(Qo,{title:"Directives",children:n.map(r=>Y.jsx("div",{children:Y.jsx(uF,{directive:r})},r.name.value))})}ke(dF,"Directives");function pF(e){var t,n,r,i;const o=e.schema.getQueryType(),l=(n=(t=e.schema).getMutationType)==null?void 0:n.call(t),c=(i=(r=e.schema).getSubscriptionType)==null?void 0:i.call(r),p=e.schema.getTypeMap(),d=[o==null?void 0:o.name,l==null?void 0:l.name,c==null?void 0:c.name];return Y.jsxs(Y.Fragment,{children:[Y.jsx(Zs,{type:"description",children:e.schema.description||"A GraphQL schema provides a root type for each kind of operation."}),Y.jsxs(Qo,{title:"Root Types",children:[o?Y.jsxs("div",{children:[Y.jsx("span",{className:"graphiql-doc-explorer-root-type",children:"query"}),": ",Y.jsx(ms,{type:o})]}):null,l&&Y.jsxs("div",{children:[Y.jsx("span",{className:"graphiql-doc-explorer-root-type",children:"mutation"}),": ",Y.jsx(ms,{type:l})]}),c&&Y.jsxs("div",{children:[Y.jsx("span",{className:"graphiql-doc-explorer-root-type",children:"subscription"}),": ",Y.jsx(ms,{type:c})]})]}),Y.jsx(Qo,{title:"All Schema Types",children:p&&Y.jsx("div",{children:Object.values(p).map(m=>d.includes(m.name)||m.name.startsWith("__")?null:Y.jsx("div",{children:Y.jsx(ms,{type:m})},m.name))})})]})}ke(pF,"SchemaDocumentation");function $f(e,t){let n;return function(...r){n&&window.clearTimeout(n),n=window.setTimeout(()=>{n=null,t(...r)},e)}}ke($f,"debounce");function Jw(){const{explorerNavStack:e,push:t}=rc({nonNull:!0,caller:Jw}),n=L.useRef(null),r=pb(),[i,o]=L.useState(""),[l,c]=L.useState(r(i)),p=L.useMemo(()=>$f(200,y=>{c(r(y))}),[r]);L.useEffect(()=>{p(i)},[p,i]),L.useEffect(()=>{function y(x){var w;x.metaKey&&x.key==="k"&&((w=n.current)==null||w.focus())}return ke(y,"handleKeyDown"),window.addEventListener("keydown",y),()=>window.removeEventListener("keydown",y)},[]);const d=e.at(-1),m=L.useCallback(y=>{t("field"in y?{name:y.field.name,def:y.field}:{name:y.type.name,def:y.type})},[t]),E=L.useRef(!1),b=L.useCallback(y=>{E.current=y.type==="focus"},[]);return e.length===1||At(d.def)||Mt(d.def)||rn(d.def)?Y.jsxs(hp,{as:"div",className:"graphiql-doc-explorer-search",onChange:m,"data-state":E?void 0:"idle","aria-label":`Search ${d.name}...`,children:[Y.jsxs("div",{className:"graphiql-doc-explorer-search-input",onClick:()=>{var y;(y=n.current)==null||y.focus()},children:[Y.jsx(cZ,{}),Y.jsx(hp.Input,{autoComplete:"off",onFocus:b,onBlur:b,onChange:y=>o(y.target.value),placeholder:"⌘ K",ref:n,value:i,"data-cy":"doc-explorer-input"})]}),E.current&&Y.jsxs(hp.Options,{"data-cy":"doc-explorer-list",children:[l.within.length+l.types.length+l.fields.length===0?Y.jsx("li",{className:"graphiql-doc-explorer-search-empty",children:"No results found"}):l.within.map((y,x)=>Y.jsx(hp.Option,{value:y,"data-cy":"doc-explorer-option",children:Y.jsx(eC,{field:y.field,argument:y.argument})},`within-${x}`)),l.within.length>0&&l.types.length+l.fields.length>0?Y.jsx("div",{className:"graphiql-doc-explorer-search-divider",children:"Other results"}):null,l.types.map((y,x)=>Y.jsx(hp.Option,{value:y,"data-cy":"doc-explorer-option",children:Y.jsx(mb,{type:y.type})},`type-${x}`)),l.fields.map((y,x)=>Y.jsxs(hp.Option,{value:y,"data-cy":"doc-explorer-option",children:[Y.jsx(mb,{type:y.type}),".",Y.jsx(eC,{field:y.field,argument:y.argument})]},`field-${x}`))]})]}):null}ke(Jw,"Search");function pb(e){const{explorerNavStack:t}=rc({nonNull:!0,caller:e||pb}),{schema:n}=hs({nonNull:!0,caller:e||pb}),r=t.at(-1);return L.useCallback(i=>{const o={within:[],types:[],fields:[]};if(!n)return o;const l=r.def,c=n.getTypeMap();let p=Object.keys(c);l&&(p=p.filter(d=>d!==l.name),p.unshift(l.name));for(const d of p){if(o.within.length+o.types.length+o.fields.length>=100)break;const m=c[d];if(l!==m&&hb(d,i)&&o.types.push({type:m}),!At(m)&&!Mt(m)&&!rn(m))continue;const E=m.getFields();for(const b in E){const y=E[b];let x;if(!hb(b,i))if("args"in y){if(x=y.args.filter(w=>hb(w.name,i)),x.length===0)continue}else continue;o[l===m?"within":"fields"].push(...x?x.map(w=>({type:m,field:y,argument:w})):[{type:m,field:y}])}}return o},[r.def,n])}ke(pb,"useSearchResults");function hb(e,t){try{const n=t.replaceAll(/[^_0-9A-Za-z]/g,r=>"\\"+r);return e.search(new RegExp(n,"i"))!==-1}catch{return e.toLowerCase().includes(t.toLowerCase())}}ke(hb,"isMatch");function mb(e){return Y.jsx("span",{className:"graphiql-doc-explorer-search-type",children:e.type.name})}ke(mb,"Type");function eC({field:e,argument:t}){return Y.jsxs(Y.Fragment,{children:[Y.jsx("span",{className:"graphiql-doc-explorer-search-field",children:e.name}),t?Y.jsxs(Y.Fragment,{children:["(",Y.jsx("span",{className:"graphiql-doc-explorer-search-argument",children:t.name}),":"," ",cg(t.type,n=>Y.jsx(mb,{type:n})),")"]}):null]})}ke(eC,"Field$1");function hF(e){const{push:t}=rc({nonNull:!0});return Y.jsx("a",{className:"graphiql-doc-explorer-field-name",onClick:n=>{n.preventDefault(),t({name:e.field.name,def:e.field})},href:"#",children:e.field.name})}ke(hF,"FieldLink");function mF(e){return Fl(e.type)?Y.jsxs(Y.Fragment,{children:[e.type.description?Y.jsx(Zs,{type:"description",children:e.type.description}):null,Y.jsx(gF,{type:e.type}),Y.jsx(vF,{type:e.type}),Y.jsx(yF,{type:e.type}),Y.jsx(bF,{type:e.type})]}):null}ke(mF,"TypeDocumentation");function gF({type:e}){return At(e)&&e.getInterfaces().length>0?Y.jsx(Qo,{title:"Implements",children:e.getInterfaces().map(t=>Y.jsx("div",{children:Y.jsx(ms,{type:t})},t.name))}):null}ke(gF,"ImplementsInterfaces");function vF({type:e}){const[t,n]=L.useState(!1),r=L.useCallback(()=>{n(!0)},[]);if(!At(e)&&!Mt(e)&&!rn(e))return null;const i=e.getFields(),o=[],l=[];for(const c of Object.keys(i).map(p=>i[p]))c.deprecationReason?l.push(c):o.push(c);return Y.jsxs(Y.Fragment,{children:[o.length>0?Y.jsx(Qo,{title:"Fields",children:o.map(c=>Y.jsx(tC,{field:c},c.name))}):null,l.length>0?t||o.length===0?Y.jsx(Qo,{title:"Deprecated Fields",children:l.map(c=>Y.jsx(tC,{field:c},c.name))}):Y.jsx(ps,{type:"button",onClick:r,children:"Show Deprecated Fields"}):null]})}ke(vF,"Fields");function tC({field:e}){const t="args"in e?e.args.filter(n=>!n.deprecationReason):[];return Y.jsxs("div",{className:"graphiql-doc-explorer-item",children:[Y.jsxs("div",{children:[Y.jsx(hF,{field:e}),t.length>0?Y.jsxs(Y.Fragment,{children:["(",Y.jsx("span",{children:t.map(n=>t.length===1?Y.jsx(fg,{arg:n,inline:!0},n.name):Y.jsx("div",{className:"graphiql-doc-explorer-argument-multiple",children:Y.jsx(fg,{arg:n,inline:!0})},n.name))}),")"]}):null,": ",Y.jsx(ms,{type:e.type}),Y.jsx(Qw,{field:e})]}),e.description?Y.jsx(Zs,{type:"description",onlyShowFirstChild:!0,children:e.description}):null,Y.jsx(Zw,{children:e.deprecationReason})]})}ke(tC,"Field");function yF({type:e}){const[t,n]=L.useState(!1),r=L.useCallback(()=>{n(!0)},[]);if(!Qn(e))return null;const i=[],o=[];for(const l of e.getValues())l.deprecationReason?o.push(l):i.push(l);return Y.jsxs(Y.Fragment,{children:[i.length>0?Y.jsx(Qo,{title:"Enum Values",children:i.map(l=>Y.jsx(nC,{value:l},l.name))}):null,o.length>0?t||i.length===0?Y.jsx(Qo,{title:"Deprecated Enum Values",children:o.map(l=>Y.jsx(nC,{value:l},l.name))}):Y.jsx(ps,{type:"button",onClick:r,children:"Show Deprecated Values"}):null]})}ke(yF,"EnumValues");function nC({value:e}){return Y.jsxs("div",{className:"graphiql-doc-explorer-item",children:[Y.jsx("div",{className:"graphiql-doc-explorer-enum-value",children:e.name}),e.description?Y.jsx(Zs,{type:"description",children:e.description}):null,e.deprecationReason?Y.jsx(Zs,{type:"deprecation",children:e.deprecationReason}):null]})}ke(nC,"EnumValue");function bF({type:e}){const{schema:t}=hs({nonNull:!0});return!t||!lr(e)?null:Y.jsx(Qo,{title:Mt(e)?"Implementations":"Possible Types",children:t.getPossibleTypes(e).map(n=>Y.jsx("div",{children:Y.jsx(ms,{type:n})},n.name))})}ke(bF,"PossibleTypes");function gb(){const{fetchError:e,isFetching:t,schema:n,validationErrors:r}=hs({nonNull:!0,caller:gb}),{explorerNavStack:i,pop:o}=rc({nonNull:!0,caller:gb}),l=i.at(-1);let c=null;e?c=Y.jsx("div",{className:"graphiql-doc-explorer-error",children:"Error fetching schema"}):r.length>0?c=Y.jsxs("div",{className:"graphiql-doc-explorer-error",children:["Schema is invalid: ",r[0].message]}):t?c=Y.jsx(Gw,{}):n?i.length===1?c=Y.jsx(pF,{schema:n}):Bd(l.def)?c=Y.jsx(mF,{type:l.def}):l.def&&(c=Y.jsx(cF,{field:l.def})):c=Y.jsx("div",{className:"graphiql-doc-explorer-error",children:"No GraphQL schema available"});let p;return i.length>1&&(p=i.at(-2).name),Y.jsxs("section",{className:"graphiql-doc-explorer","aria-label":"Documentation Explorer",children:[Y.jsxs("div",{className:"graphiql-doc-explorer-header",children:[Y.jsxs("div",{className:"graphiql-doc-explorer-header-content",children:[p&&Y.jsxs("a",{href:"#",className:"graphiql-doc-explorer-back",onClick:d=>{d.preventDefault(),o()},"aria-label":`Go back to ${p}`,children:[Y.jsx(KX,{}),p]}),Y.jsx("div",{className:"graphiql-doc-explorer-title",children:l.name})]}),Y.jsx(Jw,{},l.name)]}),Y.jsx("div",{className:"graphiql-doc-explorer-content",children:c})]})}ke(gb,"DocExplorer");const dg={title:"Documentation Explorer",icon:ke(function(){const e=vb();return(e==null?void 0:e.visiblePlugin)===dg?Y.jsx(rZ,{}):Y.jsx(iZ,{})},"Icon"),content:gb},EF={title:"History",icon:sZ,content:tF},SF=Ju("PluginContext");function TF(e){const t=tc(),n=rc(),r=sb(),i=!!n,o=!!r,l=L.useMemo(()=>{const y=[],x={};i&&(y.push(dg),x[dg.title]=!0),o&&(y.push(EF),x[EF.title]=!0);for(const w of e.plugins||[]){if(typeof w.title!="string"||!w.title)throw new Error("All GraphiQL plugins must have a unique title");if(x[w.title])throw new Error(`All GraphiQL plugins must have a unique title, found two plugins with the title '${w.title}'`);y.push(w),x[w.title]=!0}return y},[i,o,e.plugins]),[c,p]=L.useState(()=>{const y=t==null?void 0:t.get(xF);return l.find(w=>w.title===y)||(y&&(t==null||t.set(xF,"")),e.visiblePlugin&&l.find(w=>(typeof e.visiblePlugin=="string"?w.title:w)===e.visiblePlugin)||null)}),{onTogglePluginVisibility:d,children:m}=e,E=L.useCallback(y=>{const x=y&&l.find(w=>(typeof y=="string"?w.title:w)===y)||null;p(w=>x===w?w:(d==null||d(x),x))},[d,l]);L.useEffect(()=>{e.visiblePlugin&&E(e.visiblePlugin)},[l,e.visiblePlugin,E]);const b=L.useMemo(()=>({plugins:l,setVisiblePlugin:E,visiblePlugin:c}),[l,E,c]);return Y.jsx(SF.Provider,{value:b,children:m})}ke(TF,"PluginContextProvider");const vb=ec(SF),xF="visiblePlugin";function wF(e,t,n,r,i,o){vp([],{useCommonAddons:!1}).then(c=>{let p,d,m,E,b,y,x,w,k;c.on(t,"select",(N,A)=>{if(!p){const O=A.parentNode;p=document.createElement("div"),p.className="CodeMirror-hint-information",O.append(p);const _=document.createElement("header");_.className="CodeMirror-hint-information-header",p.append(_),d=document.createElement("span"),d.className="CodeMirror-hint-information-field-name",_.append(d),m=document.createElement("span"),m.className="CodeMirror-hint-information-type-name-pill",_.append(m),E=document.createElement("span"),m.append(E),b=document.createElement("a"),b.className="CodeMirror-hint-information-type-name",b.href="javascript:void 0",b.addEventListener("click",l),m.append(b),y=document.createElement("span"),m.append(y),x=document.createElement("div"),x.className="CodeMirror-hint-information-description",p.append(x),w=document.createElement("div"),w.className="CodeMirror-hint-information-deprecation",p.append(w);const M=document.createElement("span");M.className="CodeMirror-hint-information-deprecation-label",M.textContent="Deprecated",w.append(M),k=document.createElement("div"),k.className="CodeMirror-hint-information-deprecation-reason",w.append(k);const j=parseInt(window.getComputedStyle(p).paddingBottom.replace(/px$/,""),10)||0,P=parseInt(window.getComputedStyle(p).maxHeight.replace(/px$/,""),10)||0,F=ke(()=>{p&&(p.style.paddingTop=O.scrollTop+j+"px",p.style.maxHeight=O.scrollTop+P+"px")},"handleScroll");O.addEventListener("scroll",F);let V;O.addEventListener("DOMNodeRemoved",V=ke($=>{$.target===O&&(O.removeEventListener("scroll",F),O.removeEventListener("DOMNodeRemoved",V),p&&p.removeEventListener("click",l),p=null,d=null,m=null,E=null,b=null,y=null,x=null,w=null,k=null,V=null)},"onRemoveFn"))}if(d&&(d.textContent=N.text),m&&E&&b&&y)if(N.type){m.style.display="inline";const O=ke(_=>{_t(_)?(y.textContent="!"+y.textContent,O(_.ofType)):gn(_)?(E.textContent+="[",y.textContent="]"+y.textContent,O(_.ofType)):b.textContent=_.name},"renderType");E.textContent="",y.textContent="",O(N.type)}else E.textContent="",b.textContent="",y.textContent="",m.style.display="none";x&&(N.description?(x.style.display="block",x.innerHTML=ab.render(N.description)):(x.style.display="none",x.innerHTML="")),w&&k&&(N.deprecationReason?(w.style.display="block",k.innerHTML=ab.render(N.deprecationReason)):(w.style.display="none",k.innerHTML=""))})});function l(c){if(!n||!r||!i||!(c.currentTarget instanceof HTMLElement))return;const p=c.currentTarget.textContent||"",d=n.getType(p);d&&(i.setVisiblePlugin(dg),r.push({name:d.name,def:d}),o==null||o(d))}ke(l,"onClickHintInformation")}ke(wF,"onHasCompletion");function pg(e,t){L.useEffect(()=>{e&&typeof t=="string"&&t!==e.getValue()&&e.setValue(t)},[e,t])}ke(pg,"useSynchronizeValue");function hg(e,t,n){L.useEffect(()=>{e&&e.setOption(t,n)},[e,t,n])}ke(hg,"useSynchronizeOption");function rC(e,t,n,r,i){const{updateActiveTabValues:o}=Si({nonNull:!0,caller:i}),l=tc();L.useEffect(()=>{if(!e)return;const c=$f(500,m=>{!l||n===null||l.set(n,m)}),p=$f(100,m=>{o({[r]:m})}),d=ke((m,E)=>{if(!E)return;const b=m.getValue();c(b),p(b),t==null||t(b)},"handleChange");return e.on("change",d),()=>e.off("change",d)},[t,e,l,n,r,o])}ke(rC,"useChangeHandler");function iC(e,t,n){const{schema:r}=hs({nonNull:!0,caller:n}),i=rc(),o=vb();L.useEffect(()=>{if(!e)return;const l=ke((c,p)=>{wF(c,p,r,i,o,d=>{t==null||t({kind:"Type",type:d,schema:r||void 0})})},"handleCompletion");return e.on("hasCompletion",l),()=>e.off("hasCompletion",l)},[t,e,i,o,r])}ke(iC,"useCompletion");function gs(e,t,n){L.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])}ke(gs,"useKeyMap");function yb({caller:e,onCopyQuery:t}={}){const{queryEditor:n}=Si({nonNull:!0,caller:e||yb});return L.useCallback(()=>{if(!n)return;const r=n.getValue();c7(r),t==null||t(r)},[n,t])}ke(yb,"useCopyQuery");function zf({caller:e}={}){const{queryEditor:t}=Si({nonNull:!0,caller:e||zf}),{schema:n}=hs({nonNull:!0,caller:zf});return L.useCallback(()=>{const r=t==null?void 0:t.documentAST,i=t==null?void 0:t.getValue();!r||!i||t.setValue(hn(r9(r,n)))},[t,n])}ke(zf,"useMergeQuery");function yp({caller:e}={}){const{queryEditor:t,headerEditor:n,variableEditor:r}=Si({nonNull:!0,caller:e||yp});return L.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=hn(Oi(i));o!==i&&t.setValue(o)}},[t,r,n])}ke(yp,"usePrettifyEditors");function bb({getDefaultFieldNames:e,caller:t}={}){const{schema:n}=hs({nonNull:!0,caller:t||bb}),{queryEditor:r}=Si({nonNull:!0,caller:t||bb});return L.useCallback(()=>{if(!r)return;const i=r.getValue(),{insertions:o,result:l}=X8(n,i,e);return o&&o.length>0&&r.operation(()=>{const c=r.getCursor(),p=r.indexFromPos(c);r.setValue(l||"");let d=0;const m=o.map(({index:b,string:y})=>r.markText(r.posFromIndex(b+d),r.posFromIndex(b+(d+=y.length)),{className:"auto-inserted-leaf",clearOnEnter:!0,title:"Automatically added leaf fields"}));setTimeout(()=>{for(const b of m)b.clear()},7e3);let E=p;for(const{index:b,string:y}of o)b<p&&(E+=y.length);r.setCursor(r.posFromIndex(E))}),l},[e,r,n])}ke(bb,"useAutoCompleteLeafs");const NZ=ke(e=>{const t=Si({nonNull:!0})[`${e}Editor`];let n="";const r=(t==null?void 0:t.getValue())??!1;r&&r.length>0&&(n=r);const i=L.useCallback(o=>t==null?void 0:t.setValue(o),[t]);return L.useMemo(()=>[n,i],[n,i])},"useEditorState"),AZ=ke(()=>NZ("query"),"useOperationsEditorState");function CF([e,t]){const n=L.useRef({pending:null,last:e}),[r,i]=L.useState(e);L.useEffect(()=>{n.current.last===e||(n.current.last=e,n.current.pending===null?i(e):n.current.pending===e?(n.current.pending=null,e!==r&&(n.current.pending=r,t(r))):(n.current.pending=null,i(e)))},[e,r,t]);const o=L.useCallback(l=>{i(l),n.current.pending===null&&n.current.last!==l&&(n.current.pending=l,t(l))},[t]);return L.useMemo(()=>[r,o],[r,o])}ke(CF,"useOptimisticState");function bp({editorTheme:e=ub,keyMap:t=cb,onEdit:n,readOnly:r=!1}={},i){const{initialHeaders:o,headerEditor:l,setHeaderEditor:c,shouldPersistHeaders:p}=Si({nonNull:!0,caller:i||bp}),d=gp(),m=zf({caller:i||bp}),E=yp({caller:i||bp}),b=L.useRef(null);return L.useEffect(()=>{let y=!0;return vp([Promise.resolve().then(()=>Ere).then(x=>x.j)]).then(x=>{if(!y)return;const w=b.current;if(!w)return;const k=x(w,{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:fb});k.addKeyMap({"Cmd-Space"(){k.showHint({completeSingle:!1,container:w})},"Ctrl-Space"(){k.showHint({completeSingle:!1,container:w})},"Alt-Space"(){k.showHint({completeSingle:!1,container:w})},"Shift-Space"(){k.showHint({completeSingle:!1,container:w})}}),k.on("keyup",(N,A)=>{const{code:O,key:_,shiftKey:M}=A,j=O.startsWith("Key"),P=!M&&O.startsWith("Digit");(j||P||_==="_"||_==='"')&&N.execCommand("autocomplete")}),c(k)}),()=>{y=!1}},[e,o,r,c]),hg(l,"keyMap",t),rC(l,n,p?Eb:null,"headers",bp),gs(l,["Cmd-Enter","Ctrl-Enter"],d==null?void 0:d.run),gs(l,["Shift-Ctrl-P"],E),gs(l,["Shift-Ctrl-M"],m),b}ke(bp,"useHeaderEditor");const Eb="headers",OZ=Array.from({length:11},(e,t)=>String.fromCharCode(8192+t)).concat(["\u2028","\u2029"," "," "]),DZ=new RegExp("["+OZ.join("")+"]","g");function _F(e){return e.replace(DZ," ")}ke(_F,"normalizeWhitespace");function ic({editorTheme:e=ub,keyMap:t=cb,onClickReference:n,onCopyQuery:r,onEdit:i,readOnly:o=!1}={},l){const{schema:c}=hs({nonNull:!0,caller:l||ic}),{externalFragments:p,initialQuery:d,queryEditor:m,setOperationName:E,setQueryEditor:b,validationRules:y,variableEditor:x,updateActiveTabValues:w}=Si({nonNull:!0,caller:l||ic}),k=gp(),N=tc(),A=rc(),O=vb(),_=yb({caller:l||ic,onCopyQuery:r}),M=zf({caller:l||ic}),j=yp({caller:l||ic}),P=L.useRef(null),F=L.useRef(),V=L.useRef(()=>{});L.useEffect(()=>{V.current=ee=>{if(!(!A||!O)){switch(O.setVisiblePlugin(dg),ee.kind){case"Type":{A.push({name:ee.type.name,def:ee.type});break}case"Field":{A.push({name:ee.field.name,def:ee.field});break}case"Argument":{ee.field&&A.push({name:ee.field.name,def:ee.field});break}case"EnumValue":{ee.type&&A.push({name:ee.type.name,def:ee.type});break}}n==null||n(ee)}}},[A,n,O]),L.useEffect(()=>{let ee=!0;return vp([Promise.resolve().then(()=>xre).then(J=>J.c),Promise.resolve().then(()=>mP).then(J=>J.s),Promise.resolve().then(()=>_re),Promise.resolve().then(()=>Are),Promise.resolve().then(()=>Ire),Promise.resolve().then(()=>jre),Promise.resolve().then(()=>zre)]).then(J=>{if(!ee)return;F.current=J;const W=P.current;if(!W)return;const q=J(W,{value:d,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:W,externalFragments:void 0},info:{schema:void 0,renderDescription:re=>ab.render(re),onClick(re){V.current(re)}},jump:{schema:void 0,onClick(re){V.current(re)}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{...fb,"Cmd-S"(){},"Ctrl-S"(){}}});q.addKeyMap({"Cmd-Space"(){q.showHint({completeSingle:!0,container:W})},"Ctrl-Space"(){q.showHint({completeSingle:!0,container:W})},"Alt-Space"(){q.showHint({completeSingle:!0,container:W})},"Shift-Space"(){q.showHint({completeSingle:!0,container:W})},"Shift-Alt-Space"(){q.showHint({completeSingle:!0,container:W})}}),q.on("keyup",(re,ae)=>{kZ.test(ae.key)&&re.execCommand("autocomplete")});let te=!1;q.on("startCompletion",()=>{te=!0}),q.on("endCompletion",()=>{te=!1}),q.on("keydown",(re,ae)=>{ae.key==="Escape"&&te&&ae.stopPropagation()}),q.on("beforeChange",(re,ae)=>{var fe;if(ae.origin==="paste"){const Z=ae.text.map(_F);(fe=ae.update)==null||fe.call(ae,ae.from,ae.to,Z)}}),q.documentAST=null,q.operationName=null,q.operations=null,q.variableToType=null,b(q)}),()=>{ee=!1}},[e,d,o,b]),hg(m,"keyMap",t),L.useEffect(()=>{if(!m)return;function ee(W){var q;const te=K9(c,W.getValue()),re=i9(W.operations??void 0,W.operationName??void 0,te==null?void 0:te.operations);return W.documentAST=(te==null?void 0:te.documentAST)??null,W.operationName=re??null,W.operations=(te==null?void 0:te.operations)??null,x&&(x.state.lint.linterOptions.variableToType=te==null?void 0:te.variableToType,x.options.lint.variableToType=te==null?void 0:te.variableToType,x.options.hintOptions.variableToType=te==null?void 0:te.variableToType,(q=F.current)==null||q.signal(x,"change",x)),te?{...te,operationName:re}:null}ke(ee,"getAndUpdateOperationFacts");const J=$f(100,W=>{const q=W.getValue();N==null||N.set(DF,q);const te=W.operationName,re=ee(W);(re==null?void 0:re.operationName)!==void 0&&(N==null||N.set(RZ,re.operationName)),i==null||i(q,re==null?void 0:re.documentAST),re!=null&&re.operationName&&te!==re.operationName&&E(re.operationName),w({query:q,operationName:(re==null?void 0:re.operationName)??null})});return ee(m),m.on("change",J),()=>m.off("change",J)},[i,m,c,E,N,x,w]),NF(m,c??null,F),AF(m,y??null,F),OF(m,p,F),iC(m,n||null,ic);const $=k==null?void 0:k.run,K=L.useCallback(()=>{var ee;if(!$||!m||!m.operations||!m.hasFocus()){$==null||$();return}const J=m.indexFromPos(m.getCursor());let W;for(const q of m.operations)q.loc&&q.loc.start<=J&&q.loc.end>=J&&(W=(ee=q.name)==null?void 0:ee.value);W&&W!==m.operationName&&E(W),$()},[m,$,E]);return gs(m,["Cmd-Enter","Ctrl-Enter"],K),gs(m,["Shift-Ctrl-C"],_),gs(m,["Shift-Ctrl-P","Shift-Ctrl-F"],j),gs(m,["Shift-Ctrl-M"],M),P}ke(ic,"useQueryEditor");function NF(e,t,n){L.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])}ke(NF,"useSynchronizeSchema");function AF(e,t,n){L.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])}ke(AF,"useSynchronizeValidationRules");function OF(e,t,n){const r=L.useMemo(()=>[...t.values()],[t]);L.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])}ke(OF,"useSynchronizeExternalFragments");const kZ=/^[a-zA-Z0-9_@(]$/,DF="query",RZ="operationName";function kF({defaultQuery:e,defaultHeaders:t,headers:n,defaultTabs:r,query:i,variables:o,storage:l,shouldPersistHeaders:c}){const p=l==null?void 0:l.get(gg);try{if(!p)throw new Error("Storage for tabs is empty");const d=JSON.parse(p),m=c?n:void 0;if(RF(d)){const E=mg({query:i,variables:o,headers:m});let b=-1;for(let y=0;y<d.tabs.length;y++){const x=d.tabs[y];x.hash=mg({query:x.query,variables:x.variables,headers:x.headers}),x.hash===E&&(b=y)}if(b>=0)d.activeTabIndex=b;else{const y=i?Sb(i):null;d.tabs.push({id:uC(),hash:E,title:y||cC,query:i,variables:o,headers:n,operationName:y,response:null}),d.activeTabIndex=d.tabs.length-1}return d}throw new Error("Storage for tabs is invalid")}catch{return{activeTabIndex:0,tabs:(r||[{query:i??e,variables:o,headers:n??t}]).map(sC)}}}ke(kF,"getDefaultTabState");function RF(e){return e&&typeof e=="object"&&!Array.isArray(e)&&LF(e,"activeTabIndex")&&"tabs"in e&&Array.isArray(e.tabs)&&e.tabs.every(MF)}ke(RF,"isTabsState");function MF(e){return e&&typeof e=="object"&&!Array.isArray(e)&&oC(e,"id")&&oC(e,"title")&&Ep(e,"query")&&Ep(e,"variables")&&Ep(e,"headers")&&Ep(e,"operationName")&&Ep(e,"response")}ke(MF,"isTabState");function LF(e,t){return t in e&&typeof e[t]=="number"}ke(LF,"hasNumberKey");function oC(e,t){return t in e&&typeof e[t]=="string"}ke(oC,"hasStringKey");function Ep(e,t){return t in e&&(typeof e[t]=="string"||e[t]===null)}ke(Ep,"hasStringOrNullKey");function IF({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r}){return L.useCallback(i=>{const o=(e==null?void 0:e.getValue())??null,l=(t==null?void 0:t.getValue())??null,c=(n==null?void 0:n.getValue())??null,p=(e==null?void 0:e.operationName)??null,d=(r==null?void 0:r.getValue())??null;return lC(i,{query:o,variables:l,headers:c,response:d,operationName:p})},[e,t,n,r])}ke(IF,"useSynchronizeActiveTabValues");function aC(e,t=!1){return JSON.stringify(e,(n,r)=>n==="hash"||n==="response"||!t&&n==="headers"?null:r)}ke(aC,"serializeTabState");function FF({storage:e,shouldPersistHeaders:t}){const n=L.useMemo(()=>$f(500,r=>{e==null||e.set(gg,r)}),[e]);return L.useCallback(r=>{n(aC(r,t))},[t,n])}ke(FF,"useStoreTabs");function PF({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r}){return L.useCallback(({query:i,variables:o,headers:l,response:c})=>{e==null||e.setValue(i??""),t==null||t.setValue(o??""),n==null||n.setValue(l??""),r==null||r.setValue(c??"")},[n,e,r,t])}ke(PF,"useSetEditorValues");function sC({query:e=null,variables:t=null,headers:n=null}={}){return{id:uC(),hash:mg({query:e,variables:t,headers:n}),title:e&&Sb(e)||cC,query:e,variables:t,headers:n,operationName:null,response:null}}ke(sC,"createTab");function lC(e,t){return{...e,tabs:e.tabs.map((n,r)=>{if(r!==e.activeTabIndex)return n;const i={...n,...t};return{...i,hash:mg(i),title:i.operationName||(i.query?Sb(i.query):void 0)||cC}})}}ke(lC,"setPropertiesInActiveTab");function uC(){const e=ke(()=>Math.floor((1+Math.random())*65536).toString(16).slice(1),"s4");return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}ke(uC,"guid");function mg(e){return[e.query??"",e.variables??"",e.headers??""].join("|")}ke(mg,"hashFromTabContents");function Sb(e){const t=/^(?!#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/m.exec(e);return(t==null?void 0:t[2])??null}ke(Sb,"fuzzyExtractOperationName");function jF(e){const t=e==null?void 0:e.get(gg);if(t){const n=JSON.parse(t);e==null||e.set(gg,JSON.stringify(n,(r,i)=>r==="headers"?null:i))}}ke(jF,"clearHeadersFromTabs");const cC="<untitled>",gg="tabState";function Hf({editorTheme:e=ub,keyMap:t=cb,onClickReference:n,onEdit:r,readOnly:i=!1}={},o){const{initialVariables:l,variableEditor:c,setVariableEditor:p}=Si({nonNull:!0,caller:o||Hf}),d=gp(),m=zf({caller:o||Hf}),E=yp({caller:o||Hf}),b=L.useRef(null),y=L.useRef();return L.useEffect(()=>{let x=!0;return vp([Promise.resolve().then(()=>Gre),Promise.resolve().then(()=>Wre),Promise.resolve().then(()=>Jre)]).then(w=>{if(!x)return;y.current=w;const k=b.current;if(!k)return;const N=w(k,{value:l,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:k,variableToType:void 0},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:fb});N.addKeyMap({"Cmd-Space"(){N.showHint({completeSingle:!1,container:k})},"Ctrl-Space"(){N.showHint({completeSingle:!1,container:k})},"Alt-Space"(){N.showHint({completeSingle:!1,container:k})},"Shift-Space"(){N.showHint({completeSingle:!1,container:k})}}),N.on("keyup",(A,O)=>{const{code:_,key:M,shiftKey:j}=O,P=_.startsWith("Key"),F=!j&&_.startsWith("Digit");(P||F||M==="_"||M==='"')&&A.execCommand("autocomplete")}),p(N)}),()=>{x=!1}},[e,l,i,p]),hg(c,"keyMap",t),rC(c,r,VF,"variables",Hf),iC(c,n||null,Hf),gs(c,["Cmd-Enter","Ctrl-Enter"],d==null?void 0:d.run),gs(c,["Shift-Ctrl-P"],E),gs(c,["Shift-Ctrl-M"],m),b}ke(Hf,"useVariableEditor");const VF="variables",UF=Ju("EditorContext");function qF(e){const t=tc(),[n,r]=L.useState(null),[i,o]=L.useState(null),[l,c]=L.useState(null),[p,d]=L.useState(null),[m,E]=L.useState(()=>{const re=(t==null?void 0:t.get(fC))!==null;return e.shouldPersistHeaders!==!1&&re?(t==null?void 0:t.get(fC))==="true":!!e.shouldPersistHeaders});pg(n,e.headers),pg(i,e.query),pg(l,e.response),pg(p,e.variables);const b=FF({storage:t,shouldPersistHeaders:m}),[y]=L.useState(()=>{const re=e.query??(t==null?void 0:t.get(DF))??null,ae=e.variables??(t==null?void 0:t.get(VF))??null,fe=e.headers??(t==null?void 0:t.get(Eb))??null,Z=e.response??"",he=kF({query:re,variables:ae,headers:fe,defaultTabs:e.defaultTabs,defaultQuery:e.defaultQuery||MZ,defaultHeaders:e.defaultHeaders,storage:t,shouldPersistHeaders:m});return b(he),{query:re??(he.activeTabIndex===0?he.tabs[0].query:null)??"",variables:ae??"",headers:fe??e.defaultHeaders??"",response:Z,tabState:he}}),[x,w]=L.useState(y.tabState),k=L.useCallback(re=>{if(re){t==null||t.set(Eb,(n==null?void 0:n.getValue())??"");const ae=aC(x,!0);t==null||t.set(gg,ae)}else t==null||t.set(Eb,""),jF(t);E(re),t==null||t.set(fC,re.toString())},[t,x,n]),N=L.useRef();L.useEffect(()=>{const re=!!e.shouldPersistHeaders;(N==null?void 0:N.current)!==re&&(k(re),N.current=re)},[e.shouldPersistHeaders,k]);const A=IF({queryEditor:i,variableEditor:p,headerEditor:n,responseEditor:l}),O=PF({queryEditor:i,variableEditor:p,headerEditor:n,responseEditor:l}),{onTabChange:_,defaultHeaders:M,children:j}=e,P=L.useCallback(()=>{w(re=>{const ae=A(re),fe={tabs:[...ae.tabs,sC({headers:M})],activeTabIndex:ae.tabs.length};return b(fe),O(fe.tabs[fe.activeTabIndex]),_==null||_(fe),fe})},[M,_,O,b,A]),F=L.useCallback(re=>{w(ae=>{const fe={...ae,activeTabIndex:re};return b(fe),O(fe.tabs[fe.activeTabIndex]),_==null||_(fe),fe})},[_,O,b]),V=L.useCallback(re=>{w(ae=>{const fe=ae.tabs[ae.activeTabIndex],Z={tabs:re,activeTabIndex:re.indexOf(fe)};return b(Z),O(Z.tabs[Z.activeTabIndex]),_==null||_(Z),Z})},[_,O,b]),$=L.useCallback(re=>{w(ae=>{const fe={tabs:ae.tabs.filter((Z,he)=>re!==he),activeTabIndex:Math.max(ae.activeTabIndex-1,0)};return b(fe),O(fe.tabs[fe.activeTabIndex]),_==null||_(fe),fe})},[_,O,b]),K=L.useCallback(re=>{w(ae=>{const fe=lC(ae,re);return b(fe),_==null||_(fe),fe})},[_,b]),{onEditOperationName:ee}=e,J=L.useCallback(re=>{i&&(i.operationName=re,K({operationName:re}),ee==null||ee(re))},[ee,i,K]),W=L.useMemo(()=>{const re=new Map;if(Array.isArray(e.externalFragments))for(const ae of e.externalFragments)re.set(ae.name.value,ae);else if(typeof e.externalFragments=="string")wr(Oi(e.externalFragments,{}),{FragmentDefinition(ae){re.set(ae.name.value,ae)}});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 re},[e.externalFragments]),q=L.useMemo(()=>e.validationRules||[],[e.validationRules]),te=L.useMemo(()=>({...x,addTab:P,changeTab:F,moveTab:V,closeTab:$,updateActiveTabValues:K,headerEditor:n,queryEditor:i,responseEditor:l,variableEditor:p,setHeaderEditor:r,setQueryEditor:o,setResponseEditor:c,setVariableEditor:d,setOperationName:J,initialQuery:y.query,initialVariables:y.variables,initialHeaders:y.headers,initialResponse:y.response,externalFragments:W,validationRules:q,shouldPersistHeaders:m,setShouldPersistHeaders:k}),[x,P,F,V,$,K,n,i,l,p,J,y,W,q,m,k]);return Y.jsx(UF.Provider,{value:te,children:j})}ke(qF,"EditorContextProvider");const Si=ec(UF),fC="shouldPersistHeaders",MZ=`# Welcome to GraphiQL
#
# GraphiQL is an in-browser tool for writing, validating, and
# testing GraphQL queries.
#
# Type queries into this side of the screen, and you will see intelligent
# typeaheads aware of the current GraphQL type schema and live syntax and
# validation errors highlighted within the text.
#
# GraphQL queries typically start with a "{" character. Lines that start
# with a # are ignored.
#
# An example GraphQL query might look like:
#
#     {
#       field(arg: "value") {
#         subField
#       }
#     }
#
# Keyboard shortcuts:
#
#   Prettify query:  Shift-Ctrl-P (or press the prettify button)
#
#  Merge fragments:  Shift-Ctrl-M (or press the merge button)
#
#        Run Query:  Ctrl-Enter (or press the play button)
#
#    Auto Complete:  Ctrl-Space (or just start typing)
#

`;function Tb({isHidden:e,...t}){const{headerEditor:n}=Si({nonNull:!0,caller:Tb}),r=bp(t,Tb);return L.useEffect(()=>{e||n==null||n.refresh()},[n,e]),Y.jsx("div",{className:yi("graphiql-editor",e&&"hidden"),ref:r})}ke(Tb,"HeaderEditor");function xb(e){var t;const[n,r]=L.useState({width:null,height:null}),[i,o]=L.useState(null),l=L.useRef(null),c=(t=dC(e.token))==null?void 0:t.href;L.useEffect(()=>{if(l.current){if(!c){r({width:null,height:null}),o(null);return}fetch(c,{method:"HEAD"}).then(d=>{o(d.headers.get("Content-Type"))}).catch(()=>{o(null)})}},[c]);const p=n.width!==null&&n.height!==null?Y.jsxs("div",{children:[n.width,"x",n.height,i===null?null:" "+i]}):null;return Y.jsxs("div",{children:[Y.jsx("img",{onLoad:()=>{var d,m;r({width:((d=l.current)==null?void 0:d.naturalWidth)??null,height:((m=l.current)==null?void 0:m.naturalHeight)??null})},ref:l,src:c}),p]})}ke(xb,"ImagePreview"),xb.shouldRender=ke(function(e){const t=dC(e);return t?BF(t):!1},"shouldRender");function dC(e){if(e.type!=="string")return;const t=e.string.slice(1).slice(0,-1).trim();try{const{location:n}=window;return new URL(t,n.protocol+"//"+n.host)}catch{return}}ke(dC,"tokenToURL");function BF(e){return/(bmp|gif|jpeg|jpg|png|svg)$/.test(e.pathname)}ke(BF,"isImageURL");function pC(e){const t=ic(e,pC);return Y.jsx("div",{className:"graphiql-editor",ref:t})}ke(pC,"QueryEditor");function wb({responseTooltip:e,editorTheme:t=ub,keyMap:n=cb}={},r){const{fetchError:i,validationErrors:o}=hs({nonNull:!0,caller:r||wb}),{initialResponse:l,responseEditor:c,setResponseEditor:p}=Si({nonNull:!0,caller:r||wb}),d=L.useRef(null),m=L.useRef(e);return L.useEffect(()=>{m.current=e},[e]),L.useEffect(()=>{let E=!0;return vp([Promise.resolve().then(()=>W4).then(b=>b.f),Promise.resolve().then(()=>$4).then(b=>b.b),Promise.resolve().then(()=>nP).then(b=>b.d),Promise.resolve().then(()=>mP).then(b=>b.s),Promise.resolve().then(()=>eP).then(b=>b.s),Promise.resolve().then(()=>oP).then(b=>b.j),Promise.resolve().then(()=>lP).then(b=>b.s),Promise.resolve().then(()=>nie),Promise.resolve().then(()=>Mre)],{useCommonAddons:!1}).then(b=>{if(!E)return;const y=document.createElement("div");b.registerHelper("info","graphql-results",(k,N,A,O)=>{const _=[],M=m.current;return M&&_.push(Y.jsx(M,{pos:O,token:k})),xb.shouldRender(k)&&_.push(Y.jsx(xb,{token:k},"image-preview")),_.length?(MS.render(_,y),y):(MS.unmountComponentAtNode(y),null)});const x=d.current;if(!x)return;const w=b(x,{value:l,lineWrapping:!0,readOnly:!0,theme:t,mode:"graphql-results",foldGutter:!0,gutters:["CodeMirror-foldgutter"],info:!0,extraKeys:fb});p(w)}),()=>{E=!1}},[t,l,p]),hg(c,"keyMap",n),L.useEffect(()=>{i&&(c==null||c.setValue(i)),o.length>0&&(c==null||c.setValue(bm(o)))},[c,i,o]),d}ke(wb,"useResponseEditor");function hC(e){const t=wb(e,hC);return Y.jsx("section",{className:"result-window","aria-label":"Result Window","aria-live":"polite","aria-atomic":"true",ref:t})}ke(hC,"ResponseEditor");function Cb({isHidden:e,...t}){const{variableEditor:n}=Si({nonNull:!0,caller:Cb}),r=Hf(t,Cb);return L.useEffect(()=>{n&&!e&&n.refresh()},[n,e]),Y.jsx("div",{className:yi("graphiql-editor",e&&"hidden"),ref:r})}ke(Cb,"VariableEditor");function mC({children:e,dangerouslyAssumeSchemaIsValid:t,defaultQuery:n,defaultHeaders:r,defaultTabs:i,externalFragments:o,fetcher:l,getDefaultFieldNames:c,headers:p,inputValueDeprecation:d,introspectionQueryName:m,maxHistoryLength:E,onEditOperationName:b,onSchemaChange:y,onTabChange:x,onTogglePluginVisibility:w,operationName:k,plugins:N,query:A,response:O,schema:_,schemaDescription:M,shouldPersistHeaders:j,storage:P,validationRules:F,variables:V,visiblePlugin:$}){return Y.jsx($3,{storage:P,children:Y.jsx(eF,{maxHistoryLength:E,children:Y.jsx(qF,{defaultQuery:n,defaultHeaders:r,defaultTabs:i,externalFragments:o,headers:p,onEditOperationName:b,onTabChange:x,query:A,response:O,shouldPersistHeaders:j,validationRules:F,variables:V,children:Y.jsx(Kw,{dangerouslyAssumeSchemaIsValid:t,fetcher:l,inputValueDeprecation:d,introspectionQueryName:m,onSchemaChange:y,schema:_,schemaDescription:M,children:Y.jsx(lb,{getDefaultFieldNames:c,fetcher:l,operationName:k,children:Y.jsx(Xw,{children:Y.jsx(TF,{onTogglePluginVisibility:w,plugins:N,visiblePlugin:$,children:e})})})})})})})}ke(mC,"GraphiQLProvider");function $F(){const e=tc(),[t,n]=L.useState(()=>{if(!e)return null;const i=e.get(gC);switch(i){case"light":return"light";case"dark":return"dark";default:return typeof i=="string"&&e.set(gC,""),null}});L.useLayoutEffect(()=>{typeof window>"u"||(document.body.classList.remove("graphiql-light","graphiql-dark"),t&&document.body.classList.add(`graphiql-${t}`))},[t]);const r=L.useCallback(i=>{e==null||e.set(gC,i||""),n(i)},[e]);return L.useMemo(()=>({theme:t,setTheme:r}),[t,r])}ke($F,"useTheme");const gC="theme";function _b({defaultSizeRelation:e=LZ,direction:t,initiallyHidden:n,onHiddenElementChange:r,sizeThresholdFirst:i=100,sizeThresholdSecond:o=100,storageKey:l}){const c=tc(),p=L.useMemo(()=>$f(500,A=>{l&&(c==null||c.set(l,A))}),[c,l]),[d,m]=L.useState(()=>{const A=l&&(c==null?void 0:c.get(l));return A===Nb||n==="first"?"first":A===Ab||n==="second"?"second":null}),E=L.useCallback(A=>{A!==d&&(m(A),r==null||r(A))},[d,r]),b=L.useRef(null),y=L.useRef(null),x=L.useRef(null),w=L.useRef(`${e}`);L.useLayoutEffect(()=>{const A=l&&(c==null?void 0:c.get(l))||w.current;b.current&&(b.current.style.display="flex",b.current.style.flex=A===Nb||A===Ab?w.current:A),x.current&&(x.current.style.display="flex",x.current.style.flex="1"),y.current&&(y.current.style.display="flex")},[t,c,l]);const k=L.useCallback(A=>{const O=A==="first"?b.current:x.current;if(O&&(O.style.left="-1000px",O.style.position="absolute",O.style.opacity="0",O.style.height="500px",O.style.width="500px",b.current)){const _=parseFloat(b.current.style.flex);(!Number.isFinite(_)||_<1)&&(b.current.style.flex="1")}},[]),N=L.useCallback(A=>{const O=A==="first"?b.current:x.current;if(O&&(O.style.width="",O.style.height="",O.style.opacity="",O.style.position="",O.style.left="",c&&l)){const _=c.get(l);b.current&&_!==Nb&&_!==Ab&&(b.current.style.flex=_||w.current)}},[c,l]);return L.useLayoutEffect(()=>{d==="first"?k("first"):N("first"),d==="second"?k("second"):N("second")},[d,k,N]),L.useEffect(()=>{if(!y.current||!b.current||!x.current)return;const A=y.current,O=b.current,_=O.parentElement,M=t==="horizontal"?"clientX":"clientY",j=t==="horizontal"?"left":"top",P=t==="horizontal"?"right":"bottom",F=t==="horizontal"?"clientWidth":"clientHeight";function V(K){K.preventDefault();const ee=K[M]-A.getBoundingClientRect()[j];function J(q){if(q.buttons===0)return W();const te=q[M]-_.getBoundingClientRect()[j]-ee,re=_.getBoundingClientRect()[P]-q[M]+ee-A[F];if(te<i)E("first"),p(Nb);else if(re<o)E("second"),p(Ab);else{E(null);const ae=`${te/re}`;O.style.flex=ae,p(ae)}}ke(J,"handleMouseMove");function W(){document.removeEventListener("mousemove",J),document.removeEventListener("mouseup",W)}ke(W,"handleMouseUp"),document.addEventListener("mousemove",J),document.addEventListener("mouseup",W)}ke(V,"handleMouseDown"),A.addEventListener("mousedown",V);function $(){b.current&&(b.current.style.flex=w.current),p(w.current),E(null)}return ke($,"reset"),A.addEventListener("dblclick",$),()=>{A.removeEventListener("mousedown",V),A.removeEventListener("dblclick",$)}},[t,E,i,o,p]),L.useMemo(()=>({dragBarRef:y,hiddenElement:d,firstRef:b,setHiddenElement:m,secondRef:x}),[d,m])}ke(_b,"useDragResize");const LZ=1,Nb="hide-first",Ab="hide-second",Ob=L.forwardRef(({label:e,onClick:t,...n},r)=>{const[i,o]=L.useState(null),l=L.useCallback(c=>{try{t==null||t(c),o(null)}catch(p){o(p instanceof Error?p:new Error(`Toolbar button click failed: ${p}`))}},[t]);return Y.jsx(Qi,{label:e,children:Y.jsx(fi,{...n,ref:r,type:"button",className:yi("graphiql-toolbar-button",i&&"error",n.className),onClick:l,"aria-label":i?i.message:e,"aria-invalid":i?"true":n["aria-invalid"]})})});Ob.displayName="ToolbarButton";function Db(){const{queryEditor:e,setOperationName:t}=Si({nonNull:!0,caller:Db}),{isFetching:n,isSubscribed:r,operationName:i,run:o,stop:l}=gp({nonNull:!0,caller:Db}),c=(e==null?void 0:e.operations)||[],p=c.length>1&&typeof i!="string",d=n||r,m=`${d?"Stop":"Execute"} query (Ctrl-Enter)`,E={type:"button",className:"graphiql-execute-button",children:d?Y.jsx(SZ,{}):Y.jsx(pZ,{}),"aria-label":m};return p&&!d?Y.jsxs(nc,{children:[Y.jsx(Qi,{label:m,children:Y.jsx(nc.Button,{...E})}),Y.jsx(nc.Content,{children:c.map((b,y)=>{const x=b.name?b.name.value:`<Unnamed ${b.operation}>`;return Y.jsx(nc.Item,{onSelect:()=>{var w;const k=(w=b.name)==null?void 0:w.value;e&&k&&k!==e.operationName&&t(k),o()},children:x},`${x}-${y}`)})})]}):Y.jsx(Qi,{label:m,children:Y.jsx("button",{...E,onClick:()=>{d?l():o()}})})}ke(Db,"ExecuteButton"),lg(ke(({button:e,children:t,label:n,...r})=>Y.jsxs(nc,{...r,children:[Y.jsx(Qi,{label:n,children:Y.jsx(nc.Button,{className:yi("graphiql-un-styled graphiql-toolbar-menu",r.className),"aria-label":n,children:e})}),Y.jsx(nc.Content,{children:t})]}),"ToolbarMenuRoot"),{Item:nc.Item});var Sp={},vg={};const IZ=eN(H8);var zF;function FZ(){if(zF)return vg;zF=1,Object.defineProperty(vg,"__esModule",{value:!0});var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Oe){return typeof Oe}:function(Oe){return Oe&&typeof Symbol=="function"&&Oe.constructor===Symbol&&Oe!==Symbol.prototype?"symbol":typeof Oe},t=function(){function Oe(ye,Le){var be=[],oe=!0,Fe=!1,Je=void 0;try{for(var ct=ye[Symbol.iterator](),We;!(oe=(We=ct.next()).done)&&(be.push(We.value),!(Le&&be.length===Le));oe=!0);}catch(xe){Fe=!0,Je=xe}finally{try{!oe&&ct.return&&ct.return()}finally{if(Fe)throw Je}}return be}return function(ye,Le){if(Array.isArray(ye))return ye;if(Symbol.iterator in Object(ye))return Oe(ye,Le);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),n=Object.assign||function(Oe){for(var ye=1;ye<arguments.length;ye++){var Le=arguments[ye];for(var be in Le)Object.prototype.hasOwnProperty.call(Le,be)&&(Oe[be]=Le[be])}return Oe},r=function(){function Oe(ye,Le){for(var be=0;be<Le.length;be++){var oe=Le[be];oe.enumerable=oe.enumerable||!1,oe.configurable=!0,"value"in oe&&(oe.writable=!0),Object.defineProperty(ye,oe.key,oe)}}return function(ye,Le,be){return Le&&Oe(ye.prototype,Le),be&&Oe(ye,be),ye}}();vg.defaultValue=$;var i=Kv(),o=c(i),l=IZ;function c(Oe){if(Oe&&Oe.__esModule)return Oe;var ye={};if(Oe!=null)for(var Le in Oe)Object.prototype.hasOwnProperty.call(Oe,Le)&&(ye[Le]=Oe[Le]);return ye.default=Oe,ye}function p(Oe,ye,Le){return ye in Oe?Object.defineProperty(Oe,ye,{value:Le,enumerable:!0,configurable:!0,writable:!0}):Oe[ye]=Le,Oe}function d(Oe){if(Array.isArray(Oe)){for(var ye=0,Le=Array(Oe.length);ye<Oe.length;ye++)Le[ye]=Oe[ye];return Le}else return Array.from(Oe)}function m(Oe,ye){if(!(Oe instanceof ye))throw new TypeError("Cannot call a class as a function")}function E(Oe,ye){if(!Oe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ye&&(typeof ye=="object"||typeof ye=="function")?ye:Oe}function b(Oe,ye){if(typeof ye!="function"&&ye!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ye);Oe.prototype=Object.create(ye&&ye.prototype,{constructor:{value:Oe,enumerable:!1,writable:!0,configurable:!0}}),ye&&(Object.setPrototypeOf?Object.setPrototypeOf(Oe,ye):Oe.__proto__=ye)}function y(Oe){return Oe.charAt(0).toUpperCase()+Oe.slice(1)}var x={keyword:"#B11A04",def:"#D2054E",property:"#1F61A0",qualifier:"#1C92A9",attribute:"#8B2BB9",number:"#2882F9",string:"#D64292",builtin:"#D47509",string2:"#0B7FC7",variable:"#397D13",atom:"#CA9800"},w=o.createElement("svg",{width:"12",height:"9"},o.createElement("path",{fill:"#666",d:"M 0 2 L 9 2 L 4.5 7.5 z"})),k=o.createElement("svg",{width:"12",height:"9"},o.createElement("path",{fill:"#666",d:"M 0 0 L 0 9 L 5.5 4.5 z"})),N=o.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"},o.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"})),A=o.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"},o.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 O(Oe){return Oe.checked?Oe.styleConfig.checkboxChecked:Oe.styleConfig.checkboxUnchecked}function _(Oe){var ye=Oe.getFields();if(ye.id){var Le=["id"];return ye.email?Le.push("email"):ye.name&&Le.push("name"),Le}if(ye.edges)return["edges"];if(ye.node)return["node"];if(ye.nodes)return["nodes"];var be=[];return Object.keys(ye).forEach(function(oe){(0,l.isLeafType)(ye[oe].type)&&be.push(oe)}),be.length?be.slice(0,2):["__typename"]}function M(Oe){return(0,l.isNonNullType)(Oe.type)&&Oe.defaultValue===void 0}function j(Oe){for(var ye=Oe;(0,l.isWrappingType)(ye);)ye=ye.ofType;return ye}function P(Oe){for(var ye=Oe;(0,l.isWrappingType)(ye);)ye=ye.ofType;return ye}function F(Oe,ye){if(typeof ye!="string"&&ye.kind==="VariableDefinition")return ye.variable;if((0,l.isScalarType)(Oe))try{switch(Oe.name){case"String":return{kind:"StringValue",value:String(Oe.parseValue(ye))};case"Float":return{kind:"FloatValue",value:String(Oe.parseValue(parseFloat(ye)))};case"Int":return{kind:"IntValue",value:String(Oe.parseValue(parseInt(ye,10)))};case"Boolean":try{var Le=JSON.parse(ye);return typeof Le=="boolean"?{kind:"BooleanValue",value:Le}:{kind:"BooleanValue",value:!1}}catch{return{kind:"BooleanValue",value:!1}}default:return{kind:"StringValue",value:String(Oe.parseValue(ye))}}}catch(oe){return console.error("error coercing arg value",oe,ye),{kind:"StringValue",value:ye}}else try{var be=Oe.parseValue(ye);return be?{kind:"EnumValue",value:String(be)}:{kind:"EnumValue",value:Oe.getValues()[0].name}}catch{return{kind:"EnumValue",value:Oe.getValues()[0].name}}}var V=function(Oe){b(ye,Oe);function ye(){var Le,be,oe,Fe;m(this,ye);for(var Je=arguments.length,ct=Array(Je),We=0;We<Je;We++)ct[We]=arguments[We];return Fe=(be=(oe=E(this,(Le=ye.__proto__||Object.getPrototypeOf(ye)).call.apply(Le,[this].concat(ct))),oe),oe._getArgSelection=function(){return oe.props.selection.fields.find(function(xe){return xe.name.value===oe.props.arg.name})},oe._removeArg=function(){var xe=oe.props.selection,$e=oe._getArgSelection();oe._previousArgSelection=$e,oe.props.modifyFields(xe.fields.filter(function(nt){return nt!==$e}),!0)},oe._addArg=function(){var xe=oe.props,$e=xe.selection,nt=xe.arg,ht=xe.getDefaultScalarArgValue,Dt=xe.parentField,jt=xe.makeDefaultArg,dt=P(nt.type),Et=null;if(oe._previousArgSelection)Et=oe._previousArgSelection;else if((0,l.isInputObjectType)(dt)){var pt=dt.getFields();Et={kind:"ObjectField",name:{kind:"Name",value:nt.name},value:{kind:"ObjectValue",fields:fe(ht,jt,Dt,Object.keys(pt).map(function(Wt){return pt[Wt]}))}}}else(0,l.isLeafType)(dt)&&(Et={kind:"ObjectField",name:{kind:"Name",value:nt.name},value:ht(Dt,nt,dt)});if(!Et)console.error("Unable to add arg for argType",dt);else return oe.props.modifyFields([].concat(d($e.fields||[]),[Et]),!0)},oe._setArgValue=function(xe,$e){var nt=!1,ht=!1,Dt=!1;try{xe.kind==="VariableDefinition"?ht=!0:xe===null||typeof xe>"u"?nt=!0:typeof xe.kind=="string"&&(Dt=!0)}catch{}var jt=oe.props.selection,dt=oe._getArgSelection();if(!dt){console.error("missing arg selection when setting arg value");return}var Et=P(oe.props.arg.type),pt=(0,l.isLeafType)(Et)||ht||nt||Dt;if(!pt){console.warn("Unable to handle non leaf types in InputArgView.setArgValue",xe);return}var Wt=void 0,Vt=void 0;xe===null||typeof xe>"u"?Vt=null:!xe.target&&xe.kind&&xe.kind==="VariableDefinition"?(Wt=xe,Vt=Wt.variable):typeof xe.kind=="string"?Vt=xe:xe.target&&typeof xe.target.value=="string"&&(Wt=xe.target.value,Vt=F(Et,Wt));var Jt=oe.props.modifyFields((jt.fields||[]).map(function(at){var Bn=at===dt,yn=Bn?n({},at,{value:Vt}):at;return yn}),$e);return Jt},oe._modifyChildFields=function(xe){return oe.props.modifyFields(oe.props.selection.fields.map(function($e){return $e.name.value===oe.props.arg.name?n({},$e,{value:{kind:"ObjectValue",fields:xe}}):$e}),!0)},be),E(oe,Fe)}return r(ye,[{key:"render",value:function(){var be=this.props,oe=be.arg,Fe=be.parentField,Je=this._getArgSelection();return o.createElement(te,{argValue:Je?Je.value:null,arg:oe,parentField:Fe,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})}}]),ye}(o.PureComponent);function $(Oe){if((0,l.isEnumType)(Oe))return{kind:"EnumValue",value:Oe.getValues()[0].name};switch(Oe.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 K(Oe,ye,Le){return $(Le)}var ee=function(Oe){b(ye,Oe);function ye(){var Le,be,oe,Fe;m(this,ye);for(var Je=arguments.length,ct=Array(Je),We=0;We<Je;We++)ct[We]=arguments[We];return Fe=(be=(oe=E(this,(Le=ye.__proto__||Object.getPrototypeOf(ye)).call.apply(Le,[this].concat(ct))),oe),oe._getArgSelection=function(){var xe=oe.props.selection;return(xe.arguments||[]).find(function($e){return $e.name.value===oe.props.arg.name})},oe._removeArg=function(xe){var $e=oe.props.selection,nt=oe._getArgSelection();return oe._previousArgSelection=nt,oe.props.modifyArguments(($e.arguments||[]).filter(function(ht){return ht!==nt}),xe)},oe._addArg=function(xe){var $e=oe.props,nt=$e.selection,ht=$e.getDefaultScalarArgValue,Dt=$e.makeDefaultArg,jt=$e.parentField,dt=$e.arg,Et=P(dt.type),pt=null;if(oe._previousArgSelection)pt=oe._previousArgSelection;else if((0,l.isInputObjectType)(Et)){var Wt=Et.getFields();pt={kind:"Argument",name:{kind:"Name",value:dt.name},value:{kind:"ObjectValue",fields:fe(ht,Dt,jt,Object.keys(Wt).map(function(Vt){return Wt[Vt]}))}}}else(0,l.isLeafType)(Et)&&(pt={kind:"Argument",name:{kind:"Name",value:dt.name},value:ht(jt,dt,Et)});return pt?oe.props.modifyArguments([].concat(d(nt.arguments||[]),[pt]),xe):(console.error("Unable to add arg for argType",Et),null)},oe._setArgValue=function(xe,$e){var nt=!1,ht=!1,Dt=!1;try{xe.kind==="VariableDefinition"?ht=!0:xe===null||typeof xe>"u"?nt=!0:typeof xe.kind=="string"&&(Dt=!0)}catch{}var jt=oe.props.selection,dt=oe._getArgSelection();if(!dt&&!ht){console.error("missing arg selection when setting arg value");return}var Et=P(oe.props.arg.type),pt=(0,l.isLeafType)(Et)||ht||nt||Dt;if(!pt){console.warn("Unable to handle non leaf types in ArgView._setArgValue");return}var Wt=void 0,Vt=void 0;return xe===null||typeof xe>"u"?Vt=null:xe.target&&typeof xe.target.value=="string"?(Wt=xe.target.value,Vt=F(Et,Wt)):!xe.target&&xe.kind==="VariableDefinition"?(Wt=xe,Vt=Wt.variable):typeof xe.kind=="string"&&(Vt=xe),oe.props.modifyArguments((jt.arguments||[]).map(function(Jt){return Jt===dt?n({},Jt,{value:Vt}):Jt}),$e)},oe._setArgFields=function(xe,$e){var nt=oe.props.selection,ht=oe._getArgSelection();if(!ht){console.error("missing arg selection when setting arg value");return}return oe.props.modifyArguments((nt.arguments||[]).map(function(Dt){return Dt===ht?n({},Dt,{value:{kind:"ObjectValue",fields:xe}}):Dt}),$e)},be),E(oe,Fe)}return r(ye,[{key:"render",value:function(){var be=this.props,oe=be.arg,Fe=be.parentField,Je=this._getArgSelection();return o.createElement(te,{argValue:Je?Je.value:null,arg:oe,parentField:Fe,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})}}]),ye}(o.PureComponent);function J(Oe){return Oe.ctrlKey&&Oe.key==="Enter"}function W(Oe){return Oe!=="FragmentDefinition"}var q=function(Oe){b(ye,Oe);function ye(){var Le,be,oe,Fe;m(this,ye);for(var Je=arguments.length,ct=Array(Je),We=0;We<Je;We++)ct[We]=arguments[We];return Fe=(be=(oe=E(this,(Le=ye.__proto__||Object.getPrototypeOf(ye)).call.apply(Le,[this].concat(ct))),oe),oe._handleChange=function(xe){oe.props.setArgValue(xe,!0)},be),E(oe,Fe)}return r(ye,[{key:"componentDidMount",value:function(){var be=this._ref,oe=document.activeElement;be&&oe&&!(oe instanceof HTMLTextAreaElement)&&(be.focus(),be.setSelectionRange(0,be.value.length))}},{key:"render",value:function(){var be=this,oe=this.props,Fe=oe.arg,Je=oe.argValue,ct=oe.styleConfig,We=P(Fe.type),xe=typeof Je.value=="string"?Je.value:"",$e=this.props.argValue.kind==="StringValue"?ct.colors.string:ct.colors.number;return o.createElement("span",{style:{color:$e}},We.name==="String"?'"':"",o.createElement("input",{style:{border:"none",borderBottom:"1px solid #888",outline:"none",width:Math.max(1,Math.min(15,xe.length))+"ch",color:$e},ref:function(ht){be._ref=ht},type:"text",onChange:this._handleChange,value:xe}),We.name==="String"?'"':"")}}]),ye}(o.PureComponent),te=function(Oe){b(ye,Oe);function ye(){var Le,be,oe,Fe;m(this,ye);for(var Je=arguments.length,ct=Array(Je),We=0;We<Je;We++)ct[We]=arguments[We];return Fe=(be=(oe=E(this,(Le=ye.__proto__||Object.getPrototypeOf(ye)).call.apply(Le,[this].concat(ct))),oe),oe.state={displayArgActions:!1},be),E(oe,Fe)}return r(ye,[{key:"render",value:function(){var be=this,oe=this.props,Fe=oe.argValue,Je=oe.arg,ct=oe.styleConfig,We=P(Je.type),xe=null;if(Fe){if(Fe.kind==="Variable")xe=o.createElement("span",{style:{color:ct.colors.variable}},"$",Fe.name.value);else if((0,l.isScalarType)(We))We.name==="Boolean"?xe=o.createElement("select",{style:{color:ct.colors.builtin},onChange:this.props.setArgValue,value:Fe.kind==="BooleanValue"?Fe.value:void 0},o.createElement("option",{key:"true",value:"true"},"true"),o.createElement("option",{key:"false",value:"false"},"false")):xe=o.createElement(q,{setArgValue:this.props.setArgValue,arg:Je,argValue:Fe,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig});else if((0,l.isEnumType)(We))Fe.kind==="EnumValue"?xe=o.createElement("select",{style:{backgroundColor:"white",color:ct.colors.string2},onChange:this.props.setArgValue,value:Fe.value},We.getValues().map(function(dt){return o.createElement("option",{key:dt.name,value:dt.name},dt.name)})):console.error("arg mismatch between arg and selection",We,Fe);else if((0,l.isInputObjectType)(We))if(Fe.kind==="ObjectValue"){var $e=We.getFields();xe=o.createElement("div",{style:{marginLeft:16}},Object.keys($e).sort().map(function(dt){return o.createElement(V,{key:dt,arg:$e[dt],parentField:be.props.parentField,selection:Fe,modifyFields:be.props.setArgFields,getDefaultScalarArgValue:be.props.getDefaultScalarArgValue,makeDefaultArg:be.props.makeDefaultArg,onRunOperation:be.props.onRunOperation,styleConfig:be.props.styleConfig,onCommit:be.props.onCommit,definition:be.props.definition})}))}else console.error("arg mismatch between arg and selection",We,Fe)}var nt=function(){var Et=Je.name,pt=(be.props.definition.variableDefinitions||[]).filter(function(Ft){return Ft.variable.name.value.startsWith(Et)}).length,Wt=void 0;pt>0?Wt=""+Et+pt:Wt=Et;var Vt=Je.type.toString(),Jt=(0,l.parseType)(Vt),at={kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:Wt}},type:Jt,directives:[]},Bn=function(fn){return(be.props.definition.variableDefinitions||[]).find(function(Gt){return Gt.variable.name.value===fn})},yn=void 0,mt={};if(typeof Fe<"u"&&Fe!==null){var bn=(0,l.visit)(Fe,{Variable:function(fn){var Gt=fn.name.value,En=Bn(Gt);if(mt[Gt]=mt[Gt]+1||1,!!En)return En.defaultValue}}),pi=at.type.kind==="NonNullType",an=pi?n({},at,{type:at.type.type}):at;yn=n({},an,{defaultValue:bn})}else yn=at;var Lr=Object.entries(mt).filter(function(Ft){var fn=t(Ft,2);fn[0];var Gt=fn[1];return Gt<2}).map(function(Ft){var fn=t(Ft,2),Gt=fn[0];return fn[1],Gt});if(yn){var On=be.props.setArgValue(yn,!1);if(On){var Zi=On.definitions.find(function(Ft){return Ft.operation&&Ft.name&&Ft.name.value&&be.props.definition.name&&be.props.definition.name.value?Ft.name.value===be.props.definition.name.value:!1}),wt=[].concat(d(Zi.variableDefinitions||[]),[yn]).filter(function(Ft){return Lr.indexOf(Ft.variable.name.value)===-1}),Bt=n({},Zi,{variableDefinitions:wt}),cn=On.definitions,Rn=cn.map(function(Ft){return Zi===Ft?Bt:Ft}),nr=n({},On,{definitions:Rn});be.props.onCommit(nr)}}},ht=function(){if(!(!Fe||!Fe.name||!Fe.name.value)){var Et=Fe.name.value,pt=(be.props.definition.variableDefinitions||[]).find(function(an){return an.variable.name.value===Et});if(pt){var Wt=pt.defaultValue,Vt=be.props.setArgValue(Wt,{commit:!1});if(Vt){var Jt=Vt.definitions.find(function(an){return an.name.value===be.props.definition.name.value});if(!Jt)return;var at=0;(0,l.visit)(Jt,{Variable:function(Lr){Lr.name.value===Et&&(at=at+1)}});var Bn=Jt.variableDefinitions||[];at<2&&(Bn=Bn.filter(function(an){return an.variable.name.value!==Et}));var yn=n({},Jt,{variableDefinitions:Bn}),mt=Vt.definitions,bn=mt.map(function(an){return Jt===an?yn:an}),pi=n({},Vt,{definitions:bn});be.props.onCommit(pi)}}}},Dt=Fe&&Fe.kind==="Variable",jt=this.state.displayArgActions?o.createElement("button",{type:"submit",className:"toolbar-button",title:Dt?"Remove the variable":"Extract the current value into a GraphQL variable",onClick:function(Et){Et.preventDefault(),Et.stopPropagation(),Dt?ht():nt()},style:ct.styles.actionButtonStyle},o.createElement("span",{style:{color:ct.colors.variable}},"$")):null;return o.createElement("div",{style:{cursor:"pointer",minHeight:"16px",WebkitUserSelect:"none",userSelect:"none"},"data-arg-name":Je.name,"data-arg-type":We.name,className:"graphiql-explorer-"+Je.name},o.createElement("span",{style:{cursor:"pointer"},onClick:function(Et){var pt=!Fe;pt?be.props.addArg(!0):be.props.removeArg(!0),be.setState({displayArgActions:pt})}},(0,l.isInputObjectType)(We)?o.createElement("span",null,Fe?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):o.createElement(O,{checked:!!Fe,styleConfig:this.props.styleConfig}),o.createElement("span",{style:{color:ct.colors.attribute},title:Je.description,onMouseEnter:function(){Fe!==null&&typeof Fe<"u"&&be.setState({displayArgActions:!0})},onMouseLeave:function(){return be.setState({displayArgActions:!1})}},Je.name,M(Je)?"*":"",": ",jt," ")," "),xe||o.createElement("span",null)," ")}}]),ye}(o.PureComponent),re=function(Oe){b(ye,Oe);function ye(){var Le,be,oe,Fe;m(this,ye);for(var Je=arguments.length,ct=Array(Je),We=0;We<Je;We++)ct[We]=arguments[We];return Fe=(be=(oe=E(this,(Le=ye.__proto__||Object.getPrototypeOf(ye)).call.apply(Le,[this].concat(ct))),oe),oe._addFragment=function(){oe.props.modifySelections([].concat(d(oe.props.selections),[oe._previousSelection||{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:oe.props.implementingType.name}},selectionSet:{kind:"SelectionSet",selections:oe.props.getDefaultFieldNames(oe.props.implementingType).map(function(xe){return{kind:"Field",name:{kind:"Name",value:xe}}})}}]))},oe._removeFragment=function(){var xe=oe._getSelection();oe._previousSelection=xe,oe.props.modifySelections(oe.props.selections.filter(function($e){return $e!==xe}))},oe._getSelection=function(){var xe=oe.props.selections.find(function($e){return $e.kind==="InlineFragment"&&$e.typeCondition&&oe.props.implementingType.name===$e.typeCondition.name.value});if(!xe)return null;if(xe.kind==="InlineFragment")return xe},oe._modifyChildSelections=function(xe,$e){var nt=oe._getSelection();return oe.props.modifySelections(oe.props.selections.map(function(ht){return ht===nt?{directives:ht.directives,kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:oe.props.implementingType.name}},selectionSet:{kind:"SelectionSet",selections:xe}}:ht}),$e)},be),E(oe,Fe)}return r(ye,[{key:"render",value:function(){var be=this,oe=this.props,Fe=oe.implementingType,Je=oe.schema,ct=oe.getDefaultFieldNames,We=oe.styleConfig,xe=this._getSelection(),$e=Fe.getFields(),nt=xe?xe.selectionSet?xe.selectionSet.selections:[]:[];return o.createElement("div",{className:"graphiql-explorer-"+Fe.name},o.createElement("span",{style:{cursor:"pointer"},onClick:xe?this._removeFragment:this._addFragment},o.createElement(O,{checked:!!xe,styleConfig:this.props.styleConfig}),o.createElement("span",{style:{color:We.colors.atom}},this.props.implementingType.name)),xe?o.createElement("div",{style:{marginLeft:16}},Object.keys($e).sort().map(function(ht){return o.createElement(he,{key:ht,field:$e[ht],selections:nt,modifySelections:be._modifyChildSelections,schema:Je,getDefaultFieldNames:ct,getDefaultScalarArgValue:be.props.getDefaultScalarArgValue,makeDefaultArg:be.props.makeDefaultArg,onRunOperation:be.props.onRunOperation,onCommit:be.props.onCommit,styleConfig:be.props.styleConfig,definition:be.props.definition,availableFragments:be.props.availableFragments})})):null)}}]),ye}(o.PureComponent),ae=function(Oe){b(ye,Oe);function ye(){var Le,be,oe,Fe;m(this,ye);for(var Je=arguments.length,ct=Array(Je),We=0;We<Je;We++)ct[We]=arguments[We];return Fe=(be=(oe=E(this,(Le=ye.__proto__||Object.getPrototypeOf(ye)).call.apply(Le,[this].concat(ct))),oe),oe._addFragment=function(){oe.props.modifySelections([].concat(d(oe.props.selections),[oe._previousSelection||{kind:"FragmentSpread",name:oe.props.fragment.name}]))},oe._removeFragment=function(){var xe=oe._getSelection();oe._previousSelection=xe,oe.props.modifySelections(oe.props.selections.filter(function($e){var nt=$e.kind==="FragmentSpread"&&$e.name.value===oe.props.fragment.name.value;return!nt}))},oe._getSelection=function(){var xe=oe.props.selections.find(function($e){return $e.kind==="FragmentSpread"&&$e.name.value===oe.props.fragment.name.value});return xe},be),E(oe,Fe)}return r(ye,[{key:"render",value:function(){var be=this.props.styleConfig,oe=this._getSelection();return o.createElement("div",{className:"graphiql-explorer-"+this.props.fragment.name.value},o.createElement("span",{style:{cursor:"pointer"},onClick:oe?this._removeFragment:this._addFragment},o.createElement(O,{checked:!!oe,styleConfig:this.props.styleConfig}),o.createElement("span",{style:{color:be.colors.def},className:"graphiql-explorer-"+this.props.fragment.name.value},this.props.fragment.name.value)))}}]),ye}(o.PureComponent);function fe(Oe,ye,Le,be){var oe=[],Fe=!0,Je=!1,ct=void 0;try{for(var We=be[Symbol.iterator](),xe;!(Fe=(xe=We.next()).done);Fe=!0){var $e=xe.value;if((0,l.isRequiredInputField)($e)||ye&&ye(Le,$e)){var nt=P($e.type);(0,l.isInputObjectType)(nt)?function(){var ht=nt.getFields();oe.push({kind:"ObjectField",name:{kind:"Name",value:$e.name},value:{kind:"ObjectValue",fields:fe(Oe,ye,Le,Object.keys(ht).map(function(Dt){return ht[Dt]}))}})}():(0,l.isLeafType)(nt)&&oe.push({kind:"ObjectField",name:{kind:"Name",value:$e.name},value:Oe(Le,$e,nt)})}}}catch(ht){Je=!0,ct=ht}finally{try{!Fe&&We.return&&We.return()}finally{if(Je)throw ct}}return oe}function Z(Oe,ye,Le){var be=[],oe=!0,Fe=!1,Je=void 0;try{for(var ct=Le.args[Symbol.iterator](),We;!(oe=(We=ct.next()).done);oe=!0){var xe=We.value;if(M(xe)||ye&&ye(Le,xe)){var $e=P(xe.type);(0,l.isInputObjectType)($e)?function(){var nt=$e.getFields();be.push({kind:"Argument",name:{kind:"Name",value:xe.name},value:{kind:"ObjectValue",fields:fe(Oe,ye,Le,Object.keys(nt).map(function(ht){return nt[ht]}))}})}():(0,l.isLeafType)($e)&&be.push({kind:"Argument",name:{kind:"Name",value:xe.name},value:Oe(Le,xe,$e)})}}}catch(nt){Fe=!0,Je=nt}finally{try{!oe&&ct.return&&ct.return()}finally{if(Fe)throw Je}}return be}var he=function(Oe){b(ye,Oe);function ye(){var Le,be,oe,Fe;m(this,ye);for(var Je=arguments.length,ct=Array(Je),We=0;We<Je;We++)ct[We]=arguments[We];return Fe=(be=(oe=E(this,(Le=ye.__proto__||Object.getPrototypeOf(ye)).call.apply(Le,[this].concat(ct))),oe),oe.state={displayFieldActions:!1},oe._addAllFieldsToSelections=function(xe){var $e=xe?Object.keys(xe).map(function(Dt){return{kind:"Field",name:{kind:"Name",value:Dt},arguments:[]}}):[],nt={kind:"SelectionSet",selections:$e},ht=[].concat(d(oe.props.selections.filter(function(Dt){return Dt.kind==="InlineFragment"?!0:Dt.name.value!==oe.props.field.name})),[{kind:"Field",name:{kind:"Name",value:oe.props.field.name},arguments:Z(oe.props.getDefaultScalarArgValue,oe.props.makeDefaultArg,oe.props.field),selectionSet:nt}]);oe.props.modifySelections(ht)},oe._addFieldToSelections=function(xe){var $e=[].concat(d(oe.props.selections),[oe._previousSelection||{kind:"Field",name:{kind:"Name",value:oe.props.field.name},arguments:Z(oe.props.getDefaultScalarArgValue,oe.props.makeDefaultArg,oe.props.field)}]);oe.props.modifySelections($e)},oe._handleUpdateSelections=function(xe){var $e=oe._getSelection();if($e&&!xe.altKey)oe._removeFieldFromSelections();else{var nt=(0,l.getNamedType)(oe.props.field.type),ht=(0,l.isObjectType)(nt)&&nt.getFields(),Dt=!!ht&&xe.altKey;Dt?oe._addAllFieldsToSelections(ht):oe._addFieldToSelections(ht)}},oe._removeFieldFromSelections=function(){var xe=oe._getSelection();oe._previousSelection=xe,oe.props.modifySelections(oe.props.selections.filter(function($e){return $e!==xe}))},oe._getSelection=function(){var xe=oe.props.selections.find(function($e){return $e.kind==="Field"&&oe.props.field.name===$e.name.value});if(!xe)return null;if(xe.kind==="Field")return xe},oe._setArguments=function(xe,$e){var nt=oe._getSelection();if(!nt){console.error("Missing selection when setting arguments",xe);return}return oe.props.modifySelections(oe.props.selections.map(function(ht){return ht===nt?{alias:nt.alias,arguments:xe,directives:nt.directives,kind:"Field",name:nt.name,selectionSet:nt.selectionSet}:ht}),$e)},oe._modifyChildSelections=function(xe,$e){return oe.props.modifySelections(oe.props.selections.map(function(nt){if(nt.kind==="Field"&&oe.props.field.name===nt.name.value){if(nt.kind!=="Field")throw new Error("invalid selection");return{alias:nt.alias,arguments:nt.arguments,directives:nt.directives,kind:"Field",name:nt.name,selectionSet:{kind:"SelectionSet",selections:xe}}}return nt}),$e)},be),E(oe,Fe)}return r(ye,[{key:"render",value:function(){var be=this,oe=this.props,Fe=oe.field,Je=oe.schema,ct=oe.getDefaultFieldNames,We=oe.styleConfig,xe=this._getSelection(),$e=j(Fe.type),nt=Fe.args.sort(function(pt,Wt){return pt.name.localeCompare(Wt.name)}),ht="graphiql-explorer-node graphiql-explorer-"+Fe.name;Fe.isDeprecated&&(ht+=" graphiql-explorer-deprecated");var Dt=(0,l.isObjectType)($e)||(0,l.isInterfaceType)($e)||(0,l.isUnionType)($e)?this.props.availableFragments&&this.props.availableFragments[$e.name]:null,jt=o.createElement("div",{className:ht},o.createElement("span",{title:Fe.description,style:{cursor:"pointer",display:"inline-flex",alignItems:"center",minHeight:"16px",WebkitUserSelect:"none",userSelect:"none"},"data-field-name":Fe.name,"data-field-type":$e.name,onClick:this._handleUpdateSelections,onMouseEnter:function(){var Wt=(0,l.isObjectType)($e)&&xe&&xe.selectionSet&&xe.selectionSet.selections.filter(function(Vt){return Vt.kind!=="FragmentSpread"}).length>0;Wt&&be.setState({displayFieldActions:!0})},onMouseLeave:function(){return be.setState({displayFieldActions:!1})}},(0,l.isObjectType)($e)?o.createElement("span",null,xe?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):null,(0,l.isObjectType)($e)?null:o.createElement(O,{checked:!!xe,styleConfig:this.props.styleConfig}),o.createElement("span",{style:{color:We.colors.property},className:"graphiql-explorer-field-view"},Fe.name),this.state.displayFieldActions?o.createElement("button",{type:"submit",className:"toolbar-button",title:"Extract selections into a new reusable fragment",onClick:function(Wt){Wt.preventDefault(),Wt.stopPropagation();var Vt=$e.name,Jt=Vt+"Fragment",at=(Dt||[]).filter(function(an){return an.name.value.startsWith(Jt)}).length;at>0&&(Jt=""+Jt+at);var Bn=xe?xe.selectionSet?xe.selectionSet.selections:[]:[],yn=[{kind:"FragmentSpread",name:{kind:"Name",value:Jt},directives:[]}],mt={kind:"FragmentDefinition",name:{kind:"Name",value:Jt},typeCondition:{kind:"NamedType",name:{kind:"Name",value:$e.name}},directives:[],selectionSet:{kind:"SelectionSet",selections:Bn}},bn=be._modifyChildSelections(yn,!1);if(bn){var pi=n({},bn,{definitions:[].concat(d(bn.definitions),[mt])});be.props.onCommit(pi)}else console.warn("Unable to complete extractFragment operation")},style:n({},We.styles.actionButtonStyle)},o.createElement("span",null,"…")):null),xe&&nt.length?o.createElement("div",{style:{marginLeft:16},className:"graphiql-explorer-graphql-arguments"},nt.map(function(pt){return o.createElement(ee,{key:pt.name,parentField:Fe,arg:pt,selection:xe,modifyArguments:be._setArguments,getDefaultScalarArgValue:be.props.getDefaultScalarArgValue,makeDefaultArg:be.props.makeDefaultArg,onRunOperation:be.props.onRunOperation,styleConfig:be.props.styleConfig,onCommit:be.props.onCommit,definition:be.props.definition})})):null);if(xe&&((0,l.isObjectType)($e)||(0,l.isInterfaceType)($e)||(0,l.isUnionType)($e))){var dt=(0,l.isUnionType)($e)?{}:$e.getFields(),Et=xe?xe.selectionSet?xe.selectionSet.selections:[]:[];return o.createElement("div",{className:"graphiql-explorer-"+Fe.name},jt,o.createElement("div",{style:{marginLeft:16}},Dt?Dt.map(function(pt){var Wt=Je.getType(pt.typeCondition.name.value),Vt=pt.name.value;return Wt?o.createElement(ae,{key:Vt,fragment:pt,selections:Et,modifySelections:be._modifyChildSelections,schema:Je,styleConfig:be.props.styleConfig,onCommit:be.props.onCommit}):null}):null,Object.keys(dt).sort().map(function(pt){return o.createElement(ye,{key:pt,field:dt[pt],selections:Et,modifySelections:be._modifyChildSelections,schema:Je,getDefaultFieldNames:ct,getDefaultScalarArgValue:be.props.getDefaultScalarArgValue,makeDefaultArg:be.props.makeDefaultArg,onRunOperation:be.props.onRunOperation,styleConfig:be.props.styleConfig,onCommit:be.props.onCommit,definition:be.props.definition,availableFragments:be.props.availableFragments})}),(0,l.isInterfaceType)($e)||(0,l.isUnionType)($e)?Je.getPossibleTypes($e).map(function(pt){return o.createElement(re,{key:pt.name,implementingType:pt,selections:Et,modifySelections:be._modifyChildSelections,schema:Je,getDefaultFieldNames:ct,getDefaultScalarArgValue:be.props.getDefaultScalarArgValue,makeDefaultArg:be.props.makeDefaultArg,onRunOperation:be.props.onRunOperation,styleConfig:be.props.styleConfig,onCommit:be.props.onCommit,definition:be.props.definition})}):null))}return jt}}]),ye}(o.PureComponent);function se(Oe){try{return Oe.trim()?(0,l.parse)(Oe,{noLocation:!0}):null}catch(ye){return new Error(ye)}}var pe={kind:"OperationDefinition",operation:"query",variableDefinitions:[],name:{kind:"Name",value:"MyQuery"},directives:[],selectionSet:{kind:"SelectionSet",selections:[]}},ce={kind:"Document",definitions:[pe]},me=null;function Se(Oe){if(me&&me[0]===Oe)return me[1];var ye=se(Oe);return ye?ye instanceof Error?me?me[1]:ce:(me=[Oe,ye],ye):ce}var je={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"}},Ge=function(Oe){b(ye,Oe);function ye(){var Le,be,oe,Fe;m(this,ye);for(var Je=arguments.length,ct=Array(Je),We=0;We<Je;We++)ct[We]=arguments[We];return Fe=(be=(oe=E(this,(Le=ye.__proto__||Object.getPrototypeOf(ye)).call.apply(Le,[this].concat(ct))),oe),oe.state={newOperationType:"query",displayTitleActions:!1},oe._modifySelections=function(xe,$e){var nt=oe.props.definition;nt.selectionSet.selections.length===0&&oe._previousOperationDef&&(nt=oe._previousOperationDef);var ht=void 0;if(nt.kind==="FragmentDefinition")ht=n({},nt,{selectionSet:n({},nt.selectionSet,{selections:xe})});else if(nt.kind==="OperationDefinition"){var Dt=xe.filter(function(jt){return!(jt.kind==="Field"&&jt.name.value==="__typename")});Dt.length===0&&(Dt=[{kind:"Field",name:{kind:"Name",value:"__typename ## Placeholder value"}}]),ht=n({},nt,{selectionSet:n({},nt.selectionSet,{selections:Dt})})}return oe.props.onEdit(ht,$e)},oe._onOperationRename=function(xe){return oe.props.onOperationRename(xe.target.value)},oe._handlePotentialRun=function(xe){J(xe)&&W(oe.props.definition.kind)&&oe.props.onRunOperation(oe.props.name)},oe._rootViewElId=function(){var xe=oe.props,$e=xe.operationType,nt=xe.name,ht=$e+"-"+(nt||"unknown");return ht},be),E(oe,Fe)}return r(ye,[{key:"componentDidMount",value:function(){var be=this._rootViewElId();this.props.onMount(be)}},{key:"render",value:function(){var be=this,oe=this.props,Fe=oe.operationType,Je=oe.definition,ct=oe.schema,We=oe.getDefaultFieldNames,xe=oe.styleConfig,$e=this._rootViewElId(),nt=this.props.fields||{},ht=Je,Dt=ht.selectionSet.selections,jt=this.props.name||y(Fe)+" Name";return o.createElement("div",{id:$e,tabIndex:"0",onKeyDown:this._handlePotentialRun,style:{borderBottom:this.props.isLast?"none":"1px solid #d6d6d6",marginBottom:"0em",paddingBottom:"1em"}},o.createElement("div",{style:{color:xe.colors.keyword,paddingBottom:4},className:"graphiql-operation-title-bar",onMouseEnter:function(){return be.setState({displayTitleActions:!0})},onMouseLeave:function(){return be.setState({displayTitleActions:!1})}},Fe," ",o.createElement("span",{style:{color:xe.colors.def}},o.createElement("input",{style:{color:xe.colors.def,border:"none",borderBottom:"1px solid #888",outline:"none",width:Math.max(4,jt.length)+"ch"},autoComplete:"false",placeholder:y(Fe)+" Name",value:this.props.name,onKeyDown:this._handlePotentialRun,onChange:this._onOperationRename})),this.props.onTypeName?o.createElement("span",null,o.createElement("br",null),"on "+this.props.onTypeName):"",this.state.displayTitleActions?o.createElement(o.Fragment,null,o.createElement("button",{type:"submit",className:"toolbar-button",onClick:function(){return be.props.onOperationDestroy()},style:n({},xe.styles.actionButtonStyle)},o.createElement("span",null,"✕")),o.createElement("button",{type:"submit",className:"toolbar-button",onClick:function(){return be.props.onOperationClone()},style:n({},xe.styles.actionButtonStyle)},o.createElement("span",null,"⎘"))):""),Object.keys(nt).sort().map(function(dt){return o.createElement(he,{key:dt,field:nt[dt],selections:Dt,modifySelections:be._modifySelections,schema:ct,getDefaultFieldNames:We,getDefaultScalarArgValue:be.props.getDefaultScalarArgValue,makeDefaultArg:be.props.makeDefaultArg,onRunOperation:be.props.onRunOperation,styleConfig:be.props.styleConfig,onCommit:be.props.onCommit,definition:be.props.definition,availableFragments:be.props.availableFragments})}))}}]),ye}(o.PureComponent);function Ye(){return o.createElement("div",{style:{fontFamily:"sans-serif",display:"flex",flexDirection:"column",alignItems:"center",margin:"1em",marginTop:0,flexGrow:1,justifyContent:"flex-end"}},o.createElement("div",{style:{borderTop:"1px solid #d6d6d6",paddingTop:"1em",width:"100%",textAlign:"center"}},"GraphiQL Explorer by ",o.createElement("a",{href:"https://www.onegraph.com"},"OneGraph")),o.createElement("div",null,"Contribute on"," ",o.createElement("a",{href:"https://github.com/OneGraph/graphiql-explorer"},"GitHub")))}var Ot=function(Oe){b(ye,Oe);function ye(){var Le,be,oe,Fe;m(this,ye);for(var Je=arguments.length,ct=Array(Je),We=0;We<Je;We++)ct[We]=arguments[We];return Fe=(be=(oe=E(this,(Le=ye.__proto__||Object.getPrototypeOf(ye)).call.apply(Le,[this].concat(ct))),oe),oe.state={newOperationType:"query",operation:null,operationToScrollTo:null},oe._resetScroll=function(){var xe=oe._ref;xe&&(xe.scrollLeft=0)},oe._onEdit=function(xe){return oe.props.onEdit(xe)},oe._setAddOperationType=function(xe){oe.setState({newOperationType:xe})},oe._handleRootViewMount=function(xe){if(oe.state.operationToScrollTo&&oe.state.operationToScrollTo===xe){var $e=".graphiql-explorer-root #"+xe,nt=document.querySelector($e);nt&&nt.scrollIntoView()}},be),E(oe,Fe)}return r(ye,[{key:"componentDidMount",value:function(){this._resetScroll()}},{key:"render",value:function(){var be=this,oe=this.props,Fe=oe.schema,Je=oe.query,ct=oe.makeDefaultArg;if(!Fe)return o.createElement("div",{style:{fontFamily:"sans-serif"},className:"error-container"},"No Schema Available");var We={colors:this.props.colors||x,checkboxChecked:this.props.checkboxChecked||N,checkboxUnchecked:this.props.checkboxUnchecked||A,arrowClosed:this.props.arrowClosed||k,arrowOpen:this.props.arrowOpen||w,styles:this.props.styles?n({},je,this.props.styles):je},xe=Fe.getQueryType(),$e=Fe.getMutationType(),nt=Fe.getSubscriptionType();if(!xe&&!$e&&!nt)return o.createElement("div",null,"Missing query type");var ht=xe&&xe.getFields(),Dt=$e&&$e.getFields(),jt=nt&&nt.getFields(),dt=Se(Je),Et=this.props.getDefaultFieldNames||_,pt=this.props.getDefaultScalarArgValue||K,Wt=dt.definitions,Vt=Wt.map(function(wt){return wt.kind==="FragmentDefinition"||wt.kind==="OperationDefinition"?wt:null}).filter(Boolean),Jt=Vt.length===0?ce.definitions:Vt,at=function(Bt,cn){var Rn=cn==null||cn===""?null:{kind:"Name",value:cn,loc:void 0},nr=n({},Bt,{name:Rn}),Ft=dt.definitions,fn=Ft.map(function(Gt){return Bt===Gt?nr:Gt});return n({},dt,{definitions:fn})},Bn=function(Bt){var cn=void 0;Bt.kind==="FragmentDefinition"?cn="fragment":cn=Bt.operation;var Rn=(Bt.name&&Bt.name.value||"")+"Copy",nr={kind:"Name",value:Rn,loc:void 0},Ft=n({},Bt,{name:nr}),fn=dt.definitions,Gt=[].concat(d(fn),[Ft]);return be.setState({operationToScrollTo:cn+"-"+Rn}),n({},dt,{definitions:Gt})},yn=function(Bt){var cn=dt.definitions,Rn=cn.filter(function(nr){return Bt!==nr});return n({},dt,{definitions:Rn})},mt=function(Bt){var cn=dt.definitions,Rn=dt.definitions.length===1&&dt.definitions[0]===ce.definitions[0],nr=Rn?[]:cn.filter(function(ea){return ea.kind==="OperationDefinition"?ea.operation===Bt:!1}),Ft="My"+y(Bt)+(nr.length===0?"":nr.length+1),fn="__typename # Placeholder value",Gt={kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:fn,loc:null},arguments:[],directives:[],selectionSet:null,loc:null}],loc:null},En={kind:"OperationDefinition",operation:Bt,name:{kind:"Name",value:Ft},variableDefinitions:[],directives:[],selectionSet:Gt,loc:null},Fi=Rn?[En]:[].concat(d(dt.definitions),[En]),Jo=n({},dt,{definitions:Fi});be.setState({operationToScrollTo:Bt+"-"+Ft}),be.props.onEdit((0,l.print)(Jo))},bn=[ht?o.createElement("option",{key:"query",className:"toolbar-button",style:We.styles.buttonStyle,type:"link",value:"query"},"Query"):null,Dt?o.createElement("option",{key:"mutation",className:"toolbar-button",style:We.styles.buttonStyle,type:"link",value:"mutation"},"Mutation"):null,jt?o.createElement("option",{key:"subscription",className:"toolbar-button",style:We.styles.buttonStyle,type:"link",value:"subscription"},"Subscription"):null].filter(Boolean),pi=bn.length===0||this.props.hideActions?null:o.createElement("div",{style:{minHeight:"50px",maxHeight:"50px",overflow:"none"}},o.createElement("form",{className:"variable-editor-title graphiql-explorer-actions",style:n({},We.styles.explorerActionsStyle,{display:"flex",flexDirection:"row",alignItems:"center",borderTop:"1px solid rgb(214, 214, 214)"}),onSubmit:function(Bt){return Bt.preventDefault()}},o.createElement("span",{style:{display:"inline-block",flexGrow:"0",textAlign:"right"}},"Add new"," "),o.createElement("select",{onChange:function(Bt){return be._setAddOperationType(Bt.target.value)},value:this.state.newOperationType,style:{flexGrow:"2"}},bn),o.createElement("button",{type:"submit",className:"toolbar-button",onClick:function(){return be.state.newOperationType?mt(be.state.newOperationType):null},style:n({},We.styles.buttonStyle,{height:"22px",width:"22px"})},o.createElement("span",null,"+")))),an=this.props.externalFragments&&this.props.externalFragments.reduce(function(wt,Bt){if(Bt.kind==="FragmentDefinition"){var cn=Bt.typeCondition.name.value,Rn=wt[cn]||[],nr=[].concat(d(Rn),[Bt]).sort(function(Ft,fn){return Ft.name.value.localeCompare(fn.name.value)});return n({},wt,p({},cn,nr))}return wt},{}),Lr=Jt.reduce(function(wt,Bt){if(Bt.kind==="FragmentDefinition"){var cn=Bt.typeCondition.name.value,Rn=wt[cn]||[],nr=[].concat(d(Rn),[Bt]).sort(function(Ft,fn){return Ft.name.value.localeCompare(fn.name.value)});return n({},wt,p({},cn,nr))}return wt},{}),On=n({},Lr,an),Zi=this.props.showAttribution?o.createElement(Ye,null):null;return o.createElement("div",{ref:function(Bt){be._ref=Bt},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"},o.createElement("div",{style:{flexGrow:"1",overflow:"scroll"}},Jt.map(function(wt,Bt){var cn=wt&&wt.name&&wt.name.value,Rn=wt.kind==="FragmentDefinition"?"fragment":wt&&wt.operation||"query",nr=function(Tr){var $n=at(wt,Tr);be.props.onEdit((0,l.print)($n))},Ft=function(){var Tr=Bn(wt);be.props.onEdit((0,l.print)(Tr))},fn=function(){var Tr=yn(wt);be.props.onEdit((0,l.print)(Tr))},Gt=wt.kind==="FragmentDefinition"&&wt.typeCondition.kind==="NamedType"&&Fe.getType(wt.typeCondition.name.value),En=Gt instanceof l.GraphQLObjectType?Gt.getFields():null,Fi=Rn==="query"?ht:Rn==="mutation"?Dt:Rn==="subscription"?jt:wt.kind==="FragmentDefinition"?En:null,Jo=wt.kind==="FragmentDefinition"?wt.typeCondition.name.value:null,ea=function(Tr){var $n=(0,l.print)(Tr);be.props.onEdit($n)};return o.createElement(Ge,{key:Bt,isLast:Bt===Jt.length-1,fields:Fi,operationType:Rn,name:cn,definition:wt,onOperationRename:nr,onOperationDestroy:fn,onOperationClone:Ft,onTypeName:Jo,onMount:be._handleRootViewMount,onCommit:ea,onEdit:function(Tr,$n){var Ir=void 0;if((typeof $n>"u"?"undefined":e($n))==="object"&&typeof $n.commit<"u"?Ir=$n.commit:Ir=!0,Tr){var Pi=n({},dt,{definitions:dt.definitions.map(function(zr){return zr===wt?Tr:zr})});return Ir&&ea(Pi),Pi}else return dt},schema:Fe,getDefaultFieldNames:Et,getDefaultScalarArgValue:pt,makeDefaultArg:ct,onRunOperation:function(){be.props.onRunOperation&&be.props.onRunOperation(cn)},styleConfig:We,availableFragments:On})}),Zi),pi)}}]),ye}(o.PureComponent);Ot.defaultProps={getDefaultFieldNames:_,getDefaultScalarArgValue:K};var gt=function(Oe){b(ye,Oe);function ye(){var Le,be,oe,Fe;m(this,ye);for(var Je=arguments.length,ct=Array(Je),We=0;We<Je;We++)ct[We]=arguments[We];return Fe=(be=(oe=E(this,(Le=ye.__proto__||Object.getPrototypeOf(ye)).call.apply(Le,[this].concat(ct))),oe),oe.state={hasError:!1,error:null,errorInfo:null},be),E(oe,Fe)}return r(ye,[{key:"componentDidCatch",value:function(be,oe){this.setState({hasError:!0,error:be,errorInfo:oe}),console.error("Error in component",be,oe)}},{key:"render",value:function(){return this.state.hasError?o.createElement("div",{style:{padding:18,fontFamily:"sans-serif"}},o.createElement("div",null,"Something went wrong"),o.createElement("details",{style:{whiteSpace:"pre-wrap"}},this.state.error?this.state.error.toString():null,o.createElement("br",null),this.state.errorInfo?this.state.errorInfo.componentStack:null)):this.props.children}}]),ye}(o.Component),ot=function(Oe){b(ye,Oe);function ye(){return m(this,ye),E(this,(ye.__proto__||Object.getPrototypeOf(ye)).apply(this,arguments))}return r(ye,[{key:"render",value:function(){return o.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"}},o.createElement("div",{className:"doc-explorer-title-bar"},o.createElement("div",{className:"doc-explorer-title"},this.props.title),o.createElement("div",{className:"doc-explorer-rhs"},o.createElement("div",{className:"docExplorerHide",onClick:this.props.onToggleExplorer},"✕"))),o.createElement("div",{className:"doc-explorer-contents",style:{padding:"0px",overflowY:"unset"}},o.createElement(gt,null,o.createElement(Ot,this.props))))}}]),ye}(o.PureComponent);return ot.defaultValue=$,ot.defaultProps={width:320,title:"Explorer"},vg.default=ot,vg}var HF;function PZ(){if(HF)return Sp;HF=1,Object.defineProperty(Sp,"__esModule",{value:!0}),Sp.Explorer=void 0;var e=FZ(),t=n(e);function n(r){return r&&r.__esModule?r:{default:r}}return Sp.Explorer=t.default,Sp.default=t.default,Sp}var jZ=PZ();const GF=({title:e,titleId:t,...n})=>L.createElement("svg",{width:5,height:8,viewBox:"0 0 5 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?L.createElement("title",{id:t},e):null,L.createElement("path",{d:"M0.910453 6.86965L3.88955 3.89061C4.09782 3.68233 4.09782 3.34465 3.88955 3.13637L0.910453 0.157278C0.574475 -0.178701 0 0.0592511 0 0.534408V6.49259C0 6.96768 0.574475 7.20565 0.910453 6.86965Z"})),VZ=({title:e,titleId:t,...n})=>L.createElement("svg",{height:"1em",strokeWidth:1.5,viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?L.createElement("title",{id:t},e):null,L.createElement("path",{d:"M18 6H20M22 6H20M20 6V4M20 6V8",strokeLinecap:"round",strokeLinejoin:"round"}),L.createElement("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",strokeLinecap:"round",strokeLinejoin:"round"}),L.createElement("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",strokeLinecap:"round",strokeLinejoin:"round"})),UZ=({title:e,titleId:t,...n})=>L.createElement("svg",{width:15,height:15,viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",fill:"none","aria-labelledby":t,...n},e?L.createElement("title",{id:t},e):null,L.createElement("circle",{cx:7.5,cy:7.5,r:6,strokeWidth:2})),qZ=({title:e,titleId:t,...n})=>L.createElement("svg",{width:15,height:15,viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-labelledby":t,...n},e?L.createElement("title",{id:t},e):null,L.createElement("circle",{cx:7.5,cy:7.5,r:7.5}),L.createElement("path",{d:"M4.64641 7.00106L6.8801 9.23256L10.5017 5.61325",stroke:"white",strokeWidth:1.5})),BZ={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))"},$Z=Ae.createElement(GF,{style:{width:"var(--px-16)",transform:"rotate(90deg)"}}),zZ=Ae.createElement(GF,{style:{width:"var(--px-16)"}}),HZ=Ae.createElement(UZ,{style:{marginRight:"var(--px-4)"}}),GZ=Ae.createElement(qZ,{style:{fill:"hsl(var(--color-info))",marginRight:"var(--px-4)"}}),YZ={buttonStyle:{cursor:"pointer",fontSize:"2em",lineHeight:0},explorerActionsStyle:{paddingTop:"var(--px-16)"},actionButtonStyle:{}};function WZ(e){const{setOperationName:t}=Si({nonNull:!0}),{schema:n}=hs({nonNull:!0}),{run:r}=gp({nonNull:!0}),i=L.useCallback(c=>{c&&t(c),r()},[r,t]),[o,l]=CF(AZ());return Ae.createElement(jZ.Explorer,{schema:n,onRunOperation:i,explorerIsOpen:!0,colors:BZ,arrowOpen:$Z,arrowClosed:zZ,checkboxUnchecked:HZ,checkboxChecked:GZ,styles:YZ,query:o,onEdit:l,...e})}function QZ(e){return{title:"GraphiQL Explorer",icon:VZ,content:()=>Ae.createElement(WZ,{...e})}}var vC=function(){return vC=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},vC.apply(this,arguments)},KZ=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},kb=function(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],l;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(c){l={error:c}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(l)throw l.error}}return o},XZ=parseInt(Ae.version.slice(0,2),10);if(XZ<16)throw new 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(`
`));function oc(e){var t,n=e.dangerouslyAssumeSchemaIsValid,r=e.defaultQuery,i=e.defaultTabs,o=e.externalFragments,l=e.fetcher,c=e.getDefaultFieldNames,p=e.headers,d=e.inputValueDeprecation,m=e.introspectionQueryName,E=e.maxHistoryLength,b=e.onEditOperationName,y=e.onSchemaChange,x=e.onTabChange,w=e.onTogglePluginVisibility,k=e.operationName,N=e.plugins,A=e.query,O=e.response,_=e.schema,M=e.schemaDescription,j=e.shouldPersistHeaders,P=e.storage,F=e.validationRules,V=e.variables,$=e.visiblePlugin,K=e.defaultHeaders,ee=KZ(e,["dangerouslyAssumeSchemaIsValid","defaultQuery","defaultTabs","externalFragments","fetcher","getDefaultFieldNames","headers","inputValueDeprecation","introspectionQueryName","maxHistoryLength","onEditOperationName","onSchemaChange","onTabChange","onTogglePluginVisibility","operationName","plugins","query","response","schema","schemaDescription","shouldPersistHeaders","storage","validationRules","variables","visiblePlugin","defaultHeaders"]);if(typeof l!="function")throw new TypeError("The `GraphiQL` component requires a `fetcher` function to be passed as prop.");return Ae.createElement(mC,{getDefaultFieldNames:c,dangerouslyAssumeSchemaIsValid:n,defaultQuery:r,defaultHeaders:K,defaultTabs:i,externalFragments:o,fetcher:l,headers:p,inputValueDeprecation:d,introspectionQueryName:m,maxHistoryLength:E,onEditOperationName:b,onSchemaChange:y,onTabChange:x,onTogglePluginVisibility:w,plugins:N,visiblePlugin:$,operationName:k,query:A,response:O,schema:_,schemaDescription:M,shouldPersistHeaders:j,storage:P,validationRules:F,variables:V},Ae.createElement(YF,vC({showPersistHeadersSettings:j!==!1,disableTabs:(t=ee.disableTabs)!==null&&t!==void 0?t:!1},ee)))}oc.Logo=WF,oc.Toolbar=QF,oc.Footer=KF;function YF(e){var t,n,r,i,o=(t=e.isHeadersEditorEnabled)!==null&&t!==void 0?t:!0,l=Si({nonNull:!0}),c=gp({nonNull:!0}),p=hs({nonNull:!0}),d=tc(),m=vb(),E=yb({onCopyQuery:e.onCopyQuery}),b=zf(),y=yp(),x=$F(),w=x.theme,k=x.setTheme,N=(n=m==null?void 0:m.visiblePlugin)===null||n===void 0?void 0:n.content,A=_b({defaultSizeRelation:1/3,direction:"horizontal",initiallyHidden:m!=null&&m.visiblePlugin?void 0:"first",onHiddenElementChange:function(ot){ot==="first"&&(m==null||m.setVisiblePlugin(null))},sizeThresholdSecond:200,storageKey:"docExplorerFlex"}),O=_b({direction:"horizontal",storageKey:"editorFlex"}),_=_b({defaultSizeRelation:3,direction:"vertical",initiallyHidden:function(){if(!(e.defaultEditorToolsVisibility==="variables"||e.defaultEditorToolsVisibility==="headers"))return typeof e.defaultEditorToolsVisibility=="boolean"?e.defaultEditorToolsVisibility?void 0:"second":l.initialVariables||l.initialHeaders?void 0:"second"}(),sizeThresholdSecond:60,storageKey:"secondaryEditorFlex"}),M=kb(L.useState(function(){return e.defaultEditorToolsVisibility==="variables"||e.defaultEditorToolsVisibility==="headers"?e.defaultEditorToolsVisibility:!l.initialVariables&&l.initialHeaders&&o?"headers":"variables"}),2),j=M[0],P=M[1],F=kb(L.useState(null),2),V=F[0],$=F[1],K=kb(L.useState(null),2),ee=K[0],J=K[1],W=Ae.Children.toArray(e.children),q=W.find(function(ot){return bC(ot,oc.Logo)})||Ae.createElement(oc.Logo,null),te=W.find(function(ot){return bC(ot,oc.Toolbar)})||Ae.createElement(Ae.Fragment,null,Ae.createElement(Ob,{onClick:y,label:"Prettify query (Shift-Ctrl-P)"},Ae.createElement(mZ,{className:"graphiql-toolbar-icon","aria-hidden":"true"})),Ae.createElement(Ob,{onClick:b,label:"Merge fragments into query (Shift-Ctrl-M)"},Ae.createElement(fZ,{className:"graphiql-toolbar-icon","aria-hidden":"true"})),Ae.createElement(Ob,{onClick:E,label:"Copy query (Shift-Ctrl-C)"},Ae.createElement(ZX,{className:"graphiql-toolbar-icon","aria-hidden":"true"})),((r=e.toolbar)===null||r===void 0?void 0:r.additionalContent)&&e.toolbar.additionalContent,((i=e.toolbar)===null||i===void 0?void 0:i.additionalComponent)&&Ae.createElement(e.toolbar.additionalComponent,null)),re=W.find(function(ot){return bC(ot,oc.Footer)}),ae=L.useCallback(function(){A.hiddenElement==="first"&&A.setHiddenElement(null)},[A]),fe=L.useCallback(function(){try{d==null||d.clear(),J("success")}catch{J("error")}},[d]),Z=L.useCallback(function(ot){l.setShouldPersistHeaders(ot.currentTarget.dataset.value==="true")},[l]),he=L.useCallback(function(ot){var Oe=ot.currentTarget.dataset.theme;k(Oe||null)},[k]),se=l.addTab,pe=p.introspect,ce=l.moveTab,me=L.useCallback(function(ot){$(ot.currentTarget.dataset.value)},[]),Se=L.useCallback(function(ot){var Oe=m,ye=Number(ot.currentTarget.dataset.index),Le=Oe.plugins.find(function(oe,Fe){return ye===Fe}),be=Le===Oe.visiblePlugin;be?(Oe.setVisiblePlugin(null),A.setHiddenElement("first")):(Oe.setVisiblePlugin(Le),A.setHiddenElement(null))},[m,A]),je=L.useCallback(function(ot){_.hiddenElement==="second"&&_.setHiddenElement(null),P(ot.currentTarget.dataset.name)},[_]),Ge=L.useCallback(function(){_.setHiddenElement(_.hiddenElement==="second"?null:"second")},[_]),Ye=L.useCallback(function(ot){ot||$(null)},[]),Ot=L.useCallback(function(ot){ot||($(null),J(null))},[]),gt=Ae.createElement(Qi,{label:"Add tab"},Ae.createElement(fi,{type:"button",className:"graphiql-tab-add",onClick:se,"aria-label":"Add tab"},Ae.createElement(hZ,{"aria-hidden":"true"})));return Ae.createElement(Qi.Provider,null,Ae.createElement("div",{"data-testid":"graphiql-container",className:"graphiql-container"},Ae.createElement("div",{className:"graphiql-sidebar"},Ae.createElement("div",{className:"graphiql-sidebar-section"},m==null?void 0:m.plugins.map(function(ot,Oe){var ye=ot===m.visiblePlugin,Le="".concat(ye?"Hide":"Show"," ").concat(ot.title),be=ot.icon;return Ae.createElement(Qi,{key:ot.title,label:Le},Ae.createElement(fi,{type:"button",className:ye?"active":"",onClick:Se,"data-index":Oe,"aria-label":Le},Ae.createElement(be,{"aria-hidden":"true"})))})),Ae.createElement("div",{className:"graphiql-sidebar-section"},Ae.createElement(Qi,{label:"Re-fetch GraphQL schema"},Ae.createElement(fi,{type:"button",disabled:p.isFetching,onClick:pe,"aria-label":"Re-fetch GraphQL schema"},Ae.createElement(gZ,{className:p.isFetching?"graphiql-spin":"","aria-hidden":"true"}))),Ae.createElement(Qi,{label:"Open short keys dialog"},Ae.createElement(fi,{type:"button","data-value":"short-keys",onClick:me,"aria-label":"Open short keys dialog"},Ae.createElement(uZ,{"aria-hidden":"true"}))),Ae.createElement(Qi,{label:"Open settings dialog"},Ae.createElement(fi,{type:"button","data-value":"settings",onClick:me,"aria-label":"Open settings dialog"},Ae.createElement(yZ,{"aria-hidden":"true"}))))),Ae.createElement("div",{className:"graphiql-main"},Ae.createElement("div",{ref:A.firstRef,style:{minWidth:"200px"}},Ae.createElement("div",{className:"graphiql-plugin"},N?Ae.createElement(N,null):null)),(m==null?void 0:m.visiblePlugin)&&Ae.createElement("div",{className:"graphiql-horizontal-drag-bar",ref:A.dragBarRef}),Ae.createElement("div",{ref:A.secondRef,className:"graphiql-sessions"},Ae.createElement("div",{className:"graphiql-session-header"},e.disableTabs?null:Ae.createElement(Z3,{values:l.tabs,onReorder:ce,"aria-label":"Select active operation"},l.tabs.length>1&&Ae.createElement(Ae.Fragment,null,l.tabs.map(function(ot,Oe){return Ae.createElement(Yw,{key:ot.id,value:ot,isActive:Oe===l.activeTabIndex},Ae.createElement(Yw.Button,{"aria-controls":"graphiql-session",id:"graphiql-session-tab-".concat(Oe),onClick:function(){c.stop(),l.changeTab(Oe)}},ot.title),Ae.createElement(Yw.Close,{onClick:function(){l.activeTabIndex===Oe&&c.stop(),l.closeTab(Oe)}}))}),gt)),Ae.createElement("div",{className:"graphiql-session-header-right"},l.tabs.length===1&&gt,q)),Ae.createElement("div",{role:"tabpanel",id:"graphiql-session",className:"graphiql-session","aria-labelledby":"graphiql-session-tab-".concat(l.activeTabIndex)},Ae.createElement("div",{ref:O.firstRef},Ae.createElement("div",{className:"graphiql-editors".concat(l.tabs.length===1?" full-height":"")},Ae.createElement("div",{ref:_.firstRef},Ae.createElement("section",{className:"graphiql-query-editor","aria-label":"Query Editor"},Ae.createElement(pC,{editorTheme:e.editorTheme,keyMap:e.keyMap,onClickReference:ae,onCopyQuery:e.onCopyQuery,onEdit:e.onEditQuery,readOnly:e.readOnly}),Ae.createElement("div",{className:"graphiql-toolbar",role:"toolbar","aria-label":"Editor Commands"},Ae.createElement(Db,null),te))),Ae.createElement("div",{ref:_.dragBarRef},Ae.createElement("div",{className:"graphiql-editor-tools"},Ae.createElement(fi,{type:"button",className:j==="variables"&&_.hiddenElement!=="second"?"active":"",onClick:je,"data-name":"variables"},"Variables"),o&&Ae.createElement(fi,{type:"button",className:j==="headers"&&_.hiddenElement!=="second"?"active":"",onClick:je,"data-name":"headers"},"Headers"),Ae.createElement(Qi,{label:_.hiddenElement==="second"?"Show editor tools":"Hide editor tools"},Ae.createElement(fi,{type:"button",onClick:Ge,"aria-label":_.hiddenElement==="second"?"Show editor tools":"Hide editor tools",className:"graphiql-toggle-editor-tools"},_.hiddenElement==="second"?Ae.createElement(XX,{className:"graphiql-chevron-icon","aria-hidden":"true"}):Ae.createElement(QX,{className:"graphiql-chevron-icon","aria-hidden":"true"}))))),Ae.createElement("div",{ref:_.secondRef},Ae.createElement("section",{className:"graphiql-editor-tool","aria-label":j==="variables"?"Variables":"Headers"},Ae.createElement(Cb,{editorTheme:e.editorTheme,isHidden:j!=="variables",keyMap:e.keyMap,onEdit:e.onEditVariables,onClickReference:ae,readOnly:e.readOnly}),o&&Ae.createElement(Tb,{editorTheme:e.editorTheme,isHidden:j!=="headers",keyMap:e.keyMap,onEdit:e.onEditHeaders,readOnly:e.readOnly}))))),Ae.createElement("div",{className:"graphiql-horizontal-drag-bar",ref:O.dragBarRef}),Ae.createElement("div",{ref:O.secondRef},Ae.createElement("div",{className:"graphiql-response"},c.isFetching?Ae.createElement(Gw,null):null,Ae.createElement(hC,{editorTheme:e.editorTheme,responseTooltip:e.responseTooltip,keyMap:e.keyMap}),re))))),Ae.createElement(mp,{open:V==="short-keys",onOpenChange:Ye},Ae.createElement("div",{className:"graphiql-dialog-header"},Ae.createElement(mp.Title,{className:"graphiql-dialog-title"},"Short Keys"),Ae.createElement(mp.Close,null)),Ae.createElement("div",{className:"graphiql-dialog-section"},Ae.createElement(JZ,{keyMap:e.keyMap||"sublime"}))),Ae.createElement(mp,{open:V==="settings",onOpenChange:Ot},Ae.createElement("div",{className:"graphiql-dialog-header"},Ae.createElement(mp.Title,{className:"graphiql-dialog-title"},"Settings"),Ae.createElement(mp.Close,null)),e.showPersistHeadersSettings?Ae.createElement("div",{className:"graphiql-dialog-section"},Ae.createElement("div",null,Ae.createElement("div",{className:"graphiql-dialog-section-title"},"Persist headers"),Ae.createElement("div",{className:"graphiql-dialog-section-caption"},"Save headers upon reloading."," ",Ae.createElement("span",{className:"graphiql-warning-text"},"Only enable if you trust this device."))),Ae.createElement(Hw,null,Ae.createElement(ps,{type:"button",id:"enable-persist-headers",className:l.shouldPersistHeaders?"active":"","data-value":"true",onClick:Z},"On"),Ae.createElement(ps,{type:"button",id:"disable-persist-headers",className:l.shouldPersistHeaders?"":"active",onClick:Z},"Off"))):null,Ae.createElement("div",{className:"graphiql-dialog-section"},Ae.createElement("div",null,Ae.createElement("div",{className:"graphiql-dialog-section-title"},"Theme"),Ae.createElement("div",{className:"graphiql-dialog-section-caption"},"Adjust how the interface looks like.")),Ae.createElement(Hw,null,Ae.createElement(ps,{type:"button",className:w===null?"active":"",onClick:he},"System"),Ae.createElement(ps,{type:"button",className:w==="light"?"active":"","data-theme":"light",onClick:he},"Light"),Ae.createElement(ps,{type:"button",className:w==="dark"?"active":"","data-theme":"dark",onClick:he},"Dark"))),d?Ae.createElement("div",{className:"graphiql-dialog-section"},Ae.createElement("div",null,Ae.createElement("div",{className:"graphiql-dialog-section-title"},"Clear storage"),Ae.createElement("div",{className:"graphiql-dialog-section-caption"},"Remove all locally stored data and start fresh.")),Ae.createElement(ps,{type:"button",state:ee||void 0,disabled:ee==="success",onClick:fe},{success:"Cleared data",error:"Failed"}[ee]||"Clear data")):null)))}var yC=typeof window<"u"&&window.navigator.platform.toLowerCase().indexOf("mac")===0?"Cmd":"Ctrl",ZZ=Object.entries({"Search in editor":[yC,"F"],"Search in documentation":[yC,"K"],"Execute query":[yC,"Enter"],"Prettify editors":["Ctrl","Shift","P"],"Merge fragments definitions into operation definition":["Ctrl","Shift","M"],"Copy query":["Ctrl","Shift","C"],"Re-fetch schema using introspection":["Ctrl","Shift","R"]});function JZ(e){var t=e.keyMap;return Ae.createElement("div",null,Ae.createElement("table",{className:"graphiql-table"},Ae.createElement("thead",null,Ae.createElement("tr",null,Ae.createElement("th",null,"Short Key"),Ae.createElement("th",null,"Function"))),Ae.createElement("tbody",null,ZZ.map(function(n){var r=kb(n,2),i=r[0],o=r[1];return Ae.createElement("tr",{key:i},Ae.createElement("td",null,o.map(function(l,c,p){return Ae.createElement(L.Fragment,{key:l},Ae.createElement("code",{className:"graphiql-key"},l),c!==p.length-1&&" + ")})),Ae.createElement("td",null,i))}))),Ae.createElement("p",null,"The editors use"," ",Ae.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",Ae.createElement("em",null,"i"),"QL uses"," ",Ae.createElement("code",null,t),"."))}function WF(e){return Ae.createElement("div",{className:"graphiql-logo"},e.children||Ae.createElement("a",{className:"graphiql-logo-link",href:"https://github.com/graphql/graphiql",target:"_blank",rel:"noreferrer"},"Graph",Ae.createElement("em",null,"i"),"QL"))}WF.displayName="GraphiQLLogo";function QF(e){return Ae.createElement(Ae.Fragment,null,e.children)}QF.displayName="GraphiQLToolbar";function KF(e){return Ae.createElement("div",{className:"graphiql-footer"},e.children)}KF.displayName="GraphiQLFooter";function bC(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}var Js=null;typeof WebSocket<"u"?Js=WebSocket:typeof MozWebSocket<"u"?Js=MozWebSocket:typeof global<"u"?Js=global.WebSocket||global.MozWebSocket:typeof window<"u"?Js=window.WebSocket||window.MozWebSocket:typeof self<"u"&&(Js=self.WebSocket||self.MozWebSocket);const Rb=Symbol.for("@whatwg-node/promise-helpers/FakePromise");function fr(e){return(e==null?void 0:e.then)!=null}function eJ(e){const t=e;return t&&t.then&&t.catch&&t.finally}function Xt(e,t,n,r){let i=wo().then(e).then(t,n);return iJ(i)}function wo(e){return e&&eJ(e)?e:fr(e)?{then:(t,n)=>wo(e.then(t,n)),catch:t=>wo(e.then(n=>n,t)),finally:t=>wo(t?rJ(e,t):e),[Symbol.toStringTag]:"Promise"}:{then(t){if(t)try{return wo(t(e))}catch(n){return Gf(n)}return this},catch(){return this},finally(t){if(t)try{return wo(t()).then(()=>e,()=>e)}catch(n){return Gf(n)}return this},[Symbol.toStringTag]:"Promise",__fakePromiseValue:e,[Rb]:"resolved"}}function XF(){if(Promise.withResolvers)return Promise.withResolvers();let e,t;return{promise:new Promise(function(i,o){e=i,t=o}),get resolve(){return e},get reject(){return t}}}function Gf(e){return{then(t,n){if(n)try{return wo(n(e))}catch(r){return Gf(r)}return this},catch(t){if(t)try{return wo(t(e))}catch(n){return Gf(n)}return this},finally(t){if(t)try{t()}catch(n){return Gf(n)}return this},__fakeRejectError:e,[Symbol.toStringTag]:"Promise",[Rb]:"rejected"}}function EC(e,t,n,r){Symbol.asyncIterator in e&&(e=e[Symbol.asyncIterator]());let i,o;typeof e.return=="function"&&(i=e.return,o=p=>{const d=()=>{throw p};return i.call(e).then(d,d)});function l(p){return p.done?p:Xt(()=>p.value,d=>Xt(()=>t(d),ZF,o))}let c;if(n){let p;const d=n;c=m=>(p||(p=Xt(()=>m,E=>Xt(()=>d(E),ZF,o))),p)}return{next(){return e.next().then(l,c)},return(){return i?i.call(e).then(l,c):wo({value:void 0,done:!0})},throw(p){return typeof e.throw=="function"?e.throw(p).then(l,c):o?o(p):Gf(p)},[Symbol.asyncIterator](){return this}}}function ZF(e){return{value:e,done:!1}}function tJ(e){return(e==null?void 0:e[Rb])==="resolved"}function nJ(e){return(e==null?void 0:e[Rb])==="rejected"}function rJ(e,t){return"finally"in e?e.finally(t):e.then(n=>{const r=t();return fr(r)?r.then(()=>n):n},n=>{const r=t();if(fr(r))return r.then(()=>{throw n});throw n})}function iJ(e){if(tJ(e))return e.__fakePromiseValue;if(nJ(e))throw e.__fakeRejectError;return e}const JF=new WeakMap;function oJ(e,t){let n=JF.get(e);return!n&&t&&(n=t(e),JF.set(e,n)),n}const aJ=/^(https?|wss?|file):\/\//;function sJ(e){if(typeof e!="string"||!aJ.test(e))return!1;if(URL.canParse)return URL.canParse(e);try{return!!new URL(e)}catch{return!1}}const lJ=e=>Array.isArray(e)?e:e?[e]:[];function uJ(e){return e!=null}const e5=3;function Mi(e){return Mb(e,[])}function Mb(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return cJ(e,t);default:return String(e)}}function t5(e){return(e.name="GraphQLError")?e.toString():`${e.name}: ${e.message};
 ${e.stack}`}function cJ(e,t){if(e===null)return"null";if(e instanceof Error)return e.name==="AggregateError"?t5(e)+`
`+n5(e.errors,t):t5(e);if(t.includes(e))return"[Circular]";const n=[...t,e];if(fJ(e)){const r=e.toJSON();if(r!==e)return typeof r=="string"?r:Mb(r,n)}else if(Array.isArray(e))return n5(e,n);return dJ(e,n)}function fJ(e){return typeof e.toJSON=="function"}function dJ(e,t){const n=Object.entries(e);return n.length===0?"{}":t.length>e5?"["+pJ(e)+"]":"{ "+n.map(([i,o])=>i+": "+Mb(o,t)).join(", ")+" }"}function n5(e,t){if(e.length===0)return"[]";if(t.length>e5)return"[Array]";const n=e.length,r=[];for(let i=0;i<n;++i)r.push(Mb(e[i],t));return"["+r.join(", ")+"]"}function pJ(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 hJ=["message","locations","path","nodes","source","positions","originalError","name","stack","extensions"];function mJ(e){return e!=null&&typeof e=="object"&&Object.keys(e).every(t=>hJ.includes(t))}function Yt(e,t){return t!=null&&t.originalError&&!(t.originalError instanceof Error)&&mJ(t.originalError)&&(t.originalError=Yt(t.originalError.message,t.originalError)),Zv.major>=17?new Me(e,t):new Me(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 SC(e,t){return Yt(e.message,{nodes:e.nodes,source:e.source,positions:e.positions,path:t??e.path,originalError:e,extensions:e.extensions})}function gJ(e){return e!=null&&typeof e=="object"&&Symbol.iterator in e}function r5(e){return typeof e=="object"&&e!==null}function i5(e,t,n){let r=n;for(const i of e)r=Xt(()=>r,o=>t(o,i));return r}function o5(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function a5(e,t,n={}){const r={},o=(t.arguments??[]).reduce((l,c)=>({...l,[c.name.value]:c}),{});for(const{name:l,type:c,defaultValue:p}of e.args){const d=o[l];if(!d){if(p!==void 0)r[l]=p;else if(_t(c))throw Yt(`Argument "${l}" of required type "${Mi(c)}" was not provided.`,{nodes:[t]});continue}const m=d.value;let E=m.kind===X.NULL;if(m.kind===X.VARIABLE){const y=m.name.value;if(n==null||!o5(n,y)){if(p!==void 0)r[l]=p;else if(_t(c))throw Yt(`Argument "${l}" of required type "${Mi(c)}" was provided the variable "$${y}" which was not provided a runtime value.`,{nodes:[m]});continue}E=n[y]==null}if(E&&_t(c))throw Yt(`Argument "${l}" of non-null type "${Mi(c)}" must not be null.`,{nodes:[m]});const b=wa(m,c,n);if(b===void 0)throw Yt(`Argument "${l}" has invalid value ${hn(m)}.`,{nodes:[m]});r[l]=b}return r}function vs(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 Lb(e){const t=new WeakMap;return function(r,i){let o=t.get(r);if(!o){o=new WeakMap,t.set(r,o);const c=e(r,i);return o.set(i,c),c}const l=o.get(i);if(l===void 0){const c=e(r,i);return o.set(i,c),c}return l}}function vJ(e){const t=new WeakMap;return function(r,i,o){let l=t.get(r);if(!l){l=new WeakMap,t.set(r,l);const d=new WeakMap;l.set(i,d);const m=e(r,i,o);return d.set(o,m),m}let c=l.get(i);if(!c){c=new WeakMap,l.set(i,c);const d=e(r,i,o);return c.set(o,d),d}const p=c.get(o);if(p===void 0){const d=e(r,i,o);return c.set(o,d),d}return p}}function yJ(e){const t=new WeakMap;return function(r,i,o,l,c){let p=t.get(r);if(!p){p=new WeakMap,t.set(r,p);const y=new WeakMap;p.set(i,y);const x=new WeakMap;y.set(o,x);const w=new WeakMap;x.set(l,w);const k=e(r,i,o,l,c);return w.set(c,k),k}let d=p.get(i);if(!d){d=new WeakMap,p.set(i,d);const y=new WeakMap;d.set(o,y);const x=new WeakMap;y.set(l,x);const w=e(r,i,o,l,c);return x.set(c,w),w}let m=d.get(o);if(!m){m=new WeakMap,d.set(o,m);const y=new WeakMap;m.set(l,y);const x=e(r,i,o,l,c);return y.set(c,x),x}let E=m.get(l);if(!E){E=new WeakMap,m.set(l,E);const y=e(r,i,o,l,c);return E.set(c,y),y}const b=E.get(c);if(b===void 0){const y=e(r,i,o,l,c);return E.set(c,y),y}return b}}function bJ(e){const t=new WeakMap;return function(r,i,o,l){let c=t.get(r);if(!c){c=new WeakMap,t.set(r,c);const d=e(r,i,o,l);return c.set(i,d),d}const p=c.get(i);if(p===void 0){const d=e(r,i,o,l);return c.set(i,d),d}return p}}function TC(e){if(_t(e)){const t=TC(e.ofType);if(t.kind===X.NON_NULL_TYPE)throw new Error(`Invalid type node ${Mi(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:X.NON_NULL_TYPE,type:t}}else if(gn(e))return{kind:X.LIST_TYPE,type:TC(e.ofType)};return{kind:X.NAMED_TYPE,name:{kind:X.NAME,value:e.name}}}function Ib(e,t,n){const i=xC(e).get(t);if(i==null)throw Yt(`Schema is not configured to execute ${t} operation.`,{nodes:n});return i}const EJ=vs(function(t){const n=SJ(t);return new Set([...n].map(r=>r.name))}),SJ=vs(function(t){const n=xC(t);return new Set(n.values())}),xC=vs(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}),TJ=80;let s5={};function xJ(e){return`
# `+e.replace(/\n/g,`
# `)}function bt(e,t){return e?e.filter(n=>n).join(t||""):""}function l5(e){return(e==null?void 0:e.some(t=>t.includes(`
`)))??!1}function wJ(e){return(t,n,r,i,o)=>{var m;const l=[],c=i.reduce((E,b)=>(["fields","arguments","values"].includes(b)&&E.name&&l.push(E.name.value),E[b]),o[0]),p=[...l,(m=c==null?void 0:c.name)==null?void 0:m.value].filter(Boolean).join("."),d=[];return t.kind.includes("Definition")&&s5[p]&&d.push(...s5[p]),bt([...d.map(xJ),t.description,e(t,n,r,i,o)],`
`)}}function yg(e){return e&&`  ${e.replace(/\n/g,`
  `)}`}function ys(e){return e&&e.length!==0?`{
${yg(bt(e,`
`))}
}`:""}function _r(e,t,n){return t?e+t+(n||""):""}function CJ(e,t=!1){const n=e.replace(/\\/g,"\\\\").replace(/"""/g,'\\"""');return(e[0]===" "||e[0]==="	")&&e.indexOf(`
`)===-1?`"""${n.replace(/"$/,`"
`)}"""`:`"""
${t?n:yg(n)}
"""`}const u5={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>bt(e.definitions,`

`)},OperationDefinition:{leave:e=>{const t=_r("(",bt(e.variableDefinitions,", "),")");return bt([e.operation,bt([e.name,t]),bt(e.directives," ")]," ")+" "+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+_r(" = ",n)+_r(" ",bt(r," "))},SelectionSet:{leave:({selections:e})=>ys(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=_r("",e,": ")+t;let l=o+_r("(",bt(n,", "),")");return l.length>TJ&&(l=o+_r(`(
`,yg(bt(n,`
`)),`
)`)),bt([l,bt(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+_r(" ",bt(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>bt(["...",_r("on ",e),bt(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${_r("(",bt(n,", "),")")} on ${t} ${_r("",bt(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?CJ(e):JSON.stringify(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+bt(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+bt(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+_r("(",bt(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({directives:e,operationTypes:t})=>bt(["schema",bt(e," "),ys(t)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({name:e,directives:t})=>bt(["scalar",e,bt(t," ")]," ")},ObjectTypeDefinition:{leave:({name:e,interfaces:t,directives:n,fields:r})=>bt(["type",e,_r("implements ",bt(t," & ")),bt(n," "),ys(r)]," ")},FieldDefinition:{leave:({name:e,arguments:t,type:n,directives:r})=>e+(l5(t)?_r(`(
`,yg(bt(t,`
`)),`
)`):_r("(",bt(t,", "),")"))+": "+n+_r(" ",bt(r," "))},InputValueDefinition:{leave:({name:e,type:t,defaultValue:n,directives:r})=>bt([e+": "+t,_r("= ",n),bt(r," ")]," ")},InterfaceTypeDefinition:{leave:({name:e,interfaces:t,directives:n,fields:r})=>bt(["interface",e,_r("implements ",bt(t," & ")),bt(n," "),ys(r)]," ")},UnionTypeDefinition:{leave:({name:e,directives:t,types:n})=>bt(["union",e,bt(t," "),_r("= ",bt(n," | "))]," ")},EnumTypeDefinition:{leave:({name:e,directives:t,values:n})=>bt(["enum",e,bt(t," "),ys(n)]," ")},EnumValueDefinition:{leave:({name:e,directives:t})=>bt([e,bt(t," ")]," ")},InputObjectTypeDefinition:{leave:({name:e,directives:t,fields:n})=>bt(["input",e,bt(t," "),ys(n)]," ")},DirectiveDefinition:{leave:({name:e,arguments:t,repeatable:n,locations:r})=>"directive @"+e+(l5(t)?_r(`(
`,yg(bt(t,`
`)),`
)`):_r("(",bt(t,", "),")"))+(n?" repeatable":"")+" on "+bt(r," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>bt(["extend schema",bt(e," "),ys(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>bt(["extend scalar",e,bt(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>bt(["extend type",e,_r("implements ",bt(t," & ")),bt(n," "),ys(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>bt(["extend interface",e,_r("implements ",bt(t," & ")),bt(n," "),ys(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>bt(["extend union",e,bt(t," "),_r("= ",bt(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>bt(["extend enum",e,bt(t," "),ys(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>bt(["extend input",e,bt(t," "),ys(n)]," ")}};Object.keys(u5).reduce((e,t)=>({...e,[t]:{leave:wJ(u5[t].leave)}}),{});function _J(e){const t=e.loc;if(!t)return;const n=[];let r=t.startToken.prev;for(;r!=null&&r.kind===Pe.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(`
`):void 0}function NJ(e){const t=e.split(/\r\n|[\n\r]/g),n=AJ(t);if(n!==0)for(let r=1;r<t.length;r++)t[r]=t[r].slice(n);for(;t.length>0&&f5(t[0]);)t.shift();for(;t.length>0&&f5(t[t.length-1]);)t.pop();return t.join(`
`)}function AJ(e){let t=null;for(let n=1;n<e.length;n++){const r=e[n],i=c5(r);if(i!==r.length&&(t===null||i<t)&&(t=i,t===0))break}return t===null?0:t}function c5(e){let t=0;for(;t<e.length&&(e[t]===" "||e[t]==="	");)t++;return t}function f5(e){return c5(e)===e.length}function OJ(e,t,n={}){let r;try{n.commentDescriptions&&t.includes("#")?(r=DJ(t,n),n.noLocation&&(r=Oi(hn(r),n))):r=Oi(new em(t,e),n)}catch(i){if(i.message.includes("EOF")&&t.replace(/(\#[^*]*)/g,"").trim()==="")r={kind:X.DOCUMENT,definitions:[]};else throw i}return{location:e,document:r}}function DJ(e,t={}){const n=Oi(e,{...t,noLocation:!1});return wr(n,{leave:i=>{if(kJ(i)){const o=_J(i);if(o!==void 0){const l=NJ(`
`+o),c=l.includes(`
`);return i.description?{...i,description:{...i.description,value:i.description.value+`
`+l,block:!0}}:{...i,description:{kind:X.STRING,value:l,block:c}}}}}})}function kJ(e){return Sy(e)||e.kind===X.FIELD_DEFINITION||e.kind===X.INPUT_VALUE_DEFINITION||e.kind===X.ENUM_VALUE_DEFINITION}var zt;(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"})(zt||(zt={}));function Tp(e,t){if(t){const n=e[t.name];if(At(n))return n}}function RJ(e){if("getFields"in e){const t=e.getFields();for(const n in t)return t[n].name==="_fake"}return!1}function MJ(e){switch(e.name){case om.name:return om;case am.name:return am;case Zn.name:return Zn;case Jn.name:return Jn;case sm.name:return sm;default:return e}}function LJ(e,t){const n=Object.create(null);for(const b in e)n[b]=e[b];const r=Object.create(null);for(const b in n){const y=n[b];if(y==null||b.startsWith("__"))continue;const x=y.name;if(!x.startsWith("__")){if(r[x]!=null){console.warn(`Duplicate schema type name ${x} found; keeping the existing one found in the schema`);continue}r[x]=y}}for(const b in r)r[b]=c(r[b]);const i=t.map(b=>o(b));return{typeMap:r,directives:i};function o(b){if(gy(b))return b;const y=b.toConfig();return y.args=l(y.args),new xo(y)}function l(b){const y={};for(const x in b){const w=b[x],k=E(w.type);k!=null&&(w.type=k,y[x]=w)}return y}function c(b){if(At(b)){const y=b.toConfig(),x={...y,fields:()=>p(y.fields),interfaces:()=>m(y.interfaces)};return new li(x)}else if(Mt(b)){const y=b.toConfig(),x={...y,fields:()=>p(y.fields)};return"interfaces"in x&&(x.interfaces=()=>m(y.interfaces)),new so(x)}else if(sr(b)){const y=b.toConfig(),x={...y,types:()=>m(y.types)};return new ju(x)}else if(rn(b)){const y=b.toConfig(),x={...y,fields:()=>d(y.fields)};return new lo(x)}else if(Qn(b)){const y=b.toConfig();return new Gi(y)}else if(Di(b)){if(um(b))return b;const y=b.toConfig();return new ba(y)}throw new Error(`Unexpected schema type: ${b}`)}function p(b){const y={};for(const x in b){const w=b[x],k=E(w.type);k!=null&&w.args&&(w.type=k,w.args=l(w.args),y[x]=w)}return y}function d(b){const y={};for(const x in b){const w=b[x],k=E(w.type);k!=null&&(w.type=k,y[x]=w)}return y}function m(b){const y=[];for(const x of b){const w=E(x);w!=null&&y.push(w)}return y}function E(b){if(gn(b)){const y=E(b.ofType);return y!=null?new ur(y):null}else if(_t(b)){const y=E(b.ofType);return y!=null?new Pt(y):null}else if(Fl(b)){let y=n[b.name];return y===void 0&&(y=RJ(b)?MJ(b):c(b),r[y.name]=n[b.name]=y),y!=null?r[y.name]:null}return null}}function Fb(e,t,n=null,r=null){if(t==null)return t;const i=Fu(e);if(si(i))return n!=null?n(i,t):t;if(gn(i))return lJ(t).map(o=>Fb(i.ofType,o,n,r));if(rn(i)){const o=i.getFields(),l={};for(const c in t){const p=o[c];p!=null&&(l[c]=Fb(p.type,t[c],n,r))}return r!=null?r(i,l):l}}function Pb(e,t){return Fb(e,t,(n,r)=>{try{return n.serialize(r)}catch{return r}})}function IJ(e,t){return Fb(e,t,(n,r)=>{try{return n.parseValue(r)}catch{return r}})}function FJ(e,t={}){const n=h5(p5(wC(d5(PJ(wC(d5(e.getTypeMap(),e,Pb),e,t,c=>si(c)),e,t),e,IJ),e,t,c=>!si(c)),e,t),e,t),r=e.getDirectives(),i=jJ(r,e,t),{typeMap:o,directives:l}=LJ(n,i);return new bf({...e.toConfig(),query:Tp(o,Tp(n,e.getQueryType())),mutation:Tp(o,Tp(n,e.getMutationType())),subscription:Tp(o,Tp(n,e.getSubscriptionType())),types:Object.values(o),directives:l})}function wC(e,t,n,r=()=>!0){const i={};for(const o in e)if(!o.startsWith("__")){const l=e[o];if(l==null||!r(l)){i[o]=l;continue}const c=UJ(t,n,o);if(c==null){i[o]=l;continue}const p=c(l,t);if(p===void 0){i[o]=l;continue}i[o]=p}return i}function PJ(e,t,n){const r=HJ(n);return r?wC(e,t,{[zt.ENUM_TYPE]:i=>{const o=i.toConfig(),l=o.values,c={};for(const p in l){const d=l[p],m=r(d,i.name,t,p);if(m===void 0)c[p]=d;else if(Array.isArray(m)){const[E,b]=m;c[E]=b===void 0?d:b}else m!==null&&(c[p]=m)}return Vb(new Gi({...o,values:c}))}},i=>Qn(i)):e}function d5(e,t,n){const r=h5(e,t,{[zt.ARGUMENT]:i=>{if(i.defaultValue===void 0)return i;const o=jb(e,i.type);if(o!=null)return{...i,defaultValue:n(o,i.defaultValue)}}});return p5(r,t,{[zt.INPUT_OBJECT_FIELD]:i=>{if(i.defaultValue===void 0)return i;const o=jb(r,i.type);if(o!=null)return{...i,defaultValue:n(o,i.defaultValue)}}})}function jb(e,t){if(gn(t)){const n=jb(e,t.ofType);return n!=null?new ur(n):null}else if(_t(t)){const n=jb(e,t.ofType);return n!=null?new Pt(n):null}else if(Fl(t)){const n=e[t.name];return n??null}return null}function p5(e,t,n){const r={};for(const i in e)if(!i.startsWith("__")){const o=e[i];if(!At(o)&&!Mt(o)&&!rn(o)){r[i]=o;continue}const l=BJ(t,n,i);if(l==null){r[i]=o;continue}const c=o.toConfig(),p=c.fields,d={};for(const m in p){const E=p[m],b=l(E,m,i,t);if(b===void 0)d[m]=E;else if(Array.isArray(b)){const[y,x]=b;x.astNode!=null&&(x.astNode={...x.astNode,name:{...x.astNode.name,value:y}}),d[y]=x===void 0?E:x}else b!==null&&(d[m]=b)}At(o)?r[i]=Vb(new li({...c,fields:d})):Mt(o)?r[i]=Vb(new so({...c,fields:d})):r[i]=Vb(new lo({...c,fields:d}))}return r}function h5(e,t,n){const r={};for(const i in e)if(!i.startsWith("__")){const o=e[i];if(!At(o)&&!Mt(o)){r[i]=o;continue}const l=$J(n);if(l==null){r[i]=o;continue}const c=o.toConfig(),p=c.fields,d={};for(const m in p){const E=p[m],b=E.args;if(b==null){d[m]=E;continue}const y=Object.keys(b);if(!y.length){d[m]=E;continue}const x={};for(const w of y){const k=b[w],N=l(k,m,i,t);if(N===void 0)x[w]=k;else if(Array.isArray(N)){const[A,O]=N;x[A]=O}else N!==null&&(x[w]=N)}d[m]={...E,args:x}}At(o)?r[i]=new li({...c,fields:d}):Mt(o)?r[i]=new so({...c,fields:d}):r[i]=new lo({...c,fields:d})}return r}function jJ(e,t,n){const r=zJ(n);if(r==null)return e.slice();const i=[];for(const o of e){const l=r(o,t);l===void 0?i.push(o):l!==null&&i.push(l)}return i}function VJ(e,t){var i,o,l;const n=e.getType(t),r=[zt.TYPE];return At(n)?(r.push(zt.COMPOSITE_TYPE,zt.OBJECT_TYPE),t===((i=e.getQueryType())==null?void 0:i.name)?r.push(zt.ROOT_OBJECT,zt.QUERY):t===((o=e.getMutationType())==null?void 0:o.name)?r.push(zt.ROOT_OBJECT,zt.MUTATION):t===((l=e.getSubscriptionType())==null?void 0:l.name)&&r.push(zt.ROOT_OBJECT,zt.SUBSCRIPTION)):rn(n)?r.push(zt.INPUT_OBJECT_TYPE):Mt(n)?r.push(zt.COMPOSITE_TYPE,zt.ABSTRACT_TYPE,zt.INTERFACE_TYPE):sr(n)?r.push(zt.COMPOSITE_TYPE,zt.ABSTRACT_TYPE,zt.UNION_TYPE):Qn(n)?r.push(zt.ENUM_TYPE):Di(n)&&r.push(zt.SCALAR_TYPE),r}function UJ(e,t,n){const r=VJ(e,n);let i;const o=[...r];for(;!i&&o.length>0;){const l=o.pop();i=t[l]}return i??null}function qJ(e,t){var i,o,l;const n=e.getType(t),r=[zt.FIELD];return At(n)?(r.push(zt.COMPOSITE_FIELD,zt.OBJECT_FIELD),t===((i=e.getQueryType())==null?void 0:i.name)?r.push(zt.ROOT_FIELD,zt.QUERY_ROOT_FIELD):t===((o=e.getMutationType())==null?void 0:o.name)?r.push(zt.ROOT_FIELD,zt.MUTATION_ROOT_FIELD):t===((l=e.getSubscriptionType())==null?void 0:l.name)&&r.push(zt.ROOT_FIELD,zt.SUBSCRIPTION_ROOT_FIELD)):Mt(n)?r.push(zt.COMPOSITE_FIELD,zt.INTERFACE_FIELD):rn(n)&&r.push(zt.INPUT_OBJECT_FIELD),r}function BJ(e,t,n){const r=qJ(e,n);let i;const o=[...r];for(;!i&&o.length>0;){const l=o.pop();i=t[l]}return i??null}function $J(e){const t=e[zt.ARGUMENT];return t??null}function zJ(e){const t=e[zt.DIRECTIVE];return t??null}function HJ(e){const t=e[zt.ENUM_VALUE];return t??null}function Vb(e){if(At(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:X.OBJECT_TYPE_DEFINITION,fields:n}}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>({...n,kind:X.OBJECT_TYPE_EXTENSION,fields:void 0}))),new li(t)}else if(Mt(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:X.INTERFACE_TYPE_DEFINITION,fields:n}}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>({...n,kind:X.INTERFACE_TYPE_EXTENSION,fields:void 0}))),new so(t)}else if(rn(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:X.INPUT_OBJECT_TYPE_DEFINITION,fields:n}}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>({...n,kind:X.INPUT_OBJECT_TYPE_EXTENSION,fields:void 0}))),new lo(t)}else if(Qn(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 Gi(t)}else return e}function bg(e,t=!1,n=!1,r=!1){let i,o=!0;const l=e.every(d=>{if(Array.isArray(d)){if(i===void 0)return i=d.length,!0;if(i===d.length)return!0}else o=!1;return!1});if(r&&l)return new Array(i).fill(null).map((d,m)=>bg(e.map(E=>E[m]),t,n,r));if(o)return e.flat(1);let c,p;t&&(p=e.find(d=>m5(d)),c==null&&(c={}),p&&Object.setPrototypeOf(c,Object.create(Object.getPrototypeOf(p))));for(const d of e)if(m5(d)){if(p){const m=Object.getPrototypeOf(c),E=Object.getPrototypeOf(d);if(E)for(const b of Object.getOwnPropertyNames(E)){const y=Object.getOwnPropertyDescriptor(E,b);uJ(y)&&Object.defineProperty(m,b,y)}}for(const m in d)c==null&&(c={}),m in c?c[m]=bg([c[m],d[m]],t,n,r):c[m]=d[m]}else Array.isArray(d)&&Array.isArray(c)?c=bg([c,d],t,n,r):c=d;return c}function m5(e){return e&&typeof e=="object"&&!Array.isArray(e)}function CC(e){return e.fieldNodes[0].alias!=null?e.fieldNodes[0].alias.value:e.fieldName}function Ub(e,t,n){return n==null||t==null?!1:t===n?!0:Kr(t)&&Kr(n)?im(e,t,n):!1}function GJ(e){const t=[],n=[];let r=!0;const i=m=>{t.length!==0?t.shift()({value:m,done:!1}):n.push({value:m,done:!1})},o=m=>{t.length!==0?t.shift()({value:{errors:[m]},done:!1}):n.push({value:{errors:[m]},done:!1})},l=()=>{t.length!==0?t.shift()({done:!0}):n.push({done:!0})},c=()=>new Promise(m=>{if(n.length!==0){const E=n.shift();m(E)}else t.push(m)}),p=e.subscribe({next(m){return i(m)},error(m){return o(m)},complete(){return l()}}),d=()=>{if(r){r=!1,p.unsubscribe();for(const m of t)m({value:void 0,done:!0});t.length=0,n.length=0}};return{next(){return r?c():this.return()},return(){return d(),wo({value:void 0,done:!0})},throw(m){return d(),Gf(m)},[Symbol.asyncIterator](){return this}}}class qb 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)}}const YJ=new xo({name:"defer",description:"Directs the executor to defer this fragment when the `if` argument is true or undefined.",locations:[lt.FRAGMENT_SPREAD,lt.INLINE_FRAGMENT],args:{if:{type:new Pt(Jn),description:"Deferred when true or undefined.",defaultValue:!0},label:{type:Zn,description:"Unique name"}}}),WJ=new xo({name:"stream",description:"Directs the executor to stream plural fields when the `if` argument is true or undefined.",locations:[lt.FIELD],args:{if:{type:new Pt(Jn),description:"Stream when true or undefined.",defaultValue:!0},label:{type:Zn,description:"Unique name"},initialCount:{defaultValue:0,type:om,description:"Number of items to return immediately"}}});function xp(e,t,n,r,i,o,l,c){for(const p of i.selections)switch(p.kind){case X.FIELD:{if(!NC(n,p))continue;o.add(QJ(p),p);break}case X.INLINE_FRAGMENT:{if(!NC(n,p)||!g5(e,p,r))continue;const d=v5(n,p);if(d){const m=new qb;xp(e,t,n,r,p.selectionSet,m,l,c),l.push({label:d.label,fields:m})}else xp(e,t,n,r,p.selectionSet,o,l,c);break}case X.FRAGMENT_SPREAD:{const d=p.name.value;if(!NC(n,p))continue;const m=v5(n,p);if(c.has(d)&&!m)continue;const E=t[d];if(!E||!g5(e,E,r))continue;if(m||c.add(d),m){const b=new qb;xp(e,t,n,r,E.selectionSet,b,l,c),l.push({label:m.label,fields:b})}else xp(e,t,n,r,E.selectionSet,o,l,c);break}}}function _C(e,t,n,r,i){const o=new qb,l=[];return xp(e,t,n,r,i,o,l,new Set),{fields:o,patches:l}}function NC(e,t){const n=qs(hy,t,e);if((n==null?void 0:n.if)===!0)return!1;const r=qs(py,t,e);return(r==null?void 0:r.if)!==!1}function g5(e,t,n){const r=t.typeCondition;if(!r)return!0;const i=bi(e,r);return i===n?!0:lr(i)?e.getPossibleTypes(i).includes(n):!1}function QJ(e){return e.alias?e.alias.value:e.name.value}function v5(e,t){const n=qs(YJ,t,e);if(n&&n.if!==!1)return{label:typeof n.label=="string"?n.label:void 0}}const KJ=yJ(function(t,n,r,i,o){const l=new qb,c=new Set,p=[],d={fields:l,patches:p};for(const m of o)m.selectionSet&&xp(t,n,r,i,m.selectionSet,l,p,c);return d});function XJ(e,t){const n=QE(e,t);if(!n)throw new Error(`Cannot infer operation ${t||""}`);return n}const Yf=vs(function(t){return XJ(t.document,t.operationName)});function Wf(e){return(e==null?void 0:e[Symbol.asyncIterator])!=null}function wp(e,t,n){return{prev:e,key:t,typename:n}}function Ti(e){const t=[];let n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}function ZJ(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}function AC(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]=AC(e[n],t[n]);else for(n in t){if(n==="__proto__"||n==="constructor"||n==="prototype")break;e[n]=AC(e[n],t[n])}return e}return t}function Bb(e,t,n){t.split&&(t=t.split("."));for(var r=0,i=t.length,o=e,l,c;r<i&&(c=""+t[r++],!(c==="__proto__"||c==="constructor"||c==="prototype"));)o=o[c]=r===i?AC(o[c],n):typeof(l=o[c])==typeof t?l:t[r]*0!==0||~(""+t[r]).indexOf(".")?{}:[]}function y5({incrementalResult:e,executionResult:t}){const n=["data",...e.path??[]];if(e.items)for(const r of e.items)Bb(t,n,r),n[n.length-1]++;e.data&&Bb(t,n,e.data),e.errors&&(t.errors=t.errors||[],t.errors.push(...e.errors)),e.extensions&&Bb(t,"extensions",e.extensions),e.incremental&&e.incremental.forEach(r=>{y5({incrementalResult:r,executionResult:t})})}const OC=vs(function(t){return cO(oJ(t,hn))});function DC({executionRequest:e,excludeQuery:t,printFn:n=OC}){return{query:t?void 0:n(e.document),variables:(e.variables&&Object.keys(e.variables).length)>0?e.variables:void 0,operationName:e.operationName?e.operationName:void 0,extensions:e.extensions&&Object.keys(e.extensions).length>0?e.extensions:void 0}}const Gl={get dispose(){return Symbol.dispose||Symbol.for("dispose")},get asyncDispose(){return Symbol.asyncDispose||Symbol.for("asyncDispose")}};function Co(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function Qf(e){return Co(e)==="object"}function JJ(e){return Array.isArray(e)&&e.length>0&&e.every(t=>"message"in t)}function b5(e,t){return e.length<124?e:t}const eee="graphql-transport-ws";var Na=(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",e))(Na||{}),Aa=(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",e))(Aa||{});function E5(e){if(!Qf(e))throw new Error(`Message is expected to be an object, but got ${Co(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 ${Co(e.type)}`);switch(e.type){case"connection_init":case"connection_ack":case"ping":case"pong":{if(e.payload!=null&&!Qf(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"subscribe":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Co(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!Qf(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${Co(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 ${Co(e.payload.query)}`);if(e.payload.variables!=null&&!Qf(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 ${Co(e.payload.variables)}`);if(e.payload.operationName!=null&&Co(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 ${Co(e.payload.operationName)}`);if(e.payload.extensions!=null&&!Qf(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 ${Co(e.payload.extensions)}`);break}case"next":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Co(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!Qf(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${Co(e.payload)}`);break}case"error":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Co(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!JJ(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"complete":{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${Co(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 tee(e,t){return E5(typeof e=="string"?JSON.parse(e,t):e)}function Eg(e,t){return E5(e),JSON.stringify(e,t)}function nee(e){const{url:t,connectionParams:n,lazy:r=!0,onNonLazyError:i=console.error,lazyCloseTimeout:o=0,keepAlive:l=0,disablePong:c,connectionAckWaitTimeout:p=0,retryAttempts:d=5,retryWait:m=async function(q){const te=Math.pow(2,q);await new Promise(re=>setTimeout(re,te*1e3+Math.floor(Math.random()*2700+300)))},shouldRetry:E=kC,on:b,webSocketImpl:y,generateID:x=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,q=>{const te=Math.random()*16|0;return(q=="x"?te:te&3|8).toString(16)})},jsonMessageReplacer:w,jsonMessageReviver:k}=e;let N;if(y){if(!iee(y))throw new Error("Invalid WebSocket implementation provided");N=y}else typeof WebSocket<"u"?N=WebSocket:typeof global<"u"?N=global.WebSocket||global.MozWebSocket:typeof window<"u"&&(N=window.WebSocket||window.MozWebSocket);if(!N)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const A=N,O=(()=>{const W=(()=>{const te={};return{on(re,ae){return te[re]=ae,()=>{delete te[re]}},emit(re){var ae;"id"in re&&((ae=te[re.id])==null||ae.call(te,re))}}})(),q={connecting:b!=null&&b.connecting?[b.connecting]:[],opened:b!=null&&b.opened?[b.opened]:[],connected:b!=null&&b.connected?[b.connected]:[],ping:b!=null&&b.ping?[b.ping]:[],pong:b!=null&&b.pong?[b.pong]:[],message:b!=null&&b.message?[W.emit,b.message]:[W.emit],closed:b!=null&&b.closed?[b.closed]:[],error:b!=null&&b.error?[b.error]:[]};return{onMessage:W.on,on(te,re){const ae=q[te];return ae.push(re),()=>{ae.splice(ae.indexOf(re),1)}},emit(te,...re){for(const ae of[...q[te]])ae(...re)}}})();function _(W){const q=[O.on("error",te=>{q.forEach(re=>re()),W(te)}),O.on("closed",te=>{q.forEach(re=>re()),W(te)})]}let M,j=0,P,F=!1,V=0,$=!1;async function K(){clearTimeout(P);const[W,q]=await(M??(M=new Promise((ae,fe)=>(async()=>{if(F){if(await m(V),!j)return M=void 0,fe({code:1e3,reason:"All Subscriptions Gone"});V++}O.emit("connecting",F);const Z=new A(typeof t=="function"?await t():t,eee);let he,se;function pe(){isFinite(l)&&l>0&&(clearTimeout(se),se=setTimeout(()=>{Z.readyState===A.OPEN&&(Z.send(Eg({type:Aa.Ping})),O.emit("ping",!1,void 0))},l))}_(me=>{M=void 0,clearTimeout(he),clearTimeout(se),fe(me),me instanceof S5&&(Z.close(4499,"Terminated"),Z.onerror=null,Z.onclose=null)}),Z.onerror=me=>O.emit("error",me),Z.onclose=me=>O.emit("closed",me),Z.onopen=async()=>{try{O.emit("opened",Z);const me=typeof n=="function"?await n():n;if(Z.readyState!==A.OPEN)return;Z.send(Eg(me?{type:Aa.ConnectionInit,payload:me}:{type:Aa.ConnectionInit},w)),isFinite(p)&&p>0&&(he=setTimeout(()=>{Z.close(Na.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},p)),pe()}catch(me){O.emit("error",me),Z.close(Na.InternalClientError,b5(me instanceof Error?me.message:String(me),"Internal client error"))}};let ce=!1;Z.onmessage=({data:me})=>{try{const Se=tee(me,k);if(O.emit("message",Se),Se.type==="ping"||Se.type==="pong"){O.emit(Se.type,!0,Se.payload),Se.type==="pong"?pe():c||(Z.send(Eg(Se.payload?{type:Aa.Pong,payload:Se.payload}:{type:Aa.Pong})),O.emit("pong",!1,Se.payload));return}if(ce)return;if(Se.type!==Aa.ConnectionAck)throw new Error(`First message cannot be of type ${Se.type}`);clearTimeout(he),ce=!0,O.emit("connected",Z,Se.payload,F),F=!1,V=0,ae([Z,new Promise((je,Ge)=>_(Ge))])}catch(Se){Z.onmessage=null,O.emit("error",Se),Z.close(Na.BadResponse,b5(Se instanceof Error?Se.message:String(Se),"Bad response"))}}})())));W.readyState===A.CLOSING&&await q;let te=()=>{};const re=new Promise(ae=>te=ae);return[W,te,Promise.race([re.then(()=>{if(!j){const ae=()=>W.close(1e3,"Normal Closure");isFinite(o)&&o>0?P=setTimeout(()=>{W.readyState===A.OPEN&&ae()},o):ae()}}),q])]}function ee(W){if(kC(W)&&(ree(W.code)||[Na.InternalServerError,Na.InternalClientError,Na.BadRequest,Na.BadResponse,Na.Unauthorized,Na.SubprotocolNotAcceptable,Na.SubscriberAlreadyExists,Na.TooManyInitialisationRequests].includes(W.code)))throw W;if($)return!1;if(kC(W)&&W.code===1e3)return j>0;if(!d||V>=d||!E(W))throw W;return F=!0}r||(async()=>{for(j++;;)try{const[,,W]=await K();await W}catch(W){try{if(!ee(W))return}catch(q){return i==null?void 0:i(q)}}})();function J(W,q){const te=x(W);let re=!1,ae=!1,fe=()=>{j--,re=!0};return(async()=>{for(j++;;)try{const[Z,he,se]=await K();if(re)return he();const pe=O.onMessage(te,ce=>{switch(ce.type){case Aa.Next:{q.next(ce.payload);return}case Aa.Error:{ae=!0,re=!0,q.error(ce.payload),fe();return}case Aa.Complete:{re=!0,fe();return}}});Z.send(Eg({id:te,type:Aa.Subscribe,payload:W},w)),fe=()=>{!re&&Z.readyState===A.OPEN&&Z.send(Eg({id:te,type:Aa.Complete},w)),j--,re=!0,he()},await se.finally(pe);return}catch(Z){if(!ee(Z))return}})().then(()=>{ae||q.complete()}).catch(Z=>{q.error(Z)}),()=>{re||fe()}}return{on:O.on,subscribe:J,iterate(W){const q=[],te={done:!1,error:null,resolve:()=>{}},re=J(W,{next(fe){q.push(fe),te.resolve()},error(fe){te.done=!0,te.error=fe,te.resolve()},complete(){te.done=!0,te.resolve()}}),ae=async function*(){for(;;){for(q.length||await new Promise(Z=>te.resolve=Z);q.length;)yield q.shift();if(te.error)throw te.error;if(te.done)return}}();return ae.throw=async fe=>(te.done||(te.done=!0,te.error=fe,te.resolve()),{done:!0,value:void 0}),ae.return=async()=>(re(),{done:!0,value:void 0}),ae},async dispose(){if($=!0,M){const[W]=await M;W.close(1e3,"Normal Closure")}},terminate(){M&&O.emit("closed",new S5)}}}class S5 extends Error{constructor(){super(...arguments);nn(this,"name","TerminatedCloseEvent");nn(this,"message","4499: Terminated");nn(this,"code",4499);nn(this,"reason","Terminated");nn(this,"wasClean",!1)}}function kC(e){return Qf(e)&&"code"in e&&"reason"in e}function ree(e){return[1e3,1001,1006,1005,1012,1013,1014].includes(e)?!1:e>=1e3&&e<=1999}function iee(e){return typeof e=="function"&&"constructor"in e&&"CLOSED"in e&&"CLOSING"in e&&"CONNECTING"in e&&"OPEN"in e}function oee(e){return"subscribe"in e}function aee(e){let t,n={},r=OC;if(oee(e))t=e;else{e.print&&(r=e.print);const o=e.headers,l=o?class extends Js{constructor(p,d){super(p,d,{headers:o})}}:Js;t=nee({url:e.url,webSocketImpl:l,lazy:e.lazy!==!1,lazyCloseTimeout:e.lazyCloseTimeout||0,connectionParams:()=>{const c=(typeof e.connectionParams=="function"?e.connectionParams():e.connectionParams)||{};return Object.assign(c,n)},on:e.on}),e.onClient&&e.onClient(t)}const i=function(l){const{extensions:c,operationType:p=Yf(l).operation,info:d,signal:m=d==null?void 0:d.signal}=l;c!=null&&c.connectionParams&&typeof(c==null?void 0:c.connectionParams)=="object"&&(n=Object.assign(n,c.connectionParams));const E=t.iterate(DC({executionRequest:l,printFn:r}));return E.return&&m&&m.addEventListener("abort",()=>{var b;(b=E.return)==null||b.call(E)},{once:!0}),p==="subscription"?E:E.next().then(({value:b})=>b)};return Object.defineProperty(i,Gl.asyncDispose,{value:function(){return t.dispose()}}),i}const T5=!globalThis.Bun&&((GP=(HP=globalThis.process)==null?void 0:HP.release)==null?void 0:GP.name)==="node",$b=T5?new FinalizationRegistry(e=>e()):null,x5=Symbol("CONTROLLER_IN_SIGNAL");function see(e){if(e.length===0)return;if(e.length===1)return e[0];if(!T5)return AbortSignal.any(e);for(const l of e)if(l.aborted)return l;const t=new AbortController,n=new WeakRef(t),r=[];let i=e.length;for(const l of e){let c=function(){var d,m;(m=n.deref())==null||m.abort((d=p.deref())==null?void 0:d.reason)};const p=new WeakRef(l);l.addEventListener("abort",c),r.push([p,c]),$b.register(l,()=>!--i&&o(),l)}function o(){for(const[l,c]of r){const p=l.deref();p&&(p.removeEventListener("abort",c),$b.unregister(p));const d=n.deref();d&&($b.unregister(d.signal),delete d.signal[x5])}}return t.signal.addEventListener("abort",o),$b.register(t.signal,o,t.signal),t.signal[x5]=t,t.signal}var Sr={},w5;function lee(){return w5||(w5=1,Sr.fetch=globalThis.fetch,Sr.Headers=globalThis.Headers,Sr.Request=globalThis.Request,Sr.Response=globalThis.Response,Sr.FormData=globalThis.FormData,Sr.ReadableStream=globalThis.ReadableStream,Sr.WritableStream=globalThis.WritableStream,Sr.TransformStream=globalThis.TransformStream,Sr.CompressionStream=globalThis.CompressionStream,Sr.DecompressionStream=globalThis.DecompressionStream,Sr.TextDecoderStream=globalThis.TextDecoderStream,Sr.TextEncoderStream=globalThis.TextEncoderStream,Sr.Blob=globalThis.Blob,Sr.File=globalThis.File,Sr.crypto=globalThis.crypto,Sr.btoa=globalThis.btoa,Sr.TextEncoder=globalThis.TextEncoder,Sr.TextDecoder=globalThis.TextDecoder,Sr.URLPattern=globalThis.URLPattern,Sr.URL=globalThis.URL,Sr.URLSearchParams=globalThis.URLSearchParams,Sr.createFetch=()=>globalThis),Sr}var Kf=lee();/*! *****************************************************************************
	Copyright (c) Microsoft Corporation.

	Permission to use, copy, modify, and/or distribute this software for any
	purpose with or without fee is hereby granted.

	THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
	REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
	AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
	INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
	LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
	OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
	PERFORMANCE OF THIS SOFTWARE.
	***************************************************************************** */var RC=function(e,t){return RC=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])},RC(e,t)};function uee(e,t){RC(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function Cp(e,t,n,r){function i(o){return o instanceof n?o:new n(function(l){l(o)})}return new(n||(n=Promise))(function(o,l){function c(m){try{d(r.next(m))}catch(E){l(E)}}function p(m){try{d(r.throw(m))}catch(E){l(E)}}function d(m){m.done?o(m.value):i(m.value).then(c,p)}d((r=r.apply(e,[])).next())})}function ac(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,l;return l={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function c(d){return function(m){return p([d,m])}}function p(d){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=d[0]&2?i.return:d[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,d[1])).done)return o;switch(i=0,o&&(d=[d[0]&2,o.value]),d[0]){case 0:case 1:o=d;break;case 4:return n.label++,{value:d[1],done:!1};case 5:n.label++,i=d[1],d=[0];continue;case 7:d=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]<o[3])){n.label=d[1];break}if(d[0]===6&&n.label<o[1]){n.label=o[1],o=d;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(d);break}o[2]&&n.ops.pop(),n.trys.pop();continue}d=t.call(e,n)}catch(m){d=[6,m],i=0}finally{r=o=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function _p(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 Sg(e){return this instanceof Sg?(this.v=e,this):new Sg(e)}function cee(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i={},l("next"),l("throw"),l("return"),i[Symbol.asyncIterator]=function(){return this},i;function l(b){r[b]&&(i[b]=function(y){return new Promise(function(x,w){o.push([b,y,x,w])>1||c(b,y)})})}function c(b,y){try{p(r[b](y))}catch(x){E(o[0][3],x)}}function p(b){b.value instanceof Sg?Promise.resolve(b.value.v).then(d,m):E(o[0][2],b)}function d(b){c("next",b)}function m(b){c("throw",b)}function E(b,y){b(y),o.shift(),o.length&&c(o[0][0],o[0][1])}}var C5=function(e){uee(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 MC(e){e!=null&&typeof e.then=="function"&&e.then(Gb,Gb)}var LC=0,_5=1,Xf=2,zb=3,IC=4,Hb=1024,Gb=function(){};function Np(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 Zf(e,t){var n=e.state>=zb;return Promise.resolve(t).then(function(r){return!n&&e.state>=IC?Np(e).then(function(i){return{value:i,done:!0}}):{value:r,done:n}})}function FC(e,t){var n,r;if(!(e.state>=Xf))if(e.state=Xf,e.onnext(),e.onstop(),e.err==null&&(e.err=t),e.pushes.length===0&&(typeof e.buffer>"u"||e.buffer.empty))Tg(e);else try{for(var i=_p(e.pushes),o=i.next();!o.done;o=i.next()){var l=o.value;l.resolve()}}catch(c){n={error:c}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}function Tg(e){var t,n;if(!(e.state>=zb)){e.state<Xf&&FC(e),e.state=zb,e.buffer=void 0;try{for(var r=_p(e.nexts),i=r.next();!i.done;i=r.next()){var o=i.value,l=e.pending===void 0?Np(e):e.pending.then(function(){return Np(e)});o.resolve(Zf(e,l))}}catch(c){t={error:c}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}e.pushes=[],e.nexts=[]}}function N5(e){e.state>=IC||(e.state<zb&&Tg(e),e.state=IC)}function fee(e,t){if(MC(t),e.pushes.length>=Hb)throw new C5("No more than "+Hb+" pending calls to push are allowed on a single repeater.");if(e.state>=Xf)return Promise.resolve(void 0);var n=e.pending===void 0?Promise.resolve(t):e.pending.then(function(){return t});n=n.catch(function(p){e.state<Xf&&(e.err=p),N5(e)});var r;if(e.nexts.length){var i=e.nexts.shift();i.resolve(Zf(e,n)),e.nexts.length?r=Promise.resolve(e.nexts[0].value):typeof e.buffer<"u"&&!e.buffer.full?r=Promise.resolve(void 0):r=new Promise(function(p){return e.onnext=p})}else typeof e.buffer<"u"&&!e.buffer.full?(e.buffer.add(n),r=Promise.resolve(void 0)):r=new Promise(function(p){return e.pushes.push({resolve:p,value:n})});var o=!0,l={},c=r.catch(function(p){if(o)throw p});return l.then=function(p,d){return o=!1,Promise.prototype.then.call(r,p,d)},l.catch=function(p){return o=!1,Promise.prototype.catch.call(r,p)},l.finally=r.finally.bind(r),e.pending=n.then(function(){return c}).catch(function(p){e.err=p,N5(e)}),l}function dee(e){var t=FC.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 pee(e){if(!(e.state>=_5)){e.state=_5;var t=fee.bind(null,e),n=dee(e);e.execution=new Promise(function(r){return r(e.executor(t,n))}),e.execution.catch(function(){return FC(e)})}}var Yb=new WeakMap,Ap=function(){function e(t,n){Yb.set(this,{executor:t,buffer:n,err:void 0,state:LC,pushes:[],nexts:[],pending:void 0,execution:void 0,onnext:Gb,onstop:Gb})}return e.prototype.next=function(t){MC(t);var n=Yb.get(this);if(n===void 0)throw new Error("WeakMap error");if(n.nexts.length>=Hb)throw new C5("No more than "+Hb+" pending calls to next are allowed on a single repeater.");if(n.state<=LC&&pee(n),n.onnext(t),typeof n.buffer<"u"&&!n.buffer.empty){var r=Zf(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,Zf(n,o.value)}else if(n.state>=Xf)return Tg(n),Zf(n,Np(n));return new Promise(function(l){return n.nexts.push({resolve:l,value:t})})},e.prototype.return=function(t){MC(t);var n=Yb.get(this);if(n===void 0)throw new Error("WeakMap error");return Tg(n),n.execution=Promise.resolve(n.execution).then(function(){return t}),Zf(n,Np(n))},e.prototype.throw=function(t){var n=Yb.get(this);if(n===void 0)throw new Error("WeakMap error");return n.state<=LC||n.state>=Xf||typeof n.buffer<"u"&&!n.buffer.empty?(Tg(n),n.err==null&&(n.err=t),Zf(n,Np(n))):this.next(Promise.reject(t))},e.prototype[Symbol.asyncIterator]=function(){return this},e.race=hee,e.merge=mee,e.zip=gee,e.latest=vee,e}();function Wb(e,t){var n,r,i=[],o=function(d){d!=null&&typeof d[Symbol.asyncIterator]=="function"?i.push(d[Symbol.asyncIterator]()):d!=null&&typeof d[Symbol.iterator]=="function"?i.push(d[Symbol.iterator]()):i.push(function(){return cee(this,arguments,function(){return ac(this,function(b){switch(b.label){case 0:return t.yieldValues?[4,Sg(d)]:[3,3];case 1:return[4,b.sent()];case 2:b.sent(),b.label=3;case 3:return t.returnValues?[4,Sg(d)]:[3,5];case 4:return[2,b.sent()];case 5:return[2]}})})}())};try{for(var l=_p(e),c=l.next();!c.done;c=l.next()){var p=c.value;o(p)}}catch(d){n={error:d}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}return i}function hee(e){var t=this,n=Wb(e,{returnValues:!0});return new Ap(function(r,i){return Cp(t,void 0,void 0,function(){var o,l,c,p,d,m;return ac(this,function(E){switch(E.label){case 0:if(!n.length)return i(),[2];l=!1,i.then(function(){o(),l=!0}),E.label=1;case 1:E.trys.push([1,,5,7]),p=void 0,d=0,m=function(){var b,y,x,w,k,N;return ac(this,function(A){switch(A.label){case 0:b=d;try{for(y=(k=void 0,_p(n)),x=y.next();!x.done;x=y.next())w=x.value,Promise.resolve(w.next()).then(function(O){O.done?(i(),c===void 0&&(c=O)):d===b&&(d++,o(O))},function(O){return i(O)})}catch(O){k={error:O}}finally{try{x&&!x.done&&(N=y.return)&&N.call(y)}finally{if(k)throw k.error}}return[4,new Promise(function(O){return o=O})];case 1:return p=A.sent(),p===void 0?[3,3]:[4,r(p.value)];case 2:A.sent(),A.label=3;case 3:return[2]}})},E.label=2;case 2:return l?[3,4]:[5,m()];case 3:return E.sent(),[3,2];case 4:return[2,c&&c.value];case 5:return i(),[4,Promise.race(n.map(function(b){return b.return&&b.return()}))];case 6:return E.sent(),[7];case 7:return[2]}})})})}function mee(e){var t=this,n=Wb(e,{yieldValues:!0});return new Ap(function(r,i){return Cp(t,void 0,void 0,function(){var o,l,c,p=this;return ac(this,function(d){switch(d.label){case 0:if(!n.length)return i(),[2];o=[],l=!1,i.then(function(){var m,E;l=!0;try{for(var b=_p(o),y=b.next();!y.done;y=b.next()){var x=y.value;x()}}catch(w){m={error:w}}finally{try{y&&!y.done&&(E=b.return)&&E.call(b)}finally{if(m)throw m.error}}}),d.label=1;case 1:return d.trys.push([1,,3,4]),[4,Promise.all(n.map(function(m,E){return Cp(p,void 0,void 0,function(){var b,y;return ac(this,function(x){switch(x.label){case 0:x.trys.push([0,,6,9]),x.label=1;case 1:return l?[3,5]:(Promise.resolve(m.next()).then(function(w){return o[E](w)},function(w){return i(w)}),[4,new Promise(function(w){o[E]=w})]);case 2:return b=x.sent(),b===void 0?[3,4]:b.done?(c=b,[2]):[4,r(b.value)];case 3:x.sent(),x.label=4;case 4:return[3,1];case 5:return[3,9];case 6:return y=m.return,y?[4,m.return()]:[3,8];case 7:y=x.sent(),x.label=8;case 8:return[7];case 9:return[2]}})})}))];case 2:return d.sent(),[2,c&&c.value];case 3:return i(),[7];case 4:return[2]}})})})}function gee(e){var t=this,n=Wb(e,{returnValues:!0});return new Ap(function(r,i){return Cp(t,void 0,void 0,function(){var o,l,c,p;return ac(this,function(d){switch(d.label){case 0:if(!n.length)return i(),[2,[]];l=!1,i.then(function(){o(),l=!0}),d.label=1;case 1:d.trys.push([1,,6,8]),d.label=2;case 2:return l?[3,5]:(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 3:return c=d.sent(),c===void 0?[2]:(p=c.map(function(m){return m.value}),c.some(function(m){return m.done})?[2,p]:[4,r(p)]);case 4:return d.sent(),[3,2];case 5:return[3,8];case 6:return i(),[4,Promise.all(n.map(function(m){return m.return&&m.return()}))];case 7:return d.sent(),[7];case 8:return[2]}})})})}function vee(e){var t=this,n=Wb(e,{yieldValues:!0,returnValues:!0});return new Ap(function(r,i){return Cp(t,void 0,void 0,function(){var o,l,c,p,d,m=this;return ac(this,function(E){switch(E.label){case 0:if(!n.length)return i(),[2,[]];l=[],c=!1,i.then(function(){var b,y;o();try{for(var x=_p(l),w=x.next();!w.done;w=x.next()){var k=w.value;k()}}catch(N){b={error:N}}finally{try{w&&!w.done&&(y=x.return)&&y.call(x)}finally{if(b)throw b.error}}c=!0}),E.label=1;case 1:return E.trys.push([1,,5,7]),Promise.all(n.map(function(b){return b.next()})).then(function(b){return o(b)},function(b){return i(b)}),[4,new Promise(function(b){return o=b})];case 2:return p=E.sent(),p===void 0?[2]:(d=p.map(function(b){return b.value}),p.every(function(b){return b.done})?[2,d]:[4,r(d.slice())]);case 3:return E.sent(),[4,Promise.all(n.map(function(b,y){return Cp(m,void 0,void 0,function(){var x;return ac(this,function(w){switch(w.label){case 0:if(p[y].done)return[2,p[y].value];w.label=1;case 1:return c?[3,4]:(Promise.resolve(b.next()).then(function(k){return l[y](k)},function(k){return i(k)}),[4,new Promise(function(k){return l[y]=k})]);case 2:return x=w.sent(),x===void 0?[2,p[y].value]:x.done?[2,x.value]:(d[y]=x.value,[4,r(d.slice())]);case 3:return w.sent(),[3,1];case 4:return[2]}})})}))];case 4:return[2,E.sent()];case 5:return i(),[4,Promise.all(n.map(function(b){return b.return&&b.return()}))];case 6:return E.sent(),[7];case 7:return[2]}})})})}async function yee(e,t){let n=e.headers["content-type"];if(!n||!~n.indexOf("multipart/"))return e;let r=n.indexOf("boundary="),i="-";if(~r){let o=r+9,l=n.indexOf(";",o);i=n.slice(o,l>-1?l:void 0).trim().replace(/"/g,"")}return async function*(o,l,c){let p,d,m,E=Buffer.byteLength(l),b=Buffer.alloc(0),y=[];e:for await(let x of o){p=b.byteLength,b=Buffer.concat([b,x]);let w=x.indexOf(l);for(~w?p+=w:p=b.indexOf(l),y=[];~p;){let k=b.subarray(0,p),N=b.subarray(p+E);if(d){let A=k.indexOf(`\r
\r
`)+4,O=k.lastIndexOf(`\r
`,A),_=!1,M=k.subarray(A,O>-1?void 0:O),j=String(k.subarray(0,A)).trim().split(`\r
`),P={},F=j.length;for(;m=j[--F];m=m.split(": "),P[m.shift().toLowerCase()]=m.join(": "));if(m=P["content-type"],m&&~m.indexOf("application/json"))try{M=JSON.parse(String(M)),_=!0}catch{}if(m={headers:P,body:M,json:_},yield m,N[0]===45&&N[1]===45)break e}else l=`\r
`+l,d=E+=2;b=N,p=b.indexOf(l)}y.length&&(yield y)}y.length&&(yield y)}(e,`--${i}`)}function bee(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Eee(e,t,n=""){if(!arguments.length)throw new TypeError("Argument 1 `value` is required.");if(typeof t!="function")throw new TypeError("Argument 2 `isExtractable` must be a function.");if(typeof n!="string")throw new TypeError("Argument 3 `path` must be a string.");const r=new Map,i=new Map;function o(l,c,p){if(t(l)){const E=i.get(l);return E?E.push(c):i.set(l,[c]),null}const d=Array.isArray(l)||typeof FileList<"u"&&l instanceof FileList,m=bee(l);if(d||m){let E=r.get(l);const b=!E;if(b&&(E=d?[]:l instanceof Object?{}:Object.create(null),r.set(l,E)),!p.has(l)){const y=c?`${c}.`:"",x=new Set(p).add(l);if(d){let w=0;for(const k of l){const N=o(k,y+w++,x);b&&E.push(N)}}else for(const w in l){const k=o(l[w],y+w,x);b&&(E[w]=k)}}return E}return l}return{clone:o(e,n,new Set),files:i}}function See(e){return typeof File<"u"&&e instanceof File||typeof Blob<"u"&&e instanceof Blob}function Tee(e){return typeof e.createReadStream=="function"}function A5(e){const t=[],n=e[Symbol.asyncIterator]();function r(){return Xt(()=>n.next(),({value:i,done:o})=>(i!=null&&t.push(i),o?t:r()))}return r()}function xee(e,{File:t=Kf.File,FormData:n=Kf.FormData}){if(!e.variables)return JSON.stringify(e);const r=Object.assign({},e.variables),{clone:i,files:o}=Eee(r,b=>See(b)||(b==null?void 0:b.promise)||Wf(b)||(b==null?void 0:b.then)||typeof(b==null?void 0:b.arrayBuffer)=="function","variables");if(o.size===0)return JSON.stringify(e);const l={},c=[];let p=0;for(const[b,y]of o)l[p]=y,c[p]=b,p++;const d=new n;d.append("operations",JSON.stringify({...e,variables:i})),d.append("map",JSON.stringify(l));function m(b,y){const x=y.toString();if(b!=null)return Xt(()=>(b==null?void 0:b.promise)||b,w=>{const k=w.filename||w.name||w.path||`blob-${x}`;if(wee(w))d.append(x,w,k);else{if(Wf(w))return Xt(()=>A5(w),N=>{const A=new Uint8Array(N);d.append(x,new t([A],k),k)});if(Tee(w))return Xt(()=>A5(w.createReadStream()),N=>{const A=new Uint8Array(N);d.append(x,new t([A],k,{type:w.mimetype}),k)});d.append(x,new t([w],k),k)}})}const E=[];for(const b in c){const y=c[b],x=m(y,Number(b));fr(x)&&E.push(x)}return E.length>0?Promise.all(E).then(()=>d):d}function wee(e){return typeof e.arrayBuffer=="function"}function O5(e,t){return e instanceof Me?e:(e==null?void 0:e.name)==="TimeoutError"?Yt(e.message,{extensions:{http:{status:504,...(t==null?void 0:t.http)||{}},code:"TIMEOUT_ERROR",...t||{}},originalError:e}):Yt(e.message,{extensions:t,originalError:e})}function Qb(e,t){return{errors:[O5(e,t)]}}function Cee(e){const n=new Kf.TextEncoder().encode(e);return Xt(()=>Kf.crypto.subtle.digest("SHA-256",n),r=>{let i="";for(const o of new Uint8Array(r))i+=o.toString(16).padStart(2,"0");return i})}const D5=`

`;function _ee(e){return e&&typeof e.getReader=="function"}function Nee(e,t,n){const r=e.body;if(!_ee(r))throw new Error("Response body is expected to be a readable stream but got; "+Mi(r));return new Ap((i,o)=>{const l=new Kf.TextDecoder,c=r.getReader();c.closed.then(o).catch(o),o.then(()=>{t==null||t.abort(),r.locked&&c.releaseLock()}).catch(m=>{c.cancel(m)});let p="";async function d(){var b,y;if(n!=null&&n.aborted)return await i(Qb(n.reason)),o();if(!(r!=null&&r.locked))return o();const{done:m,value:E}=await c.read();if(m)return o();for(p+=typeof E=="string"?E:l.decode(E);;){const x=p.indexOf(D5);if(x===-1)break;const w=p.slice(0,x);p=p.slice(x+D5.length);const k=(b=w.split("data:")[1])==null?void 0:b.trim();if(k){const A=JSON.parse(k);await i(A.payload||A)}if(((y=w.split("event:")[1])==null?void 0:y.trim())==="complete")return o()}return d()}return d()})}function Aee(e){return e!=null&&typeof e=="object"&&"pipe"in e}async function Oee(e){const t=e.body,n=e.headers.get("content-type")||"";let r;if(Aee(t)){t.headers={"content-type":n};const l=await yee(t);"next"in l&&(r=l)}else{const l=await Q8(e);"next"in l&&(r=l)}const i={};return r==null?i:EC(r,l=>{if(l.json){const c=l.body;y5({incrementalResult:c,executionResult:i})}return i})}const k5=vs(function(t){var n;return t.operation==="query"&&((n=t.directives)==null?void 0:n.some(r=>r.name.value==="live"))});function Dee({baseUrl:e="",body:t}){const n="https://dummyhostname.com",r=e.startsWith("http")?e:e!=null&&e.startsWith("/")?`${n}${e}`:`${n}/${e}`,i=new URL(r);return t.query&&i.searchParams.set("query",t.query),t.variables&&Object.keys(t.variables).length>0&&i.searchParams.set("variables",JSON.stringify(t.variables)),t.operationName&&i.searchParams.set("operationName",t.operationName),t.extensions&&i.searchParams.set("extensions",JSON.stringify(t.extensions)),i.toString().replace(n,"")}function kee(e){const t=(e==null?void 0:e.print)??OC;let n;const r=e==null?void 0:e.serviceName,i=(l,c)=>{var P,F,V,$,K,ee;if(n||(n=new AbortController),n.signal.aborted)return Qb(n.signal.reason);const p=((P=l.extensions)==null?void 0:P.fetch)??(e==null?void 0:e.fetch)??Kf.fetch;let d=((F=l.extensions)==null?void 0:F.method)||(e==null?void 0:e.method);const m=Yf(l),E=m.operation;(e!=null&&e.useGETForQueries||(V=l.extensions)!=null&&V.useGETForQueries)&&E==="query"&&(d="GET");let b="application/graphql-response+json, application/json, multipart/mixed",y;E==="subscription"||k5(m)?(d||(d="GET"),b="text/event-stream",y=new AbortController):d||(d="POST");const x=(($=l.extensions)==null?void 0:$.endpoint)||(e==null?void 0:e.endpoint)||"/graphql",w={accept:b};if(e!=null&&e.headers&&Object.assign(w,typeof(e==null?void 0:e.headers)=="function"?e.headers(l):e==null?void 0:e.headers),(K=l.extensions)!=null&&K.headers){const{headers:J,...W}=l.extensions;Object.assign(w,J),l.extensions=W}const k=[n.signal],N=l.signal||((ee=l.info)==null?void 0:ee.signal);if(N){if(N.aborted)return Qb(N.reason);k.push(N)}e!=null&&e.timeout&&k.push(AbortSignal.timeout(e.timeout)),y&&k.push(y.signal);const A=see(k),O={code:"DOWNSTREAM_SERVICE_ERROR",serviceName:r,request:{method:d}},_=t(l.document);let M=function(){return DC({executionRequest:l,excludeQuery:c,printFn:t})};e!=null&&e.apq&&(M=function(){return Xt(()=>Cee(_),W=>{const q=l.extensions||{};return q.persistedQuery={version:1,sha256Hash:W},DC({executionRequest:{...l,extensions:q},excludeQuery:c,printFn:t})})});function j(J){return J.name==="AggregateError"?{errors:J.errors.map(W=>R5(W,{signal:A,endpoint:x,upstreamErrorExtensions:O}))}:{errors:[R5(J,{signal:A,endpoint:x,upstreamErrorExtensions:O})]}}return Xt(()=>M(),J=>Xt(()=>{switch(d){case"GET":{const W=Dee({baseUrl:x,body:J}),q={method:"GET",headers:w,signal:A};return(e==null?void 0:e.credentials)!=null&&(q.credentials=e.credentials),O.request.url=W,p(W,q,l.context,l.info)}case"POST":return O.request.body=J,Xt(()=>xee(J,{File:e==null?void 0:e.File,FormData:e==null?void 0:e.FormData}),W=>{typeof W=="string"&&!w["content-type"]&&(O.request.body=W,w["content-type"]="application/json");const q={method:"POST",body:W,headers:w,signal:A};return(e==null?void 0:e.credentials)!=null&&(q.credentials=e.credentials),p(x,q,l.context,l.info)},j)}},W=>Xt(()=>{if(O.response||(O.response={}),O.response.status=W.status,O.response.statusText=W.statusText,Object.defineProperty(O.response,"headers",{get(){return Object.fromEntries(W.headers.entries())}}),(e==null?void 0:e.retry)!=null&&!W.status.toString().startsWith("2"))throw new Error(W.statusText||`Upstream HTTP Error: ${W.status}`);const q=W.headers.get("content-type");return q!=null&&q.includes("text/event-stream")?Nee(W,y,A):q!=null&&q.includes("multipart/mixed")?Oee(W):W.text()},q=>{if(typeof q=="string")if(O.response||(O.response={}),O.response.body=q,q)try{const te=JSON.parse(q);return O.response.body=te,te.data==null&&(te.errors==null||te.errors.length===0)?{errors:[Yt('Unexpected empty "data" and "errors" fields in result: '+q,{extensions:O})]}:Array.isArray(te.errors)?{...te,errors:te.errors.map(({message:re,...ae})=>Yt(re,{...ae,extensions:{code:"DOWNSTREAM_SERVICE_ERROR",serviceName:r,...ae.extensions||{}}}))}:te}catch(te){return{errors:[Yt(`Unexpected response: ${JSON.stringify(q)}`,{extensions:O,originalError:te})]}}else return{errors:[Yt("No response returned",{extensions:O})]};else return q},j),j),j)};let o=i;if((e==null?void 0:e.apq)!=null&&(o=function(c){return Xt(()=>i(c,!0),p=>{var d;return(d=p.errors)!=null&&d.some(m=>m.extensions.code==="PERSISTED_QUERY_NOT_FOUND"||m.message==="PersistedQueryNotFound")?i(c,!1):p})}),(e==null?void 0:e.retry)!=null){const l=o;o=function(p){let d,m=0;function E(){return n!=null&&n.signal.aborted?Qb(n.signal.reason):(m++,m>e.retry?d??{errors:[Yt("No response returned from fetch")]}:Xt(()=>l(p),b=>{var y;return d=b,(y=d==null?void 0:d.errors)!=null&&y.length?E():d}))}return E()}}return Object.defineProperties(o,{[Gl.dispose]:{get(){return function(){var c;n==null||n.abort((c=e==null?void 0:e.getDisposeReason)==null?void 0:c.call(e)),n=void 0}}},[Gl.asyncDispose]:{get(){return function(){var c;n==null||n.abort((c=e==null?void 0:e.getDisposeReason)==null?void 0:c.call(e)),n=void 0}}}}),o}function R5(e,{signal:t,endpoint:n,upstreamErrorExtensions:r}){return typeof e=="string"?Yt(e,{extensions:r}):e.name==="GraphQLError"?e:e.name==="TypeError"&&e.message==="fetch failed"?Yt(`fetch failed to ${n}`,{extensions:r,originalError:e}):e.name==="AbortError"?O5((t==null?void 0:t.reason)||e,r):e.message?Yt(e.message,{extensions:r,originalError:e}):Yt("Unknown error",{extensions:r,originalError:e})}var Oa;(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"})(Oa||(Oa={}));function Ree(e,t,n){let r={},i=null;const o=(p=d=>console.error(d))=>{(i==null||i.readyState!==Js.OPEN)&&(i=new t(e,"graphql-ws",{followRedirects:!0,headers:n==null?void 0:n.headers,rejectUnauthorized:!1,skipUTF8Validation:!0}),i.onopen=()=>{let d={};switch(typeof(n==null?void 0:n.connectionParams)){case"function":d=n==null?void 0:n.connectionParams();break;case"object":d=n==null?void 0:n.connectionParams;break}d=Object.assign(d,r),i.send(JSON.stringify({type:Oa.CONNECTION_INIT,payload:d}),m=>{m&&p(m)})},i.onerror=d=>{p(d.error)},i.onclose=()=>{i=null})},l=()=>{i!=null&&(i.send(JSON.stringify({type:Oa.CONNECTION_TERMINATE})),i.terminate(),i=null)},c=function(d){var E,b;(E=d.extensions)!=null&&E.connectionParams&&typeof((b=d.extensions)==null?void 0:b.connectionParams)=="object"&&(r=Object.assign(r,d.extensions.connectionParams));const m=Date.now().toString();return GJ({subscribe(y){function x(w){y.error(w)}if(o(),i==null)throw new Error("WebSocket connection is not found!");return i.onmessage=w=>{const k=JSON.parse(w.data.toString("utf-8"));switch(k.type){case Oa.CONNECTION_ACK:{if(i==null)throw new Error("WebSocket connection is not found!");i.send(JSON.stringify({type:Oa.START,id:m,payload:{query:hn(d.document),variables:d.variables,operationName:d.operationName}}),N=>{N&&x(N)});break}case Oa.CONNECTION_ERROR:{y.error(k.payload);break}case Oa.CONNECTION_KEEP_ALIVE:break;case Oa.DATA:{y.next(k.payload);break}case Oa.COMPLETE:{i!=null&&i.send(JSON.stringify({type:Oa.CONNECTION_TERMINATE}),N=>{N&&x(N)}),y.complete(),l();break}}},{unsubscribe:()=>{(i==null?void 0:i.readyState)===Js.OPEN&&(i==null||i.send(JSON.stringify({type:Oa.STOP,id:m}))),l()}}}})};return c[Symbol.dispose]=l,c}function el(e){if(e instanceof Error)return e;if(typeof e=="object"&&e!=null&&"message"in e&&typeof e.message=="string"){let t;"cause"in e&&(t={cause:e.cause});const n=new Error(e.message,t);return"stack"in e&&typeof e.stack=="string"&&(n.stack=e.stack),"name"in e&&typeof e.name=="string"&&(n.name=e.name),n}return new Error(String(e))}function Mee(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 p;r=new Promise(m=>{p=m});const d=await t.next();return d.done?(i=!0,await o()):(n=d.value[Symbol.asyncIterator](),r=void 0,p(),await o())}const l=n,c=await n.next();return c.done?(n===l&&(n=void 0),await o()):c}catch(l){throw i=!0,l}}return{next:o,async return(){var l,c;return i=!0,await Promise.all([(l=n==null?void 0:n.return)==null?void 0:l.call(n),(c=t.return)==null?void 0:c.call(t)]),{value:void 0,done:!0}},async throw(l){var c,p;throw i=!0,await Promise.all([(c=n==null?void 0:n.throw)==null?void 0:c.call(n,l),(p=t.throw)==null?void 0:p.call(t,l)]),l},[Symbol.asyncIterator](){return this},async[Gl.asyncDispose](){var l,c;i=!0,await Promise.all([(l=n==null?void 0:n[Gl.asyncDispose])==null?void 0:l.call(n),(c=t==null?void 0:t[Gl.asyncDispose])==null?void 0:c.call(t)])}}}function M5(e,t){if(!e)throw new Error(t??"Unexpected invariant triggered.")}function L5(e,t,n){t==null||t.throwIfAborted();const r=Object.create(null),i=[];for(const l in e){const c=Xt(()=>e[l],p=>{r[l]=p});fr(c)&&i.push(c)}if(!i.length)return r;const o=i.length===1?i[0]:Promise.all(i);return n?Promise.race([n,o]).then(()=>r):o.then(()=>r)}function Lee(e,t,n,r){const i=[],o=r==null?void 0:r.maxErrors;try{const l=Iee(e,t,n,c=>{if(o!=null&&i.length>=o)throw Yt("Too many errors processing variables, error limit reached. Execution aborted.");i.push(c)});if(i.length===0)return{coerced:l}}catch(l){i.push(l)}return{errors:i}}function Iee(e,t,n,r){const i={};for(const o of t){const l=o.variable.name.value,c=bi(e,o.type);if(!ki(c)){const d=hn(o.type);r(Yt(`Variable "$${l}" expected value of type "${d}" which cannot be used as an input type.`,{nodes:o.type}));continue}if(!o5(n,l)){if(o.defaultValue)i[l]=wa(o.defaultValue,c);else if(_t(c)){const d=Mi(c);r(Yt(`Variable "$${l}" of required type "${d}" was not provided.`,{nodes:o}))}continue}const p=n[l];if(p===null&&_t(c)){const d=Mi(c);r(Yt(`Variable "$${l}" of non-null type "${d}" must not be null.`,{nodes:o}));continue}i[l]=UE(p,c,(d,m,E)=>{let b=`Variable "$${l}" got invalid value `+Mi(m);d.length>0&&(b+=` at "${l}${ZJ(d)}"`),r(Yt(b+"; "+E.message,{nodes:o,originalError:E}))})}return i}const Fee=vJ((e,t,n)=>KJ(e.schema,e.fragments,e.variableValues,t,n));function Pee(e){const t=P5(e);return"schema"in t?I5(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 I5(e){var t;return(t=e.signal)==null||t.throwIfAborted(),Xt(()=>Uee(e),n=>{const r=F5(n,e.errors);return e.subsequentPayloads.size>0?{initialResult:{...r,hasNext:!0},subsequentResults:nte(e)}:r},n=>{var r;return(r=e.signal)==null||r.throwIfAborted(),n.errors?e.errors.push(...n.errors):e.errors.push(n),F5(null,e.errors)})}function F5(e,t){return t.length===0?{data:e}:{errors:t,data:e}}const jee=vs(function(t){const n=Object.create(null);for(const r of t.definitions)r.kind===X.FRAGMENT_DEFINITION&&(n[r.name.value]=r);return n});function P5(e){var N;const{schema:t,document:n,rootValue:r,contextValue:i,variableValues:o,operationName:l,fieldResolver:c,typeResolver:p,subscribeFieldResolver:d,signal:m}=e;m==null||m.throwIfAborted(),Ey(t);const E=jee(n);let b;for(const A of n.definitions)switch(A.kind){case X.OPERATION_DEFINITION:if(l==null){if(b!==void 0)return[Yt("Must provide operation name if query contains multiple operations.",{extensions:{code:"OPERATION_RESOLUTION_FAILURE"}})];b=A}else((N=A.name)==null?void 0:N.value)===l&&(b=A);break}if(b==null)return l!=null?[Yt(`Unknown operation named "${l}".`,{extensions:{code:"OPERATION_RESOLUTION_FAILURE"}})]:[Yt("Must provide an operation.",{extensions:{code:"OPERATION_RESOLUTION_FAILURE"}})];const y=b.variableDefinitions??[],x=Lee(t,y,o??{},{maxErrors:50});if(x.errors)return x.errors;m==null||m.throwIfAborted();let w,k;if(m){const A=new Set,O=XF();k=O.promise;const _=()=>{O.reject(m.reason),m.removeEventListener("abort",_)};m.addEventListener("abort",_,{once:!0}),k.catch(()=>{for(const M of A)M();A.clear()}),w=M=>{A.add(M)}}return{schema:t,fragments:E,rootValue:r,contextValue:i,operation:b,variableValues:x.coerced,fieldResolver:c??G5,typeResolver:p??Gee,subscribeFieldResolver:d??G5,subsequentPayloads:new Set,errors:[],signal:m,onSignalAbort:w,signalPromise:k}}function Vee(e,t){return{...e,rootValue:t,subsequentPayloads:new Set,errors:[]}}function Uee(e){const{operation:t,schema:n,fragments:r,variableValues:i,rootValue:o}=e,l=Ib(n,t.operation,[t]);l==null&&Yt(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});const{fields:c,patches:p}=_C(n,r,i,l,t.selectionSet),d=void 0;let m;t.operation==="mutation"?m=qee(e,l,o,d,c):m=PC(e,l,o,d,c);for(const E of p){const{label:b,fields:y}=E;X5(e,l,o,y,b,d)}return m}function qee(e,t,n,r,i){return i5(i,(o,[l,c])=>{var d;const p=wp(r,l,t.name);return(d=e.signal)==null||d.throwIfAborted(),Xt(()=>j5(e,t,n,c,p),m=>(m===void 0||(o[l]=m),o))},Object.create(null))}function PC(e,t,n,r,i,o){var p,d;const l=Object.create(null);let c=!1;try{for(const[m,E]of i){(p=e.signal)==null||p.throwIfAborted();const b=wp(r,m,t.name),y=j5(e,t,n,E,b,o);y!==void 0&&(l[m]=y,fr(y)&&(c=!0))}}catch(m){if(m!==((d=e.signal)==null?void 0:d.reason)&&c)return Xt(()=>L5(l,e.signal),()=>{throw m},()=>{throw m});throw m}return c?L5(l,e.signal,e.signalPromise):l}function j5(e,t,n,r,i,o){var E;const l=(o==null?void 0:o.errors)??e.errors,c=J5(e.schema,t,r[0]);if(!c)return;const p=c.type,d=c.resolve??e.fieldResolver,m=V5(e,c,r,t,i);try{(E=e.signal)==null||E.throwIfAborted();const b=a5(c,r[0],e.variableValues),y=e.contextValue,x=d(n,b,y,m);let w;return fr(x)?w=x.then(k=>sc(e,p,r,m,i,k,o)):w=sc(e,p,r,m,i,x,o),fr(w)?w.then(void 0,k=>{if(k instanceof AggregateError){let O;for(let _ of k.errors){_=el(_);const M=yr(_,r,Ti(i));O=Da(M,p,l),_o(e,i,o)}return O}k=el(k);const N=yr(k,r,Ti(i)),A=Da(N,p,l);return _o(e,i,o),A}):w}catch(b){if(b instanceof AggregateError){let k;for(let N of b.errors){N=el(N);const A=yr(N,r,Ti(i));k=Da(A,p,l),_o(e,i,o)}return k}const y=el(b),x=yr(y,r,Ti(i)),w=Da(x,p,l);return _o(e,i,o),w}}function V5(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,signal:e.signal}}const U5="CRITICAL_ERROR";function Da(e,t,n){var r;if(_t(t)||(r=e.extensions)!=null&&r[U5])throw e;return n.push(e),null}function sc(e,t,n,r,i,o,l){if(o instanceof Error)throw o;if(_t(t)){const c=sc(e,t.ofType,n,r,i,o,l);if(c===null)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return c}if(o==null)return null;if(gn(t))return $ee(e,t,n,r,i,o,l);if(si(t))return zee(t,o);if(lr(t))return Hee(e,t,n,r,i,o,l);if(At(t))return jC(e,t,n,r,i,o,l);console.assert(!1,"Cannot complete value of unexpected output type: "+Mi(t))}function q5(e,t,n){if(typeof n.key=="number")return;const r=qs(WJ,t[0],e.variableValues);if(r&&r.if!==!1)return M5(typeof r.initialCount=="number","initialCount must be a number"),M5(r.initialCount>=0,"initialCount must be a positive integer"),{initialCount:r.initialCount,label:typeof r.label=="string"?r.label:void 0}}async function Bee(e,t,n,r,i,o,l){var b,y;(b=e.signal)==null||b.throwIfAborted(),o.return&&((y=e.onSignalAbort)==null||y.call(e,()=>{var x;(x=o.return)==null||x.call(o)}));const c=(l==null?void 0:l.errors)??e.errors,p=q5(e,n,i);let d=!1;const m=[];let E=0;for(;;){if(p&&typeof p.initialCount=="number"&&E>=p.initialCount){ete(E,o,e,n,r,t,i,p.label,l);break}const x=wp(i,E,void 0);let w;try{if(w=await o.next(),w.done)break}catch(k){const N=el(k),A=yr(N,n,Ti(x));m.push(Da(A,t,c));break}B5(w.value,m,c,e,t,n,r,x,l)&&(d=!0),E+=1}return d?Promise.all(m):m}function $ee(e,t,n,r,i,o,l){const c=t.ofType,p=(l==null?void 0:l.errors)??e.errors;if(Wf(o)){const x=o[Symbol.asyncIterator]();return Bee(e,c,n,r,i,x,l)}if(!gJ(o))throw Yt(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);const d=q5(e,n,i);let m=!1,E=l;const b=[];let y=0;for(const x of o){const w=wp(i,y,void 0);if(d&&typeof d.initialCount=="number"&&y>=d.initialCount){E=Zee(i,w,x,e,n,r,c,d.label,E),y++;continue}B5(x,b,p,e,c,n,r,w,l)&&(m=!0),y++}return m?Promise.all(b):b}function B5(e,t,n,r,i,o,l,c,p){try{let d;if(fr(e)?d=e.then(m=>sc(r,i,o,l,c,m,p)):d=sc(r,i,o,l,c,e,p),fr(d))return t.push(d.then(void 0,m=>{m=el(m);const E=yr(m,o,Ti(c)),b=Da(E,i,n);return _o(r,c,p),b})),!0;t.push(d)}catch(d){const m=el(d),E=yr(m,o,Ti(c)),b=Da(E,i,n);_o(r,c,p),t.push(b)}return!1}function zee(e,t){let n;try{n=e.serialize(t)}catch(r){throw r instanceof Me?new Error(r.message):r}if(n==null)throw new Error(`Expected \`${Mi(e)}.serialize(${Mi(t)})\` to return non-nullable value, returned: ${Mi(n)}`);return n}function Hee(e,t,n,r,i,o,l){const c=t.resolveType??e.typeResolver,p=e.contextValue,d=c(o,p,r,t);return fr(d)?d.then(m=>jC(e,$5(m,e,t,n,r,o),n,r,i,o,l)):jC(e,$5(d,e,t,n,r,o),n,r,i,o,l)}function $5(e,t,n,r,i,o){if(e==null)throw Yt(`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(At(e)){if(Zv.major>=16)throw Yt("Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.");e=e.name}if(typeof e!="string")throw Yt(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${Mi(o)}, received "${Mi(e)}".`);const l=t.schema.getType(e);if(l==null)throw Yt(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!At(l))throw Yt(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,l))throw Yt(`Runtime Object type "${l.name}" is not a possible type for "${n.name}".`,{nodes:r});return l}function jC(e,t,n,r,i,o,l){if(t.isTypeOf){const c=t.isTypeOf(o,e.contextValue,r);if(fr(c))return c.then(p=>{if(!p)throw z5(t,o,n);return H5(e,t,n,i,o,l)});if(!c)throw z5(t,o,n)}return H5(e,t,n,i,o,l)}function z5(e,t,n){return Yt(`Expected value of type "${e.name}" but got: ${Mi(t)}.`,{nodes:n})}function H5(e,t,n,r,i,o){const{fields:l,patches:c}=Fee(e,t,n),p=PC(e,t,i,r,l,o);for(const d of c){const{label:m,fields:E}=d;X5(e,t,i,E,m,r,o)}return p}const Gee=function(e,t,n,r){if(r5(e)&&typeof e.__typename=="string")return e.__typename;const i=n.schema.getPossibleTypes(r),o=[];for(let l=0;l<i.length;l++){const c=i[l];if(c.isTypeOf){const p=c.isTypeOf(e,t,n);if(fr(p))o[l]=p;else if(p)return c.name}}if(o.length)return Promise.all(o).then(l=>{for(let c=0;c<l.length;c++)if(l[c])return i[c].name})},G5=function(e,t,n,r){if(r5(e)||typeof e=="function"){const i=e[r.fieldName];return typeof i=="function"?e[r.fieldName](t,n,r):i}};function Yee(e){const t=P5(e);if(!("schema"in t)){for(const r of t){const i=r.extensions||(r.extensions={}),o=i.http||(i.http={});o.status=400,r.extensions.code="BAD_USER_INPUT"}return{errors:t}}const n=Kee(t);return fr(n)?n.then(r=>W5(t,r)):W5(t,n)}function Wee(e){return e==null?void 0:e.initialResult}function Y5(e){const t=e.subsequentResults;let n=!1,r=!1;return{[Symbol.asyncIterator](){return this},next(){return r?wo({value:void 0,done:r}):n?t.next():(n=!0,wo({value:e.initialResult,done:r}))},return(){return r=!0,t.return()},throw(i){return r=!0,t.throw(i)},[Gl.asyncDispose](){var i;return r=!0,(i=t==null?void 0:t[Gl.asyncDispose])==null?void 0:i.call(t)}}}async function*Qee(e){"initialResult"in e?yield*Y5(e):yield e}function W5(e,t){return Wf(t)?Mee(EC(t,n=>Xt(()=>I5(Vee(e,n)),Qee),n=>{throw n instanceof AggregateError?new AggregateError(n.errors.map(r=>Q5(r,e.operation)),n.message):Q5(n,e.operation)})):t}function Q5(e,t){return Yt(e.message,{originalError:e,nodes:[t]})}function Kee(e){try{const t=Xee(e);return fr(t)?t.then(void 0,n=>({errors:[n]})):t}catch(t){return{errors:[t]}}}function Xee(e){const{schema:t,fragments:n,operation:r,variableValues:i,rootValue:o}=e,l=t.getSubscriptionType();if(l==null)throw Yt("Schema is not configured to execute subscription operation.",{nodes:r});const{fields:c}=_C(t,n,i,l,r.selectionSet),[p,d]=[...c.entries()][0],m=d[0].name.value,E=J5(t,l,d[0]);if(!E)throw Yt(`The subscription field "${m}" is not defined.`,{nodes:d});const b=wp(void 0,p,l.name),y=V5(e,E,d,l,b);try{const x=a5(E,d[0],i),w=e.contextValue,N=(E.subscribe??e.subscribeFieldResolver)(o,x,w,y);return fr(N)?N.then(A=>K5(A,e.signal,e.onSignalAbort)).then(void 0,A=>{throw yr(A,d,Ti(b))}):K5(N,e.signal,e.onSignalAbort)}catch(x){throw yr(x,d,Ti(b))}}function K5(e,t,n){if(t==null||t.throwIfAborted(),e instanceof Error)throw e;if(!Wf(e))throw Yt(`Subscription field must return Async Iterable. Received: ${Mi(e)}.`);return n?{[Symbol.asyncIterator](){const r=e[Symbol.asyncIterator]();return r.return&&(n==null||n(()=>{var i;(i=r.return)==null||i.call(r)})),r}}:e}function X5(e,t,n,r,i,o,l){const c=new rte({label:i,path:o,parentContext:l,exeContext:e});let p;try{p=PC(e,t,n,o,r,c),fr(p)&&(p=p.then(null,d=>(c.errors.push(d),null)))}catch(d){c.errors.push(d),p=null}c.addData(p)}function Zee(e,t,n,r,i,o,l,c,p){const d=new Z5({label:c,path:t,parentContext:p,exeContext:r});let m;try{try{fr(n)?m=n.then(b=>sc(r,l,i,o,t,b,d)):m=sc(r,l,i,o,t,n,d),fr(m)&&(m=m.then(void 0,b=>{b=el(b);const y=yr(b,i,Ti(t)),x=Da(y,l,d.errors);return _o(r,t,d),x}))}catch(b){const y=el(b),x=yr(y,i,Ti(t));m=Da(x,l,d.errors),_o(r,t,d)}}catch(b){return d.errors.push(b),_o(r,e,d),d.addItems(null),d}let E;return fr(m)?E=m.then(b=>[b],b=>(d.errors.push(b),_o(r,e,d),null)):E=[m],d.addItems(E),d}async function Jee(e,t,n,r,i,o,l){let c;try{const{value:d,done:m}=await e.next();if(m)return o.setIsCompletedIterator(),{done:m,value:void 0};c=d}catch(d){const m=el(d),E=yr(m,n,Ti(l));return{done:!0,value:Da(E,i,o.errors)}}let p;try{return p=sc(t,i,n,r,l,c,o),fr(p)&&(p=p.then(void 0,d=>{const m=yr(d,n,Ti(l)),E=Da(m,i,o.errors);return _o(t,l,o),E})),{done:!1,value:p}}catch(d){const m=yr(d,n,Ti(l)),E=Da(m,i,o.errors);return _o(t,l,o),{done:!1,value:E}}}async function ete(e,t,n,r,i,o,l,c,p){let d=e,m=p??void 0;for(;;){const E=wp(l,d,void 0),b=new Z5({label:c,path:E,parentContext:m,iterator:t,exeContext:n});let y;try{y=await Jee(t,n,r,i,o,b,E)}catch(N){b.errors.push(N),_o(n,l,b),b.addItems(null),t!=null&&t.return&&t.return().catch(()=>{});return}const{done:x,value:w}=y;let k;if(fr(w)?k=w.then(N=>[N],N=>(b.errors.push(N),_o(n,l,b),null)):k=[w],b.addItems(k),x)break;m=b,d++}}function _o(e,t,n){const r=Ti(t);e.subsequentPayloads.forEach(i=>{var o;if(i!==n){for(let l=0;l<r.length;l++)if(i.path[l]!==r[l])return;VC(i)&&((o=i.iterator)!=null&&o.return)&&i.iterator.return().catch(()=>{}),e.subsequentPayloads.delete(i)}})}function tte(e){const t=[];for(const n of e.subsequentPayloads){const r={};if(n.isCompleted){if(e.subsequentPayloads.delete(n),VC(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 nte(e){let t=!1;async function n(){if(t)return{value:void 0,done:!0};const i=Array.from(e.subsequentPayloads).map(c=>c.promise);if(e.signalPromise?await Promise.race([e.signalPromise,...i]):await Promise.race(i),t)return{value:void 0,done:!0};const o=tte(e),l=e.subsequentPayloads.size>0;return!o.length&&l?n():(l||(t=!0),{value:o.length?{incremental:o,hasNext:l}:{hasNext:l},done:!1})}function r(){const i=[];return e.subsequentPayloads.forEach(o=>{var l;VC(o)&&((l=o.iterator)!=null&&l.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){throw await r(),t=!0,i},async[Gl.asyncDispose](){await r(),t=!0}}}class rte{constructor(t){nn(this,"type");nn(this,"errors");nn(this,"label");nn(this,"path");nn(this,"promise");nn(this,"data");nn(this,"parentContext");nn(this,"isCompleted");nn(this,"_exeContext");nn(this,"_resolve");this.type="defer",this.label=t.label,this.path=Ti(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 Z5{constructor(t){nn(this,"type");nn(this,"errors");nn(this,"label");nn(this,"path");nn(this,"items");nn(this,"promise");nn(this,"parentContext");nn(this,"iterator");nn(this,"isCompletedIterator");nn(this,"isCompleted");nn(this,"_exeContext");nn(this,"_resolve");this.type="stream",this.items=null,this.label=t.label,this.path=Ti(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 VC(e){return e.type==="stream"}function J5(e,t,n){const r=n.name.value;return r===Sa.name&&e.getQueryType()===t?Sa:r===Ta.name&&e.getQueryType()===t?Ta:r===xa.name?xa:t.getFields()[r]}function ite(e){const t=QE(e.document,e.operationName);if(t==null)throw new Error("Must provide an operation.");return t.operation==="subscription"?Yee(e):Xt(()=>Pee(e),n=>Wee(n)?Y5(n):n)}const ote=vs(function(t){return function(r){var i;return ite({schema:t,document:r.document,variableValues:r.variables,operationName:r.operationName,rootValue:r.rootValue,contextValue:r.context,signal:r.signal||((i=r.info)==null?void 0:i.signal)})}});var UC,e4;function ate(){if(e4)return UC;e4=1;var e=function(){function y(w,k){if(typeof w!="function")throw new TypeError("DataLoader must be constructed with a function which accepts "+("Array<key> and returns Promise<Array<value>>, but got: "+w+"."));this._batchLoadFn=w,this._maxBatchSize=c(k),this._batchScheduleFn=p(k),this._cacheKeyFn=d(k),this._cacheMap=m(k),this._batch=null,this.name=E(k)}var x=y.prototype;return x.load=function(k){if(k==null)throw new TypeError("The loader.load() function must be called with a value, "+("but got: "+String(k)+"."));var N=r(this),A=this._cacheMap,O;if(A){O=this._cacheKeyFn(k);var _=A.get(O);if(_){var M=N.cacheHits||(N.cacheHits=[]);return new Promise(function(P){M.push(function(){P(_)})})}}N.keys.push(k);var j=new Promise(function(P,F){N.callbacks.push({resolve:P,reject:F})});return A&&A.set(O,j),j},x.loadMany=function(k){if(!b(k))throw new TypeError("The loader.loadMany() function must be called with Array<key> "+("but got: "+k+"."));for(var N=[],A=0;A<k.length;A++)N.push(this.load(k[A]).catch(function(O){return O}));return Promise.all(N)},x.clear=function(k){var N=this._cacheMap;if(N){var A=this._cacheKeyFn(k);N.delete(A)}return this},x.clearAll=function(){var k=this._cacheMap;return k&&k.clear(),this},x.prime=function(k,N){var A=this._cacheMap;if(A){var O=this._cacheKeyFn(k);if(A.get(O)===void 0){var _;N instanceof Error?(_=Promise.reject(N),_.catch(function(){})):_=Promise.resolve(N),A.set(O,_)}}return this},y}(),t=typeof process=="object"&&typeof process.nextTick=="function"?function(y){n||(n=Promise.resolve()),n.then(function(){process.nextTick(y)})}:typeof setImmediate=="function"?function(y){setImmediate(y)}:function(y){setTimeout(y)},n;function r(y){var x=y._batch;if(x!==null&&!x.hasDispatched&&x.keys.length<y._maxBatchSize)return x;var w={hasDispatched:!1,keys:[],callbacks:[]};return y._batch=w,y._batchScheduleFn(function(){i(y,w)}),w}function i(y,x){if(x.hasDispatched=!0,x.keys.length===0){l(x);return}var w;try{w=y._batchLoadFn(x.keys)}catch(k){return o(y,x,new TypeError("DataLoader must be constructed with a function which accepts Array<key> and returns Promise<Array<value>>, but the function "+("errored synchronously: "+String(k)+".")))}if(!w||typeof w.then!="function")return o(y,x,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(w)+".")));w.then(function(k){if(!b(k))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(k)+"."));if(k.length!==x.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."+(`

Keys:
`+String(x.keys))+(`

Values:
`+String(k)));l(x);for(var N=0;N<x.callbacks.length;N++){var A=k[N];A instanceof Error?x.callbacks[N].reject(A):x.callbacks[N].resolve(A)}}).catch(function(k){o(y,x,k)})}function o(y,x,w){l(x);for(var k=0;k<x.keys.length;k++)y.clear(x.keys[k]),x.callbacks[k].reject(w)}function l(y){if(y.cacheHits)for(var x=0;x<y.cacheHits.length;x++)y.cacheHits[x]()}function c(y){var x=!y||y.batch!==!1;if(!x)return 1;var w=y&&y.maxBatchSize;if(w===void 0)return 1/0;if(typeof w!="number"||w<1)throw new TypeError("maxBatchSize must be a positive number: "+w);return w}function p(y){var x=y&&y.batchScheduleFn;if(x===void 0)return t;if(typeof x!="function")throw new TypeError("batchScheduleFn must be a function: "+x);return x}function d(y){var x=y&&y.cacheKeyFn;if(x===void 0)return function(w){return w};if(typeof x!="function")throw new TypeError("cacheKeyFn must be a function: "+x);return x}function m(y){var x=!y||y.cache!==!1;if(!x)return null;var w=y&&y.cacheMap;if(w===void 0)return new Map;if(w!==null){var k=["get","set","delete","clear"],N=k.filter(function(A){return w&&typeof w[A]!="function"});if(N.length!==0)throw new TypeError("Custom cacheMap missing methods: "+N.join(", "))}return w}function E(y){return y&&y.name?y.name:null}function b(y){return typeof y=="object"&&y!==null&&typeof y.length=="number"&&(y.length===0||y.length>0&&Object.prototype.hasOwnProperty.call(y,y.length-1))}return UC=e,UC}var ste=ate();const t4=Mu(ste);function lte(e){return`_v${e}_`}function n4(e){const t=/^_v(\d+)_(.*)$/.exec(e);return t&&t.length===3&&!isNaN(Number(t[1]))&&t[2]?{index:Number(t[1]),originalKey:t[2]}:null}function ute(e){const t=n4(e);if(!t)throw new Error(`Key ${e} is not correctly prefixed`);return t}function cte(e){let t=0,n=null;for(;!n&&t<e.length;t++){const r=e[t];typeof r=="string"&&(n=n4(r))}if(!n)throw new Error(`Path ${e.join(".")} does not contain correctly prefixed key`);return{...n,keyOffset:t}}function fte(e,t){var E,b,y;const n=Object.create(null),r=[],i=[],o=[];let l=Object.create(null);for(let x=0;x<e.length;x++){const w=e[x];if(w){const k=dte(lte(x),w);for(const N of k.document.definitions)a4(N)&&(i.push(...N.selectionSet.selections),N.variableDefinitions&&r.push(...N.variableDefinitions)),Kb(N)&&o.push(N);Object.assign(n,k.variables),l=t(l,w)}}const c=e[0];if(!c)throw new Error("At least one request is required");const p=c.operationType??Yf(c).operation,d={kind:X.OPERATION_DEFINITION,operation:p,variableDefinitions:r,selectionSet:{kind:X.SELECTION_SET,selections:i}},m=c.operationName??((y=(b=(E=c.info)==null?void 0:E.operation)==null?void 0:b.name)==null?void 0:y.value);return m&&(d.name={kind:X.NAME,value:m}),{document:{kind:X.DOCUMENT,definitions:[d,...o]},variables:n,extensions:l,context:c.context,info:c.info,operationType:p,rootValue:c.rootValue}}function dte(e,t){var d;function n(m){return o4(m,e)}let r=pte(e,t.document),i=!1;for(const m of r.definitions)if(Kb(m)||a4(m)&&((d=m.variableDefinitions)!=null&&d.length)){i=!0;break}const o={};let l=!1;i&&(r=wr(r,{[X.VARIABLE]:n,[X.FRAGMENT_DEFINITION](m){return l=!0,n(m)},[X.FRAGMENT_SPREAD]:m=>(m=o4(m,e),o[m.name.value]=!0,m)}));let c;const p=t.variables;if(p){c=Object.create(null);for(const m in p)c[e+m]=p[m]}return l&&(r={...r,definitions:r.definitions.filter(m=>!Kb(m)||o[m.name.value])}),{document:r,variables:c}}function pte(e,t){const n={[X.OPERATION_DEFINITION]:r=>{const{selections:i}=r.selectionSet;return{...r,selectionSet:{...r.selectionSet,selections:r4(e,i,t)}}}};return wr(t,n,{[X.DOCUMENT]:["definitions"]})}function r4(e,t,n){return t.map(r=>{switch(r.kind){case X.INLINE_FRAGMENT:return i4(e,r,n);case X.FRAGMENT_SPREAD:{const i=hte(r,n);return i4(e,i,n)}case X.FIELD:default:return mte(r,e)}})}function i4(e,t,n){const{selections:r}=t.selectionSet;return{...t,selectionSet:{...t.selectionSet,selections:r4(e,r,n)}}}function hte(e,t){const n=t.definitions.find(o=>Kb(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:X.INLINE_FRAGMENT,typeCondition:r,selectionSet:i,directives:e.directives}}function o4(e,t){return{...e,name:{...e.name,value:t+e.name.value}}}function mte(e,t){const n=e.alias?e.alias:e.name;return{...e,alias:{...n,value:t+n.value}}}function a4(e){return e.kind===X.OPERATION_DEFINITION}function Kb(e){return e.kind===X.FRAGMENT_DEFINITION}function gte({data:e,errors:t},n){const r=new Array(n);if(e)for(const i in e){const{index:o,originalKey:l}=ute(i),c=r[o];c==null?r[o]={data:{[l]:e[i]}}:c.data==null?c.data={[l]:e[i]}:c.data[l]=e[i]}if(t)for(const i of t)if(i.path){const{index:o,originalKey:l,keyOffset:c}=cte(i.path),p=SC(i,[l,...i.path.slice(c)]),d=r[o];if(d==null){r[o]={errors:[p]};continue}else if(d.errors==null){d.errors=[p];continue}else d.errors.push(p)}else for(let o=0;o<n;o++){const l=r[o];if(l==null){r[o]={errors:[i]};continue}else if(l.errors==null){l.errors=[i];continue}else l.errors.push(i)}return r}function vte(e,t,n=bte){const r=yte(e,n),i=new t4(r,t),o=new t4(r,t);return function(c){var d;const p=c.operationType??((d=Yf(c))==null?void 0:d.operation);switch(p){case"query":return i.load(c);case"mutation":return o.load(c);case"subscription":return e(c);default:throw new Error(`Invalid operation type "${p}"`)}}}function yte(e,t){return function(r){if(r.length===1&&r[0]){const o=r[0];return wo().then(()=>e(o)).catch(l=>l).then(l=>[l])}const i=fte(r,t);return wo().then(()=>e(i)).then(o=>gte(o,r.length)).catch(o=>r.map(()=>o))}}function bte(e,t){const n=t.extensions;return n!=null&&Object.assign(e,n),e}const Ete=bJ(function(t,n,r,i){return vte(n,r,i)}),qC=Lb(function(t,n){const r=n.transforms;return r==null?t:r.reduce((i,o)=>{var l;return((l=o.transformSchema)==null?void 0:l.call(o,i,n))||i},t)});class Ste{constructor(t){nn(this,"name");nn(this,"schema");nn(this,"executor");nn(this,"batch");nn(this,"batchingOptions");nn(this,"createProxyingResolver");nn(this,"transforms");nn(this,"_transformedSchema");nn(this,"merge");this.name=t.name,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=qC(this.schema,this)),this._transformedSchema}set transformedSchema(t){this._transformedSchema=t}}const Tte=["__proto__","constructor","prototype"];function xte(e){return Tte.includes(e)}const wte=new WeakMap,s4=Symbol("PLAN_LEFT_OVER");function l4(e){if(e!=null&&typeof e=="object")return e[s4]}const Ko=Symbol.for("subschemaErrors"),Op=Symbol.for("initialSubschema"),bs=Symbol.for("subschemaMap");function Xb(e){return e[Ko]!==void 0}function Cte(e,t,n,r){return Object.defineProperties(e,{[Op]:{value:n,writable:!0},[bs]:{value:r,writable:!0},[Ko]:{value:t,writable:!0}}),e}function Zb(e,t){var n;return((n=e[bs])==null?void 0:n[t])??e[Op]}function u4(e){return e[Ko]}const _te=[],Jb=Object.create(null),c4=vs(function(e){return[e]});function Nte(e,t,n,r,i){var c;const o=e.delegationPlanBuilder(i.schema,n,i.variableValues!=null&&Object.keys(i.variableValues).length>0?i.variableValues:Jb,i.fragments!=null&&Object.keys(i.fragments).length>0?i.fragments:Jb,(c=i.fieldNodes)!=null&&c.length?i.fieldNodes.length===1&&i.fieldNodes[0]?c4(i.fieldNodes[0]):i.fieldNodes:_te,r,i),l=wte.get(o);return l&&(t[s4]=l),Xt(()=>i5(o,(p,d)=>Ate(e,d,t,r,i),void 0),()=>t)}function Dp(e,t,n,r,i,o,l,c){if(e instanceof Error||e==null){const m=t.transformedSchema||o.schema,E=m.getType(r.__typename),{fields:b}=_C(m,o.fragments,o.variableValues,E,n),y={};for(const[x,w]of b){const k=[...l,x];e instanceof Me?e.message.includes("Cannot return null for non-nullable field")?y[x]=null:y[x]=SC(e,k):e instanceof Error?y[x]=yr(e,w,k):y[x]=null}e=y}else e[Ko]&&c.push(...e[Ko]);const p=e[Op],d=e[bs];for(const m in e){if(xte(m))continue;const E=r[m],b=e[m];m==="__typename"&&E!==b&&lr(t.transformedSchema.getType(b))||((b!=null||E==null)&&(E!=null&&typeof E=="object"&&!(E instanceof Error)&&Object.keys(E).length>0?Array.isArray(E)&&Array.isArray(b)&&E.length===b.length?r[m]=E.map((y,x)=>b instanceof Error?y:bg([y,b[x]],void 0,!0,!0)):b instanceof Error||(r[m]=bg([E,b],void 0,!0,!0)):r[m]=b),i[m]=(d==null?void 0:d[m])??p??t)}}function Ate(e,t,n,r,i){const o=n[Ko],l=Ti(i.path),c=n[bs],p=[];for(const[d,m]of t){const b=(d.transformedSchema||i.schema).getType(n.__typename),y=e.resolvers.get(d);if(y)try{const x=y(n,r,i,d,m,void 0,b);fr(x)?p.push(x.then(w=>Dp(w,d,m,n,c,i,l,o),w=>Dp(w,d,m,n,c,i,l,o))):Dp(x,d,m,n,c,i,l,o)}catch(x){Dp(x,d,m,n,c,i,l,o)}}if(p.length)return p.length===1?p[0]:Promise.all(p)}function xg(e,t,n,r,i,o=Rte(i),l){const c=Fu(o);if(e instanceof Error)return e;if(e==null)return kte(t);if(si(c))try{return c.parseValue(e)}catch{return null}else{if(Kr(c))return Xt(()=>Ote(c,e,t,n,r,i,l),p=>i&&lr(c)&&p.__typename!=null&&!i.schema.getType(p.__typename)?null:p);if(gn(c))return Array.isArray(e)?Dte(c,e,t,n,r,i,l):xg(e,t,n,r,i,c.ofType,l)}}function Ote(e,t,n,r,i,o,l){var m,E,b,y;if(Xb(t)||Cte(t,n,r,Object.create(null)),l||o==null)return t;const c=(m=o.schema.extensions)==null?void 0:m.stitchingInfo;if(c==null)return t;let p;const d=[t.__typename,e.name];for(const x of d)if(x!=null&&((y=(b=(E=c.mergedTypes[x])==null?void 0:E.targetSubschemas)==null?void 0:b.get(r))!=null&&y.length)){p=c.mergedTypes[x];break}return p?Nte(p,t,r,i,o):t}function Dte(e,t,n,r,i,o,l){return t.map(c=>xg(c,n,r,i,o,e.ofType,l))}const f4=new WeakMap;function kte(e){if(e.length){const t=[];for(const n of e)f4.has(n)||(t.push(n),f4.set(n,!0));if(t.length){const n=t[0];return t.length===1&&n?yr(n,void 0,n.path):new AggregateError(t.map(r=>yr(r,void 0,n==null?void 0:n.path)),t.map(r=>r.message).join(`, 
`))}}return null}function Rte(e){if(e==null)throw new Error("Return type cannot be inferred without a source schema.");return e.returnType}function Mte(e={data:null,errors:[]},t){const{context:n,info:r,fieldName:i=Lte(r),subschema:o,returnType:l=Ite(r),skipTypeMerging:c,onLocatedError:p}=t,{data:d,unpathedErrors:m}=d4(e.data==null?void 0:e.data[i],e.errors==null?[]:e.errors,r!=null&&r.path?Ei(r.path):void 0,p);return xg(d,m,o,n,r,l,c)}function d4(e,t,n,r,i=1){var c;if(e==null){if(!t.length)return{data:null,unpathedErrors:[]};if(t.length===1&&t[0]){const d=r?r(t[0]):t[0],m=n===void 0?d.path:d.path?n.concat(d.path.slice(1)):n;return{data:SC(t[0],m),unpathedErrors:[]}}return{data:new AggregateError(t.map(d=>yr(d,void 0,n)),t.map(d=>d.message).join(`, 
`)),unpathedErrors:[]}}if(!t.length)return{data:e,unpathedErrors:[]};const o=[],l=new Map;for(const p of t){const d=(c=p.path)==null?void 0:c[i];if(d!=null){let m=l.get(d);m===void 0?(m=[p],l.set(d,m)):m.push(p)}else o.push(p)}for(const[p,d]of l)if(e[p]!==void 0){const{data:m,unpathedErrors:E}=d4(e[p],d,n,r,i+1);e[p]=m,o.push(...E)}else o.push(...d);return{data:e,unpathedErrors:o}}function Lte(e){if(e==null)throw new Error("Data cannot be extracted from result without an explicit key or source schema.");return CC(e)}function Ite(e){if(e==null)throw new Error("Return type cannot be inferred without a source schema.");return e.returnType}function p4(e){const t=[],n=[],r=new Set;for(let i=0;i<e.definitions.length;i++){const o=e.definitions[i];(o==null?void 0:o.kind)===X.FRAGMENT_DEFINITION?(n.push(o),r.add(o.name.value)):(o==null?void 0:o.kind)===X.OPERATION_DEFINITION&&t.push(o)}return{operations:t,fragments:n,fragmentNames:r}}const BC=vs(function(t){return new Uu(t)}),Fte=Lb(function(t,n){return Zv.major<16?new Uu(t,void 0,n):new Uu(t,n)});function h4(e,t,n,r,i,o,l){if(e[r]={kind:X.ARGUMENT,name:{kind:X.NAME,value:r},value:{kind:X.VARIABLE,name:{kind:X.NAME,value:i}}},t[i]={kind:X.VARIABLE_DEFINITION,variable:{kind:X.VARIABLE,name:{kind:X.NAME,value:i}},type:TC(o)},l!==void 0){n[i]=l;return}i in n&&delete n[i]}function m4(e){let t=0;return n=>{let r;do r=t===0?n:`_v${t.toString()}_${n}`,t++;while(r in e);return r}}function Pte(e,t,n,r,i){var x,w,k;let o=[],l=[];const c=[];let p=[];const d=[],m=Object.create(null);for(const N of t){const A=N.typeCondition.name.value,O=e.getType(A);O!=null&&(d.push(N),m[N.name.value]=O)}let E=Object.create(null);for(const N of n){const A=Ib(e,N.operation),{selectionSet:O,usedFragments:_,usedVariables:M}=v4(e,A,m,N.selectionSet,r);l=wg(l,_);const{usedVariables:j,newFragments:P,fragmentSet:F}=Bte(e,E,d,m,l,r),V=wg(M,j);o=wg(o,V),p=P,E=F;const $=(N.variableDefinitions??[]).filter(K=>V.indexOf(K.variable.name.value)!==-1);N.operation==="subscription"&&(O.selections=O.selections.filter(K=>K.kind!==X.FIELD||K.name.value!=="__typename")),!(O.selections.length===1&&O.selections[0]&&O.selections[0].kind===X.FIELD&&O.selections[0].name.value==="__typename")&&c.push({kind:X.OPERATION_DEFINITION,operation:N.operation,name:N.name,directives:N.directives,variableDefinitions:$,selectionSet:O})}if(!c.length)throw Yt("Failed to create a gateway request. The request must contain at least one operation.",{extensions:{[U5]:!0}});let b={kind:X.DOCUMENT,definitions:[...c,...p]};const y=(k=(w=(x=i.info)==null?void 0:x.schema)==null?void 0:w.extensions)==null?void 0:k.stitchingInfo;if(y!=null){const N=BC(e);b=wr(b,qu(N,{[X.FIELD](A){var _,M,j;const O=N.getParentType();if(O){const P=O.name,F=(_=y==null?void 0:y.mergedTypes)==null?void 0:_[P];if(F){const V=(M=F==null?void 0:F.providedSelectionsByField)==null?void 0:M.get(i.subschema);if(V){const $=V[A.name.value];if($)return{...A,selectionSet:{kind:X.SELECTION_SET,selections:[...$.selections,...((j=A.selectionSet)==null?void 0:j.selections)??[]]}}}}}return A}}))}return{usedVariables:o,newDocument:b}}function jte(e,t,n){let{document:r,variables:i}=e,{operations:o,fragments:l}=p4(r);const{targetSchema:c,args:p}=t;if(p){const b=Ute(c,o,p);o=b.newOperations,i=Object.assign({},i??{},b.newVariables)}const{usedVariables:d,newDocument:m}=Pte(c,l,o,n,t),E={};if(i!=null)for(const b of d){const y=i[b];y!==void 0&&(E[b]=y)}return{...e,document:m,variables:E}}function Vte(e){return e.kind===X.FIELD&&!e.alias&&e.name.value==="__typename"}function g4(e){let t=!1;const n=e.filter(r=>Vte(r)?(t=!0,!1):!0);return{hasTypeNameField:t,selections:n}}function Ute(e,t,n){const r=Object.create(null);return{newOperations:t.map(o=>{const l=(o.variableDefinitions??[]).reduce((m,E)=>({...m,[E.variable.name.value]:E}),{}),c=Ib(e,o.operation),p=[];for(const m of o.selectionSet.selections)if(m.kind===X.FIELD){const b=(m.arguments??[]).reduce((x,w)=>({...x,[w.name.value]:w}),{}),y=c.getFields()[m.name.value];y!=null&&qte(y,b,l,r,n),p.push({...m,arguments:Object.values(b)})}else p.push(m);const d={kind:X.SELECTION_SET,selections:p};return{...o,variableDefinitions:Object.values(l),selectionSet:d}}),newVariables:r}}function qte(e,t,n,r,i){const o=m4(n);for(const l of e.args){const c=l.name,p=l.type;c in i&&h4(t,n,r,c,o(c),p,Pb(p,i[c]))}}function Bte(e,t,n,r,i,o){let l=i.slice(),c=[];const p=[];for(;l.length!==0;){const d=l.pop(),m=n.find(E=>E.name.value===d);if(m!=null){const E=d,b=m.typeCondition.name.value,y=e.getType(b);if(y==null)throw new Error(`Fragment reference type "${b}", but the type is not contained within the target schema.`);const{selectionSet:x,usedFragments:w,usedVariables:k}=v4(e,y,r,m.selectionSet,o);l=wg(l,w),c=wg(c,k),E&&!(E in t)&&(t[E]=!0,p.push({kind:X.FRAGMENT_DEFINITION,name:{kind:X.NAME,value:E},typeCondition:m.typeCondition,selectionSet:x}))}}return{usedVariables:c,newFragments:p,fragmentSet:t}}const $te={SelectionSet:["selections"],Field:["selectionSet"],InlineFragment:["selectionSet"],FragmentDefinition:["selectionSet"]},zte={SelectionSet:["selections"],Field:["arguments","directives","selectionSet"],Argument:["value"],InlineFragment:["directives","selectionSet"],FragmentSpread:["directives"],FragmentDefinition:["selectionSet"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["arguments"],ListValue:["values"]};function v4(e,t,n,r,i){const o=[],l=[],c=Fte(e,t),p=new WeakMap,d=new WeakMap,m=wr(r,qu(c,{[X.FIELD]:{enter:E=>{var y,x,w,k;const b=c.getParentType();if(At(b)||Mt(b)){const N=c.getFieldDef();if(!N)return null;const A=N.args!=null?N.args:[],O=Object.create(null);for(const _ of A)O[_.name]=_;if(E.arguments!=null){const _=[];for(const M of E.arguments)M.name.value in O&&_.push(M);if(_.length!==E.arguments.length)return{...E,arguments:_}}}if(sr(b)&&c.getType()==null){const N=[],A=E.name.value;for(const O of b.getTypes()){const M=O.getFields()[A];if(M!=null){const j=vn(M.type);if((x=(y=E.selectionSet)==null?void 0:y.selections)!=null&&x.length&&si(j)||!((k=(w=E.selectionSet)==null?void 0:w.selections)!=null&&k.length)&&Kr(j))continue;N.push(O.name)}}if(N.length>0)return N.map(O=>({kind:X.INLINE_FRAGMENT,typeCondition:{kind:X.NAMED_TYPE,name:{kind:X.NAME,value:O}},selectionSet:{kind:X.SELECTION_SET,selections:[E]}}))}},leave:E=>{const b=c.getType();if(b==null)return null;const y=vn(b);if(e.getType(y.name)==null)return null;if(At(y)||Mt(y)){const x=E.selectionSet!=null?E.selectionSet.selections:null;if(x==null||x.length===0)return null}}},[X.FRAGMENT_SPREAD]:{enter:E=>{if(!(E.name.value in n))return null;const b=c.getParentType(),y=n[E.name.value];if(!Ub(e,b,y))return null;o.push(E.name.value)}},[X.SELECTION_SET]:{enter:(E,b,y,x)=>{const w=c.getParentType(),{hasTypeNameField:k,selections:N}=g4(E.selections);return(k||w!=null&&lr(w))&&N.unshift({kind:X.FIELD,name:{kind:X.NAME,value:"__typename"}}),{...E,selections:N}}},[X.INLINE_FRAGMENT]:{enter:E=>{if(E.typeCondition!=null){const b=c.getParentType(),y=e.getType(E.typeCondition.name.value);if(sr(b)&&b.getTypes().some(x=>x.name===(y==null?void 0:y.name)))return E;if(!Ub(e,b,y))return null}},leave:(E,b,y)=>{var w,k,N,A,O;if(!((k=(w=E.selectionSet)==null?void 0:w.selections)!=null&&k.length))return null;if(Array.isArray(y)){const _=(N=E.typeCondition)==null?void 0:N.name.value;if(_){const M=e.getType(_);if(M&&"getFields"in M){const j=M.getFields();let P=p.get(y);P||(P=new Set,p.set(y,P));let F=d.get(y);F||(F=new Set,d.set(y,F)),E={...E,selectionSet:{...E.selectionSet,selections:E.selectionSet.selections.map(V=>{if(V.kind===X.FIELD){const $=V.name.value;if(!V.alias){const K=j[$];if(K){let ee;if(rm(K.type)?(F.add($),ee=!0):(P.add($),ee=!1),F.has($)&&P.has($))return i(),{...V,alias:{kind:X.NAME,value:ee?`_nullable_${$}`:`_nonNullable_${$}`}}}}}return V})}}}}}const{selections:x}=g4(E.selectionSet.selections);return x.length===0?null:{...E,selectionSet:{...E.selectionSet,selections:x},directives:(O=(A=E.directives)==null?void 0:A.filter)==null?void 0:O.call(A,_=>_.name.value!=="defer")}}}}),$te);return wr(m,{[X.VARIABLE]:E=>{l.push(E.name.value)}},zte),{selectionSet:m,usedFragments:o,usedVariables:l}}function wg(...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}function Hte(e,t,n,r){const i=Xte(n,t,e);if(r==null)return i;const o=new WeakSet,{possibleTypesMap:l,reversePossibleTypesMap:c,interfaceExtensionsMap:p,fieldNodesByType:d,fieldNodesByField:m,dynamicSelectionSetsByField:E}=Wte(r,t),{operations:b,fragments:y,fragmentNames:x}=p4(i),{expandedFragments:w,fragmentReplacements:k}=Kte(y,x,l),N=BC(t),A={kind:X.DOCUMENT,definitions:[...b,...y,...w]},O={Document:["definitions"],OperationDefinition:["selectionSet"],SelectionSet:["selections"],Field:["selectionSet"],InlineFragment:["selectionSet"],FragmentDefinition:["selectionSet"]};return wr(A,qu(N,{[X.SELECTION_SET]:_=>Yte(_,k,t,N,l,c,p,d,m,E,r,o)}),O)}const Gte=Lb(function(t,n){const r=new Map;return function(o){let l=r.get(o);if(!l){l=new Set;const c=n.getType(o),p=t.getType(o);if(lr(c)&&lr(p)){const d=n.getPossibleTypes(c),m=t.getPossibleTypes(p);for(const E of d){const b=t.getType(E.name);b&&(b&&m.some(y=>y.name===E.name)||l.add(E.name))}}r.set(o,l)}return l}});function Yte(e,t,n,r,i,o,l,c,p,d,m,E){var x,w,k;const b=new Set,y=r.getParentType();if(y!=null){const N=vn(y),A=N.name,O=c[A];if(O)for(const j of O)b.add(j);const _=l[N.name],M=[];for(const j of e.selections)if(j.kind===X.INLINE_FRAGMENT)if(j.typeCondition!=null){if(!E.has(j)){E.add(j);const F=j.typeCondition.name.value,$=Gte(n,m)(F);for(const ee of $)b.add({...j,typeCondition:{kind:X.NAMED_TYPE,name:{kind:X.NAME,value:ee}}});const K=n.getType(F);if(At(K)||Mt(K)){const ee=K.getFields();for(const J of j.selectionSet.selections)if(J.kind===X.FIELD){const W=J.name.value;ee[W]||b.add(J)}}else if(!K)for(const ee of j.selectionSet.selections)b.add(ee)}const P=i[j.typeCondition.name.value];if(P==null){const F=(x=p[A])==null?void 0:x.__typename;if(F)for(const V of F)b.add(V);b.add(j);continue}for(const F of P){const V=n.getType(F);V!=null&&Ub(n,N,V)&&b.add(b4(F,j.selectionSet))}P.length===0&&b.add(j)}else b.add(j);else if(j.kind===X.FRAGMENT_SPREAD){const P=j.name.value;if(!t[P]){b.add(j);continue}for(const F of t[P]){const V=F.typeName;n.getType(V)!=null&&Ub(n,N,y)&&b.add({kind:X.FRAGMENT_SPREAD,name:{kind:X.NAME,value:F.fragmentName}})}}else{const P=j.name.value;if(lr(N)){const $=(w=p[A])==null?void 0:w.__typename;if($)for(const K of $)b.add(K)}const F=p[A];F&&y4(j,new Set,F,b);const V=(k=d[A])==null?void 0:k[P];if(V!=null)for(const $ of V){const K=$(j);if(K!=null)for(const ee of K.selections)b.add(ee)}_!=null&&_[P]?M.push(j):b.add(j)}if(o[N.name]&&b.add({kind:X.FIELD,name:{kind:X.NAME,value:"__typename"}}),M.length){const j=i[N.name];if(j!=null)for(const P of j)b.add(b4(P,{kind:X.SELECTION_SET,selections:M}))}return{...e,selections:Array.from(b)}}return e}function y4(e,t,n,r){if(t.has(e.name.value))return;t.add(e.name.value);const i=n[e.name.value];if(i!=null)for(const o of i)r.add(o),y4(o,t,n,r)}function b4(e,t){return{kind:X.INLINE_FRAGMENT,typeCondition:{kind:X.NAMED_TYPE,name:{kind:X.NAME,value:e}},selectionSet:t}}const Wte=Lb((e,t)=>{var c;const n=e.getTypeMap(),r=t.getTypeMap(),i=Object.create(null),o=Object.create(null);for(const p in n){const d=n[p];if(lr(d)){const m=r[p];if(Mt(d)&&Mt(m)){const E=m.getFields(),b=d.getFields(),y=Object.create(null);let x=!0;for(const w in b)E[w]||(y[w]=!0,x=!1);x||(o[p]=y)}if(o[p]||!lr(m)){const E=e.getPossibleTypes(d);i[p]=[];for(const b of E)r[b.name]&&i[p].push(b.name)}}}const l=(c=e.extensions)==null?void 0:c.stitchingInfo;return{possibleTypesMap:i,reversePossibleTypesMap:Qte(i),interfaceExtensionsMap:o,fieldNodesByType:(l==null?void 0:l.fieldNodesByType)??{},fieldNodesByField:(l==null?void 0:l.fieldNodesByField)??{},dynamicSelectionSetsByField:(l==null?void 0:l.dynamicSelectionSetsByField)??{}}});function Qte(e){const t=Object.create(null);for(const n in e){const r=e[n];if(r)for(const i of r)t[i]||(t[i]=[]),t[i].push(n)}return t}function Kte(e,t,n){let r=0;function i(c){let p;do p=`_${c}_Fragment${r.toString()}`,r++;while(t.has(p));return p}const o=[],l=Object.create(null);for(const c of e){const p=n[c.typeCondition.name.value];if(p!=null){const d=c.name.value;l[d]=[];for(const m of p){const E=i(m);t.add(E),o.push({kind:X.FRAGMENT_DEFINITION,name:{kind:X.NAME,value:E},typeCondition:{kind:X.NAMED_TYPE,name:{kind:X.NAME,value:m}},selectionSet:c.selectionSet}),l[d].push({fragmentName:E,typeName:m})}}}return{expandedFragments:o,fragmentReplacements:l}}function Xte(e,t,n){const r=vn(e);if(si(r))return n;let i=lr(r)?t.getPossibleTypes(r):[r];i.length===0&&(i=[r]);const o=EJ(t),l=BC(t),c={Document:["definitions"],OperationDefinition:["selectionSet"],SelectionSet:["selections"],InlineFragment:["selectionSet"],FragmentDefinition:["selectionSet"]};return wr(n,qu(l,{[X.FRAGMENT_DEFINITION]:p=>{const d=p.typeCondition.name.value;if(!o.has(d))return!1},[X.FIELD]:p=>{const d=l.getType();if(d){const m=vn(d);if(lr(m)&&m.name!==r.name&&i.length>0)return{...p,selectionSet:{kind:X.SELECTION_SET,selections:i.map(E=>({kind:X.INLINE_FRAGMENT,typeCondition:{kind:X.NAMED_TYPE,name:{kind:X.NAME,value:E.name}},selectionSet:p.selectionSet}))}}}}}),c)}class Zte{constructor(t){nn(this,"transformations",[]);nn(this,"delegationContext");nn(this,"hasOverlappingAliases",!1);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:Hte(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 jte(n,this.delegationContext,()=>{this.hasOverlappingAliases=!0})}transformResult(t){let n=t;for(let r=this.transformations.length-1;r>=0;r--){const i=this.transformations[r];i!=null&&i.transform.transformResult&&(n=i.transform.transformResult(n,this.delegationContext,i.context))}return this.hasOverlappingAliases&&(n=e1(n)),Mte(n,this.delegationContext)}}function e1(e){if(e!=null){if(Array.isArray(e))return e.map(e1);if(typeof e=="object"){const t={};for(const n in e)if(n.startsWith("_nullable_")||n.startsWith("_nonNullable_")){const r=n.replace(/^_nullable_/,"").replace(/^_nonNullable_/,"");t[r]=e1(e[n])}else t[n]=e1(e[n]);return t}}return e}function Jte(e,t){return e===t.getMutationType()?"mutation":e===t.getSubscriptionType()?"subscription":"query"}function ene({sourceSchema:e,sourceParentType:t,sourceFieldName:n,fragments:r,variableDefinitions:i,variableValues:o,targetRootValue:l,targetOperationName:c,targetOperation:p,targetFieldName:d,selectionSet:m,fieldNodes:E,context:b,info:y}){var V;let x;const w=Object.create(null);if(m!=null)x=m;else{const $=[];for(const ee of E||[])if(ee.selectionSet)for(const J of ee.selectionSet.selections)$.push(J);x=$.length?{kind:X.SELECTION_SET,selections:$}:void 0;const K=(V=E==null?void 0:E[0])==null?void 0:V.arguments;if(K)for(const ee of K)w[ee.name.value]=ee}const k=Object.create(null),N=Object.create(null);if(e!=null&&i!=null)for(const $ of i){const K=$.variable.name.value;N[K]=$;const ee=bi(e,$.type),J=Pb(ee,o==null?void 0:o[K]);J!==void 0&&(k[K]=J)}t!=null&&n!=null&&tne(t,n,w,N,k);const A=E==null?void 0:E[0],O=d??(A==null?void 0:A.name.value);if(O===void 0)throw new Error('Either "targetFieldName" or a non empty "fieldNodes" array must be provided.');const _={kind:X.FIELD,arguments:Object.values(w),name:{kind:X.NAME,value:O},selectionSet:x,directives:A==null?void 0:A.directives},M=c?{kind:X.NAME,value:c}:void 0,P=[{kind:X.OPERATION_DEFINITION,name:M,operation:p,variableDefinitions:Object.values(N),selectionSet:{kind:X.SELECTION_SET,selections:[_]}}];if(r!=null)for(const $ in r){const K=r[$];K&&P.push(K)}return{document:{kind:X.DOCUMENT,definitions:P},variables:k,rootValue:l,operationName:c,context:b,info:y,operationType:p}}function tne(e,t,n,r,i){const o=m4(r),l=e.getFields()[t];if(!l)throw new Error(`Field "${t}" was not found in type "${e}".`);for(const c of l.args){const p=c.name,d=c.type;if(n[p]===void 0){const m=c.defaultValue;m!==void 0&&h4(n,r,i,p,o(p),d,Pb(d,m))}}}function nne(e,t,n,r){var o,l,c;if(!e)return null;const i=CC(r);if(!Xb(e))return My(e,t,n,r);if(!Object.prototype.hasOwnProperty.call(e,i)){const p=l4(e);if(p){let d=p.missingFieldsParentMap.get(e);d||(d=[],p.missingFieldsParentMap.set(e,d)),d.push(...r.fieldNodes.filter(w=>p.unproxiableFieldNodes.some(k=>k===w)));let m=p.missingFieldsParentDeferredMap.get(e);m||(m=new Map,p.missingFieldsParentDeferredMap.set(e,m));const E=XF();m.set(i,E);const b=(o=r.schema.extensions)==null?void 0:o.stitchingInfo,y=(e==null?void 0:e.__typename)||r.parentType.name,x=(c=(l=b==null?void 0:b.fieldNodesByField)==null?void 0:l[y])==null?void 0:c[r.fieldName];return x!=null&&x.every(w=>{var N;const k=((N=w.alias)==null?void 0:N.value)??w.name.value;return!!Object.prototype.hasOwnProperty.call(e,k)})&&$C(e,i,n,r),E.promise}return}return $C(e,i,n,r)}function $C(e,t,n,r){const i=Zb(e,t),o=e[t],l=u4(e),c=xg(o,l,i,n,r),p=l4(e);return p?Xt(()=>c,d=>(e[t]=d,rne(e,n,r,p),d)):c}function rne(e,t,n,r){var o,l,c,p;const i=(o=n.schema.extensions)==null?void 0:o.stitchingInfo;if(i)for(const d of r.nonProxiableSubschemas){const m=n.parentType.name,E=new Set,b=(l=i.mergedTypes[m])==null?void 0:l.selectionSets.get(d);b&&E.add(b);for(const y of r.unproxiableFieldNodes){const x=y.name.value,w=(p=(c=i.mergedTypes[m])==null?void 0:c.fieldSelectionSets.get(d))==null?void 0:p[x];w&&E.add(w)}if(E.size){const y={kind:X.SELECTION_SET,selections:Array.from(E).flatMap(x=>x.selections)};Xt(()=>t1(e),x=>{E4(x,e,d,y,r,i,m,t,n)})}}}function E4(e,t,n,r,i,o,l,c,p){var d,m,E,b;if(kp(e,r)){const y=i.missingFieldsParentMap.get(t);if(y){const x=(d=o.mergedTypes[l])==null?void 0:d.resolvers.get(n);if(x){Object.assign(t,e);const w={kind:X.SELECTION_SET,selections:y};Xt(()=>x(t,c,p,n,w,p.parentType,p.parentType),k=>{ine(k,n,w,t,i,c,p)},k=>one(i,t,k))}}}else for(const y of r.selections)if(y.kind===X.FIELD&&((E=(m=y.selectionSet)==null?void 0:m.selections)!=null&&E.length)){const x=((b=y.alias)==null?void 0:b.value)??y.name.value,w=e[x],k=y.selectionSet;if(w!=null&&!kp(w,k)){async function N(A,O){var j,P;const _=A.__typename,M=Zb(e,x);if(M&&_){const F=(j=o.mergedTypes[_])==null?void 0:j.delegationPlanBuilder(p.schema,M,p.variableValues!=null&&Object.keys(p.variableValues).length>0?p.variableValues:Jb,p.fragments!=null&&Object.keys(p.fragments).length>0?p.fragments:Jb,c4(O),c,p);if(F!=null&&F.length)for(const V of F)for(const[$,K]of V){const ee=(P=o.mergedTypes[_])==null?void 0:P.resolvers.get($);if(ee){const J=await ee(A,c,p,$,K,p.parentType,p.parentType);J&&Dp(J,$,K,A,A[bs]||(A[bs]=new Map),p,Ei(p.path),A[Ko]||(A[Ko]=[]))}}kp(w,k)&&E4(e,t,n,r,i,o,l,c,p)}}Array.isArray(w)?w.forEach(A=>N(A,y)):N(w,y)}}}function ine(e,t,n,r,i,o,l){Dp(e,t,n,r,r[bs],l,Ei(l.path),r[Ko]);const c=i.missingFieldsParentDeferredMap.get(r);if(c){for(const[p,d]of c)Object.prototype.hasOwnProperty.call(e,p)&&d.resolve($C(r,p,o,l));i.missingFieldsParentDeferredMap.delete(r)}}function one(e,t,n){const r=e.missingFieldsParentDeferredMap.get(t);if(r){for(const[i,o]of r)o.reject(n);e.missingFieldsParentDeferredMap.delete(t)}}function kp(e,t){var r;if(Array.isArray(e)){const i=new Set;for(const o of e){const l=kp(o,t);if(l===void 0)return;for(const c of l)i.add(c)}return i}if(e===null)return new Set;if(e===void 0)return;const n=new Set;for(const i of t.selections)if(i.kind===X.FIELD){const o=((r=i.alias)==null?void 0:r.value)??i.name.value;if(e[o]===void 0)return;if(Xb(e)){const l=Zb(e,o);l&&n.add(l)}if(e[o]===null)continue;if(i.selectionSet!=null){const l=kp(e[o],i.selectionSet);if(l===void 0)return;for(const c of l)n.add(c)}}else if(i.kind===X.INLINE_FRAGMENT){const o=kp(e,i.selectionSet);if(o===void 0)return;for(const l of o)n.add(l)}return n}function t1(e){if(fr(e))return e.then(t1);if(Array.isArray(e))return Promise.all(e.map(t1));if(e!=null&&typeof e=="object"){const t=[],n={};for(const r in e){const i=t1(e[r]);fr(i)?t.push(i.then(o=>{n[r]=o})):n[r]=i}return Op in e&&(n[Op]=e[Op]),bs in e&&(n[bs]=e[bs]),Ko in e&&(n[Ko]=e[Ko]),t.length?Promise.all(t).then(()=>n):n}return e}function ane(e){return!!(e!=null&&e.schema)}function sne(e){var E;const{info:t,schema:n,rootValue:r=n.rootValue??t.rootValue,operationName:i=(E=t.operation.name)==null?void 0:E.value,operation:o=Jte(t.parentType,t.schema),fieldName:l=t.fieldName,selectionSet:c,fieldNodes:p=t.fieldNodes,context:d}=e,m=ene({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:l,selectionSet:c,fieldNodes:p,context:d,info:t});return lne({...e,request:m})}function S4(e,t,n){const r=Ib(e,t),i=r.getFields()[n];if(!i)throw new Error(`Unable to find field '${n}' in type '${r}'.`);return i.type}function lne(e){const t=une(e),n=new Zte(t),r=n.transformRequest(e.request);return e.validateRequest&&cne(t,r.document),Xt(()=>dne(t)(r),function(o){return Wf(o)?t.operation==="query"&&gn(t.returnType)?new Ap(async(l,c)=>{var m;const p=new WeakSet;let d=!1;c.finally(()=>{d=!0});try{for await(const E of o){if(d)break;if(E.incremental){const y={};for(const x of E.incremental)if((m=x.items)!=null&&m.length){for(const w of x.items)Bb(y,(x.path||[]).slice(0,-1),w);await l(await n.transformResult({data:y}))}if(E.hasNext===!1)break;continue}const b=await n.transformResult(E);if(Array.isArray(b))for(const y of b){if(d)break;const x=await y;p.has(x)||(p.add(x),await l(x))}else await l(await b)}c()}catch(E){c(E)}}):EC(o,l=>n.transformResult(l)):n.transformResult(o)})}function une({request:e,schema:t,fieldName:n,returnType:r,args:i,info:o,transforms:l=[],transformedSchema:c,skipTypeMerging:p=!1,onLocatedError:d}){var w;const m=Yf(e);let E;n==null?E=m.selectionSet.selections[0].name.value:E=n;const b=(w=o==null?void 0:o.schema.extensions)==null?void 0:w.stitchingInfo,y=(b==null?void 0:b.subschemaMap.get(t))??t,x=m.operation;if(ane(y)){const k=y.schema;return{subschema:t,subschemaConfig:y,targetSchema:k,operation:x,fieldName:E,args:i,context:e.context,info:o,returnType:r??(o==null?void 0:o.returnType)??S4(k,x,E),transforms:y.transforms!=null?y.transforms.concat(l):l,transformedSchema:c??(y instanceof Ste?y.transformedSchema:qC(k,y)),skipTypeMerging:p,onLocatedError:d}}return{subschema:t,subschemaConfig:void 0,targetSchema:y,operation:x,fieldName:E,args:i,context:e.context,info:o,returnType:r??(o==null?void 0:o.returnType)??S4(y,x,E),transforms:l,transformedSchema:c??y,skipTypeMerging:p}}function cne(e,t){const n=mm(e.targetSchema,t);if(n.length>0){if(n.length>1)throw new AggregateError(n,n.map(o=>o.message).join(`, 
`));const r=n[0];if(r)throw r.originalError||r}}const fne={};function dne(e){const{subschemaConfig:t,targetSchema:n,context:r}=e;let i=(t==null?void 0:t.executor)||ote(n);if(t!=null&&t.batch){const o=t==null?void 0:t.batchingOptions;i=Ete(r??fne,i,o==null?void 0:o.dataLoaderOptions,o==null?void 0:o.extensionsReducer)}return i}function pne(e){const t=e.schema,n=e.createProxyingResolver??gne,r=xC(t),i={};for(const[o,l]of r.entries()){const c=l.name,p=l.getFields();i[c]={};for(const d in p){const m=n({subschemaConfig:e,operation:o,fieldName:d}),E=mne(e,m);o==="subscription"?i[c][d]={subscribe:E,resolve:hne}:i[c][d]={resolve:E}}}return i}function hne(e){return e}function mne(e,t){return function(r,i,o,l){if(r!=null){const c=CC(l);if(Xb(r)){const p=u4(r),d=Zb(r,c);if(e===d&&r[c]!==void 0)return xg(r[c],p,d,o,l)}}return t(r,i,o,l)}}function gne({subschemaConfig:e,operation:t}){return function(r,i,o,l){return sne({schema:e,operation:t,context:o,info:l})}}const T4=vs(function(t){const n=t.schema,r=pne(t),i=vne(n,r);return qC(i,t)});function vne(e,t){return FJ(e,{[zt.ROOT_FIELD]:(n,r,i)=>{var o;return{...n,...(o=t[i])==null?void 0:o[r]}},[zt.OBJECT_FIELD]:n=>({...n,resolve:nne,subscribe:void 0}),[zt.OBJECT_TYPE]:n=>{const r=n.toConfig();return new li({...r,isTypeOf:void 0})},[zt.INTERFACE_TYPE]:n=>{const r=n.toConfig();return new so({...r,resolveType:void 0})},[zt.UNION_TYPE]:n=>{const r=n.toConfig();return new ju({...r,resolveType:void 0})},[zt.ENUM_VALUE]:n=>({...n,value:void 0})})}function yne(e,t){var n;if((n=e==null?void 0:e.data)!=null&&n.__schema)return KE(e.data,t);if(e!=null&&e.errors){const r=e.errors.map(i=>Yt(i.message,i));throw e.errors.length===1?r[0]:new AggregateError(r,"Could not obtain introspection result")}throw Yt(`Could not obtain introspection result, received the following as response; 
 ${Mi(e)}`)}function x4(e,t,n){const r=Oi(Ly(n),n);return Xt(()=>Xt(()=>e({document:r,context:t}),i=>Wf(i)?i[Symbol.asyncIterator]().next().then(({value:l})=>l):i),i=>yne(i,n))}const bne=Kf.fetch;var zC,w4;function Ene(){if(w4)return zC;w4=1;const e=new TextEncoder,t=new TextDecoder;function n(...y){const x=new n.Request(...y),w=new XMLHttpRequest;w.withCredentials=x.credentials==="include",w.timeout=x[r].timeout,w.open(x.method,x.url,!1);let k=!1;try{w.responseType="arraybuffer"}catch{w.overrideMimeType("text/plain; charset=x-user-defined"),k=!0}for(const _ of x.headers)w.setRequestHeader(..._);w.send(x[r].body||null);let N=w.getAllResponseHeaders();N=N&&N.split(`\r
`).filter(Boolean).map(_=>_.split(": ",2));let A=w.response;if(k){const _=new Uint8Array(A.length);for(let M=0;M<A.length;M++)_[M]=A.charCodeAt(M)&255;A=_}const O=new n.Response(A,{headers:N,status:w.status,statusText:w.statusText});return O[r].url=w.responseURL,O[r].redirected=w.responseURL!==x.url,O}const r=Symbol("SyncFetch Internals"),i=["mode","cache","redirect","referrer","integrity"],o={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 l{constructor(x,w={}){for(const k of i)if(k in w)throw new TypeError(`option ${k} not supported`);if(w.credentials==="same-origin")throw new TypeError("option credentials with value 'same-origin' not supported");if(this[r]={method:w.method||"GET",headers:new n.Headers(w.headers),body:E(w.body),credentials:w.credentials||"omit",timeout:w.timeout||0},typeof x=="string")this[r].url=x;else if(x instanceof l)this[r].url=x.url,w.method||(this[r].method=x.method),w.headers||(this[r].headers=x.headers),w.body||(this[r].body=x[r].body),w.credentials||(this[r].credentials=x.credentials);else throw new TypeError("Request input should be a URL string or a Request object")}get cache(){return"default"}get credentials(){return this[r].credentials}get destination(){return""}get headers(){return this[r].headers}get integrity(){return""}get method(){return this[r].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[r].url}clone(){return d(this),new l(this.url,this[r])}}class c{constructor(x,w={}){this[r]={body:E(x),bodyUsed:!1,headers:new n.Headers(w.headers),status:w.status,statusText:w.statusText}}get headers(){return this[r].headers}get ok(){const x=this[r].status;return x>=200&&x<300}get redirected(){return this[r].redirected}get status(){return this[r].status}get statusText(){return this[r].statusText}get url(){return this[r].url}clone(){return this.redirect(this[r].url,this[r].status)}redirect(x,w){d(this);const k=new c(this[r].body,{headers:this[r].headers,status:w||this[r].status,statusText:o[w]||this[r].statusText});return k[r].url=x||this[r].url,k[r].redirected=this[r].redirected,k}}class p{constructor(x){this[r]={body:E(x),bodyUsed:!1}}get bodyUsed(){return this[r].bodyUsed}static mixin(x){for(const w of Object.getOwnPropertyNames(p.prototype)){if(w==="constructor")continue;const k=Object.getOwnPropertyDescriptor(p.prototype,w);Object.defineProperty(x,w,{...k,enumerable:!0})}}arrayBuffer(){const x=m(this);return x.buffer.slice(x.byteOffset,x.byteOffset+x.byteLength)}blob(){const x=this.headers&&this.headers.get("content-type");return new Blob([m(this)],x&&{type:x})}text(){return t.decode(m(this))}json(){try{return JSON.parse(this.text())}catch(x){throw new TypeError(`invalid json response body at ${this.url} reason: ${x.message}`,"invalid-json")}}}function d(y){if(y.bodyUsed)throw new TypeError(`body used already for: ${y.url}`)}function m(y){return d(y),y[r].bodyUsed=!0,y[r].body||new Uint8Array}function E(y){return typeof y=="string"?e.encode(y):y||null}p.mixin(l.prototype),p.mixin(c.prototype);class b{constructor(x){if(x instanceof n.Headers)this[r]={...x[r]};else if(this[r]={},Array.isArray(x))for(const[w,k]of x)this.append(w,k);else if(typeof x=="object")for(const w in x)this.set(w,x[w])}append(x,w){x=x.toLowerCase(),this[r][x]||(this[r][x]=[]),this[r][x].push(w)}delete(x){delete this[r][x.toLowerCase()]}set(x,w){this[r][x.toLowerCase()]=[w]}entries(){const x=[];for(const w in this[r])for(const k of this[r][w])x.push([w,k]);return x}get(x){return x=x.toLowerCase(),x in this[r]?this[r][x].join(", "):null}keys(){return Object.keys(this[r])}has(x){return x.toLowerCase()in this[r]}values(){const x=[];for(const w in this[r])for(const k of this[r][w])x.push(k);return x}*[Symbol.iterator](){for(const x in this[r])for(const w of this[r][x])yield[x,w]}}return n.Headers=b,n.Request=l,n.Response=c,zC=n,zC}var Sne=Ene();const Tne=Mu(Sne),xne=(e,t)=>(typeof e=="string"?t==null||delete t.signal:delete e.signal,Tne(e,t)),HC=e=>import(`${e}`),C4=e=>require(`${e}`);var Jf;(function(e){e.WS="WS",e.LEGACY_WS="LEGACY_WS",e.SSE="SSE",e.GRAPHQL_SSE="GRAPHQL_SSE"})(Jf||(Jf={}));const wne=["http:","https:","ws:","wss:"];function _4(e){return wne.some(t=>e.startsWith(t))?sJ(e):!1}class Cne{buildHTTPExecutor(t,n,r){const i=GC(t,{wss:"https",ws:"http"});return kee({endpoint:i,fetch:n,...r})}buildWSExecutor(t,n,r){const o={url:GC(t,{https:"wss",http:"ws"}),webSocketImpl:n,connectionParams:r};return aee(o)}buildWSLegacyExecutor(t,n,r){const i=GC(t,{https:"wss",http:"ws"});return Ree(i,n,r)}getFetch(t,n){if(t){if(typeof t=="string"){const[r,i]=t.split("#");return Xt(()=>n(r),o=>i?o[i]:o)}else if(typeof t=="function")return t}return n===HC?bne:xne}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 Xt(()=>t(r),o=>i?o[i]:o)}else return(n==null?void 0:n.webSocketImpl)||Js}buildSubscriptionExecutor(t,n,r,i){return(i==null?void 0:i.subscriptionsProtocol)===Jf.SSE?this.buildHTTPExecutor(t,n,i):(i==null?void 0:i.subscriptionsProtocol)===Jf.GRAPHQL_SSE?(i!=null&&i.subscriptionsEndpoint||(t+="/stream"),this.buildHTTPExecutor(t,n,i)):o=>Xt(()=>Xt(()=>this.getWebSocketImpl(r,i),l=>(i==null?void 0:i.subscriptionsProtocol)===Jf.LEGACY_WS?this.buildWSLegacyExecutor(t,l,i):this.buildWSExecutor(t,l,i==null?void 0:i.connectionParams)),l=>l(o))}getExecutor(t,n,r){let i;const o=()=>Xt(()=>i||(i=this.getFetch(r==null?void 0:r.customFetch,n)),p=>this.buildHTTPExecutor(t,p,r)),l=()=>c||(c=o());let c;if((r==null?void 0:r.subscriptionsEndpoint)!=null||(r==null?void 0:r.subscriptionsProtocol)!==Jf.SSE){let d=function(m){var E;return m.operationType=m.operationType||((E=Yf(m))==null?void 0:E.operation),m.operationType==="subscription"&&k5(Yf(m))&&(m.operationType="subscription"),m.operationType==="subscription"?p:l()};const p=Xt(()=>i||(i=this.getFetch(r==null?void 0:r.customFetch,n)),m=>{const E=(r==null?void 0:r.subscriptionsEndpoint)||t;return this.buildSubscriptionExecutor(E,m,n,r)});return m=>Xt(()=>d(m),E=>E(m))}else return p=>Xt(l,d=>d(p))}getExecutorAsync(t,n){return this.getExecutor(t,HC,n)}getExecutorSync(t,n){return this.getExecutor(t,C4,n)}handleSDL(t,n,r){const i=this.getDefaultMethodFromOptions(r==null?void 0:r.method,"GET");return Xt(()=>n(t,{method:i,headers:typeof(r==null?void 0:r.headers)=="function"?r.headers():r==null?void 0:r.headers}),o=>Xt(()=>o.text(),l=>OJ(t,l,r)))}async load(t,n){if(!_4(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,HC);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?Fy(r.document,n):r.rawSDL?XE(r.rawSDL,n):void 0)}else i=this.getExecutorAsync(t,n),r.schema=await x4(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=T4({schema:r.schema,executor:i,batch:n==null?void 0:n.batch})),[r]}loadSync(t,n){if(!_4(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,C4);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?Fy(r.document,n):r.rawSDL?XE(r.rawSDL,n):void 0)}else i=this.getExecutorSync(t,n),r.schema=x4(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=T4({schema:r.schema,executor:i})),[r]}}function GC(e,t){return Object.entries(t).reduce((n,[r,i])=>n.replace(`${r}://`,`${i}://`).replace(`${r}:\\`,`${i}:\\`),e)}var N4={},A4;function _ne(){if(A4)return N4;A4=1;var e={};const t=(...i)=>e.stringify(...i);(function(){var i=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,o,l,c={"\b":"\\b","	":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},p;function d(E){return i.lastIndex=0,i.test(E)?'"'+E.replace(i,function(b){var y=c[b];return typeof y=="string"?y:"\\u"+("0000"+b.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+E+'"'}function m(E,b){var y,x,w,k,N=o,A,O=b[E];switch(O&&typeof O=="object"&&typeof O.toJSON=="function"&&(O=O.toJSON(E)),typeof p=="function"&&(O=p.call(b,E,O)),typeof O){case"string":return d(O);case"number":return isFinite(O)?String(O):"null";case"bigint":case"boolean":case"null":return String(O);case"object":if(!O)return"null";if(o+=l,A=[],Object.prototype.toString.apply(O)==="[object Array]"){for(k=O.length,y=0;y<k;y+=1)A[y]=m(y,O)||"null";return w=A.length===0?"[]":o?`[
`+o+A.join(`,
`+o)+`
`+N+"]":"["+A.join(",")+"]",o=N,w}if(p&&typeof p=="object")for(k=p.length,y=0;y<k;y+=1)typeof p[y]=="string"&&(x=p[y],w=m(x,O),w&&A.push(d(x)+(o?": ":":")+w));else Object.keys(O).forEach(function(_){var M=m(_,O);M&&A.push(d(_)+(o?": ":":")+M)});return w=A.length===0?"{}":o?`{
`+o+A.join(`,
`+o)+`
`+N+"}":"{"+A.join(",")+"}",o=N,w}}typeof e.stringify!="function"&&(e.stringify=function(E,b,y){var x;if(o="",l="",typeof y=="number")for(x=0;x<y;x+=1)l+=" ";else typeof y=="string"&&(l=y);if(p=b,b&&typeof b!="function"&&(typeof b!="object"||typeof b.length!="number"))throw new Error("JSON.stringify");return m("",{"":E})})})();function n(i){var o,l,c={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
`,r:"\r",t:"	"},p,d=function(A){throw{name:"SyntaxError",message:A,at:o,text:p}},m=function(A){return A&&A!==l&&d("Expected '"+A+"' instead of '"+l+"'"),l=p.charAt(o),o+=1,l},E=function(){var A="";for(l==="-"&&(A="-",m("-"));l>="0"&&l<="9";)A+=l,m();if(l===".")for(A+=".";m()&&l>="0"&&l<="9";)A+=l;if(l==="e"||l==="E")for(A+=l,m(),(l==="-"||l==="+")&&(A+=l,m());l>="0"&&l<="9";)A+=l,m();if(!isFinite(Number(A)))d("Bad number");else{const O=Number(A);return Number.isInteger(O)&&!Number.isSafeInteger(O)?BigInt(A):O}},b=function(){var A,O,_="",M;if(l==='"')for(;m();){if(l==='"')return m(),_;if(l==="\\")if(m(),l==="u"){for(M=0,O=0;O<4&&(A=parseInt(m(),16),!!isFinite(A));O+=1)M=M*16+A;_+=String.fromCharCode(M)}else if(typeof c[l]=="string")_+=c[l];else break;else _+=l}d("Bad string")},y=function(){for(;l&&l<=" ";)m()},x=function(){switch(l){case"t":return m("t"),m("r"),m("u"),m("e"),!0;case"f":return m("f"),m("a"),m("l"),m("s"),m("e"),!1;case"n":return m("n"),m("u"),m("l"),m("l"),null}d("Unexpected '"+l+"'")},w,k=function(){var A=[];if(l==="["){if(m("["),y(),l==="]")return m("]"),A;for(;l;){if(A.push(w()),y(),l==="]")return m("]"),A;m(","),y()}}d("Bad array")},N=function(){var A,O={};if(l==="{"){if(m("{"),y(),l==="}")return m("}"),O;for(;l;){if(A=b(),y(),m(":"),O[A]=w(),y(),l==="}")return m("}"),O;m(","),y()}}d("Bad object")};return w=function(){switch(y(),l){case"{":return N();case"[":return k();case'"':return b();case"-":return E();default:return l>="0"&&l<="9"?E():x()}},function(A,O){var _;return p=A+"",o=0,l=" ",_=w(),y(),l&&d("Syntax error"),typeof O=="function"?function M(j,P){var F,V=j[P];return V&&typeof V=="object"&&Object.keys(V).forEach(function($){F=M(V,$),F!==void 0?V[$]=F:delete V[$]}),O.call(j,P,V)}({"":_},""):_}}let r;return typeof globalThis<"u"?r=globalThis:typeof self<"u"?r=self:typeof window<"u"?r=window:typeof hf<"u"&&(r=hf),r.BigInt.prototype.toJSON=function(){return this},r.JSON.parse=n(),r.JSON.stringify=t,N4}_ne();const n1=function(){},YC={popstate:[]};let Nne={URL:function(){return{searchParams:{set:n1,append:n1,delete:n1}}},location:{href:"",search:""},history:{pushState:n1},fireEvent:function(e){YC[e].forEach(t=>{t()})},addEventListener:function(e,t){YC[e].push(t)},removeEventListener:function(e,t){const n=YC[e],r=n.findIndex(i=>i===t);n.splice(r,1)}};function lc(){return typeof window<"u"?window:Nne}const O4=[Number,String,Boolean,Date];function Ane(e){const{URL:t}=lc(),n=new t(lc().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 One(e){return Array.isArray(e)&&e.length>0&&e.every(t=>typeof t=="number"||typeof t=="string"||typeof t=="boolean")}function Dne(e={}){if(!Object.values(e).every(n=>O4.includes(n)||One(n)||typeof n=="function"))throw new Error(`Unsupported param types. Must be one of [${O4.map(n=>n.name).join(", ")}]`)}function kne(e={},t={},n=!1){t&&Dne(t);const[,r]=L.useState(),i=lc().location.search,o=L.useMemo(()=>new URLSearchParams(i),[i]),l=L.useMemo(()=>{let d=[];o.forEach((E,b)=>{d.push({key:b,value:E})}),d=d.reduce((E,b)=>((E[b.key]=E[b.key]||[]).push(b),E),{}),d=Object.keys(d).map(E=>{const b=d[E];return b.length===1?[E,b[0].value]:[E,b.map(({value:y})=>y)]});const m=Object.assign({},e);return d.forEach(([E,b])=>{m[E]=Mne(E,b,t,e)}),m},[o]);function c(d){const m=Ane(d);lc().location.search!==m.search&&(n?lc().history.replaceState({},"",m.toString()):lc().history.pushState({},"",m.toString())),o.toString()!==m.searchParams.toString()&&r({})}L.useEffect(()=>{c(Object.assign(Object.assign({},e),l))},[l]);const p=d=>{c(d)};return L.useEffect(()=>{const d=()=>{r({})};return lc().addEventListener("popstate",d),()=>{lc().removeEventListener("popstate",d)}},[]),[l,p]}const Rne={true:!0,false:!1};function Mne(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?Rne[o]:i===Date?new Date(o):Array.isArray(i)?i.find(l=>l==o)||r[e]:typeof i=="function"?i(o):o}const Lne=()=>Y.jsxs("svg",{viewBox:"0 0 90 90",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Y.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)"}),Y.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)"}),Y.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)"}),Y.jsxs("mask",{id:"g",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:16,y:14,width:58,height:62,children:[Y.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)"}),Y.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)"}),Y.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)"})]}),Y.jsxs("g",{mask:"url(#g)",children:[Y.jsx("g",{filter:"url(#h)",children:Y.jsx("circle",{cx:73,cy:25,r:26,fill:"#ED2E7E"})}),Y.jsx("g",{filter:"url(#i)",children:Y.jsx("circle",{cx:26,cy:69,r:26,fill:"#1CC8EE"})})]}),Y.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)"}),Y.jsx("mask",{id:"k",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:30,y:28,width:30,height:30,children:Y.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"})}),Y.jsxs("g",{mask:"url(#k)",children:[Y.jsx("g",{filter:"url(#l)",children:Y.jsx("circle",{cx:38,cy:6,r:26,fill:"#ED2E7E"})}),Y.jsx("g",{filter:"url(#m)",children:Y.jsx("circle",{cx:63,cy:69,r:26,fill:"#1CC8EE"})})]}),Y.jsxs("defs",{children:[Y.jsxs("linearGradient",{id:"a",x1:16,y1:14,x2:87.213,y2:44.598,gradientUnits:"userSpaceOnUse",children:[Y.jsx("stop",{stopColor:"#7433FF"}),Y.jsx("stop",{offset:1,stopColor:"#FFA3FD"})]}),Y.jsxs("linearGradient",{id:"b",x1:16,y1:14,x2:87.213,y2:44.598,gradientUnits:"userSpaceOnUse",children:[Y.jsx("stop",{stopColor:"#7433FF"}),Y.jsx("stop",{offset:1,stopColor:"#FFA3FD"})]}),Y.jsxs("linearGradient",{id:"c",x1:16,y1:14,x2:87.213,y2:44.598,gradientUnits:"userSpaceOnUse",children:[Y.jsx("stop",{stopColor:"#7433FF"}),Y.jsx("stop",{offset:1,stopColor:"#FFA3FD"})]}),Y.jsxs("linearGradient",{id:"d",x1:16,y1:14,x2:87.213,y2:44.598,gradientUnits:"userSpaceOnUse",children:[Y.jsx("stop",{stopColor:"#7433FF"}),Y.jsx("stop",{offset:1,stopColor:"#FFA3FD"})]}),Y.jsxs("linearGradient",{id:"e",x1:16,y1:14,x2:87.213,y2:44.598,gradientUnits:"userSpaceOnUse",children:[Y.jsx("stop",{stopColor:"#7433FF"}),Y.jsx("stop",{offset:1,stopColor:"#FFA3FD"})]}),Y.jsxs("linearGradient",{id:"f",x1:16,y1:14,x2:87.213,y2:44.598,gradientUnits:"userSpaceOnUse",children:[Y.jsx("stop",{stopColor:"#7433FF"}),Y.jsx("stop",{offset:1,stopColor:"#FFA3FD"})]}),Y.jsxs("linearGradient",{id:"j",x1:30,y1:28,x2:66.165,y2:44.436,gradientUnits:"userSpaceOnUse",children:[Y.jsx("stop",{stopColor:"#7433FF"}),Y.jsx("stop",{offset:1,stopColor:"#FFA3FD"})]}),Y.jsxs("filter",{id:"h",x:23,y:-25,width:100,height:100,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[Y.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),Y.jsx("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),Y.jsx("feGaussianBlur",{stdDeviation:12,result:"effect1_foregroundBlur_1677_11483"})]}),Y.jsxs("filter",{id:"i",x:-24,y:19,width:100,height:100,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[Y.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),Y.jsx("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),Y.jsx("feGaussianBlur",{stdDeviation:12,result:"effect1_foregroundBlur_1677_11483"})]}),Y.jsxs("filter",{id:"l",x:-12,y:-44,width:100,height:100,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[Y.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),Y.jsx("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),Y.jsx("feGaussianBlur",{stdDeviation:12,result:"effect1_foregroundBlur_1677_11483"})]}),Y.jsxs("filter",{id:"m",x:13,y:19,width:100,height:100,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[Y.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),Y.jsx("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),Y.jsx("feGaussianBlur",{stdDeviation:12,result:"effect1_foregroundBlur_1677_11483"})]})]})]}),Ine=(e,t)=>{const n=e.definitions.filter(r=>{var i;return!(r.kind===X.OPERATION_DEFINITION&&t&&((i=r.name)==null?void 0:i.value)!==t)});return{kind:X.DOCUMENT,definitions:n}};function Fne(e){var E;const t=`#
# Welcome to ${e.title||"Yoga GraphiQL"}
#
# ${e.title||"Yoga GraphiQL"} is an in-browser tool for writing, validating, and
# testing GraphQL queries.
#
# Type queries into this side of the screen, and you will see intelligent
# typeaheads aware of the current GraphQL type schema and live syntax and
# validation errors highlighted within the text.
#
# GraphQL queries typically start with a "{" character. Lines that start
# with a # are ignored.
#
# An example GraphQL query might look like:
#
#     {
#       field(arg: "value") {
#         subField
#       }
#     }
#
# Keyboard shortcuts:
#
#  Prettify Query:  Shift-Ctrl-P (or press the prettify button above)
#
#     Merge Query:  Shift-Ctrl-M (or press the merge button above)
#
#       Run Query:  Ctrl-Enter (or press the play button above)
#
#   Auto Complete:  Ctrl-Space (or just start typing)
#
`,n=new URL(e.endpoint??location.pathname,location.href).toString(),r={query:String},i=L.useMemo(()=>new Cne,[]),o=L.useMemo(()=>{if(e.fetcher)return e.endpoint&&console.warn("You are using a custom fetcher and an endpoint. The endpoint will be ignored."),e.fetcher;const b=i.getExecutorAsync(n,{subscriptionsProtocol:Jf.GRAPHQL_SSE,subscriptionsEndpoint:n,credentials:"same-origin",specifiedByUrl:!0,directiveIsRepeatable:!0,inputValueDeprecation:!0,...e,headers:e.additionalHeaders||{},fetch:(...y)=>globalThis.fetch(...y)});return function(x,w){const k=Ine(Oi(x.query),x.operationName??void 0);return b({document:k,operationName:x.operationName??void 0,variables:x.variables,extensions:{headers:w==null?void 0:w.headers}})}},[i,n,e.fetcher]),[l,c]=kne({query:e.defaultQuery||t},r,!1),[p,d]=L.useState((E=l.query)==null?void 0:E.toString()),m=QZ({showAttribution:!0});return e.query&&!e.onEditQuery&&console.warn("If you provide `query` prop, you should also provide `onEditQuery` prop to handle query changes."),Y.jsx("div",{className:"graphiql-container",children:Y.jsx(mC,{shouldPersistHeaders:!0,plugins:[m],schemaDescription:!0,inputValueDeprecation:!0,query:p,...e,fetcher:o,children:Y.jsx(YF,{isHeadersEditorEnabled:!0,defaultEditorToolsVisibility:!0,...e,onEditQuery:(b,y)=>{var x;c({query:b}),d(b),(x=e.onEditQuery)==null||x.call(e,b,y)},children:Y.jsx(oc.Logo,{children:Y.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[Y.jsx("div",{style:{width:40,display:"flex"},children:(e==null?void 0:e.logo)||Y.jsx(Lne,{})}),Y.jsx("span",{children:(e==null?void 0:e.title)||Y.jsxs(Y.Fragment,{children:["Yoga Graph",Y.jsx("em",{children:"i"}),"QL"]})})]})})})})})}function Pne(e,t){uV.createRoot(e).render(Y.jsx(Fne,{...t}))}globalThis.React=Ae;var jne=Object.defineProperty,z=(e,t)=>jne(e,"name",{value:t,configurable:!0}),Vne=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function po(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}z(po,"getDefaultExportFromCjs");var D4={exports:{}},k4;function Ki(){return k4||(k4=1,function(e,t){(function(n,r){e.exports=r()})(Vne,function(){var n=navigator.userAgent,r=navigator.platform,i=/gecko\/\d/i.test(n),o=/MSIE \d/.test(n),l=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(n),c=/Edge\/(\d+)/.exec(n),p=o||l||c,d=p&&(o?document.documentMode||6:+(c||l)[1]),m=!c&&/WebKit\//.test(n),E=m&&/Qt\/\d+\.\d+/.test(n),b=!c&&/Chrome\//.test(n),y=/Opera\//.test(n),x=/Apple Computer/.test(navigator.vendor),w=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(n),k=/PhantomJS/.test(n),N=x&&(/Mobile\/\w+/.test(n)||navigator.maxTouchPoints>2),A=/Android/.test(n),O=N||A||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(n),_=N||/Mac/.test(r),M=/\bCrOS\b/.test(n),j=/win/i.test(r),P=y&&n.match(/Version\/(\d*\.\d*)/);P&&(P=Number(P[1])),P&&P>=15&&(y=!1,m=!0);var F=_&&(E||y&&(P==null||P<12.11)),V=i||p&&d>=9;function $(s){return new RegExp("(^|\\s)"+s+"(?:$|\\s)\\s*")}z($,"classTest");var K=z(function(s,f){var v=s.className,g=$(f).exec(v);if(g){var T=v.slice(g.index+g[0].length);s.className=v.slice(0,g.index)+(T?g[1]+T:"")}},"rmClass");function ee(s){for(var f=s.childNodes.length;f>0;--f)s.removeChild(s.firstChild);return s}z(ee,"removeChildren");function J(s,f){return ee(s).appendChild(f)}z(J,"removeChildrenAndAdd");function W(s,f,v,g){var T=document.createElement(s);if(v&&(T.className=v),g&&(T.style.cssText=g),typeof f=="string")T.appendChild(document.createTextNode(f));else if(f)for(var D=0;D<f.length;++D)T.appendChild(f[D]);return T}z(W,"elt");function q(s,f,v,g){var T=W(s,f,v,g);return T.setAttribute("role","presentation"),T}z(q,"eltP");var te;document.createRange?te=z(function(s,f,v,g){var T=document.createRange();return T.setEnd(g||s,v),T.setStart(s,f),T},"range"):te=z(function(s,f,v){var g=document.body.createTextRange();try{g.moveToElementText(s.parentNode)}catch{return g}return g.collapse(!0),g.moveEnd("character",v),g.moveStart("character",f),g},"range");function re(s,f){if(f.nodeType==3&&(f=f.parentNode),s.contains)return s.contains(f);do if(f.nodeType==11&&(f=f.host),f==s)return!0;while(f=f.parentNode)}z(re,"contains");function ae(){var s;try{s=document.activeElement}catch{s=document.body||null}for(;s&&s.shadowRoot&&s.shadowRoot.activeElement;)s=s.shadowRoot.activeElement;return s}z(ae,"activeElt");function fe(s,f){var v=s.className;$(f).test(v)||(s.className+=(v?" ":"")+f)}z(fe,"addClass");function Z(s,f){for(var v=s.split(" "),g=0;g<v.length;g++)v[g]&&!$(v[g]).test(f)&&(f+=" "+v[g]);return f}z(Z,"joinClasses");var he=z(function(s){s.select()},"selectInput");N?he=z(function(s){s.selectionStart=0,s.selectionEnd=s.value.length},"selectInput"):p&&(he=z(function(s){try{s.select()}catch{}},"selectInput"));function se(s){var f=Array.prototype.slice.call(arguments,1);return function(){return s.apply(null,f)}}z(se,"bind");function pe(s,f,v){f||(f={});for(var g in s)s.hasOwnProperty(g)&&(v!==!1||!f.hasOwnProperty(g))&&(f[g]=s[g]);return f}z(pe,"copyObj");function ce(s,f,v,g,T){f==null&&(f=s.search(/[^\s\u00a0]/),f==-1&&(f=s.length));for(var D=g||0,I=T||0;;){var U=s.indexOf("	",D);if(U<0||U>=f)return I+(f-D);I+=U-D,I+=v-I%v,D=U+1}}z(ce,"countColumn");var me=z(function(){this.id=null,this.f=null,this.time=0,this.handler=se(this.onTimeout,this)},"Delayed");me.prototype.onTimeout=function(s){s.id=0,s.time<=+new Date?s.f():setTimeout(s.handler,s.time-+new Date)},me.prototype.set=function(s,f){this.f=f;var v=+new Date+s;(!this.id||v<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,s),this.time=v)};function Se(s,f){for(var v=0;v<s.length;++v)if(s[v]==f)return v;return-1}z(Se,"indexOf");var je=50,Ge={toString:function(){return"CodeMirror.Pass"}},Ye={scroll:!1},Ot={origin:"*mouse"},gt={origin:"+move"};function ot(s,f,v){for(var g=0,T=0;;){var D=s.indexOf("	",g);D==-1&&(D=s.length);var I=D-g;if(D==s.length||T+I>=f)return g+Math.min(I,f-T);if(T+=D-g,T+=v-T%v,g=D+1,T>=f)return g}}z(ot,"findColumn");var Oe=[""];function ye(s){for(;Oe.length<=s;)Oe.push(Le(Oe)+" ");return Oe[s]}z(ye,"spaceStr");function Le(s){return s[s.length-1]}z(Le,"lst");function be(s,f){for(var v=[],g=0;g<s.length;g++)v[g]=f(s[g],g);return v}z(be,"map");function oe(s,f,v){for(var g=0,T=v(f);g<s.length&&v(s[g])<=T;)g++;s.splice(g,0,f)}z(oe,"insertSorted");function Fe(){}z(Fe,"nothing");function Je(s,f){var v;return Object.create?v=Object.create(s):(Fe.prototype=s,v=new Fe),f&&pe(f,v),v}z(Je,"createObj");var ct=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function We(s){return/\w/.test(s)||s>"€"&&(s.toUpperCase()!=s.toLowerCase()||ct.test(s))}z(We,"isWordCharBasic");function xe(s,f){return f?f.source.indexOf("\\w")>-1&&We(s)?!0:f.test(s):We(s)}z(xe,"isWordChar");function $e(s){for(var f in s)if(s.hasOwnProperty(f)&&s[f])return!1;return!0}z($e,"isEmpty");var nt=/[\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 ht(s){return s.charCodeAt(0)>=768&&nt.test(s)}z(ht,"isExtendingChar");function Dt(s,f,v){for(;(v<0?f>0:f<s.length)&&ht(s.charAt(f));)f+=v;return f}z(Dt,"skipExtendingChars");function jt(s,f,v){for(var g=f>v?-1:1;;){if(f==v)return f;var T=(f+v)/2,D=g<0?Math.ceil(T):Math.floor(T);if(D==f)return s(D)?f:v;s(D)?v=D:f=D+g}}z(jt,"findFirst");function dt(s,f,v,g){if(!s)return g(f,v,"ltr",0);for(var T=!1,D=0;D<s.length;++D){var I=s[D];(I.from<v&&I.to>f||f==v&&I.to==f)&&(g(Math.max(I.from,f),Math.min(I.to,v),I.level==1?"rtl":"ltr",D),T=!0)}T||g(f,v,"ltr")}z(dt,"iterateBidiSections");var Et=null;function pt(s,f,v){var g;Et=null;for(var T=0;T<s.length;++T){var D=s[T];if(D.from<f&&D.to>f)return T;D.to==f&&(D.from!=D.to&&v=="before"?g=T:Et=T),D.from==f&&(D.from!=D.to&&v!="before"?g=T:Et=T)}return g??Et}z(pt,"getBidiPartAt");var Wt=function(){var s="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",f="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function v(H){return H<=247?s.charAt(H):1424<=H&&H<=1524?"R":1536<=H&&H<=1785?f.charAt(H-1536):1774<=H&&H<=2220?"r":8192<=H&&H<=8203?"w":H==8204?"b":"L"}z(v,"charType");var g=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,T=/[stwN]/,D=/[LRr]/,I=/[Lb1n]/,U=/[1n]/;function B(H,ie,le){this.level=H,this.from=ie,this.to=le}return z(B,"BidiSpan"),function(H,ie){var le=ie=="ltr"?"L":"R";if(H.length==0||ie=="ltr"&&!g.test(H))return!1;for(var Ee=H.length,ge=[],we=0;we<Ee;++we)ge.push(v(H.charCodeAt(we)));for(var Ve=0,Xe=le;Ve<Ee;++Ve){var rt=ge[Ve];rt=="m"?ge[Ve]=Xe:Xe=rt}for(var it=0,et=le;it<Ee;++it){var ut=ge[it];ut=="1"&&et=="r"?ge[it]="n":D.test(ut)&&(et=ut,ut=="r"&&(ge[it]="R"))}for(var Ct=1,yt=ge[0];Ct<Ee-1;++Ct){var kt=ge[Ct];kt=="+"&&yt=="1"&&ge[Ct+1]=="1"?ge[Ct]="1":kt==","&&yt==ge[Ct+1]&&(yt=="1"||yt=="n")&&(ge[Ct]=yt),yt=kt}for(var In=0;In<Ee;++In){var kr=ge[In];if(kr==",")ge[In]="N";else if(kr=="%"){var Hn=void 0;for(Hn=In+1;Hn<Ee&&ge[Hn]=="%";++Hn);for(var gi=In&&ge[In-1]=="!"||Hn<Ee&&ge[Hn]=="1"?"1":"N",vi=In;vi<Hn;++vi)ge[vi]=gi;In=Hn-1}}for(var ir=0,Ni=le;ir<Ee;++ir){var Gn=ge[ir];Ni=="L"&&Gn=="1"?ge[ir]="L":D.test(Gn)&&(Ni=Gn)}for(var Qt=0;Qt<Ee;++Qt)if(T.test(ge[Qt])){var vr=void 0;for(vr=Qt+1;vr<Ee&&T.test(ge[vr]);++vr);for(var or=(Qt?ge[Qt-1]:le)=="L",xn=(vr<Ee?ge[vr]:le)=="L",Jc=or==xn?or?"L":"R":le,Vs=Qt;Vs<vr;++Vs)ge[Vs]=Jc;Qt=vr-1}for(var ni=[],Tn,wn=0;wn<Ee;)if(I.test(ge[wn])){var da=wn;for(++wn;wn<Ee&&I.test(ge[wn]);++wn);ni.push(new B(0,da,wn))}else{var Za=wn,Ol=ni.length,Du=ie=="rtl"?1:0;for(++wn;wn<Ee&&ge[wn]!="L";++wn);for(var ri=Za;ri<wn;)if(U.test(ge[ri])){Za<ri&&(ni.splice(Ol,0,new B(1,Za,ri)),Ol+=Du);var ii=ri;for(++ri;ri<wn&&U.test(ge[ri]);++ri);ni.splice(Ol,0,new B(2,ii,ri)),Ol+=Du,Za=ri}else++ri;Za<wn&&ni.splice(Ol,0,new B(1,Za,wn))}return ie=="ltr"&&(ni[0].level==1&&(Tn=H.match(/^\s+/))&&(ni[0].from=Tn[0].length,ni.unshift(new B(0,0,Tn[0].length))),Le(ni).level==1&&(Tn=H.match(/\s+$/))&&(Le(ni).to-=Tn[0].length,ni.push(new B(0,Ee-Tn[0].length,Ee)))),ie=="rtl"?ni.reverse():ni}}();function Vt(s,f){var v=s.order;return v==null&&(v=s.order=Wt(s.text,f)),v}z(Vt,"getOrder");var Jt=[],at=z(function(s,f,v){if(s.addEventListener)s.addEventListener(f,v,!1);else if(s.attachEvent)s.attachEvent("on"+f,v);else{var g=s._handlers||(s._handlers={});g[f]=(g[f]||Jt).concat(v)}},"on");function Bn(s,f){return s._handlers&&s._handlers[f]||Jt}z(Bn,"getHandlers");function yn(s,f,v){if(s.removeEventListener)s.removeEventListener(f,v,!1);else if(s.detachEvent)s.detachEvent("on"+f,v);else{var g=s._handlers,T=g&&g[f];if(T){var D=Se(T,v);D>-1&&(g[f]=T.slice(0,D).concat(T.slice(D+1)))}}}z(yn,"off");function mt(s,f){var v=Bn(s,f);if(v.length)for(var g=Array.prototype.slice.call(arguments,2),T=0;T<v.length;++T)v[T].apply(null,g)}z(mt,"signal");function bn(s,f,v){return typeof f=="string"&&(f={type:f,preventDefault:function(){this.defaultPrevented=!0}}),mt(s,v||f.type,s,f),wt(f)||f.codemirrorIgnore}z(bn,"signalDOMEvent");function pi(s){var f=s._handlers&&s._handlers.cursorActivity;if(f)for(var v=s.curOp.cursorActivityHandlers||(s.curOp.cursorActivityHandlers=[]),g=0;g<f.length;++g)Se(v,f[g])==-1&&v.push(f[g])}z(pi,"signalCursorActivity");function an(s,f){return Bn(s,f).length>0}z(an,"hasHandler");function Lr(s){s.prototype.on=function(f,v){at(this,f,v)},s.prototype.off=function(f,v){yn(this,f,v)}}z(Lr,"eventMixin");function On(s){s.preventDefault?s.preventDefault():s.returnValue=!1}z(On,"e_preventDefault");function Zi(s){s.stopPropagation?s.stopPropagation():s.cancelBubble=!0}z(Zi,"e_stopPropagation");function wt(s){return s.defaultPrevented!=null?s.defaultPrevented:s.returnValue==!1}z(wt,"e_defaultPrevented");function Bt(s){On(s),Zi(s)}z(Bt,"e_stop");function cn(s){return s.target||s.srcElement}z(cn,"e_target");function Rn(s){var f=s.which;return f==null&&(s.button&1?f=1:s.button&2?f=3:s.button&4&&(f=2)),_&&s.ctrlKey&&f==1&&(f=3),f}z(Rn,"e_button");var nr=function(){if(p&&d<9)return!1;var s=W("div");return"draggable"in s||"dragDrop"in s}(),Ft;function fn(s){if(Ft==null){var f=W("span","​");J(s,W("span",[f,document.createTextNode("x")])),s.firstChild.offsetHeight!=0&&(Ft=f.offsetWidth<=1&&f.offsetHeight>2&&!(p&&d<8))}var v=Ft?W("span","​"):W("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return v.setAttribute("cm-text",""),v}z(fn,"zeroWidthElement");var Gt;function En(s){if(Gt!=null)return Gt;var f=J(s,document.createTextNode("AخA")),v=te(f,0,1).getBoundingClientRect(),g=te(f,1,2).getBoundingClientRect();return ee(s),!v||v.left==v.right?!1:Gt=g.right-v.right<3}z(En,"hasBadBidiRects");var Fi=`

b`.split(/\n/).length!=3?function(s){for(var f=0,v=[],g=s.length;f<=g;){var T=s.indexOf(`
`,f);T==-1&&(T=s.length);var D=s.slice(f,s.charAt(T-1)=="\r"?T-1:T),I=D.indexOf("\r");I!=-1?(v.push(D.slice(0,I)),f+=I+1):(v.push(D),f=T+1)}return v}:function(s){return s.split(/\r\n?|\n/)},Jo=window.getSelection?function(s){try{return s.selectionStart!=s.selectionEnd}catch{return!1}}:function(s){var f;try{f=s.ownerDocument.selection.createRange()}catch{}return!f||f.parentElement()!=s?!1:f.compareEndPoints("StartToEnd",f)!=0},ea=function(){var s=W("div");return"oncopy"in s?!0:(s.setAttribute("oncopy","return;"),typeof s.oncopy=="function")}(),Oo=null;function Tr(s){if(Oo!=null)return Oo;var f=J(s,W("span","x")),v=f.getBoundingClientRect(),g=te(f,0,1).getBoundingClientRect();return Oo=Math.abs(v.left-g.left)>1}z(Tr,"hasBadZoomedRects");var $n={},Ir={};function Pi(s,f){arguments.length>2&&(f.dependencies=Array.prototype.slice.call(arguments,2)),$n[s]=f}z(Pi,"defineMode");function zr(s,f){Ir[s]=f}z(zr,"defineMIME");function Do(s){if(typeof s=="string"&&Ir.hasOwnProperty(s))s=Ir[s];else if(s&&typeof s.name=="string"&&Ir.hasOwnProperty(s.name)){var f=Ir[s.name];typeof f=="string"&&(f={name:f}),s=Je(f,s),s.name=f.name}else{if(typeof s=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(s))return Do("application/xml");if(typeof s=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(s))return Do("application/json")}return typeof s=="string"?{name:s}:s||{name:"null"}}z(Do,"resolveMode");function ho(s,f){f=Do(f);var v=$n[f.name];if(!v)return ho(s,"text/plain");var g=v(s,f);if(Mn.hasOwnProperty(f.name)){var T=Mn[f.name];for(var D in T)T.hasOwnProperty(D)&&(g.hasOwnProperty(D)&&(g["_"+D]=g[D]),g[D]=T[D])}if(g.name=f.name,f.helperType&&(g.helperType=f.helperType),f.modeProps)for(var I in f.modeProps)g[I]=f.modeProps[I];return g}z(ho,"getMode");var Mn={};function Ji(s,f){var v=Mn.hasOwnProperty(s)?Mn[s]:Mn[s]={};pe(f,v)}z(Ji,"extendMode");function ji(s,f){if(f===!0)return f;if(s.copyState)return s.copyState(f);var v={};for(var g in f){var T=f[g];T instanceof Array&&(T=T.concat([])),v[g]=T}return v}z(ji,"copyState");function mo(s,f){for(var v;s.innerMode&&(v=s.innerMode(f),!(!v||v.mode==s));)f=v.state,s=v.mode;return v||{mode:s,state:f}}z(mo,"innerMode");function ko(s,f,v){return s.startState?s.startState(f,v):!0}z(ko,"startState");var rr=z(function(s,f,v){this.pos=this.start=0,this.string=s,this.tabSize=f||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=v},"StringStream");rr.prototype.eol=function(){return this.pos>=this.string.length},rr.prototype.sol=function(){return this.pos==this.lineStart},rr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},rr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},rr.prototype.eat=function(s){var f=this.string.charAt(this.pos),v;if(typeof s=="string"?v=f==s:v=f&&(s.test?s.test(f):s(f)),v)return++this.pos,f},rr.prototype.eatWhile=function(s){for(var f=this.pos;this.eat(s););return this.pos>f},rr.prototype.eatSpace=function(){for(var s=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>s},rr.prototype.skipToEnd=function(){this.pos=this.string.length},rr.prototype.skipTo=function(s){var f=this.string.indexOf(s,this.pos);if(f>-1)return this.pos=f,!0},rr.prototype.backUp=function(s){this.pos-=s},rr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ce(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ce(this.string,this.lineStart,this.tabSize):0)},rr.prototype.indentation=function(){return ce(this.string,null,this.tabSize)-(this.lineStart?ce(this.string,this.lineStart,this.tabSize):0)},rr.prototype.match=function(s,f,v){if(typeof s=="string"){var g=z(function(I){return v?I.toLowerCase():I},"cased"),T=this.string.substr(this.pos,s.length);if(g(T)==g(s))return f!==!1&&(this.pos+=s.length),!0}else{var D=this.string.slice(this.pos).match(s);return D&&D.index>0?null:(D&&f!==!1&&(this.pos+=D[0].length),D)}},rr.prototype.current=function(){return this.string.slice(this.start,this.pos)},rr.prototype.hideFirstChars=function(s,f){this.lineStart+=s;try{return f()}finally{this.lineStart-=s}},rr.prototype.lookAhead=function(s){var f=this.lineOracle;return f&&f.lookAhead(s)},rr.prototype.baseToken=function(){var s=this.lineOracle;return s&&s.baseToken(this.pos)};function ft(s,f){if(f-=s.first,f<0||f>=s.size)throw new Error("There is no line "+(f+s.first)+" in the document.");for(var v=s;!v.lines;)for(var g=0;;++g){var T=v.children[g],D=T.chunkSize();if(f<D){v=T;break}f-=D}return v.lines[f]}z(ft,"getLine");function go(s,f,v){var g=[],T=f.line;return s.iter(f.line,v.line+1,function(D){var I=D.text;T==v.line&&(I=I.slice(0,v.ch)),T==f.line&&(I=I.slice(f.ch)),g.push(I),++T}),g}z(go,"getBetween");function Kl(s,f,v){var g=[];return s.iter(f,v,function(T){g.push(T.text)}),g}z(Kl,"getLines");function Hr(s,f){var v=f-s.height;if(v)for(var g=s;g;g=g.parent)g.height+=v}z(Hr,"updateLineHeight");function sn(s){if(s.parent==null)return null;for(var f=s.parent,v=Se(f.lines,s),g=f.parent;g;f=g,g=g.parent)for(var T=0;g.children[T]!=f;++T)v+=g.children[T].chunkSize();return v+f.first}z(sn,"lineNo");function Fr(s,f){var v=s.first;e:do{for(var g=0;g<s.children.length;++g){var T=s.children[g],D=T.height;if(f<D){s=T;continue e}f-=D,v+=T.chunkSize()}return v}while(!s.lines);for(var I=0;I<s.lines.length;++I){var U=s.lines[I],B=U.height;if(f<B)break;f-=B}return v+I}z(Fr,"lineAtHeight");function ta(s,f){return f>=s.first&&f<s.first+s.size}z(ta,"isLine");function rl(s,f){return String(s.lineNumberFormatter(f+s.firstLineNumber))}z(rl,"lineNumberFor");function ze(s,f,v){if(v===void 0&&(v=null),!(this instanceof ze))return new ze(s,f,v);this.line=s,this.ch=f,this.sticky=v}z(ze,"Pos");function Q(s,f){return s.line-f.line||s.ch-f.ch}z(Q,"cmp");function ue(s,f){return s.sticky==f.sticky&&Q(s,f)==0}z(ue,"equalCursorPos");function Ie(s){return ze(s.line,s.ch)}z(Ie,"copyPos");function Qe(s,f){return Q(s,f)<0?f:s}z(Qe,"maxPos");function St(s,f){return Q(s,f)<0?s:f}z(St,"minPos");function en(s,f){return Math.max(s.first,Math.min(f,s.first+s.size-1))}z(en,"clipLine");function st(s,f){if(f.line<s.first)return ze(s.first,0);var v=s.first+s.size-1;return f.line>v?ze(v,ft(s,v).text.length):Nr(f,ft(s,f.line).text.length)}z(st,"clipPos");function Nr(s,f){var v=s.ch;return v==null||v>f?ze(s.line,f):v<0?ze(s.line,0):s}z(Nr,"clipToLen");function Vi(s,f){for(var v=[],g=0;g<f.length;g++)v[g]=st(s,f[g]);return v}z(Vi,"clipPosArray");var Ss=z(function(s,f){this.state=s,this.lookAhead=f},"SavedContext"),Ra=z(function(s,f,v,g){this.state=f,this.doc=s,this.line=v,this.maxLookAhead=g||0,this.baseTokens=null,this.baseTokenPos=1},"Context");Ra.prototype.lookAhead=function(s){var f=this.doc.getLine(this.line+s);return f!=null&&s>this.maxLookAhead&&(this.maxLookAhead=s),f},Ra.prototype.baseToken=function(s){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=s;)this.baseTokenPos+=2;var f=this.baseTokens[this.baseTokenPos+1];return{type:f&&f.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-s}},Ra.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Ra.fromSaved=function(s,f,v){return f instanceof Ss?new Ra(s,ji(s.mode,f.state),v,f.lookAhead):new Ra(s,ji(s.mode,f),v)},Ra.prototype.save=function(s){var f=s!==!1?ji(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Ss(f,this.maxLookAhead):f};function eo(s,f,v,g){var T=[s.state.modeGen],D={};Fp(s,f.text,s.doc.mode,v,function(H,ie){return T.push(H,ie)},D,g);for(var I=v.state,U=z(function(H){v.baseTokens=T;var ie=s.state.overlays[H],le=1,Ee=0;v.state=!0,Fp(s,f.text,ie.mode,v,function(ge,we){for(var Ve=le;Ee<ge;){var Xe=T[le];Xe>ge&&T.splice(le,1,ge,T[le+1],Xe),le+=2,Ee=Math.min(ge,Xe)}if(we)if(ie.opaque)T.splice(Ve,le-Ve,ge,"overlay "+we),le=Ve+2;else for(;Ve<le;Ve+=2){var rt=T[Ve+1];T[Ve+1]=(rt?rt+" ":"")+"overlay "+we}},D),v.state=I,v.baseTokens=null,v.baseTokenPos=1},"loop"),B=0;B<s.state.overlays.length;++B)U(B);return{styles:T,classes:D.bgClass||D.textClass?D:null}}z(eo,"highlightLine");function rd(s,f,v){if(!f.styles||f.styles[0]!=s.state.modeGen){var g=Xl(s,sn(f)),T=f.text.length>s.options.maxHighlightLength&&ji(s.doc.mode,g.state),D=eo(s,f,g);T&&(g.state=T),f.stateAfter=g.save(!T),f.styles=D.styles,D.classes?f.styleClasses=D.classes:f.styleClasses&&(f.styleClasses=null),v===s.doc.highlightFrontier&&(s.doc.modeFrontier=Math.max(s.doc.modeFrontier,++s.doc.highlightFrontier))}return f.styles}z(rd,"getLineStyles");function Xl(s,f,v){var g=s.doc,T=s.display;if(!g.mode.startState)return new Ra(g,!0,f);var D=Rg(s,f,v),I=D>g.first&&ft(g,D-1).stateAfter,U=I?Ra.fromSaved(g,I,D):new Ra(g,ko(g.mode),D);return g.iter(D,f,function(B){fc(s,B.text,U);var H=U.line;B.stateAfter=H==f-1||H%5==0||H>=T.viewFrom&&H<T.viewTo?U.save():null,U.nextLine()}),v&&(g.modeFrontier=U.line),U}z(Xl,"getContextBefore");function fc(s,f,v,g){var T=s.doc.mode,D=new rr(f,s.options.tabSize,v);for(D.start=D.pos=g||0,f==""&&il(T,v.state);!D.eol();)id(T,D,v.state),D.start=D.pos}z(fc,"processLine");function il(s,f){if(s.blankLine)return s.blankLine(f);if(s.innerMode){var v=mo(s,f);if(v.mode.blankLine)return v.mode.blankLine(v.state)}}z(il,"callBlankLine");function id(s,f,v,g){for(var T=0;T<10;T++){g&&(g[0]=mo(s,v).mode);var D=s.token(f,v);if(f.pos>f.start)return D}throw new Error("Mode "+s.name+" failed to advance stream.")}z(id,"readToken");var Dg=z(function(s,f,v){this.start=s.start,this.end=s.pos,this.string=s.current(),this.type=f||null,this.state=v},"Token");function ol(s,f,v,g){var T=s.doc,D=T.mode,I;f=st(T,f);var U=ft(T,f.line),B=Xl(s,f.line,v),H=new rr(U.text,s.options.tabSize,B),ie;for(g&&(ie=[]);(g||H.pos<f.ch)&&!H.eol();)H.start=H.pos,I=id(D,H,B.state),g&&ie.push(new Dg(H,I,ji(T.mode,B.state)));return g?ie:new Dg(H,I,B.state)}z(ol,"takeToken");function kg(s,f){if(s)for(;;){var v=s.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!v)break;s=s.slice(0,v.index)+s.slice(v.index+v[0].length);var g=v[1]?"bgClass":"textClass";f[g]==null?f[g]=v[2]:new RegExp("(?:^|\\s)"+v[2]+"(?:$|\\s)").test(f[g])||(f[g]+=" "+v[2])}return s}z(kg,"extractLineClasses");function Fp(s,f,v,g,T,D,I){var U=v.flattenSpans;U==null&&(U=s.options.flattenSpans);var B=0,H=null,ie=new rr(f,s.options.tabSize,g),le,Ee=s.options.addModeClass&&[null];for(f==""&&kg(il(v,g.state),D);!ie.eol();){if(ie.pos>s.options.maxHighlightLength?(U=!1,I&&fc(s,f,g,ie.pos),ie.pos=f.length,le=null):le=kg(id(v,ie,g.state,Ee),D),Ee){var ge=Ee[0].name;ge&&(le="m-"+(le?ge+" "+le:ge))}if(!U||H!=le){for(;B<ie.start;)B=Math.min(ie.start,B+5e3),T(B,H);H=le}ie.start=ie.pos}for(;B<ie.pos;){var we=Math.min(ie.pos,B+5e3);T(we,H),B=we}}z(Fp,"runMode");function Rg(s,f,v){for(var g,T,D=s.doc,I=v?-1:f-(s.doc.mode.innerMode?1e3:100),U=f;U>I;--U){if(U<=D.first)return D.first;var B=ft(D,U-1),H=B.stateAfter;if(H&&(!v||U+(H instanceof Ss?H.lookAhead:0)<=D.modeFrontier))return U;var ie=ce(B.text,null,s.options.tabSize);(T==null||g>ie)&&(T=U-1,g=ie)}return T}z(Rg,"findStartLine");function Pp(s,f){if(s.modeFrontier=Math.min(s.modeFrontier,f),!(s.highlightFrontier<f-10)){for(var v=s.first,g=f-1;g>v;g--){var T=ft(s,g).stateAfter;if(T&&(!(T instanceof Ss)||g+T.lookAhead<f)){v=g+1;break}}s.highlightFrontier=Math.min(s.highlightFrontier,v)}}z(Pp,"retreatFrontier");var d1=!1,Ts=!1;function od(){d1=!0}z(od,"seeReadOnlySpans");function jp(){Ts=!0}z(jp,"seeCollapsedSpans");function Zl(s,f,v){this.marker=s,this.from=f,this.to=v}z(Zl,"MarkedSpan");function na(s,f){if(s)for(var v=0;v<s.length;++v){var g=s[v];if(g.marker==f)return g}}z(na,"getMarkedSpanFor");function Jl(s,f){for(var v,g=0;g<s.length;++g)s[g]!=f&&(v||(v=[])).push(s[g]);return v}z(Jl,"removeMarkedSpan");function Mg(s,f,v){var g=v&&window.WeakSet&&(v.markedSpans||(v.markedSpans=new WeakSet));g&&s.markedSpans&&g.has(s.markedSpans)?s.markedSpans.push(f):(s.markedSpans=s.markedSpans?s.markedSpans.concat([f]):[f],g&&g.add(s.markedSpans)),f.marker.attachLine(s)}z(Mg,"addMarkedSpan");function Vp(s,f,v){var g;if(s)for(var T=0;T<s.length;++T){var D=s[T],I=D.marker,U=D.from==null||(I.inclusiveLeft?D.from<=f:D.from<f);if(U||D.from==f&&I.type=="bookmark"&&(!v||!D.marker.insertLeft)){var B=D.to==null||(I.inclusiveRight?D.to>=f:D.to>f);(g||(g=[])).push(new Zl(I,D.from,B?null:D.to))}}return g}z(Vp,"markedSpansBefore");function Lg(s,f,v){var g;if(s)for(var T=0;T<s.length;++T){var D=s[T],I=D.marker,U=D.to==null||(I.inclusiveRight?D.to>=f:D.to>f);if(U||D.from==f&&I.type=="bookmark"&&(!v||D.marker.insertLeft)){var B=D.from==null||(I.inclusiveLeft?D.from<=f:D.from<f);(g||(g=[])).push(new Zl(I,B?null:D.from-f,D.to==null?null:D.to-f))}}return g}z(Lg,"markedSpansAfter");function al(s,f){if(f.full)return null;var v=ta(s,f.from.line)&&ft(s,f.from.line).markedSpans,g=ta(s,f.to.line)&&ft(s,f.to.line).markedSpans;if(!v&&!g)return null;var T=f.from.ch,D=f.to.ch,I=Q(f.from,f.to)==0,U=Vp(v,T,I),B=Lg(g,D,I),H=f.text.length==1,ie=Le(f.text).length+(H?T:0);if(U)for(var le=0;le<U.length;++le){var Ee=U[le];if(Ee.to==null){var ge=na(B,Ee.marker);ge?H&&(Ee.to=ge.to==null?null:ge.to+ie):Ee.to=T}}if(B)for(var we=0;we<B.length;++we){var Ve=B[we];if(Ve.to!=null&&(Ve.to+=ie),Ve.from==null){var Xe=na(U,Ve.marker);Xe||(Ve.from=ie,H&&(U||(U=[])).push(Ve))}else Ve.from+=ie,H&&(U||(U=[])).push(Ve)}U&&(U=ra(U)),B&&B!=U&&(B=ra(B));var rt=[U];if(!H){var it=f.text.length-2,et;if(it>0&&U)for(var ut=0;ut<U.length;++ut)U[ut].to==null&&(et||(et=[])).push(new Zl(U[ut].marker,null,null));for(var Ct=0;Ct<it;++Ct)rt.push(et);rt.push(B)}return rt}z(al,"stretchSpansOverChange");function ra(s){for(var f=0;f<s.length;++f){var v=s[f];v.from!=null&&v.from==v.to&&v.marker.clearWhenEmpty!==!1&&s.splice(f--,1)}return s.length?s:null}z(ra,"clearEmptySpans");function Up(s,f,v){var g=null;if(s.iter(f.line,v.line+1,function(ge){if(ge.markedSpans)for(var we=0;we<ge.markedSpans.length;++we){var Ve=ge.markedSpans[we].marker;Ve.readOnly&&(!g||Se(g,Ve)==-1)&&(g||(g=[])).push(Ve)}}),!g)return null;for(var T=[{from:f,to:v}],D=0;D<g.length;++D)for(var I=g[D],U=I.find(0),B=0;B<T.length;++B){var H=T[B];if(!(Q(H.to,U.from)<0||Q(H.from,U.to)>0)){var ie=[B,1],le=Q(H.from,U.from),Ee=Q(H.to,U.to);(le<0||!I.inclusiveLeft&&!le)&&ie.push({from:H.from,to:U.from}),(Ee>0||!I.inclusiveRight&&!Ee)&&ie.push({from:U.to,to:H.to}),T.splice.apply(T,ie),B+=ie.length-3}}return T}z(Up,"removeReadOnlyRanges");function eu(s){var f=s.markedSpans;if(f){for(var v=0;v<f.length;++v)f[v].marker.detachLine(s);s.markedSpans=null}}z(eu,"detachMarkedSpans");function Ma(s,f){if(f){for(var v=0;v<f.length;++v)f[v].marker.attachLine(s);s.markedSpans=f}}z(Ma,"attachMarkedSpans");function tu(s){return s.inclusiveLeft?-1:0}z(tu,"extraLeft");function sl(s){return s.inclusiveRight?1:0}z(sl,"extraRight");function ad(s,f){var v=s.lines.length-f.lines.length;if(v!=0)return v;var g=s.find(),T=f.find(),D=Q(g.from,T.from)||tu(s)-tu(f);if(D)return-D;var I=Q(g.to,T.to)||sl(s)-sl(f);return I||f.id-s.id}z(ad,"compareCollapsedMarkers");function dc(s,f){var v=Ts&&s.markedSpans,g;if(v)for(var T=void 0,D=0;D<v.length;++D)T=v[D],T.marker.collapsed&&(f?T.from:T.to)==null&&(!g||ad(g,T.marker)<0)&&(g=T.marker);return g}z(dc,"collapsedSpanAtSide");function pc(s){return dc(s,!0)}z(pc,"collapsedSpanAtStart");function hc(s){return dc(s,!1)}z(hc,"collapsedSpanAtEnd");function Ui(s,f){var v=Ts&&s.markedSpans,g;if(v)for(var T=0;T<v.length;++T){var D=v[T];D.marker.collapsed&&(D.from==null||D.from<f)&&(D.to==null||D.to>f)&&(!g||ad(g,D.marker)<0)&&(g=D.marker)}return g}z(Ui,"collapsedSpanAround");function xs(s,f,v,g,T){var D=ft(s,f),I=Ts&&D.markedSpans;if(I)for(var U=0;U<I.length;++U){var B=I[U];if(B.marker.collapsed){var H=B.marker.find(0),ie=Q(H.from,v)||tu(B.marker)-tu(T),le=Q(H.to,g)||sl(B.marker)-sl(T);if(!(ie>=0&&le<=0||ie<=0&&le>=0)&&(ie<=0&&(B.marker.inclusiveRight&&T.inclusiveLeft?Q(H.to,v)>=0:Q(H.to,v)>0)||ie>=0&&(B.marker.inclusiveRight&&T.inclusiveLeft?Q(H.from,g)<=0:Q(H.from,g)<0)))return!0}}}z(xs,"conflictingCollapsedRange");function qi(s){for(var f;f=pc(s);)s=f.find(-1,!0).line;return s}z(qi,"visualLine");function mc(s){for(var f;f=hc(s);)s=f.find(1,!0).line;return s}z(mc,"visualLineEnd");function p1(s){for(var f,v;f=hc(s);)s=f.find(1,!0).line,(v||(v=[])).push(s);return v}z(p1,"visualLineContinued");function gc(s,f){var v=ft(s,f),g=qi(v);return v==g?f:sn(g)}z(gc,"visualLineNo");function sd(s,f){if(f>s.lastLine())return f;var v=ft(s,f),g;if(!vo(s,v))return f;for(;g=hc(v);)v=g.find(1,!0).line;return sn(v)+1}z(sd,"visualLineEndNo");function vo(s,f){var v=Ts&&f.markedSpans;if(v){for(var g=void 0,T=0;T<v.length;++T)if(g=v[T],!!g.marker.collapsed&&(g.from==null||!g.marker.widgetNode&&g.from==0&&g.marker.inclusiveLeft&&nu(s,f,g)))return!0}}z(vo,"lineIsHidden");function nu(s,f,v){if(v.to==null){var g=v.marker.find(1,!0);return nu(s,g.line,na(g.line.markedSpans,v.marker))}if(v.marker.inclusiveRight&&v.to==f.text.length)return!0;for(var T=void 0,D=0;D<f.markedSpans.length;++D)if(T=f.markedSpans[D],T.marker.collapsed&&!T.marker.widgetNode&&T.from==v.to&&(T.to==null||T.to!=v.from)&&(T.marker.inclusiveLeft||v.marker.inclusiveRight)&&nu(s,f,T))return!0}z(nu,"lineIsHiddenInner");function ia(s){s=qi(s);for(var f=0,v=s.parent,g=0;g<v.lines.length;++g){var T=v.lines[g];if(T==s)break;f+=T.height}for(var D=v.parent;D;v=D,D=v.parent)for(var I=0;I<D.children.length;++I){var U=D.children[I];if(U==v)break;f+=U.height}return f}z(ia,"heightAtLine");function ld(s){if(s.height==0)return 0;for(var f=s.text.length,v,g=s;v=pc(g);){var T=v.find(0,!0);g=T.from.line,f+=T.from.ch-T.to.ch}for(g=s;v=hc(g);){var D=v.find(0,!0);f-=g.text.length-D.from.ch,g=D.to.line,f+=g.text.length-D.to.ch}return f}z(ld,"lineLength");function qp(s){var f=s.display,v=s.doc;f.maxLine=ft(v,v.first),f.maxLineLength=ld(f.maxLine),f.maxLineChanged=!0,v.iter(function(g){var T=ld(g);T>f.maxLineLength&&(f.maxLineLength=T,f.maxLine=g)})}z(qp,"findMaxLine");var vc=z(function(s,f,v){this.text=s,Ma(this,f),this.height=v?v(this):1},"Line");vc.prototype.lineNo=function(){return sn(this)},Lr(vc);function Bp(s,f,v,g){s.text=f,s.stateAfter&&(s.stateAfter=null),s.styles&&(s.styles=null),s.order!=null&&(s.order=null),eu(s),Ma(s,v);var T=g?g(s):1;T!=s.height&&Hr(s,T)}z(Bp,"updateLine");function h1(s){s.parent=null,eu(s)}z(h1,"cleanUpLine");var p_={},h_={};function Ig(s,f){if(!s||/^\s*$/.test(s))return null;var v=f.addModeClass?h_:p_;return v[s]||(v[s]=s.replace(/\S+/g,"cm-$&"))}z(Ig,"interpretTokenStyle");function Fg(s,f){var v=q("span",null,null,m?"padding-right: .1px":null),g={pre:q("pre",[v],"CodeMirror-line"),content:v,col:0,pos:0,cm:s,trailingSpace:!1,splitSpaces:s.getOption("lineWrapping")};f.measure={};for(var T=0;T<=(f.rest?f.rest.length:0);T++){var D=T?f.rest[T-1]:f.line,I=void 0;g.pos=0,g.addToken=m1,En(s.display.measure)&&(I=Vt(D,s.doc.direction))&&(g.addToken=v1(g.addToken,I)),g.map=[];var U=f!=s.display.externalMeasured&&sn(D);$p(D,g,rd(s,D,U)),D.styleClasses&&(D.styleClasses.bgClass&&(g.bgClass=Z(D.styleClasses.bgClass,g.bgClass||"")),D.styleClasses.textClass&&(g.textClass=Z(D.styleClasses.textClass,g.textClass||""))),g.map.length==0&&g.map.push(0,0,g.content.appendChild(fn(s.display.measure))),T==0?(f.measure.map=g.map,f.measure.cache={}):((f.measure.maps||(f.measure.maps=[])).push(g.map),(f.measure.caches||(f.measure.caches=[])).push({}))}if(m){var B=g.content.lastChild;(/\bcm-tab\b/.test(B.className)||B.querySelector&&B.querySelector(".cm-tab"))&&(g.content.className="cm-tab-wrap-hack")}return mt(s,"renderLine",s,f.line,g.pre),g.pre.className&&(g.textClass=Z(g.pre.className,g.textClass||"")),g}z(Fg,"buildLineContent");function Pg(s){var f=W("span","•","cm-invalidchar");return f.title="\\u"+s.charCodeAt(0).toString(16),f.setAttribute("aria-label",f.title),f}z(Pg,"defaultSpecialCharPlaceholder");function m1(s,f,v,g,T,D,I){if(f){var U=s.splitSpaces?g1(f,s.trailingSpace):f,B=s.cm.state.specialChars,H=!1,ie;if(!B.test(f))s.col+=f.length,ie=document.createTextNode(U),s.map.push(s.pos,s.pos+f.length,ie),p&&d<9&&(H=!0),s.pos+=f.length;else{ie=document.createDocumentFragment();for(var le=0;;){B.lastIndex=le;var Ee=B.exec(f),ge=Ee?Ee.index-le:f.length-le;if(ge){var we=document.createTextNode(U.slice(le,le+ge));p&&d<9?ie.appendChild(W("span",[we])):ie.appendChild(we),s.map.push(s.pos,s.pos+ge,we),s.col+=ge,s.pos+=ge}if(!Ee)break;le+=ge+1;var Ve=void 0;if(Ee[0]=="	"){var Xe=s.cm.options.tabSize,rt=Xe-s.col%Xe;Ve=ie.appendChild(W("span",ye(rt),"cm-tab")),Ve.setAttribute("role","presentation"),Ve.setAttribute("cm-text","	"),s.col+=rt}else Ee[0]=="\r"||Ee[0]==`
`?(Ve=ie.appendChild(W("span",Ee[0]=="\r"?"␍":"␤","cm-invalidchar")),Ve.setAttribute("cm-text",Ee[0]),s.col+=1):(Ve=s.cm.options.specialCharPlaceholder(Ee[0]),Ve.setAttribute("cm-text",Ee[0]),p&&d<9?ie.appendChild(W("span",[Ve])):ie.appendChild(Ve),s.col+=1);s.map.push(s.pos,s.pos+1,Ve),s.pos++}}if(s.trailingSpace=U.charCodeAt(f.length-1)==32,v||g||T||H||D||I){var it=v||"";g&&(it+=g),T&&(it+=T);var et=W("span",[ie],it,D);if(I)for(var ut in I)I.hasOwnProperty(ut)&&ut!="style"&&ut!="class"&&et.setAttribute(ut,I[ut]);return s.content.appendChild(et)}s.content.appendChild(ie)}}z(m1,"buildToken");function g1(s,f){if(s.length>1&&!/  /.test(s))return s;for(var v=f,g="",T=0;T<s.length;T++){var D=s.charAt(T);D==" "&&v&&(T==s.length-1||s.charCodeAt(T+1)==32)&&(D=" "),g+=D,v=D==" "}return g}z(g1,"splitSpaces");function v1(s,f){return function(v,g,T,D,I,U,B){T=T?T+" cm-force-border":"cm-force-border";for(var H=v.pos,ie=H+g.length;;){for(var le=void 0,Ee=0;Ee<f.length&&(le=f[Ee],!(le.to>H&&le.from<=H));Ee++);if(le.to>=ie)return s(v,g,T,D,I,U,B);s(v,g.slice(0,le.to-H),T,D,null,U,B),D=null,g=g.slice(le.to-H),H=le.to}}}z(v1,"buildTokenBadBidi");function jg(s,f,v,g){var T=!g&&v.widgetNode;T&&s.map.push(s.pos,s.pos+f,T),!g&&s.cm.display.input.needsContentAttribute&&(T||(T=s.content.appendChild(document.createElement("span"))),T.setAttribute("cm-marker",v.id)),T&&(s.cm.display.input.setUneditable(T),s.content.appendChild(T)),s.pos+=f,s.trailingSpace=!1}z(jg,"buildCollapsedSpan");function $p(s,f,v){var g=s.markedSpans,T=s.text,D=0;if(!g){for(var I=1;I<v.length;I+=2)f.addToken(f,T.slice(D,D=v[I]),Ig(v[I+1],f.cm.options));return}for(var U=T.length,B=0,H=1,ie="",le,Ee,ge=0,we,Ve,Xe,rt,it;;){if(ge==B){we=Ve=Xe=Ee="",it=null,rt=null,ge=1/0;for(var et=[],ut=void 0,Ct=0;Ct<g.length;++Ct){var yt=g[Ct],kt=yt.marker;if(kt.type=="bookmark"&&yt.from==B&&kt.widgetNode)et.push(kt);else if(yt.from<=B&&(yt.to==null||yt.to>B||kt.collapsed&&yt.to==B&&yt.from==B)){if(yt.to!=null&&yt.to!=B&&ge>yt.to&&(ge=yt.to,Ve=""),kt.className&&(we+=" "+kt.className),kt.css&&(Ee=(Ee?Ee+";":"")+kt.css),kt.startStyle&&yt.from==B&&(Xe+=" "+kt.startStyle),kt.endStyle&&yt.to==ge&&(ut||(ut=[])).push(kt.endStyle,yt.to),kt.title&&((it||(it={})).title=kt.title),kt.attributes)for(var In in kt.attributes)(it||(it={}))[In]=kt.attributes[In];kt.collapsed&&(!rt||ad(rt.marker,kt)<0)&&(rt=yt)}else yt.from>B&&ge>yt.from&&(ge=yt.from)}if(ut)for(var kr=0;kr<ut.length;kr+=2)ut[kr+1]==ge&&(Ve+=" "+ut[kr]);if(!rt||rt.from==B)for(var Hn=0;Hn<et.length;++Hn)jg(f,0,et[Hn]);if(rt&&(rt.from||0)==B){if(jg(f,(rt.to==null?U+1:rt.to)-B,rt.marker,rt.from==null),rt.to==null)return;rt.to==B&&(rt=!1)}}if(B>=U)break;for(var gi=Math.min(U,ge);;){if(ie){var vi=B+ie.length;if(!rt){var ir=vi>gi?ie.slice(0,gi-B):ie;f.addToken(f,ir,le?le+we:we,Xe,B+ir.length==ge?Ve:"",Ee,it)}if(vi>=gi){ie=ie.slice(gi-B),B=gi;break}B=vi,Xe=""}ie=T.slice(D,D=v[H++]),le=Ig(v[H++],f.cm.options)}}}z($p,"insertLineContent");function Vg(s,f,v){this.line=f,this.rest=p1(f),this.size=this.rest?sn(Le(this.rest))-v+1:1,this.node=this.text=null,this.hidden=vo(s,f)}z(Vg,"LineView");function ud(s,f,v){for(var g=[],T,D=f;D<v;D=T){var I=new Vg(s.doc,ft(s.doc,D),D);T=D+I.size,g.push(I)}return g}z(ud,"buildViewArray");var yc=null;function Ug(s){yc?yc.ops.push(s):s.ownsGroup=yc={ops:[s],delayedCallbacks:[]}}z(Ug,"pushOperation");function y1(s){var f=s.delayedCallbacks,v=0;do{for(;v<f.length;v++)f[v].call(null);for(var g=0;g<s.ops.length;g++){var T=s.ops[g];if(T.cursorActivityHandlers)for(;T.cursorActivityCalled<T.cursorActivityHandlers.length;)T.cursorActivityHandlers[T.cursorActivityCalled++].call(null,T.cm)}}while(v<f.length)}z(y1,"fireCallbacksForOps");function b1(s,f){var v=s.ownsGroup;if(v)try{y1(v)}finally{yc=null,f(v)}}z(b1,"finishOperation");var cd=null;function Pr(s,f){var v=Bn(s,f);if(v.length){var g=Array.prototype.slice.call(arguments,2),T;yc?T=yc.delayedCallbacks:cd?T=cd:(T=cd=[],setTimeout(E1,0));for(var D=z(function(U){T.push(function(){return v[U].apply(null,g)})},"loop"),I=0;I<v.length;++I)D(I)}}z(Pr,"signalLater");function E1(){var s=cd;cd=null;for(var f=0;f<s.length;++f)s[f]()}z(E1,"fireOrphanDelayed");function qg(s,f,v,g){for(var T=0;T<f.changes.length;T++){var D=f.changes[T];D=="text"?zp(s,f):D=="gutter"?$g(s,f,v,g):D=="class"?ll(s,f):D=="widget"&&zg(s,f,g)}f.changes=null}z(qg,"updateLineForChanges");function bc(s){return s.node==s.text&&(s.node=W("div",null,null,"position: relative"),s.text.parentNode&&s.text.parentNode.replaceChild(s.node,s.text),s.node.appendChild(s.text),p&&d<8&&(s.node.style.zIndex=2)),s.node}z(bc,"ensureLineWrapped");function S1(s,f){var v=f.bgClass?f.bgClass+" "+(f.line.bgClass||""):f.line.bgClass;if(v&&(v+=" CodeMirror-linebackground"),f.background)v?f.background.className=v:(f.background.parentNode.removeChild(f.background),f.background=null);else if(v){var g=bc(f);f.background=g.insertBefore(W("div",null,v),g.firstChild),s.display.input.setUneditable(f.background)}}z(S1,"updateLineBackground");function Bg(s,f){var v=s.display.externalMeasured;return v&&v.line==f.line?(s.display.externalMeasured=null,f.measure=v.measure,v.built):Fg(s,f)}z(Bg,"getLineContent");function zp(s,f){var v=f.text.className,g=Bg(s,f);f.text==f.node&&(f.node=g.pre),f.text.parentNode.replaceChild(g.pre,f.text),f.text=g.pre,g.bgClass!=f.bgClass||g.textClass!=f.textClass?(f.bgClass=g.bgClass,f.textClass=g.textClass,ll(s,f)):v&&(f.text.className=v)}z(zp,"updateLineText");function ll(s,f){S1(s,f),f.line.wrapClass?bc(f).className=f.line.wrapClass:f.node!=f.text&&(f.node.className="");var v=f.textClass?f.textClass+" "+(f.line.textClass||""):f.line.textClass;f.text.className=v||""}z(ll,"updateLineClasses");function $g(s,f,v,g){if(f.gutter&&(f.node.removeChild(f.gutter),f.gutter=null),f.gutterBackground&&(f.node.removeChild(f.gutterBackground),f.gutterBackground=null),f.line.gutterClass){var T=bc(f);f.gutterBackground=W("div",null,"CodeMirror-gutter-background "+f.line.gutterClass,"left: "+(s.options.fixedGutter?g.fixedPos:-g.gutterTotalWidth)+"px; width: "+g.gutterTotalWidth+"px"),s.display.input.setUneditable(f.gutterBackground),T.insertBefore(f.gutterBackground,f.text)}var D=f.line.gutterMarkers;if(s.options.lineNumbers||D){var I=bc(f),U=f.gutter=W("div",null,"CodeMirror-gutter-wrapper","left: "+(s.options.fixedGutter?g.fixedPos:-g.gutterTotalWidth)+"px");if(U.setAttribute("aria-hidden","true"),s.display.input.setUneditable(U),I.insertBefore(U,f.text),f.line.gutterClass&&(U.className+=" "+f.line.gutterClass),s.options.lineNumbers&&(!D||!D["CodeMirror-linenumbers"])&&(f.lineNumber=U.appendChild(W("div",rl(s.options,v),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+g.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+s.display.lineNumInnerWidth+"px"))),D)for(var B=0;B<s.display.gutterSpecs.length;++B){var H=s.display.gutterSpecs[B].className,ie=D.hasOwnProperty(H)&&D[H];ie&&U.appendChild(W("div",[ie],"CodeMirror-gutter-elt","left: "+g.gutterLeft[H]+"px; width: "+g.gutterWidth[H]+"px"))}}}z($g,"updateLineGutter");function zg(s,f,v){f.alignable&&(f.alignable=null);for(var g=$("CodeMirror-linewidget"),T=f.node.firstChild,D=void 0;T;T=D)D=T.nextSibling,g.test(T.className)&&f.node.removeChild(T);Hp(s,f,v)}z(zg,"updateLineWidgets");function Hg(s,f,v,g){var T=Bg(s,f);return f.text=f.node=T.pre,T.bgClass&&(f.bgClass=T.bgClass),T.textClass&&(f.textClass=T.textClass),ll(s,f),$g(s,f,v,g),Hp(s,f,g),f.node}z(Hg,"buildLineElement");function Hp(s,f,v){if(Gp(s,f.line,f,v,!0),f.rest)for(var g=0;g<f.rest.length;g++)Gp(s,f.rest[g],f,v,!1)}z(Hp,"insertLineWidgets");function Gp(s,f,v,g,T){if(f.widgets)for(var D=bc(v),I=0,U=f.widgets;I<U.length;++I){var B=U[I],H=W("div",[B.node],"CodeMirror-linewidget"+(B.className?" "+B.className:""));B.handleMouseEvents||H.setAttribute("cm-ignore-events","true"),Gg(B,H,v,g),s.display.input.setUneditable(H),T&&B.above?D.insertBefore(H,v.gutter||v.text):D.appendChild(H),Pr(B,"redraw")}}z(Gp,"insertLineWidgetsFor");function Gg(s,f,v,g){if(s.noHScroll){(v.alignable||(v.alignable=[])).push(f);var T=g.wrapperWidth;f.style.left=g.fixedPos+"px",s.coverGutter||(T-=g.gutterTotalWidth,f.style.paddingLeft=g.gutterTotalWidth+"px"),f.style.width=T+"px"}s.coverGutter&&(f.style.zIndex=5,f.style.position="relative",s.noHScroll||(f.style.marginLeft=-g.gutterTotalWidth+"px"))}z(Gg,"positionLineWidget");function oa(s){if(s.height!=null)return s.height;var f=s.doc.cm;if(!f)return 0;if(!re(document.body,s.node)){var v="position: relative;";s.coverGutter&&(v+="margin-left: -"+f.display.gutters.offsetWidth+"px;"),s.noHScroll&&(v+="width: "+f.display.wrapper.clientWidth+"px;"),J(f.display.measure,W("div",[s.node],null,v))}return s.height=s.node.parentNode.offsetHeight}z(oa,"widgetHeight");function La(s,f){for(var v=cn(f);v!=s.wrapper;v=v.parentNode)if(!v||v.nodeType==1&&v.getAttribute("cm-ignore-events")=="true"||v.parentNode==s.sizer&&v!=s.mover)return!0}z(La,"eventInWidget");function fd(s){return s.lineSpace.offsetTop}z(fd,"paddingTop");function Yp(s){return s.mover.offsetHeight-s.lineSpace.offsetHeight}z(Yp,"paddingVert");function Wp(s){if(s.cachedPaddingH)return s.cachedPaddingH;var f=J(s.measure,W("pre","x","CodeMirror-line-like")),v=window.getComputedStyle?window.getComputedStyle(f):f.currentStyle,g={left:parseInt(v.paddingLeft),right:parseInt(v.paddingRight)};return!isNaN(g.left)&&!isNaN(g.right)&&(s.cachedPaddingH=g),g}z(Wp,"paddingH");function Ro(s){return je-s.display.nativeBarWidth}z(Ro,"scrollGap");function Mo(s){return s.display.scroller.clientWidth-Ro(s)-s.display.barWidth}z(Mo,"displayWidth");function ul(s){return s.display.scroller.clientHeight-Ro(s)-s.display.barHeight}z(ul,"displayHeight");function T1(s,f,v){var g=s.options.lineWrapping,T=g&&Mo(s);if(!f.measure.heights||g&&f.measure.width!=T){var D=f.measure.heights=[];if(g){f.measure.width=T;for(var I=f.text.firstChild.getClientRects(),U=0;U<I.length-1;U++){var B=I[U],H=I[U+1];Math.abs(B.bottom-H.bottom)>2&&D.push((B.bottom+H.top)/2-v.top)}}D.push(v.bottom-v.top)}}z(T1,"ensureLineHeights");function Ec(s,f,v){if(s.line==f)return{map:s.measure.map,cache:s.measure.cache};if(s.rest){for(var g=0;g<s.rest.length;g++)if(s.rest[g]==f)return{map:s.measure.maps[g],cache:s.measure.caches[g]};for(var T=0;T<s.rest.length;T++)if(sn(s.rest[T])>v)return{map:s.measure.maps[T],cache:s.measure.caches[T],before:!0}}}z(Ec,"mapFromLineView");function Yg(s,f){f=qi(f);var v=sn(f),g=s.display.externalMeasured=new Vg(s.doc,f,v);g.lineN=v;var T=g.built=Fg(s,g);return g.text=T.pre,J(s.display.lineMeasure,T.pre),g}z(Yg,"updateExternalMeasurement");function Qp(s,f,v,g){return Lo(s,ws(s,f),v,g)}z(Qp,"measureChar");function Sc(s,f){if(f>=s.display.viewFrom&&f<s.display.viewTo)return s.display.view[_s(s,f)];var v=s.display.externalMeasured;if(v&&f>=v.lineN&&f<v.lineN+v.size)return v}z(Sc,"findViewForLine");function ws(s,f){var v=sn(f),g=Sc(s,v);g&&!g.text?g=null:g&&g.changes&&(qg(s,g,v,hd(s)),s.curOp.forceUpdate=!0),g||(g=Yg(s,f));var T=Ec(g,f,v);return{line:f,view:g,rect:null,map:T.map,cache:T.cache,before:T.before,hasHeights:!1}}z(ws,"prepareMeasureForLine");function Lo(s,f,v,g,T){f.before&&(v=-1);var D=v+(g||""),I;return f.cache.hasOwnProperty(D)?I=f.cache[D]:(f.rect||(f.rect=f.view.text.getBoundingClientRect()),f.hasHeights||(T1(s,f.view,f.rect),f.hasHeights=!0),I=w1(s,f,v,g),I.bogus||(f.cache[D]=I)),{left:I.left,right:I.right,top:T?I.rtop:I.top,bottom:T?I.rbottom:I.bottom}}z(Lo,"measureCharPrepared");var Wg={left:0,right:0,top:0,bottom:0};function Kp(s,f,v){for(var g,T,D,I,U,B,H=0;H<s.length;H+=3)if(U=s[H],B=s[H+1],f<U?(T=0,D=1,I="left"):f<B?(T=f-U,D=T+1):(H==s.length-3||f==B&&s[H+3]>f)&&(D=B-U,T=D-1,f>=B&&(I="right")),T!=null){if(g=s[H+2],U==B&&v==(g.insertLeft?"left":"right")&&(I=v),v=="left"&&T==0)for(;H&&s[H-2]==s[H-3]&&s[H-1].insertLeft;)g=s[(H-=3)+2],I="left";if(v=="right"&&T==B-U)for(;H<s.length-3&&s[H+3]==s[H+4]&&!s[H+5].insertLeft;)g=s[(H+=3)+2],I="right";break}return{node:g,start:T,end:D,collapse:I,coverStart:U,coverEnd:B}}z(Kp,"nodeAndOffsetInLineMap");function x1(s,f){var v=Wg;if(f=="left")for(var g=0;g<s.length&&(v=s[g]).left==v.right;g++);else for(var T=s.length-1;T>=0&&(v=s[T]).left==v.right;T--);return v}z(x1,"getUsefulRect");function w1(s,f,v,g){var T=Kp(f.map,v,g),D=T.node,I=T.start,U=T.end,B=T.collapse,H;if(D.nodeType==3){for(var ie=0;ie<4;ie++){for(;I&&ht(f.line.text.charAt(T.coverStart+I));)--I;for(;T.coverStart+U<T.coverEnd&&ht(f.line.text.charAt(T.coverStart+U));)++U;if(p&&d<9&&I==0&&U==T.coverEnd-T.coverStart?H=D.parentNode.getBoundingClientRect():H=x1(te(D,I,U).getClientRects(),g),H.left||H.right||I==0)break;U=I,I=I-1,B="right"}p&&d<11&&(H=C1(s.display.measure,H))}else{I>0&&(B=g="right");var le;s.options.lineWrapping&&(le=D.getClientRects()).length>1?H=le[g=="right"?le.length-1:0]:H=D.getBoundingClientRect()}if(p&&d<9&&!I&&(!H||!H.left&&!H.right)){var Ee=D.parentNode.getClientRects()[0];Ee?H={left:Ee.left,right:Ee.left+pl(s.display),top:Ee.top,bottom:Ee.bottom}:H=Wg}for(var ge=H.top-f.rect.top,we=H.bottom-f.rect.top,Ve=(ge+we)/2,Xe=f.view.measure.heights,rt=0;rt<Xe.length-1&&!(Ve<Xe[rt]);rt++);var it=rt?Xe[rt-1]:0,et=Xe[rt],ut={left:(B=="right"?H.right:H.left)-f.rect.left,right:(B=="left"?H.left:H.right)-f.rect.left,top:it,bottom:et};return!H.left&&!H.right&&(ut.bogus=!0),s.options.singleCursorHeightPerLine||(ut.rtop=ge,ut.rbottom=we),ut}z(w1,"measureCharInner");function C1(s,f){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Tr(s))return f;var v=screen.logicalXDPI/screen.deviceXDPI,g=screen.logicalYDPI/screen.deviceYDPI;return{left:f.left*v,right:f.right*v,top:f.top*g,bottom:f.bottom*g}}z(C1,"maybeUpdateRectForZooming");function Qg(s){if(s.measure&&(s.measure.cache={},s.measure.heights=null,s.rest))for(var f=0;f<s.rest.length;f++)s.measure.caches[f]={}}z(Qg,"clearLineMeasurementCacheFor");function Kg(s){s.display.externalMeasure=null,ee(s.display.lineMeasure);for(var f=0;f<s.display.view.length;f++)Qg(s.display.view[f])}z(Kg,"clearLineMeasurementCache");function Zr(s){Kg(s),s.display.cachedCharWidth=s.display.cachedTextHeight=s.display.cachedPaddingH=null,s.options.lineWrapping||(s.display.maxLineChanged=!0),s.display.lineNumChars=null}z(Zr,"clearCaches");function ru(){return b&&A?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}z(ru,"pageScrollX");function Xp(){return b&&A?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}z(Xp,"pageScrollY");function dd(s){var f=qi(s),v=f.widgets,g=0;if(v)for(var T=0;T<v.length;++T)v[T].above&&(g+=oa(v[T]));return g}z(dd,"widgetTopHeight");function Tc(s,f,v,g,T){if(!T){var D=dd(f);v.top+=D,v.bottom+=D}if(g=="line")return v;g||(g="local");var I=ia(f);if(g=="local"?I+=fd(s.display):I-=s.display.viewOffset,g=="page"||g=="window"){var U=s.display.lineSpace.getBoundingClientRect();I+=U.top+(g=="window"?0:Xp());var B=U.left+(g=="window"?0:ru());v.left+=B,v.right+=B}return v.top+=I,v.bottom+=I,v}z(Tc,"intoCoordSystem");function Zp(s,f,v){if(v=="div")return f;var g=f.left,T=f.top;if(v=="page")g-=ru(),T-=Xp();else if(v=="local"||!v){var D=s.display.sizer.getBoundingClientRect();g+=D.left,T+=D.top}var I=s.display.lineSpace.getBoundingClientRect();return{left:g-I.left,top:T-I.top}}z(Zp,"fromCoordSystem");function iu(s,f,v,g,T){return g||(g=ft(s.doc,f.line)),Tc(s,g,Qp(s,g,f.ch,T),v)}z(iu,"charCoords");function Io(s,f,v,g,T,D){g=g||ft(s.doc,f.line),T||(T=ws(s,g));function I(we,Ve){var Xe=Lo(s,T,we,Ve?"right":"left",D);return Ve?Xe.left=Xe.right:Xe.right=Xe.left,Tc(s,g,Xe,v)}z(I,"get");var U=Vt(g,s.doc.direction),B=f.ch,H=f.sticky;if(B>=g.text.length?(B=g.text.length,H="before"):B<=0&&(B=0,H="after"),!U)return I(H=="before"?B-1:B,H=="before");function ie(we,Ve,Xe){var rt=U[Ve],it=rt.level==1;return I(Xe?we-1:we,it!=Xe)}z(ie,"getBidi");var le=pt(U,B,H),Ee=Et,ge=ie(B,le,H=="before");return Ee!=null&&(ge.other=ie(B,Ee,H!="before")),ge}z(Io,"cursorCoords");function cl(s,f){var v=0;f=st(s.doc,f),s.options.lineWrapping||(v=pl(s.display)*f.ch);var g=ft(s.doc,f.line),T=ia(g)+fd(s.display);return{left:v,right:v,top:T,bottom:T+g.height}}z(cl,"estimateCoords");function xc(s,f,v,g,T){var D=ze(s,f,v);return D.xRel=T,g&&(D.outside=g),D}z(xc,"PosWithInfo");function fl(s,f,v){var g=s.doc;if(v+=s.display.viewOffset,v<0)return xc(g.first,0,null,-1,-1);var T=Fr(g,v),D=g.first+g.size-1;if(T>D)return xc(g.first+g.size-1,ft(g,D).text.length,null,1,1);f<0&&(f=0);for(var I=ft(g,T);;){var U=ou(s,I,T,f,v),B=Ui(I,U.ch+(U.xRel>0||U.outside>0?1:0));if(!B)return U;var H=B.find(1);if(H.line==T)return H;I=ft(g,T=H.line)}}z(fl,"coordsChar");function pd(s,f,v,g){g-=dd(f);var T=f.text.length,D=jt(function(I){return Lo(s,v,I-1).bottom<=g},T,0);return T=jt(function(I){return Lo(s,v,I).top>g},D,T),{begin:D,end:T}}z(pd,"wrappedLineExtent");function Jp(s,f,v,g){v||(v=ws(s,f));var T=Tc(s,f,Lo(s,v,g),"line").top;return pd(s,f,v,T)}z(Jp,"wrappedLineExtentChar");function Ia(s,f,v,g){return s.bottom<=v?!1:s.top>v?!0:(g?s.left:s.right)>f}z(Ia,"boxIsAfter");function ou(s,f,v,g,T){T-=ia(f);var D=ws(s,f),I=dd(f),U=0,B=f.text.length,H=!0,ie=Vt(f,s.doc.direction);if(ie){var le=(s.options.lineWrapping?Xg:eh)(s,f,v,D,ie,g,T);H=le.level!=1,U=H?le.from:le.to-1,B=H?le.to:le.from-1}var Ee=null,ge=null,we=jt(function(Ct){var yt=Lo(s,D,Ct);return yt.top+=I,yt.bottom+=I,Ia(yt,g,T,!1)?(yt.top<=T&&yt.left<=g&&(Ee=Ct,ge=yt),!0):!1},U,B),Ve,Xe,rt=!1;if(ge){var it=g-ge.left<ge.right-g,et=it==H;we=Ee+(et?0:1),Xe=et?"after":"before",Ve=it?ge.left:ge.right}else{!H&&(we==B||we==U)&&we++,Xe=we==0?"after":we==f.text.length?"before":Lo(s,D,we-(H?1:0)).bottom+I<=T==H?"after":"before";var ut=Io(s,ze(v,we,Xe),"line",f,D);Ve=ut.left,rt=T<ut.top?-1:T>=ut.bottom?1:0}return we=Dt(f.text,we,1),xc(v,we,Xe,rt,g-Ve)}z(ou,"coordsCharInner");function eh(s,f,v,g,T,D,I){var U=jt(function(le){var Ee=T[le],ge=Ee.level!=1;return Ia(Io(s,ze(v,ge?Ee.to:Ee.from,ge?"before":"after"),"line",f,g),D,I,!0)},0,T.length-1),B=T[U];if(U>0){var H=B.level!=1,ie=Io(s,ze(v,H?B.from:B.to,H?"after":"before"),"line",f,g);Ia(ie,D,I,!0)&&ie.top>I&&(B=T[U-1])}return B}z(eh,"coordsBidiPart");function Xg(s,f,v,g,T,D,I){var U=pd(s,f,g,I),B=U.begin,H=U.end;/\s/.test(f.text.charAt(H-1))&&H--;for(var ie=null,le=null,Ee=0;Ee<T.length;Ee++){var ge=T[Ee];if(!(ge.from>=H||ge.to<=B)){var we=ge.level!=1,Ve=Lo(s,g,we?Math.min(H,ge.to)-1:Math.max(B,ge.from)).right,Xe=Ve<D?D-Ve+1e9:Ve-D;(!ie||le>Xe)&&(ie=ge,le=Xe)}}return ie||(ie=T[T.length-1]),ie.from<B&&(ie={from:B,to:ie.to,level:ie.level}),ie.to>H&&(ie={from:ie.from,to:H,level:ie.level}),ie}z(Xg,"coordsBidiPartWrapped");var yo;function dl(s){if(s.cachedTextHeight!=null)return s.cachedTextHeight;if(yo==null){yo=W("pre",null,"CodeMirror-line-like");for(var f=0;f<49;++f)yo.appendChild(document.createTextNode("x")),yo.appendChild(W("br"));yo.appendChild(document.createTextNode("x"))}J(s.measure,yo);var v=yo.offsetHeight/50;return v>3&&(s.cachedTextHeight=v),ee(s.measure),v||1}z(dl,"textHeight");function pl(s){if(s.cachedCharWidth!=null)return s.cachedCharWidth;var f=W("span","xxxxxxxxxx"),v=W("pre",[f],"CodeMirror-line-like");J(s.measure,v);var g=f.getBoundingClientRect(),T=(g.right-g.left)/10;return T>2&&(s.cachedCharWidth=T),T||10}z(pl,"charWidth");function hd(s){for(var f=s.display,v={},g={},T=f.gutters.clientLeft,D=f.gutters.firstChild,I=0;D;D=D.nextSibling,++I){var U=s.display.gutterSpecs[I].className;v[U]=D.offsetLeft+D.clientLeft+T,g[U]=D.clientWidth}return{fixedPos:th(f),gutterTotalWidth:f.gutters.offsetWidth,gutterLeft:v,gutterWidth:g,wrapperWidth:f.wrapper.clientWidth}}z(hd,"getDimensions");function th(s){return s.scroller.getBoundingClientRect().left-s.sizer.getBoundingClientRect().left}z(th,"compensateForHScroll");function Zg(s){var f=dl(s.display),v=s.options.lineWrapping,g=v&&Math.max(5,s.display.scroller.clientWidth/pl(s.display)-3);return function(T){if(vo(s.doc,T))return 0;var D=0;if(T.widgets)for(var I=0;I<T.widgets.length;I++)T.widgets[I].height&&(D+=T.widgets[I].height);return v?D+(Math.ceil(T.text.length/g)||1)*f:D+f}}z(Zg,"estimateHeight");function nh(s){var f=s.doc,v=Zg(s);f.iter(function(g){var T=v(g);T!=g.height&&Hr(g,T)})}z(nh,"estimateLineHeights");function Cs(s,f,v,g){var T=s.display;if(!v&&cn(f).getAttribute("cm-not-content")=="true")return null;var D,I,U=T.lineSpace.getBoundingClientRect();try{D=f.clientX-U.left,I=f.clientY-U.top}catch{return null}var B=fl(s,D,I),H;if(g&&B.xRel>0&&(H=ft(s.doc,B.line).text).length==B.ch){var ie=ce(H,H.length,s.options.tabSize)-H.length;B=ze(B.line,Math.max(0,Math.round((D-Wp(s.display).left)/pl(s.display))-ie))}return B}z(Cs,"posFromMouse");function _s(s,f){if(f>=s.display.viewTo||(f-=s.display.viewFrom,f<0))return null;for(var v=s.display.view,g=0;g<v.length;g++)if(f-=v[g].size,f<0)return g}z(_s,"findViewIndex");function Jr(s,f,v,g){f==null&&(f=s.doc.first),v==null&&(v=s.doc.first+s.doc.size),g||(g=0);var T=s.display;if(g&&v<T.viewTo&&(T.updateLineNumbers==null||T.updateLineNumbers>f)&&(T.updateLineNumbers=f),s.curOp.viewChanged=!0,f>=T.viewTo)Ts&&gc(s.doc,f)<T.viewTo&&Fa(s);else if(v<=T.viewFrom)Ts&&sd(s.doc,v+g)>T.viewFrom?Fa(s):(T.viewFrom+=g,T.viewTo+=g);else if(f<=T.viewFrom&&v>=T.viewTo)Fa(s);else if(f<=T.viewFrom){var D=xi(s,v,v+g,1);D?(T.view=T.view.slice(D.index),T.viewFrom=D.lineN,T.viewTo+=g):Fa(s)}else if(v>=T.viewTo){var I=xi(s,f,f,-1);I?(T.view=T.view.slice(0,I.index),T.viewTo=I.lineN):Fa(s)}else{var U=xi(s,f,f,-1),B=xi(s,v,v+g,1);U&&B?(T.view=T.view.slice(0,U.index).concat(ud(s,U.lineN,B.lineN)).concat(T.view.slice(B.index)),T.viewTo+=g):Fa(s)}var H=T.externalMeasured;H&&(v<H.lineN?H.lineN+=g:f<H.lineN+H.size&&(T.externalMeasured=null))}z(Jr,"regChange");function Gr(s,f,v){s.curOp.viewChanged=!0;var g=s.display,T=s.display.externalMeasured;if(T&&f>=T.lineN&&f<T.lineN+T.size&&(g.externalMeasured=null),!(f<g.viewFrom||f>=g.viewTo)){var D=g.view[_s(s,f)];if(D.node!=null){var I=D.changes||(D.changes=[]);Se(I,v)==-1&&I.push(v)}}}z(Gr,"regLineChange");function Fa(s){s.display.viewFrom=s.display.viewTo=s.doc.first,s.display.view=[],s.display.viewOffset=0}z(Fa,"resetView");function xi(s,f,v,g){var T=_s(s,f),D,I=s.display.view;if(!Ts||v==s.doc.first+s.doc.size)return{index:T,lineN:v};for(var U=s.display.viewFrom,B=0;B<T;B++)U+=I[B].size;if(U!=f){if(g>0){if(T==I.length-1)return null;D=U+I[T].size-f,T++}else D=U-f;f+=D,v+=D}for(;gc(s.doc,v)!=v;){if(T==(g<0?0:I.length-1))return null;v+=g*I[T-(g<0?1:0)].size,T+=g}return{index:T,lineN:v}}z(xi,"viewCuttingPoint");function bo(s,f,v){var g=s.display,T=g.view;T.length==0||f>=g.viewTo||v<=g.viewFrom?(g.view=ud(s,f,v),g.viewFrom=f):(g.viewFrom>f?g.view=ud(s,f,g.viewFrom).concat(g.view):g.viewFrom<f&&(g.view=g.view.slice(_s(s,f))),g.viewFrom=f,g.viewTo<v?g.view=g.view.concat(ud(s,g.viewTo,v)):g.viewTo>v&&(g.view=g.view.slice(0,_s(s,v)))),g.viewTo=v}z(bo,"adjustView");function hl(s){for(var f=s.display.view,v=0,g=0;g<f.length;g++){var T=f[g];!T.hidden&&(!T.node||T.changes)&&++v}return v}z(hl,"countDirtyView");function ml(s){s.display.input.showSelection(s.display.input.prepareSelection())}z(ml,"updateSelection");function wc(s,f){f===void 0&&(f=!0);var v=s.doc,g={},T=g.cursors=document.createDocumentFragment(),D=g.selection=document.createDocumentFragment(),I=s.options.$customCursor;I&&(f=!0);for(var U=0;U<v.sel.ranges.length;U++)if(!(!f&&U==v.sel.primIndex)){var B=v.sel.ranges[U];if(!(B.from().line>=s.display.viewTo||B.to().line<s.display.viewFrom)){var H=B.empty();if(I){var ie=I(s,B);ie&&au(s,ie,T)}else(H||s.options.showCursorWhenSelecting)&&au(s,B.head,T);H||lu(s,B,D)}}return g}z(wc,"prepareSelection");function au(s,f,v){var g=Io(s,f,"div",null,null,!s.options.singleCursorHeightPerLine),T=v.appendChild(W("div"," ","CodeMirror-cursor"));if(T.style.left=g.left+"px",T.style.top=g.top+"px",T.style.height=Math.max(0,g.bottom-g.top)*s.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(s.getWrapperElement().className)){var D=iu(s,f,"div",null,null),I=D.right-D.left;T.style.width=(I>0?I:s.defaultCharWidth())+"px"}if(g.other){var U=v.appendChild(W("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));U.style.display="",U.style.left=g.other.left+"px",U.style.top=g.other.top+"px",U.style.height=(g.other.bottom-g.other.top)*.85+"px"}}z(au,"drawSelectionCursor");function su(s,f){return s.top-f.top||s.left-f.left}z(su,"cmpCoords");function lu(s,f,v){var g=s.display,T=s.doc,D=document.createDocumentFragment(),I=Wp(s.display),U=I.left,B=Math.max(g.sizerWidth,Mo(s)-g.sizer.offsetLeft)-I.right,H=T.direction=="ltr";function ie(et,ut,Ct,yt){ut<0&&(ut=0),ut=Math.round(ut),yt=Math.round(yt),D.appendChild(W("div",null,"CodeMirror-selected","position: absolute; left: "+et+`px;
                             top: `+ut+"px; width: "+(Ct??B-et)+`px;
                             height: `+(yt-ut)+"px"))}z(ie,"add");function le(et,ut,Ct){var yt=ft(T,et),kt=yt.text.length,In,kr;function Hn(ir,Ni){return iu(s,ze(et,ir),"div",yt,Ni)}z(Hn,"coords");function gi(ir,Ni,Gn){var Qt=Jp(s,yt,null,ir),vr=Ni=="ltr"==(Gn=="after")?"left":"right",or=Gn=="after"?Qt.begin:Qt.end-(/\s/.test(yt.text.charAt(Qt.end-1))?2:1);return Hn(or,vr)[vr]}z(gi,"wrapX");var vi=Vt(yt,T.direction);return dt(vi,ut||0,Ct??kt,function(ir,Ni,Gn,Qt){var vr=Gn=="ltr",or=Hn(ir,vr?"left":"right"),xn=Hn(Ni-1,vr?"right":"left"),Jc=ut==null&&ir==0,Vs=Ct==null&&Ni==kt,ni=Qt==0,Tn=!vi||Qt==vi.length-1;if(xn.top-or.top<=3){var wn=(H?Jc:Vs)&&ni,da=(H?Vs:Jc)&&Tn,Za=wn?U:(vr?or:xn).left,Ol=da?B:(vr?xn:or).right;ie(Za,or.top,Ol-Za,or.bottom)}else{var Du,ri,ii,To;vr?(Du=H&&Jc&&ni?U:or.left,ri=H?B:gi(ir,Gn,"before"),ii=H?U:gi(Ni,Gn,"after"),To=H&&Vs&&Tn?B:xn.right):(Du=H?gi(ir,Gn,"before"):U,ri=!H&&Jc&&ni?B:or.right,ii=!H&&Vs&&Tn?U:xn.left,To=H?gi(Ni,Gn,"after"):B),ie(Du,or.top,ri-Du,or.bottom),or.bottom<xn.top&&ie(U,or.bottom,null,xn.top),ie(ii,xn.top,To-ii,xn.bottom)}(!In||su(or,In)<0)&&(In=or),su(xn,In)<0&&(In=xn),(!kr||su(or,kr)<0)&&(kr=or),su(xn,kr)<0&&(kr=xn)}),{start:In,end:kr}}z(le,"drawForLine");var Ee=f.from(),ge=f.to();if(Ee.line==ge.line)le(Ee.line,Ee.ch,ge.ch);else{var we=ft(T,Ee.line),Ve=ft(T,ge.line),Xe=qi(we)==qi(Ve),rt=le(Ee.line,Ee.ch,Xe?we.text.length+1:null).end,it=le(ge.line,Xe?0:null,ge.ch).start;Xe&&(rt.top<it.top-2?(ie(rt.right,rt.top,null,rt.bottom),ie(U,it.top,it.left,it.bottom)):ie(rt.right,rt.top,it.left-rt.right,rt.bottom)),rt.bottom<it.top&&ie(U,rt.bottom,null,it.top)}v.appendChild(D)}z(lu,"drawSelectionRange");function md(s){if(s.state.focused){var f=s.display;clearInterval(f.blinker);var v=!0;f.cursorDiv.style.visibility="",s.options.cursorBlinkRate>0?f.blinker=setInterval(function(){s.hasFocus()||Yr(s),f.cursorDiv.style.visibility=(v=!v)?"":"hidden"},s.options.cursorBlinkRate):s.options.cursorBlinkRate<0&&(f.cursorDiv.style.visibility="hidden")}}z(md,"restartBlink");function Cc(s){s.hasFocus()||(s.display.input.focus(),s.state.focused||rh(s))}z(Cc,"ensureFocus");function Ns(s){s.state.delayingBlurEvent=!0,setTimeout(function(){s.state.delayingBlurEvent&&(s.state.delayingBlurEvent=!1,s.state.focused&&Yr(s))},100)}z(Ns,"delayBlurEvent");function rh(s,f){s.state.delayingBlurEvent&&!s.state.draggingText&&(s.state.delayingBlurEvent=!1),s.options.readOnly!="nocursor"&&(s.state.focused||(mt(s,"focus",s,f),s.state.focused=!0,fe(s.display.wrapper,"CodeMirror-focused"),!s.curOp&&s.display.selForContextMenu!=s.doc.sel&&(s.display.input.reset(),m&&setTimeout(function(){return s.display.input.reset(!0)},20)),s.display.input.receivedFocus()),md(s))}z(rh,"onFocus");function Yr(s,f){s.state.delayingBlurEvent||(s.state.focused&&(mt(s,"blur",s,f),s.state.focused=!1,K(s.display.wrapper,"CodeMirror-focused")),clearInterval(s.display.blinker),setTimeout(function(){s.state.focused||(s.display.shift=!1)},150))}z(Yr,"onBlur");function uu(s){for(var f=s.display,v=f.lineDiv.offsetTop,g=Math.max(0,f.scroller.getBoundingClientRect().top),T=f.lineDiv.getBoundingClientRect().top,D=0,I=0;I<f.view.length;I++){var U=f.view[I],B=s.options.lineWrapping,H=void 0,ie=0;if(!U.hidden){if(T+=U.line.height,p&&d<8){var le=U.node.offsetTop+U.node.offsetHeight;H=le-v,v=le}else{var Ee=U.node.getBoundingClientRect();H=Ee.bottom-Ee.top,!B&&U.text.firstChild&&(ie=U.text.firstChild.getBoundingClientRect().right-Ee.left-1)}var ge=U.line.height-H;if((ge>.005||ge<-.005)&&(T<g&&(D-=ge),Hr(U.line,H),aa(U.line),U.rest))for(var we=0;we<U.rest.length;we++)aa(U.rest[we]);if(ie>s.display.sizerWidth){var Ve=Math.ceil(ie/pl(s.display));Ve>s.display.maxLineLength&&(s.display.maxLineLength=Ve,s.display.maxLine=U.line,s.display.maxLineChanged=!0)}}}Math.abs(D)>2&&(f.scroller.scrollTop+=D)}z(uu,"updateHeightsInViewport");function aa(s){if(s.widgets)for(var f=0;f<s.widgets.length;++f){var v=s.widgets[f],g=v.node.parentNode;g&&(v.height=g.offsetHeight)}}z(aa,"updateWidgetHeight");function _c(s,f,v){var g=v&&v.top!=null?Math.max(0,v.top):s.scroller.scrollTop;g=Math.floor(g-fd(s));var T=v&&v.bottom!=null?v.bottom:g+s.wrapper.clientHeight,D=Fr(f,g),I=Fr(f,T);if(v&&v.ensure){var U=v.ensure.from.line,B=v.ensure.to.line;U<D?(D=U,I=Fr(f,ia(ft(f,U))+s.wrapper.clientHeight)):Math.min(B,f.lastLine())>=I&&(D=Fr(f,ia(ft(f,B))-s.wrapper.clientHeight),I=B)}return{from:D,to:Math.max(I,D+1)}}z(_c,"visibleLines");function gd(s,f){if(!bn(s,"scrollCursorIntoView")){var v=s.display,g=v.sizer.getBoundingClientRect(),T=null;if(f.top+g.top<0?T=!0:f.bottom+g.top>(window.innerHeight||document.documentElement.clientHeight)&&(T=!1),T!=null&&!k){var D=W("div","​",null,`position: absolute;
                         top: `+(f.top-v.viewOffset-fd(s.display))+`px;
                         height: `+(f.bottom-f.top+Ro(s)+v.barHeight)+`px;
                         left: `+f.left+"px; width: "+Math.max(2,f.right-f.left)+"px;");s.display.lineSpace.appendChild(D),D.scrollIntoView(T),s.display.lineSpace.removeChild(D)}}}z(gd,"maybeScrollWindow");function gl(s,f,v,g){g==null&&(g=0);var T;!s.options.lineWrapping&&f==v&&(v=f.sticky=="before"?ze(f.line,f.ch+1,"before"):f,f=f.ch?ze(f.line,f.sticky=="before"?f.ch-1:f.ch,"after"):f);for(var D=0;D<5;D++){var I=!1,U=Io(s,f),B=!v||v==f?U:Io(s,v);T={left:Math.min(U.left,B.left),top:Math.min(U.top,B.top)-g,right:Math.max(U.left,B.left),bottom:Math.max(U.bottom,B.bottom)+g};var H=Nc(s,T),ie=s.doc.scrollTop,le=s.doc.scrollLeft;if(H.scrollTop!=null&&(Po(s,H.scrollTop),Math.abs(s.doc.scrollTop-ie)>1&&(I=!0)),H.scrollLeft!=null&&(Ci(s,H.scrollLeft),Math.abs(s.doc.scrollLeft-le)>1&&(I=!0)),!I)break}return T}z(gl,"scrollPosIntoView");function ih(s,f){var v=Nc(s,f);v.scrollTop!=null&&Po(s,v.scrollTop),v.scrollLeft!=null&&Ci(s,v.scrollLeft)}z(ih,"scrollIntoView");function Nc(s,f){var v=s.display,g=dl(s.display);f.top<0&&(f.top=0);var T=s.curOp&&s.curOp.scrollTop!=null?s.curOp.scrollTop:v.scroller.scrollTop,D=ul(s),I={};f.bottom-f.top>D&&(f.bottom=f.top+D);var U=s.doc.height+Yp(v),B=f.top<g,H=f.bottom>U-g;if(f.top<T)I.scrollTop=B?0:f.top;else if(f.bottom>T+D){var ie=Math.min(f.top,(H?U:f.bottom)-D);ie!=T&&(I.scrollTop=ie)}var le=s.options.fixedGutter?0:v.gutters.offsetWidth,Ee=s.curOp&&s.curOp.scrollLeft!=null?s.curOp.scrollLeft:v.scroller.scrollLeft-le,ge=Mo(s)-v.gutters.offsetWidth,we=f.right-f.left>ge;return we&&(f.right=f.left+ge),f.left<10?I.scrollLeft=0:f.left<Ee?I.scrollLeft=Math.max(0,f.left+le-(we?0:10)):f.right>ge+Ee-3&&(I.scrollLeft=f.right+(we?0:10)-ge),I}z(Nc,"calculateScrollPos");function As(s,f){f!=null&&(wi(s),s.curOp.scrollTop=(s.curOp.scrollTop==null?s.doc.scrollTop:s.curOp.scrollTop)+f)}z(As,"addToScrollTop");function Fo(s){wi(s);var f=s.getCursor();s.curOp.scrollToPos={from:f,to:f,margin:s.options.cursorScrollMargin}}z(Fo,"ensureCursorVisible");function Os(s,f,v){(f!=null||v!=null)&&wi(s),f!=null&&(s.curOp.scrollLeft=f),v!=null&&(s.curOp.scrollTop=v)}z(Os,"scrollToCoords");function vd(s,f){wi(s),s.curOp.scrollToPos=f}z(vd,"scrollToRange");function wi(s){var f=s.curOp.scrollToPos;if(f){s.curOp.scrollToPos=null;var v=cl(s,f.from),g=cl(s,f.to);to(s,v,g,f.margin)}}z(wi,"resolveScrollToPos");function to(s,f,v,g){var T=Nc(s,{left:Math.min(f.left,v.left),top:Math.min(f.top,v.top)-g,right:Math.max(f.right,v.right),bottom:Math.max(f.bottom,v.bottom)+g});Os(s,T.scrollLeft,T.scrollTop)}z(to,"scrollToCoordsRange");function Po(s,f){Math.abs(s.doc.scrollTop-f)<2||(i||du(s,{top:f}),sa(s,f,!0),i&&du(s),Eo(s,100))}z(Po,"updateScrollTop");function sa(s,f,v){f=Math.max(0,Math.min(s.display.scroller.scrollHeight-s.display.scroller.clientHeight,f)),!(s.display.scroller.scrollTop==f&&!v)&&(s.doc.scrollTop=f,s.display.scrollbars.setScrollTop(f),s.display.scroller.scrollTop!=f&&(s.display.scroller.scrollTop=f))}z(sa,"setScrollTop");function Ci(s,f,v,g){f=Math.max(0,Math.min(f,s.display.scroller.scrollWidth-s.display.scroller.clientWidth)),!((v?f==s.doc.scrollLeft:Math.abs(s.doc.scrollLeft-f)<2)&&!g)&&(s.doc.scrollLeft=f,rv(s),s.display.scroller.scrollLeft!=f&&(s.display.scroller.scrollLeft=f),s.display.scrollbars.setScrollLeft(f))}z(Ci,"setScrollLeft");function jo(s){var f=s.display,v=f.gutters.offsetWidth,g=Math.round(s.doc.height+Yp(s.display));return{clientHeight:f.scroller.clientHeight,viewHeight:f.wrapper.clientHeight,scrollWidth:f.scroller.scrollWidth,clientWidth:f.scroller.clientWidth,viewWidth:f.wrapper.clientWidth,barLeft:s.options.fixedGutter?v:0,docHeight:g,scrollHeight:g+Ro(s)+f.barHeight,nativeBarWidth:f.nativeBarWidth,gutterWidth:v}}z(jo,"measureForScrollbars");var vl=z(function(s,f,v){this.cm=v;var g=this.vert=W("div",[W("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),T=this.horiz=W("div",[W("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");g.tabIndex=T.tabIndex=-1,s(g),s(T),at(g,"scroll",function(){g.clientHeight&&f(g.scrollTop,"vertical")}),at(T,"scroll",function(){T.clientWidth&&f(T.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,p&&d<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")},"NativeScrollbars");vl.prototype.update=function(s){var f=s.scrollWidth>s.clientWidth+1,v=s.scrollHeight>s.clientHeight+1,g=s.nativeBarWidth;if(v){this.vert.style.display="block",this.vert.style.bottom=f?g+"px":"0";var T=s.viewHeight-(f?g:0);this.vert.firstChild.style.height=Math.max(0,s.scrollHeight-s.clientHeight+T)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(f){this.horiz.style.display="block",this.horiz.style.right=v?g+"px":"0",this.horiz.style.left=s.barLeft+"px";var D=s.viewWidth-s.barLeft-(v?g:0);this.horiz.firstChild.style.width=Math.max(0,s.scrollWidth-s.clientWidth+D)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&s.clientHeight>0&&(g==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:v?g:0,bottom:f?g:0}},vl.prototype.setScrollLeft=function(s){this.horiz.scrollLeft!=s&&(this.horiz.scrollLeft=s),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},vl.prototype.setScrollTop=function(s){this.vert.scrollTop!=s&&(this.vert.scrollTop=s),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},vl.prototype.zeroWidthHack=function(){var s=_&&!w?"12px":"18px";this.horiz.style.height=this.vert.style.width=s,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new me,this.disableVert=new me},vl.prototype.enableZeroWidthBar=function(s,f,v){s.style.pointerEvents="auto";function g(){var T=s.getBoundingClientRect(),D=v=="vert"?document.elementFromPoint(T.right-1,(T.top+T.bottom)/2):document.elementFromPoint((T.right+T.left)/2,T.bottom-1);D!=s?s.style.pointerEvents="none":f.set(1e3,g)}z(g,"maybeDisable"),f.set(1e3,g)},vl.prototype.clear=function(){var s=this.horiz.parentNode;s.removeChild(this.horiz),s.removeChild(this.vert)};var cu=z(function(){},"NullScrollbars");cu.prototype.update=function(){return{bottom:0,right:0}},cu.prototype.setScrollLeft=function(){},cu.prototype.setScrollTop=function(){},cu.prototype.clear=function(){};function Ds(s,f){f||(f=jo(s));var v=s.display.barWidth,g=s.display.barHeight;hi(s,f);for(var T=0;T<4&&v!=s.display.barWidth||g!=s.display.barHeight;T++)v!=s.display.barWidth&&s.options.lineWrapping&&uu(s),hi(s,jo(s)),v=s.display.barWidth,g=s.display.barHeight}z(Ds,"updateScrollbars");function hi(s,f){var v=s.display,g=v.scrollbars.update(f);v.sizer.style.paddingRight=(v.barWidth=g.right)+"px",v.sizer.style.paddingBottom=(v.barHeight=g.bottom)+"px",v.heightForcer.style.borderBottom=g.bottom+"px solid transparent",g.right&&g.bottom?(v.scrollbarFiller.style.display="block",v.scrollbarFiller.style.height=g.bottom+"px",v.scrollbarFiller.style.width=g.right+"px"):v.scrollbarFiller.style.display="",g.bottom&&s.options.coverGutterNextToScrollbar&&s.options.fixedGutter?(v.gutterFiller.style.display="block",v.gutterFiller.style.height=g.bottom+"px",v.gutterFiller.style.width=f.gutterWidth+"px"):v.gutterFiller.style.display=""}z(hi,"updateScrollbarsInner");var pr={native:vl,null:cu};function Sn(s){s.display.scrollbars&&(s.display.scrollbars.clear(),s.display.scrollbars.addClass&&K(s.display.wrapper,s.display.scrollbars.addClass)),s.display.scrollbars=new pr[s.options.scrollbarStyle](function(f){s.display.wrapper.insertBefore(f,s.display.scrollbarFiller),at(f,"mousedown",function(){s.state.focused&&setTimeout(function(){return s.display.input.focus()},0)}),f.setAttribute("cm-not-content","true")},function(f,v){v=="horizontal"?Ci(s,f):Po(s,f)},s),s.display.scrollbars.addClass&&fe(s.display.wrapper,s.display.scrollbars.addClass)}z(Sn,"initScrollbars");var fu=0;function mi(s){s.curOp={cm:s,viewChanged:!1,startHeight:s.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:++fu,markArrays:null},Ug(s.curOp)}z(mi,"startOperation");function Pa(s){var f=s.curOp;f&&b1(f,function(v){for(var g=0;g<v.ops.length;g++)v.ops[g].cm.curOp=null;yl(v)})}z(Pa,"endOperation");function yl(s){for(var f=s.ops,v=0;v<f.length;v++)Jg(f[v]);for(var g=0;g<f.length;g++)ev(f[g]);for(var T=0;T<f.length;T++)Ac(f[T]);for(var D=0;D<f.length;D++)Oc(f[D]);for(var I=0;I<f.length;I++)tv(f[I])}z(yl,"endOperations");function Jg(s){var f=s.cm,v=f.display;oh(f),s.updateMaxLine&&qp(f),s.mustUpdate=s.viewChanged||s.forceUpdate||s.scrollTop!=null||s.scrollToPos&&(s.scrollToPos.from.line<v.viewFrom||s.scrollToPos.to.line>=v.viewTo)||v.maxLineChanged&&f.options.lineWrapping,s.update=s.mustUpdate&&new Dc(f,s.mustUpdate&&{top:s.scrollTop,ensure:s.scrollToPos},s.forceUpdate)}z(Jg,"endOperation_R1");function ev(s){s.updatedDisplay=s.mustUpdate&&Va(s.cm,s.update)}z(ev,"endOperation_W1");function Ac(s){var f=s.cm,v=f.display;s.updatedDisplay&&uu(f),s.barMeasure=jo(f),v.maxLineChanged&&!f.options.lineWrapping&&(s.adjustWidthTo=Qp(f,v.maxLine,v.maxLine.text.length).left+3,f.display.sizerWidth=s.adjustWidthTo,s.barMeasure.scrollWidth=Math.max(v.scroller.clientWidth,v.sizer.offsetLeft+s.adjustWidthTo+Ro(f)+f.display.barWidth),s.maxScrollLeft=Math.max(0,v.sizer.offsetLeft+s.adjustWidthTo-Mo(f))),(s.updatedDisplay||s.selectionChanged)&&(s.preparedSelection=v.input.prepareSelection())}z(Ac,"endOperation_R2");function Oc(s){var f=s.cm;s.adjustWidthTo!=null&&(f.display.sizer.style.minWidth=s.adjustWidthTo+"px",s.maxScrollLeft<f.doc.scrollLeft&&Ci(f,Math.min(f.display.scroller.scrollLeft,s.maxScrollLeft),!0),f.display.maxLineChanged=!1);var v=s.focus&&s.focus==ae();s.preparedSelection&&f.display.input.showSelection(s.preparedSelection,v),(s.updatedDisplay||s.startHeight!=f.doc.height)&&Ds(f,s.barMeasure),s.updatedDisplay&&sh(f,s.barMeasure),s.selectionChanged&&md(f),f.state.focused&&s.updateInput&&f.display.input.reset(s.typing),v&&Cc(s.cm)}z(Oc,"endOperation_W2");function tv(s){var f=s.cm,v=f.display,g=f.doc;if(s.updatedDisplay&&ei(f,s.update),v.wheelStartX!=null&&(s.scrollTop!=null||s.scrollLeft!=null||s.scrollToPos)&&(v.wheelStartX=v.wheelStartY=null),s.scrollTop!=null&&sa(f,s.scrollTop,s.forceScroll),s.scrollLeft!=null&&Ci(f,s.scrollLeft,!0,!0),s.scrollToPos){var T=gl(f,st(g,s.scrollToPos.from),st(g,s.scrollToPos.to),s.scrollToPos.margin);gd(f,T)}var D=s.maybeHiddenMarkers,I=s.maybeUnhiddenMarkers;if(D)for(var U=0;U<D.length;++U)D[U].lines.length||mt(D[U],"hide");if(I)for(var B=0;B<I.length;++B)I[B].lines.length&&mt(I[B],"unhide");v.wrapper.offsetHeight&&(g.scrollTop=f.display.scroller.scrollTop),s.changeObjs&&mt(f,"changes",f,s.changeObjs),s.update&&s.update.finish()}z(tv,"endOperation_finish");function Wr(s,f){if(s.curOp)return f();mi(s);try{return f()}finally{Pa(s)}}z(Wr,"runInOp");function xr(s,f){return function(){if(s.curOp)return f.apply(s,arguments);mi(s);try{return f.apply(s,arguments)}finally{Pa(s)}}}z(xr,"operation");function hr(s){return function(){if(this.curOp)return s.apply(this,arguments);mi(this);try{return s.apply(this,arguments)}finally{Pa(this)}}}z(hr,"methodOp");function jn(s){return function(){var f=this.cm;if(!f||f.curOp)return s.apply(this,arguments);mi(f);try{return s.apply(this,arguments)}finally{Pa(f)}}}z(jn,"docMethodOp");function Eo(s,f){s.doc.highlightFrontier<s.display.viewTo&&s.state.highlight.set(f,se(ja,s))}z(Eo,"startWorker");function ja(s){var f=s.doc;if(!(f.highlightFrontier>=s.display.viewTo)){var v=+new Date+s.options.workTime,g=Xl(s,f.highlightFrontier),T=[];f.iter(g.line,Math.min(f.first+f.size,s.display.viewTo+500),function(D){if(g.line>=s.display.viewFrom){var I=D.styles,U=D.text.length>s.options.maxHighlightLength?ji(f.mode,g.state):null,B=eo(s,D,g,!0);U&&(g.state=U),D.styles=B.styles;var H=D.styleClasses,ie=B.classes;ie?D.styleClasses=ie:H&&(D.styleClasses=null);for(var le=!I||I.length!=D.styles.length||H!=ie&&(!H||!ie||H.bgClass!=ie.bgClass||H.textClass!=ie.textClass),Ee=0;!le&&Ee<I.length;++Ee)le=I[Ee]!=D.styles[Ee];le&&T.push(g.line),D.stateAfter=g.save(),g.nextLine()}else D.text.length<=s.options.maxHighlightLength&&fc(s,D.text,g),D.stateAfter=g.line%5==0?g.save():null,g.nextLine();if(+new Date>v)return Eo(s,s.options.workDelay),!0}),f.highlightFrontier=g.line,f.modeFrontier=Math.max(f.modeFrontier,g.line),T.length&&Wr(s,function(){for(var D=0;D<T.length;D++)Gr(s,T[D],"text")})}}z(ja,"highlightWorker");var Dc=z(function(s,f,v){var g=s.display;this.viewport=f,this.visible=_c(g,s.doc,f),this.editorIsHidden=!g.wrapper.offsetWidth,this.wrapperHeight=g.wrapper.clientHeight,this.wrapperWidth=g.wrapper.clientWidth,this.oldDisplayWidth=Mo(s),this.force=v,this.dims=hd(s),this.events=[]},"DisplayUpdate");Dc.prototype.signal=function(s,f){an(s,f)&&this.events.push(arguments)},Dc.prototype.finish=function(){for(var s=0;s<this.events.length;s++)mt.apply(null,this.events[s])};function oh(s){var f=s.display;!f.scrollbarsClipped&&f.scroller.offsetWidth&&(f.nativeBarWidth=f.scroller.offsetWidth-f.scroller.clientWidth,f.heightForcer.style.height=Ro(s)+"px",f.sizer.style.marginBottom=-f.nativeBarWidth+"px",f.sizer.style.borderRightWidth=Ro(s)+"px",f.scrollbarsClipped=!0)}z(oh,"maybeClipScrollbars");function kc(s){if(s.hasFocus())return null;var f=ae();if(!f||!re(s.display.lineDiv,f))return null;var v={activeElt:f};if(window.getSelection){var g=window.getSelection();g.anchorNode&&g.extend&&re(s.display.lineDiv,g.anchorNode)&&(v.anchorNode=g.anchorNode,v.anchorOffset=g.anchorOffset,v.focusNode=g.focusNode,v.focusOffset=g.focusOffset)}return v}z(kc,"selectionSnapshot");function yd(s){if(!(!s||!s.activeElt||s.activeElt==ae())&&(s.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(s.activeElt.nodeName)&&s.anchorNode&&re(document.body,s.anchorNode)&&re(document.body,s.focusNode))){var f=window.getSelection(),v=document.createRange();v.setEnd(s.anchorNode,s.anchorOffset),v.collapse(!1),f.removeAllRanges(),f.addRange(v),f.extend(s.focusNode,s.focusOffset)}}z(yd,"restoreSelection");function Va(s,f){var v=s.display,g=s.doc;if(f.editorIsHidden)return Fa(s),!1;if(!f.force&&f.visible.from>=v.viewFrom&&f.visible.to<=v.viewTo&&(v.updateLineNumbers==null||v.updateLineNumbers>=v.viewTo)&&v.renderedView==v.view&&hl(s)==0)return!1;Ar(s)&&(Fa(s),f.dims=hd(s));var T=g.first+g.size,D=Math.max(f.visible.from-s.options.viewportMargin,g.first),I=Math.min(T,f.visible.to+s.options.viewportMargin);v.viewFrom<D&&D-v.viewFrom<20&&(D=Math.max(g.first,v.viewFrom)),v.viewTo>I&&v.viewTo-I<20&&(I=Math.min(T,v.viewTo)),Ts&&(D=gc(s.doc,D),I=sd(s.doc,I));var U=D!=v.viewFrom||I!=v.viewTo||v.lastWrapHeight!=f.wrapperHeight||v.lastWrapWidth!=f.wrapperWidth;bo(s,D,I),v.viewOffset=ia(ft(s.doc,v.viewFrom)),s.display.mover.style.top=v.viewOffset+"px";var B=hl(s);if(!U&&B==0&&!f.force&&v.renderedView==v.view&&(v.updateLineNumbers==null||v.updateLineNumbers>=v.viewTo))return!1;var H=kc(s);return B>4&&(v.lineDiv.style.display="none"),nv(s,v.updateLineNumbers,f.dims),B>4&&(v.lineDiv.style.display=""),v.renderedView=v.view,yd(H),ee(v.cursorDiv),ee(v.selectionDiv),v.gutters.style.height=v.sizer.style.minHeight=0,U&&(v.lastWrapHeight=f.wrapperHeight,v.lastWrapWidth=f.wrapperWidth,Eo(s,400)),v.updateLineNumbers=null,!0}z(Va,"updateDisplayIfNeeded");function ei(s,f){for(var v=f.viewport,g=!0;;g=!1){if(!g||!s.options.lineWrapping||f.oldDisplayWidth==Mo(s)){if(v&&v.top!=null&&(v={top:Math.min(s.doc.height+Yp(s.display)-ul(s),v.top)}),f.visible=_c(s.display,s.doc,v),f.visible.from>=s.display.viewFrom&&f.visible.to<=s.display.viewTo)break}else g&&(f.visible=_c(s.display,s.doc,v));if(!Va(s,f))break;uu(s);var T=jo(s);ml(s),Ds(s,T),sh(s,T),f.force=!1}f.signal(s,"update",s),(s.display.viewFrom!=s.display.reportedViewFrom||s.display.viewTo!=s.display.reportedViewTo)&&(f.signal(s,"viewportChange",s,s.display.viewFrom,s.display.viewTo),s.display.reportedViewFrom=s.display.viewFrom,s.display.reportedViewTo=s.display.viewTo)}z(ei,"postUpdateDisplay");function du(s,f){var v=new Dc(s,f);if(Va(s,v)){uu(s),ei(s,v);var g=jo(s);ml(s),Ds(s,g),sh(s,g),v.finish()}}z(du,"updateDisplaySimple");function nv(s,f,v){var g=s.display,T=s.options.lineNumbers,D=g.lineDiv,I=D.firstChild;function U(we){var Ve=we.nextSibling;return m&&_&&s.display.currentWheelTarget==we?we.style.display="none":we.parentNode.removeChild(we),Ve}z(U,"rm");for(var B=g.view,H=g.viewFrom,ie=0;ie<B.length;ie++){var le=B[ie];if(!le.hidden)if(!le.node||le.node.parentNode!=D){var Ee=Hg(s,le,H,v);D.insertBefore(Ee,I)}else{for(;I!=le.node;)I=U(I);var ge=T&&f!=null&&f<=H&&le.lineNumber;le.changes&&(Se(le.changes,"gutter")>-1&&(ge=!1),qg(s,le,H,v)),ge&&(ee(le.lineNumber),le.lineNumber.appendChild(document.createTextNode(rl(s.options,H)))),I=le.node.nextSibling}H+=le.size}for(;I;)I=U(I)}z(nv,"patchDisplay");function ah(s){var f=s.gutters.offsetWidth;s.sizer.style.marginLeft=f+"px",Pr(s,"gutterChanged",s)}z(ah,"updateGutterSpace");function sh(s,f){s.display.sizer.style.minHeight=f.docHeight+"px",s.display.heightForcer.style.top=f.docHeight+"px",s.display.gutters.style.height=f.docHeight+s.display.barHeight+Ro(s)+"px"}z(sh,"setDocumentHeight");function rv(s){var f=s.display,v=f.view;if(!(!f.alignWidgets&&(!f.gutters.firstChild||!s.options.fixedGutter))){for(var g=th(f)-f.scroller.scrollLeft+s.doc.scrollLeft,T=f.gutters.offsetWidth,D=g+"px",I=0;I<v.length;I++)if(!v[I].hidden){s.options.fixedGutter&&(v[I].gutter&&(v[I].gutter.style.left=D),v[I].gutterBackground&&(v[I].gutterBackground.style.left=D));var U=v[I].alignable;if(U)for(var B=0;B<U.length;B++)U[B].style.left=D}s.options.fixedGutter&&(f.gutters.style.left=g+T+"px")}}z(rv,"alignHorizontally");function Ar(s){if(!s.options.lineNumbers)return!1;var f=s.doc,v=rl(s.options,f.first+f.size-1),g=s.display;if(v.length!=g.lineNumChars){var T=g.measure.appendChild(W("div",[W("div",v)],"CodeMirror-linenumber CodeMirror-gutter-elt")),D=T.firstChild.offsetWidth,I=T.offsetWidth-D;return g.lineGutter.style.width="",g.lineNumInnerWidth=Math.max(D,g.lineGutter.offsetWidth-I)+1,g.lineNumWidth=g.lineNumInnerWidth+I,g.lineNumChars=g.lineNumInnerWidth?v.length:-1,g.lineGutter.style.width=g.lineNumWidth+"px",ah(s.display),!0}return!1}z(Ar,"maybeUpdateLineNumberWidth");function Rc(s,f){for(var v=[],g=!1,T=0;T<s.length;T++){var D=s[T],I=null;if(typeof D!="string"&&(I=D.style,D=D.className),D=="CodeMirror-linenumbers")if(f)g=!0;else continue;v.push({className:D,style:I})}return f&&!g&&v.push({className:"CodeMirror-linenumbers",style:null}),v}z(Rc,"getGutters");function pu(s){var f=s.gutters,v=s.gutterSpecs;ee(f),s.lineGutter=null;for(var g=0;g<v.length;++g){var T=v[g],D=T.className,I=T.style,U=f.appendChild(W("div",null,"CodeMirror-gutter "+D));I&&(U.style.cssText=I),D=="CodeMirror-linenumbers"&&(s.lineGutter=U,U.style.width=(s.lineNumWidth||1)+"px")}f.style.display=v.length?"":"none",ah(s)}z(pu,"renderGutters");function Ua(s){pu(s.display),Jr(s),rv(s)}z(Ua,"updateGutters");function lh(s,f,v,g){var T=this;this.input=v,T.scrollbarFiller=W("div",null,"CodeMirror-scrollbar-filler"),T.scrollbarFiller.setAttribute("cm-not-content","true"),T.gutterFiller=W("div",null,"CodeMirror-gutter-filler"),T.gutterFiller.setAttribute("cm-not-content","true"),T.lineDiv=q("div",null,"CodeMirror-code"),T.selectionDiv=W("div",null,null,"position: relative; z-index: 1"),T.cursorDiv=W("div",null,"CodeMirror-cursors"),T.measure=W("div",null,"CodeMirror-measure"),T.lineMeasure=W("div",null,"CodeMirror-measure"),T.lineSpace=q("div",[T.measure,T.lineMeasure,T.selectionDiv,T.cursorDiv,T.lineDiv],null,"position: relative; outline: none");var D=q("div",[T.lineSpace],"CodeMirror-lines");T.mover=W("div",[D],null,"position: relative"),T.sizer=W("div",[T.mover],"CodeMirror-sizer"),T.sizerWidth=null,T.heightForcer=W("div",null,null,"position: absolute; height: "+je+"px; width: 1px;"),T.gutters=W("div",null,"CodeMirror-gutters"),T.lineGutter=null,T.scroller=W("div",[T.sizer,T.heightForcer,T.gutters],"CodeMirror-scroll"),T.scroller.setAttribute("tabIndex","-1"),T.wrapper=W("div",[T.scrollbarFiller,T.gutterFiller,T.scroller],"CodeMirror"),T.wrapper.setAttribute("translate","no"),p&&d<8&&(T.gutters.style.zIndex=-1,T.scroller.style.paddingRight=0),!m&&!(i&&O)&&(T.scroller.draggable=!0),s&&(s.appendChild?s.appendChild(T.wrapper):s(T.wrapper)),T.viewFrom=T.viewTo=f.first,T.reportedViewFrom=T.reportedViewTo=f.first,T.view=[],T.renderedView=null,T.externalMeasured=null,T.viewOffset=0,T.lastWrapHeight=T.lastWrapWidth=0,T.updateLineNumbers=null,T.nativeBarWidth=T.barHeight=T.barWidth=0,T.scrollbarsClipped=!1,T.lineNumWidth=T.lineNumInnerWidth=T.lineNumChars=null,T.alignWidgets=!1,T.cachedCharWidth=T.cachedTextHeight=T.cachedPaddingH=null,T.maxLine=null,T.maxLineLength=0,T.maxLineChanged=!1,T.wheelDX=T.wheelDY=T.wheelStartX=T.wheelStartY=null,T.shift=!1,T.selForContextMenu=null,T.activeTouch=null,T.gutterSpecs=Rc(g.gutters,g.lineNumbers),pu(T),v.init(T)}z(lh,"Display");var ks=0,no=null;p?no=-.53:i?no=15:b?no=-.7:x&&(no=-1/3);function iv(s){var f=s.wheelDeltaX,v=s.wheelDeltaY;return f==null&&s.detail&&s.axis==s.HORIZONTAL_AXIS&&(f=s.detail),v==null&&s.detail&&s.axis==s.VERTICAL_AXIS?v=s.detail:v==null&&(v=s.wheelDelta),{x:f,y:v}}z(iv,"wheelEventDelta");function ov(s){var f=iv(s);return f.x*=no,f.y*=no,f}z(ov,"wheelEventPixels");function av(s,f){var v=iv(f),g=v.x,T=v.y,D=no;f.deltaMode===0&&(g=f.deltaX,T=f.deltaY,D=1);var I=s.display,U=I.scroller,B=U.scrollWidth>U.clientWidth,H=U.scrollHeight>U.clientHeight;if(g&&B||T&&H){if(T&&_&&m){e:for(var ie=f.target,le=I.view;ie!=U;ie=ie.parentNode)for(var Ee=0;Ee<le.length;Ee++)if(le[Ee].node==ie){s.display.currentWheelTarget=ie;break e}}if(g&&!i&&!y&&D!=null){T&&H&&Po(s,Math.max(0,U.scrollTop+T*D)),Ci(s,Math.max(0,U.scrollLeft+g*D)),(!T||T&&H)&&On(f),I.wheelStartX=null;return}if(T&&D!=null){var ge=T*D,we=s.doc.scrollTop,Ve=we+I.wrapper.clientHeight;ge<0?we=Math.max(0,we+ge-50):Ve=Math.min(s.doc.height,Ve+ge+50),du(s,{top:we,bottom:Ve})}ks<20&&f.deltaMode!==0&&(I.wheelStartX==null?(I.wheelStartX=U.scrollLeft,I.wheelStartY=U.scrollTop,I.wheelDX=g,I.wheelDY=T,setTimeout(function(){if(I.wheelStartX!=null){var Xe=U.scrollLeft-I.wheelStartX,rt=U.scrollTop-I.wheelStartY,it=rt&&I.wheelDY&&rt/I.wheelDY||Xe&&I.wheelDX&&Xe/I.wheelDX;I.wheelStartX=I.wheelStartY=null,it&&(no=(no*ks+it)/(ks+1),++ks)}},200)):(I.wheelDX+=g,I.wheelDY+=T))}}z(av,"onScrollWheel");var ro=z(function(s,f){this.ranges=s,this.primIndex=f},"Selection");ro.prototype.primary=function(){return this.ranges[this.primIndex]},ro.prototype.equals=function(s){if(s==this)return!0;if(s.primIndex!=this.primIndex||s.ranges.length!=this.ranges.length)return!1;for(var f=0;f<this.ranges.length;f++){var v=this.ranges[f],g=s.ranges[f];if(!ue(v.anchor,g.anchor)||!ue(v.head,g.head))return!1}return!0},ro.prototype.deepCopy=function(){for(var s=[],f=0;f<this.ranges.length;f++)s[f]=new tn(Ie(this.ranges[f].anchor),Ie(this.ranges[f].head));return new ro(s,this.primIndex)},ro.prototype.somethingSelected=function(){for(var s=0;s<this.ranges.length;s++)if(!this.ranges[s].empty())return!0;return!1},ro.prototype.contains=function(s,f){f||(f=s);for(var v=0;v<this.ranges.length;v++){var g=this.ranges[v];if(Q(f,g.from())>=0&&Q(s,g.to())<=0)return v}return-1};var tn=z(function(s,f){this.anchor=s,this.head=f},"Range");tn.prototype.from=function(){return St(this.anchor,this.head)},tn.prototype.to=function(){return Qe(this.anchor,this.head)},tn.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function io(s,f,v){var g=s&&s.options.selectionsMayTouch,T=f[v];f.sort(function(Ee,ge){return Q(Ee.from(),ge.from())}),v=Se(f,T);for(var D=1;D<f.length;D++){var I=f[D],U=f[D-1],B=Q(U.to(),I.from());if(g&&!I.empty()?B>0:B>=0){var H=St(U.from(),I.from()),ie=Qe(U.to(),I.to()),le=U.empty()?I.from()==I.head:U.from()==U.head;D<=v&&--v,f.splice(--D,2,new tn(le?ie:H,le?H:ie))}}return new ro(f,v)}z(io,"normalizeSelection");function Vo(s,f){return new ro([new tn(s,f||s)],0)}z(Vo,"simpleSelection");function qa(s){return s.text?ze(s.from.line+s.text.length-1,Le(s.text).length+(s.text.length==1?s.from.ch:0)):s.to}z(qa,"changeEnd");function hu(s,f){if(Q(s,f.from)<0)return s;if(Q(s,f.to)<=0)return qa(f);var v=s.line+f.text.length-(f.to.line-f.from.line)-1,g=s.ch;return s.line==f.to.line&&(g+=qa(f).ch-f.to.ch),ze(v,g)}z(hu,"adjustForChange");function bd(s,f){for(var v=[],g=0;g<s.sel.ranges.length;g++){var T=s.sel.ranges[g];v.push(new tn(hu(T.anchor,f),hu(T.head,f)))}return io(s.cm,v,s.sel.primIndex)}z(bd,"computeSelAfterChange");function Mc(s,f,v){return s.line==f.line?ze(v.line,s.ch-f.ch+v.ch):ze(v.line+(s.line-f.line),s.ch)}z(Mc,"offsetPos");function uh(s,f,v){for(var g=[],T=ze(s.first,0),D=T,I=0;I<f.length;I++){var U=f[I],B=Mc(U.from,T,D),H=Mc(qa(U),T,D);if(T=U.to,D=H,v=="around"){var ie=s.sel.ranges[I],le=Q(ie.head,ie.anchor)<0;g[I]=new tn(le?H:B,le?B:H)}else g[I]=new tn(B,B)}return new ro(g,s.sel.primIndex)}z(uh,"computeReplacedSel");function Ed(s){s.doc.mode=ho(s.options,s.doc.modeOption),Rs(s)}z(Ed,"loadMode");function Rs(s){s.doc.iter(function(f){f.stateAfter&&(f.stateAfter=null),f.styles&&(f.styles=null)}),s.doc.modeFrontier=s.doc.highlightFrontier=s.doc.first,Eo(s,100),s.state.modeGen++,s.curOp&&Jr(s)}z(Rs,"resetModeState");function ch(s,f){return f.from.ch==0&&f.to.ch==0&&Le(f.text)==""&&(!s.cm||s.cm.options.wholeLineUpdateBefore)}z(ch,"isWholeLineUpdate");function bl(s,f,v,g){function T(it){return v?v[it]:null}z(T,"spansFor");function D(it,et,ut){Bp(it,et,ut,g),Pr(it,"change",it,f)}z(D,"update");function I(it,et){for(var ut=[],Ct=it;Ct<et;++Ct)ut.push(new vc(H[Ct],T(Ct),g));return ut}z(I,"linesFor");var U=f.from,B=f.to,H=f.text,ie=ft(s,U.line),le=ft(s,B.line),Ee=Le(H),ge=T(H.length-1),we=B.line-U.line;if(f.full)s.insert(0,I(0,H.length)),s.remove(H.length,s.size-H.length);else if(ch(s,f)){var Ve=I(0,H.length-1);D(le,le.text,ge),we&&s.remove(U.line,we),Ve.length&&s.insert(U.line,Ve)}else if(ie==le)if(H.length==1)D(ie,ie.text.slice(0,U.ch)+Ee+ie.text.slice(B.ch),ge);else{var Xe=I(1,H.length-1);Xe.push(new vc(Ee+ie.text.slice(B.ch),ge,g)),D(ie,ie.text.slice(0,U.ch)+H[0],T(0)),s.insert(U.line+1,Xe)}else if(H.length==1)D(ie,ie.text.slice(0,U.ch)+H[0]+le.text.slice(B.ch),T(0)),s.remove(U.line+1,we);else{D(ie,ie.text.slice(0,U.ch)+H[0],T(0)),D(le,Ee+le.text.slice(B.ch),ge);var rt=I(1,H.length-1);we>1&&s.remove(U.line+1,we-1),s.insert(U.line+1,rt)}Pr(s,"change",s,f)}z(bl,"updateDoc");function Ba(s,f,v){function g(T,D,I){if(T.linked)for(var U=0;U<T.linked.length;++U){var B=T.linked[U];if(B.doc!=D){var H=I&&B.sharedHist;v&&!H||(f(B.doc,H),g(B.doc,T,H))}}}z(g,"propagate"),g(s,null,!0)}z(Ba,"linkedDocs");function fh(s,f){if(f.cm)throw new Error("This document is already in use.");s.doc=f,f.cm=s,nh(s),Ed(s),$a(s),s.options.direction=f.direction,s.options.lineWrapping||qp(s),s.options.mode=f.modeOption,Jr(s)}z(fh,"attachDoc");function $a(s){(s.doc.direction=="rtl"?fe:K)(s.display.lineDiv,"CodeMirror-rtl")}z($a,"setDirectionClass");function dh(s){Wr(s,function(){$a(s),Jr(s)})}z(dh,"directionChanged");function mu(s){this.done=[],this.undone=[],this.undoDepth=s?s.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=s?s.maxGeneration:1}z(mu,"History");function la(s,f){var v={from:Ie(f.from),to:qa(f),text:go(s,f.from,f.to)};return hh(s,v,f.from.line,f.to.line+1),Ba(s,function(g){return hh(g,v,f.from.line,f.to.line+1)},!0),v}z(la,"historyChangeFromChange");function za(s){for(;s.length;){var f=Le(s);if(f.ranges)s.pop();else break}}z(za,"clearSelectionEvents");function Lc(s,f){if(f)return za(s.done),Le(s.done);if(s.done.length&&!Le(s.done).ranges)return Le(s.done);if(s.done.length>1&&!s.done[s.done.length-2].ranges)return s.done.pop(),Le(s.done)}z(Lc,"lastChangeEvent");function Sd(s,f,v,g){var T=s.history;T.undone.length=0;var D=+new Date,I,U;if((T.lastOp==g||T.lastOrigin==f.origin&&f.origin&&(f.origin.charAt(0)=="+"&&T.lastModTime>D-(s.cm?s.cm.options.historyEventDelay:500)||f.origin.charAt(0)=="*"))&&(I=Lc(T,T.lastOp==g)))U=Le(I.changes),Q(f.from,f.to)==0&&Q(f.from,U.to)==0?U.to=qa(f):I.changes.push(la(s,f));else{var B=Le(T.done);for((!B||!B.ranges)&&Ms(s.sel,T.done),I={changes:[la(s,f)],generation:T.generation},T.done.push(I);T.done.length>T.undoDepth;)T.done.shift(),T.done[0].ranges||T.done.shift()}T.done.push(v),T.generation=++T.maxGeneration,T.lastModTime=T.lastSelTime=D,T.lastOp=T.lastSelOp=g,T.lastOrigin=T.lastSelOrigin=f.origin,U||mt(s,"historyAdded")}z(Sd,"addChangeToHistory");function ph(s,f,v,g){var T=f.charAt(0);return T=="*"||T=="+"&&v.ranges.length==g.ranges.length&&v.somethingSelected()==g.somethingSelected()&&new Date-s.history.lastSelTime<=(s.cm?s.cm.options.historyEventDelay:500)}z(ph,"selectionEventCanBeMerged");function Ic(s,f,v,g){var T=s.history,D=g&&g.origin;v==T.lastSelOp||D&&T.lastSelOrigin==D&&(T.lastModTime==T.lastSelTime&&T.lastOrigin==D||ph(s,D,Le(T.done),f))?T.done[T.done.length-1]=f:Ms(f,T.done),T.lastSelTime=+new Date,T.lastSelOrigin=D,T.lastSelOp=v,g&&g.clearRedo!==!1&&za(T.undone)}z(Ic,"addSelectionToHistory");function Ms(s,f){var v=Le(f);v&&v.ranges&&v.equals(s)||f.push(s)}z(Ms,"pushSelectionToHistory");function hh(s,f,v,g){var T=f["spans_"+s.id],D=0;s.iter(Math.max(s.first,v),Math.min(s.first+s.size,g),function(I){I.markedSpans&&((T||(T=f["spans_"+s.id]={}))[D]=I.markedSpans),++D})}z(hh,"attachLocalSpans");function sv(s){if(!s)return null;for(var f,v=0;v<s.length;++v)s[v].marker.explicitlyCleared?f||(f=s.slice(0,v)):f&&f.push(s[v]);return f?f.length?f:null:s}z(sv,"removeClearedSpans");function gu(s,f){var v=f["spans_"+s.id];if(!v)return null;for(var g=[],T=0;T<f.text.length;++T)g.push(sv(v[T]));return g}z(gu,"getOldSpans");function Fc(s,f){var v=gu(s,f),g=al(s,f);if(!v)return g;if(!g)return v;for(var T=0;T<v.length;++T){var D=v[T],I=g[T];if(D&&I)e:for(var U=0;U<I.length;++U){for(var B=I[U],H=0;H<D.length;++H)if(D[H].marker==B.marker)continue e;D.push(B)}else I&&(v[T]=I)}return v}z(Fc,"mergeOldSpans");function El(s,f,v){for(var g=[],T=0;T<s.length;++T){var D=s[T];if(D.ranges){g.push(v?ro.prototype.deepCopy.call(D):D);continue}var I=D.changes,U=[];g.push({changes:U});for(var B=0;B<I.length;++B){var H=I[B],ie=void 0;if(U.push({from:H.from,to:H.to,text:H.text}),f)for(var le in H)(ie=le.match(/^spans_(\d+)$/))&&Se(f,Number(ie[1]))>-1&&(Le(U)[le]=H[le],delete H[le])}}return g}z(El,"copyHistoryArray");function Pc(s,f,v,g){if(g){var T=s.anchor;if(v){var D=Q(f,T)<0;D!=Q(v,T)<0?(T=f,f=v):D!=Q(f,v)<0&&(f=v)}return new tn(T,f)}else return new tn(v||f,f)}z(Pc,"extendRange");function vu(s,f,v,g,T){T==null&&(T=s.cm&&(s.cm.display.shift||s.extend)),mr(s,new ro([Pc(s.sel.primary(),f,v,T)],0),g)}z(vu,"extendSelection");function Ha(s,f,v){for(var g=[],T=s.cm&&(s.cm.display.shift||s.extend),D=0;D<s.sel.ranges.length;D++)g[D]=Pc(s.sel.ranges[D],f[D],null,T);var I=io(s.cm,g,s.sel.primIndex);mr(s,I,v)}z(Ha,"extendSelections");function Ht(s,f,v,g){var T=s.sel.ranges.slice(0);T[f]=v,mr(s,io(s.cm,T,s.sel.primIndex),g)}z(Ht,"replaceOneSelection");function Dn(s,f,v,g){mr(s,Vo(f,v),g)}z(Dn,"setSimpleSelection");function Or(s,f,v){var g={ranges:f.ranges,update:function(T){this.ranges=[];for(var D=0;D<T.length;D++)this.ranges[D]=new tn(st(s,T[D].anchor),st(s,T[D].head))},origin:v&&v.origin};return mt(s,"beforeSelectionChange",s,g),s.cm&&mt(s.cm,"beforeSelectionChange",s.cm,g),g.ranges!=f.ranges?io(s.cm,g.ranges,g.ranges.length-1):f}z(Or,"filterSelectionChange");function jc(s,f,v){var g=s.history.done,T=Le(g);T&&T.ranges?(g[g.length-1]=f,ua(s,f,v)):mr(s,f,v)}z(jc,"setSelectionReplaceHistory");function mr(s,f,v){ua(s,f,v),Ic(s,s.sel,s.cm?s.cm.curOp.id:NaN,v)}z(mr,"setSelection");function ua(s,f,v){(an(s,"beforeSelectionChange")||s.cm&&an(s.cm,"beforeSelectionChange"))&&(f=Or(s,f,v));var g=v&&v.bias||(Q(f.primary().head,s.sel.primary().head)<0?-1:1);Vc(s,Sl(s,f,g,!0)),!(v&&v.scroll===!1)&&s.cm&&s.cm.getOption("readOnly")!="nocursor"&&Fo(s.cm)}z(ua,"setSelectionNoUndo");function Vc(s,f){f.equals(s.sel)||(s.sel=f,s.cm&&(s.cm.curOp.updateInput=1,s.cm.curOp.selectionChanged=!0,pi(s.cm)),Pr(s,"cursorActivity",s))}z(Vc,"setSelectionInner");function yu(s){Vc(s,Sl(s,s.sel,null,!1))}z(yu,"reCheckSelection");function Sl(s,f,v,g){for(var T,D=0;D<f.ranges.length;D++){var I=f.ranges[D],U=f.ranges.length==s.sel.ranges.length&&s.sel.ranges[D],B=Kn(s,I.anchor,U&&U.anchor,v,g),H=Kn(s,I.head,U&&U.head,v,g);(T||B!=I.anchor||H!=I.head)&&(T||(T=f.ranges.slice(0,D)),T[D]=new tn(B,H))}return T?io(s.cm,T,f.primIndex):f}z(Sl,"skipAtomicInSelection");function bu(s,f,v,g,T){var D=ft(s,f.line);if(D.markedSpans)for(var I=0;I<D.markedSpans.length;++I){var U=D.markedSpans[I],B=U.marker,H="selectLeft"in B?!B.selectLeft:B.inclusiveLeft,ie="selectRight"in B?!B.selectRight:B.inclusiveRight;if((U.from==null||(H?U.from<=f.ch:U.from<f.ch))&&(U.to==null||(ie?U.to>=f.ch:U.to>f.ch))){if(T&&(mt(B,"beforeCursorEnter"),B.explicitlyCleared))if(D.markedSpans){--I;continue}else break;if(!B.atomic)continue;if(v){var le=B.find(g<0?1:-1),Ee=void 0;if((g<0?ie:H)&&(le=Td(s,le,-g,le&&le.line==f.line?D:null)),le&&le.line==f.line&&(Ee=Q(le,v))&&(g<0?Ee<0:Ee>0))return bu(s,le,f,g,T)}var ge=B.find(g<0?-1:1);return(g<0?H:ie)&&(ge=Td(s,ge,g,ge.line==f.line?D:null)),ge?bu(s,ge,f,g,T):null}}return f}z(bu,"skipAtomicInner");function Kn(s,f,v,g,T){var D=g||1,I=bu(s,f,v,D,T)||!T&&bu(s,f,v,D,!0)||bu(s,f,v,-D,T)||!T&&bu(s,f,v,-D,!0);return I||(s.cantEdit=!0,ze(s.first,0))}z(Kn,"skipAtomic");function Td(s,f,v,g){return v<0&&f.ch==0?f.line>s.first?st(s,ze(f.line-1)):null:v>0&&f.ch==(g||ft(s,f.line)).text.length?f.line<s.first+s.size-1?ze(f.line+1,0):null:new ze(f.line,f.ch+v)}z(Td,"movePos");function xd(s){s.setSelection(ze(s.firstLine(),0),ze(s.lastLine()),Ye)}z(xd,"selectAll");function mh(s,f,v){var g={canceled:!1,from:f.from,to:f.to,text:f.text,origin:f.origin,cancel:function(){return g.canceled=!0}};return v&&(g.update=function(T,D,I,U){T&&(g.from=st(s,T)),D&&(g.to=st(s,D)),I&&(g.text=I),U!==void 0&&(g.origin=U)}),mt(s,"beforeChange",s,g),s.cm&&mt(s.cm,"beforeChange",s.cm,g),g.canceled?(s.cm&&(s.cm.curOp.updateInput=2),null):{from:g.from,to:g.to,text:g.text,origin:g.origin}}z(mh,"filterChange");function Tl(s,f,v){if(s.cm){if(!s.cm.curOp)return xr(s.cm,Tl)(s,f,v);if(s.cm.state.suppressEdits)return}if(!((an(s,"beforeChange")||s.cm&&an(s.cm,"beforeChange"))&&(f=mh(s,f,!0),!f))){var g=d1&&!v&&Up(s,f.from,f.to);if(g)for(var T=g.length-1;T>=0;--T)lv(s,{from:g[T].from,to:g[T].to,text:T?[""]:f.text,origin:f.origin});else lv(s,f)}}z(Tl,"makeChange");function lv(s,f){if(!(f.text.length==1&&f.text[0]==""&&Q(f.from,f.to)==0)){var v=bd(s,f);Sd(s,f,v,s.cm?s.cm.curOp.id:NaN),xl(s,f,v,al(s,f));var g=[];Ba(s,function(T,D){!D&&Se(g,T.history)==-1&&(Uc(T.history,f),g.push(T.history)),xl(T,f,null,al(T,f))})}}z(lv,"makeChangeInner");function Eu(s,f,v){var g=s.cm&&s.cm.state.suppressEdits;if(!(g&&!v)){for(var T=s.history,D,I=s.sel,U=f=="undo"?T.done:T.undone,B=f=="undo"?T.undone:T.done,H=0;H<U.length&&(D=U[H],!(v?D.ranges&&!D.equals(s.sel):!D.ranges));H++);if(H!=U.length){for(T.lastOrigin=T.lastSelOrigin=null;;)if(D=U.pop(),D.ranges){if(Ms(D,B),v&&!D.equals(s.sel)){mr(s,D,{clearRedo:!1});return}I=D}else if(g){U.push(D);return}else break;var ie=[];Ms(I,B),B.push({changes:ie,generation:T.generation}),T.generation=D.generation||++T.maxGeneration;for(var le=an(s,"beforeChange")||s.cm&&an(s.cm,"beforeChange"),Ee=z(function(Ve){var Xe=D.changes[Ve];if(Xe.origin=f,le&&!mh(s,Xe,!1))return U.length=0,{};ie.push(la(s,Xe));var rt=Ve?bd(s,Xe):Le(U);xl(s,Xe,rt,Fc(s,Xe)),!Ve&&s.cm&&s.cm.scrollIntoView({from:Xe.from,to:qa(Xe)});var it=[];Ba(s,function(et,ut){!ut&&Se(it,et.history)==-1&&(Uc(et.history,Xe),it.push(et.history)),xl(et,Xe,null,Fc(et,Xe))})},"loop"),ge=D.changes.length-1;ge>=0;--ge){var we=Ee(ge);if(we)return we.v}}}}z(Eu,"makeChangeFromHistory");function wd(s,f){if(f!=0&&(s.first+=f,s.sel=new ro(be(s.sel.ranges,function(T){return new tn(ze(T.anchor.line+f,T.anchor.ch),ze(T.head.line+f,T.head.ch))}),s.sel.primIndex),s.cm)){Jr(s.cm,s.first,s.first-f,f);for(var v=s.cm.display,g=v.viewFrom;g<v.viewTo;g++)Gr(s.cm,g,"gutter")}}z(wd,"shiftDoc");function xl(s,f,v,g){if(s.cm&&!s.cm.curOp)return xr(s.cm,xl)(s,f,v,g);if(f.to.line<s.first){wd(s,f.text.length-1-(f.to.line-f.from.line));return}if(!(f.from.line>s.lastLine())){if(f.from.line<s.first){var T=f.text.length-1-(s.first-f.from.line);wd(s,T),f={from:ze(s.first,0),to:ze(f.to.line+T,f.to.ch),text:[Le(f.text)],origin:f.origin}}var D=s.lastLine();f.to.line>D&&(f={from:f.from,to:ze(D,ft(s,D).text.length),text:[f.text[0]],origin:f.origin}),f.removed=go(s,f.from,f.to),v||(v=bd(s,f)),s.cm?Bi(s.cm,f,g):bl(s,f,g),ua(s,v,Ye),s.cantEdit&&Kn(s,ze(s.firstLine(),0))&&(s.cantEdit=!1)}}z(xl,"makeChangeSingleDoc");function Bi(s,f,v){var g=s.doc,T=s.display,D=f.from,I=f.to,U=!1,B=D.line;s.options.lineWrapping||(B=sn(qi(ft(g,D.line))),g.iter(B,I.line+1,function(ge){if(ge==T.maxLine)return U=!0,!0})),g.sel.contains(f.from,f.to)>-1&&pi(s),bl(g,f,v,Zg(s)),s.options.lineWrapping||(g.iter(B,D.line+f.text.length,function(ge){var we=ld(ge);we>T.maxLineLength&&(T.maxLine=ge,T.maxLineLength=we,T.maxLineChanged=!0,U=!1)}),U&&(s.curOp.updateMaxLine=!0)),Pp(g,D.line),Eo(s,400);var H=f.text.length-(I.line-D.line)-1;f.full?Jr(s):D.line==I.line&&f.text.length==1&&!ch(s.doc,f)?Gr(s,D.line,"text"):Jr(s,D.line,I.line+1,H);var ie=an(s,"changes"),le=an(s,"change");if(le||ie){var Ee={from:D,to:I,text:f.text,removed:f.removed,origin:f.origin};le&&Pr(s,"change",s,Ee),ie&&(s.curOp.changeObjs||(s.curOp.changeObjs=[])).push(Ee)}s.display.selForContextMenu=null}z(Bi,"makeChangeSingleDocInEditor");function zn(s,f,v,g,T){var D;g||(g=v),Q(g,v)<0&&(D=[g,v],v=D[0],g=D[1]),typeof f=="string"&&(f=s.splitLines(f)),Tl(s,{from:v,to:g,text:f,origin:T})}z(zn,"replaceRange");function Cd(s,f,v,g){v<s.line?s.line+=g:f<s.line&&(s.line=f,s.ch=0)}z(Cd,"rebaseHistSelSingle");function Su(s,f,v,g){for(var T=0;T<s.length;++T){var D=s[T],I=!0;if(D.ranges){D.copied||(D=s[T]=D.deepCopy(),D.copied=!0);for(var U=0;U<D.ranges.length;U++)Cd(D.ranges[U].anchor,f,v,g),Cd(D.ranges[U].head,f,v,g);continue}for(var B=0;B<D.changes.length;++B){var H=D.changes[B];if(v<H.from.line)H.from=ze(H.from.line+g,H.from.ch),H.to=ze(H.to.line+g,H.to.ch);else if(f<=H.to.line){I=!1;break}}I||(s.splice(0,T+1),T=0)}}z(Su,"rebaseHistArray");function Uc(s,f){var v=f.from.line,g=f.to.line,T=f.text.length-(g-v)-1;Su(s.done,v,g,T),Su(s.undone,v,g,T)}z(Uc,"rebaseHist");function wl(s,f,v,g){var T=f,D=f;return typeof f=="number"?D=ft(s,en(s,f)):T=sn(f),T==null?null:(g(D,T)&&s.cm&&Gr(s.cm,T,v),D)}z(wl,"changeLine");function oo(s){this.lines=s,this.parent=null;for(var f=0,v=0;v<s.length;++v)s[v].parent=this,f+=s[v].height;this.height=f}z(oo,"LeafChunk"),oo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(s,f){for(var v=s,g=s+f;v<g;++v){var T=this.lines[v];this.height-=T.height,h1(T),Pr(T,"delete")}this.lines.splice(s,f)},collapse:function(s){s.push.apply(s,this.lines)},insertInner:function(s,f,v){this.height+=v,this.lines=this.lines.slice(0,s).concat(f).concat(this.lines.slice(s));for(var g=0;g<f.length;++g)f[g].parent=this},iterN:function(s,f,v){for(var g=s+f;s<g;++s)if(v(this.lines[s]))return!0}};function Ls(s){this.children=s;for(var f=0,v=0,g=0;g<s.length;++g){var T=s[g];f+=T.chunkSize(),v+=T.height,T.parent=this}this.size=f,this.height=v,this.parent=null}z(Ls,"BranchChunk"),Ls.prototype={chunkSize:function(){return this.size},removeInner:function(s,f){this.size-=f;for(var v=0;v<this.children.length;++v){var g=this.children[v],T=g.chunkSize();if(s<T){var D=Math.min(f,T-s),I=g.height;if(g.removeInner(s,D),this.height-=I-g.height,T==D&&(this.children.splice(v--,1),g.parent=null),(f-=D)==0)break;s=0}else s-=T}if(this.size-f<25&&(this.children.length>1||!(this.children[0]instanceof oo))){var U=[];this.collapse(U),this.children=[new oo(U)],this.children[0].parent=this}},collapse:function(s){for(var f=0;f<this.children.length;++f)this.children[f].collapse(s)},insertInner:function(s,f,v){this.size+=f.length,this.height+=v;for(var g=0;g<this.children.length;++g){var T=this.children[g],D=T.chunkSize();if(s<=D){if(T.insertInner(s,f,v),T.lines&&T.lines.length>50){for(var I=T.lines.length%25+25,U=I;U<T.lines.length;){var B=new oo(T.lines.slice(U,U+=25));T.height-=B.height,this.children.splice(++g,0,B),B.parent=this}T.lines=T.lines.slice(0,I),this.maybeSpill()}break}s-=D}},maybeSpill:function(){if(!(this.children.length<=10)){var s=this;do{var f=s.children.splice(s.children.length-5,5),v=new Ls(f);if(s.parent){s.size-=v.size,s.height-=v.height;var g=Se(s.parent.children,s);s.parent.children.splice(g+1,0,v)}else{var T=new Ls(s.children);T.parent=s,s.children=[T,v],s=T}v.parent=s.parent}while(s.children.length>10);s.parent.maybeSpill()}},iterN:function(s,f,v){for(var g=0;g<this.children.length;++g){var T=this.children[g],D=T.chunkSize();if(s<D){var I=Math.min(f,D-s);if(T.iterN(s,I,v))return!0;if((f-=I)==0)break;s=0}else s-=D}}};var Tu=z(function(s,f,v){if(v)for(var g in v)v.hasOwnProperty(g)&&(this[g]=v[g]);this.doc=s,this.node=f},"LineWidget");Tu.prototype.clear=function(){var s=this.doc.cm,f=this.line.widgets,v=this.line,g=sn(v);if(!(g==null||!f)){for(var T=0;T<f.length;++T)f[T]==this&&f.splice(T--,1);f.length||(v.widgets=null);var D=oa(this);Hr(v,Math.max(0,v.height-D)),s&&(Wr(s,function(){_d(s,v,-D),Gr(s,g,"widget")}),Pr(s,"lineWidgetCleared",s,this,g))}},Tu.prototype.changed=function(){var s=this,f=this.height,v=this.doc.cm,g=this.line;this.height=null;var T=oa(this)-f;T&&(vo(this.doc,g)||Hr(g,g.height+T),v&&Wr(v,function(){v.curOp.forceUpdate=!0,_d(v,g,T),Pr(v,"lineWidgetChanged",v,s,sn(g))}))},Lr(Tu);function _d(s,f,v){ia(f)<(s.curOp&&s.curOp.scrollTop||s.doc.scrollTop)&&As(s,v)}z(_d,"adjustScrollWhenAboveVisible");function uv(s,f,v,g){var T=new Tu(s,v,g),D=s.cm;return D&&T.noHScroll&&(D.display.alignWidgets=!0),wl(s,f,"widget",function(I){var U=I.widgets||(I.widgets=[]);if(T.insertAt==null?U.push(T):U.splice(Math.min(U.length,Math.max(0,T.insertAt)),0,T),T.line=I,D&&!vo(s,I)){var B=ia(I)<s.scrollTop;Hr(I,I.height+oa(T)),B&&As(D,T.height),D.curOp.forceUpdate=!0}return!0}),D&&Pr(D,"lineWidgetAdded",D,T,typeof f=="number"?f:sn(f)),T}z(uv,"addLineWidget");var cv=0,Is=z(function(s,f){this.lines=[],this.type=f,this.doc=s,this.id=++cv},"TextMarker");Is.prototype.clear=function(){if(!this.explicitlyCleared){var s=this.doc.cm,f=s&&!s.curOp;if(f&&mi(s),an(this,"clear")){var v=this.find();v&&Pr(this,"clear",v.from,v.to)}for(var g=null,T=null,D=0;D<this.lines.length;++D){var I=this.lines[D],U=na(I.markedSpans,this);s&&!this.collapsed?Gr(s,sn(I),"text"):s&&(U.to!=null&&(T=sn(I)),U.from!=null&&(g=sn(I))),I.markedSpans=Jl(I.markedSpans,U),U.from==null&&this.collapsed&&!vo(this.doc,I)&&s&&Hr(I,dl(s.display))}if(s&&this.collapsed&&!s.options.lineWrapping)for(var B=0;B<this.lines.length;++B){var H=qi(this.lines[B]),ie=ld(H);ie>s.display.maxLineLength&&(s.display.maxLine=H,s.display.maxLineLength=ie,s.display.maxLineChanged=!0)}g!=null&&s&&this.collapsed&&Jr(s,g,T+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,s&&yu(s.doc)),s&&Pr(s,"markerCleared",s,this,g,T),f&&Pa(s),this.parent&&this.parent.clear()}},Is.prototype.find=function(s,f){s==null&&this.type=="bookmark"&&(s=1);for(var v,g,T=0;T<this.lines.length;++T){var D=this.lines[T],I=na(D.markedSpans,this);if(I.from!=null&&(v=ze(f?D:sn(D),I.from),s==-1))return v;if(I.to!=null&&(g=ze(f?D:sn(D),I.to),s==1))return g}return v&&{from:v,to:g}},Is.prototype.changed=function(){var s=this,f=this.find(-1,!0),v=this,g=this.doc.cm;!f||!g||Wr(g,function(){var T=f.line,D=sn(f.line),I=Sc(g,D);if(I&&(Qg(I),g.curOp.selectionChanged=g.curOp.forceUpdate=!0),g.curOp.updateMaxLine=!0,!vo(v.doc,T)&&v.height!=null){var U=v.height;v.height=null;var B=oa(v)-U;B&&Hr(T,T.height+B)}Pr(g,"markerChanged",g,s)})},Is.prototype.attachLine=function(s){if(!this.lines.length&&this.doc.cm){var f=this.doc.cm.curOp;(!f.maybeHiddenMarkers||Se(f.maybeHiddenMarkers,this)==-1)&&(f.maybeUnhiddenMarkers||(f.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(s)},Is.prototype.detachLine=function(s){if(this.lines.splice(Se(this.lines,s),1),!this.lines.length&&this.doc.cm){var f=this.doc.cm.curOp;(f.maybeHiddenMarkers||(f.maybeHiddenMarkers=[])).push(this)}},Lr(Is);function Cl(s,f,v,g,T){if(g&&g.shared)return fv(s,f,v,g,T);if(s.cm&&!s.cm.curOp)return xr(s.cm,Cl)(s,f,v,g,T);var D=new Is(s,T),I=Q(f,v);if(g&&pe(g,D,!1),I>0||I==0&&D.clearWhenEmpty!==!1)return D;if(D.replacedWith&&(D.collapsed=!0,D.widgetNode=q("span",[D.replacedWith],"CodeMirror-widget"),g.handleMouseEvents||D.widgetNode.setAttribute("cm-ignore-events","true"),g.insertLeft&&(D.widgetNode.insertLeft=!0)),D.collapsed){if(xs(s,f.line,f,v,D)||f.line!=v.line&&xs(s,v.line,f,v,D))throw new Error("Inserting collapsed marker partially overlapping an existing one");jp()}D.addToHistory&&Sd(s,{from:f,to:v,origin:"markText"},s.sel,NaN);var U=f.line,B=s.cm,H;if(s.iter(U,v.line+1,function(le){B&&D.collapsed&&!B.options.lineWrapping&&qi(le)==B.display.maxLine&&(H=!0),D.collapsed&&U!=f.line&&Hr(le,0),Mg(le,new Zl(D,U==f.line?f.ch:null,U==v.line?v.ch:null),s.cm&&s.cm.curOp),++U}),D.collapsed&&s.iter(f.line,v.line+1,function(le){vo(s,le)&&Hr(le,0)}),D.clearOnEnter&&at(D,"beforeCursorEnter",function(){return D.clear()}),D.readOnly&&(od(),(s.history.done.length||s.history.undone.length)&&s.clearHistory()),D.collapsed&&(D.id=++cv,D.atomic=!0),B){if(H&&(B.curOp.updateMaxLine=!0),D.collapsed)Jr(B,f.line,v.line+1);else if(D.className||D.startStyle||D.endStyle||D.css||D.attributes||D.title)for(var ie=f.line;ie<=v.line;ie++)Gr(B,ie,"text");D.atomic&&yu(B.doc),Pr(B,"markerAdded",B,D)}return D}z(Cl,"markText");var qc=z(function(s,f){this.markers=s,this.primary=f;for(var v=0;v<s.length;++v)s[v].parent=this},"SharedTextMarker");qc.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var s=0;s<this.markers.length;++s)this.markers[s].clear();Pr(this,"clear")}},qc.prototype.find=function(s,f){return this.primary.find(s,f)},Lr(qc);function fv(s,f,v,g,T){g=pe(g),g.shared=!1;var D=[Cl(s,f,v,g,T)],I=D[0],U=g.widgetNode;return Ba(s,function(B){U&&(g.widgetNode=U.cloneNode(!0)),D.push(Cl(B,st(B,f),st(B,v),g,T));for(var H=0;H<B.linked.length;++H)if(B.linked[H].isParent)return;I=Le(D)}),new qc(D,I)}z(fv,"markTextShared");function Nd(s){return s.findMarks(ze(s.first,0),s.clipPos(ze(s.lastLine())),function(f){return f.parent})}z(Nd,"findSharedMarkers");function dv(s,f){for(var v=0;v<f.length;v++){var g=f[v],T=g.find(),D=s.clipPos(T.from),I=s.clipPos(T.to);if(Q(D,I)){var U=Cl(s,D,I,g.primary,g.primary.type);g.markers.push(U),U.parent=g}}}z(dv,"copySharedMarkers");function _1(s){for(var f=z(function(g){var T=s[g],D=[T.primary.doc];Ba(T.primary.doc,function(B){return D.push(B)});for(var I=0;I<T.markers.length;I++){var U=T.markers[I];Se(D,U.doc)==-1&&(U.parent=null,T.markers.splice(I--,1))}},"loop"),v=0;v<s.length;v++)f(v)}z(_1,"detachSharedMarkers");var N1=0,_i=z(function(s,f,v,g,T){if(!(this instanceof _i))return new _i(s,f,v,g,T);v==null&&(v=0),Ls.call(this,[new oo([new vc("",null)])]),this.first=v,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=v;var D=ze(v,0);this.sel=Vo(D),this.history=new mu(null),this.id=++N1,this.modeOption=f,this.lineSep=g,this.direction=T=="rtl"?"rtl":"ltr",this.extend=!1,typeof s=="string"&&(s=this.splitLines(s)),bl(this,{from:D,to:D,text:s}),mr(this,Vo(D),Ye)},"Doc");_i.prototype=Je(Ls.prototype,{constructor:_i,iter:function(s,f,v){v?this.iterN(s-this.first,f-s,v):this.iterN(this.first,this.first+this.size,s)},insert:function(s,f){for(var v=0,g=0;g<f.length;++g)v+=f[g].height;this.insertInner(s-this.first,f,v)},remove:function(s,f){this.removeInner(s-this.first,f)},getValue:function(s){var f=Kl(this,this.first,this.first+this.size);return s===!1?f:f.join(s||this.lineSeparator())},setValue:jn(function(s){var f=ze(this.first,0),v=this.first+this.size-1;Tl(this,{from:f,to:ze(v,ft(this,v).text.length),text:this.splitLines(s),origin:"setValue",full:!0},!0),this.cm&&Os(this.cm,0,0),mr(this,Vo(f),Ye)}),replaceRange:function(s,f,v,g){f=st(this,f),v=v?st(this,v):f,zn(this,s,f,v,g)},getRange:function(s,f,v){var g=go(this,st(this,s),st(this,f));return v===!1?g:v===""?g.join(""):g.join(v||this.lineSeparator())},getLine:function(s){var f=this.getLineHandle(s);return f&&f.text},getLineHandle:function(s){if(ta(this,s))return ft(this,s)},getLineNumber:function(s){return sn(s)},getLineHandleVisualStart:function(s){return typeof s=="number"&&(s=ft(this,s)),qi(s)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(s){return st(this,s)},getCursor:function(s){var f=this.sel.primary(),v;return s==null||s=="head"?v=f.head:s=="anchor"?v=f.anchor:s=="end"||s=="to"||s===!1?v=f.to():v=f.from(),v},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:jn(function(s,f,v){Dn(this,st(this,typeof s=="number"?ze(s,f||0):s),null,v)}),setSelection:jn(function(s,f,v){Dn(this,st(this,s),st(this,f||s),v)}),extendSelection:jn(function(s,f,v){vu(this,st(this,s),f&&st(this,f),v)}),extendSelections:jn(function(s,f){Ha(this,Vi(this,s),f)}),extendSelectionsBy:jn(function(s,f){var v=be(this.sel.ranges,s);Ha(this,Vi(this,v),f)}),setSelections:jn(function(s,f,v){if(s.length){for(var g=[],T=0;T<s.length;T++)g[T]=new tn(st(this,s[T].anchor),st(this,s[T].head||s[T].anchor));f==null&&(f=Math.min(s.length-1,this.sel.primIndex)),mr(this,io(this.cm,g,f),v)}}),addSelection:jn(function(s,f,v){var g=this.sel.ranges.slice(0);g.push(new tn(st(this,s),st(this,f||s))),mr(this,io(this.cm,g,g.length-1),v)}),getSelection:function(s){for(var f=this.sel.ranges,v,g=0;g<f.length;g++){var T=go(this,f[g].from(),f[g].to());v=v?v.concat(T):T}return s===!1?v:v.join(s||this.lineSeparator())},getSelections:function(s){for(var f=[],v=this.sel.ranges,g=0;g<v.length;g++){var T=go(this,v[g].from(),v[g].to());s!==!1&&(T=T.join(s||this.lineSeparator())),f[g]=T}return f},replaceSelection:function(s,f,v){for(var g=[],T=0;T<this.sel.ranges.length;T++)g[T]=s;this.replaceSelections(g,f,v||"+input")},replaceSelections:jn(function(s,f,v){for(var g=[],T=this.sel,D=0;D<T.ranges.length;D++){var I=T.ranges[D];g[D]={from:I.from(),to:I.to(),text:this.splitLines(s[D]),origin:v}}for(var U=f&&f!="end"&&uh(this,g,f),B=g.length-1;B>=0;B--)Tl(this,g[B]);U?jc(this,U):this.cm&&Fo(this.cm)}),undo:jn(function(){Eu(this,"undo")}),redo:jn(function(){Eu(this,"redo")}),undoSelection:jn(function(){Eu(this,"undo",!0)}),redoSelection:jn(function(){Eu(this,"redo",!0)}),setExtending:function(s){this.extend=s},getExtending:function(){return this.extend},historySize:function(){for(var s=this.history,f=0,v=0,g=0;g<s.done.length;g++)s.done[g].ranges||++f;for(var T=0;T<s.undone.length;T++)s.undone[T].ranges||++v;return{undo:f,redo:v}},clearHistory:function(){var s=this;this.history=new mu(this.history),Ba(this,function(f){return f.history=s.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(s){return s&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(s){return this.history.generation==(s||this.cleanGeneration)},getHistory:function(){return{done:El(this.history.done),undone:El(this.history.undone)}},setHistory:function(s){var f=this.history=new mu(this.history);f.done=El(s.done.slice(0),null,!0),f.undone=El(s.undone.slice(0),null,!0)},setGutterMarker:jn(function(s,f,v){return wl(this,s,"gutter",function(g){var T=g.gutterMarkers||(g.gutterMarkers={});return T[f]=v,!v&&$e(T)&&(g.gutterMarkers=null),!0})}),clearGutter:jn(function(s){var f=this;this.iter(function(v){v.gutterMarkers&&v.gutterMarkers[s]&&wl(f,v,"gutter",function(){return v.gutterMarkers[s]=null,$e(v.gutterMarkers)&&(v.gutterMarkers=null),!0})})}),lineInfo:function(s){var f;if(typeof s=="number"){if(!ta(this,s)||(f=s,s=ft(this,s),!s))return null}else if(f=sn(s),f==null)return null;return{line:f,handle:s,text:s.text,gutterMarkers:s.gutterMarkers,textClass:s.textClass,bgClass:s.bgClass,wrapClass:s.wrapClass,widgets:s.widgets}},addLineClass:jn(function(s,f,v){return wl(this,s,f=="gutter"?"gutter":"class",function(g){var T=f=="text"?"textClass":f=="background"?"bgClass":f=="gutter"?"gutterClass":"wrapClass";if(!g[T])g[T]=v;else{if($(v).test(g[T]))return!1;g[T]+=" "+v}return!0})}),removeLineClass:jn(function(s,f,v){return wl(this,s,f=="gutter"?"gutter":"class",function(g){var T=f=="text"?"textClass":f=="background"?"bgClass":f=="gutter"?"gutterClass":"wrapClass",D=g[T];if(D)if(v==null)g[T]=null;else{var I=D.match($(v));if(!I)return!1;var U=I.index+I[0].length;g[T]=D.slice(0,I.index)+(!I.index||U==D.length?"":" ")+D.slice(U)||null}else return!1;return!0})}),addLineWidget:jn(function(s,f,v){return uv(this,s,f,v)}),removeLineWidget:function(s){s.clear()},markText:function(s,f,v){return Cl(this,st(this,s),st(this,f),v,v&&v.type||"range")},setBookmark:function(s,f){var v={replacedWith:f&&(f.nodeType==null?f.widget:f),insertLeft:f&&f.insertLeft,clearWhenEmpty:!1,shared:f&&f.shared,handleMouseEvents:f&&f.handleMouseEvents};return s=st(this,s),Cl(this,s,s,v,"bookmark")},findMarksAt:function(s){s=st(this,s);var f=[],v=ft(this,s.line).markedSpans;if(v)for(var g=0;g<v.length;++g){var T=v[g];(T.from==null||T.from<=s.ch)&&(T.to==null||T.to>=s.ch)&&f.push(T.marker.parent||T.marker)}return f},findMarks:function(s,f,v){s=st(this,s),f=st(this,f);var g=[],T=s.line;return this.iter(s.line,f.line+1,function(D){var I=D.markedSpans;if(I)for(var U=0;U<I.length;U++){var B=I[U];!(B.to!=null&&T==s.line&&s.ch>=B.to||B.from==null&&T!=s.line||B.from!=null&&T==f.line&&B.from>=f.ch)&&(!v||v(B.marker))&&g.push(B.marker.parent||B.marker)}++T}),g},getAllMarks:function(){var s=[];return this.iter(function(f){var v=f.markedSpans;if(v)for(var g=0;g<v.length;++g)v[g].from!=null&&s.push(v[g].marker)}),s},posFromIndex:function(s){var f,v=this.first,g=this.lineSeparator().length;return this.iter(function(T){var D=T.text.length+g;if(D>s)return f=s,!0;s-=D,++v}),st(this,ze(v,f))},indexFromPos:function(s){s=st(this,s);var f=s.ch;if(s.line<this.first||s.ch<0)return 0;var v=this.lineSeparator().length;return this.iter(this.first,s.line,function(g){f+=g.text.length+v}),f},copy:function(s){var f=new _i(Kl(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return f.scrollTop=this.scrollTop,f.scrollLeft=this.scrollLeft,f.sel=this.sel,f.extend=!1,s&&(f.history.undoDepth=this.history.undoDepth,f.setHistory(this.getHistory())),f},linkedDoc:function(s){s||(s={});var f=this.first,v=this.first+this.size;s.from!=null&&s.from>f&&(f=s.from),s.to!=null&&s.to<v&&(v=s.to);var g=new _i(Kl(this,f,v),s.mode||this.modeOption,f,this.lineSep,this.direction);return s.sharedHist&&(g.history=this.history),(this.linked||(this.linked=[])).push({doc:g,sharedHist:s.sharedHist}),g.linked=[{doc:this,isParent:!0,sharedHist:s.sharedHist}],dv(g,Nd(this)),g},unlinkDoc:function(s){if(s instanceof Ln&&(s=s.doc),this.linked)for(var f=0;f<this.linked.length;++f){var v=this.linked[f];if(v.doc==s){this.linked.splice(f,1),s.unlinkDoc(this),_1(Nd(this));break}}if(s.history==this.history){var g=[s.id];Ba(s,function(T){return g.push(T.id)},!0),s.history=new mu(null),s.history.done=El(this.history.done,g),s.history.undone=El(this.history.undone,g)}},iterLinkedDocs:function(s){Ba(this,s)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(s){return this.lineSep?s.split(this.lineSep):Fi(s)},lineSeparator:function(){return this.lineSep||`
`},setDirection:jn(function(s){s!="rtl"&&(s="ltr"),s!=this.direction&&(this.direction=s,this.iter(function(f){return f.order=null}),this.cm&&dh(this.cm))})}),_i.prototype.eachLine=_i.prototype.iter;var pv=0;function gh(s){var f=this;if(vh(f),!(bn(f,s)||La(f.display,s))){On(s),p&&(pv=+new Date);var v=Cs(f,s,!0),g=s.dataTransfer.files;if(!(!v||f.isReadOnly()))if(g&&g.length&&window.FileReader&&window.File)for(var T=g.length,D=Array(T),I=0,U=z(function(){++I==T&&xr(f,function(){v=st(f.doc,v);var ge={from:v,to:v,text:f.doc.splitLines(D.filter(function(we){return we!=null}).join(f.doc.lineSeparator())),origin:"paste"};Tl(f.doc,ge),jc(f.doc,Vo(st(f.doc,v),st(f.doc,qa(ge))))})()},"markAsReadAndPasteIfAllFilesAreRead"),B=z(function(ge,we){if(f.options.allowDropFileTypes&&Se(f.options.allowDropFileTypes,ge.type)==-1){U();return}var Ve=new FileReader;Ve.onerror=function(){return U()},Ve.onload=function(){var Xe=Ve.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Xe)){U();return}D[we]=Xe,U()},Ve.readAsText(ge)},"readTextFromFile"),H=0;H<g.length;H++)B(g[H],H);else{if(f.state.draggingText&&f.doc.sel.contains(v)>-1){f.state.draggingText(s),setTimeout(function(){return f.display.input.focus()},20);return}try{var ie=s.dataTransfer.getData("Text");if(ie){var le;if(f.state.draggingText&&!f.state.draggingText.copy&&(le=f.listSelections()),ua(f.doc,Vo(v,v)),le)for(var Ee=0;Ee<le.length;++Ee)zn(f.doc,"",le[Ee].anchor,le[Ee].head,"drag");f.replaceSelection(ie,"around","paste"),f.display.input.focus()}}catch{}}}}z(gh,"onDrop");function hv(s,f){if(p&&(!s.state.draggingText||+new Date-pv<100)){Bt(f);return}if(!(bn(s,f)||La(s.display,f))&&(f.dataTransfer.setData("Text",s.getSelection()),f.dataTransfer.effectAllowed="copyMove",f.dataTransfer.setDragImage&&!x)){var v=W("img",null,null,"position: fixed; left: 0; top: 0;");v.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",y&&(v.width=v.height=1,s.display.wrapper.appendChild(v),v._top=v.offsetTop),f.dataTransfer.setDragImage(v,0,0),y&&v.parentNode.removeChild(v)}}z(hv,"onDragStart");function mv(s,f){var v=Cs(s,f);if(v){var g=document.createDocumentFragment();au(s,v,g),s.display.dragCursor||(s.display.dragCursor=W("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),s.display.lineSpace.insertBefore(s.display.dragCursor,s.display.cursorDiv)),J(s.display.dragCursor,g)}}z(mv,"onDragOver");function vh(s){s.display.dragCursor&&(s.display.lineSpace.removeChild(s.display.dragCursor),s.display.dragCursor=null)}z(vh,"clearDragCursor");function yh(s){if(document.getElementsByClassName){for(var f=document.getElementsByClassName("CodeMirror"),v=[],g=0;g<f.length;g++){var T=f[g].CodeMirror;T&&v.push(T)}v.length&&v[0].operation(function(){for(var D=0;D<v.length;D++)s(v[D])})}}z(yh,"forEachCodeMirror");var gv=!1;function A1(){gv||(vv(),gv=!0)}z(A1,"ensureGlobalHandlers");function vv(){var s;at(window,"resize",function(){s==null&&(s=setTimeout(function(){s=null,yh(xu)},100))}),at(window,"blur",function(){return yh(Yr)})}z(vv,"registerGlobalHandlers");function xu(s){var f=s.display;f.cachedCharWidth=f.cachedTextHeight=f.cachedPaddingH=null,f.scrollbarsClipped=!1,s.setSize()}z(xu,"onResize");for(var ca={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"},Bc=0;Bc<10;Bc++)ca[Bc+48]=ca[Bc+96]=String(Bc);for(var wu=65;wu<=90;wu++)ca[wu]=String.fromCharCode(wu);for(var Fs=1;Fs<=12;Fs++)ca[Fs+111]=ca[Fs+63235]="F"+Fs;var Ga={};Ga.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"},Ga.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"},Ga.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"},Ga.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"]},Ga.default=_?Ga.macDefault:Ga.pcDefault;function yv(s){var f=s.split(/-(?!$)/);s=f[f.length-1];for(var v,g,T,D,I=0;I<f.length-1;I++){var U=f[I];if(/^(cmd|meta|m)$/i.test(U))D=!0;else if(/^a(lt)?$/i.test(U))v=!0;else if(/^(c|ctrl|control)$/i.test(U))g=!0;else if(/^s(hift)?$/i.test(U))T=!0;else throw new Error("Unrecognized modifier name: "+U)}return v&&(s="Alt-"+s),g&&(s="Ctrl-"+s),D&&(s="Cmd-"+s),T&&(s="Shift-"+s),s}z(yv,"normalizeKeyName");function bv(s){var f={};for(var v in s)if(s.hasOwnProperty(v)){var g=s[v];if(/^(name|fallthrough|(de|at)tach)$/.test(v))continue;if(g=="..."){delete s[v];continue}for(var T=be(v.split(" "),yv),D=0;D<T.length;D++){var I=void 0,U=void 0;D==T.length-1?(U=T.join(" "),I=g):(U=T.slice(0,D+1).join(" "),I="...");var B=f[U];if(!B)f[U]=I;else if(B!=I)throw new Error("Inconsistent bindings for "+U)}delete s[v]}for(var H in f)s[H]=f[H];return s}z(bv,"normalizeKeyMap");function _l(s,f,v,g){f=$c(f);var T=f.call?f.call(s,g):f[s];if(T===!1)return"nothing";if(T==="...")return"multi";if(T!=null&&v(T))return"handled";if(f.fallthrough){if(Object.prototype.toString.call(f.fallthrough)!="[object Array]")return _l(s,f.fallthrough,v,g);for(var D=0;D<f.fallthrough.length;D++){var I=_l(s,f.fallthrough[D],v,g);if(I)return I}}}z(_l,"lookupKey");function bh(s){var f=typeof s=="string"?s:ca[s.keyCode];return f=="Ctrl"||f=="Alt"||f=="Shift"||f=="Mod"}z(bh,"isModifierKey");function Eh(s,f,v){var g=s;return f.altKey&&g!="Alt"&&(s="Alt-"+s),(F?f.metaKey:f.ctrlKey)&&g!="Ctrl"&&(s="Ctrl-"+s),(F?f.ctrlKey:f.metaKey)&&g!="Mod"&&(s="Cmd-"+s),!v&&f.shiftKey&&g!="Shift"&&(s="Shift-"+s),s}z(Eh,"addModifierNames");function Ad(s,f){if(y&&s.keyCode==34&&s.char)return!1;var v=ca[s.keyCode];return v==null||s.altGraphKey?!1:(s.keyCode==3&&s.code&&(v=s.code),Eh(v,s,f))}z(Ad,"keyName");function $c(s){return typeof s=="string"?Ga[s]:s}z($c,"getKeyMap");function Nl(s,f){for(var v=s.doc.sel.ranges,g=[],T=0;T<v.length;T++){for(var D=f(v[T]);g.length&&Q(D.from,Le(g).to)<=0;){var I=g.pop();if(Q(I.from,D.from)<0){D.from=I.from;break}}g.push(D)}Wr(s,function(){for(var U=g.length-1;U>=0;U--)zn(s.doc,"",g[U].from,g[U].to,"+delete");Fo(s)})}z(Nl,"deleteNearSelection");function zc(s,f,v){var g=Dt(s.text,f+v,v);return g<0||g>s.text.length?null:g}z(zc,"moveCharLogically");function Od(s,f,v){var g=zc(s,f.ch,v);return g==null?null:new ze(f.line,g,v<0?"after":"before")}z(Od,"moveLogically");function Dd(s,f,v,g,T){if(s){f.doc.direction=="rtl"&&(T=-T);var D=Vt(v,f.doc.direction);if(D){var I=T<0?Le(D):D[0],U=T<0==(I.level==1),B=U?"after":"before",H;if(I.level>0||f.doc.direction=="rtl"){var ie=ws(f,v);H=T<0?v.text.length-1:0;var le=Lo(f,ie,H).top;H=jt(function(Ee){return Lo(f,ie,Ee).top==le},T<0==(I.level==1)?I.from:I.to-1,H),B=="before"&&(H=zc(v,H,1))}else H=T<0?I.to:I.from;return new ze(g,H,B)}}return new ze(g,T<0?v.text.length:0,T<0?"before":"after")}z(Dd,"endOfLine");function O1(s,f,v,g){var T=Vt(f,s.doc.direction);if(!T)return Od(f,v,g);v.ch>=f.text.length?(v.ch=f.text.length,v.sticky="before"):v.ch<=0&&(v.ch=0,v.sticky="after");var D=pt(T,v.ch,v.sticky),I=T[D];if(s.doc.direction=="ltr"&&I.level%2==0&&(g>0?I.to>v.ch:I.from<v.ch))return Od(f,v,g);var U=z(function(rt,it){return zc(f,rt instanceof ze?rt.ch:rt,it)},"mv"),B,H=z(function(rt){return s.options.lineWrapping?(B=B||ws(s,f),Jp(s,f,B,rt)):{begin:0,end:f.text.length}},"getWrappedLineExtent"),ie=H(v.sticky=="before"?U(v,-1):v.ch);if(s.doc.direction=="rtl"||I.level==1){var le=I.level==1==g<0,Ee=U(v,le?1:-1);if(Ee!=null&&(le?Ee<=I.to&&Ee<=ie.end:Ee>=I.from&&Ee>=ie.begin)){var ge=le?"before":"after";return new ze(v.line,Ee,ge)}}var we=z(function(rt,it,et){for(var ut=z(function(In,kr){return kr?new ze(v.line,U(In,1),"before"):new ze(v.line,In,"after")},"getRes");rt>=0&&rt<T.length;rt+=it){var Ct=T[rt],yt=it>0==(Ct.level!=1),kt=yt?et.begin:U(et.end,-1);if(Ct.from<=kt&&kt<Ct.to||(kt=yt?Ct.from:U(Ct.to,-1),et.begin<=kt&&kt<et.end))return ut(kt,yt)}},"searchInVisualLine"),Ve=we(D+g,g,ie);if(Ve)return Ve;var Xe=g>0?ie.end:U(ie.begin,-1);return Xe!=null&&!(g>0&&Xe==f.text.length)&&(Ve=we(g>0?0:T.length-1,g,H(Xe)),Ve)?Ve:null}z(O1,"moveVisually");var Cu={selectAll:xd,singleSelection:function(s){return s.setSelection(s.getCursor("anchor"),s.getCursor("head"),Ye)},killLine:function(s){return Nl(s,function(f){if(f.empty()){var v=ft(s.doc,f.head.line).text.length;return f.head.ch==v&&f.head.line<s.lastLine()?{from:f.head,to:ze(f.head.line+1,0)}:{from:f.head,to:ze(f.head.line,v)}}else return{from:f.from(),to:f.to()}})},deleteLine:function(s){return Nl(s,function(f){return{from:ze(f.from().line,0),to:st(s.doc,ze(f.to().line+1,0))}})},delLineLeft:function(s){return Nl(s,function(f){return{from:ze(f.from().line,0),to:f.from()}})},delWrappedLineLeft:function(s){return Nl(s,function(f){var v=s.charCoords(f.head,"div").top+5,g=s.coordsChar({left:0,top:v},"div");return{from:g,to:f.from()}})},delWrappedLineRight:function(s){return Nl(s,function(f){var v=s.charCoords(f.head,"div").top+5,g=s.coordsChar({left:s.display.lineDiv.offsetWidth+100,top:v},"div");return{from:f.from(),to:g}})},undo:function(s){return s.undo()},redo:function(s){return s.redo()},undoSelection:function(s){return s.undoSelection()},redoSelection:function(s){return s.redoSelection()},goDocStart:function(s){return s.extendSelection(ze(s.firstLine(),0))},goDocEnd:function(s){return s.extendSelection(ze(s.lastLine()))},goLineStart:function(s){return s.extendSelectionsBy(function(f){return Sh(s,f.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(s){return s.extendSelectionsBy(function(f){return kd(s,f.head)},{origin:"+move",bias:1})},goLineEnd:function(s){return s.extendSelectionsBy(function(f){return Ev(s,f.head.line)},{origin:"+move",bias:-1})},goLineRight:function(s){return s.extendSelectionsBy(function(f){var v=s.cursorCoords(f.head,"div").top+5;return s.coordsChar({left:s.display.lineDiv.offsetWidth+100,top:v},"div")},gt)},goLineLeft:function(s){return s.extendSelectionsBy(function(f){var v=s.cursorCoords(f.head,"div").top+5;return s.coordsChar({left:0,top:v},"div")},gt)},goLineLeftSmart:function(s){return s.extendSelectionsBy(function(f){var v=s.cursorCoords(f.head,"div").top+5,g=s.coordsChar({left:0,top:v},"div");return g.ch<s.getLine(g.line).search(/\S/)?kd(s,f.head):g},gt)},goLineUp:function(s){return s.moveV(-1,"line")},goLineDown:function(s){return s.moveV(1,"line")},goPageUp:function(s){return s.moveV(-1,"page")},goPageDown:function(s){return s.moveV(1,"page")},goCharLeft:function(s){return s.moveH(-1,"char")},goCharRight:function(s){return s.moveH(1,"char")},goColumnLeft:function(s){return s.moveH(-1,"column")},goColumnRight:function(s){return s.moveH(1,"column")},goWordLeft:function(s){return s.moveH(-1,"word")},goGroupRight:function(s){return s.moveH(1,"group")},goGroupLeft:function(s){return s.moveH(-1,"group")},goWordRight:function(s){return s.moveH(1,"word")},delCharBefore:function(s){return s.deleteH(-1,"codepoint")},delCharAfter:function(s){return s.deleteH(1,"char")},delWordBefore:function(s){return s.deleteH(-1,"word")},delWordAfter:function(s){return s.deleteH(1,"word")},delGroupBefore:function(s){return s.deleteH(-1,"group")},delGroupAfter:function(s){return s.deleteH(1,"group")},indentAuto:function(s){return s.indentSelection("smart")},indentMore:function(s){return s.indentSelection("add")},indentLess:function(s){return s.indentSelection("subtract")},insertTab:function(s){return s.replaceSelection("	")},insertSoftTab:function(s){for(var f=[],v=s.listSelections(),g=s.options.tabSize,T=0;T<v.length;T++){var D=v[T].from(),I=ce(s.getLine(D.line),D.ch,g);f.push(ye(g-I%g))}s.replaceSelections(f)},defaultTab:function(s){s.somethingSelected()?s.indentSelection("add"):s.execCommand("insertTab")},transposeChars:function(s){return Wr(s,function(){for(var f=s.listSelections(),v=[],g=0;g<f.length;g++)if(f[g].empty()){var T=f[g].head,D=ft(s.doc,T.line).text;if(D){if(T.ch==D.length&&(T=new ze(T.line,T.ch-1)),T.ch>0)T=new ze(T.line,T.ch+1),s.replaceRange(D.charAt(T.ch-1)+D.charAt(T.ch-2),ze(T.line,T.ch-2),T,"+transpose");else if(T.line>s.doc.first){var I=ft(s.doc,T.line-1).text;I&&(T=new ze(T.line,1),s.replaceRange(D.charAt(0)+s.doc.lineSeparator()+I.charAt(I.length-1),ze(T.line-1,I.length-1),T,"+transpose"))}}v.push(new tn(T,T))}s.setSelections(v)})},newlineAndIndent:function(s){return Wr(s,function(){for(var f=s.listSelections(),v=f.length-1;v>=0;v--)s.replaceRange(s.doc.lineSeparator(),f[v].anchor,f[v].head,"+input");f=s.listSelections();for(var g=0;g<f.length;g++)s.indentLine(f[g].from().line,null,!0);Fo(s)})},openLine:function(s){return s.replaceSelection(`
`,"start")},toggleOverwrite:function(s){return s.toggleOverwrite()}};function Sh(s,f){var v=ft(s.doc,f),g=qi(v);return g!=v&&(f=sn(g)),Dd(!0,s,g,f,1)}z(Sh,"lineStart");function Ev(s,f){var v=ft(s.doc,f),g=mc(v);return g!=v&&(f=sn(g)),Dd(!0,s,v,f,-1)}z(Ev,"lineEnd");function kd(s,f){var v=Sh(s,f.line),g=ft(s.doc,v.line),T=Vt(g,s.doc.direction);if(!T||T[0].level==0){var D=Math.max(v.ch,g.text.search(/\S/)),I=f.line==v.line&&f.ch<=D&&f.ch;return ze(v.line,I?0:D,v.sticky)}return v}z(kd,"lineStartSmart");function Hc(s,f,v){if(typeof f=="string"&&(f=Cu[f],!f))return!1;s.display.input.ensurePolled();var g=s.display.shift,T=!1;try{s.isReadOnly()&&(s.state.suppressEdits=!0),v&&(s.display.shift=!1),T=f(s)!=Ge}finally{s.display.shift=g,s.state.suppressEdits=!1}return T}z(Hc,"doHandleBinding");function Sv(s,f,v){for(var g=0;g<s.state.keyMaps.length;g++){var T=_l(f,s.state.keyMaps[g],v,s);if(T)return T}return s.options.extraKeys&&_l(f,s.options.extraKeys,v,s)||_l(f,s.options.keyMap,v,s)}z(Sv,"lookupKeyForEditor");var m_=new me;function Gc(s,f,v,g){var T=s.state.keySeq;if(T){if(bh(f))return"handled";if(/\'$/.test(f)?s.state.keySeq=null:m_.set(50,function(){s.state.keySeq==T&&(s.state.keySeq=null,s.display.input.reset())}),Th(s,T+" "+f,v,g))return!0}return Th(s,f,v,g)}z(Gc,"dispatchKey");function Th(s,f,v,g){var T=Sv(s,f,g);return T=="multi"&&(s.state.keySeq=f),T=="handled"&&Pr(s,"keyHandled",s,f,v),(T=="handled"||T=="multi")&&(On(v),md(s)),!!T}z(Th,"dispatchKeyInner");function _u(s,f){var v=Ad(f,!0);return v?f.shiftKey&&!s.state.keySeq?Gc(s,"Shift-"+v,f,function(g){return Hc(s,g,!0)})||Gc(s,v,f,function(g){if(typeof g=="string"?/^go[A-Z]/.test(g):g.motion)return Hc(s,g)}):Gc(s,v,f,function(g){return Hc(s,g)}):!1}z(_u,"handleKeyBinding");function xh(s,f,v){return Gc(s,"'"+v+"'",f,function(g){return Hc(s,g,!0)})}z(xh,"handleCharBinding");var Yc=null;function wh(s){var f=this;if(!(s.target&&s.target!=f.display.input.getField())&&(f.curOp.focus=ae(),!bn(f,s))){p&&d<11&&s.keyCode==27&&(s.returnValue=!1);var v=s.keyCode;f.display.shift=v==16||s.shiftKey;var g=_u(f,s);y&&(Yc=g?v:null,!g&&v==88&&!ea&&(_?s.metaKey:s.ctrlKey)&&f.replaceSelection("",null,"cut")),i&&!_&&!g&&v==46&&s.shiftKey&&!s.ctrlKey&&document.execCommand&&document.execCommand("cut"),v==18&&!/\bCodeMirror-crosshair\b/.test(f.display.lineDiv.className)&&Tv(f)}}z(wh,"onKeyDown");function Tv(s){var f=s.display.lineDiv;fe(f,"CodeMirror-crosshair");function v(g){(g.keyCode==18||!g.altKey)&&(K(f,"CodeMirror-crosshair"),yn(document,"keyup",v),yn(document,"mouseover",v))}z(v,"up"),at(document,"keyup",v),at(document,"mouseover",v)}z(Tv,"showCrossHair");function Wc(s){s.keyCode==16&&(this.doc.sel.shift=!1),bn(this,s)}z(Wc,"onKeyUp");function Ch(s){var f=this;if(!(s.target&&s.target!=f.display.input.getField())&&!(La(f.display,s)||bn(f,s)||s.ctrlKey&&!s.altKey||_&&s.metaKey)){var v=s.keyCode,g=s.charCode;if(y&&v==Yc){Yc=null,On(s);return}if(!(y&&(!s.which||s.which<10)&&_u(f,s))){var T=String.fromCharCode(g??v);T!="\b"&&(xh(f,s,T)||f.display.input.onKeyPress(s))}}}z(Ch,"onKeyPress");var D1=400,xv=z(function(s,f,v){this.time=s,this.pos=f,this.button=v},"PastClick");xv.prototype.compare=function(s,f,v){return this.time+D1>s&&Q(f,this.pos)==0&&v==this.button};var Ya,Ps;function Rd(s,f){var v=+new Date;return Ps&&Ps.compare(v,s,f)?(Ya=Ps=null,"triple"):Ya&&Ya.compare(v,s,f)?(Ps=new xv(v,s,f),Ya=null,"double"):(Ya=new xv(v,s,f),Ps=null,"single")}z(Rd,"clickRepeat");function Nu(s){var f=this,v=f.display;if(!(bn(f,s)||v.activeTouch&&v.input.supportsTouch())){if(v.input.ensurePolled(),v.shift=s.shiftKey,La(v,s)){m||(v.scroller.draggable=!1,setTimeout(function(){return v.scroller.draggable=!0},100));return}if(!Ld(f,s)){var g=Cs(f,s),T=Rn(s),D=g?Rd(g,T):"single";window.focus(),T==1&&f.state.selectingText&&f.state.selectingText(s),!(g&&Md(f,T,g,D,s))&&(T==1?g?Cv(f,g,D,s):cn(s)==v.scroller&&On(s):T==2?(g&&vu(f.doc,g),setTimeout(function(){return v.input.focus()},20)):T==3&&(V?f.display.input.onContextMenu(s):Ns(f)))}}}z(Nu,"onMouseDown");function Md(s,f,v,g,T){var D="Click";return g=="double"?D="Double"+D:g=="triple"&&(D="Triple"+D),D=(f==1?"Left":f==2?"Middle":"Right")+D,Gc(s,Eh(D,T),T,function(I){if(typeof I=="string"&&(I=Cu[I]),!I)return!1;var U=!1;try{s.isReadOnly()&&(s.state.suppressEdits=!0),U=I(s,v)!=Ge}finally{s.state.suppressEdits=!1}return U})}z(Md,"handleMappedButton");function wv(s,f,v){var g=s.getOption("configureMouse"),T=g?g(s,f,v):{};if(T.unit==null){var D=M?v.shiftKey&&v.metaKey:v.altKey;T.unit=D?"rectangle":f=="single"?"char":f=="double"?"word":"line"}return(T.extend==null||s.doc.extend)&&(T.extend=s.doc.extend||v.shiftKey),T.addNew==null&&(T.addNew=_?v.metaKey:v.ctrlKey),T.moveOnDrag==null&&(T.moveOnDrag=!(_?v.altKey:v.ctrlKey)),T}z(wv,"configureMouse");function Cv(s,f,v,g){p?setTimeout(se(Cc,s),0):s.curOp.focus=ae();var T=wv(s,v,g),D=s.doc.sel,I;s.options.dragDrop&&nr&&!s.isReadOnly()&&v=="single"&&(I=D.contains(f))>-1&&(Q((I=D.ranges[I]).from(),f)<0||f.xRel>0)&&(Q(I.to(),f)>0||f.xRel<0)?Au(s,g,f,T):So(s,g,f,T)}z(Cv,"leftButtonDown");function Au(s,f,v,g){var T=s.display,D=!1,I=xr(s,function(H){m&&(T.scroller.draggable=!1),s.state.draggingText=!1,s.state.delayingBlurEvent&&(s.hasFocus()?s.state.delayingBlurEvent=!1:Ns(s)),yn(T.wrapper.ownerDocument,"mouseup",I),yn(T.wrapper.ownerDocument,"mousemove",U),yn(T.scroller,"dragstart",B),yn(T.scroller,"drop",I),D||(On(H),g.addNew||vu(s.doc,v,null,null,g.extend),m&&!x||p&&d==9?setTimeout(function(){T.wrapper.ownerDocument.body.focus({preventScroll:!0}),T.input.focus()},20):T.input.focus())}),U=z(function(H){D=D||Math.abs(f.clientX-H.clientX)+Math.abs(f.clientY-H.clientY)>=10},"mouseMove"),B=z(function(){return D=!0},"dragStart");m&&(T.scroller.draggable=!0),s.state.draggingText=I,I.copy=!g.moveOnDrag,at(T.wrapper.ownerDocument,"mouseup",I),at(T.wrapper.ownerDocument,"mousemove",U),at(T.scroller,"dragstart",B),at(T.scroller,"drop",I),s.state.delayingBlurEvent=!0,setTimeout(function(){return T.input.focus()},20),T.scroller.dragDrop&&T.scroller.dragDrop()}z(Au,"leftButtonStartDrag");function _h(s,f,v){if(v=="char")return new tn(f,f);if(v=="word")return s.findWordAt(f);if(v=="line")return new tn(ze(f.line,0),st(s.doc,ze(f.line+1,0)));var g=v(s,f);return new tn(g.from,g.to)}z(_h,"rangeForUnit");function So(s,f,v,g){p&&Ns(s);var T=s.display,D=s.doc;On(f);var I,U,B=D.sel,H=B.ranges;if(g.addNew&&!g.extend?(U=D.sel.contains(v),U>-1?I=H[U]:I=new tn(v,v)):(I=D.sel.primary(),U=D.sel.primIndex),g.unit=="rectangle")g.addNew||(I=new tn(v,v)),v=Cs(s,f,!0,!0),U=-1;else{var ie=_h(s,v,g.unit);g.extend?I=Pc(I,ie.anchor,ie.head,g.extend):I=ie}g.addNew?U==-1?(U=H.length,mr(D,io(s,H.concat([I]),U),{scroll:!1,origin:"*mouse"})):H.length>1&&H[U].empty()&&g.unit=="char"&&!g.extend?(mr(D,io(s,H.slice(0,U).concat(H.slice(U+1)),0),{scroll:!1,origin:"*mouse"}),B=D.sel):Ht(D,U,I,Ot):(U=0,mr(D,new ro([I],0),Ot),B=D.sel);var le=v;function Ee(et){if(Q(le,et)!=0)if(le=et,g.unit=="rectangle"){for(var ut=[],Ct=s.options.tabSize,yt=ce(ft(D,v.line).text,v.ch,Ct),kt=ce(ft(D,et.line).text,et.ch,Ct),In=Math.min(yt,kt),kr=Math.max(yt,kt),Hn=Math.min(v.line,et.line),gi=Math.min(s.lastLine(),Math.max(v.line,et.line));Hn<=gi;Hn++){var vi=ft(D,Hn).text,ir=ot(vi,In,Ct);In==kr?ut.push(new tn(ze(Hn,ir),ze(Hn,ir))):vi.length>ir&&ut.push(new tn(ze(Hn,ir),ze(Hn,ot(vi,kr,Ct))))}ut.length||ut.push(new tn(v,v)),mr(D,io(s,B.ranges.slice(0,U).concat(ut),U),{origin:"*mouse",scroll:!1}),s.scrollIntoView(et)}else{var Ni=I,Gn=_h(s,et,g.unit),Qt=Ni.anchor,vr;Q(Gn.anchor,Qt)>0?(vr=Gn.head,Qt=St(Ni.from(),Gn.anchor)):(vr=Gn.anchor,Qt=Qe(Ni.to(),Gn.head));var or=B.ranges.slice(0);or[U]=fa(s,new tn(st(D,Qt),vr)),mr(D,io(s,or,U),Ot)}}z(Ee,"extendTo");var ge=T.wrapper.getBoundingClientRect(),we=0;function Ve(et){var ut=++we,Ct=Cs(s,et,!0,g.unit=="rectangle");if(Ct)if(Q(Ct,le)!=0){s.curOp.focus=ae(),Ee(Ct);var yt=_c(T,D);(Ct.line>=yt.to||Ct.line<yt.from)&&setTimeout(xr(s,function(){we==ut&&Ve(et)}),150)}else{var kt=et.clientY<ge.top?-20:et.clientY>ge.bottom?20:0;kt&&setTimeout(xr(s,function(){we==ut&&(T.scroller.scrollTop+=kt,Ve(et))}),50)}}z(Ve,"extend");function Xe(et){s.state.selectingText=!1,we=1/0,et&&(On(et),T.input.focus()),yn(T.wrapper.ownerDocument,"mousemove",rt),yn(T.wrapper.ownerDocument,"mouseup",it),D.history.lastSelOrigin=null}z(Xe,"done");var rt=xr(s,function(et){et.buttons===0||!Rn(et)?Xe(et):Ve(et)}),it=xr(s,Xe);s.state.selectingText=it,at(T.wrapper.ownerDocument,"mousemove",rt),at(T.wrapper.ownerDocument,"mouseup",it)}z(So,"leftButtonSelect");function fa(s,f){var v=f.anchor,g=f.head,T=ft(s.doc,v.line);if(Q(v,g)==0&&v.sticky==g.sticky)return f;var D=Vt(T);if(!D)return f;var I=pt(D,v.ch,v.sticky),U=D[I];if(U.from!=v.ch&&U.to!=v.ch)return f;var B=I+(U.from==v.ch==(U.level!=1)?0:1);if(B==0||B==D.length)return f;var H;if(g.line!=v.line)H=(g.line-v.line)*(s.doc.direction=="ltr"?1:-1)>0;else{var ie=pt(D,g.ch,g.sticky),le=ie-I||(g.ch-v.ch)*(U.level==1?-1:1);ie==B-1||ie==B?H=le<0:H=le>0}var Ee=D[B+(H?-1:0)],ge=H==(Ee.level==1),we=ge?Ee.from:Ee.to,Ve=ge?"after":"before";return v.ch==we&&v.sticky==Ve?f:new tn(new ze(v.line,we,Ve),g)}z(fa,"bidiSimplify");function Wa(s,f,v,g){var T,D;if(f.touches)T=f.touches[0].clientX,D=f.touches[0].clientY;else try{T=f.clientX,D=f.clientY}catch{return!1}if(T>=Math.floor(s.display.gutters.getBoundingClientRect().right))return!1;g&&On(f);var I=s.display,U=I.lineDiv.getBoundingClientRect();if(D>U.bottom||!an(s,v))return wt(f);D-=U.top-I.viewOffset;for(var B=0;B<s.display.gutterSpecs.length;++B){var H=I.gutters.childNodes[B];if(H&&H.getBoundingClientRect().right>=T){var ie=Fr(s.doc,D),le=s.display.gutterSpecs[B];return mt(s,v,s,ie,le.className,f),wt(f)}}}z(Wa,"gutterEvent");function Ld(s,f){return Wa(s,f,"gutterClick",!0)}z(Ld,"clickInGutter");function Qa(s,f){La(s.display,f)||Ka(s,f)||bn(s,f,"contextmenu")||V||s.display.input.onContextMenu(f)}z(Qa,"onContextMenu");function Ka(s,f){return an(s,"gutterContextMenu")?Wa(s,f,"gutterContextMenu",!1):!1}z(Ka,"contextMenuInGutter");function Dr(s){s.display.wrapper.className=s.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+s.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Zr(s)}z(Dr,"themeChanged");var js={toString:function(){return"CodeMirror.Init"}},Nh={},Qc={};function _v(s){var f=s.optionHandlers;function v(g,T,D,I){s.defaults[g]=T,D&&(f[g]=I?function(U,B,H){H!=js&&D(U,B,H)}:D)}z(v,"option"),s.defineOption=v,s.Init=js,v("value","",function(g,T){return g.setValue(T)},!0),v("mode",null,function(g,T){g.doc.modeOption=T,Ed(g)},!0),v("indentUnit",2,Ed,!0),v("indentWithTabs",!1),v("smartIndent",!0),v("tabSize",4,function(g){Rs(g),Zr(g),Jr(g)},!0),v("lineSeparator",null,function(g,T){if(g.doc.lineSep=T,!!T){var D=[],I=g.doc.first;g.doc.iter(function(B){for(var H=0;;){var ie=B.text.indexOf(T,H);if(ie==-1)break;H=ie+T.length,D.push(ze(I,ie))}I++});for(var U=D.length-1;U>=0;U--)zn(g.doc,T,D[U],ze(D[U].line,D[U].ch+T.length))}}),v("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(g,T,D){g.state.specialChars=new RegExp(T.source+(T.test("	")?"":"|	"),"g"),D!=js&&g.refresh()}),v("specialCharPlaceholder",Pg,function(g){return g.refresh()},!0),v("electricChars",!0),v("inputStyle",O?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),v("spellcheck",!1,function(g,T){return g.getInputField().spellcheck=T},!0),v("autocorrect",!1,function(g,T){return g.getInputField().autocorrect=T},!0),v("autocapitalize",!1,function(g,T){return g.getInputField().autocapitalize=T},!0),v("rtlMoveVisually",!j),v("wholeLineUpdateBefore",!0),v("theme","default",function(g){Dr(g),Ua(g)},!0),v("keyMap","default",function(g,T,D){var I=$c(T),U=D!=js&&$c(D);U&&U.detach&&U.detach(g,I),I.attach&&I.attach(g,U||null)}),v("extraKeys",null),v("configureMouse",null),v("lineWrapping",!1,Al,!0),v("gutters",[],function(g,T){g.display.gutterSpecs=Rc(T,g.options.lineNumbers),Ua(g)},!0),v("fixedGutter",!0,function(g,T){g.display.gutters.style.left=T?th(g.display)+"px":"0",g.refresh()},!0),v("coverGutterNextToScrollbar",!1,function(g){return Ds(g)},!0),v("scrollbarStyle","native",function(g){Sn(g),Ds(g),g.display.scrollbars.setScrollTop(g.doc.scrollTop),g.display.scrollbars.setScrollLeft(g.doc.scrollLeft)},!0),v("lineNumbers",!1,function(g,T){g.display.gutterSpecs=Rc(g.options.gutters,T),Ua(g)},!0),v("firstLineNumber",1,Ua,!0),v("lineNumberFormatter",function(g){return g},Ua,!0),v("showCursorWhenSelecting",!1,ml,!0),v("resetSelectionOnContextMenu",!0),v("lineWiseCopyCut",!0),v("pasteLinesPerSelection",!0),v("selectionsMayTouch",!1),v("readOnly",!1,function(g,T){T=="nocursor"&&(Yr(g),g.display.input.blur()),g.display.input.readOnlyChanged(T)}),v("screenReaderLabel",null,function(g,T){T=T===""?null:T,g.display.input.screenReaderLabelChanged(T)}),v("disableInput",!1,function(g,T){T||g.display.input.reset()},!0),v("dragDrop",!0,Nv),v("allowDropFileTypes",null),v("cursorBlinkRate",530),v("cursorScrollMargin",0),v("cursorHeight",1,ml,!0),v("singleCursorHeightPerLine",!0,ml,!0),v("workTime",100),v("workDelay",100),v("flattenSpans",!0,Rs,!0),v("addModeClass",!1,Rs,!0),v("pollInterval",100),v("undoDepth",200,function(g,T){return g.doc.history.undoDepth=T}),v("historyEventDelay",1250),v("viewportMargin",10,function(g){return g.refresh()},!0),v("maxHighlightLength",1e4,Rs,!0),v("moveInputWithCursor",!0,function(g,T){T||g.display.input.resetPosition()}),v("tabindex",null,function(g,T){return g.display.input.getField().tabIndex=T||""}),v("autofocus",null),v("direction","ltr",function(g,T){return g.doc.setDirection(T)},!0),v("phrases",null)}z(_v,"defineOptions");function Nv(s,f,v){var g=v&&v!=js;if(!f!=!g){var T=s.display.dragFunctions,D=f?at:yn;D(s.display.scroller,"dragstart",T.start),D(s.display.scroller,"dragenter",T.enter),D(s.display.scroller,"dragover",T.over),D(s.display.scroller,"dragleave",T.leave),D(s.display.scroller,"drop",T.drop)}}z(Nv,"dragDropChanged");function Al(s){s.options.lineWrapping?(fe(s.display.wrapper,"CodeMirror-wrap"),s.display.sizer.style.minWidth="",s.display.sizerWidth=null):(K(s.display.wrapper,"CodeMirror-wrap"),qp(s)),nh(s),Jr(s),Zr(s),setTimeout(function(){return Ds(s)},100)}z(Al,"wrappingChanged");function Ln(s,f){var v=this;if(!(this instanceof Ln))return new Ln(s,f);this.options=f=f?pe(f):{},pe(Nh,f,!1);var g=f.value;typeof g=="string"?g=new _i(g,f.mode,null,f.lineSeparator,f.direction):f.mode&&(g.modeOption=f.mode),this.doc=g;var T=new Ln.inputStyles[f.inputStyle](this),D=this.display=new lh(s,g,T,f);D.wrapper.CodeMirror=this,Dr(this),f.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Sn(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 me,keySeq:null,specialChars:null},f.autofocus&&!O&&D.input.focus(),p&&d<11&&setTimeout(function(){return v.display.input.reset(!0)},20),Av(this),A1(),mi(this),this.curOp.forceUpdate=!0,fh(this,g),f.autofocus&&!O||this.hasFocus()?setTimeout(function(){v.hasFocus()&&!v.state.focused&&rh(v)},20):Yr(this);for(var I in Qc)Qc.hasOwnProperty(I)&&Qc[I](this,f[I],js);Ar(this),f.finishInit&&f.finishInit(this);for(var U=0;U<Ah.length;++U)Ah[U](this);Pa(this),m&&f.lineWrapping&&getComputedStyle(D.lineDiv).textRendering=="optimizelegibility"&&(D.lineDiv.style.textRendering="auto")}z(Ln,"CodeMirror"),Ln.defaults=Nh,Ln.optionHandlers=Qc;function Av(s){var f=s.display;at(f.scroller,"mousedown",xr(s,Nu)),p&&d<11?at(f.scroller,"dblclick",xr(s,function(B){if(!bn(s,B)){var H=Cs(s,B);if(!(!H||Ld(s,B)||La(s.display,B))){On(B);var ie=s.findWordAt(H);vu(s.doc,ie.anchor,ie.head)}}})):at(f.scroller,"dblclick",function(B){return bn(s,B)||On(B)}),at(f.scroller,"contextmenu",function(B){return Qa(s,B)}),at(f.input.getField(),"contextmenu",function(B){f.scroller.contains(B.target)||Qa(s,B)});var v,g={end:0};function T(){f.activeTouch&&(v=setTimeout(function(){return f.activeTouch=null},1e3),g=f.activeTouch,g.end=+new Date)}z(T,"finishTouch");function D(B){if(B.touches.length!=1)return!1;var H=B.touches[0];return H.radiusX<=1&&H.radiusY<=1}z(D,"isMouseLikeTouchEvent");function I(B,H){if(H.left==null)return!0;var ie=H.left-B.left,le=H.top-B.top;return ie*ie+le*le>20*20}z(I,"farAway"),at(f.scroller,"touchstart",function(B){if(!bn(s,B)&&!D(B)&&!Ld(s,B)){f.input.ensurePolled(),clearTimeout(v);var H=+new Date;f.activeTouch={start:H,moved:!1,prev:H-g.end<=300?g:null},B.touches.length==1&&(f.activeTouch.left=B.touches[0].pageX,f.activeTouch.top=B.touches[0].pageY)}}),at(f.scroller,"touchmove",function(){f.activeTouch&&(f.activeTouch.moved=!0)}),at(f.scroller,"touchend",function(B){var H=f.activeTouch;if(H&&!La(f,B)&&H.left!=null&&!H.moved&&new Date-H.start<300){var ie=s.coordsChar(f.activeTouch,"page"),le;!H.prev||I(H,H.prev)?le=new tn(ie,ie):!H.prev.prev||I(H,H.prev.prev)?le=s.findWordAt(ie):le=new tn(ze(ie.line,0),st(s.doc,ze(ie.line+1,0))),s.setSelection(le.anchor,le.head),s.focus(),On(B)}T()}),at(f.scroller,"touchcancel",T),at(f.scroller,"scroll",function(){f.scroller.clientHeight&&(Po(s,f.scroller.scrollTop),Ci(s,f.scroller.scrollLeft,!0),mt(s,"scroll",s))}),at(f.scroller,"mousewheel",function(B){return av(s,B)}),at(f.scroller,"DOMMouseScroll",function(B){return av(s,B)}),at(f.wrapper,"scroll",function(){return f.wrapper.scrollTop=f.wrapper.scrollLeft=0}),f.dragFunctions={enter:function(B){bn(s,B)||Bt(B)},over:function(B){bn(s,B)||(mv(s,B),Bt(B))},start:function(B){return hv(s,B)},drop:xr(s,gh),leave:function(B){bn(s,B)||vh(s)}};var U=f.input.getField();at(U,"keyup",function(B){return Wc.call(s,B)}),at(U,"keydown",xr(s,wh)),at(U,"keypress",xr(s,Ch)),at(U,"focus",function(B){return rh(s,B)}),at(U,"blur",function(B){return Yr(s,B)})}z(Av,"registerEventHandlers");var Ah=[];Ln.defineInitHook=function(s){return Ah.push(s)};function Ou(s,f,v,g){var T=s.doc,D;v==null&&(v="add"),v=="smart"&&(T.mode.indent?D=Xl(s,f).state:v="prev");var I=s.options.tabSize,U=ft(T,f),B=ce(U.text,null,I);U.stateAfter&&(U.stateAfter=null);var H=U.text.match(/^\s*/)[0],ie;if(!g&&!/\S/.test(U.text))ie=0,v="not";else if(v=="smart"&&(ie=T.mode.indent(D,U.text.slice(H.length),U.text),ie==Ge||ie>150)){if(!g)return;v="prev"}v=="prev"?f>T.first?ie=ce(ft(T,f-1).text,null,I):ie=0:v=="add"?ie=B+s.options.indentUnit:v=="subtract"?ie=B-s.options.indentUnit:typeof v=="number"&&(ie=B+v),ie=Math.max(0,ie);var le="",Ee=0;if(s.options.indentWithTabs)for(var ge=Math.floor(ie/I);ge;--ge)Ee+=I,le+="	";if(Ee<ie&&(le+=ye(ie-Ee)),le!=H)return zn(T,le,ze(f,0),ze(f,H.length),"+input"),U.stateAfter=null,!0;for(var we=0;we<T.sel.ranges.length;we++){var Ve=T.sel.ranges[we];if(Ve.head.line==f&&Ve.head.ch<H.length){var Xe=ze(f,H.length);Ht(T,we,new tn(Xe,Xe));break}}}z(Ou,"indentLine");var ao=null;function Kc(s){ao=s}z(Kc,"setLastCopied");function Xc(s,f,v,g,T){var D=s.doc;s.display.shift=!1,g||(g=D.sel);var I=+new Date-200,U=T=="paste"||s.state.pasteIncoming>I,B=Fi(f),H=null;if(U&&g.ranges.length>1)if(ao&&ao.text.join(`
`)==f){if(g.ranges.length%ao.text.length==0){H=[];for(var ie=0;ie<ao.text.length;ie++)H.push(D.splitLines(ao.text[ie]))}}else B.length==g.ranges.length&&s.options.pasteLinesPerSelection&&(H=be(B,function(rt){return[rt]}));for(var le=s.curOp.updateInput,Ee=g.ranges.length-1;Ee>=0;Ee--){var ge=g.ranges[Ee],we=ge.from(),Ve=ge.to();ge.empty()&&(v&&v>0?we=ze(we.line,we.ch-v):s.state.overwrite&&!U?Ve=ze(Ve.line,Math.min(ft(D,Ve.line).text.length,Ve.ch+Le(B).length)):U&&ao&&ao.lineWise&&ao.text.join(`
`)==B.join(`
`)&&(we=Ve=ze(we.line,0)));var Xe={from:we,to:Ve,text:H?H[Ee%H.length]:B,origin:T||(U?"paste":s.state.cutIncoming>I?"cut":"+input")};Tl(s.doc,Xe),Pr(s,"inputRead",s,Xe)}f&&!U&&Dh(s,f),Fo(s),s.curOp.updateInput<2&&(s.curOp.updateInput=le),s.curOp.typing=!0,s.state.pasteIncoming=s.state.cutIncoming=-1}z(Xc,"applyTextInput");function Oh(s,f){var v=s.clipboardData&&s.clipboardData.getData("Text");if(v)return s.preventDefault(),!f.isReadOnly()&&!f.options.disableInput&&Wr(f,function(){return Xc(f,v,0,null,"paste")}),!0}z(Oh,"handlePaste");function Dh(s,f){if(!(!s.options.electricChars||!s.options.smartIndent))for(var v=s.doc.sel,g=v.ranges.length-1;g>=0;g--){var T=v.ranges[g];if(!(T.head.ch>100||g&&v.ranges[g-1].head.line==T.head.line)){var D=s.getModeAt(T.head),I=!1;if(D.electricChars){for(var U=0;U<D.electricChars.length;U++)if(f.indexOf(D.electricChars.charAt(U))>-1){I=Ou(s,T.head.line,"smart");break}}else D.electricInput&&D.electricInput.test(ft(s.doc,T.head.line).text.slice(0,T.head.ch))&&(I=Ou(s,T.head.line,"smart"));I&&Pr(s,"electricInput",s,T.head.line)}}}z(Dh,"triggerElectric");function Ov(s){for(var f=[],v=[],g=0;g<s.doc.sel.ranges.length;g++){var T=s.doc.sel.ranges[g].head.line,D={anchor:ze(T,0),head:ze(T+1,0)};v.push(D),f.push(s.getRange(D.anchor,D.head))}return{text:f,ranges:v}}z(Ov,"copyableRanges");function kh(s,f,v,g){s.setAttribute("autocorrect",v?"":"off"),s.setAttribute("autocapitalize",g?"":"off"),s.setAttribute("spellcheck",!!f)}z(kh,"disableBrowserMagic");function jr(){var s=W("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),f=W("div",[s],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return m?s.style.width="1000px":s.setAttribute("wrap","off"),N&&(s.style.border="1px solid black"),kh(s),f}z(jr,"hiddenTextarea");function ti(s){var f=s.optionHandlers,v=s.helpers={};s.prototype={constructor:s,focus:function(){window.focus(),this.display.input.focus()},setOption:function(g,T){var D=this.options,I=D[g];D[g]==T&&g!="mode"||(D[g]=T,f.hasOwnProperty(g)&&xr(this,f[g])(this,T,I),mt(this,"optionChange",this,g))},getOption:function(g){return this.options[g]},getDoc:function(){return this.doc},addKeyMap:function(g,T){this.state.keyMaps[T?"push":"unshift"]($c(g))},removeKeyMap:function(g){for(var T=this.state.keyMaps,D=0;D<T.length;++D)if(T[D]==g||T[D].name==g)return T.splice(D,1),!0},addOverlay:hr(function(g,T){var D=g.token?g:s.getMode(this.options,g);if(D.startState)throw new Error("Overlays may not be stateful.");oe(this.state.overlays,{mode:D,modeSpec:g,opaque:T&&T.opaque,priority:T&&T.priority||0},function(I){return I.priority}),this.state.modeGen++,Jr(this)}),removeOverlay:hr(function(g){for(var T=this.state.overlays,D=0;D<T.length;++D){var I=T[D].modeSpec;if(I==g||typeof g=="string"&&I.name==g){T.splice(D,1),this.state.modeGen++,Jr(this);return}}}),indentLine:hr(function(g,T,D){typeof T!="string"&&typeof T!="number"&&(T==null?T=this.options.smartIndent?"smart":"prev":T=T?"add":"subtract"),ta(this.doc,g)&&Ou(this,g,T,D)}),indentSelection:hr(function(g){for(var T=this.doc.sel.ranges,D=-1,I=0;I<T.length;I++){var U=T[I];if(U.empty())U.head.line>D&&(Ou(this,U.head.line,g,!0),D=U.head.line,I==this.doc.sel.primIndex&&Fo(this));else{var B=U.from(),H=U.to(),ie=Math.max(D,B.line);D=Math.min(this.lastLine(),H.line-(H.ch?0:1))+1;for(var le=ie;le<D;++le)Ou(this,le,g);var Ee=this.doc.sel.ranges;B.ch==0&&T.length==Ee.length&&Ee[I].from().ch>0&&Ht(this.doc,I,new tn(B,Ee[I].to()),Ye)}}}),getTokenAt:function(g,T){return ol(this,g,T)},getLineTokens:function(g,T){return ol(this,ze(g),T,!0)},getTokenTypeAt:function(g){g=st(this.doc,g);var T=rd(this,ft(this.doc,g.line)),D=0,I=(T.length-1)/2,U=g.ch,B;if(U==0)B=T[2];else for(;;){var H=D+I>>1;if((H?T[H*2-1]:0)>=U)I=H;else if(T[H*2+1]<U)D=H+1;else{B=T[H*2+2];break}}var ie=B?B.indexOf("overlay "):-1;return ie<0?B:ie==0?null:B.slice(0,ie-1)},getModeAt:function(g){var T=this.doc.mode;return T.innerMode?s.innerMode(T,this.getTokenAt(g).state).mode:T},getHelper:function(g,T){return this.getHelpers(g,T)[0]},getHelpers:function(g,T){var D=[];if(!v.hasOwnProperty(T))return D;var I=v[T],U=this.getModeAt(g);if(typeof U[T]=="string")I[U[T]]&&D.push(I[U[T]]);else if(U[T])for(var B=0;B<U[T].length;B++){var H=I[U[T][B]];H&&D.push(H)}else U.helperType&&I[U.helperType]?D.push(I[U.helperType]):I[U.name]&&D.push(I[U.name]);for(var ie=0;ie<I._global.length;ie++){var le=I._global[ie];le.pred(U,this)&&Se(D,le.val)==-1&&D.push(le.val)}return D},getStateAfter:function(g,T){var D=this.doc;return g=en(D,g??D.first+D.size-1),Xl(this,g+1,T).state},cursorCoords:function(g,T){var D,I=this.doc.sel.primary();return g==null?D=I.head:typeof g=="object"?D=st(this.doc,g):D=g?I.from():I.to(),Io(this,D,T||"page")},charCoords:function(g,T){return iu(this,st(this.doc,g),T||"page")},coordsChar:function(g,T){return g=Zp(this,g,T||"page"),fl(this,g.left,g.top)},lineAtHeight:function(g,T){return g=Zp(this,{top:g,left:0},T||"page").top,Fr(this.doc,g+this.display.viewOffset)},heightAtLine:function(g,T,D){var I=!1,U;if(typeof g=="number"){var B=this.doc.first+this.doc.size-1;g<this.doc.first?g=this.doc.first:g>B&&(g=B,I=!0),U=ft(this.doc,g)}else U=g;return Tc(this,U,{top:0,left:0},T||"page",D||I).top+(I?this.doc.height-ia(U):0)},defaultTextHeight:function(){return dl(this.display)},defaultCharWidth:function(){return pl(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(g,T,D,I,U){var B=this.display;g=Io(this,st(this.doc,g));var H=g.bottom,ie=g.left;if(T.style.position="absolute",T.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(T),B.sizer.appendChild(T),I=="over")H=g.top;else if(I=="above"||I=="near"){var le=Math.max(B.wrapper.clientHeight,this.doc.height),Ee=Math.max(B.sizer.clientWidth,B.lineSpace.clientWidth);(I=="above"||g.bottom+T.offsetHeight>le)&&g.top>T.offsetHeight?H=g.top-T.offsetHeight:g.bottom+T.offsetHeight<=le&&(H=g.bottom),ie+T.offsetWidth>Ee&&(ie=Ee-T.offsetWidth)}T.style.top=H+"px",T.style.left=T.style.right="",U=="right"?(ie=B.sizer.clientWidth-T.offsetWidth,T.style.right="0px"):(U=="left"?ie=0:U=="middle"&&(ie=(B.sizer.clientWidth-T.offsetWidth)/2),T.style.left=ie+"px"),D&&ih(this,{left:ie,top:H,right:ie+T.offsetWidth,bottom:H+T.offsetHeight})},triggerOnKeyDown:hr(wh),triggerOnKeyPress:hr(Ch),triggerOnKeyUp:Wc,triggerOnMouseDown:hr(Nu),execCommand:function(g){if(Cu.hasOwnProperty(g))return Cu[g].call(null,this)},triggerElectric:hr(function(g){Dh(this,g)}),findPosH:function(g,T,D,I){var U=1;T<0&&(U=-1,T=-T);for(var B=st(this.doc,g),H=0;H<T&&(B=Id(this.doc,B,U,D,I),!B.hitSide);++H);return B},moveH:hr(function(g,T){var D=this;this.extendSelectionsBy(function(I){return D.display.shift||D.doc.extend||I.empty()?Id(D.doc,I.head,g,T,D.options.rtlMoveVisually):g<0?I.from():I.to()},gt)}),deleteH:hr(function(g,T){var D=this.doc.sel,I=this.doc;D.somethingSelected()?I.replaceSelection("",null,"+delete"):Nl(this,function(U){var B=Id(I,U.head,g,T,!1);return g<0?{from:B,to:U.head}:{from:U.head,to:B}})}),findPosV:function(g,T,D,I){var U=1,B=I;T<0&&(U=-1,T=-T);for(var H=st(this.doc,g),ie=0;ie<T;++ie){var le=Io(this,H,"div");if(B==null?B=le.left:le.left=B,H=Rh(this,le,U,D),H.hitSide)break}return H},moveV:hr(function(g,T){var D=this,I=this.doc,U=[],B=!this.display.shift&&!I.extend&&I.sel.somethingSelected();if(I.extendSelectionsBy(function(ie){if(B)return g<0?ie.from():ie.to();var le=Io(D,ie.head,"div");ie.goalColumn!=null&&(le.left=ie.goalColumn),U.push(le.left);var Ee=Rh(D,le,g,T);return T=="page"&&ie==I.sel.primary()&&As(D,iu(D,Ee,"div").top-le.top),Ee},gt),U.length)for(var H=0;H<I.sel.ranges.length;H++)I.sel.ranges[H].goalColumn=U[H]}),findWordAt:function(g){var T=this.doc,D=ft(T,g.line).text,I=g.ch,U=g.ch;if(D){var B=this.getHelper(g,"wordChars");(g.sticky=="before"||U==D.length)&&I?--I:++U;for(var H=D.charAt(I),ie=xe(H,B)?function(le){return xe(le,B)}:/\s/.test(H)?function(le){return/\s/.test(le)}:function(le){return!/\s/.test(le)&&!xe(le)};I>0&&ie(D.charAt(I-1));)--I;for(;U<D.length&&ie(D.charAt(U));)++U}return new tn(ze(g.line,I),ze(g.line,U))},toggleOverwrite:function(g){g!=null&&g==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?fe(this.display.cursorDiv,"CodeMirror-overwrite"):K(this.display.cursorDiv,"CodeMirror-overwrite"),mt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ae()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:hr(function(g,T){Os(this,g,T)}),getScrollInfo:function(){var g=this.display.scroller;return{left:g.scrollLeft,top:g.scrollTop,height:g.scrollHeight-Ro(this)-this.display.barHeight,width:g.scrollWidth-Ro(this)-this.display.barWidth,clientHeight:ul(this),clientWidth:Mo(this)}},scrollIntoView:hr(function(g,T){g==null?(g={from:this.doc.sel.primary().head,to:null},T==null&&(T=this.options.cursorScrollMargin)):typeof g=="number"?g={from:ze(g,0),to:null}:g.from==null&&(g={from:g,to:null}),g.to||(g.to=g.from),g.margin=T||0,g.from.line!=null?vd(this,g):to(this,g.from,g.to,g.margin)}),setSize:hr(function(g,T){var D=this,I=z(function(B){return typeof B=="number"||/^\d+$/.test(String(B))?B+"px":B},"interpret");g!=null&&(this.display.wrapper.style.width=I(g)),T!=null&&(this.display.wrapper.style.height=I(T)),this.options.lineWrapping&&Kg(this);var U=this.display.viewFrom;this.doc.iter(U,this.display.viewTo,function(B){if(B.widgets){for(var H=0;H<B.widgets.length;H++)if(B.widgets[H].noHScroll){Gr(D,U,"widget");break}}++U}),this.curOp.forceUpdate=!0,mt(this,"refresh",this)}),operation:function(g){return Wr(this,g)},startOperation:function(){return mi(this)},endOperation:function(){return Pa(this)},refresh:hr(function(){var g=this.display.cachedTextHeight;Jr(this),this.curOp.forceUpdate=!0,Zr(this),Os(this,this.doc.scrollLeft,this.doc.scrollTop),ah(this.display),(g==null||Math.abs(g-dl(this.display))>.5||this.options.lineWrapping)&&nh(this),mt(this,"refresh",this)}),swapDoc:hr(function(g){var T=this.doc;return T.cm=null,this.state.selectingText&&this.state.selectingText(),fh(this,g),Zr(this),this.display.input.reset(),Os(this,g.scrollLeft,g.scrollTop),this.curOp.forceScroll=!0,Pr(this,"swapDoc",this,T),T}),phrase:function(g){var T=this.options.phrases;return T&&Object.prototype.hasOwnProperty.call(T,g)?T[g]:g},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}},Lr(s),s.registerHelper=function(g,T,D){v.hasOwnProperty(g)||(v[g]=s[g]={_global:[]}),v[g][T]=D},s.registerGlobalHelper=function(g,T,D,I){s.registerHelper(g,T,I),v[g]._global.push({pred:D,val:I})}}z(ti,"addEditorMethods");function Id(s,f,v,g,T){var D=f,I=v,U=ft(s,f.line),B=T&&s.direction=="rtl"?-v:v;function H(){var it=f.line+B;return it<s.first||it>=s.first+s.size?!1:(f=new ze(it,f.ch,f.sticky),U=ft(s,it))}z(H,"findNextLine");function ie(it){var et;if(g=="codepoint"){var ut=U.text.charCodeAt(f.ch+(v>0?0:-1));if(isNaN(ut))et=null;else{var Ct=v>0?ut>=55296&&ut<56320:ut>=56320&&ut<57343;et=new ze(f.line,Math.max(0,Math.min(U.text.length,f.ch+v*(Ct?2:1))),-v)}}else T?et=O1(s.cm,U,f,v):et=Od(U,f,v);if(et==null)if(!it&&H())f=Dd(T,s.cm,U,f.line,B);else return!1;else f=et;return!0}if(z(ie,"moveOnce"),g=="char"||g=="codepoint")ie();else if(g=="column")ie(!0);else if(g=="word"||g=="group")for(var le=null,Ee=g=="group",ge=s.cm&&s.cm.getHelper(f,"wordChars"),we=!0;!(v<0&&!ie(!we));we=!1){var Ve=U.text.charAt(f.ch)||`
`,Xe=xe(Ve,ge)?"w":Ee&&Ve==`
`?"n":!Ee||/\s/.test(Ve)?null:"p";if(Ee&&!we&&!Xe&&(Xe="s"),le&&le!=Xe){v<0&&(v=1,ie(),f.sticky="after");break}if(Xe&&(le=Xe),v>0&&!ie(!we))break}var rt=Kn(s,f,D,I,!0);return ue(D,rt)&&(rt.hitSide=!0),rt}z(Id,"findPosH");function Rh(s,f,v,g){var T=s.doc,D=f.left,I;if(g=="page"){var U=Math.min(s.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),B=Math.max(U-.5*dl(s.display),3);I=(v>0?f.bottom:f.top)+v*B}else g=="line"&&(I=v>0?f.bottom+3:f.top-3);for(var H;H=fl(s,D,I),!!H.outside;){if(v<0?I<=0:I>=T.height){H.hitSide=!0;break}I+=v*5}return H}z(Rh,"findPosV");var _n=z(function(s){this.cm=s,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new me,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null},"ContentEditableInput");_n.prototype.init=function(s){var f=this,v=this,g=v.cm,T=v.div=s.lineDiv;T.contentEditable=!0,kh(T,g.options.spellcheck,g.options.autocorrect,g.options.autocapitalize);function D(U){for(var B=U.target;B;B=B.parentNode){if(B==T)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(B.className))break}return!1}z(D,"belongsToInput"),at(T,"paste",function(U){!D(U)||bn(g,U)||Oh(U,g)||d<=11&&setTimeout(xr(g,function(){return f.updateFromDOM()}),20)}),at(T,"compositionstart",function(U){f.composing={data:U.data,done:!1}}),at(T,"compositionupdate",function(U){f.composing||(f.composing={data:U.data,done:!1})}),at(T,"compositionend",function(U){f.composing&&(U.data!=f.composing.data&&f.readFromDOMSoon(),f.composing.done=!0)}),at(T,"touchstart",function(){return v.forceCompositionEnd()}),at(T,"input",function(){f.composing||f.readFromDOMSoon()});function I(U){if(!(!D(U)||bn(g,U))){if(g.somethingSelected())Kc({lineWise:!1,text:g.getSelections()}),U.type=="cut"&&g.replaceSelection("",null,"cut");else if(g.options.lineWiseCopyCut){var B=Ov(g);Kc({lineWise:!0,text:B.text}),U.type=="cut"&&g.operation(function(){g.setSelections(B.ranges,0,Ye),g.replaceSelection("",null,"cut")})}else return;if(U.clipboardData){U.clipboardData.clearData();var H=ao.text.join(`
`);if(U.clipboardData.setData("Text",H),U.clipboardData.getData("Text")==H){U.preventDefault();return}}var ie=jr(),le=ie.firstChild;g.display.lineSpace.insertBefore(ie,g.display.lineSpace.firstChild),le.value=ao.text.join(`
`);var Ee=ae();he(le),setTimeout(function(){g.display.lineSpace.removeChild(ie),Ee.focus(),Ee==T&&v.showPrimarySelection()},50)}}z(I,"onCopyCut"),at(T,"copy",I),at(T,"cut",I)},_n.prototype.screenReaderLabelChanged=function(s){s?this.div.setAttribute("aria-label",s):this.div.removeAttribute("aria-label")},_n.prototype.prepareSelection=function(){var s=wc(this.cm,!1);return s.focus=ae()==this.div,s},_n.prototype.showSelection=function(s,f){!s||!this.cm.display.view.length||((s.focus||f)&&this.showPrimarySelection(),this.showMultipleSelections(s))},_n.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},_n.prototype.showPrimarySelection=function(){var s=this.getSelection(),f=this.cm,v=f.doc.sel.primary(),g=v.from(),T=v.to();if(f.display.viewTo==f.display.viewFrom||g.line>=f.display.viewTo||T.line<f.display.viewFrom){s.removeAllRanges();return}var D=Zc(f,s.anchorNode,s.anchorOffset),I=Zc(f,s.focusNode,s.focusOffset);if(!(D&&!D.bad&&I&&!I.bad&&Q(St(D,I),g)==0&&Q(Qe(D,I),T)==0)){var U=f.display.view,B=g.line>=f.display.viewFrom&&Mh(f,g)||{node:U[0].measure.map[2],offset:0},H=T.line<f.display.viewTo&&Mh(f,T);if(!H){var ie=U[U.length-1].measure,le=ie.maps?ie.maps[ie.maps.length-1]:ie.map;H={node:le[le.length-1],offset:le[le.length-2]-le[le.length-3]}}if(!B||!H){s.removeAllRanges();return}var Ee=s.rangeCount&&s.getRangeAt(0),ge;try{ge=te(B.node,B.offset,H.offset,H.node)}catch{}ge&&(!i&&f.state.focused?(s.collapse(B.node,B.offset),ge.collapsed||(s.removeAllRanges(),s.addRange(ge))):(s.removeAllRanges(),s.addRange(ge)),Ee&&s.anchorNode==null?s.addRange(Ee):i&&this.startGracePeriod()),this.rememberSelection()}},_n.prototype.startGracePeriod=function(){var s=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){s.gracePeriod=!1,s.selectionChanged()&&s.cm.operation(function(){return s.cm.curOp.selectionChanged=!0})},20)},_n.prototype.showMultipleSelections=function(s){J(this.cm.display.cursorDiv,s.cursors),J(this.cm.display.selectionDiv,s.selection)},_n.prototype.rememberSelection=function(){var s=this.getSelection();this.lastAnchorNode=s.anchorNode,this.lastAnchorOffset=s.anchorOffset,this.lastFocusNode=s.focusNode,this.lastFocusOffset=s.focusOffset},_n.prototype.selectionInEditor=function(){var s=this.getSelection();if(!s.rangeCount)return!1;var f=s.getRangeAt(0).commonAncestorContainer;return re(this.div,f)},_n.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ae()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},_n.prototype.blur=function(){this.div.blur()},_n.prototype.getField=function(){return this.div},_n.prototype.supportsTouch=function(){return!0},_n.prototype.receivedFocus=function(){var s=this,f=this;this.selectionInEditor()?setTimeout(function(){return s.pollSelection()},20):Wr(this.cm,function(){return f.cm.curOp.selectionChanged=!0});function v(){f.cm.state.focused&&(f.pollSelection(),f.polling.set(f.cm.options.pollInterval,v))}z(v,"poll"),this.polling.set(this.cm.options.pollInterval,v)},_n.prototype.selectionChanged=function(){var s=this.getSelection();return s.anchorNode!=this.lastAnchorNode||s.anchorOffset!=this.lastAnchorOffset||s.focusNode!=this.lastFocusNode||s.focusOffset!=this.lastFocusOffset},_n.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var s=this.getSelection(),f=this.cm;if(A&&b&&this.cm.display.gutterSpecs.length&&Dv(s.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var v=Zc(f,s.anchorNode,s.anchorOffset),g=Zc(f,s.focusNode,s.focusOffset);v&&g&&Wr(f,function(){mr(f.doc,Vo(v,g),Ye),(v.bad||g.bad)&&(f.curOp.selectionChanged=!0)})}}},_n.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var s=this.cm,f=s.display,v=s.doc.sel.primary(),g=v.from(),T=v.to();if(g.ch==0&&g.line>s.firstLine()&&(g=ze(g.line-1,ft(s.doc,g.line-1).length)),T.ch==ft(s.doc,T.line).text.length&&T.line<s.lastLine()&&(T=ze(T.line+1,0)),g.line<f.viewFrom||T.line>f.viewTo-1)return!1;var D,I,U;g.line==f.viewFrom||(D=_s(s,g.line))==0?(I=sn(f.view[0].line),U=f.view[0].node):(I=sn(f.view[D].line),U=f.view[D-1].node.nextSibling);var B=_s(s,T.line),H,ie;if(B==f.view.length-1?(H=f.viewTo-1,ie=f.lineDiv.lastChild):(H=sn(f.view[B+1].line)-1,ie=f.view[B+1].node.previousSibling),!U)return!1;for(var le=s.doc.splitLines(Lh(s,U,ie,I,H)),Ee=go(s.doc,ze(I,0),ze(H,ft(s.doc,H).text.length));le.length>1&&Ee.length>1;)if(Le(le)==Le(Ee))le.pop(),Ee.pop(),H--;else if(le[0]==Ee[0])le.shift(),Ee.shift(),I++;else break;for(var ge=0,we=0,Ve=le[0],Xe=Ee[0],rt=Math.min(Ve.length,Xe.length);ge<rt&&Ve.charCodeAt(ge)==Xe.charCodeAt(ge);)++ge;for(var it=Le(le),et=Le(Ee),ut=Math.min(it.length-(le.length==1?ge:0),et.length-(Ee.length==1?ge:0));we<ut&&it.charCodeAt(it.length-we-1)==et.charCodeAt(et.length-we-1);)++we;if(le.length==1&&Ee.length==1&&I==g.line)for(;ge&&ge>g.ch&&it.charCodeAt(it.length-we-1)==et.charCodeAt(et.length-we-1);)ge--,we++;le[le.length-1]=it.slice(0,it.length-we).replace(/^\u200b+/,""),le[0]=le[0].slice(ge).replace(/\u200b+$/,"");var Ct=ze(I,ge),yt=ze(H,Ee.length?Le(Ee).length-we:0);if(le.length>1||le[0]||Q(Ct,yt))return zn(s.doc,le,Ct,yt,"+input"),!0},_n.prototype.ensurePolled=function(){this.forceCompositionEnd()},_n.prototype.reset=function(){this.forceCompositionEnd()},_n.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},_n.prototype.readFromDOMSoon=function(){var s=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(s.readDOMTimeout=null,s.composing)if(s.composing.done)s.composing=null;else return;s.updateFromDOM()},80))},_n.prototype.updateFromDOM=function(){var s=this;(this.cm.isReadOnly()||!this.pollContent())&&Wr(this.cm,function(){return Jr(s.cm)})},_n.prototype.setUneditable=function(s){s.contentEditable="false"},_n.prototype.onKeyPress=function(s){s.charCode==0||this.composing||(s.preventDefault(),this.cm.isReadOnly()||xr(this.cm,Xc)(this.cm,String.fromCharCode(s.charCode==null?s.keyCode:s.charCode),0))},_n.prototype.readOnlyChanged=function(s){this.div.contentEditable=String(s!="nocursor")},_n.prototype.onContextMenu=function(){},_n.prototype.resetPosition=function(){},_n.prototype.needsContentAttribute=!0;function Mh(s,f){var v=Sc(s,f.line);if(!v||v.hidden)return null;var g=ft(s.doc,f.line),T=Ec(v,g,f.line),D=Vt(g,s.doc.direction),I="left";if(D){var U=pt(D,f.ch);I=U%2?"right":"left"}var B=Kp(T.map,f.ch,I);return B.offset=B.collapse=="right"?B.end:B.start,B}z(Mh,"posToDOM");function Dv(s){for(var f=s;f;f=f.parentNode)if(/CodeMirror-gutter-wrapper/.test(f.className))return!0;return!1}z(Dv,"isInGutter");function Xa(s,f){return f&&(s.bad=!0),s}z(Xa,"badPos");function Lh(s,f,v,g,T){var D="",I=!1,U=s.doc.lineSeparator(),B=!1;function H(ge){return function(we){return we.id==ge}}z(H,"recognizeMarker");function ie(){I&&(D+=U,B&&(D+=U),I=B=!1)}z(ie,"close");function le(ge){ge&&(ie(),D+=ge)}z(le,"addText");function Ee(ge){if(ge.nodeType==1){var we=ge.getAttribute("cm-text");if(we){le(we);return}var Ve=ge.getAttribute("cm-marker"),Xe;if(Ve){var rt=s.findMarks(ze(g,0),ze(T+1,0),H(+Ve));rt.length&&(Xe=rt[0].find(0))&&le(go(s.doc,Xe.from,Xe.to).join(U));return}if(ge.getAttribute("contenteditable")=="false")return;var it=/^(pre|div|p|li|table|br)$/i.test(ge.nodeName);if(!/^br$/i.test(ge.nodeName)&&ge.textContent.length==0)return;it&&ie();for(var et=0;et<ge.childNodes.length;et++)Ee(ge.childNodes[et]);/^(pre|p)$/i.test(ge.nodeName)&&(B=!0),it&&(I=!0)}else ge.nodeType==3&&le(ge.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(z(Ee,"walk");Ee(f),f!=v;)f=f.nextSibling,B=!1;return D}z(Lh,"domTextBetween");function Zc(s,f,v){var g;if(f==s.display.lineDiv){if(g=s.display.lineDiv.childNodes[v],!g)return Xa(s.clipPos(ze(s.display.viewTo-1)),!0);f=null,v=0}else for(g=f;;g=g.parentNode){if(!g||g==s.display.lineDiv)return null;if(g.parentNode&&g.parentNode==s.display.lineDiv)break}for(var T=0;T<s.display.view.length;T++){var D=s.display.view[T];if(D.node==g)return kv(D,f,v)}}z(Zc,"domToPos");function kv(s,f,v){var g=s.text.firstChild,T=!1;if(!f||!re(g,f))return Xa(ze(sn(s.line),0),!0);if(f==g&&(T=!0,f=g.childNodes[v],v=0,!f)){var D=s.rest?Le(s.rest):s.line;return Xa(ze(sn(D),D.text.length),T)}var I=f.nodeType==3?f:null,U=f;for(!I&&f.childNodes.length==1&&f.firstChild.nodeType==3&&(I=f.firstChild,v&&(v=I.nodeValue.length));U.parentNode!=g;)U=U.parentNode;var B=s.measure,H=B.maps;function ie(Xe,rt,it){for(var et=-1;et<(H?H.length:0);et++)for(var ut=et<0?B.map:H[et],Ct=0;Ct<ut.length;Ct+=3){var yt=ut[Ct+2];if(yt==Xe||yt==rt){var kt=sn(et<0?s.line:s.rest[et]),In=ut[Ct]+it;return(it<0||yt!=Xe)&&(In=ut[Ct+(it?1:0)]),ze(kt,In)}}}z(ie,"find");var le=ie(I,U,v);if(le)return Xa(le,T);for(var Ee=U.nextSibling,ge=I?I.nodeValue.length-v:0;Ee;Ee=Ee.nextSibling){if(le=ie(Ee,Ee.firstChild,0),le)return Xa(ze(le.line,le.ch-ge),T);ge+=Ee.textContent.length}for(var we=U.previousSibling,Ve=v;we;we=we.previousSibling){if(le=ie(we,we.firstChild,-1),le)return Xa(ze(le.line,le.ch+Ve),T);Ve+=we.textContent.length}}z(kv,"locateNodeInLineView");var gr=z(function(s){this.cm=s,this.prevInput="",this.pollingFast=!1,this.polling=new me,this.hasSelection=!1,this.composing=null},"TextareaInput");gr.prototype.init=function(s){var f=this,v=this,g=this.cm;this.createField(s);var T=this.textarea;s.wrapper.insertBefore(this.wrapper,s.wrapper.firstChild),N&&(T.style.width="0px"),at(T,"input",function(){p&&d>=9&&f.hasSelection&&(f.hasSelection=null),v.poll()}),at(T,"paste",function(I){bn(g,I)||Oh(I,g)||(g.state.pasteIncoming=+new Date,v.fastPoll())});function D(I){if(!bn(g,I)){if(g.somethingSelected())Kc({lineWise:!1,text:g.getSelections()});else if(g.options.lineWiseCopyCut){var U=Ov(g);Kc({lineWise:!0,text:U.text}),I.type=="cut"?g.setSelections(U.ranges,null,Ye):(v.prevInput="",T.value=U.text.join(`
`),he(T))}else return;I.type=="cut"&&(g.state.cutIncoming=+new Date)}}z(D,"prepareCopyCut"),at(T,"cut",D),at(T,"copy",D),at(s.scroller,"paste",function(I){if(!(La(s,I)||bn(g,I))){if(!T.dispatchEvent){g.state.pasteIncoming=+new Date,v.focus();return}var U=new Event("paste");U.clipboardData=I.clipboardData,T.dispatchEvent(U)}}),at(s.lineSpace,"selectstart",function(I){La(s,I)||On(I)}),at(T,"compositionstart",function(){var I=g.getCursor("from");v.composing&&v.composing.range.clear(),v.composing={start:I,range:g.markText(I,g.getCursor("to"),{className:"CodeMirror-composing"})}}),at(T,"compositionend",function(){v.composing&&(v.poll(),v.composing.range.clear(),v.composing=null)})},gr.prototype.createField=function(s){this.wrapper=jr(),this.textarea=this.wrapper.firstChild},gr.prototype.screenReaderLabelChanged=function(s){s?this.textarea.setAttribute("aria-label",s):this.textarea.removeAttribute("aria-label")},gr.prototype.prepareSelection=function(){var s=this.cm,f=s.display,v=s.doc,g=wc(s);if(s.options.moveInputWithCursor){var T=Io(s,v.sel.primary().head,"div"),D=f.wrapper.getBoundingClientRect(),I=f.lineDiv.getBoundingClientRect();g.teTop=Math.max(0,Math.min(f.wrapper.clientHeight-10,T.top+I.top-D.top)),g.teLeft=Math.max(0,Math.min(f.wrapper.clientWidth-10,T.left+I.left-D.left))}return g},gr.prototype.showSelection=function(s){var f=this.cm,v=f.display;J(v.cursorDiv,s.cursors),J(v.selectionDiv,s.selection),s.teTop!=null&&(this.wrapper.style.top=s.teTop+"px",this.wrapper.style.left=s.teLeft+"px")},gr.prototype.reset=function(s){if(!(this.contextMenuPending||this.composing)){var f=this.cm;if(f.somethingSelected()){this.prevInput="";var v=f.getSelection();this.textarea.value=v,f.state.focused&&he(this.textarea),p&&d>=9&&(this.hasSelection=v)}else s||(this.prevInput=this.textarea.value="",p&&d>=9&&(this.hasSelection=null))}},gr.prototype.getField=function(){return this.textarea},gr.prototype.supportsTouch=function(){return!1},gr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!O||ae()!=this.textarea))try{this.textarea.focus()}catch{}},gr.prototype.blur=function(){this.textarea.blur()},gr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},gr.prototype.receivedFocus=function(){this.slowPoll()},gr.prototype.slowPoll=function(){var s=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){s.poll(),s.cm.state.focused&&s.slowPoll()})},gr.prototype.fastPoll=function(){var s=!1,f=this;f.pollingFast=!0;function v(){var g=f.poll();!g&&!s?(s=!0,f.polling.set(60,v)):(f.pollingFast=!1,f.slowPoll())}z(v,"p"),f.polling.set(20,v)},gr.prototype.poll=function(){var s=this,f=this.cm,v=this.textarea,g=this.prevInput;if(this.contextMenuPending||!f.state.focused||Jo(v)&&!g&&!this.composing||f.isReadOnly()||f.options.disableInput||f.state.keySeq)return!1;var T=v.value;if(T==g&&!f.somethingSelected())return!1;if(p&&d>=9&&this.hasSelection===T||_&&/[\uf700-\uf7ff]/.test(T))return f.display.input.reset(),!1;if(f.doc.sel==f.display.selForContextMenu){var D=T.charCodeAt(0);if(D==8203&&!g&&(g="​"),D==8666)return this.reset(),this.cm.execCommand("undo")}for(var I=0,U=Math.min(g.length,T.length);I<U&&g.charCodeAt(I)==T.charCodeAt(I);)++I;return Wr(f,function(){Xc(f,T.slice(I),g.length-I,null,s.composing?"*compose":null),T.length>1e3||T.indexOf(`
`)>-1?v.value=s.prevInput="":s.prevInput=T,s.composing&&(s.composing.range.clear(),s.composing.range=f.markText(s.composing.start,f.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},gr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},gr.prototype.onKeyPress=function(){p&&d>=9&&(this.hasSelection=null),this.fastPoll()},gr.prototype.onContextMenu=function(s){var f=this,v=f.cm,g=v.display,T=f.textarea;f.contextMenuPending&&f.contextMenuPending();var D=Cs(v,s),I=g.scroller.scrollTop;if(!D||y)return;var U=v.options.resetSelectionOnContextMenu;U&&v.doc.sel.contains(D)==-1&&xr(v,mr)(v.doc,Vo(D),Ye);var B=T.style.cssText,H=f.wrapper.style.cssText,ie=f.wrapper.offsetParent.getBoundingClientRect();f.wrapper.style.cssText="position: static",T.style.cssText=`position: absolute; width: 30px; height: 30px;
      top: `+(s.clientY-ie.top-5)+"px; left: "+(s.clientX-ie.left-5)+`px;
      z-index: 1000; background: `+(p?"rgba(255, 255, 255, .05)":"transparent")+`;
      outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var le;m&&(le=window.scrollY),g.input.focus(),m&&window.scrollTo(null,le),g.input.reset(),v.somethingSelected()||(T.value=f.prevInput=" "),f.contextMenuPending=ge,g.selForContextMenu=v.doc.sel,clearTimeout(g.detectingSelectAll);function Ee(){if(T.selectionStart!=null){var Ve=v.somethingSelected(),Xe="​"+(Ve?T.value:"");T.value="⇚",T.value=Xe,f.prevInput=Ve?"":"​",T.selectionStart=1,T.selectionEnd=Xe.length,g.selForContextMenu=v.doc.sel}}z(Ee,"prepareSelectAllHack");function ge(){if(f.contextMenuPending==ge&&(f.contextMenuPending=!1,f.wrapper.style.cssText=H,T.style.cssText=B,p&&d<9&&g.scrollbars.setScrollTop(g.scroller.scrollTop=I),T.selectionStart!=null)){(!p||p&&d<9)&&Ee();var Ve=0,Xe=z(function(){g.selForContextMenu==v.doc.sel&&T.selectionStart==0&&T.selectionEnd>0&&f.prevInput=="​"?xr(v,xd)(v):Ve++<10?g.detectingSelectAll=setTimeout(Xe,500):(g.selForContextMenu=null,g.input.reset())},"poll");g.detectingSelectAll=setTimeout(Xe,200)}}if(z(ge,"rehide"),p&&d>=9&&Ee(),V){Bt(s);var we=z(function(){yn(window,"mouseup",we),setTimeout(ge,20)},"mouseup");at(window,"mouseup",we)}else setTimeout(ge,50)},gr.prototype.readOnlyChanged=function(s){s||this.reset(),this.textarea.disabled=s=="nocursor",this.textarea.readOnly=!!s},gr.prototype.setUneditable=function(){},gr.prototype.needsContentAttribute=!1;function Ih(s,f){if(f=f?pe(f):{},f.value=s.value,!f.tabindex&&s.tabIndex&&(f.tabindex=s.tabIndex),!f.placeholder&&s.placeholder&&(f.placeholder=s.placeholder),f.autofocus==null){var v=ae();f.autofocus=v==s||s.getAttribute("autofocus")!=null&&v==document.body}function g(){s.value=U.getValue()}z(g,"save");var T;if(s.form&&(at(s.form,"submit",g),!f.leaveSubmitMethodAlone)){var D=s.form;T=D.submit;try{var I=D.submit=function(){g(),D.submit=T,D.submit(),D.submit=I}}catch{}}f.finishInit=function(B){B.save=g,B.getTextArea=function(){return s},B.toTextArea=function(){B.toTextArea=isNaN,g(),s.parentNode.removeChild(B.getWrapperElement()),s.style.display="",s.form&&(yn(s.form,"submit",g),!f.leaveSubmitMethodAlone&&typeof s.form.submit=="function"&&(s.form.submit=T))}},s.style.display="none";var U=Ln(function(B){return s.parentNode.insertBefore(B,s.nextSibling)},f);return U}z(Ih,"fromTextArea");function Fh(s){s.off=yn,s.on=at,s.wheelEventPixels=ov,s.Doc=_i,s.splitLines=Fi,s.countColumn=ce,s.findColumn=ot,s.isWordChar=We,s.Pass=Ge,s.signal=mt,s.Line=vc,s.changeEnd=qa,s.scrollbarModel=pr,s.Pos=ze,s.cmpPos=Q,s.modes=$n,s.mimeModes=Ir,s.resolveMode=Do,s.getMode=ho,s.modeExtensions=Mn,s.extendMode=Ji,s.copyState=ji,s.startState=ko,s.innerMode=mo,s.commands=Cu,s.keyMap=Ga,s.keyName=Ad,s.isModifierKey=bh,s.lookupKey=_l,s.normalizeKeyMap=bv,s.StringStream=rr,s.SharedTextMarker=qc,s.TextMarker=Is,s.LineWidget=Tu,s.e_preventDefault=On,s.e_stopPropagation=Zi,s.e_stop=Bt,s.addClass=fe,s.contains=re,s.rmClass=K,s.keyNames=ca}z(Fh,"addLegacyProps"),_v(Ln),ti(Ln);var Rv="iter insert remove copy getEditor constructor".split(" ");for(var Fd in _i.prototype)_i.prototype.hasOwnProperty(Fd)&&Se(Rv,Fd)<0&&(Ln.prototype[Fd]=function(s){return function(){return s.apply(this.doc,arguments)}}(_i.prototype[Fd]));return Lr(_i),Ln.inputStyles={textarea:gr,contenteditable:_n},Ln.defineMode=function(s){!Ln.defaults.mode&&s!="null"&&(Ln.defaults.mode=s),Pi.apply(this,arguments)},Ln.defineMIME=zr,Ln.defineMode("null",function(){return{token:function(s){return s.skipToEnd()}}}),Ln.defineMIME("text/plain","null"),Ln.defineExtension=function(s,f){Ln.prototype[s]=f},Ln.defineDocExtension=function(s,f){_i.prototype[s]=f},Ln.fromTextArea=Ih,Fh(Ln),Ln.version="5.65.3",Ln})}(D4)),D4.exports}z(Ki,"requireCodemirror");var Une=Object.defineProperty,qne=(e,t)=>Une(e,"name",{value:t,configurable:!0});function R4(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"}))}qne(R4,"_mergeNamespaces");var M4=Ki();const qt=po(M4),Bne=Object.freeze(Object.defineProperty({__proto__:null,C:qt,c:R4({__proto__:null,default:qt},[M4])},Symbol.toStringTag,{value:"Module"}));var $ne=Object.defineProperty,No=(e,t)=>$ne(e,"name",{value:t,configurable:!0});function L4(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"}))}No(L4,"_mergeNamespaces");var zne={exports:{}};(function(e,t){(function(n){n(Ki())})(function(n){var r="CodeMirror-hint",i="CodeMirror-hint-active";n.showHint=function(N,A,O){if(!A)return N.showHint(O);O&&O.async&&(A.async=!0);var _={hint:A};if(O)for(var M in O)_[M]=O[M];return N.showHint(_)},n.defineExtension("showHint",function(N){N=p(this,this.getCursor("start"),N);var A=this.listSelections();if(!(A.length>1)){if(this.somethingSelected()){if(!N.hint.supportsSelection)return;for(var O=0;O<A.length;O++)if(A[O].head.line!=A[O].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var _=this.state.completionActive=new o(this,N);_.options.hint&&(n.signal(this,"startCompletion",this),_.update(!0))}}),n.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function o(N,A){if(this.cm=N,this.options=A,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var O=this;N.on("cursorActivity",this.activityFunc=function(){O.cursorActivity()})}}No(o,"Completion");var l=window.requestAnimationFrame||function(N){return setTimeout(N,1e3/60)},c=window.cancelAnimationFrame||clearTimeout;o.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&n.signal(this.data,"close"),this.widget&&this.widget.close(),n.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(N,A){var O=N.list[A],_=this;this.cm.operation(function(){O.hint?O.hint(_.cm,N,O):_.cm.replaceRange(d(O),O.from||N.from,O.to||N.to,"complete"),n.signal(N,"pick",O),_.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(c(this.debounce),this.debounce=0);var N=this.startPos;this.data&&(N=this.data.from);var A=this.cm.getCursor(),O=this.cm.getLine(A.line);if(A.line!=this.startPos.line||O.length-A.ch!=this.startLen-this.startPos.ch||A.ch<N.ch||this.cm.somethingSelected()||!A.ch||this.options.closeCharacters.test(O.charAt(A.ch-1)))this.close();else{var _=this;this.debounce=l(function(){_.update()}),this.widget&&this.widget.disable()}},update:function(N){if(this.tick!=null){var A=this,O=++this.tick;x(this.options.hint,this.cm,this.options,function(_){A.tick==O&&A.finishUpdate(_,N)})}},finishUpdate:function(N,A){this.data&&n.signal(this.data,"update");var O=this.widget&&this.widget.picked||A&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=N,N&&N.list.length&&(O&&N.list.length==1?this.pick(N,0):(this.widget=new b(this,N),n.signal(N,"shown")))}};function p(N,A,O){var _=N.options.hintOptions,M={};for(var j in k)M[j]=k[j];if(_)for(var j in _)_[j]!==void 0&&(M[j]=_[j]);if(O)for(var j in O)O[j]!==void 0&&(M[j]=O[j]);return M.hint.resolve&&(M.hint=M.hint.resolve(N,A)),M}No(p,"parseOptions");function d(N){return typeof N=="string"?N:N.text}No(d,"getText");function m(N,A){var O={Up:function(){A.moveFocus(-1)},Down:function(){A.moveFocus(1)},PageUp:function(){A.moveFocus(-A.menuSize()+1,!0)},PageDown:function(){A.moveFocus(A.menuSize()-1,!0)},Home:function(){A.setFocus(0)},End:function(){A.setFocus(A.length-1)},Enter:A.pick,Tab:A.pick,Esc:A.close},_=/Mac/.test(navigator.platform);_&&(O["Ctrl-P"]=function(){A.moveFocus(-1)},O["Ctrl-N"]=function(){A.moveFocus(1)});var M=N.options.customKeys,j=M?{}:O;function P($,K){var ee;typeof K!="string"?ee=No(function(J){return K(J,A)},"bound"):O.hasOwnProperty(K)?ee=O[K]:ee=K,j[$]=ee}if(No(P,"addBinding"),M)for(var F in M)M.hasOwnProperty(F)&&P(F,M[F]);var V=N.options.extraKeys;if(V)for(var F in V)V.hasOwnProperty(F)&&P(F,V[F]);return j}No(m,"buildKeyMap");function E(N,A){for(;A&&A!=N;){if(A.nodeName.toUpperCase()==="LI"&&A.parentNode==N)return A;A=A.parentNode}}No(E,"getHintElement");function b(N,A){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=N,this.data=A,this.picked=!1;var O=this,_=N.cm,M=_.getInputField().ownerDocument,j=M.defaultView||M.parentWindow,P=this.hints=M.createElement("ul");P.setAttribute("role","listbox"),P.setAttribute("aria-expanded","true"),P.id=this.id;var F=N.cm.options.theme;P.className="CodeMirror-hints "+F,this.selectedHint=A.selectedHint||0;for(var V=A.list,$=0;$<V.length;++$){var K=P.appendChild(M.createElement("li")),ee=V[$],J=r+($!=this.selectedHint?"":" "+i);ee.className!=null&&(J=ee.className+" "+J),K.className=J,$==this.selectedHint&&K.setAttribute("aria-selected","true"),K.id=this.id+"-"+$,K.setAttribute("role","option"),ee.render?ee.render(K,A,ee):K.appendChild(M.createTextNode(ee.displayText||d(ee))),K.hintId=$}var W=N.options.container||M.body,q=_.cursorCoords(N.options.alignWithWord?A.from:null),te=q.left,re=q.bottom,ae=!0,fe=0,Z=0;if(W!==M.body){var he=["absolute","relative","fixed"].indexOf(j.getComputedStyle(W).position)!==-1,se=he?W:W.offsetParent,pe=se.getBoundingClientRect(),ce=M.body.getBoundingClientRect();fe=pe.left-ce.left-se.scrollLeft,Z=pe.top-ce.top-se.scrollTop}P.style.left=te-fe+"px",P.style.top=re-Z+"px";var me=j.innerWidth||Math.max(M.body.offsetWidth,M.documentElement.offsetWidth),Se=j.innerHeight||Math.max(M.body.offsetHeight,M.documentElement.offsetHeight);W.appendChild(P),_.getInputField().setAttribute("aria-autocomplete","list"),_.getInputField().setAttribute("aria-owns",this.id),_.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var je=N.options.moveOnOverlap?P.getBoundingClientRect():new DOMRect,Ge=N.options.paddingForScrollbar?P.scrollHeight>P.clientHeight+1:!1,Ye;setTimeout(function(){Ye=_.getScrollInfo()});var Ot=je.bottom-Se;if(Ot>0){var gt=je.bottom-je.top,ot=q.top-(q.bottom-je.top);if(ot-gt>0)P.style.top=(re=q.top-gt-Z)+"px",ae=!1;else if(gt>Se){P.style.height=Se-5+"px",P.style.top=(re=q.bottom-je.top-Z)+"px";var Oe=_.getCursor();A.from.ch!=Oe.ch&&(q=_.cursorCoords(Oe),P.style.left=(te=q.left-fe)+"px",je=P.getBoundingClientRect())}}var ye=je.right-me;if(Ge&&(ye+=_.display.nativeBarWidth),ye>0&&(je.right-je.left>me&&(P.style.width=me-5+"px",ye-=je.right-je.left-me),P.style.left=(te=q.left-ye-fe)+"px"),Ge)for(var Le=P.firstChild;Le;Le=Le.nextSibling)Le.style.paddingRight=_.display.nativeBarWidth+"px";if(_.addKeyMap(this.keyMap=m(N,{moveFocus:function(Fe,Je){O.changeActive(O.selectedHint+Fe,Je)},setFocus:function(Fe){O.changeActive(Fe)},menuSize:function(){return O.screenAmount()},length:V.length,close:function(){N.close()},pick:function(){O.pick()},data:A})),N.options.closeOnUnfocus){var be;_.on("blur",this.onBlur=function(){be=setTimeout(function(){N.close()},100)}),_.on("focus",this.onFocus=function(){clearTimeout(be)})}_.on("scroll",this.onScroll=function(){var Fe=_.getScrollInfo(),Je=_.getWrapperElement().getBoundingClientRect();Ye||(Ye=_.getScrollInfo());var ct=re+Ye.top-Fe.top,We=ct-(j.pageYOffset||(M.documentElement||M.body).scrollTop);if(ae||(We+=P.offsetHeight),We<=Je.top||We>=Je.bottom)return N.close();P.style.top=ct+"px",P.style.left=te+Ye.left-Fe.left+"px"}),n.on(P,"dblclick",function(Fe){var Je=E(P,Fe.target||Fe.srcElement);Je&&Je.hintId!=null&&(O.changeActive(Je.hintId),O.pick())}),n.on(P,"click",function(Fe){var Je=E(P,Fe.target||Fe.srcElement);Je&&Je.hintId!=null&&(O.changeActive(Je.hintId),N.options.completeOnSingleClick&&O.pick())}),n.on(P,"mousedown",function(){setTimeout(function(){_.focus()},20)});var oe=this.getSelectedHintRange();return(oe.from!==0||oe.to!==0)&&this.scrollToActive(),n.signal(A,"select",V[this.selectedHint],P.childNodes[this.selectedHint]),!0}No(b,"Widget"),b.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var N=this.completion.cm.getInputField();N.removeAttribute("aria-activedescendant"),N.removeAttribute("aria-owns");var A=this.completion.cm;this.completion.options.closeOnUnfocus&&(A.off("blur",this.onBlur),A.off("focus",this.onFocus)),A.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var N=this;this.keyMap={Enter:function(){N.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(N,A){if(N>=this.data.list.length?N=A?this.data.list.length-1:0:N<0&&(N=A?0:this.data.list.length-1),this.selectedHint!=N){var O=this.hints.childNodes[this.selectedHint];O&&(O.className=O.className.replace(" "+i,""),O.removeAttribute("aria-selected")),O=this.hints.childNodes[this.selectedHint=N],O.className+=" "+i,O.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",O.id),this.scrollToActive(),n.signal(this.data,"select",this.data.list[this.selectedHint],O)}},scrollToActive:function(){var N=this.getSelectedHintRange(),A=this.hints.childNodes[N.from],O=this.hints.childNodes[N.to],_=this.hints.firstChild;A.offsetTop<this.hints.scrollTop?this.hints.scrollTop=A.offsetTop-_.offsetTop:O.offsetTop+O.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=O.offsetTop+O.offsetHeight-this.hints.clientHeight+_.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var N=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-N),to:Math.min(this.data.list.length-1,this.selectedHint+N)}}};function y(N,A){if(!N.somethingSelected())return A;for(var O=[],_=0;_<A.length;_++)A[_].supportsSelection&&O.push(A[_]);return O}No(y,"applicableHelpers");function x(N,A,O,_){if(N.async)N(A,_,O);else{var M=N(A,O);M&&M.then?M.then(_):_(M)}}No(x,"fetchHints");function w(N,A){var O=N.getHelpers(A,"hint"),_;if(O.length){var M=No(function(j,P,F){var V=y(j,O);function $(K){if(K==V.length)return P(null);x(V[K],j,F,function(ee){ee&&ee.list.length>0?P(ee):$(K+1)})}No($,"run"),$(0)},"resolved");return M.async=!0,M.supportsSelection=!0,M}else return(_=N.getHelper(N.getCursor(),"hintWords"))?function(j){return n.hint.fromList(j,{words:_})}:n.hint.anyword?function(j,P){return n.hint.anyword(j,P)}:function(){}}No(w,"resolveAutoHints"),n.registerHelper("hint","auto",{resolve:w}),n.registerHelper("hint","fromList",function(N,A){var O=N.getCursor(),_=N.getTokenAt(O),M,j=n.Pos(O.line,_.start),P=O;_.start<O.ch&&/\w/.test(_.string.charAt(O.ch-_.start-1))?M=_.string.substr(0,O.ch-_.start):(M="",j=O);for(var F=[],V=0;V<A.words.length;V++){var $=A.words[V];$.slice(0,M.length)==M&&F.push($)}if(F.length)return{list:F,from:j,to:P}}),n.commands.autocomplete=n.showHint;var k={hint:n.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};n.defineOption("hintOptions",null)})})();var I4=zne.exports;const Hne=Object.freeze(Object.defineProperty({__proto__:null,s:L4({__proto__:null,default:po(I4)},[I4])},Symbol.toStringTag,{value:"Module"}));var Gne=Object.defineProperty,uc=(e,t)=>Gne(e,"name",{value:t,configurable:!0}),Yne={exports:{}},F4;function WC(){return F4||(F4=1,function(e,t){(function(n){n(Ki())})(function(n){var r=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),i=n.Pos,o={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function l(b){return b&&b.bracketRegex||/[(){}[\]]/}uc(l,"bracketRegex");function c(b,y,x){var w=b.getLineHandle(y.line),k=y.ch-1,N=x&&x.afterCursor;N==null&&(N=/(^| )cm-fat-cursor($| )/.test(b.getWrapperElement().className));var A=l(x),O=!N&&k>=0&&A.test(w.text.charAt(k))&&o[w.text.charAt(k)]||A.test(w.text.charAt(k+1))&&o[w.text.charAt(++k)];if(!O)return null;var _=O.charAt(1)==">"?1:-1;if(x&&x.strict&&_>0!=(k==y.ch))return null;var M=b.getTokenTypeAt(i(y.line,k+1)),j=p(b,i(y.line,k+(_>0?1:0)),_,M,x);return j==null?null:{from:i(y.line,k),to:j&&j.pos,match:j&&j.ch==O.charAt(0),forward:_>0}}uc(c,"findMatchingBracket");function p(b,y,x,w,k){for(var N=k&&k.maxScanLineLength||1e4,A=k&&k.maxScanLines||1e3,O=[],_=l(k),M=x>0?Math.min(y.line+A,b.lastLine()+1):Math.max(b.firstLine()-1,y.line-A),j=y.line;j!=M;j+=x){var P=b.getLine(j);if(P){var F=x>0?0:P.length-1,V=x>0?P.length:-1;if(!(P.length>N))for(j==y.line&&(F=y.ch-(x<0?1:0));F!=V;F+=x){var $=P.charAt(F);if(_.test($)&&(w===void 0||(b.getTokenTypeAt(i(j,F+1))||"")==(w||""))){var K=o[$];if(K&&K.charAt(1)==">"==x>0)O.push($);else if(O.length)O.pop();else return{pos:i(j,F),ch:$}}}}}return j-x==(x>0?b.lastLine():b.firstLine())?!1:null}uc(p,"scanForBracket");function d(b,y,x){for(var w=b.state.matchBrackets.maxHighlightLineLength||1e3,k=x&&x.highlightNonMatching,N=[],A=b.listSelections(),O=0;O<A.length;O++){var _=A[O].empty()&&c(b,A[O].head,x);if(_&&(_.match||k!==!1)&&b.getLine(_.from.line).length<=w){var M=_.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";N.push(b.markText(_.from,i(_.from.line,_.from.ch+1),{className:M})),_.to&&b.getLine(_.to.line).length<=w&&N.push(b.markText(_.to,i(_.to.line,_.to.ch+1),{className:M}))}}if(N.length){r&&b.state.focused&&b.focus();var j=uc(function(){b.operation(function(){for(var P=0;P<N.length;P++)N[P].clear()})},"clear");if(y)setTimeout(j,800);else return j}}uc(d,"matchBrackets");function m(b){b.operation(function(){b.state.matchBrackets.currentlyHighlighted&&(b.state.matchBrackets.currentlyHighlighted(),b.state.matchBrackets.currentlyHighlighted=null),b.state.matchBrackets.currentlyHighlighted=d(b,!1,b.state.matchBrackets)})}uc(m,"doMatchBrackets");function E(b){b.state.matchBrackets&&b.state.matchBrackets.currentlyHighlighted&&(b.state.matchBrackets.currentlyHighlighted(),b.state.matchBrackets.currentlyHighlighted=null)}uc(E,"clearHighlighted"),n.defineOption("matchBrackets",!1,function(b,y,x){x&&x!=n.Init&&(b.off("cursorActivity",m),b.off("focus",m),b.off("blur",E),E(b)),y&&(b.state.matchBrackets=typeof y=="object"?y:{},b.on("cursorActivity",m),b.on("focus",m),b.on("blur",E))}),n.defineExtension("matchBrackets",function(){d(this,!0)}),n.defineExtension("findMatchingBracket",function(b,y,x){return(x||typeof y=="boolean")&&(x?(x.strict=y,y=x):y=y?{strict:!0}:null),c(this,b,y)}),n.defineExtension("scanForBracket",function(b,y,x,w){return p(this,b,y,x,w)})})}()),Yne.exports}uc(WC,"requireMatchbrackets");var Wne=Object.defineProperty,Qne=(e,t)=>Wne(e,"name",{value:t,configurable:!0});function P4(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"}))}Qne(P4,"_mergeNamespaces");var j4=WC();const Kne=Object.freeze(Object.defineProperty({__proto__:null,m:P4({__proto__:null,default:po(j4)},[j4])},Symbol.toStringTag,{value:"Module"}));var Xne=Object.defineProperty,ka=(e,t)=>Xne(e,"name",{value:t,configurable:!0});function V4(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"}))}ka(V4,"_mergeNamespaces");var Zne={exports:{}};(function(e,t){(function(n){n(Ki())})(function(n){var r={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},i=n.Pos;n.defineOption("autoCloseBrackets",!1,function(N,A,O){O&&O!=n.Init&&(N.removeKeyMap(l),N.state.closeBrackets=null),A&&(c(o(A,"pairs")),N.state.closeBrackets=A,N.addKeyMap(l))});function o(N,A){return A=="pairs"&&typeof N=="string"?N:typeof N=="object"&&N[A]!=null?N[A]:r[A]}ka(o,"getOption");var l={Backspace:m,Enter:E};function c(N){for(var A=0;A<N.length;A++){var O=N.charAt(A),_="'"+O+"'";l[_]||(l[_]=p(O))}}ka(c,"ensureBound"),c(r.pairs+"`");function p(N){return function(A){return x(A,N)}}ka(p,"handler");function d(N){var A=N.state.closeBrackets;if(!A||A.override)return A;var O=N.getModeAt(N.getCursor());return O.closeBrackets||A}ka(d,"getConfig");function m(N){var A=d(N);if(!A||N.getOption("disableInput"))return n.Pass;for(var O=o(A,"pairs"),_=N.listSelections(),M=0;M<_.length;M++){if(!_[M].empty())return n.Pass;var j=w(N,_[M].head);if(!j||O.indexOf(j)%2!=0)return n.Pass}for(var M=_.length-1;M>=0;M--){var P=_[M].head;N.replaceRange("",i(P.line,P.ch-1),i(P.line,P.ch+1),"+delete")}}ka(m,"handleBackspace");function E(N){var A=d(N),O=A&&o(A,"explode");if(!O||N.getOption("disableInput"))return n.Pass;for(var _=N.listSelections(),M=0;M<_.length;M++){if(!_[M].empty())return n.Pass;var j=w(N,_[M].head);if(!j||O.indexOf(j)%2!=0)return n.Pass}N.operation(function(){var P=N.lineSeparator()||`
`;N.replaceSelection(P+P,null),b(N,-1),_=N.listSelections();for(var F=0;F<_.length;F++){var V=_[F].head.line;N.indentLine(V,null,!0),N.indentLine(V+1,null,!0)}})}ka(E,"handleEnter");function b(N,A){for(var O=[],_=N.listSelections(),M=0,j=0;j<_.length;j++){var P=_[j];P.head==N.getCursor()&&(M=j);var F=P.head.ch||A>0?{line:P.head.line,ch:P.head.ch+A}:{line:P.head.line-1};O.push({anchor:F,head:F})}N.setSelections(O,M)}ka(b,"moveSel");function y(N){var A=n.cmpPos(N.anchor,N.head)>0;return{anchor:new i(N.anchor.line,N.anchor.ch+(A?-1:1)),head:new i(N.head.line,N.head.ch+(A?1:-1))}}ka(y,"contractSelection");function x(N,A){var O=d(N);if(!O||N.getOption("disableInput"))return n.Pass;var _=o(O,"pairs"),M=_.indexOf(A);if(M==-1)return n.Pass;for(var j=o(O,"closeBefore"),P=o(O,"triples"),F=_.charAt(M+1)==A,V=N.listSelections(),$=M%2==0,K,ee=0;ee<V.length;ee++){var J=V[ee],W=J.head,q,te=N.getRange(W,i(W.line,W.ch+1));if($&&!J.empty())q="surround";else if((F||!$)&&te==A)F&&k(N,W)?q="both":P.indexOf(A)>=0&&N.getRange(W,i(W.line,W.ch+3))==A+A+A?q="skipThree":q="skip";else if(F&&W.ch>1&&P.indexOf(A)>=0&&N.getRange(i(W.line,W.ch-2),W)==A+A){if(W.ch>2&&/\bstring/.test(N.getTokenTypeAt(i(W.line,W.ch-2))))return n.Pass;q="addFour"}else if(F){var re=W.ch==0?" ":N.getRange(i(W.line,W.ch-1),W);if(!n.isWordChar(te)&&re!=A&&!n.isWordChar(re))q="both";else return n.Pass}else if($&&(te.length===0||/\s/.test(te)||j.indexOf(te)>-1))q="both";else return n.Pass;if(!K)K=q;else if(K!=q)return n.Pass}var ae=M%2?_.charAt(M-1):A,fe=M%2?A:_.charAt(M+1);N.operation(function(){if(K=="skip")b(N,1);else if(K=="skipThree")b(N,3);else if(K=="surround"){for(var Z=N.getSelections(),he=0;he<Z.length;he++)Z[he]=ae+Z[he]+fe;N.replaceSelections(Z,"around"),Z=N.listSelections().slice();for(var he=0;he<Z.length;he++)Z[he]=y(Z[he]);N.setSelections(Z)}else K=="both"?(N.replaceSelection(ae+fe,null),N.triggerElectric(ae+fe),b(N,-1)):K=="addFour"&&(N.replaceSelection(ae+ae+ae+ae,"before"),b(N,1))})}ka(x,"handleChar");function w(N,A){var O=N.getRange(i(A.line,A.ch-1),i(A.line,A.ch+1));return O.length==2?O:null}ka(w,"charsAround");function k(N,A){var O=N.getTokenAt(i(A.line,A.ch+1));return/\bstring/.test(O.type)&&O.start==A.ch&&(A.ch==0||!/\bstring/.test(N.getTokenTypeAt(A)))}ka(k,"stringStartsAfter")})})();var U4=Zne.exports;const Jne=Object.freeze(Object.defineProperty({__proto__:null,c:V4({__proto__:null,default:po(U4)},[U4])},Symbol.toStringTag,{value:"Module"}));var ere=Object.defineProperty,Rp=(e,t)=>ere(e,"name",{value:t,configurable:!0});function q4(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"}))}Rp(q4,"_mergeNamespaces");var tre={exports:{}};(function(e,t){(function(n){n(Ki())})(function(n){function r(i){return function(o,l){var c=l.line,p=o.getLine(c);function d(w){for(var k,N=l.ch,A=0;;){var O=N<=0?-1:p.lastIndexOf(w[0],N-1);if(O==-1){if(A==1)break;A=1,N=p.length;continue}if(A==1&&O<l.ch)break;if(k=o.getTokenTypeAt(n.Pos(c,O+1)),!/^(comment|string)/.test(k))return{ch:O+1,tokenType:k,pair:w};N=O-1}}Rp(d,"findOpening");function m(w){var k=1,N=o.lastLine(),A,O=w.ch,_;e:for(var M=c;M<=N;++M)for(var j=o.getLine(M),P=M==c?O:0;;){var F=j.indexOf(w.pair[0],P),V=j.indexOf(w.pair[1],P);if(F<0&&(F=j.length),V<0&&(V=j.length),P=Math.min(F,V),P==j.length)break;if(o.getTokenTypeAt(n.Pos(M,P+1))==w.tokenType){if(P==F)++k;else if(!--k){A=M,_=P;break e}}++P}return A==null||c==A?null:{from:n.Pos(c,O),to:n.Pos(A,_)}}Rp(m,"findRange");for(var E=[],b=0;b<i.length;b++){var y=d(i[b]);y&&E.push(y)}E.sort(function(w,k){return w.ch-k.ch});for(var b=0;b<E.length;b++){var x=m(E[b]);if(x)return x}return null}}Rp(r,"bracketFolding"),n.registerHelper("fold","brace",r([["{","}"],["[","]"]])),n.registerHelper("fold","brace-paren",r([["{","}"],["[","]"],["(",")"]])),n.registerHelper("fold","import",function(i,o){function l(b){if(b<i.firstLine()||b>i.lastLine())return null;var y=i.getTokenAt(n.Pos(b,1));if(/\S/.test(y.string)||(y=i.getTokenAt(n.Pos(b,y.end+1))),y.type!="keyword"||y.string!="import")return null;for(var x=b,w=Math.min(i.lastLine(),b+10);x<=w;++x){var k=i.getLine(x),N=k.indexOf(";");if(N!=-1)return{startCh:y.end,end:n.Pos(x,N)}}}Rp(l,"hasImport");var c=o.line,p=l(c),d;if(!p||l(c-1)||(d=l(c-2))&&d.end.line==c-1)return null;for(var m=p.end;;){var E=l(m.line+1);if(E==null)break;m=E.end}return{from:i.clipPos(n.Pos(c,p.startCh+1)),to:m}}),n.registerHelper("fold","include",function(i,o){function l(E){if(E<i.firstLine()||E>i.lastLine())return null;var b=i.getTokenAt(n.Pos(E,1));if(/\S/.test(b.string)||(b=i.getTokenAt(n.Pos(E,b.end+1))),b.type=="meta"&&b.string.slice(0,8)=="#include")return b.start+8}Rp(l,"hasInclude");var c=o.line,p=l(c);if(p==null||l(c-1)!=null)return null;for(var d=c;;){var m=l(d+1);if(m==null)break;++d}return{from:n.Pos(c,p+1),to:i.clipPos(n.Pos(d))}})})})();var B4=tre.exports;const $4=Object.freeze(Object.defineProperty({__proto__:null,b:q4({__proto__:null,default:po(B4)},[B4])},Symbol.toStringTag,{value:"Module"}));var nre=Object.defineProperty,Li=(e,t)=>nre(e,"name",{value:t,configurable:!0});function z4(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"}))}Li(z4,"_mergeNamespaces");var rre={exports:{}},ire={exports:{}},H4;function G4(){return H4||(H4=1,function(e,t){(function(n){n(Ki())})(function(n){function r(c,p,d,m){if(d&&d.call){var E=d;d=null}else var E=l(c,d,"rangeFinder");typeof p=="number"&&(p=n.Pos(p,0));var b=l(c,d,"minFoldSize");function y(N){var A=E(c,p);if(!A||A.to.line-A.from.line<b)return null;if(m==="fold")return A;for(var O=c.findMarksAt(A.from),_=0;_<O.length;++_)if(O[_].__isFold){if(!N)return null;A.cleared=!0,O[_].clear()}return A}Li(y,"getRange");var x=y(!0);if(l(c,d,"scanUp"))for(;!x&&p.line>c.firstLine();)p=n.Pos(p.line-1,0),x=y(!1);if(!(!x||x.cleared||m==="unfold")){var w=i(c,d,x);n.on(w,"mousedown",function(N){k.clear(),n.e_preventDefault(N)});var k=c.markText(x.from,x.to,{replacedWith:w,clearOnEnter:l(c,d,"clearOnEnter"),__isFold:!0});k.on("clear",function(N,A){n.signal(c,"unfold",c,N,A)}),n.signal(c,"fold",c,x.from,x.to)}}Li(r,"doFold");function i(c,p,d){var m=l(c,p,"widget");if(typeof m=="function"&&(m=m(d.from,d.to)),typeof m=="string"){var E=document.createTextNode(m);m=document.createElement("span"),m.appendChild(E),m.className="CodeMirror-foldmarker"}else m&&(m=m.cloneNode(!0));return m}Li(i,"makeWidget"),n.newFoldFunction=function(c,p){return function(d,m){r(d,m,{rangeFinder:c,widget:p})}},n.defineExtension("foldCode",function(c,p,d){r(this,c,p,d)}),n.defineExtension("isFolded",function(c){for(var p=this.findMarksAt(c),d=0;d<p.length;++d)if(p[d].__isFold)return!0}),n.commands.toggleFold=function(c){c.foldCode(c.getCursor())},n.commands.fold=function(c){c.foldCode(c.getCursor(),null,"fold")},n.commands.unfold=function(c){c.foldCode(c.getCursor(),{scanUp:!1},"unfold")},n.commands.foldAll=function(c){c.operation(function(){for(var p=c.firstLine(),d=c.lastLine();p<=d;p++)c.foldCode(n.Pos(p,0),{scanUp:!1},"fold")})},n.commands.unfoldAll=function(c){c.operation(function(){for(var p=c.firstLine(),d=c.lastLine();p<=d;p++)c.foldCode(n.Pos(p,0),{scanUp:!1},"unfold")})},n.registerHelper("fold","combine",function(){var c=Array.prototype.slice.call(arguments,0);return function(p,d){for(var m=0;m<c.length;++m){var E=c[m](p,d);if(E)return E}}}),n.registerHelper("fold","auto",function(c,p){for(var d=c.getHelpers(p,"fold"),m=0;m<d.length;m++){var E=d[m](c,p);if(E)return E}});var o={rangeFinder:n.fold.auto,widget:"↔",minFoldSize:0,scanUp:!1,clearOnEnter:!0};n.defineOption("foldOptions",null);function l(c,p,d){if(p&&p[d]!==void 0)return p[d];var m=c.options.foldOptions;return m&&m[d]!==void 0?m[d]:o[d]}Li(l,"getOption"),n.defineExtension("foldOption",function(c,p){return l(this,c,p)})})}()),ire.exports}Li(G4,"requireFoldcode"),function(e,t){(function(n){n(Ki(),G4())})(function(n){n.defineOption("foldGutter",!1,function(w,k,N){N&&N!=n.Init&&(w.clearGutter(w.state.foldGutter.options.gutter),w.state.foldGutter=null,w.off("gutterClick",E),w.off("changes",b),w.off("viewportChange",y),w.off("fold",x),w.off("unfold",x),w.off("swapDoc",b)),k&&(w.state.foldGutter=new i(o(k)),m(w),w.on("gutterClick",E),w.on("changes",b),w.on("viewportChange",y),w.on("fold",x),w.on("unfold",x),w.on("swapDoc",b))});var r=n.Pos;function i(w){this.options=w,this.from=this.to=0}Li(i,"State");function o(w){return w===!0&&(w={}),w.gutter==null&&(w.gutter="CodeMirror-foldgutter"),w.indicatorOpen==null&&(w.indicatorOpen="CodeMirror-foldgutter-open"),w.indicatorFolded==null&&(w.indicatorFolded="CodeMirror-foldgutter-folded"),w}Li(o,"parseOptions");function l(w,k){for(var N=w.findMarks(r(k,0),r(k+1,0)),A=0;A<N.length;++A)if(N[A].__isFold){var O=N[A].find(-1);if(O&&O.line===k)return N[A]}}Li(l,"isFolded");function c(w){if(typeof w=="string"){var k=document.createElement("div");return k.className=w+" CodeMirror-guttermarker-subtle",k}else return w.cloneNode(!0)}Li(c,"marker");function p(w,k,N){var A=w.state.foldGutter.options,O=k-1,_=w.foldOption(A,"minFoldSize"),M=w.foldOption(A,"rangeFinder"),j=typeof A.indicatorFolded=="string"&&d(A.indicatorFolded),P=typeof A.indicatorOpen=="string"&&d(A.indicatorOpen);w.eachLine(k,N,function(F){++O;var V=null,$=F.gutterMarkers;if($&&($=$[A.gutter]),l(w,O)){if(j&&$&&j.test($.className))return;V=c(A.indicatorFolded)}else{var K=r(O,0),ee=M&&M(w,K);if(ee&&ee.to.line-ee.from.line>=_){if(P&&$&&P.test($.className))return;V=c(A.indicatorOpen)}}!V&&!$||w.setGutterMarker(F,A.gutter,V)})}Li(p,"updateFoldInfo");function d(w){return new RegExp("(^|\\s)"+w+"(?:$|\\s)\\s*")}Li(d,"classTest");function m(w){var k=w.getViewport(),N=w.state.foldGutter;N&&(w.operation(function(){p(w,k.from,k.to)}),N.from=k.from,N.to=k.to)}Li(m,"updateInViewport");function E(w,k,N){var A=w.state.foldGutter;if(A){var O=A.options;if(N==O.gutter){var _=l(w,k);_?_.clear():w.foldCode(r(k,0),O)}}}Li(E,"onGutterClick");function b(w){var k=w.state.foldGutter;if(k){var N=k.options;k.from=k.to=0,clearTimeout(k.changeUpdate),k.changeUpdate=setTimeout(function(){m(w)},N.foldOnChangeTimeSpan||600)}}Li(b,"onChange");function y(w){var k=w.state.foldGutter;if(k){var N=k.options;clearTimeout(k.changeUpdate),k.changeUpdate=setTimeout(function(){var A=w.getViewport();k.from==k.to||A.from-k.to>20||k.from-A.to>20?m(w):w.operation(function(){A.from<k.from&&(p(w,A.from,k.from),k.from=A.from),A.to>k.to&&(p(w,k.to,A.to),k.to=A.to)})},N.updateViewportTimeSpan||400)}}Li(y,"onViewportChange");function x(w,k){var N=w.state.foldGutter;if(N){var A=k.line;A>=N.from&&A<N.to&&p(w,A,A+1)}}Li(x,"onFold")})}();var Y4=rre.exports;const W4=Object.freeze(Object.defineProperty({__proto__:null,f:z4({__proto__:null,default:po(Y4)},[Y4])},Symbol.toStringTag,{value:"Module"}));var ore=Object.defineProperty,Br=(e,t)=>ore(e,"name",{value:t,configurable:!0});function Q4(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"}))}Br(Q4,"_mergeNamespaces");var are={exports:{}};(function(e,t){(function(n){n(Ki())})(function(n){var r="CodeMirror-lint-markers",i="CodeMirror-lint-line-";function o(P,F,V){var $=document.createElement("div");$.className="CodeMirror-lint-tooltip cm-s-"+P.options.theme,$.appendChild(V.cloneNode(!0)),P.state.lint.options.selfContain?P.getWrapperElement().appendChild($):document.body.appendChild($);function K(ee){if(!$.parentNode)return n.off(document,"mousemove",K);$.style.top=Math.max(0,ee.clientY-$.offsetHeight-5)+"px",$.style.left=ee.clientX+5+"px"}return Br(K,"position"),n.on(document,"mousemove",K),K(F),$.style.opacity!=null&&($.style.opacity=1),$}Br(o,"showTooltip");function l(P){P.parentNode&&P.parentNode.removeChild(P)}Br(l,"rm");function c(P){P.parentNode&&(P.style.opacity==null&&l(P),P.style.opacity=0,setTimeout(function(){l(P)},600))}Br(c,"hideTooltip");function p(P,F,V,$){var K=o(P,F,V);function ee(){n.off($,"mouseout",ee),K&&(c(K),K=null)}Br(ee,"hide");var J=setInterval(function(){if(K)for(var W=$;;W=W.parentNode){if(W&&W.nodeType==11&&(W=W.host),W==document.body)return;if(!W){ee();break}}if(!K)return clearInterval(J)},400);n.on($,"mouseout",ee)}Br(p,"showTooltipFor");function d(P,F,V){this.marked=[],F instanceof Function&&(F={getAnnotations:F}),(!F||F===!0)&&(F={}),this.options={},this.linterOptions=F.options||{};for(var $ in m)this.options[$]=m[$];for(var $ in F)m.hasOwnProperty($)?F[$]!=null&&(this.options[$]=F[$]):F.options||(this.linterOptions[$]=F[$]);this.timeout=null,this.hasGutter=V,this.onMouseOver=function(K){j(P,K)},this.waitingFor=0}Br(d,"LintState");var m={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function E(P){var F=P.state.lint;F.hasGutter&&P.clearGutter(r),F.options.highlightLines&&b(P);for(var V=0;V<F.marked.length;++V)F.marked[V].clear();F.marked.length=0}Br(E,"clearMarks");function b(P){P.eachLine(function(F){var V=F.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(F.wrapClass);V&&P.removeLineClass(F,"wrap",V[0])})}Br(b,"clearErrorLines");function y(P,F,V,$,K){var ee=document.createElement("div"),J=ee;return ee.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+V,$&&(J=ee.appendChild(document.createElement("div")),J.className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),K!=!1&&n.on(J,"mouseover",function(W){p(P,W,F,J)}),ee}Br(y,"makeMarker");function x(P,F){return P=="error"?P:F}Br(x,"getMaxSeverity");function w(P){for(var F=[],V=0;V<P.length;++V){var $=P[V],K=$.from.line;(F[K]||(F[K]=[])).push($)}return F}Br(w,"groupByLine");function k(P){var F=P.severity;F||(F="error");var V=document.createElement("div");return V.className="CodeMirror-lint-message CodeMirror-lint-message-"+F,typeof P.messageHTML<"u"?V.innerHTML=P.messageHTML:V.appendChild(document.createTextNode(P.message)),V}Br(k,"annotationTooltip");function N(P,F){var V=P.state.lint,$=++V.waitingFor;function K(){$=-1,P.off("change",K)}Br(K,"abort"),P.on("change",K),F(P.getValue(),function(ee,J){P.off("change",K),V.waitingFor==$&&(J&&ee instanceof n&&(ee=J),P.operation(function(){O(P,ee)}))},V.linterOptions,P)}Br(N,"lintAsync");function A(P){var F=P.state.lint;if(F){var V=F.options,$=V.getAnnotations||P.getHelper(n.Pos(0,0),"lint");if($)if(V.async||$.async)N(P,$);else{var K=$(P.getValue(),F.linterOptions,P);if(!K)return;K.then?K.then(function(ee){P.operation(function(){O(P,ee)})}):P.operation(function(){O(P,K)})}}}Br(A,"startLinting");function O(P,F){var V=P.state.lint;if(V){var $=V.options;E(P);for(var K=w(F),ee=0;ee<K.length;++ee){var J=K[ee];if(J){var W=[];J=J.filter(function(Z){return W.indexOf(Z.message)>-1?!1:W.push(Z.message)});for(var q=null,te=V.hasGutter&&document.createDocumentFragment(),re=0;re<J.length;++re){var ae=J[re],fe=ae.severity;fe||(fe="error"),q=x(q,fe),$.formatAnnotation&&(ae=$.formatAnnotation(ae)),V.hasGutter&&te.appendChild(k(ae)),ae.to&&V.marked.push(P.markText(ae.from,ae.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+fe,__annotation:ae}))}V.hasGutter&&P.setGutterMarker(ee,r,y(P,te,q,K[ee].length>1,$.tooltips)),$.highlightLines&&P.addLineClass(ee,"wrap",i+q)}}$.onUpdateLinting&&$.onUpdateLinting(F,K,P)}}Br(O,"updateLinting");function _(P){var F=P.state.lint;F&&(clearTimeout(F.timeout),F.timeout=setTimeout(function(){A(P)},F.options.delay))}Br(_,"onChange");function M(P,F,V){for(var $=V.target||V.srcElement,K=document.createDocumentFragment(),ee=0;ee<F.length;ee++){var J=F[ee];K.appendChild(k(J))}p(P,V,K,$)}Br(M,"popupTooltips");function j(P,F){var V=F.target||F.srcElement;if(/\bCodeMirror-lint-mark-/.test(V.className)){for(var $=V.getBoundingClientRect(),K=($.left+$.right)/2,ee=($.top+$.bottom)/2,J=P.findMarksAt(P.coordsChar({left:K,top:ee},"client")),W=[],q=0;q<J.length;++q){var te=J[q].__annotation;te&&W.push(te)}W.length&&M(P,W,F)}}Br(j,"onMouseOver"),n.defineOption("lint",!1,function(P,F,V){if(V&&V!=n.Init&&(E(P),P.state.lint.options.lintOnChange!==!1&&P.off("change",_),n.off(P.getWrapperElement(),"mouseover",P.state.lint.onMouseOver),clearTimeout(P.state.lint.timeout),delete P.state.lint),F){for(var $=P.getOption("gutters"),K=!1,ee=0;ee<$.length;++ee)$[ee]==r&&(K=!0);var J=P.state.lint=new d(P,F,K);J.options.lintOnChange&&P.on("change",_),J.options.tooltips!=!1&&J.options.tooltips!="gutter"&&n.on(P.getWrapperElement(),"mouseover",J.onMouseOver),A(P)}}),n.defineExtension("performLint",function(){A(this)})})})();var K4=are.exports;const sre=Object.freeze(Object.defineProperty({__proto__:null,l:Q4({__proto__:null,default:po(K4)},[K4])},Symbol.toStringTag,{value:"Module"}));var lre=Object.defineProperty,Ii=(e,t)=>lre(e,"name",{value:t,configurable:!0}),ure={exports:{}},X4;function r1(){return X4||(X4=1,function(e,t){(function(n){n(Ki())})(function(n){var r=n.Pos;function i(A){var O=A.flags;return O??(A.ignoreCase?"i":"")+(A.global?"g":"")+(A.multiline?"m":"")}Ii(i,"regexpFlags");function o(A,O){for(var _=i(A),M=_,j=0;j<O.length;j++)M.indexOf(O.charAt(j))==-1&&(M+=O.charAt(j));return _==M?A:new RegExp(A.source,M)}Ii(o,"ensureFlags");function l(A){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(A.source)}Ii(l,"maybeMultiline");function c(A,O,_){O=o(O,"g");for(var M=_.line,j=_.ch,P=A.lastLine();M<=P;M++,j=0){O.lastIndex=j;var F=A.getLine(M),V=O.exec(F);if(V)return{from:r(M,V.index),to:r(M,V.index+V[0].length),match:V}}}Ii(c,"searchRegexpForward");function p(A,O,_){if(!l(O))return c(A,O,_);O=o(O,"gm");for(var M,j=1,P=_.line,F=A.lastLine();P<=F;){for(var V=0;V<j&&!(P>F);V++){var $=A.getLine(P++);M=M==null?$:M+`
`+$}j=j*2,O.lastIndex=_.ch;var K=O.exec(M);if(K){var ee=M.slice(0,K.index).split(`
`),J=K[0].split(`
`),W=_.line+ee.length-1,q=ee[ee.length-1].length;return{from:r(W,q),to:r(W+J.length-1,J.length==1?q+J[0].length:J[J.length-1].length),match:K}}}}Ii(p,"searchRegexpForwardMultiline");function d(A,O,_){for(var M,j=0;j<=A.length;){O.lastIndex=j;var P=O.exec(A);if(!P)break;var F=P.index+P[0].length;if(F>A.length-_)break;(!M||F>M.index+M[0].length)&&(M=P),j=P.index+1}return M}Ii(d,"lastMatchIn");function m(A,O,_){O=o(O,"g");for(var M=_.line,j=_.ch,P=A.firstLine();M>=P;M--,j=-1){var F=A.getLine(M),V=d(F,O,j<0?0:F.length-j);if(V)return{from:r(M,V.index),to:r(M,V.index+V[0].length),match:V}}}Ii(m,"searchRegexpBackward");function E(A,O,_){if(!l(O))return m(A,O,_);O=o(O,"gm");for(var M,j=1,P=A.getLine(_.line).length-_.ch,F=_.line,V=A.firstLine();F>=V;){for(var $=0;$<j&&F>=V;$++){var K=A.getLine(F--);M=M==null?K:K+`
`+M}j*=2;var ee=d(M,O,P);if(ee){var J=M.slice(0,ee.index).split(`
`),W=ee[0].split(`
`),q=F+J.length,te=J[J.length-1].length;return{from:r(q,te),to:r(q+W.length-1,W.length==1?te+W[0].length:W[W.length-1].length),match:ee}}}}Ii(E,"searchRegexpBackwardMultiline");var b,y;String.prototype.normalize?(b=Ii(function(A){return A.normalize("NFD").toLowerCase()},"doFold"),y=Ii(function(A){return A.normalize("NFD")},"noFold")):(b=Ii(function(A){return A.toLowerCase()},"doFold"),y=Ii(function(A){return A},"noFold"));function x(A,O,_,M){if(A.length==O.length)return _;for(var j=0,P=_+Math.max(0,A.length-O.length);;){if(j==P)return j;var F=j+P>>1,V=M(A.slice(0,F)).length;if(V==_)return F;V>_?P=F:j=F+1}}Ii(x,"adjustPos");function w(A,O,_,M){if(!O.length)return null;var j=M?b:y,P=j(O).split(/\r|\n\r?/);e:for(var F=_.line,V=_.ch,$=A.lastLine()+1-P.length;F<=$;F++,V=0){var K=A.getLine(F).slice(V),ee=j(K);if(P.length==1){var J=ee.indexOf(P[0]);if(J==-1)continue e;var _=x(K,ee,J,j)+V;return{from:r(F,x(K,ee,J,j)+V),to:r(F,x(K,ee,J+P[0].length,j)+V)}}else{var W=ee.length-P[0].length;if(ee.slice(W)!=P[0])continue e;for(var q=1;q<P.length-1;q++)if(j(A.getLine(F+q))!=P[q])continue e;var te=A.getLine(F+P.length-1),re=j(te),ae=P[P.length-1];if(re.slice(0,ae.length)!=ae)continue e;return{from:r(F,x(K,ee,W,j)+V),to:r(F+P.length-1,x(te,re,ae.length,j))}}}}Ii(w,"searchStringForward");function k(A,O,_,M){if(!O.length)return null;var j=M?b:y,P=j(O).split(/\r|\n\r?/);e:for(var F=_.line,V=_.ch,$=A.firstLine()-1+P.length;F>=$;F--,V=-1){var K=A.getLine(F);V>-1&&(K=K.slice(0,V));var ee=j(K);if(P.length==1){var J=ee.lastIndexOf(P[0]);if(J==-1)continue e;return{from:r(F,x(K,ee,J,j)),to:r(F,x(K,ee,J+P[0].length,j))}}else{var W=P[P.length-1];if(ee.slice(0,W.length)!=W)continue e;for(var q=1,_=F-P.length+1;q<P.length-1;q++)if(j(A.getLine(_+q))!=P[q])continue e;var te=A.getLine(F+1-P.length),re=j(te);if(re.slice(re.length-P[0].length)!=P[0])continue e;return{from:r(F+1-P.length,x(te,re,te.length-P[0].length,j)),to:r(F,x(K,ee,W.length,j))}}}}Ii(k,"searchStringBackward");function N(A,O,_,M){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=A,_=_?A.clipPos(_):r(0,0),this.pos={from:_,to:_};var j;typeof M=="object"?j=M.caseFold:(j=M,M=null),typeof O=="string"?(j==null&&(j=!1),this.matches=function(P,F){return(P?k:w)(A,O,F,j)}):(O=o(O,"gm"),!M||M.multiline!==!1?this.matches=function(P,F){return(P?E:p)(A,O,F)}:this.matches=function(P,F){return(P?m:c)(A,O,F)})}Ii(N,"SearchCursor"),N.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(A){var O=this.doc.clipPos(A?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(O=r(O.line,O.ch),A?(O.ch--,O.ch<0&&(O.line--,O.ch=(this.doc.getLine(O.line)||"").length)):(O.ch++,O.ch>(this.doc.getLine(O.line)||"").length&&(O.ch=0,O.line++)),n.cmpPos(O,this.doc.clipPos(O))!=0))return this.atOccurrence=!1;var _=this.matches(A,O);if(this.afterEmptyMatch=_&&n.cmpPos(_.from,_.to)==0,_)return this.pos=_,this.atOccurrence=!0,this.pos.match||!0;var M=r(A?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:M,to:M},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(A,O){if(this.atOccurrence){var _=n.splitLines(A);this.doc.replaceRange(_,this.pos.from,this.pos.to,O),this.pos.to=r(this.pos.from.line+_.length-1,_[_.length-1].length+(_.length==1?this.pos.from.ch:0))}}},n.defineExtension("getSearchCursor",function(A,O,_){return new N(this.doc,A,O,_)}),n.defineDocExtension("getSearchCursor",function(A,O,_){return new N(this,A,O,_)}),n.defineExtension("selectMatches",function(A,O){for(var _=[],M=this.getSearchCursor(A,this.getCursor("from"),O);M.findNext()&&!(n.cmpPos(M.to(),this.getCursor("to"))>0);)_.push({anchor:M.from(),head:M.to()});_.length&&this.setSelections(_,0)})})}()),ure.exports}Ii(r1,"requireSearchcursor");var cre=Object.defineProperty,fre=(e,t)=>cre(e,"name",{value:t,configurable:!0});function Z4(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"}))}fre(Z4,"_mergeNamespaces");var J4=r1();const eP=Object.freeze(Object.defineProperty({__proto__:null,s:Z4({__proto__:null,default:po(J4)},[J4])},Symbol.toStringTag,{value:"Module"}));var dre=Object.defineProperty,Mp=(e,t)=>dre(e,"name",{value:t,configurable:!0});function tP(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"}))}Mp(tP,"_mergeNamespaces");var pre={exports:{}};(function(e,t){(function(n){n(Ki())})(function(n){function r(o,l,c){var p=o.getWrapperElement(),d;return d=p.appendChild(document.createElement("div")),c?d.className="CodeMirror-dialog CodeMirror-dialog-bottom":d.className="CodeMirror-dialog CodeMirror-dialog-top",typeof l=="string"?d.innerHTML=l:d.appendChild(l),n.addClass(p,"dialog-opened"),d}Mp(r,"dialogDiv");function i(o,l){o.state.currentNotificationClose&&o.state.currentNotificationClose(),o.state.currentNotificationClose=l}Mp(i,"closeNotification"),n.defineExtension("openDialog",function(o,l,c){c||(c={}),i(this,null);var p=r(this,o,c.bottom),d=!1,m=this;function E(x){if(typeof x=="string")b.value=x;else{if(d)return;d=!0,n.rmClass(p.parentNode,"dialog-opened"),p.parentNode.removeChild(p),m.focus(),c.onClose&&c.onClose(p)}}Mp(E,"close");var b=p.getElementsByTagName("input")[0],y;return b?(b.focus(),c.value&&(b.value=c.value,c.selectValueOnOpen!==!1&&b.select()),c.onInput&&n.on(b,"input",function(x){c.onInput(x,b.value,E)}),c.onKeyUp&&n.on(b,"keyup",function(x){c.onKeyUp(x,b.value,E)}),n.on(b,"keydown",function(x){c&&c.onKeyDown&&c.onKeyDown(x,b.value,E)||((x.keyCode==27||c.closeOnEnter!==!1&&x.keyCode==13)&&(b.blur(),n.e_stop(x),E()),x.keyCode==13&&l(b.value,x))}),c.closeOnBlur!==!1&&n.on(p,"focusout",function(x){x.relatedTarget!==null&&E()})):(y=p.getElementsByTagName("button")[0])&&(n.on(y,"click",function(){E(),m.focus()}),c.closeOnBlur!==!1&&n.on(y,"blur",E),y.focus()),E}),n.defineExtension("openConfirm",function(o,l,c){i(this,null);var p=r(this,o,c&&c.bottom),d=p.getElementsByTagName("button"),m=!1,E=this,b=1;function y(){m||(m=!0,n.rmClass(p.parentNode,"dialog-opened"),p.parentNode.removeChild(p),E.focus())}Mp(y,"close"),d[0].focus();for(var x=0;x<d.length;++x){var w=d[x];(function(k){n.on(w,"click",function(N){n.e_preventDefault(N),y(),k&&k(E)})})(l[x]),n.on(w,"blur",function(){--b,setTimeout(function(){b<=0&&y()},200)}),n.on(w,"focus",function(){++b})}}),n.defineExtension("openNotification",function(o,l){i(this,E);var c=r(this,o,l&&l.bottom),p=!1,d,m=l&&typeof l.duration<"u"?l.duration:5e3;function E(){p||(p=!0,clearTimeout(d),n.rmClass(c.parentNode,"dialog-opened"),c.parentNode.removeChild(c))}return Mp(E,"close"),n.on(c,"click",function(b){n.e_preventDefault(b),E()}),m&&(d=setTimeout(E,m)),E})})})();var Cg=pre.exports;const nP=Object.freeze(Object.defineProperty({__proto__:null,a:Cg,d:tP({__proto__:null,default:po(Cg)},[Cg])},Symbol.toStringTag,{value:"Module"}));var hre=Object.defineProperty,i1=(e,t)=>hre(e,"name",{value:t,configurable:!0});function rP(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"}))}i1(rP,"_mergeNamespaces");var mre={exports:{}};(function(e,t){(function(n){n(Ki(),Cg)})(function(n){n.defineOption("search",{bottom:!1});function r(l,c,p,d,m){l.openDialog?l.openDialog(c,m,{value:d,selectValueOnOpen:!0,bottom:l.options.search.bottom}):m(prompt(p,d))}i1(r,"dialog");function i(l){return l.phrase("Jump to line:")+' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+l.phrase("(Use line:column or scroll% syntax)")+"</span>"}i1(i,"getJumpDialog");function o(l,c){var p=Number(c);return/^[-+]/.test(c)?l.getCursor().line+p:p-1}i1(o,"interpretLine"),n.commands.jumpToLine=function(l){var c=l.getCursor();r(l,i(l),l.phrase("Jump to line:"),c.line+1+":"+c.ch,function(p){if(p){var d;if(d=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(p))l.setCursor(o(l,d[1]),Number(d[2]));else if(d=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(p)){var m=Math.round(l.lineCount()*Number(d[1])/100);/^[-+]/.test(d[1])&&(m=c.line+m+1),l.setCursor(m-1,c.ch)}else(d=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(p))&&l.setCursor(o(l,d[1]),c.ch)}})},n.keyMap.default["Alt-G"]="jumpToLine"})})();var iP=mre.exports;const oP=Object.freeze(Object.defineProperty({__proto__:null,j:rP({__proto__:null,default:po(iP)},[iP])},Symbol.toStringTag,{value:"Module"}));var gre=Object.defineProperty,Xo=(e,t)=>gre(e,"name",{value:t,configurable:!0});function aP(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"}))}Xo(aP,"_mergeNamespaces");var vre={exports:{}};(function(e,t){(function(n){n(Ki(),r1(),WC())})(function(n){var r=n.commands,i=n.Pos;function o(_,M,j){if(j<0&&M.ch==0)return _.clipPos(i(M.line-1));var P=_.getLine(M.line);if(j>0&&M.ch>=P.length)return _.clipPos(i(M.line+1,0));for(var F="start",V,$=M.ch,K=$,ee=j<0?0:P.length,J=0;K!=ee;K+=j,J++){var W=P.charAt(j<0?K-1:K),q=W!="_"&&n.isWordChar(W)?"w":"o";if(q=="w"&&W.toUpperCase()==W&&(q="W"),F=="start")q!="o"?(F="in",V=q):$=K+j;else if(F=="in"&&V!=q){if(V=="w"&&q=="W"&&j<0&&K--,V=="W"&&q=="w"&&j>0)if(K==$+1){V="w";continue}else K--;break}}return i(M.line,K)}Xo(o,"findPosSubword");function l(_,M){_.extendSelectionsBy(function(j){return _.display.shift||_.doc.extend||j.empty()?o(_.doc,j.head,M):M<0?j.from():j.to()})}Xo(l,"moveSubword"),r.goSubwordLeft=function(_){l(_,-1)},r.goSubwordRight=function(_){l(_,1)},r.scrollLineUp=function(_){var M=_.getScrollInfo();if(!_.somethingSelected()){var j=_.lineAtHeight(M.top+M.clientHeight,"local");_.getCursor().line>=j&&_.execCommand("goLineUp")}_.scrollTo(null,M.top-_.defaultTextHeight())},r.scrollLineDown=function(_){var M=_.getScrollInfo();if(!_.somethingSelected()){var j=_.lineAtHeight(M.top,"local")+1;_.getCursor().line<=j&&_.execCommand("goLineDown")}_.scrollTo(null,M.top+_.defaultTextHeight())},r.splitSelectionByLine=function(_){for(var M=_.listSelections(),j=[],P=0;P<M.length;P++)for(var F=M[P].from(),V=M[P].to(),$=F.line;$<=V.line;++$)V.line>F.line&&$==V.line&&V.ch==0||j.push({anchor:$==F.line?F:i($,0),head:$==V.line?V:i($)});_.setSelections(j,0)},r.singleSelectionTop=function(_){var M=_.listSelections()[0];_.setSelection(M.anchor,M.head,{scroll:!1})},r.selectLine=function(_){for(var M=_.listSelections(),j=[],P=0;P<M.length;P++){var F=M[P];j.push({anchor:i(F.from().line,0),head:i(F.to().line+1,0)})}_.setSelections(j)};function c(_,M){if(_.isReadOnly())return n.Pass;_.operation(function(){for(var j=_.listSelections().length,P=[],F=-1,V=0;V<j;V++){var $=_.listSelections()[V].head;if(!($.line<=F)){var K=i($.line+(M?0:1),0);_.replaceRange(`
`,K,null,"+insertLine"),_.indentLine(K.line,null,!0),P.push({head:K,anchor:K}),F=$.line+1}}_.setSelections(P)}),_.execCommand("indentAuto")}Xo(c,"insertLine"),r.insertLineAfter=function(_){return c(_,!1)},r.insertLineBefore=function(_){return c(_,!0)};function p(_,M){for(var j=M.ch,P=j,F=_.getLine(M.line);j&&n.isWordChar(F.charAt(j-1));)--j;for(;P<F.length&&n.isWordChar(F.charAt(P));)++P;return{from:i(M.line,j),to:i(M.line,P),word:F.slice(j,P)}}Xo(p,"wordAt"),r.selectNextOccurrence=function(_){var M=_.getCursor("from"),j=_.getCursor("to"),P=_.state.sublimeFindFullWord==_.doc.sel;if(n.cmpPos(M,j)==0){var F=p(_,M);if(!F.word)return;_.setSelection(F.from,F.to),P=!0}else{var V=_.getRange(M,j),$=P?new RegExp("\\b"+V+"\\b"):V,K=_.getSearchCursor($,j),ee=K.findNext();if(ee||(K=_.getSearchCursor($,i(_.firstLine(),0)),ee=K.findNext()),!ee||m(_.listSelections(),K.from(),K.to()))return;_.addSelection(K.from(),K.to())}P&&(_.state.sublimeFindFullWord=_.doc.sel)},r.skipAndSelectNextOccurrence=function(_){var M=_.getCursor("anchor"),j=_.getCursor("head");r.selectNextOccurrence(_),n.cmpPos(M,j)!=0&&_.doc.setSelections(_.doc.listSelections().filter(function(P){return P.anchor!=M||P.head!=j}))};function d(_,M){for(var j=_.listSelections(),P=[],F=0;F<j.length;F++){var V=j[F],$=_.findPosV(V.anchor,M,"line",V.anchor.goalColumn),K=_.findPosV(V.head,M,"line",V.head.goalColumn);$.goalColumn=V.anchor.goalColumn!=null?V.anchor.goalColumn:_.cursorCoords(V.anchor,"div").left,K.goalColumn=V.head.goalColumn!=null?V.head.goalColumn:_.cursorCoords(V.head,"div").left;var ee={anchor:$,head:K};P.push(V),P.push(ee)}_.setSelections(P)}Xo(d,"addCursorToSelection"),r.addCursorToPrevLine=function(_){d(_,-1)},r.addCursorToNextLine=function(_){d(_,1)};function m(_,M,j){for(var P=0;P<_.length;P++)if(n.cmpPos(_[P].from(),M)==0&&n.cmpPos(_[P].to(),j)==0)return!0;return!1}Xo(m,"isSelectedRange");var E="(){}[]";function b(_){for(var M=_.listSelections(),j=[],P=0;P<M.length;P++){var F=M[P],V=F.head,$=_.scanForBracket(V,-1);if(!$)return!1;for(;;){var K=_.scanForBracket(V,1);if(!K)return!1;if(K.ch==E.charAt(E.indexOf($.ch)+1)){var ee=i($.pos.line,$.pos.ch+1);if(n.cmpPos(ee,F.from())==0&&n.cmpPos(K.pos,F.to())==0){if($=_.scanForBracket($.pos,-1),!$)return!1}else{j.push({anchor:ee,head:K.pos});break}}V=i(K.pos.line,K.pos.ch+1)}}return _.setSelections(j),!0}Xo(b,"selectBetweenBrackets"),r.selectScope=function(_){b(_)||_.execCommand("selectAll")},r.selectBetweenBrackets=function(_){if(!b(_))return n.Pass};function y(_){return _?/\bpunctuation\b/.test(_)?_:void 0:null}Xo(y,"puncType"),r.goToBracket=function(_){_.extendSelectionsBy(function(M){var j=_.scanForBracket(M.head,1,y(_.getTokenTypeAt(M.head)));if(j&&n.cmpPos(j.pos,M.head)!=0)return j.pos;var P=_.scanForBracket(M.head,-1,y(_.getTokenTypeAt(i(M.head.line,M.head.ch+1))));return P&&i(P.pos.line,P.pos.ch+1)||M.head})},r.swapLineUp=function(_){if(_.isReadOnly())return n.Pass;for(var M=_.listSelections(),j=[],P=_.firstLine()-1,F=[],V=0;V<M.length;V++){var $=M[V],K=$.from().line-1,ee=$.to().line;F.push({anchor:i($.anchor.line-1,$.anchor.ch),head:i($.head.line-1,$.head.ch)}),$.to().ch==0&&!$.empty()&&--ee,K>P?j.push(K,ee):j.length&&(j[j.length-1]=ee),P=ee}_.operation(function(){for(var J=0;J<j.length;J+=2){var W=j[J],q=j[J+1],te=_.getLine(W);_.replaceRange("",i(W,0),i(W+1,0),"+swapLine"),q>_.lastLine()?_.replaceRange(`
`+te,i(_.lastLine()),null,"+swapLine"):_.replaceRange(te+`
`,i(q,0),null,"+swapLine")}_.setSelections(F),_.scrollIntoView()})},r.swapLineDown=function(_){if(_.isReadOnly())return n.Pass;for(var M=_.listSelections(),j=[],P=_.lastLine()+1,F=M.length-1;F>=0;F--){var V=M[F],$=V.to().line+1,K=V.from().line;V.to().ch==0&&!V.empty()&&$--,$<P?j.push($,K):j.length&&(j[j.length-1]=K),P=K}_.operation(function(){for(var ee=j.length-2;ee>=0;ee-=2){var J=j[ee],W=j[ee+1],q=_.getLine(J);J==_.lastLine()?_.replaceRange("",i(J-1),i(J),"+swapLine"):_.replaceRange("",i(J,0),i(J+1,0),"+swapLine"),_.replaceRange(q+`
`,i(W,0),null,"+swapLine")}_.scrollIntoView()})},r.toggleCommentIndented=function(_){_.toggleComment({indent:!0})},r.joinLines=function(_){for(var M=_.listSelections(),j=[],P=0;P<M.length;P++){for(var F=M[P],V=F.from(),$=V.line,K=F.to().line;P<M.length-1&&M[P+1].from().line==K;)K=M[++P].to().line;j.push({start:$,end:K,anchor:!F.empty()&&V})}_.operation(function(){for(var ee=0,J=[],W=0;W<j.length;W++){for(var q=j[W],te=q.anchor&&i(q.anchor.line-ee,q.anchor.ch),re,ae=q.start;ae<=q.end;ae++){var fe=ae-ee;ae==q.end&&(re=i(fe,_.getLine(fe).length+1)),fe<_.lastLine()&&(_.replaceRange(" ",i(fe),i(fe+1,/^\s*/.exec(_.getLine(fe+1))[0].length)),++ee)}J.push({anchor:te||re,head:re})}_.setSelections(J,0)})},r.duplicateLine=function(_){_.operation(function(){for(var M=_.listSelections().length,j=0;j<M;j++){var P=_.listSelections()[j];P.empty()?_.replaceRange(_.getLine(P.head.line)+`
`,i(P.head.line,0)):_.replaceRange(_.getRange(P.from(),P.to()),P.from())}_.scrollIntoView()})};function x(_,M,j){if(_.isReadOnly())return n.Pass;for(var P=_.listSelections(),F=[],V,$=0;$<P.length;$++){var K=P[$];if(!K.empty()){for(var ee=K.from().line,J=K.to().line;$<P.length-1&&P[$+1].from().line==J;)J=P[++$].to().line;P[$].to().ch||J--,F.push(ee,J)}}F.length?V=!0:F.push(_.firstLine(),_.lastLine()),_.operation(function(){for(var W=[],q=0;q<F.length;q+=2){var te=F[q],re=F[q+1],ae=i(te,0),fe=i(re),Z=_.getRange(ae,fe,!1);M?Z.sort(function(he,se){return he<se?-j:he==se?0:j}):Z.sort(function(he,se){var pe=he.toUpperCase(),ce=se.toUpperCase();return pe!=ce&&(he=pe,se=ce),he<se?-j:he==se?0:j}),_.replaceRange(Z,ae,fe),V&&W.push({anchor:ae,head:i(re+1,0)})}V&&_.setSelections(W,0)})}Xo(x,"sortLines"),r.sortLines=function(_){x(_,!0,1)},r.reverseSortLines=function(_){x(_,!0,-1)},r.sortLinesInsensitive=function(_){x(_,!1,1)},r.reverseSortLinesInsensitive=function(_){x(_,!1,-1)},r.nextBookmark=function(_){var M=_.state.sublimeBookmarks;if(M)for(;M.length;){var j=M.shift(),P=j.find();if(P)return M.push(j),_.setSelection(P.from,P.to)}},r.prevBookmark=function(_){var M=_.state.sublimeBookmarks;if(M)for(;M.length;){M.unshift(M.pop());var j=M[M.length-1].find();if(!j)M.pop();else return _.setSelection(j.from,j.to)}},r.toggleBookmark=function(_){for(var M=_.listSelections(),j=_.state.sublimeBookmarks||(_.state.sublimeBookmarks=[]),P=0;P<M.length;P++){for(var F=M[P].from(),V=M[P].to(),$=M[P].empty()?_.findMarksAt(F):_.findMarks(F,V),K=0;K<$.length;K++)if($[K].sublimeBookmark){$[K].clear();for(var ee=0;ee<j.length;ee++)j[ee]==$[K]&&j.splice(ee--,1);break}K==$.length&&j.push(_.markText(F,V,{sublimeBookmark:!0,clearWhenEmpty:!1}))}},r.clearBookmarks=function(_){var M=_.state.sublimeBookmarks;if(M)for(var j=0;j<M.length;j++)M[j].clear();M.length=0},r.selectBookmarks=function(_){var M=_.state.sublimeBookmarks,j=[];if(M)for(var P=0;P<M.length;P++){var F=M[P].find();F?j.push({anchor:F.from,head:F.to}):M.splice(P--,0)}j.length&&_.setSelections(j,0)};function w(_,M){_.operation(function(){for(var j=_.listSelections(),P=[],F=[],V=0;V<j.length;V++){var $=j[V];$.empty()?(P.push(V),F.push("")):F.push(M(_.getRange($.from(),$.to())))}_.replaceSelections(F,"around","case");for(var V=P.length-1,K;V>=0;V--){var $=j[P[V]];if(!(K&&n.cmpPos($.head,K)>0)){var ee=p(_,$.head);K=ee.from,_.replaceRange(M(ee.word),ee.from,ee.to)}}})}Xo(w,"modifyWordOrSelection"),r.smartBackspace=function(_){if(_.somethingSelected())return n.Pass;_.operation(function(){for(var M=_.listSelections(),j=_.getOption("indentUnit"),P=M.length-1;P>=0;P--){var F=M[P].head,V=_.getRange({line:F.line,ch:0},F),$=n.countColumn(V,null,_.getOption("tabSize")),K=_.findPosH(F,-1,"char",!1);if(V&&!/\S/.test(V)&&$%j==0){var ee=new i(F.line,n.findColumn(V,$-j,j));ee.ch!=F.ch&&(K=ee)}_.replaceRange("",K,F,"+delete")}})},r.delLineRight=function(_){_.operation(function(){for(var M=_.listSelections(),j=M.length-1;j>=0;j--)_.replaceRange("",M[j].anchor,i(M[j].to().line),"+delete");_.scrollIntoView()})},r.upcaseAtCursor=function(_){w(_,function(M){return M.toUpperCase()})},r.downcaseAtCursor=function(_){w(_,function(M){return M.toLowerCase()})},r.setSublimeMark=function(_){_.state.sublimeMark&&_.state.sublimeMark.clear(),_.state.sublimeMark=_.setBookmark(_.getCursor())},r.selectToSublimeMark=function(_){var M=_.state.sublimeMark&&_.state.sublimeMark.find();M&&_.setSelection(_.getCursor(),M)},r.deleteToSublimeMark=function(_){var M=_.state.sublimeMark&&_.state.sublimeMark.find();if(M){var j=_.getCursor(),P=M;if(n.cmpPos(j,P)>0){var F=P;P=j,j=F}_.state.sublimeKilled=_.getRange(j,P),_.replaceRange("",j,P)}},r.swapWithSublimeMark=function(_){var M=_.state.sublimeMark&&_.state.sublimeMark.find();M&&(_.state.sublimeMark.clear(),_.state.sublimeMark=_.setBookmark(_.getCursor()),_.setCursor(M))},r.sublimeYank=function(_){_.state.sublimeKilled!=null&&_.replaceSelection(_.state.sublimeKilled,null,"paste")},r.showInCenter=function(_){var M=_.cursorCoords(null,"local");_.scrollTo(null,(M.top+M.bottom)/2-_.getScrollInfo().clientHeight/2)};function k(_){var M=_.getCursor("from"),j=_.getCursor("to");if(n.cmpPos(M,j)==0){var P=p(_,M);if(!P.word)return;M=P.from,j=P.to}return{from:M,to:j,query:_.getRange(M,j),word:P}}Xo(k,"getTarget");function N(_,M){var j=k(_);if(j){var P=j.query,F=_.getSearchCursor(P,M?j.to:j.from);(M?F.findNext():F.findPrevious())?_.setSelection(F.from(),F.to()):(F=_.getSearchCursor(P,M?i(_.firstLine(),0):_.clipPos(i(_.lastLine()))),(M?F.findNext():F.findPrevious())?_.setSelection(F.from(),F.to()):j.word&&_.setSelection(j.from,j.to))}}Xo(N,"findAndGoTo"),r.findUnder=function(_){N(_,!0)},r.findUnderPrevious=function(_){N(_,!1)},r.findAllUnder=function(_){var M=k(_);if(M){for(var j=_.getSearchCursor(M.query),P=[],F=-1;j.findNext();)P.push({anchor:j.from(),head:j.to()}),j.from().line<=M.from.line&&j.from().ch<=M.from.ch&&F++;_.setSelections(P,F)}};var A=n.keyMap;A.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Shift-F5":"reverseSortLines","Cmd-F5":"sortLinesInsensitive","Shift-Cmd-F5":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},n.normalizeKeyMap(A.macSublime),A.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Shift-F9":"reverseSortLines","Ctrl-F9":"sortLinesInsensitive","Shift-Ctrl-F9":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},n.normalizeKeyMap(A.pcSublime);var O=A.default==A.macDefault;A.sublime=O?A.macSublime:A.pcSublime})})();var sP=vre.exports;const lP=Object.freeze(Object.defineProperty({__proto__:null,s:aP({__proto__:null,default:po(sP)},[sP])},Symbol.toStringTag,{value:"Module"}));var yre=Object.defineProperty,Ze=(e,t)=>yre(e,"name",{value:t,configurable:!0});function uP(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"}))}Ze(uP,"_mergeNamespaces");var bre={exports:{}};(function(e,t){(function(n){n(Ki())})(function(n){n.defineMode("javascript",function(r,i){var o=r.indentUnit,l=i.statementIndent,c=i.jsonld,p=i.json||c,d=i.trackScope!==!1,m=i.typescript,E=i.wordCharacters||/[\w$\xa1-\uffff]/,b=function(){function Q(Nr){return{type:Nr,style:"keyword"}}Ze(Q,"kw");var ue=Q("keyword a"),Ie=Q("keyword b"),Qe=Q("keyword c"),St=Q("keyword d"),en=Q("operator"),st={type:"atom",style:"atom"};return{if:Q("if"),while:ue,with:ue,else:Ie,do:Ie,try:Ie,finally:Ie,return:St,break:St,continue:St,new:Q("new"),delete:Qe,void:Qe,throw:Qe,debugger:Q("debugger"),var:Q("var"),const:Q("var"),let:Q("var"),function:Q("function"),catch:Q("catch"),for:Q("for"),switch:Q("switch"),case:Q("case"),default:Q("default"),in:en,typeof:en,instanceof:en,true:st,false:st,null:st,undefined:st,NaN:st,Infinity:st,this:Q("this"),class:Q("class"),super:Q("atom"),yield:Qe,export:Q("export"),import:Q("import"),extends:Qe,await:Qe}}(),y=/[+\-*&%=<>!?|~^@]/,x=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function w(Q){for(var ue=!1,Ie,Qe=!1;(Ie=Q.next())!=null;){if(!ue){if(Ie=="/"&&!Qe)return;Ie=="["?Qe=!0:Qe&&Ie=="]"&&(Qe=!1)}ue=!ue&&Ie=="\\"}}Ze(w,"readRegexp");var k,N;function A(Q,ue,Ie){return k=Q,N=Ie,ue}Ze(A,"ret");function O(Q,ue){var Ie=Q.next();if(Ie=='"'||Ie=="'")return ue.tokenize=_(Ie),ue.tokenize(Q,ue);if(Ie=="."&&Q.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return A("number","number");if(Ie=="."&&Q.match(".."))return A("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(Ie))return A(Ie);if(Ie=="="&&Q.eat(">"))return A("=>","operator");if(Ie=="0"&&Q.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return A("number","number");if(/\d/.test(Ie))return Q.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),A("number","number");if(Ie=="/")return Q.eat("*")?(ue.tokenize=M,M(Q,ue)):Q.eat("/")?(Q.skipToEnd(),A("comment","comment")):ze(Q,ue,1)?(w(Q),Q.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),A("regexp","string-2")):(Q.eat("="),A("operator","operator",Q.current()));if(Ie=="`")return ue.tokenize=j,j(Q,ue);if(Ie=="#"&&Q.peek()=="!")return Q.skipToEnd(),A("meta","meta");if(Ie=="#"&&Q.eatWhile(E))return A("variable","property");if(Ie=="<"&&Q.match("!--")||Ie=="-"&&Q.match("->")&&!/\S/.test(Q.string.slice(0,Q.start)))return Q.skipToEnd(),A("comment","comment");if(y.test(Ie))return(Ie!=">"||!ue.lexical||ue.lexical.type!=">")&&(Q.eat("=")?(Ie=="!"||Ie=="=")&&Q.eat("="):/[<>*+\-|&?]/.test(Ie)&&(Q.eat(Ie),Ie==">"&&Q.eat(Ie))),Ie=="?"&&Q.eat(".")?A("."):A("operator","operator",Q.current());if(E.test(Ie)){Q.eatWhile(E);var Qe=Q.current();if(ue.lastType!="."){if(b.propertyIsEnumerable(Qe)){var St=b[Qe];return A(St.type,St.style,Qe)}if(Qe=="async"&&Q.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return A("async","keyword",Qe)}return A("variable","variable",Qe)}}Ze(O,"tokenBase");function _(Q){return function(ue,Ie){var Qe=!1,St;if(c&&ue.peek()=="@"&&ue.match(x))return Ie.tokenize=O,A("jsonld-keyword","meta");for(;(St=ue.next())!=null&&!(St==Q&&!Qe);)Qe=!Qe&&St=="\\";return Qe||(Ie.tokenize=O),A("string","string")}}Ze(_,"tokenString");function M(Q,ue){for(var Ie=!1,Qe;Qe=Q.next();){if(Qe=="/"&&Ie){ue.tokenize=O;break}Ie=Qe=="*"}return A("comment","comment")}Ze(M,"tokenComment");function j(Q,ue){for(var Ie=!1,Qe;(Qe=Q.next())!=null;){if(!Ie&&(Qe=="`"||Qe=="$"&&Q.eat("{"))){ue.tokenize=O;break}Ie=!Ie&&Qe=="\\"}return A("quasi","string-2",Q.current())}Ze(j,"tokenQuasi");var P="([{}])";function F(Q,ue){ue.fatArrowAt&&(ue.fatArrowAt=null);var Ie=Q.string.indexOf("=>",Q.start);if(!(Ie<0)){if(m){var Qe=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(Q.string.slice(Q.start,Ie));Qe&&(Ie=Qe.index)}for(var St=0,en=!1,st=Ie-1;st>=0;--st){var Nr=Q.string.charAt(st),Vi=P.indexOf(Nr);if(Vi>=0&&Vi<3){if(!St){++st;break}if(--St==0){Nr=="("&&(en=!0);break}}else if(Vi>=3&&Vi<6)++St;else if(E.test(Nr))en=!0;else if(/["'\/`]/.test(Nr))for(;;--st){if(st==0)return;var Ss=Q.string.charAt(st-1);if(Ss==Nr&&Q.string.charAt(st-2)!="\\"){st--;break}}else if(en&&!St){++st;break}}en&&!St&&(ue.fatArrowAt=st)}}Ze(F,"findFatArrow");var V={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function $(Q,ue,Ie,Qe,St,en){this.indented=Q,this.column=ue,this.type=Ie,this.prev=St,this.info=en,Qe!=null&&(this.align=Qe)}Ze($,"JSLexical");function K(Q,ue){if(!d)return!1;for(var Ie=Q.localVars;Ie;Ie=Ie.next)if(Ie.name==ue)return!0;for(var Qe=Q.context;Qe;Qe=Qe.prev)for(var Ie=Qe.vars;Ie;Ie=Ie.next)if(Ie.name==ue)return!0}Ze(K,"inScope");function ee(Q,ue,Ie,Qe,St){var en=Q.cc;for(J.state=Q,J.stream=St,J.marked=null,J.cc=en,J.style=ue,Q.lexical.hasOwnProperty("align")||(Q.lexical.align=!0);;){var st=en.length?en.pop():p?gt:Ye;if(st(Ie,Qe)){for(;en.length&&en[en.length-1].lex;)en.pop()();return J.marked?J.marked:Ie=="variable"&&K(Q,Qe)?"variable-2":ue}}}Ze(ee,"parseJS");var J={state:null,marked:null,cc:null};function W(){for(var Q=arguments.length-1;Q>=0;Q--)J.cc.push(arguments[Q])}Ze(W,"pass");function q(){return W.apply(null,arguments),!0}Ze(q,"cont");function te(Q,ue){for(var Ie=ue;Ie;Ie=Ie.next)if(Ie.name==Q)return!0;return!1}Ze(te,"inList");function re(Q){var ue=J.state;if(J.marked="def",!!d){if(ue.context){if(ue.lexical.info=="var"&&ue.context&&ue.context.block){var Ie=ae(Q,ue.context);if(Ie!=null){ue.context=Ie;return}}else if(!te(Q,ue.localVars)){ue.localVars=new he(Q,ue.localVars);return}}i.globalVars&&!te(Q,ue.globalVars)&&(ue.globalVars=new he(Q,ue.globalVars))}}Ze(re,"register");function ae(Q,ue){if(ue)if(ue.block){var Ie=ae(Q,ue.prev);return Ie?Ie==ue.prev?ue:new Z(Ie,ue.vars,!0):null}else return te(Q,ue.vars)?ue:new Z(ue.prev,new he(Q,ue.vars),!1);else return null}Ze(ae,"registerVarScoped");function fe(Q){return Q=="public"||Q=="private"||Q=="protected"||Q=="abstract"||Q=="readonly"}Ze(fe,"isModifier");function Z(Q,ue,Ie){this.prev=Q,this.vars=ue,this.block=Ie}Ze(Z,"Context");function he(Q,ue){this.name=Q,this.next=ue}Ze(he,"Var");var se=new he("this",new he("arguments",null));function pe(){J.state.context=new Z(J.state.context,J.state.localVars,!1),J.state.localVars=se}Ze(pe,"pushcontext");function ce(){J.state.context=new Z(J.state.context,J.state.localVars,!0),J.state.localVars=null}Ze(ce,"pushblockcontext"),pe.lex=ce.lex=!0;function me(){J.state.localVars=J.state.context.vars,J.state.context=J.state.context.prev}Ze(me,"popcontext"),me.lex=!0;function Se(Q,ue){var Ie=Ze(function(){var Qe=J.state,St=Qe.indented;if(Qe.lexical.type=="stat")St=Qe.lexical.indented;else for(var en=Qe.lexical;en&&en.type==")"&&en.align;en=en.prev)St=en.indented;Qe.lexical=new $(St,J.stream.column(),Q,null,Qe.lexical,ue)},"result");return Ie.lex=!0,Ie}Ze(Se,"pushlex");function je(){var Q=J.state;Q.lexical.prev&&(Q.lexical.type==")"&&(Q.indented=Q.lexical.indented),Q.lexical=Q.lexical.prev)}Ze(je,"poplex"),je.lex=!0;function Ge(Q){function ue(Ie){return Ie==Q?q():Q==";"||Ie=="}"||Ie==")"||Ie=="]"?W():q(ue)}return Ze(ue,"exp"),ue}Ze(Ge,"expect");function Ye(Q,ue){return Q=="var"?q(Se("vardef",ue),nr,Ge(";"),je):Q=="keyword a"?q(Se("form"),Oe,Ye,je):Q=="keyword b"?q(Se("form"),Ye,je):Q=="keyword d"?J.stream.match(/^\s*$/,!1)?q():q(Se("stat"),Le,Ge(";"),je):Q=="debugger"?q(Ge(";")):Q=="{"?q(Se("}"),ce,Vt,je,me):Q==";"?q():Q=="if"?(J.state.lexical.info=="else"&&J.state.cc[J.state.cc.length-1]==je&&J.state.cc.pop()(),q(Se("form"),Oe,Ye,je,Jo)):Q=="function"?q($n):Q=="for"?q(Se("form"),ce,ea,Ye,me,je):Q=="class"||m&&ue=="interface"?(J.marked="keyword",q(Se("form",Q=="class"?Q:ue),ho,je)):Q=="variable"?m&&ue=="declare"?(J.marked="keyword",q(Ye)):m&&(ue=="module"||ue=="enum"||ue=="type")&&J.stream.match(/^\s*\w/,!1)?(J.marked="keyword",ue=="enum"?q(Fr):ue=="type"?q(Pi,Ge("operator"),mt,Ge(";")):q(Se("form"),Ft,Ge("{"),Se("}"),Vt,je,je)):m&&ue=="namespace"?(J.marked="keyword",q(Se("form"),gt,Ye,je)):m&&ue=="abstract"?(J.marked="keyword",q(Ye)):q(Se("stat"),ht):Q=="switch"?q(Se("form"),Oe,Ge("{"),Se("}","switch"),ce,Vt,je,je,me):Q=="case"?q(gt,Ge(":")):Q=="default"?q(Ge(":")):Q=="catch"?q(Se("form"),pe,Ot,Ye,je,me):Q=="export"?q(Se("stat"),mo,je):Q=="import"?q(Se("stat"),rr,je):Q=="async"?q(Ye):ue=="@"?q(gt,Ye):W(Se("stat"),gt,Ge(";"),je)}Ze(Ye,"statement");function Ot(Q){if(Q=="(")return q(zr,Ge(")"))}Ze(Ot,"maybeCatchBinding");function gt(Q,ue){return ye(Q,ue,!1)}Ze(gt,"expression");function ot(Q,ue){return ye(Q,ue,!0)}Ze(ot,"expressionNoComma");function Oe(Q){return Q!="("?W():q(Se(")"),Le,Ge(")"),je)}Ze(Oe,"parenExpr");function ye(Q,ue,Ie){if(J.state.fatArrowAt==J.stream.start){var Qe=Ie?We:ct;if(Q=="(")return q(pe,Se(")"),pt(zr,")"),je,Ge("=>"),Qe,me);if(Q=="variable")return W(pe,Ft,Ge("=>"),Qe,me)}var St=Ie?oe:be;return V.hasOwnProperty(Q)?q(St):Q=="function"?q($n,St):Q=="class"||m&&ue=="interface"?(J.marked="keyword",q(Se("form"),Do,je)):Q=="keyword c"||Q=="async"?q(Ie?ot:gt):Q=="("?q(Se(")"),Le,Ge(")"),je,St):Q=="operator"||Q=="spread"?q(Ie?ot:gt):Q=="["?q(Se("]"),sn,je,St):Q=="{"?Wt(jt,"}",null,St):Q=="quasi"?W(Fe,St):Q=="new"?q(xe(Ie)):q()}Ze(ye,"expressionInner");function Le(Q){return Q.match(/[;\}\)\],]/)?W():W(gt)}Ze(Le,"maybeexpression");function be(Q,ue){return Q==","?q(Le):oe(Q,ue,!1)}Ze(be,"maybeoperatorComma");function oe(Q,ue,Ie){var Qe=Ie==!1?be:oe,St=Ie==!1?gt:ot;if(Q=="=>")return q(pe,Ie?We:ct,me);if(Q=="operator")return/\+\+|--/.test(ue)||m&&ue=="!"?q(Qe):m&&ue=="<"&&J.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?q(Se(">"),pt(mt,">"),je,Qe):ue=="?"?q(gt,Ge(":"),St):q(St);if(Q=="quasi")return W(Fe,Qe);if(Q!=";"){if(Q=="(")return Wt(ot,")","call",Qe);if(Q==".")return q(Dt,Qe);if(Q=="[")return q(Se("]"),Le,Ge("]"),je,Qe);if(m&&ue=="as")return J.marked="keyword",q(mt,Qe);if(Q=="regexp")return J.state.lastType=J.marked="operator",J.stream.backUp(J.stream.pos-J.stream.start-1),q(St)}}Ze(oe,"maybeoperatorNoComma");function Fe(Q,ue){return Q!="quasi"?W():ue.slice(ue.length-2)!="${"?q(Fe):q(Le,Je)}Ze(Fe,"quasi");function Je(Q){if(Q=="}")return J.marked="string-2",J.state.tokenize=j,q(Fe)}Ze(Je,"continueQuasi");function ct(Q){return F(J.stream,J.state),W(Q=="{"?Ye:gt)}Ze(ct,"arrowBody");function We(Q){return F(J.stream,J.state),W(Q=="{"?Ye:ot)}Ze(We,"arrowBodyNoComma");function xe(Q){return function(ue){return ue=="."?q(Q?nt:$e):ue=="variable"&&m?q(Bt,Q?oe:be):W(Q?ot:gt)}}Ze(xe,"maybeTarget");function $e(Q,ue){if(ue=="target")return J.marked="keyword",q(be)}Ze($e,"target");function nt(Q,ue){if(ue=="target")return J.marked="keyword",q(oe)}Ze(nt,"targetNoComma");function ht(Q){return Q==":"?q(je,Ye):W(be,Ge(";"),je)}Ze(ht,"maybelabel");function Dt(Q){if(Q=="variable")return J.marked="property",q()}Ze(Dt,"property");function jt(Q,ue){if(Q=="async")return J.marked="property",q(jt);if(Q=="variable"||J.style=="keyword"){if(J.marked="property",ue=="get"||ue=="set")return q(dt);var Ie;return m&&J.state.fatArrowAt==J.stream.start&&(Ie=J.stream.match(/^\s*:\s*/,!1))&&(J.state.fatArrowAt=J.stream.pos+Ie[0].length),q(Et)}else{if(Q=="number"||Q=="string")return J.marked=c?"property":J.style+" property",q(Et);if(Q=="jsonld-keyword")return q(Et);if(m&&fe(ue))return J.marked="keyword",q(jt);if(Q=="[")return q(gt,Jt,Ge("]"),Et);if(Q=="spread")return q(ot,Et);if(ue=="*")return J.marked="keyword",q(jt);if(Q==":")return W(Et)}}Ze(jt,"objprop");function dt(Q){return Q!="variable"?W(Et):(J.marked="property",q($n))}Ze(dt,"getterSetter");function Et(Q){if(Q==":")return q(ot);if(Q=="(")return W($n)}Ze(Et,"afterprop");function pt(Q,ue,Ie){function Qe(St,en){if(Ie?Ie.indexOf(St)>-1:St==","){var st=J.state.lexical;return st.info=="call"&&(st.pos=(st.pos||0)+1),q(function(Nr,Vi){return Nr==ue||Vi==ue?W():W(Q)},Qe)}return St==ue||en==ue?q():Ie&&Ie.indexOf(";")>-1?W(Q):q(Ge(ue))}return Ze(Qe,"proceed"),function(St,en){return St==ue||en==ue?q():W(Q,Qe)}}Ze(pt,"commasep");function Wt(Q,ue,Ie){for(var Qe=3;Qe<arguments.length;Qe++)J.cc.push(arguments[Qe]);return q(Se(ue,Ie),pt(Q,ue),je)}Ze(Wt,"contCommasep");function Vt(Q){return Q=="}"?q():W(Ye,Vt)}Ze(Vt,"block");function Jt(Q,ue){if(m){if(Q==":")return q(mt);if(ue=="?")return q(Jt)}}Ze(Jt,"maybetype");function at(Q,ue){if(m&&(Q==":"||ue=="in"))return q(mt)}Ze(at,"maybetypeOrIn");function Bn(Q){if(m&&Q==":")return J.stream.match(/^\s*\w+\s+is\b/,!1)?q(gt,yn,mt):q(mt)}Ze(Bn,"mayberettype");function yn(Q,ue){if(ue=="is")return J.marked="keyword",q()}Ze(yn,"isKW");function mt(Q,ue){if(ue=="keyof"||ue=="typeof"||ue=="infer"||ue=="readonly")return J.marked="keyword",q(ue=="typeof"?ot:mt);if(Q=="variable"||ue=="void")return J.marked="type",q(wt);if(ue=="|"||ue=="&")return q(mt);if(Q=="string"||Q=="number"||Q=="atom")return q(wt);if(Q=="[")return q(Se("]"),pt(mt,"]",","),je,wt);if(Q=="{")return q(Se("}"),pi,je,wt);if(Q=="(")return q(pt(Zi,")"),bn,wt);if(Q=="<")return q(pt(mt,">"),mt);if(Q=="quasi")return W(Lr,wt)}Ze(mt,"typeexpr");function bn(Q){if(Q=="=>")return q(mt)}Ze(bn,"maybeReturnType");function pi(Q){return Q.match(/[\}\)\]]/)?q():Q==","||Q==";"?q(pi):W(an,pi)}Ze(pi,"typeprops");function an(Q,ue){if(Q=="variable"||J.style=="keyword")return J.marked="property",q(an);if(ue=="?"||Q=="number"||Q=="string")return q(an);if(Q==":")return q(mt);if(Q=="[")return q(Ge("variable"),at,Ge("]"),an);if(Q=="(")return W(Ir,an);if(!Q.match(/[;\}\)\],]/))return q()}Ze(an,"typeprop");function Lr(Q,ue){return Q!="quasi"?W():ue.slice(ue.length-2)!="${"?q(Lr):q(mt,On)}Ze(Lr,"quasiType");function On(Q){if(Q=="}")return J.marked="string-2",J.state.tokenize=j,q(Lr)}Ze(On,"continueQuasiType");function Zi(Q,ue){return Q=="variable"&&J.stream.match(/^\s*[?:]/,!1)||ue=="?"?q(Zi):Q==":"?q(mt):Q=="spread"?q(Zi):W(mt)}Ze(Zi,"typearg");function wt(Q,ue){if(ue=="<")return q(Se(">"),pt(mt,">"),je,wt);if(ue=="|"||Q=="."||ue=="&")return q(mt);if(Q=="[")return q(mt,Ge("]"),wt);if(ue=="extends"||ue=="implements")return J.marked="keyword",q(mt);if(ue=="?")return q(mt,Ge(":"),mt)}Ze(wt,"afterType");function Bt(Q,ue){if(ue=="<")return q(Se(">"),pt(mt,">"),je,wt)}Ze(Bt,"maybeTypeArgs");function cn(){return W(mt,Rn)}Ze(cn,"typeparam");function Rn(Q,ue){if(ue=="=")return q(mt)}Ze(Rn,"maybeTypeDefault");function nr(Q,ue){return ue=="enum"?(J.marked="keyword",q(Fr)):W(Ft,Jt,En,Fi)}Ze(nr,"vardef");function Ft(Q,ue){if(m&&fe(ue))return J.marked="keyword",q(Ft);if(Q=="variable")return re(ue),q();if(Q=="spread")return q(Ft);if(Q=="[")return Wt(Gt,"]");if(Q=="{")return Wt(fn,"}")}Ze(Ft,"pattern");function fn(Q,ue){return Q=="variable"&&!J.stream.match(/^\s*:/,!1)?(re(ue),q(En)):(Q=="variable"&&(J.marked="property"),Q=="spread"?q(Ft):Q=="}"?W():Q=="["?q(gt,Ge("]"),Ge(":"),fn):q(Ge(":"),Ft,En))}Ze(fn,"proppattern");function Gt(){return W(Ft,En)}Ze(Gt,"eltpattern");function En(Q,ue){if(ue=="=")return q(ot)}Ze(En,"maybeAssign");function Fi(Q){if(Q==",")return q(nr)}Ze(Fi,"vardefCont");function Jo(Q,ue){if(Q=="keyword b"&&ue=="else")return q(Se("form","else"),Ye,je)}Ze(Jo,"maybeelse");function ea(Q,ue){if(ue=="await")return q(ea);if(Q=="(")return q(Se(")"),Oo,je)}Ze(ea,"forspec");function Oo(Q){return Q=="var"?q(nr,Tr):Q=="variable"?q(Tr):W(Tr)}Ze(Oo,"forspec1");function Tr(Q,ue){return Q==")"?q():Q==";"?q(Tr):ue=="in"||ue=="of"?(J.marked="keyword",q(gt,Tr)):W(gt,Tr)}Ze(Tr,"forspec2");function $n(Q,ue){if(ue=="*")return J.marked="keyword",q($n);if(Q=="variable")return re(ue),q($n);if(Q=="(")return q(pe,Se(")"),pt(zr,")"),je,Bn,Ye,me);if(m&&ue=="<")return q(Se(">"),pt(cn,">"),je,$n)}Ze($n,"functiondef");function Ir(Q,ue){if(ue=="*")return J.marked="keyword",q(Ir);if(Q=="variable")return re(ue),q(Ir);if(Q=="(")return q(pe,Se(")"),pt(zr,")"),je,Bn,me);if(m&&ue=="<")return q(Se(">"),pt(cn,">"),je,Ir)}Ze(Ir,"functiondecl");function Pi(Q,ue){if(Q=="keyword"||Q=="variable")return J.marked="type",q(Pi);if(ue=="<")return q(Se(">"),pt(cn,">"),je)}Ze(Pi,"typename");function zr(Q,ue){return ue=="@"&&q(gt,zr),Q=="spread"?q(zr):m&&fe(ue)?(J.marked="keyword",q(zr)):m&&Q=="this"?q(Jt,En):W(Ft,Jt,En)}Ze(zr,"funarg");function Do(Q,ue){return Q=="variable"?ho(Q,ue):Mn(Q,ue)}Ze(Do,"classExpression");function ho(Q,ue){if(Q=="variable")return re(ue),q(Mn)}Ze(ho,"className");function Mn(Q,ue){if(ue=="<")return q(Se(">"),pt(cn,">"),je,Mn);if(ue=="extends"||ue=="implements"||m&&Q==",")return ue=="implements"&&(J.marked="keyword"),q(m?mt:gt,Mn);if(Q=="{")return q(Se("}"),Ji,je)}Ze(Mn,"classNameAfter");function Ji(Q,ue){if(Q=="async"||Q=="variable"&&(ue=="static"||ue=="get"||ue=="set"||m&&fe(ue))&&J.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return J.marked="keyword",q(Ji);if(Q=="variable"||J.style=="keyword")return J.marked="property",q(ji,Ji);if(Q=="number"||Q=="string")return q(ji,Ji);if(Q=="[")return q(gt,Jt,Ge("]"),ji,Ji);if(ue=="*")return J.marked="keyword",q(Ji);if(m&&Q=="(")return W(Ir,Ji);if(Q==";"||Q==",")return q(Ji);if(Q=="}")return q();if(ue=="@")return q(gt,Ji)}Ze(Ji,"classBody");function ji(Q,ue){if(ue=="!"||ue=="?")return q(ji);if(Q==":")return q(mt,En);if(ue=="=")return q(ot);var Ie=J.state.lexical.prev,Qe=Ie&&Ie.info=="interface";return W(Qe?Ir:$n)}Ze(ji,"classfield");function mo(Q,ue){return ue=="*"?(J.marked="keyword",q(Hr,Ge(";"))):ue=="default"?(J.marked="keyword",q(gt,Ge(";"))):Q=="{"?q(pt(ko,"}"),Hr,Ge(";")):W(Ye)}Ze(mo,"afterExport");function ko(Q,ue){if(ue=="as")return J.marked="keyword",q(Ge("variable"));if(Q=="variable")return W(ot,ko)}Ze(ko,"exportField");function rr(Q){return Q=="string"?q():Q=="("?W(gt):Q=="."?W(be):W(ft,go,Hr)}Ze(rr,"afterImport");function ft(Q,ue){return Q=="{"?Wt(ft,"}"):(Q=="variable"&&re(ue),ue=="*"&&(J.marked="keyword"),q(Kl))}Ze(ft,"importSpec");function go(Q){if(Q==",")return q(ft,go)}Ze(go,"maybeMoreImports");function Kl(Q,ue){if(ue=="as")return J.marked="keyword",q(ft)}Ze(Kl,"maybeAs");function Hr(Q,ue){if(ue=="from")return J.marked="keyword",q(gt)}Ze(Hr,"maybeFrom");function sn(Q){return Q=="]"?q():W(pt(ot,"]"))}Ze(sn,"arrayLiteral");function Fr(){return W(Se("form"),Ft,Ge("{"),Se("}"),pt(ta,"}"),je,je)}Ze(Fr,"enumdef");function ta(){return W(Ft,En)}Ze(ta,"enummember");function rl(Q,ue){return Q.lastType=="operator"||Q.lastType==","||y.test(ue.charAt(0))||/[,.]/.test(ue.charAt(0))}Ze(rl,"isContinuedStatement");function ze(Q,ue,Ie){return ue.tokenize==O&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(ue.lastType)||ue.lastType=="quasi"&&/\{\s*$/.test(Q.string.slice(0,Q.pos-(Ie||0)))}return Ze(ze,"expressionAllowed"),{startState:function(Q){var ue={tokenize:O,lastType:"sof",cc:[],lexical:new $((Q||0)-o,0,"block",!1),localVars:i.localVars,context:i.localVars&&new Z(null,null,!1),indented:Q||0};return i.globalVars&&typeof i.globalVars=="object"&&(ue.globalVars=i.globalVars),ue},token:function(Q,ue){if(Q.sol()&&(ue.lexical.hasOwnProperty("align")||(ue.lexical.align=!1),ue.indented=Q.indentation(),F(Q,ue)),ue.tokenize!=M&&Q.eatSpace())return null;var Ie=ue.tokenize(Q,ue);return k=="comment"?Ie:(ue.lastType=k=="operator"&&(N=="++"||N=="--")?"incdec":k,ee(ue,Ie,k,N,Q))},indent:function(Q,ue){if(Q.tokenize==M||Q.tokenize==j)return n.Pass;if(Q.tokenize!=O)return 0;var Ie=ue&&ue.charAt(0),Qe=Q.lexical,St;if(!/^\s*else\b/.test(ue))for(var en=Q.cc.length-1;en>=0;--en){var st=Q.cc[en];if(st==je)Qe=Qe.prev;else if(st!=Jo&&st!=me)break}for(;(Qe.type=="stat"||Qe.type=="form")&&(Ie=="}"||(St=Q.cc[Q.cc.length-1])&&(St==be||St==oe)&&!/^[,\.=+\-*:?[\(]/.test(ue));)Qe=Qe.prev;l&&Qe.type==")"&&Qe.prev.type=="stat"&&(Qe=Qe.prev);var Nr=Qe.type,Vi=Ie==Nr;return Nr=="vardef"?Qe.indented+(Q.lastType=="operator"||Q.lastType==","?Qe.info.length+1:0):Nr=="form"&&Ie=="{"?Qe.indented:Nr=="form"?Qe.indented+o:Nr=="stat"?Qe.indented+(rl(Q,ue)?l||o:0):Qe.info=="switch"&&!Vi&&i.doubleIndentSwitch!=!1?Qe.indented+(/^(?:case|default)\b/.test(ue)?o:2*o):Qe.align?Qe.column+(Vi?0:1):Qe.indented+(Vi?0:o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:p?null:"/*",blockCommentEnd:p?null:"*/",blockCommentContinue:p?null:" * ",lineComment:p?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:p?"json":"javascript",jsonldMode:c,jsonMode:p,expressionAllowed:ze,skipExpression:function(Q){ee(Q,"atom","atom","true",new n.StringStream("",2,null))}}}),n.registerHelper("wordChars","javascript",/[\w$]/),n.defineMIME("text/javascript","javascript"),n.defineMIME("text/ecmascript","javascript"),n.defineMIME("application/javascript","javascript"),n.defineMIME("application/x-javascript","javascript"),n.defineMIME("application/ecmascript","javascript"),n.defineMIME("application/json",{name:"javascript",json:!0}),n.defineMIME("application/x-json",{name:"javascript",json:!0}),n.defineMIME("application/manifest+json",{name:"javascript",json:!0}),n.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),n.defineMIME("text/typescript",{name:"javascript",typescript:!0}),n.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})();var cP=bre.exports;const Ere=Object.freeze(Object.defineProperty({__proto__:null,j:uP({__proto__:null,default:po(cP)},[cP])},Symbol.toStringTag,{value:"Module"}));var Sre=Object.defineProperty,o1=(e,t)=>Sre(e,"name",{value:t,configurable:!0});function fP(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"}))}o1(fP,"_mergeNamespaces");var Tre={exports:{}};(function(e,t){(function(n){n(Ki())})(function(n){var r={},i=/[^\s\u00a0]/,o=n.Pos,l=n.cmpPos;function c(m){var E=m.search(i);return E==-1?0:E}o1(c,"firstNonWS"),n.commands.toggleComment=function(m){m.toggleComment()},n.defineExtension("toggleComment",function(m){m||(m=r);for(var E=this,b=1/0,y=this.listSelections(),x=null,w=y.length-1;w>=0;w--){var k=y[w].from(),N=y[w].to();k.line>=b||(N.line>=b&&(N=o(b,0)),b=k.line,x==null?E.uncomment(k,N,m)?x="un":(E.lineComment(k,N,m),x="line"):x=="un"?E.uncomment(k,N,m):E.lineComment(k,N,m))}});function p(m,E,b){return/\bstring\b/.test(m.getTokenTypeAt(o(E.line,0)))&&!/^[\'\"\`]/.test(b)}o1(p,"probablyInsideString");function d(m,E){var b=m.getMode();return b.useInnerComments===!1||!b.innerMode?b:m.getModeAt(E)}o1(d,"getMode"),n.defineExtension("lineComment",function(m,E,b){b||(b=r);var y=this,x=d(y,m),w=y.getLine(m.line);if(!(w==null||p(y,m,w))){var k=b.lineComment||x.lineComment;if(!k){(b.blockCommentStart||x.blockCommentStart)&&(b.fullLines=!0,y.blockComment(m,E,b));return}var N=Math.min(E.ch!=0||E.line==m.line?E.line+1:E.line,y.lastLine()+1),A=b.padding==null?" ":b.padding,O=b.commentBlankLines||m.line==E.line;y.operation(function(){if(b.indent){for(var _=null,M=m.line;M<N;++M){var j=y.getLine(M),P=j.slice(0,c(j));(_==null||_.length>P.length)&&(_=P)}for(var M=m.line;M<N;++M){var j=y.getLine(M),F=_.length;!O&&!i.test(j)||(j.slice(0,F)!=_&&(F=c(j)),y.replaceRange(_+k+A,o(M,0),o(M,F)))}}else for(var M=m.line;M<N;++M)(O||i.test(y.getLine(M)))&&y.replaceRange(k+A,o(M,0))})}}),n.defineExtension("blockComment",function(m,E,b){b||(b=r);var y=this,x=d(y,m),w=b.blockCommentStart||x.blockCommentStart,k=b.blockCommentEnd||x.blockCommentEnd;if(!w||!k){(b.lineComment||x.lineComment)&&b.fullLines!=!1&&y.lineComment(m,E,b);return}if(!/\bcomment\b/.test(y.getTokenTypeAt(o(m.line,0)))){var N=Math.min(E.line,y.lastLine());N!=m.line&&E.ch==0&&i.test(y.getLine(N))&&--N;var A=b.padding==null?" ":b.padding;m.line>N||y.operation(function(){if(b.fullLines!=!1){var O=i.test(y.getLine(N));y.replaceRange(A+k,o(N)),y.replaceRange(w+A,o(m.line,0));var _=b.blockCommentLead||x.blockCommentLead;if(_!=null)for(var M=m.line+1;M<=N;++M)(M!=N||O)&&y.replaceRange(_+A,o(M,0))}else{var j=l(y.getCursor("to"),E)==0,P=!y.somethingSelected();y.replaceRange(k,E),j&&y.setSelection(P?E:y.getCursor("from"),E),y.replaceRange(w,m)}})}}),n.defineExtension("uncomment",function(m,E,b){b||(b=r);var y=this,x=d(y,m),w=Math.min(E.ch!=0||E.line==m.line?E.line:E.line-1,y.lastLine()),k=Math.min(m.line,w),N=b.lineComment||x.lineComment,A=[],O=b.padding==null?" ":b.padding,_;e:{if(!N)break e;for(var M=k;M<=w;++M){var j=y.getLine(M),P=j.indexOf(N);if(P>-1&&!/comment/.test(y.getTokenTypeAt(o(M,P+1)))&&(P=-1),P==-1&&i.test(j)||P>-1&&i.test(j.slice(0,P)))break e;A.push(j)}if(y.operation(function(){for(var Z=k;Z<=w;++Z){var he=A[Z-k],se=he.indexOf(N),pe=se+N.length;se<0||(he.slice(pe,pe+O.length)==O&&(pe+=O.length),_=!0,y.replaceRange("",o(Z,se),o(Z,pe)))}}),_)return!0}var F=b.blockCommentStart||x.blockCommentStart,V=b.blockCommentEnd||x.blockCommentEnd;if(!F||!V)return!1;var $=b.blockCommentLead||x.blockCommentLead,K=y.getLine(k),ee=K.indexOf(F);if(ee==-1)return!1;var J=w==k?K:y.getLine(w),W=J.indexOf(V,w==k?ee+F.length:0),q=o(k,ee+1),te=o(w,W+1);if(W==-1||!/comment/.test(y.getTokenTypeAt(q))||!/comment/.test(y.getTokenTypeAt(te))||y.getRange(q,te,`
`).indexOf(V)>-1)return!1;var re=K.lastIndexOf(F,m.ch),ae=re==-1?-1:K.slice(0,m.ch).indexOf(V,re+F.length);if(re!=-1&&ae!=-1&&ae+V.length!=m.ch)return!1;ae=J.indexOf(V,E.ch);var fe=J.slice(E.ch).lastIndexOf(F,ae-E.ch);return re=ae==-1||fe==-1?-1:E.ch+fe,ae!=-1&&re!=-1&&re!=E.ch?!1:(y.operation(function(){y.replaceRange("",o(w,W-(O&&J.slice(W-O.length,W)==O?O.length:0)),o(w,W+V.length));var Z=ee+F.length;if(O&&K.slice(Z,Z+O.length)==O&&(Z+=O.length),y.replaceRange("",o(k,ee),o(k,Z)),$)for(var he=k+1;he<=w;++he){var se=y.getLine(he),pe=se.indexOf($);if(!(pe==-1||i.test(se.slice(0,pe)))){var ce=pe+$.length;O&&se.slice(ce,ce+O.length)==O&&(ce+=O.length),y.replaceRange("",o(he,pe),o(he,ce))}}}),!0)})})})();var dP=Tre.exports;const xre=Object.freeze(Object.defineProperty({__proto__:null,c:fP({__proto__:null,default:po(dP)},[dP])},Symbol.toStringTag,{value:"Module"}));var wre=Object.defineProperty,dr=(e,t)=>wre(e,"name",{value:t,configurable:!0});function pP(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"}))}dr(pP,"_mergeNamespaces");var Cre={exports:{}};(function(e,t){(function(n){n(Ki(),r1(),Cg)})(function(n){n.defineOption("search",{bottom:!1});function r(F,V){return typeof F=="string"?F=new RegExp(F.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),V?"gi":"g"):F.global||(F=new RegExp(F.source,F.ignoreCase?"gi":"g")),{token:function($){F.lastIndex=$.pos;var K=F.exec($.string);if(K&&K.index==$.pos)return $.pos+=K[0].length||1,"searching";K?$.pos=K.index:$.skipToEnd()}}}dr(r,"searchOverlay");function i(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}dr(i,"SearchState");function o(F){return F.state.search||(F.state.search=new i)}dr(o,"getSearchState");function l(F){return typeof F=="string"&&F==F.toLowerCase()}dr(l,"queryCaseInsensitive");function c(F,V,$){return F.getSearchCursor(V,$,{caseFold:l(V),multiline:!0})}dr(c,"getSearchCursor");function p(F,V,$,K,ee){F.openDialog(V,K,{value:$,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){k(F)},onKeyDown:ee,bottom:F.options.search.bottom})}dr(p,"persistentDialog");function d(F,V,$,K,ee){F.openDialog?F.openDialog(V,ee,{value:K,selectValueOnOpen:!0,bottom:F.options.search.bottom}):ee(prompt($,K))}dr(d,"dialog");function m(F,V,$,K){F.openConfirm?F.openConfirm(V,K):confirm($)&&K[0]()}dr(m,"confirmDialog");function E(F){return F.replace(/\\([nrt\\])/g,function(V,$){return $=="n"?`
`:$=="r"?"\r":$=="t"?"	":$=="\\"?"\\":V})}dr(E,"parseString");function b(F){var V=F.match(/^\/(.*)\/([a-z]*)$/);if(V)try{F=new RegExp(V[1],V[2].indexOf("i")==-1?"":"i")}catch{}else F=E(F);return(typeof F=="string"?F=="":F.test(""))&&(F=/x^/),F}dr(b,"parseQuery");function y(F,V,$){V.queryText=$,V.query=b($),F.removeOverlay(V.overlay,l(V.query)),V.overlay=r(V.query,l(V.query)),F.addOverlay(V.overlay),F.showMatchesOnScrollbar&&(V.annotate&&(V.annotate.clear(),V.annotate=null),V.annotate=F.showMatchesOnScrollbar(V.query,l(V.query)))}dr(y,"startSearch");function x(F,V,$,K){var ee=o(F);if(ee.query)return w(F,V);var J=F.getSelection()||ee.lastQuery;if(J instanceof RegExp&&J.source=="x^"&&(J=null),$&&F.openDialog){var W=null,q=dr(function(te,re){n.e_stop(re),te&&(te!=ee.queryText&&(y(F,ee,te),ee.posFrom=ee.posTo=F.getCursor()),W&&(W.style.opacity=1),w(F,re.shiftKey,function(ae,fe){var Z;fe.line<3&&document.querySelector&&(Z=F.display.wrapper.querySelector(".CodeMirror-dialog"))&&Z.getBoundingClientRect().bottom-4>F.cursorCoords(fe,"window").top&&((W=Z).style.opacity=.4)}))},"searchNext");p(F,A(F),J,q,function(te,re){var ae=n.keyName(te),fe=F.getOption("extraKeys"),Z=fe&&fe[ae]||n.keyMap[F.getOption("keyMap")][ae];Z=="findNext"||Z=="findPrev"||Z=="findPersistentNext"||Z=="findPersistentPrev"?(n.e_stop(te),y(F,o(F),re),F.execCommand(Z)):(Z=="find"||Z=="findPersistent")&&(n.e_stop(te),q(re,te))}),K&&J&&(y(F,ee,J),w(F,V))}else d(F,A(F),"Search for:",J,function(te){te&&!ee.query&&F.operation(function(){y(F,ee,te),ee.posFrom=ee.posTo=F.getCursor(),w(F,V)})})}dr(x,"doSearch");function w(F,V,$){F.operation(function(){var K=o(F),ee=c(F,K.query,V?K.posFrom:K.posTo);!ee.find(V)&&(ee=c(F,K.query,V?n.Pos(F.lastLine()):n.Pos(F.firstLine(),0)),!ee.find(V))||(F.setSelection(ee.from(),ee.to()),F.scrollIntoView({from:ee.from(),to:ee.to()},20),K.posFrom=ee.from(),K.posTo=ee.to(),$&&$(ee.from(),ee.to()))})}dr(w,"findNext");function k(F){F.operation(function(){var V=o(F);V.lastQuery=V.query,V.query&&(V.query=V.queryText=null,F.removeOverlay(V.overlay),V.annotate&&(V.annotate.clear(),V.annotate=null))})}dr(k,"clearSearch");function N(F,V){var $=F?document.createElement(F):document.createDocumentFragment();for(var K in V)$[K]=V[K];for(var ee=2;ee<arguments.length;ee++){var J=arguments[ee];$.appendChild(typeof J=="string"?document.createTextNode(J):J)}return $}dr(N,"el");function A(F){return N("",null,N("span",{className:"CodeMirror-search-label"},F.phrase("Search:"))," ",N("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"})," ",N("span",{style:"color: #888",className:"CodeMirror-search-hint"},F.phrase("(Use /re/ syntax for regexp search)")))}dr(A,"getQueryDialog");function O(F){return N("",null," ",N("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"})," ",N("span",{style:"color: #888",className:"CodeMirror-search-hint"},F.phrase("(Use /re/ syntax for regexp search)")))}dr(O,"getReplaceQueryDialog");function _(F){return N("",null,N("span",{className:"CodeMirror-search-label"},F.phrase("With:"))," ",N("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"}))}dr(_,"getReplacementQueryDialog");function M(F){return N("",null,N("span",{className:"CodeMirror-search-label"},F.phrase("Replace?"))," ",N("button",{},F.phrase("Yes"))," ",N("button",{},F.phrase("No"))," ",N("button",{},F.phrase("All"))," ",N("button",{},F.phrase("Stop")))}dr(M,"getDoReplaceConfirm");function j(F,V,$){F.operation(function(){for(var K=c(F,V);K.findNext();)if(typeof V!="string"){var ee=F.getRange(K.from(),K.to()).match(V);K.replace($.replace(/\$(\d)/g,function(J,W){return ee[W]}))}else K.replace($)})}dr(j,"replaceAll");function P(F,V){if(!F.getOption("readOnly")){var $=F.getSelection()||o(F).lastQuery,K=V?F.phrase("Replace all:"):F.phrase("Replace:"),ee=N("",null,N("span",{className:"CodeMirror-search-label"},K),O(F));d(F,ee,K,$,function(J){J&&(J=b(J),d(F,_(F),F.phrase("Replace with:"),"",function(W){if(W=E(W),V)j(F,J,W);else{k(F);var q=c(F,J,F.getCursor("from")),te=dr(function(){var ae=q.from(),fe;!(fe=q.findNext())&&(q=c(F,J),!(fe=q.findNext())||ae&&q.from().line==ae.line&&q.from().ch==ae.ch)||(F.setSelection(q.from(),q.to()),F.scrollIntoView({from:q.from(),to:q.to()}),m(F,M(F),F.phrase("Replace?"),[function(){re(fe)},te,function(){j(F,J,W)}]))},"advance"),re=dr(function(ae){q.replace(typeof J=="string"?W:W.replace(/\$(\d)/g,function(fe,Z){return ae[Z]})),te()},"doReplace");te()}}))})}}dr(P,"replace"),n.commands.find=function(F){k(F),x(F)},n.commands.findPersistent=function(F){k(F),x(F,!1,!0)},n.commands.findPersistentNext=function(F){x(F,!1,!0,!0)},n.commands.findPersistentPrev=function(F){x(F,!0,!0,!0)},n.commands.findNext=x,n.commands.findPrev=function(F){x(F,!0)},n.commands.clearSearch=k,n.commands.replace=P,n.commands.replaceAll=function(F){P(F,!0)}})})();var hP=Cre.exports;const mP=Object.freeze(Object.defineProperty({__proto__:null,s:pP({__proto__:null,default:po(hP)},[hP])},Symbol.toStringTag,{value:"Module"}));qt.registerHelper("hint","graphql",(e,t)=>{const{schema:n,externalFragments:r}=t;if(!n)return;const i=e.getCursor(),o=e.getTokenAt(i),l=o.type!==null&&/"|\w/.test(o.string[0])?o.start:o.end,c=new Cf(i.line,l),p={list:A9(n,e.getValue(),c,o,r).map(d=>({text:d.label,type:d.type,description:d.documentation,isDeprecated:d.isDeprecated,deprecationReason:d.deprecationReason})),from:{line:i.line,ch:l},to:{line:i.line,ch:o.end}};return p!=null&&p.list&&p.list.length>0&&(p.from=qt.Pos(p.from.line,p.from.ch),p.to=qt.Pos(p.to.line,p.to.ch),qt.signal(e,"hasCompletion",e,p,o)),p});const _re=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),gP=["error","warning","information","hint"],Nre={"GraphQL: Validation":"validation","GraphQL: Deprecation":"deprecation","GraphQL: Syntax":"syntax"};qt.registerHelper("lint","graphql",(e,t)=>{const{schema:n,validationRules:r,externalFragments:i}=t;return X9(e,n,r,void 0,i).map(o=>({message:o.message,severity:o.severity?gP[o.severity-1]:gP[0],type:o.source?Nre[o.source]:void 0,from:qt.Pos(o.range.start.line,o.range.start.character),to:qt.Pos(o.range.end.line,o.range.end.character)}))});const Are=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var Ore=Object.defineProperty,Dre=(e,t)=>Ore(e,"name",{value:t,configurable:!0});function QC(e,t){const n=[];let r=e;for(;r!=null&&r.kind;)n.push(r),r=r.prevState;for(let i=n.length-1;i>=0;i--)t(n[i])}Dre(QC,"forEachState");var kre=Object.defineProperty,Yl=(e,t)=>kre(e,"name",{value:t,configurable:!0});function KC(e,t){const n={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return QC(t,r=>{var i,o;switch(r.kind){case"Query":case"ShortQuery":n.type=e.getQueryType();break;case"Mutation":n.type=e.getMutationType();break;case"Subscription":n.type=e.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":r.type&&(n.type=e.getType(r.type));break;case"Field":case"AliasedField":n.fieldDef=n.type&&r.name?XC(e,n.parentType,r.name):null,n.type=(i=n.fieldDef)===null||i===void 0?void 0:i.type;break;case"SelectionSet":n.parentType=n.type?vn(n.type):null;break;case"Directive":n.directiveDef=r.name?e.getDirective(r.name):null;break;case"Arguments":const l=r.prevState?r.prevState.kind==="Field"?n.fieldDef:r.prevState.kind==="Directive"?n.directiveDef:r.prevState.kind==="AliasedField"?r.prevState.name&&XC(e,n.parentType,r.prevState.name):null:null;n.argDefs=l?l.args:null;break;case"Argument":if(n.argDef=null,n.argDefs){for(let E=0;E<n.argDefs.length;E++)if(n.argDefs[E].name===r.name){n.argDef=n.argDefs[E];break}}n.inputType=(o=n.argDef)===null||o===void 0?void 0:o.type;break;case"EnumValue":const c=n.inputType?vn(n.inputType):null;n.enumValue=c instanceof Gi?vP(c.getValues(),E=>E.value===r.name):null;break;case"ListValue":const p=n.inputType?Fu(n.inputType):null;n.inputType=p instanceof ur?p.ofType:null;break;case"ObjectValue":const d=n.inputType?vn(n.inputType):null;n.objectFieldDefs=d instanceof lo?d.getFields():null;break;case"ObjectField":const m=r.name&&n.objectFieldDefs?n.objectFieldDefs[r.name]:null;n.inputType=m==null?void 0:m.type;break;case"NamedType":n.type=r.name?e.getType(r.name):null;break}}),n}Yl(KC,"getTypeInfo");function XC(e,t,n){if(n===Sa.name&&e.getQueryType()===t)return Sa;if(n===Ta.name&&e.getQueryType()===t)return Ta;if(n===xa.name&&Kr(t))return xa;if(t&&t.getFields)return t.getFields()[n]}Yl(XC,"getFieldDef");function vP(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return e[n]}Yl(vP,"find");function ZC(e){return{kind:"Field",schema:e.schema,field:e.fieldDef,type:n_(e.fieldDef)?null:e.parentType}}Yl(ZC,"getFieldReference");function JC(e){return{kind:"Directive",schema:e.schema,directive:e.directiveDef}}Yl(JC,"getDirectiveReference");function e_(e){return e.directiveDef?{kind:"Argument",schema:e.schema,argument:e.argDef,directive:e.directiveDef}:{kind:"Argument",schema:e.schema,argument:e.argDef,field:e.fieldDef,type:n_(e.fieldDef)?null:e.parentType}}Yl(e_,"getArgumentReference");function t_(e){return{kind:"EnumValue",value:e.enumValue||void 0,type:e.inputType?vn(e.inputType):void 0}}Yl(t_,"getEnumValueReference");function a1(e,t){return{kind:"Type",schema:e.schema,type:t||e.type}}Yl(a1,"getTypeReference");function n_(e){return e.name.slice(0,2)==="__"}Yl(n_,"isMetaField");var Rre=Object.defineProperty,Es=(e,t)=>Rre(e,"name",{value:t,configurable:!0});qt.defineOption("info",!1,(e,t,n)=>{if(n&&n!==qt.Init){const r=e.state.info.onMouseOver;qt.off(e.getWrapperElement(),"mouseover",r),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){const r=e.state.info=yP(t);r.onMouseOver=EP.bind(null,e),qt.on(e.getWrapperElement(),"mouseover",r.onMouseOver)}});function yP(e){return{options:e instanceof Function?{render:e}:e===!0?{}:e}}Es(yP,"createState");function bP(e){const{options:t}=e.state.info;return(t==null?void 0:t.hoverTime)||500}Es(bP,"getHoverTime");function EP(e,t){const n=e.state.info,r=t.target||t.srcElement;if(!(r instanceof HTMLElement)||r.nodeName!=="SPAN"||n.hoverTimeout!==void 0)return;const i=r.getBoundingClientRect(),o=Es(function(){clearTimeout(n.hoverTimeout),n.hoverTimeout=setTimeout(c,p)},"onMouseMove"),l=Es(function(){qt.off(document,"mousemove",o),qt.off(e.getWrapperElement(),"mouseout",l),clearTimeout(n.hoverTimeout),n.hoverTimeout=void 0},"onMouseOut"),c=Es(function(){qt.off(document,"mousemove",o),qt.off(e.getWrapperElement(),"mouseout",l),n.hoverTimeout=void 0,SP(e,i)},"onHover"),p=bP(e);n.hoverTimeout=setTimeout(c,p),qt.on(document,"mousemove",o),qt.on(e.getWrapperElement(),"mouseout",l)}Es(EP,"onMouseOver");function SP(e,t){const n=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2},"window"),r=e.state.info,{options:i}=r,o=i.render||e.getHelper(n,"info");if(o){const l=e.getTokenAt(n,!0);if(l){const c=o(l,i,e,n);c&&TP(e,t,c)}}}Es(SP,"onMouseHover");function TP(e,t,n){const r=document.createElement("div");r.className="CodeMirror-info",r.append(n),document.body.append(r);const i=r.getBoundingClientRect(),o=window.getComputedStyle(r),l=i.right-i.left+parseFloat(o.marginLeft)+parseFloat(o.marginRight),c=i.bottom-i.top+parseFloat(o.marginTop)+parseFloat(o.marginBottom);let p=t.bottom;c>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(p=t.top-c),p<0&&(p=t.bottom);let d=Math.max(0,window.innerWidth-l-15);d>t.left&&(d=t.left),r.style.opacity="1",r.style.top=p+"px",r.style.left=d+"px";let m;const E=Es(function(){clearTimeout(m)},"onMouseOverPopup"),b=Es(function(){clearTimeout(m),m=setTimeout(y,200)},"onMouseOut"),y=Es(function(){qt.off(r,"mouseover",E),qt.off(r,"mouseout",b),qt.off(e.getWrapperElement(),"mouseout",b),r.style.opacity?(r.style.opacity="0",setTimeout(()=>{r.parentNode&&r.remove()},600)):r.parentNode&&r.remove()},"hidePopup");qt.on(r,"mouseover",E),qt.on(r,"mouseout",b),qt.on(e.getWrapperElement(),"mouseout",b)}Es(TP,"showPopup");const Mre=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var Lre=Object.defineProperty,tl=(e,t)=>Lre(e,"name",{value:t,configurable:!0});qt.registerHelper("info","graphql",(e,t)=>{if(!t.schema||!e.state)return;const{kind:n,step:r}=e.state,i=KC(t.schema,e.state);if(n==="Field"&&r===0&&i.fieldDef||n==="AliasedField"&&r===2&&i.fieldDef){const o=document.createElement("div");o.className="CodeMirror-info-header",xP(o,i,t);const l=document.createElement("div");return l.append(o),Lp(l,t,i.fieldDef),l}if(n==="Directive"&&r===1&&i.directiveDef){const o=document.createElement("div");o.className="CodeMirror-info-header",CP(o,i,t);const l=document.createElement("div");return l.append(o),Lp(l,t,i.directiveDef),l}if(n==="Argument"&&r===0&&i.argDef){const o=document.createElement("div");o.className="CodeMirror-info-header",_P(o,i,t);const l=document.createElement("div");return l.append(o),Lp(l,t,i.argDef),l}if(n==="EnumValue"&&i.enumValue&&i.enumValue.description){const o=document.createElement("div");o.className="CodeMirror-info-header",NP(o,i,t);const l=document.createElement("div");return l.append(o),Lp(l,t,i.enumValue),l}if(n==="NamedType"&&i.type&&i.type.description){const o=document.createElement("div");o.className="CodeMirror-info-header",ed(o,i,t,i.type);const l=document.createElement("div");return l.append(o),Lp(l,t,i.type),l}});function xP(e,t,n){wP(e,t,n),r_(e,t,n,t.type)}tl(xP,"renderField");function wP(e,t,n){var r;const i=((r=t.fieldDef)===null||r===void 0?void 0:r.name)||"";Ao(e,i,"field-name",n,ZC(t))}tl(wP,"renderQualifiedField");function CP(e,t,n){var r;const i="@"+(((r=t.directiveDef)===null||r===void 0?void 0:r.name)||"");Ao(e,i,"directive-name",n,JC(t))}tl(CP,"renderDirective");function _P(e,t,n){var r;const i=((r=t.argDef)===null||r===void 0?void 0:r.name)||"";Ao(e,i,"arg-name",n,e_(t)),r_(e,t,n,t.inputType)}tl(_P,"renderArg");function NP(e,t,n){var r;const i=((r=t.enumValue)===null||r===void 0?void 0:r.name)||"";ed(e,t,n,t.inputType),Ao(e,"."),Ao(e,i,"enum-value",n,t_(t))}tl(NP,"renderEnumValue");function r_(e,t,n,r){const i=document.createElement("span");i.className="type-name-pill",r instanceof Pt?(ed(i,t,n,r.ofType),Ao(i,"!")):r instanceof ur?(Ao(i,"["),ed(i,t,n,r.ofType),Ao(i,"]")):Ao(i,(r==null?void 0:r.name)||"","type-name",n,a1(t,r)),e.append(i)}tl(r_,"renderTypeAnnotation");function ed(e,t,n,r){r instanceof Pt?(ed(e,t,n,r.ofType),Ao(e,"!")):r instanceof ur?(Ao(e,"["),ed(e,t,n,r.ofType),Ao(e,"]")):Ao(e,(r==null?void 0:r.name)||"","type-name",n,a1(t,r))}tl(ed,"renderType");function Lp(e,t,n){const{description:r}=n;if(r){const i=document.createElement("div");i.className="info-description",t.renderDescription?i.innerHTML=t.renderDescription(r):i.append(document.createTextNode(r)),e.append(i)}AP(e,t,n)}tl(Lp,"renderDescription");function AP(e,t,n){const r=n.deprecationReason;if(r){const i=document.createElement("div");i.className="info-deprecation",e.append(i);const o=document.createElement("span");o.className="info-deprecation-label",o.append(document.createTextNode("Deprecated")),i.append(o);const l=document.createElement("div");l.className="info-deprecation-reason",t.renderDescription?l.innerHTML=t.renderDescription(r):l.append(document.createTextNode(r)),i.append(l)}}tl(AP,"renderDeprecation");function Ao(e,t,n="",r={onClick:null},i=null){if(n){const{onClick:o}=r;let l;o?(l=document.createElement("a"),l.href="javascript:void 0",l.addEventListener("click",c=>{c.preventDefault(),o(i,c)})):l=document.createElement("span"),l.className=n,l.append(document.createTextNode(t)),e.append(l)}else e.append(document.createTextNode(t))}tl(Ao,"text");const Ire=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var Fre=Object.defineProperty,Wl=(e,t)=>Fre(e,"name",{value:t,configurable:!0});qt.defineOption("jump",!1,(e,t,n)=>{if(n&&n!==qt.Init){const r=e.state.jump.onMouseOver;qt.off(e.getWrapperElement(),"mouseover",r);const i=e.state.jump.onMouseOut;qt.off(e.getWrapperElement(),"mouseout",i),qt.off(document,"keydown",e.state.jump.onKeyDown),delete e.state.jump}if(t){const r=e.state.jump={options:t,onMouseOver:OP.bind(null,e),onMouseOut:DP.bind(null,e),onKeyDown:kP.bind(null,e)};qt.on(e.getWrapperElement(),"mouseover",r.onMouseOver),qt.on(e.getWrapperElement(),"mouseout",r.onMouseOut),qt.on(document,"keydown",r.onKeyDown)}});function OP(e,t){const n=t.target||t.srcElement;if(!(n instanceof HTMLElement)||(n==null?void 0:n.nodeName)!=="SPAN")return;const r=n.getBoundingClientRect(),i={left:(r.left+r.right)/2,top:(r.top+r.bottom)/2};e.state.jump.cursor=i,e.state.jump.isHoldingModifier&&i_(e)}Wl(OP,"onMouseOver");function DP(e){if(!e.state.jump.isHoldingModifier&&e.state.jump.cursor){e.state.jump.cursor=null;return}e.state.jump.isHoldingModifier&&e.state.jump.marker&&o_(e)}Wl(DP,"onMouseOut");function kP(e,t){if(e.state.jump.isHoldingModifier||!RP(t.key))return;e.state.jump.isHoldingModifier=!0,e.state.jump.cursor&&i_(e);const n=Wl(o=>{o.code===t.code&&(e.state.jump.isHoldingModifier=!1,e.state.jump.marker&&o_(e),qt.off(document,"keyup",n),qt.off(document,"click",r),e.off("mousedown",i))},"onKeyUp"),r=Wl(o=>{const{destination:l,options:c}=e.state.jump;l&&c.onClick(l,o)},"onClick"),i=Wl((o,l)=>{e.state.jump.destination&&(l.codemirrorIgnore=!0)},"onMouseDown");qt.on(document,"keyup",n),qt.on(document,"click",r),e.on("mousedown",i)}Wl(kP,"onKeyDown");const Pre=typeof navigator<"u"&&navigator&&navigator.appVersion.includes("Mac");function RP(e){return e===(Pre?"Meta":"Control")}Wl(RP,"isJumpModifier");function i_(e){if(e.state.jump.marker)return;const{cursor:t,options:n}=e.state.jump,r=e.coordsChar(t),i=e.getTokenAt(r,!0),o=n.getDestination||e.getHelper(r,"jump");if(o){const l=o(i,n,e);if(l){const c=e.markText({line:r.line,ch:i.start},{line:r.line,ch:i.end},{className:"CodeMirror-jump-token"});e.state.jump.marker=c,e.state.jump.destination=l}}}Wl(i_,"enableJumpMode");function o_(e){const{marker:t}=e.state.jump;e.state.jump.marker=null,e.state.jump.destination=null,t.clear()}Wl(o_,"disableJumpMode"),qt.registerHelper("jump","graphql",(e,t)=>{if(!t.schema||!t.onClick||!e.state)return;const{state:n}=e,{kind:r,step:i}=n,o=KC(t.schema,n);if(r==="Field"&&i===0&&o.fieldDef||r==="AliasedField"&&i===2&&o.fieldDef)return ZC(o);if(r==="Directive"&&i===1&&o.directiveDef)return JC(o);if(r==="Argument"&&i===0&&o.argDef)return e_(o);if(r==="EnumValue"&&o.enumValue)return t_(o);if(r==="NamedType"&&o.type)return a1(o)});const jre=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var Vre=Object.defineProperty,Ure=(e,t)=>Vre(e,"name",{value:t,configurable:!0});function s1(e,t){var n,r;const{levels:i,indentLevel:o}=e;return((!i||i.length===0?o:i.at(-1)-(!((n=this.electricInput)===null||n===void 0)&&n.test(t)?1:0))||0)*(((r=this.config)===null||r===void 0?void 0:r.indentUnit)||0)}Ure(s1,"indent");var qre=Object.defineProperty,Bre=(e,t)=>qre(e,"name",{value:t,configurable:!0});const $re=Bre(e=>{const t=Sm({eatWhitespace:n=>n.eatWhile(ND),lexRules:AD,parseRules:OD,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:s1,electricInput:/^\s*[})\]]/,fold:"brace",lineComment:"#",closeBrackets:{pairs:'()[]{}""',explode:"()[]{}"}}},"graphqlModeFactory");qt.defineMode("graphql",$re);const zre=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var Hre=Object.defineProperty,cc=(e,t)=>Hre(e,"name",{value:t,configurable:!0});function td(e,t,n){const r=MP(n,a_(t.string));if(!r)return;const i=t.type!==null&&/"|\w/.test(t.string[0])?t.start:t.end;return{list:r,from:{line:e.line,ch:i},to:{line:e.line,ch:t.end}}}cc(td,"hintList");function MP(e,t){if(!t)return l1(e,r=>!r.isDeprecated);const n=e.map(r=>({proximity:LP(a_(r.text),t),entry:r}));return l1(l1(n,r=>r.proximity<=2),r=>!r.entry.isDeprecated).sort((r,i)=>(r.entry.isDeprecated?1:0)-(i.entry.isDeprecated?1:0)||r.proximity-i.proximity||r.entry.text.length-i.entry.text.length).map(r=>r.entry)}cc(MP,"filterAndSortList");function l1(e,t){const n=e.filter(t);return n.length===0?e:n}cc(l1,"filterNonEmpty");function a_(e){return e.toLowerCase().replaceAll(/\W/g,"")}cc(a_,"normalizeText");function LP(e,t){let n=IP(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=e.indexOf(t)===0?0:.5),n}cc(LP,"getProximity");function IP(e,t){let n,r;const i=[],o=e.length,l=t.length;for(n=0;n<=o;n++)i[n]=[n];for(r=1;r<=l;r++)i[0][r]=r;for(n=1;n<=o;n++)for(r=1;r<=l;r++){const c=e[n-1]===t[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+c),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+c))}return i[o][l]}cc(IP,"lexicalDistance"),qt.registerHelper("hint","graphql-variables",(e,t)=>{const n=e.getCursor(),r=e.getTokenAt(n),i=FP(n,r,t);return i!=null&&i.list&&i.list.length>0&&(i.from=qt.Pos(i.from.line,i.from.ch),i.to=qt.Pos(i.to.line,i.to.ch),qt.signal(e,"hasCompletion",e,i,r)),i});function FP(e,t,n){const r=t.state.kind==="Invalid"?t.state.prevState:t.state,{kind:i,step:o}=r;if(i==="Document"&&o===0)return td(e,t,[{text:"{"}]);const{variableToType:l}=n;if(!l)return;const c=PP(l,t.state);if(i==="Document"||i==="Variable"&&o===0){const p=Object.keys(l);return td(e,t,p.map(d=>({text:`"${d}": `,type:l[d]})))}if((i==="ObjectValue"||i==="ObjectField"&&o===0)&&c.fields){const p=Object.keys(c.fields).map(d=>c.fields[d]);return td(e,t,p.map(d=>({text:`"${d.name}": `,type:d.type,description:d.description})))}if(i==="StringValue"||i==="NumberValue"||i==="BooleanValue"||i==="NullValue"||i==="ListValue"&&o===1||i==="ObjectField"&&o===2||i==="Variable"&&o===2){const p=c.type?vn(c.type):void 0;if(p instanceof lo)return td(e,t,[{text:"{"}]);if(p instanceof Gi){const d=p.getValues();return td(e,t,d.map(m=>({text:`"${m.name}"`,type:p,description:m.description})))}if(p===Jn)return td(e,t,[{text:"true",type:Jn,description:"Not false."},{text:"false",type:Jn,description:"Not true."}])}}cc(FP,"getVariablesHint");function PP(e,t){const n={type:null,fields:null};return QC(t,r=>{switch(r.kind){case"Variable":{n.type=e[r.name];break}case"ListValue":{const i=n.type?Fu(n.type):void 0;n.type=i instanceof ur?i.ofType:null;break}case"ObjectValue":{const i=n.type?vn(n.type):void 0;n.fields=i instanceof lo?i.getFields():null;break}case"ObjectField":{const i=r.name&&n.fields?n.fields[r.name]:null;n.type=i==null?void 0:i.type;break}}}),n}cc(PP,"getTypeInfo");const Gre=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var Yre=Object.defineProperty,$r=(e,t)=>Yre(e,"name",{value:t,configurable:!0});function jP(e){nl=e,u1=e.length,di=Xi=_g=-1,Xr(),Ag();const t=s_();return Ql("EOF"),t}$r(jP,"jsonParse");let nl,u1,di,Xi,_g,An,Zo;function s_(){const e=di,t=[];if(Ql("{"),!Ng("}")){do t.push(VP());while(Ng(","));Ql("}")}return{kind:"Object",start:e,end:_g,members:t}}$r(s_,"parseObj");function VP(){const e=di,t=Zo==="String"?u_():null;Ql("String"),Ql(":");const n=l_();return{kind:"Member",start:e,end:_g,key:t,value:n}}$r(VP,"parseMember");function UP(){const e=di,t=[];if(Ql("["),!Ng("]")){do t.push(l_());while(Ng(","));Ql("]")}return{kind:"Array",start:e,end:_g,values:t}}$r(UP,"parseArr");function l_(){switch(Zo){case"[":return UP();case"{":return s_();case"String":case"Number":case"Boolean":case"Null":const e=u_();return Ag(),e}Ql("Value")}$r(l_,"parseVal");function u_(){return{kind:Zo,start:di,end:Xi,value:JSON.parse(nl.slice(di,Xi))}}$r(u_,"curToken");function Ql(e){if(Zo===e){Ag();return}let t;if(Zo==="EOF")t="[end of file]";else if(Xi-di>1)t="`"+nl.slice(di,Xi)+"`";else{const n=nl.slice(di).match(/^.+?\b/);t="`"+(n?n[0]:nl[di])+"`"}throw nd(`Expected ${e} but found ${t}.`)}$r(Ql,"expect");class c_ extends Error{constructor(t,n){super(t),this.position=n}}$r(c_,"JSONSyntaxError");function nd(e){return new c_(e,{start:di,end:Xi})}$r(nd,"syntaxError");function Ng(e){if(Zo===e)return Ag(),!0}$r(Ng,"skip");function Xr(){return Xi<u1&&(Xi++,An=Xi===u1?0:nl.charCodeAt(Xi)),An}$r(Xr,"ch");function Ag(){for(_g=Xi;An===9||An===10||An===13||An===32;)Xr();if(An===0){Zo="EOF";return}switch(di=Xi,An){case 34:return Zo="String",qP();case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return Zo="Number",BP();case 102:if(nl.slice(di,di+5)!=="false")break;Xi+=4,Xr(),Zo="Boolean";return;case 110:if(nl.slice(di,di+4)!=="null")break;Xi+=3,Xr(),Zo="Null";return;case 116:if(nl.slice(di,di+4)!=="true")break;Xi+=3,Xr(),Zo="Boolean";return}Zo=nl[di],Xr()}$r(Ag,"lex");function qP(){for(Xr();An!==34&&An>31;)if(An===92)switch(An=Xr(),An){case 34:case 47:case 92:case 98:case 102:case 110:case 114:case 116:Xr();break;case 117:Xr(),Og(),Og(),Og(),Og();break;default:throw nd("Bad character escape sequence.")}else{if(Xi===u1)throw nd("Unterminated string.");Xr()}if(An===34){Xr();return}throw nd("Unterminated string.")}$r(qP,"readString");function Og(){if(An>=48&&An<=57||An>=65&&An<=70||An>=97&&An<=102)return Xr();throw nd("Expected hexadecimal digit.")}$r(Og,"readHex");function BP(){An===45&&Xr(),An===48?Xr():c1(),An===46&&(Xr(),c1()),(An===69||An===101)&&(An=Xr(),(An===43||An===45)&&Xr(),c1())}$r(BP,"readNumber");function c1(){if(An<48||An>57)throw nd("Expected decimal digit.");do Xr();while(An>=48&&An<=57)}$r(c1,"readDigits"),qt.registerHelper("lint","graphql-variables",(e,t,n)=>{if(!e)return[];let r;try{r=jP(e)}catch(o){if(o instanceof c_)return[f1(n,o.position,o.message)];throw o}const{variableToType:i}=t;return i?$P(n,i,r):[]});function $P(e,t,n){var r;const i=[];for(const o of n.members)if(o){const l=(r=o.key)===null||r===void 0?void 0:r.value,c=t[l];if(c)for(const[p,d]of Ip(c,o.value))i.push(f1(e,p,d));else i.push(f1(e,o.key,`Variable "$${l}" does not appear in any GraphQL query.`))}return i}$r($P,"validateVariables");function Ip(e,t){if(!e||!t)return[];if(e instanceof Pt)return t.kind==="Null"?[[t,`Type "${e}" is non-nullable and cannot be null.`]]:Ip(e.ofType,t);if(t.kind==="Null")return[];if(e instanceof ur){const n=e.ofType;if(t.kind==="Array"){const r=t.values||[];return f_(r,i=>Ip(n,i))}return Ip(n,t)}if(e instanceof lo){if(t.kind!=="Object")return[[t,`Type "${e}" must be an Object.`]];const n=Object.create(null),r=f_(t.members,i=>{var o;const l=(o=i==null?void 0:i.key)===null||o===void 0?void 0:o.value;n[l]=!0;const c=e.getFields()[l];if(!c)return[[i.key,`Type "${e}" does not have a field "${l}".`]];const p=c?c.type:void 0;return Ip(p,i.value)});for(const i of Object.keys(e.getFields())){const o=e.getFields()[i];!n[i]&&o.type instanceof Pt&&!o.defaultValue&&r.push([t,`Object of type "${e}" is missing required field "${i}".`])}return r}return e.name==="Boolean"&&t.kind!=="Boolean"||e.name==="String"&&t.kind!=="String"||e.name==="ID"&&t.kind!=="Number"&&t.kind!=="String"||e.name==="Float"&&t.kind!=="Number"||e.name==="Int"&&(t.kind!=="Number"||(t.value|0)!==t.value)?[[t,`Expected value of type "${e}".`]]:(e instanceof Gi||e instanceof ba)&&(t.kind!=="String"&&t.kind!=="Number"&&t.kind!=="Boolean"&&t.kind!=="Null"||zP(e.parseValue(t.value)))?[[t,`Expected value of type "${e}".`]]:[]}$r(Ip,"validateValue");function f1(e,t,n){return{message:n,severity:"error",type:"validation",from:e.posFromIndex(t.start),to:e.posFromIndex(t.end)}}$r(f1,"lintError");function zP(e){return e==null||e!==e}$r(zP,"isNullish");function f_(e,t){return Array.prototype.concat.apply([],e.map(t))}$r(f_,"mapCat");const Wre=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));var Qre=Object.defineProperty,Kre=(e,t)=>Qre(e,"name",{value:t,configurable:!0});qt.defineMode("graphql-variables",e=>{const t=Sm({eatWhitespace:n=>n.eatSpace(),lexRules:Xre,parseRules:Zre,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:s1,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}});const Xre={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},Zre={Document:[vt("{"),on("Variable",br(vt(","))),vt("}")],Variable:[d_("variable"),vt(":"),"Value"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[Ho("Number","number")],StringValue:[Ho("String","string")],BooleanValue:[Ho("Keyword","builtin")],NullValue:[Ho("Keyword","keyword")],ListValue:[vt("["),on("Value",br(vt(","))),vt("]")],ObjectValue:[vt("{"),on("ObjectField",br(vt(","))),vt("}")],ObjectField:[d_("attribute"),vt(":"),"Value"]};function d_(e){return{style:e,match:t=>t.kind==="String",update(t,n){t.name=n.value.slice(1,-1)}}}Kre(d_,"namedKey");const Jre=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));qt.defineMode("graphql-results",e=>{const t=Sm({eatWhitespace:n=>n.eatSpace(),lexRules:eie,parseRules:tie,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:s1,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}});const eie={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},tie={Document:[vt("{"),on("Entry",vt(",")),vt("}")],Entry:[Ho("String","def"),vt(":"),"Value"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[Ho("Number","number")],StringValue:[Ho("String","string")],BooleanValue:[Ho("Keyword","builtin")],NullValue:[Ho("Keyword","keyword")],ListValue:[vt("["),on("Value",vt(",")),vt("]")],ObjectValue:[vt("{"),on("ObjectField",vt(",")),vt("}")],ObjectField:[Ho("String","property"),vt(":"),"Value"]},nie=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));va.renderYogaGraphiQL=Pne,Object.defineProperty(va,Symbol.toStringTag,{value:"Module"})});