@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`.
528 lines • 1.45 MB
JavaScript
(function(Es,Kn){typeof exports=="object"&&typeof module<"u"?Kn(exports):typeof define=="function"&&define.amd?define(["exports"],Kn):(Es=typeof globalThis<"u"?globalThis:Es||self,Kn(Es.YogaGraphiQL={}))})(this,function(Es){"use strict";var qle=Object.defineProperty;var Gle=(Es,Kn,Bc)=>Kn in Es?qle(Es,Kn,{enumerable:!0,configurable:!0,writable:!0,value:Bc}):Es[Kn]=Bc;var on=(Es,Kn,Bc)=>Gle(Es,typeof Kn!="symbol"?Kn+"":Kn,Bc);var WM,YM;function Kn(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 Bc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Lr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function nI(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 Wb={exports:{}},_p={};/**
* @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 kw;function rI(){if(kw)return _p;kw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,o){var a=null;if(o!==void 0&&(a=""+o),i.key!==void 0&&(a=""+i.key),"key"in i){o={};for(var l in i)l!=="key"&&(o[l]=i[l])}else o=i;return i=o.ref,{$$typeof:e,type:r,key:a,ref:i!==void 0?i:null,props:o}}return _p.Fragment=t,_p.jsx=n,_p.jsxs=n,_p}var Rw;function iI(){return Rw||(Rw=1,Wb.exports=rI()),Wb.exports}var $=iI(),Yb={exports:{}},Zt={};/**
* @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 Mw;function oI(){if(Mw)return Zt;Mw=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"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),b=Symbol.iterator;function v(K){return K===null||typeof K!="object"?null:(K=b&&K[b]||K["@@iterator"],typeof K=="function"?K:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,w={};function k(K,he,se){this.props=K,this.context=he,this.refs=w,this.updater=se||x}k.prototype.isReactComponent={},k.prototype.setState=function(K,he){if(typeof K!="object"&&typeof K!="function"&&K!=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,K,he,"setState")},k.prototype.forceUpdate=function(K){this.updater.enqueueForceUpdate(this,K,"forceUpdate")};function _(){}_.prototype=k.prototype;function N(K,he,se){this.props=K,this.context=he,this.refs=w,this.updater=se||x}var O=N.prototype=new _;O.constructor=N,S(O,k.prototype),O.isPureReactComponent=!0;var A=Array.isArray,L={H:null,A:null,T:null,S:null,V:null},P=Object.prototype.hasOwnProperty;function j(K,he,se,fe,ae,Ee){return se=Ee.ref,{$$typeof:e,type:K,key:he,ref:se!==void 0?se:null,props:Ee}}function F(K,he){return j(K.type,he,void 0,void 0,void 0,K.props)}function B(K){return typeof K=="object"&&K!==null&&K.$$typeof===e}function q(K){var he={"=":"=0",":":"=2"};return"$"+K.replace(/[=:]/g,function(se){return he[se]})}var W=/\/+/g;function Z(K,he){return typeof K=="object"&&K!==null&&K.key!=null?q(""+K.key):he.toString(36)}function X(){}function ee(K){switch(K.status){case"fulfilled":return K.value;case"rejected":throw K.reason;default:switch(typeof K.status=="string"?K.then(X,X):(K.status="pending",K.then(function(he){K.status==="pending"&&(K.status="fulfilled",K.value=he)},function(he){K.status==="pending"&&(K.status="rejected",K.reason=he)})),K.status){case"fulfilled":return K.value;case"rejected":throw K.reason}}throw K}function H(K,he,se,fe,ae){var Ee=typeof K;(Ee==="undefined"||Ee==="boolean")&&(K=null);var ve=!1;if(K===null)ve=!0;else switch(Ee){case"bigint":case"string":case"number":ve=!0;break;case"object":switch(K.$$typeof){case e:case t:ve=!0;break;case p:return ve=K._init,H(ve(K._payload),he,se,fe,ae)}}if(ve)return ae=ae(K),ve=fe===""?"."+Z(K,0):fe,A(ae)?(se="",ve!=null&&(se=ve.replace(W,"$&/")+"/"),H(ae,he,se,"",function(Ve){return Ve})):ae!=null&&(B(ae)&&(ae=F(ae,se+(ae.key==null||K&&K.key===ae.key?"":(""+ae.key).replace(W,"$&/")+"/")+ve)),he.push(ae)),1;ve=0;var xe=fe===""?".":fe+":";if(A(K))for(var ge=0;ge<K.length;ge++)fe=K[ge],Ee=xe+Z(fe,ge),ve+=H(fe,he,se,Ee,ae);else if(ge=v(K),typeof ge=="function")for(K=ge.call(K),ge=0;!(fe=K.next()).done;)fe=fe.value,Ee=xe+Z(fe,ge++),ve+=H(fe,he,se,Ee,ae);else if(Ee==="object"){if(typeof K.then=="function")return H(ee(K),he,se,fe,ae);throw he=String(K),Error("Objects are not valid as a React child (found: "+(he==="[object Object]"?"object with keys {"+Object.keys(K).join(", ")+"}":he)+"). If you meant to render a collection of children, use an array instead.")}return ve}function J(K,he,se){if(K==null)return K;var fe=[],ae=0;return H(K,fe,"","",function(Ee){return he.call(se,Ee,ae++)}),fe}function ue(K){if(K._status===-1){var he=K._result;he=he(),he.then(function(se){(K._status===0||K._status===-1)&&(K._status=1,K._result=se)},function(se){(K._status===0||K._status===-1)&&(K._status=2,K._result=se)}),K._status===-1&&(K._status=0,K._result=he)}if(K._status===1)return K._result.default;throw K._result}var ne=typeof reportError=="function"?reportError:function(K){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var he=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof K=="object"&&K!==null&&typeof K.message=="string"?String(K.message):String(K),error:K});if(!window.dispatchEvent(he))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",K);return}console.error(K)};function oe(){}return Zt.Children={map:J,forEach:function(K,he,se){J(K,function(){he.apply(this,arguments)},se)},count:function(K){var he=0;return J(K,function(){he++}),he},toArray:function(K){return J(K,function(he){return he})||[]},only:function(K){if(!B(K))throw Error("React.Children.only expected to receive a single React element child.");return K}},Zt.Component=k,Zt.Fragment=n,Zt.Profiler=i,Zt.PureComponent=N,Zt.StrictMode=r,Zt.Suspense=f,Zt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,Zt.__COMPILER_RUNTIME={__proto__:null,c:function(K){return L.H.useMemoCache(K)}},Zt.cache=function(K){return function(){return K.apply(null,arguments)}},Zt.cloneElement=function(K,he,se){if(K==null)throw Error("The argument must be a React element, but you passed "+K+".");var fe=S({},K.props),ae=K.key,Ee=void 0;if(he!=null)for(ve in he.ref!==void 0&&(Ee=void 0),he.key!==void 0&&(ae=""+he.key),he)!P.call(he,ve)||ve==="key"||ve==="__self"||ve==="__source"||ve==="ref"&&he.ref===void 0||(fe[ve]=he[ve]);var ve=arguments.length-2;if(ve===1)fe.children=se;else if(1<ve){for(var xe=Array(ve),ge=0;ge<ve;ge++)xe[ge]=arguments[ge+2];fe.children=xe}return j(K.type,ae,void 0,void 0,Ee,fe)},Zt.createContext=function(K){return K={$$typeof:a,_currentValue:K,_currentValue2:K,_threadCount:0,Provider:null,Consumer:null},K.Provider=K,K.Consumer={$$typeof:o,_context:K},K},Zt.createElement=function(K,he,se){var fe,ae={},Ee=null;if(he!=null)for(fe in he.key!==void 0&&(Ee=""+he.key),he)P.call(he,fe)&&fe!=="key"&&fe!=="__self"&&fe!=="__source"&&(ae[fe]=he[fe]);var ve=arguments.length-2;if(ve===1)ae.children=se;else if(1<ve){for(var xe=Array(ve),ge=0;ge<ve;ge++)xe[ge]=arguments[ge+2];ae.children=xe}if(K&&K.defaultProps)for(fe in ve=K.defaultProps,ve)ae[fe]===void 0&&(ae[fe]=ve[fe]);return j(K,Ee,void 0,void 0,null,ae)},Zt.createRef=function(){return{current:null}},Zt.forwardRef=function(K){return{$$typeof:l,render:K}},Zt.isValidElement=B,Zt.lazy=function(K){return{$$typeof:p,_payload:{_status:-1,_result:K},_init:ue}},Zt.memo=function(K,he){return{$$typeof:h,type:K,compare:he===void 0?null:he}},Zt.startTransition=function(K){var he=L.T,se={};L.T=se;try{var fe=K(),ae=L.S;ae!==null&&ae(se,fe),typeof fe=="object"&&fe!==null&&typeof fe.then=="function"&&fe.then(oe,ne)}catch(Ee){ne(Ee)}finally{L.T=he}},Zt.unstable_useCacheRefresh=function(){return L.H.useCacheRefresh()},Zt.use=function(K){return L.H.use(K)},Zt.useActionState=function(K,he,se){return L.H.useActionState(K,he,se)},Zt.useCallback=function(K,he){return L.H.useCallback(K,he)},Zt.useContext=function(K){return L.H.useContext(K)},Zt.useDebugValue=function(){},Zt.useDeferredValue=function(K,he){return L.H.useDeferredValue(K,he)},Zt.useEffect=function(K,he,se){var fe=L.H;if(typeof se=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return fe.useEffect(K,he)},Zt.useId=function(){return L.H.useId()},Zt.useImperativeHandle=function(K,he,se){return L.H.useImperativeHandle(K,he,se)},Zt.useInsertionEffect=function(K,he){return L.H.useInsertionEffect(K,he)},Zt.useLayoutEffect=function(K,he){return L.H.useLayoutEffect(K,he)},Zt.useMemo=function(K,he){return L.H.useMemo(K,he)},Zt.useOptimistic=function(K,he){return L.H.useOptimistic(K,he)},Zt.useReducer=function(K,he,se){return L.H.useReducer(K,he,se)},Zt.useRef=function(K){return L.H.useRef(K)},Zt.useState=function(K){return L.H.useState(K)},Zt.useSyncExternalStore=function(K,he,se){return L.H.useSyncExternalStore(K,he,se)},Zt.useTransition=function(){return L.H.useTransition()},Zt.version="19.1.0",Zt}var Lw;function md(){return Lw||(Lw=1,Yb.exports=oI()),Yb.exports}var R=md();const Mt=Lr(R),Ap=Kn({__proto__:null,default:Mt},[R]);var Qb={exports:{}},Dp={},Kb={exports:{}},Xb={};/**
* @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 Iw;function sI(){return Iw||(Iw=1,function(e){function t(J,ue){var ne=J.length;J.push(ue);e:for(;0<ne;){var oe=ne-1>>>1,K=J[oe];if(0<i(K,ue))J[oe]=ue,J[ne]=K,ne=oe;else break e}}function n(J){return J.length===0?null:J[0]}function r(J){if(J.length===0)return null;var ue=J[0],ne=J.pop();if(ne!==ue){J[0]=ne;e:for(var oe=0,K=J.length,he=K>>>1;oe<he;){var se=2*(oe+1)-1,fe=J[se],ae=se+1,Ee=J[ae];if(0>i(fe,ne))ae<K&&0>i(Ee,fe)?(J[oe]=Ee,J[ae]=ne,oe=ae):(J[oe]=fe,J[se]=ne,oe=se);else if(ae<K&&0>i(Ee,ne))J[oe]=Ee,J[ae]=ne,oe=ae;else break e}}return ue}function i(J,ue){var ne=J.sortIndex-ue.sortIndex;return ne!==0?ne:J.id-ue.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 a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var f=[],h=[],p=1,b=null,v=3,x=!1,S=!1,w=!1,k=!1,_=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function A(J){for(var ue=n(h);ue!==null;){if(ue.callback===null)r(h);else if(ue.startTime<=J)r(h),ue.sortIndex=ue.expirationTime,t(f,ue);else break;ue=n(h)}}function L(J){if(w=!1,A(J),!S)if(n(f)!==null)S=!0,P||(P=!0,Z());else{var ue=n(h);ue!==null&&H(L,ue.startTime-J)}}var P=!1,j=-1,F=5,B=-1;function q(){return k?!0:!(e.unstable_now()-B<F)}function W(){if(k=!1,P){var J=e.unstable_now();B=J;var ue=!0;try{e:{S=!1,w&&(w=!1,N(j),j=-1),x=!0;var ne=v;try{t:{for(A(J),b=n(f);b!==null&&!(b.expirationTime>J&&q());){var oe=b.callback;if(typeof oe=="function"){b.callback=null,v=b.priorityLevel;var K=oe(b.expirationTime<=J);if(J=e.unstable_now(),typeof K=="function"){b.callback=K,A(J),ue=!0;break t}b===n(f)&&r(f),A(J)}else r(f);b=n(f)}if(b!==null)ue=!0;else{var he=n(h);he!==null&&H(L,he.startTime-J),ue=!1}}break e}finally{b=null,v=ne,x=!1}ue=void 0}}finally{ue?Z():P=!1}}}var Z;if(typeof O=="function")Z=function(){O(W)};else if(typeof MessageChannel<"u"){var X=new MessageChannel,ee=X.port2;X.port1.onmessage=W,Z=function(){ee.postMessage(null)}}else Z=function(){_(W,0)};function H(J,ue){j=_(function(){J(e.unstable_now())},ue)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(J){J.callback=null},e.unstable_forceFrameRate=function(J){0>J||125<J?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<J?Math.floor(1e3/J):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(J){switch(v){case 1:case 2:case 3:var ue=3;break;default:ue=v}var ne=v;v=ue;try{return J()}finally{v=ne}},e.unstable_requestPaint=function(){k=!0},e.unstable_runWithPriority=function(J,ue){switch(J){case 1:case 2:case 3:case 4:case 5:break;default:J=3}var ne=v;v=J;try{return ue()}finally{v=ne}},e.unstable_scheduleCallback=function(J,ue,ne){var oe=e.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?oe+ne:oe):ne=oe,J){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=ne+K,J={id:p++,callback:ue,priorityLevel:J,startTime:ne,expirationTime:K,sortIndex:-1},ne>oe?(J.sortIndex=ne,t(h,J),n(f)===null&&J===n(h)&&(w?(N(j),j=-1):w=!0,H(L,ne-oe))):(J.sortIndex=K,t(f,J),S||x||(S=!0,P||(P=!0,Z()))),J},e.unstable_shouldYield=q,e.unstable_wrapCallback=function(J){var ue=v;return function(){var ne=v;v=ue;try{return J.apply(this,arguments)}finally{v=ne}}}}(Xb)),Xb}var Fw;function aI(){return Fw||(Fw=1,Kb.exports=sI()),Kb.exports}var Zb={exports:{}},lo={};/**
* @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 Pw;function uI(){if(Pw)return lo;Pw=1;var e=md();function t(f){var h="https://react.dev/errors/"+f;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)h+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+f+"; visit "+h+" 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(f,h,p){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:b==null?null:""+b,children:f,containerInfo:h,implementation:p}}var a=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(f,h){if(f==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return lo.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,lo.createPortal=function(f,h){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return o(f,h,null,p)},lo.flushSync=function(f){var h=a.T,p=r.p;try{if(a.T=null,r.p=2,f)return f()}finally{a.T=h,r.p=p,r.d.f()}},lo.preconnect=function(f,h){typeof f=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,r.d.C(f,h))},lo.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},lo.preinit=function(f,h){if(typeof f=="string"&&h&&typeof h.as=="string"){var p=h.as,b=l(p,h.crossOrigin),v=typeof h.integrity=="string"?h.integrity:void 0,x=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;p==="style"?r.d.S(f,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:b,integrity:v,fetchPriority:x}):p==="script"&&r.d.X(f,{crossOrigin:b,integrity:v,fetchPriority:x,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},lo.preinitModule=function(f,h){if(typeof f=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var p=l(h.as,h.crossOrigin);r.d.M(f,{crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&r.d.M(f)},lo.preload=function(f,h){if(typeof f=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var p=h.as,b=l(p,h.crossOrigin);r.d.L(f,p,{crossOrigin:b,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},lo.preloadModule=function(f,h){if(typeof f=="string")if(h){var p=l(h.as,h.crossOrigin);r.d.m(f,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else r.d.m(f)},lo.requestFormReset=function(f){r.d.r(f)},lo.unstable_batchedUpdates=function(f,h){return f(h)},lo.useFormState=function(f,h,p){return a.H.useFormState(f,h,p)},lo.useFormStatus=function(){return a.H.useHostTransitionStatus()},lo.version="19.1.0",lo}var jw;function Vw(){if(jw)return Zb.exports;jw=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(),Zb.exports=uI(),Zb.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 Bw;function lI(){if(Bw)return Dp;Bw=1;var e=aI(),t=md(),n=Vw();function r(s){var c="https://react.dev/errors/"+s;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)c+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+s+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function o(s){var c=s,m=s;if(s.alternate)for(;c.return;)c=c.return;else{s=c;do c=s,(c.flags&4098)!==0&&(m=c.return),s=c.return;while(s)}return c.tag===3?m:null}function a(s){if(s.tag===13){var c=s.memoizedState;if(c===null&&(s=s.alternate,s!==null&&(c=s.memoizedState)),c!==null)return c.dehydrated}return null}function l(s){if(o(s)!==s)throw Error(r(188))}function f(s){var c=s.alternate;if(!c){if(c=o(s),c===null)throw Error(r(188));return c!==s?null:s}for(var m=s,E=c;;){var C=m.return;if(C===null)break;var M=C.alternate;if(M===null){if(E=C.return,E!==null){m=E;continue}break}if(C.child===M.child){for(M=C.child;M;){if(M===m)return l(C),s;if(M===E)return l(C),c;M=M.sibling}throw Error(r(188))}if(m.return!==E.return)m=C,E=M;else{for(var G=!1,te=C.child;te;){if(te===m){G=!0,m=C,E=M;break}if(te===E){G=!0,E=C,m=M;break}te=te.sibling}if(!G){for(te=M.child;te;){if(te===m){G=!0,m=M,E=C;break}if(te===E){G=!0,E=M,m=C;break}te=te.sibling}if(!G)throw Error(r(189))}}if(m.alternate!==E)throw Error(r(190))}if(m.tag!==3)throw Error(r(188));return m.stateNode.current===m?s:c}function h(s){var c=s.tag;if(c===5||c===26||c===27||c===6)return s;for(s=s.child;s!==null;){if(c=h(s),c!==null)return c;s=s.sibling}return null}var p=Object.assign,b=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),N=Symbol.for("react.consumer"),O=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),q=Symbol.for("react.memo_cache_sentinel"),W=Symbol.iterator;function Z(s){return s===null||typeof s!="object"?null:(s=W&&s[W]||s["@@iterator"],typeof s=="function"?s:null)}var X=Symbol.for("react.client.reference");function ee(s){if(s==null)return null;if(typeof s=="function")return s.$$typeof===X?null:s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case S:return"Fragment";case k:return"Profiler";case w:return"StrictMode";case L:return"Suspense";case P:return"SuspenseList";case B:return"Activity"}if(typeof s=="object")switch(s.$$typeof){case x:return"Portal";case O:return(s.displayName||"Context")+".Provider";case N:return(s._context.displayName||"Context")+".Consumer";case A:var c=s.render;return s=s.displayName,s||(s=c.displayName||c.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case j:return c=s.displayName||null,c!==null?c:ee(s.type)||"Memo";case F:c=s._payload,s=s._init;try{return ee(s(c))}catch{}}return null}var H=Array.isArray,J=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne={pending:!1,data:null,method:null,action:null},oe=[],K=-1;function he(s){return{current:s}}function se(s){0>K||(s.current=oe[K],oe[K]=null,K--)}function fe(s,c){K++,oe[K]=s.current,s.current=c}var ae=he(null),Ee=he(null),ve=he(null),xe=he(null);function ge(s,c){switch(fe(ve,c),fe(Ee,s),fe(ae,null),c.nodeType){case 9:case 11:s=(s=c.documentElement)&&(s=s.namespaceURI)?NL(s):0;break;default:if(s=c.tagName,c=c.namespaceURI)c=NL(c),s=OL(c,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}se(ae),fe(ae,s)}function Ve(){se(ae),se(Ee),se(ve)}function Xe(s){s.memoizedState!==null&&fe(xe,s);var c=ae.current,m=OL(c,s.type);c!==m&&(fe(Ee,s),fe(ae,m))}function et(s){Ee.current===s&&(se(ae),se(Ee)),xe.current===s&&(se(xe),Cg._currentValue=ne)}var dt=Object.prototype.hasOwnProperty,we=e.unstable_scheduleCallback,pe=e.unstable_cancelCallback,qe=e.unstable_shouldYield,ye=e.unstable_requestPaint,re=e.unstable_now,_e=e.unstable_getCurrentPriorityLevel,ze=e.unstable_ImmediatePriority,Le=e.unstable_UserBlockingPriority,Pe=e.unstable_NormalPriority,Te=e.unstable_LowPriority,Ie=e.unstable_IdlePriority,Qe=e.log,ut=e.unstable_setDisableYieldValue,At=null,kt=null;function ct(s){if(typeof Qe=="function"&&ut(s),kt&&typeof kt.setStrictMode=="function")try{kt.setStrictMode(At,s)}catch{}}var mt=Math.clz32?Math.clz32:$t,ft=Math.log,Bt=Math.LN2;function $t(s){return s>>>=0,s===0?32:31-(ft(s)/Bt|0)|0}var Gt=256,fn=4194304;function _n(s){var c=s&42;if(c!==0)return c;switch(s&-s){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 s&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return s&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return s}}function Bn(s,c,m){var E=s.pendingLanes;if(E===0)return 0;var C=0,M=s.suspendedLanes,G=s.pingedLanes;s=s.warmLanes;var te=E&134217727;return te!==0?(E=te&~M,E!==0?C=_n(E):(G&=te,G!==0?C=_n(G):m||(m=te&~s,m!==0&&(C=_n(m))))):(te=E&~M,te!==0?C=_n(te):G!==0?C=_n(G):m||(m=E&~s,m!==0&&(C=_n(m)))),C===0?0:c!==0&&c!==C&&(c&M)===0&&(M=C&-C,m=c&-c,M>=m||M===32&&(m&4194048)!==0)?c:C}function Et(s,c){return(s.pendingLanes&~(s.suspendedLanes&~s.pingedLanes)&c)===0}function Vr(s,c){switch(s){case 1:case 2:case 4:case 8:case 64:return c+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 c+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 lt(){var s=Gt;return Gt<<=1,(Gt&4194048)===0&&(Gt=256),s}function Sn(){var s=fn;return fn<<=1,(fn&62914560)===0&&(fn=4194304),s}function An(s){for(var c=[],m=0;31>m;m++)c.push(s);return c}function Yt(s,c){s.pendingLanes|=c,c!==268435456&&(s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0)}function bn(s,c,m,E,C,M){var G=s.pendingLanes;s.pendingLanes=m,s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0,s.expiredLanes&=m,s.entangledLanes&=m,s.errorRecoveryDisabledLanes&=m,s.shellSuspendCounter=0;var te=s.entanglements,de=s.expirationTimes,Ne=s.hiddenUpdates;for(m=G&~m;0<m;){var He=31-mt(m),We=1<<He;te[He]=0,de[He]=-1;var ke=Ne[He];if(ke!==null)for(Ne[He]=null,He=0;He<ke.length;He++){var Me=ke[He];Me!==null&&(Me.lane&=-536870913)}m&=~We}E!==0&&xt(s,E,0),M!==0&&C===0&&s.tag!==0&&(s.suspendedLanes|=M&~(G&~c))}function xt(s,c,m){s.pendingLanes|=c,s.suspendedLanes&=~c;var E=31-mt(c);s.entangledLanes|=c,s.entanglements[E]=s.entanglements[E]|1073741824|m&4194090}function St(s,c){var m=s.entangledLanes|=c;for(s=s.entanglements;m;){var E=31-mt(m),C=1<<E;C&c|s[E]&c&&(s[E]|=c),m&=~C}}function Qt(s){switch(s){case 2:s=1;break;case 8:s=4;break;case 32:s=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:s=128;break;case 268435456:s=134217728;break;default:s=0}return s}function Lt(s){return s&=-s,2<s?8<s?(s&134217727)!==0?32:268435456:8:2}function Rn(){var s=ue.p;return s!==0?s:(s=window.event,s===void 0?32:QL(s.type))}function Dt(s,c){var m=ue.p;try{return ue.p=s,c()}finally{ue.p=m}}var Jt=Math.random().toString(36).slice(2),It="__reactFiber$"+Jt,en="__reactProps$"+Jt,wi="__reactContainer$"+Jt,Qr="__reactEvents$"+Jt,Ci="__reactListeners$"+Jt,Xi="__reactHandles$"+Jt,Er="__reactResources$"+Jt,Dn="__reactMarker$"+Jt;function Kr(s){delete s[It],delete s[en],delete s[Qr],delete s[Ci],delete s[Xi]}function Br(s){var c=s[It];if(c)return c;for(var m=s.parentNode;m;){if(c=m[wi]||m[It]){if(m=c.alternate,c.child!==null||m!==null&&m.child!==null)for(s=LL(s);s!==null;){if(m=s[It])return m;s=LL(s)}return c}s=m,m=s.parentNode}return null}function zn(s){if(s=s[It]||s[wi]){var c=s.tag;if(c===5||c===6||c===13||c===26||c===27||c===3)return s}return null}function ma(s){var c=s.tag;if(c===5||c===26||c===27||c===6)return s.stateNode;throw Error(r(33))}function Zi(s){var c=s[Er];return c||(c=s[Er]={hoistableStyles:new Map,hoistableScripts:new Map}),c}function dn(s){s[Dn]=!0}var Xr=new Set,Ji={};function Bi(s,c){eo(s,c),eo(s+"Capture",c)}function eo(s,c){for(Ji[s]=c,s=0;s<c.length;s++)Xr.add(c[s])}var to=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]*$"),mo={},ui={};function qo(s){return dt.call(ui,s)?!0:dt.call(mo,s)?!1:to.test(s)?ui[s]=!0:(mo[s]=!0,!1)}function Oo(s,c,m){if(qo(c))if(m===null)s.removeAttribute(c);else{switch(typeof m){case"undefined":case"function":case"symbol":s.removeAttribute(c);return;case"boolean":var E=c.toLowerCase().slice(0,5);if(E!=="data-"&&E!=="aria-"){s.removeAttribute(c);return}}s.setAttribute(c,""+m)}}function Fn(s,c,m){if(m===null)s.removeAttribute(c);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(c);return}s.setAttribute(c,""+m)}}function ot(s,c,m,E){if(E===null)s.removeAttribute(m);else{switch(typeof E){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(m);return}s.setAttributeNS(c,m,""+E)}}var li,ko;function Jn(s){if(li===void 0)try{throw Error()}catch(m){var c=m.stack.trim().match(/\n( *(at )?)/);li=c&&c[1]||"",ko=-1<m.stack.indexOf(`
at`)?" (<anonymous>)":-1<m.stack.indexOf("@")?"@unknown:0:0":""}return`
`+li+s+ko}var Y=!1;function le(s,c){if(!s||Y)return"";Y=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var E={DetermineComponentFrameRoot:function(){try{if(c){var We=function(){throw Error()};if(Object.defineProperty(We.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(We,[])}catch(Me){var ke=Me}Reflect.construct(s,[],We)}else{try{We.call()}catch(Me){ke=Me}s.call(We.prototype)}}else{try{throw Error()}catch(Me){ke=Me}(We=s())&&typeof We.catch=="function"&&We.catch(function(){})}}catch(Me){if(Me&&ke&&typeof Me.stack=="string")return[Me.stack,ke.stack]}return[null,null]}};E.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var C=Object.getOwnPropertyDescriptor(E.DetermineComponentFrameRoot,"name");C&&C.configurable&&Object.defineProperty(E.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var M=E.DetermineComponentFrameRoot(),G=M[0],te=M[1];if(G&&te){var de=G.split(`
`),Ne=te.split(`
`);for(C=E=0;E<de.length&&!de[E].includes("DetermineComponentFrameRoot");)E++;for(;C<Ne.length&&!Ne[C].includes("DetermineComponentFrameRoot");)C++;if(E===de.length||C===Ne.length)for(E=de.length-1,C=Ne.length-1;1<=E&&0<=C&&de[E]!==Ne[C];)C--;for(;1<=E&&0<=C;E--,C--)if(de[E]!==Ne[C]){if(E!==1||C!==1)do if(E--,C--,0>C||de[E]!==Ne[C]){var He=`
`+de[E].replace(" at new "," at ");return s.displayName&&He.includes("<anonymous>")&&(He=He.replace("<anonymous>",s.displayName)),He}while(1<=E&&0<=C);break}}}finally{Y=!1,Error.prepareStackTrace=m}return(m=s?s.displayName||s.name:"")?Jn(m):""}function je(s){switch(s.tag){case 26:case 27:case 5:return Jn(s.type);case 16:return Jn("Lazy");case 13:return Jn("Suspense");case 19:return Jn("SuspenseList");case 0:case 15:return le(s.type,!1);case 11:return le(s.type.render,!1);case 1:return le(s.type,!0);case 31:return Jn("Activity");default:return""}}function Ye(s){try{var c="";do c+=je(s),s=s.return;while(s);return c}catch(m){return`
Error generating stack: `+m.message+`
`+m.stack}}function Ae(s){switch(typeof s){case"bigint":case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function tt(s){var c=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function tn(s){var c=tt(s)?"checked":"value",m=Object.getOwnPropertyDescriptor(s.constructor.prototype,c),E=""+s[c];if(!s.hasOwnProperty(c)&&typeof m<"u"&&typeof m.get=="function"&&typeof m.set=="function"){var C=m.get,M=m.set;return Object.defineProperty(s,c,{configurable:!0,get:function(){return C.call(this)},set:function(G){E=""+G,M.call(this,G)}}),Object.defineProperty(s,c,{enumerable:m.enumerable}),{getValue:function(){return E},setValue:function(G){E=""+G},stopTracking:function(){s._valueTracker=null,delete s[c]}}}}function qn(s){s._valueTracker||(s._valueTracker=tn(s))}function Ar(s){if(!s)return!1;var c=s._valueTracker;if(!c)return!0;var m=c.getValue(),E="";return s&&(E=tt(s)?s.checked?"true":"false":s.value),s=E,s!==m?(c.setValue(s),!0):!1}function $i(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}var ga=/[\n"\\]/g;function gt(s){return s.replace(ga,function(c){return"\\"+c.charCodeAt(0).toString(16)+" "})}function ru(s,c,m,E,C,M,G,te){s.name="",G!=null&&typeof G!="function"&&typeof G!="symbol"&&typeof G!="boolean"?s.type=G:s.removeAttribute("type"),c!=null?G==="number"?(c===0&&s.value===""||s.value!=c)&&(s.value=""+Ae(c)):s.value!==""+Ae(c)&&(s.value=""+Ae(c)):G!=="submit"&&G!=="reset"||s.removeAttribute("value"),c!=null?Ro(s,G,Ae(c)):m!=null?Ro(s,G,Ae(m)):E!=null&&s.removeAttribute("value"),C==null&&M!=null&&(s.defaultChecked=!!M),C!=null&&(s.checked=C&&typeof C!="function"&&typeof C!="symbol"),te!=null&&typeof te!="function"&&typeof te!="symbol"&&typeof te!="boolean"?s.name=""+Ae(te):s.removeAttribute("name")}function $s(s,c,m,E,C,M,G,te){if(M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"&&(s.type=M),c!=null||m!=null){if(!(M!=="submit"&&M!=="reset"||c!=null))return;m=m!=null?""+Ae(m):"",c=c!=null?""+Ae(c):m,te||c===s.value||(s.value=c),s.defaultValue=c}E=E??C,E=typeof E!="function"&&typeof E!="symbol"&&!!E,s.checked=te?s.checked:!!E,s.defaultChecked=!!E,G!=null&&typeof G!="function"&&typeof G!="symbol"&&typeof G!="boolean"&&(s.name=G)}function Ro(s,c,m){c==="number"&&$i(s.ownerDocument)===s||s.defaultValue===""+m||(s.defaultValue=""+m)}function $r(s,c,m,E){if(s=s.options,c){c={};for(var C=0;C<m.length;C++)c["$"+m[C]]=!0;for(m=0;m<s.length;m++)C=c.hasOwnProperty("$"+s[m].value),s[m].selected!==C&&(s[m].selected=C),C&&E&&(s[m].defaultSelected=!0)}else{for(m=""+Ae(m),c=null,C=0;C<s.length;C++){if(s[C].value===m){s[C].selected=!0,E&&(s[C].defaultSelected=!0);return}c!==null||s[C].disabled||(c=s[C])}c!==null&&(c.selected=!0)}}function zu(s,c,m){if(c!=null&&(c=""+Ae(c),c!==s.value&&(s.value=c),m==null)){s.defaultValue!==c&&(s.defaultValue=c);return}s.defaultValue=m!=null?""+Ae(m):""}function qu(s,c,m,E){if(c==null){if(E!=null){if(m!=null)throw Error(r(92));if(H(E)){if(1<E.length)throw Error(r(93));E=E[0]}m=E}m==null&&(m=""),c=m}m=Ae(c),s.defaultValue=m,E=s.textContent,E===m&&E!==""&&E!==null&&(s.value=E)}function _i(s,c){if(c){var m=s.firstChild;if(m&&m===s.lastChild&&m.nodeType===3){m.nodeValue=c;return}}s.textContent=c}var Us=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 Hs(s,c,m){var E=c.indexOf("--")===0;m==null||typeof m=="boolean"||m===""?E?s.setProperty(c,""):c==="float"?s.cssFloat="":s[c]="":E?s.setProperty(c,m):typeof m!="number"||m===0||Us.has(c)?c==="float"?s.cssFloat=m:s[c]=(""+m).trim():s[c]=m+"px"}function va(s,c,m){if(c!=null&&typeof c!="object")throw Error(r(62));if(s=s.style,m!=null){for(var E in m)!m.hasOwnProperty(E)||c!=null&&c.hasOwnProperty(E)||(E.indexOf("--")===0?s.setProperty(E,""):E==="float"?s.cssFloat="":s[E]="");for(var C in c)E=c[C],c.hasOwnProperty(C)&&m[C]!==E&&Hs(s,C,E)}else for(var M in c)c.hasOwnProperty(M)&&Hs(s,M,c[M])}function nn(s){if(s.indexOf("-")===-1)return!1;switch(s){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 er=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"]]),Zr=/^[\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 Ai(s){return Zr.test(""+s)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":s}var Go=null;function Df(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var Gu=null,go=null;function Oy(s){var c=zn(s);if(c&&(s=c.stateNode)){var m=s[en]||null;e:switch(s=c.stateNode,c.type){case"input":if(ru(s,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name),c=m.name,m.type==="radio"&&c!=null){for(m=s;m.parentNode;)m=m.parentNode;for(m=m.querySelectorAll('input[name="'+gt(""+c)+'"][type="radio"]'),c=0;c<m.length;c++){var E=m[c];if(E!==s&&E.form===s.form){var C=E[en]||null;if(!C)throw Error(r(90));ru(E,C.value,C.defaultValue,C.defaultValue,C.checked,C.defaultChecked,C.type,C.name)}}for(c=0;c<m.length;c++)E=m[c],E.form===s.form&&Ar(E)}break e;case"textarea":zu(s,m.value,m.defaultValue);break e;case"select":c=m.value,c!=null&&$r(s,!!m.multiple,c,!1)}}}var vm=!1;function Nf(s,c,m){if(vm)return s(c,m);vm=!0;try{var E=s(c);return E}finally{if(vm=!1,(Gu!==null||go!==null)&&(_b(),Gu&&(c=Gu,s=go,go=Gu=null,Oy(c),s)))for(c=0;c<s.length;c++)Oy(s[c])}}function ya(s,c){var m=s.stateNode;if(m===null)return null;var E=m[en]||null;if(E===null)return null;m=E[c];e:switch(c){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(E=!E.disabled)||(s=s.type,E=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!E;break e;default:s=!1}if(s)return null;if(m&&typeof m!="function")throw Error(r(231,c,typeof m));return m}var ba=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ym=!1;if(ba)try{var Of={};Object.defineProperty(Of,"passive",{get:function(){ym=!0}}),window.addEventListener("test",Of,Of),window.removeEventListener("test",Of,Of)}catch{ym=!1}var iu=null,kf=null,Rf=null;function ky(){if(Rf)return Rf;var s,c=kf,m=c.length,E,C="value"in iu?iu.value:iu.textContent,M=C.length;for(s=0;s<m&&c[s]===C[s];s++);var G=m-s;for(E=1;E<=G&&c[m-E]===C[M-E];E++);return Rf=C.slice(s,1<E?1-E:void 0)}function Mf(s){var c=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&c===13&&(s=13)):s=c,s===10&&(s=13),32<=s||s===13?s:0}function Lf(){return!0}function If(){return!1}function Di(s){function c(m,E,C,M,G){this._reactName=m,this._targetInst=C,this.type=E,this.nativeEvent=M,this.target=G,this.currentTarget=null;for(var te in s)s.hasOwnProperty(te)&&(m=s[te],this[te]=m?m(M):M[te]);return this.isDefaultPrevented=(M.defaultPrevented!=null?M.defaultPrevented:M.returnValue===!1)?Lf:If,this.isPropagationStopped=If,this}return p(c.prototype,{preventDefault:function(){this.defaultPrevented=!0;var m=this.nativeEvent;m&&(m.preventDefault?m.preventDefault():typeof m.returnValue!="unknown"&&(m.returnValue=!1),this.isDefaultPrevented=Lf)},stopPropagation:function(){var m=this.nativeEvent;m&&(m.stopPropagation?m.stopPropagation():typeof m.cancelBubble!="unknown"&&(m.cancelBubble=!0),this.isPropagationStopped=Lf)},persist:function(){},isPersistent:Lf}),c}var Ea={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ff=Di(Ea),jl=p({},Ea,{view:0,detail:0}),bh=Di(jl),bm,Eh,no,xh=p({},jl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tm,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==no&&(no&&s.type==="mousemove"?(bm=s.screenX-no.screenX,Eh=s.screenY-no.screenY):Eh=bm=0,no=s),bm)},movementY:function(s){return"movementY"in s?s.movementY:Eh}}),Ry=Di(xh),Em=p({},xh,{dataTransfer:0}),My=Di(Em),ou=p({},jl,{relatedTarget:0}),Pf=Di(ou),xa=p({},Ea,{animationName:0,elapsedTime:0,pseudoElement:0}),Th=Di(xa),xm=p({},Ea,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),Vl=Di(xm),k3=p({},Ea,{data:0}),Ly=Di(k3),R3={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},M3={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"},Iy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Fy(s){var c=this.nativeEvent;return c.getModifierState?c.getModifierState(s):(s=Iy[s])?!!c[s]:!1}function Tm(){return Fy}var L3=p({},jl,{key:function(s){if(s.key){var c=R3[s.key]||s.key;if(c!=="Unidentified")return c}return s.type==="keypress"?(s=Mf(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?M3[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tm,charCode:function(s){return s.type==="keypress"?Mf(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?Mf(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),I3=Di(L3),F3=p({},xh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Sm=Di(F3),P3=p({},jl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tm}),Py=Di(P3),Sh=p({},Ea,{propertyName:0,elapsedTime:0,pseudoElement:0}),Bl=Di(Sh),j3=p({},xh,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),V3=Di(j3),B3=p({},Ea,{newState:0,oldState:0}),jf=Di(B3),Jr=[9,13,27,32],wm=ba&&"CompositionEvent"in window,$l=null;ba&&"documentMode"in document&&($l=document.documentMode);var Vf=ba&&"TextEvent"in window&&!$l,jy=ba&&(!wm||$l&&8<$l&&11>=$l),Cm=" ",Vy=!1;function wh(s,c){switch(s){case"keyup":return Jr.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _m(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var Ul=!1;function $3(s,c){switch(s){case"compositionend":return _m(c);case"keypress":return c.which!==32?null:(Vy=!0,Cm);case"textInput":return s=c.data,s===Cm&&Vy?null:s;default:return null}}function By(s,c){if(Ul)return s==="compositionend"||!wm&&wh(s,c)?(s=ky(),Rf=kf=iu=null,Ul=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1<c.char.length)return c.char;if(c.which)return String.fromCharCode(c.which)}return null;case"compositionend":return jy&&c.locale!=="ko"?null:c.data;default:return null}}var $y={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 Uy(s){var c=s&&s.nodeName&&s.nodeName.toLowerCase();return c==="input"?!!$y[s.type]:c==="textarea"}function Hl(s,c,m,E){Gu?go?go.push(E):go=[E]:Gu=E,c=Rb(c,"onChange"),0<c.length&&(m=new Ff("onChange","change",null,m,E),s.push({event:m,listeners:c}))}var Mo=null,su=null;function Am(s){wL(s,0)}function Bf(s){var c=ma(s);if(Ar(c))return s}function fs(s,c){if(s==="change")return c}var au=!1;if(ba){var $f;if(ba){var Dm="oninput"in document;if(!Dm){var Nm=document.createElement("div");Nm.setAttribute("oninput","return;"),Dm=typeof Nm.oninput=="function"}$f=Dm}else $f=!1;au=$f&&(!document.documentMode||9<document.documentMode)}function Hy(){Mo&&(Mo.detachEvent("onpropertychange",Om),su=Mo=null)}function Om(s){if(s.propertyName==="value"&&Bf(su)){var c=[];Hl(c,su,s,Df(s)),Nf(Am,c)}}function km(s,c,m){s==="focusin"?(Hy(),Mo=c,su=m,Mo.attachEvent("onpropertychange",Om)):s==="focusout"&&Hy()}function zl(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return Bf(su)}function zs(s,c){if(s==="click")return Bf(c)}function zy(s,c){if(s==="input"||s==="change")return Bf(c)}function qy(s,c){return s===c&&(s!==0||1/s===1/c)||s!==s&&c!==c}var Lo=typeof Object.is=="function"?Object.is:qy;function Uf(s,c){if(Lo(s,c))return!0;if(typeof s!="object"||s===null||typeof c!="object"||c===null)return!1;var m=Object.keys(s),E=Object.keys(c);if(m.length!==E.length)return!1;for(E=0;E<m.length;E++){var C=m[E];if(!dt.call(c,C)||!Lo(s[C],c[C]))return!1}return!0}function Gy(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function Rm(s,c){var m=Gy(s);s=0;for(var E;m;){if(m.nodeType===3){if(E=s+m.textContent.length,s<=c&&E>=c)return{node:m,offset:c-s};s=E}e:{for(;m;){if(m.nextSibling){m=m.nextSibling;break e}m=m.parentNode}m=void 0}m=Gy(m)}}function Mm(s,c){return s&&c?s===c?!0:s&&s.nodeType===3?!1:c&&c.nodeType===3?Mm(s,c.parentNode):"contains"in s?s.contains(c):s.compareDocumentPosition?!!(s.compareDocumentPosition(c)&16):!1:!1}function ql(s){s=s!=null&&s.ownerDocument!=null&&s.ownerDocument.defaultView!=null?s.ownerDocument.defaultView:window;for(var c=$i(s.document);c instanceof s.HTMLIFrameElement;){try{var m=typeof c.contentWindow.location.href=="string"}catch{m=!1}if(m)s=c.contentWindow;else break;c=$i(s.document)}return c}function Ch(s){var c=s&&s.nodeName&&s.nodeName.toLowerCase();return c&&(c==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||c==="textarea"||s.contentEditable==="true")}var Wy=ba&&"documentMode"in document&&11>=document.documentMode,uu=null,Gl=null,Wl=null,Yl=!1;function Wo(s,c,m){var E=m.window===m?m.document:m.nodeType===9?m:m.ownerDocument;Yl||uu==null||uu!==$i(E)||(E=uu,"selectionStart"in E&&Ch(E)?E={start:E.selectionStart,end:E.selectionEnd}:(E=(E.ownerDocument&&E.ownerDocument.defaultView||window).getSelection(),E={anchorNode:E.anchorNode,anchorOffset:E.anchorOffset,focusNode:E.focusNode,focusOffset:E.focusOffset}),Wl&&Uf(Wl,E)||(Wl=E,E=Rb(Gl,"onSelect"),0<E.length&&(c=new Ff("onSelect","select",null,c,m),s.push({event:c,listeners:E}),c.target=uu)))}function lu(s,c){var m={};return m[s.toLowerCase()]=c.toLowerCase(),m["Webkit"+s]="webkit"+c,m["Moz"+s]="moz"+c,m}var cu={animationend:lu("Animation","AnimationEnd"),animationiteration:lu("Animation","AnimationIteration"),animationstart:lu("Animation","AnimationStart"),transitionrun:lu("Transition","TransitionRun"),transitionstart:lu("Transition","TransitionStart"),transitioncancel:lu("Transition","TransitionCancel"),transitionend:lu("Transition","TransitionEnd")},Hf={},Lm={};ba&&(Lm=document.createElement("div").style,"AnimationEvent"in window||(delete cu.animationend.animation,delete cu.animationiteration.animation,delete cu.animationstart.animation),"TransitionEvent"in window||delete cu.transitionend.transition);function fu(s){if(Hf[s])return Hf[s];if(!cu[s])return s;var c=cu[s],m;for(m in c)if(c.hasOwnProperty(m)&&m in Lm)return Hf[s]=c[m];return s}var _h=fu("animationend"),Yy=fu("animationiteration"),Qy=fu("animationstart"),U3=fu("transitionrun"),Wu=fu("transitionstart"),Ql=fu("transitioncancel"),Yu=fu("transitionend"),Ah=new Map,zf="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(" ");zf.push("scrollEnd");function Yo(s,c){Ah.set(s,c),Bi(c,[s])}var Dh=new WeakMap;function ci(s,c){if(typeof s=="object"&&s!==null){var m=Dh.get(s);return m!==void 0?m:(c={value:s,source:c,stack:Ye(c)},Dh.set(s,c),c)}return{value:s,source:c,stack:Ye(c)}}var fi=[],Ur=0,qs=0;function ds(){for(var s=Ur,c=qs=Ur=0;c<s;){var m=fi[c];fi[c++]=null;var E=fi[c];fi[c++]=null;var C=fi[c];fi[c++]=null;var M=fi[c];if(fi[c++]=null,E!==null&&C!==null){var G=E.pending;G===null?C.next=C:(C.next=G.next,G.next=C),E.pending=C}M!==0&&Kl(m,C,M)}}function Qu(s,c,m,E){fi[Ur++]=s,fi[Ur++]=c,fi[Ur++]=m,fi[Ur++]=E,qs|=E,s.lanes|=E,s=s.alternate,s!==null&&(s.lanes|=E)}function Im(s,c,m,E){return Qu(s,c,m,E),qf(s)}function Ku(s,c){return Qu(s,null,null,c),qf(s)}function Kl(s,c,m){s.lanes|=m;var E=s.alternate;E!==null&&(E.lanes|=m);for(var C=!1,M=s.return;M!==null;)M.childLanes|=m,E=M.alternate,E!==null&&(E.childLanes|=m),M.tag===22&&(s=M.stateNode,s===null||s._visibility&1||(C=!0)),s=M,M=M.return;return s.tag===3?(M=s.stateNode,C&&c!==null&&(C=31-mt(m),s=M.hiddenUpdates,E=s[C],E===null?s[C]=[c]:E.push(c),c.lane=m|536870912),M):null}function qf(s){if(50<vg)throw vg=0,tw=null,Error(r(185));for(var c=s.return;c!==null;)s=c,c=s.return;return s.tag===3?s.stateNode:null}var du={};function Nh(s,c,m,E){this.tag=s,this.key=m,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=c,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=E,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Io(s,c,m,E){return new Nh(s,c,m,E)}function Gf(s){return s=s.prototype,!(!s||!s.isReactComponent)}function Gs(s,c){var m=s.alternate;return m===null?(m=Io(s.tag,c,s.key,s.mode),m.elementType=s.elementType,m.type=s.type,m.stateNode=s.stateNode,m.alternate=s,s.alternate=m):(m.pendingProps=c,m.type=s.type,m.flags=0,m.subtreeFlags=0,m.deletions=null),m.flags=s.flags&65011712,m.childLanes=s.childLanes,m.lanes=s.lanes,m.child=s.child,m.memoizedProps=s.memoizedProps,m.memoizedState=s.memoizedState,m.updateQueue=s.updateQueue,c=s.dependencies,m.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},m.sibling=s.sibling,m.index=s.index,m.ref=s.ref,m.refCleanup=s.refCleanup,m}function Oh(s,c){s.flags&=65011714;var m=s.alternate;return m===null?(s.childLanes=0,s.lanes=c,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=m.childLanes,s.lanes=m.lanes,s.child=m.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=m.memoizedProps,s.memoizedState=m.memoizedState,s.updateQueue=m.updateQueue,s.type=m.type,c=m.dependencies,s.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext}),s}function Xl(s,c,m,E,C,M){var G=0;if(E=s,typeof s=="function")Gf(s)&&(G=1);else if(typeof s=="string")G=Rle(s,m,ae.current)?26:s==="html"||s==="head"||s==="body"?27:5;else e:switch(s){case B:return s=Io(31,m,c,C),s.elementType=B,s.lanes=M,s;case S:return Qo(m.children,C,M,c);case w:G=8,C|=24;break;case k:return s=Io(12,m,c,C|2),s.elementType=k,s.lanes=M,s;case L:return s=Io(13,m,c,C),s.elementType=L,s.lanes=M,s;case P:return s=Io(19,m,c,C),s.elementType=P,s.lanes=M,s;default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case _:case O:G=10;break e;case N:G=9;break e;case A:G=11;break e;case j:G=14;break e;case F:G=16,E=null;break e}G=29,m=Error(r(130,s===null?"null":typeof s,"")),E=null}return c=Io(G,m,c,C),c.elementType=s,c.type=E,c.lanes=M,c}function Qo(s,c,m,E){return s=Io(7,s,E,c),s.lanes=m,s}function Zl(s,c,m){return s=Io(6,s,null,c),s.lanes=m,s}function kh(s,c,m){return c=Io(4,s.children!==null?s.children:[],s.key,c),c.lanes=m,c.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},c}var Ta=[],Jl=0,Rh=null,Mh=0,vo=[],yo=0,Ko=null,Fo=1,Sa="";function Ws(s,c){Ta[Jl++]=Mh,Ta[Jl++]=Rh,Rh=s,Mh=c}function Fm(s,c,m){vo[yo++]=Fo,vo[yo++]=Sa,vo[yo++]=Ko,Ko=s;var E=Fo;s=Sa;var C=32-mt(E)-1;E&=~(1<<C),m+=1;var M=32-mt(c)+C;if(30<M){var G=C-C%5;M=(E&(1<<G)-1).toString(32),E>>=G,C-=G,Fo=1<<32-mt(c)+C|m<<C|E,Sa=M+s}else Fo=1<<M|m<<C|E,Sa=s}function Xu(s){s.return!==null&&(Ws(s,1),Fm(s,1,0))}function Lh(s){for(;s===Rh;)Rh=Ta[--Jl],Ta[Jl]=null,Mh=Ta[--Jl],Ta[Jl]=null;for(;s===Ko;)Ko=vo[--yo],vo[yo]=null,Sa=vo[--yo],vo[yo]=null,Fo=vo[--yo],vo[yo]=null}var Dr=null,Gn=null,un=!1,hs=null,ro=!1,Ih=Error(r(519));function hu(s){var c=Error(r(418,""));throw Wf(ci(c,s)),Ih}function Pm(s){var c=s.stateNode,m=s.type,E=s.memoizedProps;switch(c[It]=s,c[en]=E,m){case"dialog":pn("cancel",c),pn("close",c);break;case"iframe":case"object":case"embed":pn("load",c);break;case"video":case"audio":for(m=0;m<bg.length;m++)pn(bg[m],c);break;case"source":pn("error",c);break;case"img":case"image":case"link":pn("error",c),pn("load",c);break;case"details":pn("toggle",c);break;case"input":pn("invalid",c),$s(c,E.value,E.defaultValue,E.checked,E.defaultChecked,E.type,E.name,!0),qn(c);break;case"select":pn("invalid",c);break;case"textarea":pn("invalid",c),qu(c,E.value,E.defaultValue,E.children),qn(c)}m=E.children,typeof m!="string"&&typeof m!="number"&&typeof m!="bigint"||c.textContent===""+m||E.suppressHydrationWarning===!0||DL(c.textContent,m)?(E.popover!=null&&(pn("beforetoggle",c),pn("toggle",c)),E.onScroll!=null&&pn("scroll",c),E.onScrollEnd!=null&&pn("scrollend",c),E.onClick!=null&&(c.onclick=Mb),c=!0):c=!1,c||hu(s)}function Ky(s){for(Dr=s.return;Dr;)switch(Dr.tag){case 5:case 13:ro=!1;return;case 27:case 3:ro=!0;return;default:Dr=Dr.return}}function ps(s){if(s!==Dr)return!1;if(!un)return Ky(s),un=!0,!1;var c=s.tag,m;if((m=c!==3&&c!==27)&&((m=c===5)&&(m=s.type,m=!(m!=="form"&&m!=="button")||vw(s.type,s.memoizedProps)),m=!m),m&&Gn&&hu(s),Ky(s),c===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));e:{for(s=s.nextSibling,c=0;s;){if(s.nodeType===8)if(m=s.data,m==="/$"){if(c===0){Gn=La(s.nextSibling);break e}c--}else m!=="$"&&m!=="$!"&&m!=="$?"||c++;s=s.nextSibling}Gn=null}}else c===27?(c=Gn,Lc(s.type)?(s=xw,xw=null,Gn=s):Gn=c):Gn=Dr?La(s.stateNode.nextSibling):null;return!0}function ms(){Gn=Dr=null,un=!1}function Xy(){var s=hs;return s!==null&&(es===null?es=s:es.push.apply(es,s),hs=null),s}function Wf(s){hs===null?hs=[s]:hs.push(s)}var jm=he(null),Zu=null,wa=null;function pu(s,c,m){fe(jm,c._currentValue),c._currentValue=m}function xr(s){s._currentValue=jm.current,se(jm)}function Nr(s,c,m){for(;s!==null;){var E=s.alternate;if((s.childLanes&c)!==c?(s.childLanes|=c,E!==null&&(E.childLanes|=c)):E!==null&&(E.childLanes&c)!==c&&(E.childLanes|=c),s===m)break;s=s.return}}function di(s,c,m,E){var C=s.child;for(C!==null&&(C.return=s);C!==null;){var M=C.dependencies;if(M!==null){var G=C.child;M=M.firstContext;e:for(;M!==null;){var te=M;M=C;for(var de=0;de<c.length;de++)if(te.context===c[de]){M.lanes|=m,te=M.alternate,te!==null&&(te.lanes|=m),Nr(M.return,m,s),E||(G=null);break e}M=te.next}}else if(C.tag===18){if(G=C.return,G===null)throw Error(r(341));G.lanes|=m,M=G.alternate,M!==null&&(M.lanes|=m),Nr(G,m,s),G=null}else G=C.child;if(G!==null)G.return=C;else for(G=C;G!==null;){if(G===s){G=null;break}if(C=G.sibling,C!==null){C.return=G.return,G=C;break}G=G.return}C=G}}function pr(s,c,m,E){s=null;for(var C=c,M=!1;C!==null;){if(!M){if((C.flags&524288)!==0)M=!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 te=C.type;Lo(C.pendingProps.value,G.value)||(s!==null?s.push(te):s=[te])}}else if(C===xe.current){if(G=C.alternate,G===null)throw Error(r(387));G.memoizedState.memoizedState!==C.memoizedState.memoizedState&&(s!==null?s.push(Cg):s=[Cg])}C=C.return}s!==null&&di(c,s,m,E),c.flags|=262144}function mu(s){for(s=s.firstContext;s!==null;){if(!Lo(s.context._currentValue,s.memoizedValue))return!0;s=s.next}return!1}function Ju(s){Zu=s,wa=null,s=s.dependencies,s!==null&&(s.firstContext=null)}function ei(s){return Zy(Zu,s)}function Fh(s,c){return Zu===null&&Ju(s),Zy(s,c)}function Zy(s,c){var m=c._currentValue;if(c={context:c,memoizedValue:m,next:null},wa===null){if(s===null)throw Error(r(308));wa=c,s.dependencies={lanes:0,firstContext:c},s.flags|=524288}else wa=wa.next=c;return m}var H3=typeof AbortController<"u"?AbortController:function(){var s=[],c=this.signal={aborted:!1,addEventListener:function(m,E){s.push(E)}};this.abort=function(){c.aborted=!0,s.forEach(function(m){return m()})}},Vm=e.unstable_scheduleCallback,Jy=e.unstable_NormalPriority,Or={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Bm(){return{controller:new H3,data:new Map,refCount:0}}function el(s){s.refCount--,s.refCount===0&&Vm(Jy,function(){s.controller.abort()})}var tl=null,Ph=0,nl=0,gu=null;function eb(s,c){if(tl===null){var m=tl=[];Ph=0,nl=uw(),gu={status:"pending",value:void 0,then:function(E){m.push(E)}}}return Ph++,c.then(ec,ec),c}function ec(){if(--Ph===0&&tl!==null){gu!==null&&(gu.status="fulfilled");var s=tl;tl=null,nl=0,gu=null;for(var c=0;c<s.length;c++)(0,s[c])()}}function z3(s,c){var m=[],E={status:"pending",value:null,reason:null,then:function(C){m.push(C)}};return s.then(function(){E.status="fulfilled",E.value=c;for(var C=0;C<m.length;C++)(0,m[C])(c)},function(C){for(E.status="rejected",E.reason=C,C=0;C<m.length;C++)(0,m[C])(void 0)}),E}var Yf=J.S;J.S=function(s,c){typeof c=="object"&&c!==null&&typeof c.then=="function"&&eb(s,c),Yf!==null&&Yf(s,c)};var io=he(null);function jh(){var s=io.current;return s!==null?s:ur.pooledCache}function Vh(s,c){c===null?fe(io,io.current):fe(io,c.pool)}function $m(){var s=jh();return s===null?null:{parent:Or._currentValue,pool:s}}var Ni=Error(r(460)),wn=Error(r(474)),bo=Error(r(542)),Ys={then:function(){}};function Ca(s){return s=s.status,s==="fulfilled"||s==="rejected"}function Qf(){}function Bh(s,c,m){switch(m=s[m],m===void 0?s.push(c):m!==c&&(c.then(Qf,Qf),c=m),c.status){case"fulfilled":return c.value;case"rejected":throw s=c.reason,$h(s),s;default:if(typeof c.status=="string")c.then(Qf,Qf);else{if(s=ur,s!==null&&100<s.shellSuspendCounter)throw Error(r(482));s=c,s.status="pending",s.then(function(E){if(c.status==="pending"){var C=c;C.status="fulfilled",C.value=E}},function(E){if(c.status==="pending"){var C=c;C.status="rejected",C.reason=E}})}switch(c.status){case"fulfilled":return c.value;case"rejected":throw s=c.reason,$h(s),s}throw tc=c,Ni}}var tc=null;function tb(){if(tc===null)throw Error(r(459));var s=tc;return tc=null,s}function $h(s){if(s===Ni||s===bo)throw Error(r(483))}var Xo=!1;function Uh(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Kf(s,c){s=s.updateQueue,c.updateQueue===s&&(c.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,callbacks:null})}function oo(s){return{lane:s,tag:0,payload:null,callback:null,next:null}}function _a(s,c,m){var E=s.updateQueue;if(E===null)return null;if(E=E.shared,($n&2)!==0){var C=E.pending;return C===null?c.next=c:(c.next=C.next,C.next=c),E.pending=c,c=qf(s),Kl(s,null,m),c}return Qu(s,E,c,m),qf(s)}function nc(s,c,m){if(c=c.updateQueue,c!==null&&(c=c.shared,(m&4194048)!==0)){var E=c.lanes;E&=s.pendingLanes,m|=E,c.lanes=m,St(s,m)}}function Um(s,c){var m=s.updateQueue,E=s.alternate;if(E!==null&&(E=E.updateQueue,m===E)){var C=null,M=null;if(m=m.firstBaseUpdate,m!==null){do{var G={lane:m.lane,tag:m.tag,payload:m.payload,callback:null,next:null};M===null?C=M=G:M=M.next=G,m=m.next}while(m!==null);M===null?C=M=c:M=M.next=c}else C=M=c;m={baseState:E.baseState,firstBaseUpdate:C,lastBaseUpdate:M,shared:E.shared,callbacks:E.callbacks},s.updateQueue=m;return}s=m.lastBaseUpdate,s===null?m.firstBaseUpdate=c:s.next=c,m.lastBaseUpdate=c}var rc=!1;function rl(){if(rc){var s=gu;if(s!==null)throw s}}function ic(s,c,m,E){rc=!1;var C=s.updateQueue;Xo=!1;var M=C.firstBaseUpdate,G=C.lastBaseUpdate,te=C.shared.pending;if(te!==null){C.shared.pending=null;var de=te,Ne=de.next;de.next=null,G===null?M=Ne:G.next=Ne,G=de;var He=s.alternate;He!==null&&(He=He.updateQueue,te=He.lastBaseUpdate,te!==G&&(te===null?He.firstBaseUpdate=Ne:te.next=Ne,He.lastBaseUpdate=de))}if(M!==null){var We=C.baseState;G=0,He=Ne=de=null,te=M;do{var ke=te.lane&-536870913,Me=ke!==te.lane;if(Me?(kn&ke)===ke:(E&ke)===ke){ke!==0&&ke===nl&&(rc=!0),He!==null&&(He=He.next={lane:0,tag:te.tag,payload:te.payload,callback:null,next:null});e:{var Vt=s,Nt=te;ke=c;var Qn=m;switch(Nt.tag){case 1:if(Vt=Nt.payload,typeof Vt=="function"){We=Vt.call(Qn,We,ke);break e}We=Vt;break e;case 3:Vt.flags=Vt.flags&-65537|128;case 0:if(Vt=Nt.payload,ke=typeof Vt=="function"?Vt.call(Qn,We,ke):Vt,ke==null)break e;We=p({},We,ke);break e;case 2:Xo=!0}}ke=te.callback,ke!==null&&(s.flags|=64,Me&&(s.flags|=8192),Me=C.callbacks,Me===null?C.callbacks=[ke]:Me.push(ke))}else Me={lane:ke,tag:te.tag,payload:te.payload,callback:te.callback,next:null},He===null?(Ne=He=Me,de=We):He=He.next=Me,G|=ke;if(te=te.next,te===null){if(te=C.shared.pending,te===null)break;Me=te,te=Me.next,Me.next=null,C.lastBaseUpdate=Me,C.shared.pending=null}}while(!0);He===null&&(de=We),C.baseState=de,C.firstBaseUpdate=Ne,C.lastBaseUpdate=He,M===null&&(C.shared.lanes=0),Oc|=G,s.lanes=G,s.memoizedState=We}}function nb(s,c){if(typeof s!="function")throw Error(r(191,s));s.call(c)}function Hm(s,c){var m=s.callbacks;if(m!==null)for(s.callbacks=null,s=0;s<m.length;s++)nb(m[s],c)}var oc=he(null),Hh=he(0);function Xf(s,c){s=cl,fe(Hh,s),fe(oc,c),cl=s|c.baseLanes}function zh(){fe(Hh,cl),fe(oc,oc.current)}function zm(){cl=Hh.current,se(oc),se(Hh)}var vu=0,Xt=null,Cn=null,Tr=null,il=!1,ol=!1,Aa=!1,Zf=0,Jf=0,sl=null,Oi=0;function sr(){throw Error(r(321))}function qh(s,c){if(c===null)return!1;for(var m=0;m<c.length&&m<s.length;m++)if(!Lo(s[m],c[m]))return!1;return!0}function Gh(s,c,m,E,C,M){return vu=M,Xt=c,c.memoizedState=null,c.updateQueue=null,c.lanes=0,J.H=s===null||s.memoizedState===null?hb:sp,Aa=!1,M=m(E,C),Aa=!1,ol&&(M=al(c,m,E,C)),qm(s),M}function qm(s){J.H=od;var c=Cn!==null&&Cn.next!==null;if(vu=0,Tr=Cn=Xt=null,il=!1,Jf=0,sl=null,c)throw Error(r(300));s===null||Hr||(s=s.dependencies,s!==null&&mu(s)&&(Hr=!0))}function al(s,c,m,E){Xt=s;var C=0;do{if(ol&&(sl=null),Jf=0,ol=!1,25<=C)throw Error(r(301));if(C+=1,Tr=Cn=null,s.updateQueue!=null){var M=s.updateQueue;M.lastEffect=null,M.events=null,M.stores=null,M.memoCache!=null&&(M.memoCache.index=0)}J.H=pb,M=c(m,E)}while(ol);return M}function Wh(){var s=J.H,c=s.useState()[0];return c=typeof c.then=="function"?ac(c):c,s=s.useState()[0],(Cn!==null?Cn.memoizedState:null)!==s&&(Xt.flags|=1024),c}function Yh(){var s=Zf!==0;return Zf=0,s}function Qh(s,c,m){c.updateQueue=s.updateQueue,c.flags&=-2053,s.lanes&=~m}function Kh(s){if(il){for(s=s.memoizedState;s!==null;){var c=s.queue;c!==null&&(c.pending=null),s=s.next}il=!1}vu=0,Tr=Cn=Xt=null,ol=!1,Jf=Zf=0,sl=null}function ti(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Tr===null?Xt.memoizedState=Tr=s:Tr=Tr.next=s,Tr}function kr(){if(Cn===null){var s=Xt.alternate;s=s!==null?s.memoizedState:null}else s=Cn.next;var c=Tr===null?Xt.memoizedState:Tr.next;if(c!==null)Tr=c,Cn=s;else{if(s===null)throw Xt.alternate===null?Error(r(467)):Error(r(310));Cn=s,s={memoizedState:Cn.memoizedState,baseState:Cn.baseState,baseQueue:Cn.baseQueue,queue:Cn.queue,next:null},Tr===null?Xt.memoizedState=Tr=s:Tr=Tr.next=s}return Tr}function sc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ac(s){var c=Jf;return Jf+=1,sl===null&&(sl=[]),s=Bh(sl,s,c),c=Xt,(Tr===null?c.memoizedState:Tr.next)===null&&(c=c.alternate,J.H=c===null||c.memoizedState===null?hb:sp),s}function yu(s){if(s!==null&&typeof s=="object"){if(typeof s.then=="function")return ac(s);if(s.$$typeof===O)return ei(s)}throw Error(r(438,String(s)))}function Gm(s){var c=null,m=Xt.updateQueue;if(m!==null&&(c=m.memoCache),c==null){var E=Xt.alternate;E!==null&&(E=E.updateQueue,E!==null&&(E=E.memoCache,E!=null&&(c={data:E.data.map(function(C){return C.slice()}),index:0})))}if(c==null&&(c={data:[],index:0}),m===null&&(m=sc(),Xt.updateQueue=m),m.memoCache=c,m=c.data[c.index],m===void 0)for(m=c.data[c.index]=Array(s),E=0;E<s;E++)m[E]=q;return c.index++,m}function Eo(s,c){return typeof c=="function"?c(s):c}function ed(s){var c=kr();return Xh(c,Cn,s)}function Xh(s,c,m){var E=s.queue;if(E===null)throw Error(r(311));E.lastRenderedReducer=m;var C=s.baseQueue,M=E.pending;if(M!==null){if(C!==null){var G=C.next;C.next=M.next,M.next=G}c.baseQueue=C=M,E.pending=null}if(M=s.baseState,C===null)s.memoizedState=M;else{c=C.next;var te=G=null,de=null,Ne=c,He=!1;do{var We=Ne.lane&-536870913;if(We!==Ne.lane?(kn&We)===We:(vu&We)===We){var ke=Ne.revertLane;if(ke===0)de!==null&&(de=de.next={lane:0,revertLane:0,action:Ne.action,hasEagerState:Ne.hasEagerState,eagerState:Ne.eagerState,next:null}),We===nl&&(He=!0);else if((vu&ke)===ke){Ne=Ne.next,ke===nl&&(He=!0);continue}else We={lane:0,revertLane:Ne.revertLane,action:Ne.action,hasEagerState:Ne.hasEagerState,eagerState:Ne.eagerState,next:null},de===null?(te=de=We,G=M):de=de.next=We,Xt.lanes|=ke,Oc|=ke;We=Ne.action,Aa&&m(M,We),M=Ne.hasEagerState?Ne.eagerState:m(M,We)}else ke={lane:We,revertLane:Ne.revertLane,action:Ne.action,hasEagerState:Ne.hasEagerState,eagerState:Ne.eagerState,next:null},de===null?(te=de=ke,G=M):de=de.next=ke,Xt.lanes|=We,Oc|=We;Ne=Ne.next}while(Ne!==null&&Ne!==c);if(de===null?G=M:de.next=te,!Lo(M,s.memoizedState)&&(Hr=!0,He&&(m=gu,m!==null)))throw m;s.memoizedState=M,s.baseState=G,s.baseQueue=de,E.lastRenderedState=M}return C===null&&(E.lanes=0),[s.memoizedState,E.dispatch]}function Zh(s){var c=kr(),m=c.queue;if(m===null)throw Error(r(311));m.lastRenderedReducer=s;var E=m.dispatch,C=m.pending,M=c.memoizedState;if(C!==null){m.pending=null;var G=C=C.next;do M=s(M,G.action),G=G.next;while(G!==C);Lo(M,c.memoizedState)||(Hr=!0),c.memoizedState=M,c.baseQueue===null&&(c.baseState=M),m.lastRenderedState=M}return[M,E]}function uc(s,c,m){var E=Xt,C=kr(),M=un;if(M){if(m===void 0)throw Error(r(407));m=m()}else m=c();var G=!Lo((Cn||C).memoizedState,m);G&&(C.memoizedState=m,Hr=!0),C=C.queue;var te=fc.bind(null,E,C,s);if(nd(2048,8,te,[s]),C.getSnapshot!==c||G||Tr!==null&&Tr.memoizedState.tag&1){if(E.flags|=2048,ul(9,td(),cc.bind(null,E,C,m,c),null),ur===null)throw Error(r(349));M||(vu&124)!==0||lc(E,c,m)}return m}function lc(s,c,m){s.flags|=16384,s={getSnapshot:c,value:m},c=Xt.updateQueue,c===null?(c=sc(),Xt.updateQueue=c,c.stores=[s]):(m=c.stores,m===null?c.stores=[s]:m.push(s))}function cc(s,c,m,E){c.value=m,c.getSnapshot=E,Wm(c)&&rb(s)}function fc(s,c,m){return m(function(){Wm(c)&&rb(s)})}function Wm(s){var c=s.getSnapshot;s=s.value;try{var m=c();return!Lo(s,m)}catch{return!0}}function rb(s){var c=Ku(s,2);c!==null&&bs(c,s,2)}function Jh(s){var c=ti();if(typeof s=="function"){var m=s;if(s=m(),Aa){ct(!0);try{m()}finally{ct(!1)}}}return c.memoizedState=c.baseState=s,c.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Eo,lastRenderedState:s},c}function Da(s,c,m,E){return s.baseState=m,Xh(s,Cn,typeof E=="function"?E:Eo)}function dc(s,c,m,E,C){if(op(s))throw Error(r(485));if(s=c.action,s!==null){var M={payload:C,action:s,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(G){M.listeners.push(G)}};J.T!==null?m(!0):M.isTransition=!1,E(M),m=c.pending,m===null?(M.next=c.pending=M,hc(c,M)):(M.next=m.next,c.pending=m.next=M)}}function hc(s,c){var m=c.action,E=c.payload,C=s.state;if(c.isTransition){var M=J.T,G={};J.T=G;try{var te=m(C,E),de=J.S;de!==null&&de(G,te),ib(s,c,te)}catch(Ne){Qm(s,c,Ne)}finally{J.T=M}}else try{M=m(C,E),ib(s,c,M)}catch(Ne){Qm(s,c,Ne)}}function ib(s,c,m){m!==null&&typeof m=="object"&&typeof m.then=="function"?m.then(function(E){Ym(s,c,E)},function(E){return Qm(s,c,E)}):Ym(s,c,m)}function Ym(s,c,m){c.status="fulfilled",c.value=m,ob(c),s.state=m,c=s.pending,c!==null&&(m=c.next,m===c?s.pending=null:(m=m.next,c.next=m,hc(s,m)))}function Qm(s,c,m){var E=s.pending;if(s.pending=null,E!==null){E=E.next;do c.status="rejected",c.reason=m,ob(c),c=c.next;while(c!==E)}s.action=null}function ob(s){s=s.listeners;for(var c=0;c<s.length;c++)(0,s[c])()}function sb(s,c){return c}function Ui(s,c){if(un){var m=ur.formState;if(m!==null){e:{var E=Xt;if(un){if(Gn){t:{for(var C=Gn,M=ro;C.nodeType!==8;){if(!M){C=null;break t}if(C=La(C.nextSibling),C===null){C=null;break t}}M=C.data,C=M==="F!"||M==="F"?C:null}if(C){Gn=La(C.nextSibling),E=C.data==="F!";break e}}hu(E)}E=!1}E&&(c=m[0])}}return m=ti(),m.memoizedState=m.baseState=c,E={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sb,lastRenderedState:c},m.queue=E,m=tg.bind(null,Xt,E),E.dispatch=m,E=Jh(!1),M=ng.bind(null,Xt,!1,E.queue),E=ti(),C={state:c,dispatch:null,action:s,pending:null},E.queue=C,m=dc.bind(null,Xt,C,M,m),C.dispatch=m,E.memoizedState=s,[c,m,!1]}function Km(s){var c=kr();return ab(c,Cn,s)}function ab(s,c,m){if(c=Xh(s,c,sb)[0],s=ed(Eo)[0],typeof c=="object"&&c!==null&&typeof c.then=="function")try{var E=ac(c)}catch(G){throw G===Ni?bo:G}else E=c;c=kr();var C=c.queue,M=C.dispatch;return m!==c.memoizedState&&(Xt.flags|=2048,ul(9,td(),q3.bind(null,C,m),null)),[E,M,s]}function q3(s,c){s.action=c}function ub(s){var c=kr(),m=Cn;if(m!==null)return ab(c,m,s);kr(),c=c.memoizedState,m=kr();var E=m.queue.dispatch;return m.memoizedState=s,[c,E,!1]}function ul(s,c,m,E){return s={tag:s,create:m,deps:E,inst:c,next:null},c=Xt.updateQueue,c===null&&(c=sc(),Xt.updateQueue=c),m=c.lastEffect,m===null?c.lastEffect=s.next=s:(E=m.next,m.next=s,s.next=E,c.lastEffect=s),s}function td(){return{destroy:void 0,resource:void 0}}function Xm(){return kr().memoizedState}function ep(s,c,m,E){var C=ti();E=E===void 0?null:E,Xt.flags|=s,C.memoizedState=ul(1|c,td(),m,E)}function nd(s,c,m,E){var C=kr();E=E===void 0?null:E;var M=C.memoizedState.inst;Cn!==null&&E!==null&&qh(E,Cn.memoizedState.deps)?C.memoizedState=ul(c,M,m,E):(Xt.flags|=s,C.memoizedState=ul(1|c,M,m,E))}function lb(s,c){ep(8390656,8,s,c)}function Na(s,c){nd(2048,8,s,c)}function pc(s,c){return nd(4,2,s,c)}function rd(s,c){return nd(4,4,s,c)}function mc(s,c){if(typeof c=="function"){s=s();var m=c(s);return function(){typeof m=="function"?m():c(null)}}if(c!=null)return s=s(),c.current=s,function(){c.current=null}}function Qs(s,c,m){m=m!=null?m.concat([s]):null,nd(4,4,mc.bind(null,c,s),m)}function Zm(){}function cb(s,c){var m=kr();c=c===void 0?null:c;var E=m.memoizedState;return c!==null&&qh(c,E[1])?E[0]:(m.memoizedState=[s,c],s)}function ll(s,c){var m=kr();c=c===void 0?null:c;var E=m.memoizedState;if(c!==null&&qh(c,E[1]))return E[0];if(E=s(),Aa){ct(!0);try{s()}finally{ct(!1)}}return m.memoizedState=[E,c],E}function tp(s,c,m){return m===void 0||(vu&1073741824)!==0?s.memoizedState=c:(s.memoizedState=m,s=tL(),Xt.lanes|=s,Oc|=s,m)}function Jm(s,c,m,E){return Lo(m,c)?m:oc.current!==null?(s=tp(s,m,E),Lo(s,c)||(Hr=!0),s):(vu&42)===0?(Hr=!0,s.memoizedState=m):(s=tL(),Xt.lanes|=s,Oc|=s,c)}function eg(s,c,m,E,C){var M=ue.p;ue.p=M!==0&&8>M?M:8;var G=J.T,te={};J.T=te,ng(s,!1,c,m);try{var de=C(),Ne=J.S;if(Ne!==null&&Ne(te,de),de!==null&&typeof de=="object"&&typeof de.then=="function"){var He=z3(de,E);Eu(s,c,He,ys(s))}else Eu(s,c,E,ys(s))}catch(We){Eu(s,c,{then:function(){},status:"rejected",reason:We},ys())}finally{ue.p=M,J.T=G}}function np(){}function bu(s,c,m,E){if(s.tag!==5)throw Error(r(476));var C=rp(s).queue;eg(s,C,c,ne,m===null?np:function(){return ip(s),m(E)})}function rp(s){var c=s.memoizedState;if(c!==null)return c;c={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Eo,lastRenderedState:ne},next:null};var m={};return c.next={memoizedState:m,baseState:m,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Eo,lastRenderedState:m},next:null},s.memoizedState=c,s=s.alternate,s!==null&&(s.memoizedState=c),c}function ip(s){var c=rp(s).next.queue;Eu(s,c,{},ys())}function id(){return ei(Cg)}function fb(){return kr().memoizedState}function gc(){return kr().memoizedState}function db(s){for(var c=s.return;c!==null;){switch(c.tag){case 24:case 3:var m=ys();s=oo(m);var E=_a(c,s,m);E!==null&&(bs(E,c,m),nc(E,c,m)),c={cache:Bm()},s.payload=c;return}c=c.return}}function G3(s,c,m){var E=ys();m={lane:E,revertLane:0,action:m,hasEagerState:!1,eagerState:null,next:null},op(s)?vc(c,m):(m=Im(s,c,m,E),m!==null&&(bs(m,s,E),rg(m,c,E)))}function tg(s,c,m){var E=ys();Eu(s,c,m,E)}function Eu(s,c,m,E){var C={lane:E,revertLane:0,action:m,hasEagerState:!1,eagerState:null,next:null};if(op(s))vc(c,C);else{var M=s.alternate;if(s.lanes===0&&(M===null||M.lanes===0)&&(M=c.lastRenderedReducer,M!==null))try{var G=c.lastRenderedState,te=M(G,m);if(C.hasEagerState=!0,C.eagerState=te,Lo(te,G))return Qu(s,c,C,0),ur===null&&ds(),!1}catch{}finally{}if(m=Im(s,c,C,E),m!==null)return bs(m,s,E),rg(m,c,E),!0}return!1}function ng(s,c,m,E){if(E={lane:2,revertLane:uw(),action:E,hasEagerState:!1,eagerState:null,next:null},op(s)){if(c)throw Error(r(479))}else c=Im(s,m,E,2),c!==null&&bs(c,s,2)}function op(s){var c=s.alternate;return s===Xt||c!==null&&c===Xt}function vc(s,c){ol=il=!0;var m=s.pending;m===null?c.next=c:(c.next=m.next,m.next=c),s.pending=c}function rg(s,c,m){if((m&4194048)!==0){var E=c.lanes;E&=s.pendingLanes,m|=E,c.lanes=m,St(s,m)}}var od={readContext:ei,use:yu,useCallback:sr,useContext:sr,useEffect:sr,useImperativeHandle:sr,useLayoutEffect:sr,useInsertionEffect:sr,useMemo:sr,useReducer:sr,useRef:sr,useState:sr,useDebugValue:sr,useDeferredValue:sr,useTransition:sr,useSyncExternalStore:sr,useId:sr,useHostTransitionStatus:sr,useFormState:sr,useActionState:sr,useOptimistic:sr,useMemoCache:sr,useCacheRefresh:sr},hb={readContext:ei,use:yu,useCallback:function(s,c){return ti().memoizedState=[s,c===void 0?null:c],s},useContext:ei,useEffect:lb,useImperativeHandle:function(s,c,m){m=m!=null?m.concat([s]):null,ep(4194308,4,mc.bind(null,c,s),m)},useLayoutEffect:function(s,c){return ep(4194308,4,s,c)},useInsertionEffect:function(s,c){ep(4,2,s,c)},useMemo:function(s,c){var m=ti();c=c===void 0?null:c;var E=s();if(Aa){ct(!0);try{s()}finally{ct(!1)}}return m.memoizedState=[E,c],E},useReducer:function(s,c,m){var E=ti();if(m!==void 0){var C=m(c);if(Aa){ct(!0);try{m(c)}finally{ct(!1)}}}else C=c;return E.memoizedState=E.baseState=C,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:C},E.queue=s,s=s.dispatch=G3.bind(null,Xt,s),[E.memoizedState,s]},useRef:function(s){var c=ti();return s={current:s},c.memoizedState=s},useState:function(s){s=Jh(s);var c=s.queue,m=tg.bind(null,Xt,c);return c.dispatch=m,[s.memoizedState,m]},useDebugValue:Zm,useDeferredValue:function(s,c){var m=ti();return tp(m,s,c)},useTransition:function(){var s=Jh(!1);return s=eg.bind(null,Xt,s.queue,!0,!1),ti().memoizedState=s,[!1,s]},useSyncExternalStore:function(s,c,m){var E=Xt,C=ti();if(un){if(m===void 0)throw Error(r(407));m=m()}else{if(m=c(),ur===null)throw Error(r(349));(kn&124)!==0||lc(E,c,m)}C.memoizedState=m;var M={value:m,getSnapshot:c};return C.queue=M,lb(fc.bind(null,E,M,s),[s]),E.flags|=2048,ul(9,td(),cc.bind(null,E,M,m,c),null),m},useId:function(){var s=ti(),c=ur.identifierPrefix;if(un){var m=Sa,E=Fo;m=(E&~(1<<32-mt(E)-1)).toString(32)+m,c="«"+c+"R"+m,m=Zf++,0<m&&(c+="H"+m.toString(32)),c+="»"}else m=Oi++,c="«"+c+"r"+m.toString(32)+"»";return s.memoizedState=c},useHostTransitionStatus:id,useFormState:Ui,useActionState:Ui,useOptimistic:function(s){var c=ti();c.memoizedState=c.baseState=s;var m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return c.queue=m,c=ng.bind(null,Xt,!0,m),m.dispatch=c,[s,c]},useMemoCache:Gm,useCacheRefresh:function(){return ti().memoizedState=db.bind(null,Xt)}},sp={readContext:ei,use:yu,useCallback:cb,useContext:ei,useEffect:Na,useImperativeHandle:Qs,useInsertionEffect:pc,useLayoutEffect:rd,useMemo:ll,useReducer:ed,useRef:Xm,useState:function(){return ed(Eo)},useDebugValue:Zm,useDeferredValue:function(s,c){var m=kr();return Jm(m,Cn.memoizedState,s,c)},useTransition:function(){var s=ed(Eo)[0],c=kr().memoizedState;return[typeof s=="boolean"?s:ac(s),c]},useSyncExternalStore:uc,useId:fb,useHostTransitionStatus:id,useFormState:Km,useActionState:Km,useOptimistic:function(s,c){var m=kr();return Da(m,Cn,s,c)},useMemoCache:Gm,useCacheRefresh:gc},pb={readContext:ei,use:yu,useCallback:cb,useContext:ei,useEffect:Na,useImperativeHandle:Qs,useInsertionEffect:pc,useLayoutEffect:rd,useMemo:ll,useReducer:Zh,useRef:Xm,useState:function(){return Zh(Eo)},useDebugValue:Zm,useDeferredValue:function(s,c){var m=kr();return Cn===null?tp(m,s,c):Jm(m,Cn.memoizedState,s,c)},useTransition:function(){var s=Zh(Eo)[0],c=kr().memoizedState;return[typeof s=="boolean"?s:ac(s),c]},useSyncExternalStore:uc,useId:fb,useHostTransitionStatus:id,useFormState:ub,useActionState:ub,useOptimistic:function(s,c){var m=kr();return Cn!==null?Da(m,Cn,s,c):(m.baseState=s,[s,m.queue.dispatch])},useMemoCache:Gm,useCacheRefresh:gc},yc=null,bc=0;function sd(s){var c=bc;return bc+=1,yc===null&&(yc=[]),Bh(yc,s,c)}function ad(s,c){c=c.props.ref,s.ref=c!==void 0?c:null}function Ec(s,c){throw c.$$typeof===b?Error(r(525)):(s=Object.prototype.toString.call(c),Error(r(31,s==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":s)))}function xc(s){var c=s._init;return c(s._payload)}function Tc(s){function c(Ce,be){if(s){var De=Ce.deletions;De===null?(Ce.deletions=[be],Ce.flags|=16):De.push(be)}}function m(Ce,be){if(!s)return null;for(;be!==null;)c(Ce,be),be=be.sibling;return null}function E(Ce){for(var be=new Map;Ce!==null;)Ce.key!==null?be.set(Ce.key,Ce):be.set(Ce.index,Ce),Ce=Ce.sibling;return be}function C(Ce,be){return Ce=Gs(Ce,be),Ce.index=0,Ce.sibling=null,Ce}function M(Ce,be,De){return Ce.index=De,s?(De=Ce.alternate,De!==null?(De=De.index,De<be?(Ce.flags|=67108866,be):De):(Ce.flags|=67108866,be)):(Ce.flags|=1048576,be)}function G(Ce){return s&&Ce.alternate===null&&(Ce.flags|=67108866),Ce}function te(Ce,be,De,Ge){return be===null||be.tag!==6?(be=Zl(De,Ce.mode,Ge),be.return=Ce,be):(be=C(be,De),be.return=Ce,be)}function de(Ce,be,De,Ge){var yt=De.type;return yt===S?He(Ce,be,De.props.children,Ge,De.key):be!==null&&(be.elementType===yt||typeof yt=="object"&&yt!==null&&yt.$$typeof===F&&xc(yt)===be.type)?(be=C(be,De.props),ad(be,De),be.return=Ce,be):(be=Xl(De.type,De.key,De.props,null,Ce.mode,Ge),ad(be,De),be.return=Ce,be)}function Ne(Ce,be,De,Ge){return be===null||be.tag!==4||be.stateNode.containerInfo!==De.containerInfo||be.stateNode.implementation!==De.implementation?(be=kh(De,Ce.mode,Ge),be.return=Ce,be):(be=C(be,De.children||[]),be.return=Ce,be)}function He(Ce,be,De,Ge,yt){return be===null||be.tag!==7?(be=Qo(De,Ce.mode,Ge,yt),be.return=Ce,be):(be=C(be,De),be.return=Ce,be)}function We(Ce,be,De){if(typeof be=="string"&&be!==""||typeof be=="number"||typeof be=="bigint")return be=Zl(""+be,Ce.mode,De),be.return=Ce,be;if(typeof be=="object"&&be!==null){switch(be.$$typeof){case v:return De=Xl(be.type,be.key,be.props,null,Ce.mode,De),ad(De,be),De.return=Ce,De;case x:return be=kh(be,Ce.mode,De),be.return=Ce,be;case F:var Ge=be._init;return be=Ge(be._payload),We(Ce,be,De)}if(H(be)||Z(be))return be=Qo(be,Ce.mode,De,null),be.return=Ce,be;if(typeof be.then=="function")return We(Ce,sd(be),De);if(be.$$typeof===O)return We(Ce,Fh(Ce,be),De);Ec(Ce,be)}return null}function ke(Ce,be,De,Ge){var yt=be!==null?be.key:null;if(typeof De=="string"&&De!==""||typeof De=="number"||typeof De=="bigint")return yt!==null?null:te(Ce,be,""+De,Ge);if(typeof De=="object"&&De!==null){switch(De.$$typeof){case v:return De.key===yt?de(Ce,be,De,Ge):null;case x:return De.key===yt?Ne(Ce,be,De,Ge):null;case F:return yt=De._init,De=yt(De._payload),ke(Ce,be,De,Ge)}if(H(De)||Z(De))return yt!==null?null:He(Ce,be,De,Ge,null);if(typeof De.then=="function")return ke(Ce,be,sd(De),Ge);if(De.$$typeof===O)return ke(Ce,be,Fh(Ce,De),Ge);Ec(Ce,De)}return null}function Me(Ce,be,De,Ge,yt){if(typeof Ge=="string"&&Ge!==""||typeof Ge=="number"||typeof Ge=="bigint")return Ce=Ce.get(De)||null,te(be,Ce,""+Ge,yt);if(typeof Ge=="object"&&Ge!==null){switch(Ge.$$typeof){case v:return Ce=Ce.get(Ge.key===null?De:Ge.key)||null,de(be,Ce,Ge,yt);case x:return Ce=Ce.get(Ge.key===null?De:Ge.key)||null,Ne(be,Ce,Ge,yt);case F:var ln=Ge._init;return Ge=ln(Ge._payload),Me(Ce,be,De,Ge,yt)}if(H(Ge)||Z(Ge))return Ce=Ce.get(De)||null,He(be,Ce,Ge,yt,null);if(typeof Ge.then=="function")return Me(Ce,be,De,sd(Ge),yt);if(Ge.$$typeof===O)return Me(Ce,be,De,Fh(be,Ge),yt);Ec(be,Ge)}return null}function Vt(Ce,be,De,Ge){for(var yt=null,ln=null,Ct=be,Rt=be=0,Hi=null;Ct!==null&&Rt<De.length;Rt++){Ct.index>Rt?(Hi=Ct,Ct=null):Hi=Ct.sibling;var Pn=ke(Ce,Ct,De[Rt],Ge);if(Pn===null){Ct===null&&(Ct=Hi);break}s&&Ct&&Pn.alternate===null&&c(Ce,Ct),be=M(Pn,be,Rt),ln===null?yt=Pn:ln.sibling=Pn,ln=Pn,Ct=Hi}if(Rt===De.length)return m(Ce,Ct),un&&Ws(Ce,Rt),yt;if(Ct===null){for(;Rt<De.length;Rt++)Ct=We(Ce,De[Rt],Ge),Ct!==null&&(be=M(Ct,be,Rt),ln===null?yt=Ct:ln.sibling=Ct,ln=Ct);return un&&Ws(Ce,Rt),yt}for(Ct=E(Ct);Rt<De.length;Rt++)Hi=Me(Ct,Ce,Rt,De[Rt],Ge),Hi!==null&&(s&&Hi.alternate!==null&&Ct.delete(Hi.key===null?Rt:Hi.key),be=M(Hi,be,Rt),ln===null?yt=Hi:ln.sibling=Hi,ln=Hi);return s&&Ct.forEach(function(Vc){return c(Ce,Vc)}),un&&Ws(Ce,Rt),yt}function Nt(Ce,be,De,Ge){if(De==null)throw Error(r(151));for(var yt=null,ln=null,Ct=be,Rt=be=0,Hi=null,Pn=De.next();Ct!==null&&!Pn.done;Rt++,Pn=De.next()){Ct.index>Rt?(Hi=Ct,Ct=null):Hi=Ct.sibling;var Vc=ke(Ce,Ct,Pn.value,Ge);if(Vc===null){Ct===null&&(Ct=Hi);break}s&&Ct&&Vc.alternate===null&&c(Ce,Ct),be=M(Vc,be,Rt),ln===null?yt=Vc:ln.sibling=Vc,ln=Vc,Ct=Hi}if(Pn.done)return m(Ce,Ct),un&&Ws(Ce,Rt),yt;if(Ct===null){for(;!Pn.done;Rt++,Pn=De.next())Pn=We(Ce,Pn.value,Ge),Pn!==null&&(be=M(Pn,be,Rt),ln===null?yt=Pn:ln.sibling=Pn,ln=Pn);return un&&Ws(Ce,Rt),yt}for(Ct=E(Ct);!Pn.done;Rt++,Pn=De.next())Pn=Me(Ct,Ce,Rt,Pn.value,Ge),Pn!==null&&(s&&Pn.alternate!==null&&Ct.delete(Pn.key===null?Rt:Pn.key),be=M(Pn,be,Rt),ln===null?yt=Pn:ln.sibling=Pn,ln=Pn);return s&&Ct.forEach(function(zle){return c(Ce,zle)}),un&&Ws(Ce,Rt),yt}function Qn(Ce,be,De,Ge){if(typeof De=="object"&&De!==null&&De.type===S&&De.key===null&&(De=De.props.children),typeof De=="object"&&De!==null){switch(De.$$typeof){case v:e:{for(var yt=De.key;be!==null;){if(be.key===yt){if(yt=De.type,yt===S){if(be.tag===7){m(Ce,be.sibling),Ge=C(be,De.props.children),Ge.return=Ce,Ce=Ge;break e}}else if(be.elementType===yt||typeof yt=="object"&&yt!==null&&yt.$$typeof===F&&xc(yt)===be.type){m(Ce,be.sibling),Ge=C(be,De.props),ad(Ge,De),Ge.return=Ce,Ce=Ge;break e}m(Ce,be);break}else c(Ce,be);be=be.sibling}De.type===S?(Ge=Qo(De.props.children,Ce.mode,Ge,De.key),Ge.return=Ce,Ce=Ge):(Ge=Xl(De.type,De.key,De.props,null,Ce.mode,Ge),ad(Ge,De),Ge.return=Ce,Ce=Ge)}return G(Ce);case x:e:{for(yt=De.key;be!==null;){if(be.key===yt)if(be.tag===4&&be.stateNode.containerInfo===De.containerInfo&&be.stateNode.implementation===De.implementation){m(Ce,be.sibling),Ge=C(be,De.children||[]),Ge.return=Ce,Ce=Ge;break e}else{m(Ce,be);break}else c(Ce,be);be=be.sibling}Ge=kh(De,Ce.mode,Ge),Ge.return=Ce,Ce=Ge}return G(Ce);case F:return yt=De._init,De=yt(De._payload),Qn(Ce,be,De,Ge)}if(H(De))return Vt(Ce,be,De,Ge);if(Z(De)){if(yt=Z(De),typeof yt!="function")throw Error(r(150));return De=yt.call(De),Nt(Ce,be,De,Ge)}if(typeof De.then=="function")return Qn(Ce,be,sd(De),Ge);if(De.$$typeof===O)return Qn(Ce,be,Fh(Ce,De),Ge);Ec(Ce,De)}return typeof De=="string"&&De!==""||typeof De=="number"||typeof De=="bigint"?(De=""+De,be!==null&&be.tag===6?(m(Ce,be.sibling),Ge=C(be,De),Ge.return=Ce,Ce=Ge):(m(Ce,be),Ge=Zl(De,Ce.mode,Ge),Ge.return=Ce,Ce=Ge),G(Ce)):m(Ce,be)}return function(Ce,be,De,Ge){try{bc=0;var yt=Qn(Ce,be,De,Ge);return yc=null,yt}catch(Ct){if(Ct===Ni||Ct===bo)throw Ct;var ln=Io(29,Ct,null,Ce.mode);return ln.lanes=Ge,ln.return=Ce,ln}finally{}}}var Sc=Tc(!0),ig=Tc(!1),Zo=he(null),Ks=null;function xu(s){var c=s.alternate;fe(ni,ni.current&1),fe(Zo,s),Ks===null&&(c===null||oc.current!==null||c.memoizedState!==null)&&(Ks=s)}function mb(s){if(s.tag===22){if(fe(ni,ni.current),fe(Zo,s),Ks===null){var c=s.alternate;c!==null&&c.memoizedState!==null&&(Ks=s)}}else Oa()}function Oa(){fe(ni,ni.current),fe(Zo,Zo.current)}function ka(s){se(Zo),Ks===s&&(Ks=null),se(ni)}var ni=he(0);function ud(s){for(var c=s;c!==null;){if(c.tag===13){var m=c.memoizedState;if(m!==null&&(m=m.dehydrated,m===null||m.data==="$?"||Ew(m)))return c}else if(c.tag===19&&c.memoizedProps.revealOrder!==void 0){if((c.flags&128)!==0)return c}else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===s)break;for(;c.sibling===null;){if(c.return===null||c.return===s)return null;c=c.return}c.sibling.return=c.return,c=c.sibling}return null}function ld(s,c,m,E){c=s.memoizedState,m=m(E,c),m=m==null?c:p({},c,m),s.memoizedState=m,s.lanes===0&&(s.updateQueue.baseState=m)}var ap={enqueueSetState:function(s,c,m){s=s._reactInternals;var E=ys(),C=oo(E);C.payload=c,m!=null&&(C.callback=m),c=_a(s,C,E),c!==null&&(bs(c,s,E),nc(c,s,E))},enqueueReplaceState:function(s,c,m){s=s._reactInternals;var E=ys(),C=oo(E);C.tag=1,C.payload=c,m!=null&&(C.callback=m),c=_a(s,C,E),c!==null&&(bs(c,s,E),nc(c,s,E))},enqueueForceUpdate:function(s,c){s=s._reactInternals;var m=ys(),E=oo(m);E.tag=2,c!=null&&(E.callback=c),c=_a(s,E,m),c!==null&&(bs(c,s,m),nc(c,s,m))}};function gb(s,c,m,E,C,M,G){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(E,M,G):c.prototype&&c.prototype.isPureReactComponent?!Uf(m,E)||!Uf(C,M):!0}function og(s,c,m,E){s=c.state,typeof c.componentWillReceiveProps=="function"&&c.componentWillReceiveProps(m,E),typeof c.UNSAFE_componentWillReceiveProps=="function"&&c.UNSAFE_componentWillReceiveProps(m,E),c.state!==s&&ap.enqueueReplaceState(c,c.state,null)}function Jo(s,c){var m=c;if("ref"in c){m={};for(var E in c)E!=="ref"&&(m[E]=c[E])}if(s=s.defaultProps){m===c&&(m=p({},m));for(var C in s)m[C]===void 0&&(m[C]=s[C])}return m}var cd=typeof reportError=="function"?reportError:function(s){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var c=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof s=="object"&&s!==null&&typeof s.message=="string"?String(s.message):String(s),error:s});if(!window.dispatchEvent(c))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",s);return}console.error(s)};function fd(s){cd(s)}function vb(s){console.error(s)}function yb(s){cd(s)}function up(s,c){try{var m=s.onUncaughtError;m(c.value,{componentStack:c.stack})}catch(E){setTimeout(function(){throw E})}}function Wn(s,c,m){try{var E=s.onCaughtError;E(m.value,{componentStack:m.stack,errorBoundary:c.tag===1?c.stateNode:null})}catch(C){setTimeout(function(){throw C})}}function sg(s,c,m){return m=oo(m),m.tag=3,m.payload={element:null},m.callback=function(){up(s,c)},m}function lp(s){return s=oo(s),s.tag=3,s}function wc(s,c,m,E){var C=m.type.getDerivedStateFromError;if(typeof C=="function"){var M=E.value;s.payload=function(){return C(M)},s.callback=function(){Wn(c,m,E)}}var G=m.stateNode;G!==null&&typeof G.componentDidCatch=="function"&&(s.callback=function(){Wn(c,m,E),typeof C!="function"&&(kc===null?kc=new Set([this]):kc.add(this));var te=E.stack;this.componentDidCatch(E.value,{componentStack:te!==null?te:""})})}function gs(s,c,m,E,C){if(m.flags|=32768,E!==null&&typeof E=="object"&&typeof E.then=="function"){if(c=m.alternate,c!==null&&pr(c,m,C,!0),m=Zo.current,m!==null){switch(m.tag){case 13:return Ks===null?rw():m.alternate===null&&qr===0&&(qr=3),m.flags&=-257,m.flags|=65536,m.lanes=C,E===Ys?m.flags|=16384:(c=m.updateQueue,c===null?m.updateQueue=new Set([E]):c.add(E),ow(s,E,C)),!1;case 22:return m.flags|=65536,E===Ys?m.flags|=16384:(c=m.updateQueue,c===null?(c={transitions:null,markerInstances:null,retryQueue:new Set([E])},m.updateQueue=c):(m=c.retryQueue,m===null?c.retryQueue=new Set([E]):m.add(E)),ow(s,E,C)),!1}throw Error(r(435,m.tag))}return ow(s,E,C),rw(),!1}if(un)return c=Zo.current,c!==null?((c.flags&65536)===0&&(c.flags|=256),c.flags|=65536,c.lanes=C,E!==Ih&&(s=Error(r(422),{cause:E}),Wf(ci(s,m)))):(E!==Ih&&(c=Error(r(423),{cause:E}),Wf(ci(c,m))),s=s.current.alternate,s.flags|=65536,C&=-C,s.lanes|=C,E=ci(E,m),C=sg(s.stateNode,E,C),Um(s,C),qr!==4&&(qr=2)),!1;var M=Error(r(520),{cause:E});if(M=ci(M,m),gg===null?gg=[M]:gg.push(M),qr!==4&&(qr=2),c===null)return!0;E=ci(E,m),m=c;do{switch(m.tag){case 3:return m.flags|=65536,s=C&-C,m.lanes|=s,s=sg(m.stateNode,E,s),Um(m,s),!1;case 1:if(c=m.type,M=m.stateNode,(m.flags&128)===0&&(typeof c.getDerivedStateFromError=="function"||M!==null&&typeof M.componentDidCatch=="function"&&(kc===null||!kc.has(M))))return m.flags|=65536,C&=-C,m.lanes|=C,C=lp(C),wc(C,s,m,E),Um(m,C),!1}m=m.return}while(m!==null);return!1}var dd=Error(r(461)),Hr=!1;function hi(s,c,m,E){c.child=s===null?ig(c,null,m,E):Sc(c,s.child,m,E)}function ag(s,c,m,E,C){m=m.render;var M=c.ref;if("ref"in E){var G={};for(var te in E)te!=="ref"&&(G[te]=E[te])}else G=E;return Ju(c),E=Gh(s,c,m,G,M,C),te=Yh(),s!==null&&!Hr?(Qh(s,c,C),d(s,c,C)):(un&&te&&Xu(c),c.flags|=1,hi(s,c,E,C),c.child)}function ug(s,c,m,E,C){if(s===null){var M=m.type;return typeof M=="function"&&!Gf(M)&&M.defaultProps===void 0&&m.compare===null?(c.tag=15,c.type=M,cp(s,c,M,E,C)):(s=Xl(m.type,null,E,c,c.mode,C),s.ref=c.ref,s.return=c,c.child=s)}if(M=s.child,!y(s,C)){var G=M.memoizedProps;if(m=m.compare,m=m!==null?m:Uf,m(G,E)&&s.ref===c.ref)return d(s,c,C)}return c.flags|=1,s=Gs(M,E),s.ref=c.ref,s.return=c,c.child=s}function cp(s,c,m,E,C){if(s!==null){var M=s.memoizedProps;if(Uf(M,E)&&s.ref===c.ref)if(Hr=!1,c.pendingProps=E=M,y(s,C))(s.flags&131072)!==0&&(Hr=!0);else return c.lanes=s.lanes,d(s,c,C)}return fp(s,c,m,E,C)}function lg(s,c,m){var E=c.pendingProps,C=E.children,M=s!==null?s.memoizedState:null;if(E.mode==="hidden"){if((c.flags&128)!==0){if(E=M!==null?M.baseLanes|m:m,s!==null){for(C=c.child=s.child,M=0;C!==null;)M=M|C.lanes|C.childLanes,C=C.sibling;c.childLanes=M&~E}else c.childLanes=0,c.child=null;return bb(s,c,E,m)}if((m&536870912)!==0)c.memoizedState={baseLanes:0,cachePool:null},s!==null&&Vh(c,M!==null?M.cachePool:null),M!==null?Xf(c,M):zh(),mb(c);else return c.lanes=c.childLanes=536870912,bb(s,c,M!==null?M.baseLanes|m:m,m)}else M!==null?(Vh(c,M.cachePool),Xf(c,M),Oa(),c.memoizedState=null):(s!==null&&Vh(c,null),zh(),Oa());return hi(s,c,C,m),c.child}function bb(s,c,m,E){var C=jh();return C=C===null?null:{parent:Or._currentValue,pool:C},c.memoizedState={baseLanes:m,cachePool:C},s!==null&&Vh(c,null),zh(),mb(c),s!==null&&pr(s,c,E,!0),null}function Cc(s,c){var m=c.ref;if(m===null)s!==null&&s.ref!==null&&(c.flags|=4194816);else{if(typeof m!="function"&&typeof m!="object")throw Error(r(284));(s===null||s.ref!==m)&&(c.flags|=4194816)}}function fp(s,c,m,E,C){return Ju(c),m=Gh(s,c,m,E,void 0,C),E=Yh(),s!==null&&!Hr?(Qh(s,c,C),d(s,c,C)):(un&&E&&Xu(c),c.flags|=1,hi(s,c,m,C),c.child)}function Mn(s,c,m,E,C,M){return Ju(c),c.updateQueue=null,m=al(c,E,m,C),qm(s),E=Yh(),s!==null&&!Hr?(Qh(s,c,M),d(s,c,M)):(un&&E&&Xu(c),c.flags|=1,hi(s,c,m,M),c.child)}function cg(s,c,m,E,C){if(Ju(c),c.stateNode===null){var M=du,G=m.contextType;typeof G=="object"&&G!==null&&(M=ei(G)),M=new m(E,M),c.memoizedState=M.state!==null&&M.state!==void 0?M.state:null,M.updater=ap,c.stateNode=M,M._reactInternals=c,M=c.stateNode,M.props=E,M.state=c.memoizedState,M.refs={},Uh(c),G=m.contextType,M.context=typeof G=="object"&&G!==null?ei(G):du,M.state=c.memoizedState,G=m.getDerivedStateFromProps,typeof G=="function"&&(ld(c,m,G,E),M.state=c.memoizedState),typeof m.getDerivedStateFromProps=="function"||typeof M.getSnapshotBeforeUpdate=="function"||typeof M.UNSAFE_componentWillMount!="function"&&typeof M.componentWillMount!="function"||(G=M.state,typeof M.componentWillMount=="function"&&M.componentWillMount(),typeof M.UNSAFE_componentWillMount=="function"&&M.UNSAFE_componentWillMount(),G!==M.state&&ap.enqueueReplaceState(M,M.state,null),ic(c,E,M,C),rl(),M.state=c.memoizedState),typeof M.componentDidMount=="function"&&(c.flags|=4194308),E=!0}else if(s===null){M=c.stateNode;var te=c.memoizedProps,de=Jo(m,te);M.props=de;var Ne=M.context,He=m.contextType;G=du,typeof He=="object"&&He!==null&&(G=ei(He));var We=m.getDerivedStateFromProps;He=typeof We=="function"||typeof M.getSnapshotBeforeUpdate=="function",te=c.pendingProps!==te,He||typeof M.UNSAFE_componentWillReceiveProps!="function"&&typeof M.componentWillReceiveProps!="function"||(te||Ne!==G)&&og(c,M,E,G),Xo=!1;var ke=c.memoizedState;M.state=ke,ic(c,E,M,C),rl(),Ne=c.memoizedState,te||ke!==Ne||Xo?(typeof We=="function"&&(ld(c,m,We,E),Ne=c.memoizedState),(de=Xo||gb(c,m,de,E,ke,Ne,G))?(He||typeof M.UNSAFE_componentWillMount!="function"&&typeof M.componentWillMount!="function"||(typeof M.componentWillMount=="function"&&M.componentWillMount(),typeof M.UNSAFE_componentWillMount=="function"&&M.UNSAFE_componentWillMount()),typeof M.componentDidMount=="function"&&(c.flags|=4194308)):(typeof M.componentDidMount=="function"&&(c.flags|=4194308),c.memoizedProps=E,c.memoizedState=Ne),M.props=E,M.state=Ne,M.context=G,E=de):(typeof M.componentDidMount=="function"&&(c.flags|=4194308),E=!1)}else{M=c.stateNode,Kf(s,c),G=c.memoizedProps,He=Jo(m,G),M.props=He,We=c.pendingProps,ke=M.context,Ne=m.contextType,de=du,typeof Ne=="object"&&Ne!==null&&(de=ei(Ne)),te=m.getDerivedStateFromProps,(Ne=typeof te=="function"||typeof M.getSnapshotBeforeUpdate=="function")||typeof M.UNSAFE_componentWillReceiveProps!="function"&&typeof M.componentWillReceiveProps!="function"||(G!==We||ke!==de)&&og(c,M,E,de),Xo=!1,ke=c.memoizedState,M.state=ke,ic(c,E,M,C),rl();var Me=c.memoizedState;G!==We||ke!==Me||Xo||s!==null&&s.dependencies!==null&&mu(s.dependencies)?(typeof te=="function"&&(ld(c,m,te,E),Me=c.memoizedState),(He=Xo||gb(c,m,He,E,ke,Me,de)||s!==null&&s.dependencies!==null&&mu(s.dependencies))?(Ne||typeof M.UNSAFE_componentWillUpdate!="function"&&typeof M.componentWillUpdate!="function"||(typeof M.componentWillUpdate=="function"&&M.componentWillUpdate(E,Me,de),typeof M.UNSAFE_componentWillUpdate=="function"&&M.UNSAFE_componentWillUpdate(E,Me,de)),typeof M.componentDidUpdate=="function"&&(c.flags|=4),typeof M.getSnapshotBeforeUpdate=="function"&&(c.flags|=1024)):(typeof M.componentDidUpdate!="function"||G===s.memoizedProps&&ke===s.memoizedState||(c.flags|=4),typeof M.getSnapshotBeforeUpdate!="function"||G===s.memoizedProps&&ke===s.memoizedState||(c.flags|=1024),c.memoizedProps=E,c.memoizedState=Me),M.props=E,M.state=Me,M.context=de,E=He):(typeof M.componentDidUpdate!="function"||G===s.memoizedProps&&ke===s.memoizedState||(c.flags|=4),typeof M.getSnapshotBeforeUpdate!="function"||G===s.memoizedProps&&ke===s.memoizedState||(c.flags|=1024),E=!1)}return M=E,Cc(s,c),E=(c.flags&128)!==0,M||E?(M=c.stateNode,m=E&&typeof m.getDerivedStateFromError!="function"?null:M.render(),c.flags|=1,s!==null&&E?(c.child=Sc(c,s.child,null,C),c.child=Sc(c,null,m,C)):hi(s,c,m,C),c.memoizedState=M.state,s=c.child):s=d(s,c,C),s}function Eb(s,c,m,E){return ms(),c.flags|=256,hi(s,c,m,E),c.child}var Tu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function fg(s){return{baseLanes:s,cachePool:$m()}}function _c(s,c,m){return s=s!==null?s.childLanes&~m:0,c&&(s|=Zs),s}function xb(s,c,m){var E=c.pendingProps,C=!1,M=(c.flags&128)!==0,G;if((G=M)||(G=s!==null&&s.memoizedState===null?!1:(ni.current&2)!==0),G&&(C=!0,c.flags&=-129),G=(c.flags&32)!==0,c.flags&=-33,s===null){if(un){if(C?xu(c):Oa(),un){var te=Gn,de;if(de=te){e:{for(de=te,te=ro;de.nodeType!==8;){if(!te){te=null;break e}if(de=La(de.nextSibling),de===null){te=null;break e}}te=de}te!==null?(c.memoizedState={dehydrated:te,treeContext:Ko!==null?{id:Fo,overflow:Sa}:null,retryLane:536870912,hydrationErrors:null},de=Io(18,null,null,0),de.stateNode=te,de.return=c,c.child=de,Dr=c,Gn=null,de=!0):de=!1}de||hu(c)}if(te=c.memoizedState,te!==null&&(te=te.dehydrated,te!==null))return Ew(te)?c.lanes=32:c.lanes=536870912,null;ka(c)}return te=E.children,E=E.fallback,C?(Oa(),C=c.mode,te=dp({mode:"hidden",children:te},C),E=Qo(E,C,m,null),te.return=c,E.return=c,te.sibling=E,c.child=te,C=c.child,C.memoizedState=fg(m),C.childLanes=_c(s,G,m),c.memoizedState=Tu,E):(xu(c),ar(c,te))}if(de=s.memoizedState,de!==null&&(te=de.dehydrated,te!==null)){if(M)c.flags&256?(xu(c),c.flags&=-257,c=dg(s,c,m)):c.memoizedState!==null?(Oa(),c.child=s.child,c.flags|=128,c=null):(Oa(),C=E.fallback,te=c.mode,E=dp({mode:"visible",children:E.children},te),C=Qo(C,te,m,null),C.flags|=2,E.return=c,C.return=c,E.sibling=C,c.child=E,Sc(c,s.child,null,m),E=c.child,E.memoizedState=fg(m),E.childLanes=_c(s,G,m),c.memoizedState=Tu,c=C);else if(xu(c),Ew(te)){if(G=te.nextSibling&&te.nextSibling.dataset,G)var Ne=G.dgst;G=Ne,E=Error(r(419)),E.stack="",E.digest=G,Wf({value:E,source:null,stack:null}),c=dg(s,c,m)}else if(Hr||pr(s,c,m,!1),G=(m&s.childLanes)!==0,Hr||G){if(G=ur,G!==null&&(E=m&-m,E=(E&42)!==0?1:Qt(E),E=(E&(G.suspendedLanes|m))!==0?0:E,E!==0&&E!==de.retryLane))throw de.retryLane=E,Ku(s,E),bs(G,s,E),dd;te.data==="$?"||rw(),c=dg(s,c,m)}else te.data==="$?"?(c.flags|=192,c.child=s.child,c=null):(s=de.treeContext,Gn=La(te.nextSibling),Dr=c,un=!0,hs=null,ro=!1,s!==null&&(vo[yo++]=Fo,vo[yo++]=Sa,vo[yo++]=Ko,Fo=s.id,Sa=s.overflow,Ko=c),c=ar(c,E.children),c.flags|=4096);return c}return C?(Oa(),C=E.fallback,te=c.mode,de=s.child,Ne=de.sibling,E=Gs(de,{mode:"hidden",children:E.children}),E.subtreeFlags=de.subtreeFlags&65011712,Ne!==null?C=Gs(Ne,C):(C=Qo(C,te,m,null),C.flags|=2),C.return=c,E.return=c,E.sibling=C,c.child=E,E=C,C=c.child,te=s.child.memoizedState,te===null?te=fg(m):(de=te.cachePool,de!==null?(Ne=Or._currentValue,de=de.parent!==Ne?{parent:Ne,pool:Ne}:de):de=$m(),te={baseLanes:te.baseLanes|m,cachePool:de}),C.memoizedState=te,C.childLanes=_c(s,G,m),c.memoizedState=Tu,E):(xu(c),m=s.child,s=m.sibling,m=Gs(m,{mode:"visible",children:E.children}),m.return=c,m.sibling=null,s!==null&&(G=c.deletions,G===null?(c.deletions=[s],c.flags|=16):G.push(s)),c.child=m,c.memoizedState=null,m)}function ar(s,c){return c=dp({mode:"visible",children:c},s.mode),c.return=s,s.child=c}function dp(s,c){return s=Io(22,s,null,c),s.lanes=0,s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},s}function dg(s,c,m){return Sc(c,s.child,null,m),s=ar(c,c.pendingProps.children),s.flags|=2,c.memoizedState=null,s}function Tb(s,c,m){s.lanes|=c;var E=s.alternate;E!==null&&(E.lanes|=c),Nr(s.return,c,m)}function Ac(s,c,m,E,C){var M=s.memoizedState;M===null?s.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:E,tail:m,tailMode:C}:(M.isBackwards=c,M.rendering=null,M.renderingStartTime=0,M.last=E,M.tail=m,M.tailMode=C)}function u(s,c,m){var E=c.pendingProps,C=E.revealOrder,M=E.tail;if(hi(s,c,E.children,m),E=ni.current,(E&2)!==0)E=E&1|2,c.flags|=128;else{if(s!==null&&(s.flags&128)!==0)e:for(s=c.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&Tb(s,m,c);else if(s.tag===19)Tb(s,m,c);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===c)break e;for(;s.sibling===null;){if(s.return===null||s.return===c)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}E&=1}switch(fe(ni,E),C){case"forwards":for(m=c.child,C=null;m!==null;)s=m.alternate,s!==null&&ud(s)===null&&(C=m),m=m.sibling;m=C,m===null?(C=c.child,c.child=null):(C=m.sibling,m.sibling=null),Ac(c,!1,C,m,M);break;case"backwards":for(m=null,C=c.child,c.child=null;C!==null;){if(s=C.alternate,s!==null&&ud(s)===null){c.child=C;break}s=C.sibling,C.sibling=m,m=C,C=s}Ac(c,!0,m,null,M);break;case"together":Ac(c,!1,null,null,void 0);break;default:c.memoizedState=null}return c.child}function d(s,c,m){if(s!==null&&(c.dependencies=s.dependencies),Oc|=c.lanes,(m&c.childLanes)===0)if(s!==null){if(pr(s,c,m,!1),(m&c.childLanes)===0)return null}else return null;if(s!==null&&c.child!==s.child)throw Error(r(153));if(c.child!==null){for(s=c.child,m=Gs(s,s.pendingProps),c.child=m,m.return=c;s.sibling!==null;)s=s.sibling,m=m.sibling=Gs(s,s.pendingProps),m.return=c;m.sibling=null}return c.child}function y(s,c){return(s.lanes&c)!==0?!0:(s=s.dependencies,!!(s!==null&&mu(s)))}function g(s,c,m){switch(c.tag){case 3:ge(c,c.stateNode.containerInfo),pu(c,Or,s.memoizedState.cache),ms();break;case 27:case 5:Xe(c);break;case 4:ge(c,c.stateNode.containerInfo);break;case 10:pu(c,c.type,c.memoizedProps.value);break;case 13:var E=c.memoizedState;if(E!==null)return E.dehydrated!==null?(xu(c),c.flags|=128,null):(m&c.child.childLanes)!==0?xb(s,c,m):(xu(c),s=d(s,c,m),s!==null?s.sibling:null);xu(c);break;case 19:var C=(s.flags&128)!==0;if(E=(m&c.childLanes)!==0,E||(pr(s,c,m,!1),E=(m&c.childLanes)!==0),C){if(E)return u(s,c,m);c.flags|=128}if(C=c.memoizedState,C!==null&&(C.rendering=null,C.tail=null,C.lastEffect=null),fe(ni,ni.current),E)break;return null;case 22:case 23:return c.lanes=0,lg(s,c,m);case 24:pu(c,Or,s.memoizedState.cache)}return d(s,c,m)}function T(s,c,m){if(s!==null)if(s.memoizedProps!==c.pendingProps)Hr=!0;else{if(!y(s,m)&&(c.flags&128)===0)return Hr=!1,g(s,c,m);Hr=(s.flags&131072)!==0}else Hr=!1,un&&(c.flags&1048576)!==0&&Fm(c,Mh,c.index);switch(c.lanes=0,c.tag){case 16:e:{s=c.pendingProps;var E=c.elementType,C=E._init;if(E=C(E._payload),c.type=E,typeof E=="function")Gf(E)?(s=Jo(E,s),c.tag=1,c=cg(null,c,E,s,m)):(c.tag=0,c=fp(null,c,E,s,m));else{if(E!=null){if(C=E.$$typeof,C===A){c.tag=11,c=ag(null,c,E,s,m);break e}else if(C===j){c.tag=14,c=ug(null,c,E,s,m);break e}}throw c=ee(E)||E,Error(r(306,c,""))}}return c;case 0:return fp(s,c,c.type,c.pendingProps,m);case 1:return E=c.type,C=Jo(E,c.pendingProps),cg(s,c,E,C,m);case 3:e:{if(ge(c,c.stateNode.containerInfo),s===null)throw Error(r(387));E=c.pendingProps;var M=c.memoizedState;C=M.element,Kf(s,c),ic(c,E,null,m);var G=c.memoizedState;if(E=G.cache,pu(c,Or,E),E!==M.cache&&di(c,[Or],m,!0),rl(),E=G.element,M.isDehydrated)if(M={element:E,isDehydrated:!1,cache:G.cache},c.updateQueue.baseState=M,c.memoizedState=M,c.flags&256){c=Eb(s,c,E,m);break e}else if(E!==C){C=ci(Error(r(424)),c),Wf(C),c=Eb(s,c,E,m);break e}else{switch(s=c.stateNode.containerInfo,s.nodeType){case 9:s=s.body;break;default:s=s.nodeName==="HTML"?s.ownerDocument.body:s}for(Gn=La(s.firstChild),Dr=c,un=!0,hs=null,ro=!0,m=ig(c,null,E,m),c.child=m;m;)m.flags=m.flags&-3|4096,m=m.sibling}else{if(ms(),E===C){c=d(s,c,m);break e}hi(s,c,E,m)}c=c.child}return c;case 26:return Cc(s,c),s===null?(m=jL(c.type,null,c.pendingProps,null))?c.memoizedState=m:un||(m=c.type,s=c.pendingProps,E=Lb(ve.current).createElement(m),E[It]=c,E[en]=s,uo(E,m,s),dn(E),c.stateNode=E):c.memoizedState=jL(c.type,s.memoizedProps,c.pendingProps,s.memoizedState),null;case 27:return Xe(c),s===null&&un&&(E=c.stateNode=IL(c.type,c.pendingProps,ve.current),Dr=c,ro=!0,C=Gn,Lc(c.type)?(xw=C,Gn=La(E.firstChild)):Gn=C),hi(s,c,c.pendingProps.children,m),Cc(s,c),s===null&&(c.flags|=4194304),c.child;case 5:return s===null&&un&&((C=E=Gn)&&(E=ble(E,c.type,c.pendingProps,ro),E!==null?(c.stateNode=E,Dr=c,Gn=La(E.firstChild),ro=!1,C=!0):C=!1),C||hu(c)),Xe(c),C=c.type,M=c.pendingProps,G=s!==null?s.memoizedProps:null,E=M.children,vw(C,M)?E=null:G!==null&&vw(C,G)&&(c.flags|=32),c.memoizedState!==null&&(C=Gh(s,c,Wh,null,null,m),Cg._currentValue=C),Cc(s,c),hi(s,c,E,m),c.child;case 6:return s===null&&un&&((s=m=Gn)&&(m=Ele(m,c.pendingProps,ro),m!==null?(c.stateNode=m,Dr=c,Gn=null,s=!0):s=!1),s||hu(c)),null;case 13:return xb(s,c,m);case 4:return ge(c,c.stateNode.containerInfo),E=c.pendingProps,s===null?c.child=Sc(c,null,E,m):hi(s,c,E,m),c.child;case 11:return ag(s,c,c.type,c.pendingProps,m);case 7:return hi(s,c,c.pendingProps,m),c.child;case 8:return hi(s,c,c.pendingProps.children,m),c.child;case 12:return hi(s,c,c.pendingProps.children,m),c.child;case 10:return E=c.pendingProps,pu(c,c.type,E.value),hi(s,c,E.children,m),c.child;case 9:return C=c.type._context,E=c.pendingProps.children,Ju(c),C=ei(C),E=E(C),c.flags|=1,hi(s,c,E,m),c.child;case 14:return ug(s,c,c.type,c.pendingProps,m);case 15:return cp(s,c,c.type,c.pendingProps,m);case 19:return u(s,c,m);case 31:return E=c.pendingProps,m=c.mode,E={mode:E.mode,children:E.children},s===null?(m=dp(E,m),m.ref=c.ref,c.child=m,m.return=c,c=m):(m=Gs(s.child,E),m.ref=c.ref,c.child=m,m.return=c,c=m),c;case 22:return lg(s,c,m);case 24:return Ju(c),E=ei(Or),s===null?(C=jh(),C===null&&(C=ur,M=Bm(),C.pooledCache=M,M.refCount++,M!==null&&(C.pooledCacheLanes|=m),C=M),c.memoizedState={parent:E,cache:C},Uh(c),pu(c,Or,C)):((s.lanes&m)!==0&&(Kf(s,c),ic(c,null,null,m),rl()),C=s.memoizedState,M=c.memoizedState,C.parent!==E?(C={parent:E,cache:E},c.memoizedState=C,c.lanes===0&&(c.memoizedState=c.updateQueue.baseState=C),pu(c,Or,E)):(E=M.cache,pu(c,Or,E),E!==C.cache&&di(c,[Or],m,!0))),hi(s,c,c.pendingProps.children,m),c.child;case 29:throw c.pendingProps}throw Error(r(156,c.tag))}function D(s){s.flags|=4}function I(s,c){if(c.type!=="stylesheet"||(c.state.loading&4)!==0)s.flags&=-16777217;else if(s.flags|=16777216,!HL(c)){if(c=Zo.current,c!==null&&((kn&4194048)===kn?Ks!==null:(kn&62914560)!==kn&&(kn&536870912)===0||c!==Ks))throw tc=Ys,wn;s.flags|=8192}}function V(s,c){c!==null&&(s.flags|=4),s.flags&16384&&(c=s.tag!==22?Sn():536870912,s.lanes|=c,gp|=c)}function U(s,c){if(!un)switch(s.tailMode){case"hidden":c=s.tail;for(var m=null;c!==null;)c.alternate!==null&&(m=c),c=c.sibling;m===null?s.tail=null:m.sibling=null;break;case"collapsed":m=s.tail;for(var E=null;m!==null;)m.alternate!==null&&(E=m),m=m.sibling;E===null?c||s.tail===null?s.tail=null:s.tail.sibling=null:E.sibling=null}}function z(s){var c=s.alternate!==null&&s.alternate.child===s.child,m=0,E=0;if(c)for(var C=s.child;C!==null;)m|=C.lanes|C.childLanes,E|=C.subtreeFlags&65011712,E|=C.flags&65011712,C.return=s,C=C.sibling;else for(C=s.child;C!==null;)m|=C.lanes|C.childLanes,E|=C.subtreeFlags,E|=C.flags,C.return=s,C=C.sibling;return s.subtreeFlags|=E,s.childLanes=m,c}function ie(s,c,m){var E=c.pendingProps;switch(Lh(c),c.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return z(c),null;case 1:return z(c),null;case 3:return m=c.stateNode,E=null,s!==null&&(E=s.memoizedState.cache),c.memoizedState.cache!==E&&(c.flags|=2048),xr(Or),Ve(),m.pendingContext&&(m.context=m.pendingContext,m.pendingContext=null),(s===null||s.child===null)&&(ps(c)?D(c):s===null||s.memoizedState.isDehydrated&&(c.flags&256)===0||(c.flags|=1024,Xy())),z(c),null;case 26:return m=c.memoizedState,s===null?(D(c),m!==null?(z(c),I(c,m)):(z(c),c.flags&=-16777217)):m?m!==s.memoizedState?(D(c),z(c),I(c,m)):(z(c),c.flags&=-16777217):(s.memoizedProps!==E&&D(c),z(c),c.flags&=-16777217),null;case 27:et(c),m=ve.current;var C=c.type;if(s!==null&&c.stateNode!=null)s.memoizedProps!==E&&D(c);else{if(!E){if(c.stateNode===null)throw Error(r(166));return z(c),null}s=ae.current,ps(c)?Pm(c):(s=IL(C,E,m),c.stateNode=s,D(c))}return z(c),null;case 5:if(et(c),m=c.type,s!==null&&c.stateNode!=null)s.memoizedProps!==E&&D(c);else{if(!E){if(c.stateNode===null)throw Error(r(166));return z(c),null}if(s=ae.current,ps(c))Pm(c);else{switch(C=Lb(ve.current),s){case 1:s=C.createElementNS("http://www.w3.org/2000/svg",m);break;case 2:s=C.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;default:switch(m){case"svg":s=C.createElementNS("http://www.w3.org/2000/svg",m);break;case"math":s=C.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;case"script":s=C.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof E.is=="string"?C.createElement("select",{is:E.is}):C.createElement("select"),E.multiple?s.multiple=!0:E.size&&(s.size=E.size);break;default:s=typeof E.is=="string"?C.createElement(m,{is:E.is}):C.createElement(m)}}s[It]=c,s[en]=E;e:for(C=c.child;C!==null;){if(C.tag===5||C.tag===6)s.appendChild(C.stateNode);else if(C.tag!==4&&C.tag!==27&&C.child!==null){C.child.return=C,C=C.child;continue}if(C===c)break e;for(;C.sibling===null;){if(C.return===null||C.return===c)break e;C=C.return}C.sibling.return=C.return,C=C.sibling}c.stateNode=s;e:switch(uo(s,m,E),m){case"button":case"input":case"select":case"textarea":s=!!E.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&D(c)}}return z(c),c.flags&=-16777217,null;case 6:if(s&&c.stateNode!=null)s.memoizedProps!==E&&D(c);else{if(typeof E!="string"&&c.stateNode===null)throw Error(r(166));if(s=ve.current,ps(c)){if(s=c.stateNode,m=c.memoizedProps,E=null,C=Dr,C!==null)switch(C.tag){case 27:case 5:E=C.memoizedProps}s[It]=c,s=!!(s.nodeValue===m||E!==null&&E.suppressHydrationWarning===!0||DL(s.nodeValue,m)),s||hu(c)}else s=Lb(s).createTextNode(E),s[It]=c,c.stateNode=s}return z(c),null;case 13:if(E=c.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(C=ps(c),E!==null&&E.dehydrated!==null){if(s===null){if(!C)throw Error(r(318));if(C=c.memoizedState,C=C!==null?C.dehydrated:null,!C)throw Error(r(317));C[It]=c}else ms(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;z(c),C=!1}else C=Xy(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=C),C=!0;if(!C)return c.flags&256?(ka(c),c):(ka(c),null)}if(ka(c),(c.flags&128)!==0)return c.lanes=m,c;if(m=E!==null,s=s!==null&&s.memoizedState!==null,m){E=c.child,C=null,E.alternate!==null&&E.alternate.memoizedState!==null&&E.alternate.memoizedState.cachePool!==null&&(C=E.alternate.memoizedState.cachePool.pool);var M=null;E.memoizedState!==null&&E.memoizedState.cachePool!==null&&(M=E.memoizedState.cachePool.pool),M!==C&&(E.flags|=2048)}return m!==s&&m&&(c.child.flags|=8192),V(c,c.updateQueue),z(c),null;case 4:return Ve(),s===null&&dw(c.stateNode.containerInfo),z(c),null;case 10:return xr(c.type),z(c),null;case 19:if(se(ni),C=c.memoizedState,C===null)return z(c),null;if(E=(c.flags&128)!==0,M=C.rendering,M===null)if(E)U(C,!1);else{if(qr!==0||s!==null&&(s.flags&128)!==0)for(s=c.child;s!==null;){if(M=ud(s),M!==null){for(c.flags|=128,U(C,!1),s=M.updateQueue,c.updateQueue=s,V(c,s),c.subtreeFlags=0,s=m,m=c.child;m!==null;)Oh(m,s),m=m.sibling;return fe(ni,ni.current&1|2),c.child}s=s.sibling}C.tail!==null&&re()>wb&&(c.flags|=128,E=!0,U(C,!1),c.lanes=4194304)}else{if(!E)if(s=ud(M),s!==null){if(c.flags|=128,E=!0,s=s.updateQueue,c.updateQueue=s,V(c,s),U(C,!0),C.tail===null&&C.tailMode==="hidden"&&!M.alternate&&!un)return z(c),null}else 2*re()-C.renderingStartTime>wb&&m!==536870912&&(c.flags|=128,E=!0,U(C,!1),c.lanes=4194304);C.isBackwards?(M.sibling=c.child,c.child=M):(s=C.last,s!==null?s.sibling=M:c.child=M,C.last=M)}return C.tail!==null?(c=C.tail,C.rendering=c,C.tail=c.sibling,C.renderingStartTime=re(),c.sibling=null,s=ni.current,fe(ni,E?s&1|2:s&1),c):(z(c),null);case 22:case 23:return ka(c),zm(),E=c.memoizedState!==null,s!==null?s.memoizedState!==null!==E&&(c.flags|=8192):E&&(c.flags|=8192),E?(m&536870912)!==0&&(c.flags&128)===0&&(z(c),c.subtreeFlags&6&&(c.flags|=8192)):z(c),m=c.updateQueue,m!==null&&V(c,m.retryQueue),m=null,s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(m=s.memoizedState.cachePool.pool),E=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(E=c.memoizedState.cachePool.pool),E!==m&&(c.flags|=2048),s!==null&&se(io),null;case 24:return m=null,s!==null&&(m=s.memoizedState.cache),c.memoizedState.cache!==m&&(c.flags|=2048),xr(Or),z(c),null;case 25:return null;case 30:return null}throw Error(r(156,c.tag))}function ce(s,c){switch(Lh(c),c.tag){case 1:return s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 3:return xr(Or),Ve(),s=c.flags,(s&65536)!==0&&(s&128)===0?(c.flags=s&-65537|128,c):null;case 26:case 27:case 5:return et(c),null;case 13:if(ka(c),s=c.memoizedState,s!==null&&s.dehydrated!==null){if(c.alternate===null)throw Error(r(340));ms()}return s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 19:return se(ni),null;case 4:return Ve(),null;case 10:return xr(c.type),null;case 22:case 23:return ka(c),zm(),s!==null&&se(io),s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 24:return xr(Or),null;case 25:return null;default:return null}}function Se(s,c){switch(Lh(c),c.tag){case 3:xr(Or),Ve();break;case 26:case 27:case 5:et(c);break;case 4:Ve();break;case 13:ka(c);break;case 19:se(ni);break;case 10:xr(c.type);break;case 22:case 23:ka(c),zm(),s!==null&&se(io);break;case 24:xr(Or)}}function me(s,c){try{var m=c.updateQueue,E=m!==null?m.lastEffect:null;if(E!==null){var C=E.next;m=C;do{if((m.tag&s)===s){E=void 0;var M=m.create,G=m.inst;E=M(),G.destroy=E}m=m.next}while(m!==C)}}catch(te){tr(c,c.return,te)}}function Re(s,c,m){try{var E=c.updateQueue,C=E!==null?E.lastEffect:null;if(C!==null){var M=C.next;E=M;do{if((E.tag&s)===s){var G=E.inst,te=G.destroy;if(te!==void 0){G.destroy=void 0,C=c;var de=m,Ne=te;try{Ne()}catch(He){tr(C,de,He)}}}E=E.next}while(E!==M)}}catch(He){tr(c,c.return,He)}}function $e(s){var c=s.updateQueue;if(c!==null){var m=s.stateNode;try{Hm(c,m)}catch(E){tr(s,s.return,E)}}}function Ke(s,c,m){m.props=Jo(s.type,s.memoizedProps),m.state=s.memoizedState;try{m.componentWillUnmount()}catch(E){tr(s,c,E)}}function Ze(s,c){try{var m=s.ref;if(m!==null){switch(s.tag){case 26:case 27:case 5:var E=s.stateNode;break;case 30:E=s.stateNode;break;default:E=s.stateNode}typeof m=="function"?s.refCleanup=m(E):m.current=E}}catch(C){tr(s,c,C)}}function nt(s,c){var m=s.ref,E=s.refCleanup;if(m!==null)if(typeof E=="function")try{E()}catch(C){tr(s,c,C)}finally{s.refCleanup=null,s=s.alternate,s!=null&&(s.refCleanup=null)}else if(typeof m=="function")try{m(null)}catch(C){tr(s,c,C)}else m.current=null}function rt(s){var c=s.type,m=s.memoizedProps,E=s.stateNode;try{e:switch(c){case"button":case"input":case"select":case"textarea":m.autoFocus&&E.focus();break e;case"img":m.src?E.src=m.src:m.srcSet&&(E.srcset=m.srcSet)}}catch(C){tr(s,s.return,C)}}function st(s,c,m){try{var E=s.stateNode;ple(E,s.type,m,c),E[en]=c}catch(C){tr(s,s.return,C)}}function Tt(s){return s.tag===5||s.tag===3||s.tag===26||s.tag===27&&Lc(s.type)||s.tag===4}function vt(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||Tt(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.tag===27&&Lc(s.type)||s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function Ht(s,c,m){var E=s.tag;if(E===5||E===6)s=s.stateNode,c?(m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m).insertBefore(s,c):(c=m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m,c.appendChild(s),m=m._reactRootContainer,m!=null||c.onclick!==null||(c.onclick=Mb));else if(E!==4&&(E===27&&Lc(s.type)&&(m=s.stateNode,c=null),s=s.child,s!==null))for(Ht(s,c,m),s=s.sibling;s!==null;)Ht(s,c,m),s=s.sibling}function Ln(s,c,m){var E=s.tag;if(E===5||E===6)s=s.stateNode,c?m.insertBefore(s,c):m.appendChild(s);else if(E!==4&&(E===27&&Lc(s.type)&&(m=s.stateNode),s=s.child,s!==null))for(Ln(s,c,m),s=s.sibling;s!==null;)Ln(s,c,m),s=s.sibling}function zr(s){var c=s.stateNode,m=s.memoizedProps;try{for(var E=s.type,C=c.attributes;C.length;)c.removeAttributeNode(C[0]);uo(c,E,m),c[It]=s,c[en]=m}catch(M){tr(s,s.return,M)}}var Nn=!1,En=!1,ki=!1,Sr=typeof WeakSet=="function"?WeakSet:Set,On=null;function pi(s,c){if(s=s.containerInfo,mw=Bb,s=ql(s),Ch(s)){if("selectionStart"in s)var m={start:s.selectionStart,end:s.selectionEnd};else e:{m=(m=s.ownerDocument)&&m.defaultView||window;var E=m.getSelection&&m.getSelection();if(E&&E.rangeCount!==0){m=E.anchorNode;var C=E.anchorOffset,M=E.focusNode;E=E.focusOffset;try{m.nodeType,M.nodeType}catch{m=null;break e}var G=0,te=-1,de=-1,Ne=0,He=0,We=s,ke=null;t:for(;;){for(var Me;We!==m||C!==0&&We.nodeType!==3||(te=G+C),We!==M||E!==0&&We.nodeType!==3||(de=G+E),We.nodeType===3&&(G+=We.nodeValue.length),(Me=We.firstChild)!==null;)ke=We,We=Me;for(;;){if(We===s)break t;if(ke===m&&++Ne===C&&(te=G),ke===M&&++He===E&&(de=G),(Me=We.nextSibling)!==null)break;We=ke,ke=We.parentNode}We=Me}m=te===-1||de===-1?null:{start:te,end:de}}else m=null}m=m||{start:0,end:0}}else m=null;for(gw={focusedElem:s,selectionRange:m},Bb=!1,On=c;On!==null;)if(c=On,s=c.child,(c.subtreeFlags&1024)!==0&&s!==null)s.return=c,On=s;else for(;On!==null;){switch(c=On,M=c.alternate,s=c.flags,c.tag){case 0:break;case 11:case 15:break;case 1:if((s&1024)!==0&&M!==null){s=void 0,m=c,C=M.memoizedProps,M=M.memoizedState,E=m.stateNode;try{var Vt=Jo(m.type,C,m.elementType===m.type);s=E.getSnapshotBeforeUpdate(Vt,M),E.__reactInternalSnapshotBeforeUpdate=s}catch(Nt){tr(m,m.return,Nt)}}break;case 3:if((s&1024)!==0){if(s=c.stateNode.containerInfo,m=s.nodeType,m===9)bw(s);else if(m===1)switch(s.nodeName){case"HEAD":case"HTML":case"BODY":bw(s);break;default:s.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((s&1024)!==0)throw Error(r(163))}if(s=c.sibling,s!==null){s.return=c.return,On=s;break}On=c.return}}function Rr(s,c,m){var E=m.flags;switch(m.tag){case 0:case 11:case 15:Po(s,m),E&4&&me(5,m);break;case 1:if(Po(s,m),E&4)if(s=m.stateNode,c===null)try{s.componentDidMount()}catch(G){tr(m,m.return,G)}else{var C=Jo(m.type,c.memoizedProps);c=c.memoizedState;try{s.componentDidUpdate(C,c,s.__reactInternalSnapshotBeforeUpdate)}catch(G){tr(m,m.return,G)}}E&64&&$e(m),E&512&&Ze(m,m.return);break;case 3:if(Po(s,m),E&64&&(s=m.updateQueue,s!==null)){if(c=null,m.child!==null)switch(m.child.tag){case 27:case 5:c=m.child.stateNode;break;case 1:c=m.child.stateNode}try{Hm(s,c)}catch(G){tr(m,m.return,G)}}break;case 27:c===null&&E&4&&zr(m);case 26:case 5:Po(s,m),c===null&&E&4&&rt(m),E&512&&Ze(m,m.return);break;case 12:Po(s,m);break;case 13:Po(s,m),E&4&&mi(s,m),E&64&&(s=m.memoizedState,s!==null&&(s=s.dehydrated,s!==null&&(m=rle.bind(null,m),xle(s,m))));break;case 22:if(E=m.memoizedState!==null||Nn,!E){c=c!==null&&c.memoizedState!==null||En,C=Nn;var M=En;Nn=E,(En=c)&&!M?Dc(s,m,(m.subtreeFlags&8772)!==0):Po(s,m),Nn=C,En=M}break;case 30:break;default:Po(s,m)}}function wr(s){var c=s.alternate;c!==null&&(s.alternate=null,wr(c)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(c=s.stateNode,c!==null&&Kr(c)),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}var jt=null,Vn=!1;function xo(s,c,m){for(m=m.child;m!==null;)Ra(s,c,m),m=m.sibling}function Ra(s,c,m){if(kt&&typeof kt.onCommitFiberUnmount=="function")try{kt.onCommitFiberUnmount(At,m)}catch{}switch(m.tag){case 26:En||nt(m,c),xo(s,c,m),m.memoizedState?m.memoizedState.count--:m.stateNode&&(m=m.stateNode,m.parentNode.removeChild(m));break;case 27:En||nt(m,c);var E=jt,C=Vn;Lc(m.type)&&(jt=m.stateNode,Vn=!1),xo(s,c,m),xg(m.stateNode),jt=E,Vn=C;break;case 5:En||nt(m,c);case 6:if(E=jt,C=Vn,jt=null,xo(s,c,m),jt=E,Vn=C,jt!==null)if(Vn)try{(jt.nodeType===9?jt.body:jt.nodeName==="HTML"?jt.ownerDocument.body:jt).removeChild(m.stateNode)}catch(M){tr(m,c,M)}else try{jt.removeChild(m.stateNode)}catch(M){tr(m,c,M)}break;case 18:jt!==null&&(Vn?(s=jt,ML(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,m.stateNode),Ng(s)):ML(jt,m.stateNode));break;case 4:E=jt,C=Vn,jt=m.stateNode.containerInfo,Vn=!0,xo(s,c,m),jt=E,Vn=C;break;case 0:case 11:case 14:case 15:En||Re(2,m,c),En||Re(4,m,c),xo(s,c,m);break;case 1:En||(nt(m,c),E=m.stateNode,typeof E.componentWillUnmount=="function"&&Ke(m,c,E)),xo(s,c,m);break;case 21:xo(s,c,m);break;case 22:En=(E=En)||m.memoizedState!==null,xo(s,c,m),En=E;break;default:xo(s,c,m)}}function mi(s,c){if(c.memoizedState===null&&(s=c.alternate,s!==null&&(s=s.memoizedState,s!==null&&(s=s.dehydrated,s!==null))))try{Ng(s)}catch(m){tr(c,c.return,m)}}function Xs(s){switch(s.tag){case 13:case 19:var c=s.stateNode;return c===null&&(c=s.stateNode=new Sr),c;case 22:return s=s.stateNode,c=s._retryCache,c===null&&(c=s._retryCache=new Sr),c;default:throw Error(r(435,s.tag))}}function Mr(s,c){var m=Xs(s);c.forEach(function(E){var C=ile.bind(null,s,E);m.has(E)||(m.add(E),E.then(C,C))})}function so(s,c){var m=c.deletions;if(m!==null)for(var E=0;E<m.length;E++){var C=m[E],M=s,G=c,te=G;e:for(;te!==null;){switch(te.tag){case 27:if(Lc(te.type)){jt=te.stateNode,Vn=!1;break e}break;case 5:jt=te.stateNode,Vn=!1;break e;case 3:case 4:jt=te.stateNode.containerInfo,Vn=!0;break e}te=te.return}if(jt===null)throw Error(r(160));Ra(M,G,C),jt=null,Vn=!1,M=C.alternate,M!==null&&(M.return=null),C.return=null}if(c.subtreeFlags&13878)for(c=c.child;c!==null;)Su(c,s),c=c.sibling}var ri=null;function Su(s,c){var m=s.alternate,E=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:so(c,s),ii(s),E&4&&(Re(3,s,s.return),me(3,s),Re(5,s,s.return));break;case 1:so(c,s),ii(s),E&512&&(En||m===null||nt(m,m.return)),E&64&&Nn&&(s=s.updateQueue,s!==null&&(E=s.callbacks,E!==null&&(m=s.shared.hiddenCallbacks,s.shared.hiddenCallbacks=m===null?E:m.concat(E))));break;case 26:var C=ri;if(so(c,s),ii(s),E&512&&(En||m===null||nt(m,m.return)),E&4){var M=m!==null?m.memoizedState:null;if(E=s.memoizedState,m===null)if(E===null)if(s.stateNode===null){e:{E=s.type,m=s.memoizedProps,C=C.ownerDocument||C;t:switch(E){case"title":M=C.getElementsByTagName("title")[0],(!M||M[Dn]||M[It]||M.namespaceURI==="http://www.w3.org/2000/svg"||M.hasAttribute("itemprop"))&&(M=C.createElement(E),C.head.insertBefore(M,C.querySelector("head > title"))),uo(M,E,m),M[It]=s,dn(M),E=M;break e;case"link":var G=$L("link","href",C).get(E+(m.href||""));if(G){for(var te=0;te<G.length;te++)if(M=G[te],M.getAttribute("href")===(m.href==null||m.href===""?null:m.href)&&M.getAttribute("rel")===(m.rel==null?null:m.rel)&&M.getAttribute("title")===(m.title==null?null:m.title)&&M.getAttribute("crossorigin")===(m.crossOrigin==null?null:m.crossOrigin)){G.splice(te,1);break t}}M=C.createElement(E),uo(M,E,m),C.head.appendChild(M);break;case"meta":if(G=$L("meta","content",C).get(E+(m.content||""))){for(te=0;te<G.length;te++)if(M=G[te],M.getAttribute("content")===(m.content==null?null:""+m.content)&&M.getAttribute("name")===(m.name==null?null:m.name)&&M.getAttribute("property")===(m.property==null?null:m.property)&&M.getAttribute("http-equiv")===(m.httpEquiv==null?null:m.httpEquiv)&&M.getAttribute("charset")===(m.charSet==null?null:m.charSet)){G.splice(te,1);break t}}M=C.createElement(E),uo(M,E,m),C.head.appendChild(M);break;default:throw Error(r(468,E))}M[It]=s,dn(M),E=M}s.stateNode=E}else UL(C,s.type,s.stateNode);else s.stateNode=BL(C,E,s.memoizedProps);else M!==E?(M===null?m.stateNode!==null&&(m=m.stateNode,m.parentNode.removeChild(m)):M.count--,E===null?UL(C,s.type,s.stateNode):BL(C,E,s.memoizedProps)):E===null&&s.stateNode!==null&&st(s,s.memoizedProps,m.memoizedProps)}break;case 27:so(c,s),ii(s),E&512&&(En||m===null||nt(m,m.return)),m!==null&&E&4&&st(s,s.memoizedProps,m.memoizedProps);break;case 5:if(so(c,s),ii(s),E&512&&(En||m===null||nt(m,m.return)),s.flags&32){C=s.stateNode;try{_i(C,"")}catch(Me){tr(s,s.return,Me)}}E&4&&s.stateNode!=null&&(C=s.memoizedProps,st(s,C,m!==null?m.memoizedProps:C)),E&1024&&(ki=!0);break;case 6:if(so(c,s),ii(s),E&4){if(s.stateNode===null)throw Error(r(162));E=s.memoizedProps,m=s.stateNode;try{m.nodeValue=E}catch(Me){tr(s,s.return,Me)}}break;case 3:if(Pb=null,C=ri,ri=Ib(c.containerInfo),so(c,s),ri=C,ii(s),E&4&&m!==null&&m.memoizedState.isDehydrated)try{Ng(c.containerInfo)}catch(Me){tr(s,s.return,Me)}ki&&(ki=!1,Ri(s));break;case 4:E=ri,ri=Ib(s.stateNode.containerInfo),so(c,s),ii(s),ri=E;break;case 12:so(c,s),ii(s);break;case 13:so(c,s),ii(s),s.child.flags&8192&&s.memoizedState!==null!=(m!==null&&m.memoizedState!==null)&&(Z3=re()),E&4&&(E=s.updateQueue,E!==null&&(s.updateQueue=null,Mr(s,E)));break;case 22:C=s.memoizedState!==null;var de=m!==null&&m.memoizedState!==null,Ne=Nn,He=En;if(Nn=Ne||C,En=He||de,so(c,s),En=He,Nn=Ne,ii(s),E&8192)e:for(c=s.stateNode,c._visibility=C?c._visibility&-2:c._visibility|1,C&&(m===null||de||Nn||En||Ma(s)),m=null,c=s;;){if(c.tag===5||c.tag===26){if(m===null){de=m=c;try{if(M=de.stateNode,C)G=M.style,typeof G.setProperty=="function"?G.setProperty("display","none","important"):G.display="none";else{te=de.stateNode;var We=de.memoizedProps.style,ke=We!=null&&We.hasOwnProperty("display")?We.display:null;te.style.display=ke==null||typeof ke=="boolean"?"":(""+ke).trim()}}catch(Me){tr(de,de.return,Me)}}}else if(c.tag===6){if(m===null){de=c;try{de.stateNode.nodeValue=C?"":de.memoizedProps}catch(Me){tr(de,de.return,Me)}}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===s)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===s)break e;for(;c.sibling===null;){if(c.return===null||c.return===s)break e;m===c&&(m=null),c=c.return}m===c&&(m=null),c.sibling.return=c.return,c=c.sibling}E&4&&(E=s.updateQueue,E!==null&&(m=E.retryQueue,m!==null&&(E.retryQueue=null,Mr(s,m))));break;case 19:so(c,s),ii(s),E&4&&(E=s.updateQueue,E!==null&&(s.updateQueue=null,Mr(s,E)));break;case 30:break;case 21:break;default:so(c,s),ii(s)}}function ii(s){var c=s.flags;if(c&2){try{for(var m,E=s.return;E!==null;){if(Tt(E)){m=E;break}E=E.return}if(m==null)throw Error(r(160));switch(m.tag){case 27:var C=m.stateNode,M=vt(s);Ln(s,M,C);break;case 5:var G=m.stateNode;m.flags&32&&(_i(G,""),m.flags&=-33);var te=vt(s);Ln(s,te,G);break;case 3:case 4:var de=m.stateNode.containerInfo,Ne=vt(s);Ht(s,Ne,de);break;default:throw Error(r(161))}}catch(He){tr(s,s.return,He)}s.flags&=-3}c&4096&&(s.flags&=-4097)}function Ri(s){if(s.subtreeFlags&1024)for(s=s.child;s!==null;){var c=s;Ri(c),c.tag===5&&c.flags&1024&&c.stateNode.reset(),s=s.sibling}}function Po(s,c){if(c.subtreeFlags&8772)for(c=c.child;c!==null;)Rr(s,c.alternate,c),c=c.sibling}function Ma(s){for(s=s.child;s!==null;){var c=s;switch(c.tag){case 0:case 11:case 14:case 15:Re(4,c,c.return),Ma(c);break;case 1:nt(c,c.return);var m=c.stateNode;typeof m.componentWillUnmount=="function"&&Ke(c,c.return,m),Ma(c);break;case 27:xg(c.stateNode);case 26:case 5:nt(c,c.return),Ma(c);break;case 22:c.memoizedState===null&&Ma(c);break;case 30:Ma(c);break;default:Ma(c)}s=s.sibling}}function Dc(s,c,m){for(m=m&&(c.subtreeFlags&8772)!==0,c=c.child;c!==null;){var E=c.alternate,C=s,M=c,G=M.flags;switch(M.tag){case 0:case 11:case 15:Dc(C,M,m),me(4,M);break;case 1:if(Dc(C,M,m),E=M,C=E.stateNode,typeof C.componentDidMount=="function")try{C.componentDidMount()}catch(Ne){tr(E,E.return,Ne)}if(E=M,C=E.updateQueue,C!==null){var te=E.stateNode;try{var de=C.shared.hiddenCallbacks;if(de!==null)for(C.shared.hiddenCallbacks=null,C=0;C<de.length;C++)nb(de[C],te)}catch(Ne){tr(E,E.return,Ne)}}m&&G&64&&$e(M),Ze(M,M.return);break;case 27:zr(M);case 26:case 5:Dc(C,M,m),m&&E===null&&G&4&&rt(M),Ze(M,M.return);break;case 12:Dc(C,M,m);break;case 13:Dc(C,M,m),m&&G&4&&mi(C,M);break;case 22:M.memoizedState===null&&Dc(C,M,m),Ze(M,M.return);break;case 30:break;default:Dc(C,M,m)}c=c.sibling}}function W3(s,c){var m=null;s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(m=s.memoizedState.cachePool.pool),s=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(s=c.memoizedState.cachePool.pool),s!==m&&(s!=null&&s.refCount++,m!=null&&el(m))}function Y3(s,c){s=null,c.alternate!==null&&(s=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==s&&(c.refCount++,s!=null&&el(s))}function wu(s,c,m,E){if(c.subtreeFlags&10256)for(c=c.child;c!==null;)QM(s,c,m,E),c=c.sibling}function QM(s,c,m,E){var C=c.flags;switch(c.tag){case 0:case 11:case 15:wu(s,c,m,E),C&2048&&me(9,c);break;case 1:wu(s,c,m,E);break;case 3:wu(s,c,m,E),C&2048&&(s=null,c.alternate!==null&&(s=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==s&&(c.refCount++,s!=null&&el(s)));break;case 12:if(C&2048){wu(s,c,m,E),s=c.stateNode;try{var M=c.memoizedProps,G=M.id,te=M.onPostCommit;typeof te=="function"&&te(G,c.alternate===null?"mount":"update",s.passiveEffectDuration,-0)}catch(de){tr(c,c.return,de)}}else wu(s,c,m,E);break;case 13:wu(s,c,m,E);break;case 23:break;case 22:M=c.stateNode,G=c.alternate,c.memoizedState!==null?M._visibility&2?wu(s,c,m,E):hg(s,c):M._visibility&2?wu(s,c,m,E):(M._visibility|=2,hp(s,c,m,E,(c.subtreeFlags&10256)!==0)),C&2048&&W3(G,c);break;case 24:wu(s,c,m,E),C&2048&&Y3(c.alternate,c);break;default:wu(s,c,m,E)}}function hp(s,c,m,E,C){for(C=C&&(c.subtreeFlags&10256)!==0,c=c.child;c!==null;){var M=s,G=c,te=m,de=E,Ne=G.flags;switch(G.tag){case 0:case 11:case 15:hp(M,G,te,de,C),me(8,G);break;case 23:break;case 22:var He=G.stateNode;G.memoizedState!==null?He._visibility&2?hp(M,G,te,de,C):hg(M,G):(He._visibility|=2,hp(M,G,te,de,C)),C&&Ne&2048&&W3(G.alternate,G);break;case 24:hp(M,G,te,de,C),C&&Ne&2048&&Y3(G.alternate,G);break;default:hp(M,G,te,de,C)}c=c.sibling}}function hg(s,c){if(c.subtreeFlags&10256)for(c=c.child;c!==null;){var m=s,E=c,C=E.flags;switch(E.tag){case 22:hg(m,E),C&2048&&W3(E.alternate,E);break;case 24:hg(m,E),C&2048&&Y3(E.alternate,E);break;default:hg(m,E)}c=c.sibling}}var pg=8192;function pp(s){if(s.subtreeFlags&pg)for(s=s.child;s!==null;)KM(s),s=s.sibling}function KM(s){switch(s.tag){case 26:pp(s),s.flags&pg&&s.memoizedState!==null&&Lle(ri,s.memoizedState,s.memoizedProps);break;case 5:pp(s);break;case 3:case 4:var c=ri;ri=Ib(s.stateNode.containerInfo),pp(s),ri=c;break;case 22:s.memoizedState===null&&(c=s.alternate,c!==null&&c.memoizedState!==null?(c=pg,pg=16777216,pp(s),pg=c):pp(s));break;default:pp(s)}}function XM(s){var c=s.alternate;if(c!==null&&(s=c.child,s!==null)){c.child=null;do c=s.sibling,s.sibling=null,s=c;while(s!==null)}}function mg(s){var c=s.deletions;if((s.flags&16)!==0){if(c!==null)for(var m=0;m<c.length;m++){var E=c[m];On=E,JM(E,s)}XM(s)}if(s.subtreeFlags&10256)for(s=s.child;s!==null;)ZM(s),s=s.sibling}function ZM(s){switch(s.tag){case 0:case 11:case 15:mg(s),s.flags&2048&&Re(9,s,s.return);break;case 3:mg(s);break;case 12:mg(s);break;case 22:var c=s.stateNode;s.memoizedState!==null&&c._visibility&2&&(s.return===null||s.return.tag!==13)?(c._visibility&=-3,Sb(s)):mg(s);break;default:mg(s)}}function Sb(s){var c=s.deletions;if((s.flags&16)!==0){if(c!==null)for(var m=0;m<c.length;m++){var E=c[m];On=E,JM(E,s)}XM(s)}for(s=s.child;s!==null;){switch(c=s,c.tag){case 0:case 11:case 15:Re(8,c,c.return),Sb(c);break;case 22:m=c.stateNode,m._visibility&2&&(m._visibility&=-3,Sb(c));break;default:Sb(c)}s=s.sibling}}function JM(s,c){for(;On!==null;){var m=On;switch(m.tag){case 0:case 11:case 15:Re(8,m,c);break;case 23:case 22:if(m.memoizedState!==null&&m.memoizedState.cachePool!==null){var E=m.memoizedState.cachePool.pool;E!=null&&E.refCount++}break;case 24:el(m.memoizedState.cache)}if(E=m.child,E!==null)E.return=m,On=E;else e:for(m=s;On!==null;){E=On;var C=E.sibling,M=E.return;if(wr(E),E===m){On=null;break e}if(C!==null){C.return=M,On=C;break e}On=M}}}var Kue={getCacheForType:function(s){var c=ei(Or),m=c.data.get(s);return m===void 0&&(m=s(),c.data.set(s,m)),m}},Xue=typeof WeakMap=="function"?WeakMap:Map,$n=0,ur=null,hn=null,kn=0,Un=0,vs=null,Nc=!1,mp=!1,Q3=!1,cl=0,qr=0,Oc=0,hd=0,K3=0,Zs=0,gp=0,gg=null,es=null,X3=!1,Z3=0,wb=1/0,Cb=null,kc=null,ao=0,Rc=null,vp=null,yp=0,J3=0,ew=null,eL=null,vg=0,tw=null;function ys(){if(($n&2)!==0&&kn!==0)return kn&-kn;if(J.T!==null){var s=nl;return s!==0?s:uw()}return Rn()}function tL(){Zs===0&&(Zs=(kn&536870912)===0||un?lt():536870912);var s=Zo.current;return s!==null&&(s.flags|=32),Zs}function bs(s,c,m){(s===ur&&(Un===2||Un===9)||s.cancelPendingCommit!==null)&&(bp(s,0),Mc(s,kn,Zs,!1)),Yt(s,m),(($n&2)===0||s!==ur)&&(s===ur&&(($n&2)===0&&(hd|=m),qr===4&&Mc(s,kn,Zs,!1)),Cu(s))}function nL(s,c,m){if(($n&6)!==0)throw Error(r(327));var E=!m&&(c&124)===0&&(c&s.expiredLanes)===0||Et(s,c),C=E?ele(s,c):iw(s,c,!0),M=E;do{if(C===0){mp&&!E&&Mc(s,c,0,!1);break}else{if(m=s.current.alternate,M&&!Zue(m)){C=iw(s,c,!1),M=!1;continue}if(C===2){if(M=c,s.errorRecoveryDisabledLanes&M)var G=0;else G=s.pendingLanes&-536870913,G=G!==0?G:G&536870912?536870912:0;if(G!==0){c=G;e:{var te=s;C=gg;var de=te.current.memoizedState.isDehydrated;if(de&&(bp(te,G).flags|=256),G=iw(te,G,!1),G!==2){if(Q3&&!de){te.errorRecoveryDisabledLanes|=M,hd|=M,C=4;break e}M=es,es=C,M!==null&&(es===null?es=M:es.push.apply(es,M))}C=G}if(M=!1,C!==2)continue}}if(C===1){bp(s,0),Mc(s,c,0,!0);break}e:{switch(E=s,M=C,M){case 0:case 1:throw Error(r(345));case 4:if((c&4194048)!==c)break;case 6:Mc(E,c,Zs,!Nc);break e;case 2:es=null;break;case 3:case 5:break;default:throw Error(r(329))}if((c&62914560)===c&&(C=Z3+300-re(),10<C)){if(Mc(E,c,Zs,!Nc),Bn(E,0,!0)!==0)break e;E.timeoutHandle=kL(rL.bind(null,E,m,es,Cb,X3,c,Zs,hd,gp,Nc,M,2,-0,0),C);break e}rL(E,m,es,Cb,X3,c,Zs,hd,gp,Nc,M,0,-0,0)}}break}while(!0);Cu(s)}function rL(s,c,m,E,C,M,G,te,de,Ne,He,We,ke,Me){if(s.timeoutHandle=-1,We=c.subtreeFlags,(We&8192||(We&16785408)===16785408)&&(wg={stylesheets:null,count:0,unsuspend:Mle},KM(c),We=Ile(),We!==null)){s.cancelPendingCommit=We(cL.bind(null,s,c,M,m,E,C,G,te,de,He,1,ke,Me)),Mc(s,M,G,!Ne);return}cL(s,c,M,m,E,C,G,te,de)}function Zue(s){for(var c=s;;){var m=c.tag;if((m===0||m===11||m===15)&&c.flags&16384&&(m=c.updateQueue,m!==null&&(m=m.stores,m!==null)))for(var E=0;E<m.length;E++){var C=m[E],M=C.getSnapshot;C=C.value;try{if(!Lo(M(),C))return!1}catch{return!1}}if(m=c.child,c.subtreeFlags&16384&&m!==null)m.return=c,c=m;else{if(c===s)break;for(;c.sibling===null;){if(c.return===null||c.return===s)return!0;c=c.return}c.sibling.return=c.return,c=c.sibling}}return!0}function Mc(s,c,m,E){c&=~K3,c&=~hd,s.suspendedLanes|=c,s.pingedLanes&=~c,E&&(s.warmLanes|=c),E=s.expirationTimes;for(var C=c;0<C;){var M=31-mt(C),G=1<<M;E[M]=-1,C&=~G}m!==0&&xt(s,m,c)}function _b(){return($n&6)===0?(yg(0),!1):!0}function nw(){if(hn!==null){if(Un===0)var s=hn.return;else s=hn,wa=Zu=null,Kh(s),yc=null,bc=0,s=hn;for(;s!==null;)Se(s.alternate,s),s=s.return;hn=null}}function bp(s,c){var m=s.timeoutHandle;m!==-1&&(s.timeoutHandle=-1,gle(m)),m=s.cancelPendingCommit,m!==null&&(s.cancelPendingCommit=null,m()),nw(),ur=s,hn=m=Gs(s.current,null),kn=c,Un=0,vs=null,Nc=!1,mp=Et(s,c),Q3=!1,gp=Zs=K3=hd=Oc=qr=0,es=gg=null,X3=!1,(c&8)!==0&&(c|=c&32);var E=s.entangledLanes;if(E!==0)for(s=s.entanglements,E&=c;0<E;){var C=31-mt(E),M=1<<C;c|=s[C],E&=~M}return cl=c,ds(),m}function iL(s,c){Xt=null,J.H=od,c===Ni||c===bo?(c=tb(),Un=3):c===wn?(c=tb(),Un=4):Un=c===dd?8:c!==null&&typeof c=="object"&&typeof c.then=="function"?6:1,vs=c,hn===null&&(qr=1,up(s,ci(c,s.current)))}function oL(){var s=J.H;return J.H=od,s===null?od:s}function sL(){var s=J.A;return J.A=Kue,s}function rw(){qr=4,Nc||(kn&4194048)!==kn&&Zo.current!==null||(mp=!0),(Oc&134217727)===0&&(hd&134217727)===0||ur===null||Mc(ur,kn,Zs,!1)}function iw(s,c,m){var E=$n;$n|=2;var C=oL(),M=sL();(ur!==s||kn!==c)&&(Cb=null,bp(s,c)),c=!1;var G=qr;e:do try{if(Un!==0&&hn!==null){var te=hn,de=vs;switch(Un){case 8:nw(),G=6;break e;case 3:case 2:case 9:case 6:Zo.current===null&&(c=!0);var Ne=Un;if(Un=0,vs=null,Ep(s,te,de,Ne),m&&mp){G=0;break e}break;default:Ne=Un,Un=0,vs=null,Ep(s,te,de,Ne)}}Jue(),G=qr;break}catch(He){iL(s,He)}while(!0);return c&&s.shellSuspendCounter++,wa=Zu=null,$n=E,J.H=C,J.A=M,hn===null&&(ur=null,kn=0,ds()),G}function Jue(){for(;hn!==null;)aL(hn)}function ele(s,c){var m=$n;$n|=2;var E=oL(),C=sL();ur!==s||kn!==c?(Cb=null,wb=re()+500,bp(s,c)):mp=Et(s,c);e:do try{if(Un!==0&&hn!==null){c=hn;var M=vs;t:switch(Un){case 1:Un=0,vs=null,Ep(s,c,M,1);break;case 2:case 9:if(Ca(M)){Un=0,vs=null,uL(c);break}c=function(){Un!==2&&Un!==9||ur!==s||(Un=7),Cu(s)},M.then(c,c);break e;case 3:Un=7;break e;case 4:Un=5;break e;case 7:Ca(M)?(Un=0,vs=null,uL(c)):(Un=0,vs=null,Ep(s,c,M,7));break;case 5:var G=null;switch(hn.tag){case 26:G=hn.memoizedState;case 5:case 27:var te=hn;if(!G||HL(G)){Un=0,vs=null;var de=te.sibling;if(de!==null)hn=de;else{var Ne=te.return;Ne!==null?(hn=Ne,Ab(Ne)):hn=null}break t}}Un=0,vs=null,Ep(s,c,M,5);break;case 6:Un=0,vs=null,Ep(s,c,M,6);break;case 8:nw(),qr=6;break e;default:throw Error(r(462))}}tle();break}catch(He){iL(s,He)}while(!0);return wa=Zu=null,J.H=E,J.A=C,$n=m,hn!==null?0:(ur=null,kn=0,ds(),qr)}function tle(){for(;hn!==null&&!qe();)aL(hn)}function aL(s){var c=T(s.alternate,s,cl);s.memoizedProps=s.pendingProps,c===null?Ab(s):hn=c}function uL(s){var c=s,m=c.alternate;switch(c.tag){case 15:case 0:c=Mn(m,c,c.pendingProps,c.type,void 0,kn);break;case 11:c=Mn(m,c,c.pendingProps,c.type.render,c.ref,kn);break;case 5:Kh(c);default:Se(m,c),c=hn=Oh(c,cl),c=T(m,c,cl)}s.memoizedProps=s.pendingProps,c===null?Ab(s):hn=c}function Ep(s,c,m,E){wa=Zu=null,Kh(c),yc=null,bc=0;var C=c.return;try{if(gs(s,C,c,m,kn)){qr=1,up(s,ci(m,s.current)),hn=null;return}}catch(M){if(C!==null)throw hn=C,M;qr=1,up(s,ci(m,s.current)),hn=null;return}c.flags&32768?(un||E===1?s=!0:mp||(kn&536870912)!==0?s=!1:(Nc=s=!0,(E===2||E===9||E===3||E===6)&&(E=Zo.current,E!==null&&E.tag===13&&(E.flags|=16384))),lL(c,s)):Ab(c)}function Ab(s){var c=s;do{if((c.flags&32768)!==0){lL(c,Nc);return}s=c.return;var m=ie(c.alternate,c,cl);if(m!==null){hn=m;return}if(c=c.sibling,c!==null){hn=c;return}hn=c=s}while(c!==null);qr===0&&(qr=5)}function lL(s,c){do{var m=ce(s.alternate,s);if(m!==null){m.flags&=32767,hn=m;return}if(m=s.return,m!==null&&(m.flags|=32768,m.subtreeFlags=0,m.deletions=null),!c&&(s=s.sibling,s!==null)){hn=s;return}hn=s=m}while(s!==null);qr=6,hn=null}function cL(s,c,m,E,C,M,G,te,de){s.cancelPendingCommit=null;do Db();while(ao!==0);if(($n&6)!==0)throw Error(r(327));if(c!==null){if(c===s.current)throw Error(r(177));if(M=c.lanes|c.childLanes,M|=qs,bn(s,m,M,G,te,de),s===ur&&(hn=ur=null,kn=0),vp=c,Rc=s,yp=m,J3=M,ew=C,eL=E,(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0?(s.callbackNode=null,s.callbackPriority=0,ole(Pe,function(){return mL(),null})):(s.callbackNode=null,s.callbackPriority=0),E=(c.flags&13878)!==0,(c.subtreeFlags&13878)!==0||E){E=J.T,J.T=null,C=ue.p,ue.p=2,G=$n,$n|=4;try{pi(s,c,m)}finally{$n=G,ue.p=C,J.T=E}}ao=1,fL(),dL(),hL()}}function fL(){if(ao===1){ao=0;var s=Rc,c=vp,m=(c.flags&13878)!==0;if((c.subtreeFlags&13878)!==0||m){m=J.T,J.T=null;var E=ue.p;ue.p=2;var C=$n;$n|=4;try{Su(c,s);var M=gw,G=ql(s.containerInfo),te=M.focusedElem,de=M.selectionRange;if(G!==te&&te&&te.ownerDocument&&Mm(te.ownerDocument.documentElement,te)){if(de!==null&&Ch(te)){var Ne=de.start,He=de.end;if(He===void 0&&(He=Ne),"selectionStart"in te)te.selectionStart=Ne,te.selectionEnd=Math.min(He,te.value.length);else{var We=te.ownerDocument||document,ke=We&&We.defaultView||window;if(ke.getSelection){var Me=ke.getSelection(),Vt=te.textContent.length,Nt=Math.min(de.start,Vt),Qn=de.end===void 0?Nt:Math.min(de.end,Vt);!Me.extend&&Nt>Qn&&(G=Qn,Qn=Nt,Nt=G);var Ce=Rm(te,Nt),be=Rm(te,Qn);if(Ce&&be&&(Me.rangeCount!==1||Me.anchorNode!==Ce.node||Me.anchorOffset!==Ce.offset||Me.focusNode!==be.node||Me.focusOffset!==be.offset)){var De=We.createRange();De.setStart(Ce.node,Ce.offset),Me.removeAllRanges(),Nt>Qn?(Me.addRange(De),Me.extend(be.node,be.offset)):(De.setEnd(be.node,be.offset),Me.addRange(De))}}}}for(We=[],Me=te;Me=Me.parentNode;)Me.nodeType===1&&We.push({element:Me,left:Me.scrollLeft,top:Me.scrollTop});for(typeof te.focus=="function"&&te.focus(),te=0;te<We.length;te++){var Ge=We[te];Ge.element.scrollLeft=Ge.left,Ge.element.scrollTop=Ge.top}}Bb=!!mw,gw=mw=null}finally{$n=C,ue.p=E,J.T=m}}s.current=c,ao=2}}function dL(){if(ao===2){ao=0;var s=Rc,c=vp,m=(c.flags&8772)!==0;if((c.subtreeFlags&8772)!==0||m){m=J.T,J.T=null;var E=ue.p;ue.p=2;var C=$n;$n|=4;try{Rr(s,c.alternate,c)}finally{$n=C,ue.p=E,J.T=m}}ao=3}}function hL(){if(ao===4||ao===3){ao=0,ye();var s=Rc,c=vp,m=yp,E=eL;(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0?ao=5:(ao=0,vp=Rc=null,pL(s,s.pendingLanes));var C=s.pendingLanes;if(C===0&&(kc=null),Lt(m),c=c.stateNode,kt&&typeof kt.onCommitFiberRoot=="function")try{kt.onCommitFiberRoot(At,c,void 0,(c.current.flags&128)===128)}catch{}if(E!==null){c=J.T,C=ue.p,ue.p=2,J.T=null;try{for(var M=s.onRecoverableError,G=0;G<E.length;G++){var te=E[G];M(te.value,{componentStack:te.stack})}}finally{J.T=c,ue.p=C}}(yp&3)!==0&&Db(),Cu(s),C=s.pendingLanes,(m&4194090)!==0&&(C&42)!==0?s===tw?vg++:(vg=0,tw=s):vg=0,yg(0)}}function pL(s,c){(s.pooledCacheLanes&=c)===0&&(c=s.pooledCache,c!=null&&(s.pooledCache=null,el(c)))}function Db(s){return fL(),dL(),hL(),mL()}function mL(){if(ao!==5)return!1;var s=Rc,c=J3;J3=0;var m=Lt(yp),E=J.T,C=ue.p;try{ue.p=32>m?32:m,J.T=null,m=ew,ew=null;var M=Rc,G=yp;if(ao=0,vp=Rc=null,yp=0,($n&6)!==0)throw Error(r(331));var te=$n;if($n|=4,ZM(M.current),QM(M,M.current,G,m),$n=te,yg(0,!1),kt&&typeof kt.onPostCommitFiberRoot=="function")try{kt.onPostCommitFiberRoot(At,M)}catch{}return!0}finally{ue.p=C,J.T=E,pL(s,c)}}function gL(s,c,m){c=ci(m,c),c=sg(s.stateNode,c,2),s=_a(s,c,2),s!==null&&(Yt(s,2),Cu(s))}function tr(s,c,m){if(s.tag===3)gL(s,s,m);else for(;c!==null;){if(c.tag===3){gL(c,s,m);break}else if(c.tag===1){var E=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof E.componentDidCatch=="function"&&(kc===null||!kc.has(E))){s=ci(m,s),m=lp(2),E=_a(c,m,2),E!==null&&(wc(m,E,c,s),Yt(E,2),Cu(E));break}}c=c.return}}function ow(s,c,m){var E=s.pingCache;if(E===null){E=s.pingCache=new Xue;var C=new Set;E.set(c,C)}else C=E.get(c),C===void 0&&(C=new Set,E.set(c,C));C.has(m)||(Q3=!0,C.add(m),s=nle.bind(null,s,c,m),c.then(s,s))}function nle(s,c,m){var E=s.pingCache;E!==null&&E.delete(c),s.pingedLanes|=s.suspendedLanes&m,s.warmLanes&=~m,ur===s&&(kn&m)===m&&(qr===4||qr===3&&(kn&62914560)===kn&&300>re()-Z3?($n&2)===0&&bp(s,0):K3|=m,gp===kn&&(gp=0)),Cu(s)}function vL(s,c){c===0&&(c=Sn()),s=Ku(s,c),s!==null&&(Yt(s,c),Cu(s))}function rle(s){var c=s.memoizedState,m=0;c!==null&&(m=c.retryLane),vL(s,m)}function ile(s,c){var m=0;switch(s.tag){case 13:var E=s.stateNode,C=s.memoizedState;C!==null&&(m=C.retryLane);break;case 19:E=s.stateNode;break;case 22:E=s.stateNode._retryCache;break;default:throw Error(r(314))}E!==null&&E.delete(c),vL(s,m)}function ole(s,c){return we(s,c)}var Nb=null,xp=null,sw=!1,Ob=!1,aw=!1,pd=0;function Cu(s){s!==xp&&s.next===null&&(xp===null?Nb=xp=s:xp=xp.next=s),Ob=!0,sw||(sw=!0,ale())}function yg(s,c){if(!aw&&Ob){aw=!0;do for(var m=!1,E=Nb;E!==null;){if(s!==0){var C=E.pendingLanes;if(C===0)var M=0;else{var G=E.suspendedLanes,te=E.pingedLanes;M=(1<<31-mt(42|s)+1)-1,M&=C&~(G&~te),M=M&201326741?M&201326741|1:M?M|2:0}M!==0&&(m=!0,xL(E,M))}else M=kn,M=Bn(E,E===ur?M:0,E.cancelPendingCommit!==null||E.timeoutHandle!==-1),(M&3)===0||Et(E,M)||(m=!0,xL(E,M));E=E.next}while(m);aw=!1}}function sle(){yL()}function yL(){Ob=sw=!1;var s=0;pd!==0&&(mle()&&(s=pd),pd=0);for(var c=re(),m=null,E=Nb;E!==null;){var C=E.next,M=bL(E,c);M===0?(E.next=null,m===null?Nb=C:m.next=C,C===null&&(xp=m)):(m=E,(s!==0||(M&3)!==0)&&(Ob=!0)),E=C}yg(s)}function bL(s,c){for(var m=s.suspendedLanes,E=s.pingedLanes,C=s.expirationTimes,M=s.pendingLanes&-62914561;0<M;){var G=31-mt(M),te=1<<G,de=C[G];de===-1?((te&m)===0||(te&E)!==0)&&(C[G]=Vr(te,c)):de<=c&&(s.expiredLanes|=te),M&=~te}if(c=ur,m=kn,m=Bn(s,s===c?m:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),E=s.callbackNode,m===0||s===c&&(Un===2||Un===9)||s.cancelPendingCommit!==null)return E!==null&&E!==null&&pe(E),s.callbackNode=null,s.callbackPriority=0;if((m&3)===0||Et(s,m)){if(c=m&-m,c===s.callbackPriority)return c;switch(E!==null&&pe(E),Lt(m)){case 2:case 8:m=Le;break;case 32:m=Pe;break;case 268435456:m=Ie;break;default:m=Pe}return E=EL.bind(null,s),m=we(m,E),s.callbackPriority=c,s.callbackNode=m,c}return E!==null&&E!==null&&pe(E),s.callbackPriority=2,s.callbackNode=null,2}function EL(s,c){if(ao!==0&&ao!==5)return s.callbackNode=null,s.callbackPriority=0,null;var m=s.callbackNode;if(Db()&&s.callbackNode!==m)return null;var E=kn;return E=Bn(s,s===ur?E:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),E===0?null:(nL(s,E,c),bL(s,re()),s.callbackNode!=null&&s.callbackNode===m?EL.bind(null,s):null)}function xL(s,c){if(Db())return null;nL(s,c,!0)}function ale(){vle(function(){($n&6)!==0?we(ze,sle):yL()})}function uw(){return pd===0&&(pd=lt()),pd}function TL(s){return s==null||typeof s=="symbol"||typeof s=="boolean"?null:typeof s=="function"?s:Ai(""+s)}function SL(s,c){var m=c.ownerDocument.createElement("input");return m.name=c.name,m.value=c.value,s.id&&m.setAttribute("form",s.id),c.parentNode.insertBefore(m,c),s=new FormData(s),m.parentNode.removeChild(m),s}function ule(s,c,m,E,C){if(c==="submit"&&m&&m.stateNode===C){var M=TL((C[en]||null).action),G=E.submitter;G&&(c=(c=G[en]||null)?TL(c.formAction):G.getAttribute("formAction"),c!==null&&(M=c,G=null));var te=new Ff("action","action",null,E,C);s.push({event:te,listeners:[{instance:null,listener:function(){if(E.defaultPrevented){if(pd!==0){var de=G?SL(C,G):new FormData(C);bu(m,{pending:!0,data:de,method:C.method,action:M},null,de)}}else typeof M=="function"&&(te.preventDefault(),de=G?SL(C,G):new FormData(C),bu(m,{pending:!0,data:de,method:C.method,action:M},M,de))},currentTarget:C}]})}}for(var lw=0;lw<zf.length;lw++){var cw=zf[lw],lle=cw.toLowerCase(),cle=cw[0].toUpperCase()+cw.slice(1);Yo(lle,"on"+cle)}Yo(_h,"onAnimationEnd"),Yo(Yy,"onAnimationIteration"),Yo(Qy,"onAnimationStart"),Yo("dblclick","onDoubleClick"),Yo("focusin","onFocus"),Yo("focusout","onBlur"),Yo(U3,"onTransitionRun"),Yo(Wu,"onTransitionStart"),Yo(Ql,"onTransitionCancel"),Yo(Yu,"onTransitionEnd"),eo("onMouseEnter",["mouseout","mouseover"]),eo("onMouseLeave",["mouseout","mouseover"]),eo("onPointerEnter",["pointerout","pointerover"]),eo("onPointerLeave",["pointerout","pointerover"]),Bi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Bi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Bi("onBeforeInput",["compositionend","keypress","textInput","paste"]),Bi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Bi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Bi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bg="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(" "),fle=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(bg));function wL(s,c){c=(c&4)!==0;for(var m=0;m<s.length;m++){var E=s[m],C=E.event;E=E.listeners;e:{var M=void 0;if(c)for(var G=E.length-1;0<=G;G--){var te=E[G],de=te.instance,Ne=te.currentTarget;if(te=te.listener,de!==M&&C.isPropagationStopped())break e;M=te,C.currentTarget=Ne;try{M(C)}catch(He){cd(He)}C.currentTarget=null,M=de}else for(G=0;G<E.length;G++){if(te=E[G],de=te.instance,Ne=te.currentTarget,te=te.listener,de!==M&&C.isPropagationStopped())break e;M=te,C.currentTarget=Ne;try{M(C)}catch(He){cd(He)}C.currentTarget=null,M=de}}}}function pn(s,c){var m=c[Qr];m===void 0&&(m=c[Qr]=new Set);var E=s+"__bubble";m.has(E)||(CL(c,s,2,!1),m.add(E))}function fw(s,c,m){var E=0;c&&(E|=4),CL(m,s,E,c)}var kb="_reactListening"+Math.random().toString(36).slice(2);function dw(s){if(!s[kb]){s[kb]=!0,Xr.forEach(function(m){m!=="selectionchange"&&(fle.has(m)||fw(m,!1,s),fw(m,!0,s))});var c=s.nodeType===9?s:s.ownerDocument;c===null||c[kb]||(c[kb]=!0,fw("selectionchange",!1,c))}}function CL(s,c,m,E){switch(QL(c)){case 2:var C=jle;break;case 8:C=Vle;break;default:C=_w}m=C.bind(null,c,m,s),C=void 0,!ym||c!=="touchstart"&&c!=="touchmove"&&c!=="wheel"||(C=!0),E?C!==void 0?s.addEventListener(c,m,{capture:!0,passive:C}):s.addEventListener(c,m,!0):C!==void 0?s.addEventListener(c,m,{passive:C}):s.addEventListener(c,m,!1)}function hw(s,c,m,E,C){var M=E;if((c&1)===0&&(c&2)===0&&E!==null)e:for(;;){if(E===null)return;var G=E.tag;if(G===3||G===4){var te=E.stateNode.containerInfo;if(te===C)break;if(G===4)for(G=E.return;G!==null;){var de=G.tag;if((de===3||de===4)&&G.stateNode.containerInfo===C)return;G=G.return}for(;te!==null;){if(G=Br(te),G===null)return;if(de=G.tag,de===5||de===6||de===26||de===27){E=M=G;continue e}te=te.parentNode}}E=E.return}Nf(function(){var Ne=M,He=Df(m),We=[];e:{var ke=Ah.get(s);if(ke!==void 0){var Me=Ff,Vt=s;switch(s){case"keypress":if(Mf(m)===0)break e;case"keydown":case"keyup":Me=I3;break;case"focusin":Vt="focus",Me=Pf;break;case"focusout":Vt="blur",Me=Pf;break;case"beforeblur":case"afterblur":Me=Pf;break;case"click":if(m.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Me=Ry;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Me=My;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Me=Py;break;case _h:case Yy:case Qy:Me=Th;break;case Yu:Me=Bl;break;case"scroll":case"scrollend":Me=bh;break;case"wheel":Me=V3;break;case"copy":case"cut":case"paste":Me=Vl;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Me=Sm;break;case"toggle":case"beforetoggle":Me=jf}var Nt=(c&4)!==0,Qn=!Nt&&(s==="scroll"||s==="scrollend"),Ce=Nt?ke!==null?ke+"Capture":null:ke;Nt=[];for(var be=Ne,De;be!==null;){var Ge=be;if(De=Ge.stateNode,Ge=Ge.tag,Ge!==5&&Ge!==26&&Ge!==27||De===null||Ce===null||(Ge=ya(be,Ce),Ge!=null&&Nt.push(Eg(be,Ge,De))),Qn)break;be=be.return}0<Nt.length&&(ke=new Me(ke,Vt,null,m,He),We.push({event:ke,listeners:Nt}))}}if((c&7)===0){e:{if(ke=s==="mouseover"||s==="pointerover",Me=s==="mouseout"||s==="pointerout",ke&&m!==Go&&(Vt=m.relatedTarget||m.fromElement)&&(Br(Vt)||Vt[wi]))break e;if((Me||ke)&&(ke=He.window===He?He:(ke=He.ownerDocument)?ke.defaultView||ke.parentWindow:window,Me?(Vt=m.relatedTarget||m.toElement,Me=Ne,Vt=Vt?Br(Vt):null,Vt!==null&&(Qn=o(Vt),Nt=Vt.tag,Vt!==Qn||Nt!==5&&Nt!==27&&Nt!==6)&&(Vt=null)):(Me=null,Vt=Ne),Me!==Vt)){if(Nt=Ry,Ge="onMouseLeave",Ce="onMouseEnter",be="mouse",(s==="pointerout"||s==="pointerover")&&(Nt=Sm,Ge="onPointerLeave",Ce="onPointerEnter",be="pointer"),Qn=Me==null?ke:ma(Me),De=Vt==null?ke:ma(Vt),ke=new Nt(Ge,be+"leave",Me,m,He),ke.target=Qn,ke.relatedTarget=De,Ge=null,Br(He)===Ne&&(Nt=new Nt(Ce,be+"enter",Vt,m,He),Nt.target=De,Nt.relatedTarget=Qn,Ge=Nt),Qn=Ge,Me&&Vt)t:{for(Nt=Me,Ce=Vt,be=0,De=Nt;De;De=Tp(De))be++;for(De=0,Ge=Ce;Ge;Ge=Tp(Ge))De++;for(;0<be-De;)Nt=Tp(Nt),be--;for(;0<De-be;)Ce=Tp(Ce),De--;for(;be--;){if(Nt===Ce||Ce!==null&&Nt===Ce.alternate)break t;Nt=Tp(Nt),Ce=Tp(Ce)}Nt=null}else Nt=null;Me!==null&&_L(We,ke,Me,Nt,!1),Vt!==null&&Qn!==null&&_L(We,Qn,Vt,Nt,!0)}}e:{if(ke=Ne?ma(Ne):window,Me=ke.nodeName&&ke.nodeName.toLowerCase(),Me==="select"||Me==="input"&&ke.type==="file")var yt=fs;else if(Uy(ke))if(au)yt=zy;else{yt=zl;var ln=km}else Me=ke.nodeName,!Me||Me.toLowerCase()!=="input"||ke.type!=="checkbox"&&ke.type!=="radio"?Ne&&nn(Ne.elementType)&&(yt=fs):yt=zs;if(yt&&(yt=yt(s,Ne))){Hl(We,yt,m,He);break e}ln&&ln(s,ke,Ne),s==="focusout"&&Ne&&ke.type==="number"&&Ne.memoizedProps.value!=null&&Ro(ke,"number",ke.value)}switch(ln=Ne?ma(Ne):window,s){case"focusin":(Uy(ln)||ln.contentEditable==="true")&&(uu=ln,Gl=Ne,Wl=null);break;case"focusout":Wl=Gl=uu=null;break;case"mousedown":Yl=!0;break;case"contextmenu":case"mouseup":case"dragend":Yl=!1,Wo(We,m,He);break;case"selectionchange":if(Wy)break;case"keydown":case"keyup":Wo(We,m,He)}var Ct;if(wm)e:{switch(s){case"compositionstart":var Rt="onCompositionStart";break e;case"compositionend":Rt="onCompositionEnd";break e;case"compositionupdate":Rt="onCompositionUpdate";break e}Rt=void 0}else Ul?wh(s,m)&&(Rt="onCompositionEnd"):s==="keydown"&&m.keyCode===229&&(Rt="onCompositionStart");Rt&&(jy&&m.locale!=="ko"&&(Ul||Rt!=="onCompositionStart"?Rt==="onCompositionEnd"&&Ul&&(Ct=ky()):(iu=He,kf="value"in iu?iu.value:iu.textContent,Ul=!0)),ln=Rb(Ne,Rt),0<ln.length&&(Rt=new Ly(Rt,s,null,m,He),We.push({event:Rt,listeners:ln}),Ct?Rt.data=Ct:(Ct=_m(m),Ct!==null&&(Rt.data=Ct)))),(Ct=Vf?$3(s,m):By(s,m))&&(Rt=Rb(Ne,"onBeforeInput"),0<Rt.length&&(ln=new Ly("onBeforeInput","beforeinput",null,m,He),We.push({event:ln,listeners:Rt}),ln.data=Ct)),ule(We,s,Ne,m,He)}wL(We,c)})}function Eg(s,c,m){return{instance:s,listener:c,currentTarget:m}}function Rb(s,c){for(var m=c+"Capture",E=[];s!==null;){var C=s,M=C.stateNode;if(C=C.tag,C!==5&&C!==26&&C!==27||M===null||(C=ya(s,m),C!=null&&E.unshift(Eg(s,C,M)),C=ya(s,c),C!=null&&E.push(Eg(s,C,M))),s.tag===3)return E;s=s.return}return[]}function Tp(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5&&s.tag!==27);return s||null}function _L(s,c,m,E,C){for(var M=c._reactName,G=[];m!==null&&m!==E;){var te=m,de=te.alternate,Ne=te.stateNode;if(te=te.tag,de!==null&&de===E)break;te!==5&&te!==26&&te!==27||Ne===null||(de=Ne,C?(Ne=ya(m,M),Ne!=null&&G.unshift(Eg(m,Ne,de))):C||(Ne=ya(m,M),Ne!=null&&G.push(Eg(m,Ne,de)))),m=m.return}G.length!==0&&s.push({event:c,listeners:G})}var dle=/\r\n?/g,hle=/\u0000|\uFFFD/g;function AL(s){return(typeof s=="string"?s:""+s).replace(dle,`
`).replace(hle,"")}function DL(s,c){return c=AL(c),AL(s)===c}function Mb(){}function Yn(s,c,m,E,C,M){switch(m){case"children":typeof E=="string"?c==="body"||c==="textarea"&&E===""||_i(s,E):(typeof E=="number"||typeof E=="bigint")&&c!=="body"&&_i(s,""+E);break;case"className":Fn(s,"class",E);break;case"tabIndex":Fn(s,"tabindex",E);break;case"dir":case"role":case"viewBox":case"width":case"height":Fn(s,m,E);break;case"style":va(s,E,M);break;case"data":if(c!=="object"){Fn(s,"data",E);break}case"src":case"href":if(E===""&&(c!=="a"||m!=="href")){s.removeAttribute(m);break}if(E==null||typeof E=="function"||typeof E=="symbol"||typeof E=="boolean"){s.removeAttribute(m);break}E=Ai(""+E),s.setAttribute(m,E);break;case"action":case"formAction":if(typeof E=="function"){s.setAttribute(m,"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 M=="function"&&(m==="formAction"?(c!=="input"&&Yn(s,c,"name",C.name,C,null),Yn(s,c,"formEncType",C.formEncType,C,null),Yn(s,c,"formMethod",C.formMethod,C,null),Yn(s,c,"formTarget",C.formTarget,C,null)):(Yn(s,c,"encType",C.encType,C,null),Yn(s,c,"method",C.method,C,null),Yn(s,c,"target",C.target,C,null)));if(E==null||typeof E=="symbol"||typeof E=="boolean"){s.removeAttribute(m);break}E=Ai(""+E),s.setAttribute(m,E);break;case"onClick":E!=null&&(s.onclick=Mb);break;case"onScroll":E!=null&&pn("scroll",s);break;case"onScrollEnd":E!=null&&pn("scrollend",s);break;case"dangerouslySetInnerHTML":if(E!=null){if(typeof E!="object"||!("__html"in E))throw Error(r(61));if(m=E.__html,m!=null){if(C.children!=null)throw Error(r(60));s.innerHTML=m}}break;case"multiple":s.multiple=E&&typeof E!="function"&&typeof E!="symbol";break;case"muted":s.muted=E&&typeof E!="function"&&typeof E!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(E==null||typeof E=="function"||typeof E=="boolean"||typeof E=="symbol"){s.removeAttribute("xlink:href");break}m=Ai(""+E),s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",m);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":E!=null&&typeof E!="function"&&typeof E!="symbol"?s.setAttribute(m,""+E):s.removeAttribute(m);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":E&&typeof E!="function"&&typeof E!="symbol"?s.setAttribute(m,""):s.removeAttribute(m);break;case"capture":case"download":E===!0?s.setAttribute(m,""):E!==!1&&E!=null&&typeof E!="function"&&typeof E!="symbol"?s.setAttribute(m,E):s.removeAttribute(m);break;case"cols":case"rows":case"size":case"span":E!=null&&typeof E!="function"&&typeof E!="symbol"&&!isNaN(E)&&1<=E?s.setAttribute(m,E):s.removeAttribute(m);break;case"rowSpan":case"start":E==null||typeof E=="function"||typeof E=="symbol"||isNaN(E)?s.removeAttribute(m):s.setAttribute(m,E);break;case"popover":pn("beforetoggle",s),pn("toggle",s),Oo(s,"popover",E);break;case"xlinkActuate":ot(s,"http://www.w3.org/1999/xlink","xlink:actuate",E);break;case"xlinkArcrole":ot(s,"http://www.w3.org/1999/xlink","xlink:arcrole",E);break;case"xlinkRole":ot(s,"http://www.w3.org/1999/xlink","xlink:role",E);break;case"xlinkShow":ot(s,"http://www.w3.org/1999/xlink","xlink:show",E);break;case"xlinkTitle":ot(s,"http://www.w3.org/1999/xlink","xlink:title",E);break;case"xlinkType":ot(s,"http://www.w3.org/1999/xlink","xlink:type",E);break;case"xmlBase":ot(s,"http://www.w3.org/XML/1998/namespace","xml:base",E);break;case"xmlLang":ot(s,"http://www.w3.org/XML/1998/namespace","xml:lang",E);break;case"xmlSpace":ot(s,"http://www.w3.org/XML/1998/namespace","xml:space",E);break;case"is":Oo(s,"is",E);break;case"innerText":case"textContent":break;default:(!(2<m.length)||m[0]!=="o"&&m[0]!=="O"||m[1]!=="n"&&m[1]!=="N")&&(m=er.get(m)||m,Oo(s,m,E))}}function pw(s,c,m,E,C,M){switch(m){case"style":va(s,E,M);break;case"dangerouslySetInnerHTML":if(E!=null){if(typeof E!="object"||!("__html"in E))throw Error(r(61));if(m=E.__html,m!=null){if(C.children!=null)throw Error(r(60));s.innerHTML=m}}break;case"children":typeof E=="string"?_i(s,E):(typeof E=="number"||typeof E=="bigint")&&_i(s,""+E);break;case"onScroll":E!=null&&pn("scroll",s);break;case"onScrollEnd":E!=null&&pn("scrollend",s);break;case"onClick":E!=null&&(s.onclick=Mb);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ji.hasOwnProperty(m))e:{if(m[0]==="o"&&m[1]==="n"&&(C=m.endsWith("Capture"),c=m.slice(2,C?m.length-7:void 0),M=s[en]||null,M=M!=null?M[m]:null,typeof M=="function"&&s.removeEventListener(c,M,C),typeof E=="function")){typeof M!="function"&&M!==null&&(m in s?s[m]=null:s.hasAttribute(m)&&s.removeAttribute(m)),s.addEventListener(c,E,C);break e}m in s?s[m]=E:E===!0?s.setAttribute(m,""):Oo(s,m,E)}}}function uo(s,c,m){switch(c){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":pn("error",s),pn("load",s);var E=!1,C=!1,M;for(M in m)if(m.hasOwnProperty(M)){var G=m[M];if(G!=null)switch(M){case"src":E=!0;break;case"srcSet":C=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,c));default:Yn(s,c,M,G,m,null)}}C&&Yn(s,c,"srcSet",m.srcSet,m,null),E&&Yn(s,c,"src",m.src,m,null);return;case"input":pn("invalid",s);var te=M=G=C=null,de=null,Ne=null;for(E in m)if(m.hasOwnProperty(E)){var He=m[E];if(He!=null)switch(E){case"name":C=He;break;case"type":G=He;break;case"checked":de=He;break;case"defaultChecked":Ne=He;break;case"value":M=He;break;case"defaultValue":te=He;break;case"children":case"dangerouslySetInnerHTML":if(He!=null)throw Error(r(137,c));break;default:Yn(s,c,E,He,m,null)}}$s(s,M,te,de,Ne,G,C,!1),qn(s);return;case"select":pn("invalid",s),E=G=M=null;for(C in m)if(m.hasOwnProperty(C)&&(te=m[C],te!=null))switch(C){case"value":M=te;break;case"defaultValue":G=te;break;case"multiple":E=te;default:Yn(s,c,C,te,m,null)}c=M,m=G,s.multiple=!!E,c!=null?$r(s,!!E,c,!1):m!=null&&$r(s,!!E,m,!0);return;case"textarea":pn("invalid",s),M=C=E=null;for(G in m)if(m.hasOwnProperty(G)&&(te=m[G],te!=null))switch(G){case"value":E=te;break;case"defaultValue":C=te;break;case"children":M=te;break;case"dangerouslySetInnerHTML":if(te!=null)throw Error(r(91));break;default:Yn(s,c,G,te,m,null)}qu(s,E,C,M),qn(s);return;case"option":for(de in m)if(m.hasOwnProperty(de)&&(E=m[de],E!=null))switch(de){case"selected":s.selected=E&&typeof E!="function"&&typeof E!="symbol";break;default:Yn(s,c,de,E,m,null)}return;case"dialog":pn("beforetoggle",s),pn("toggle",s),pn("cancel",s),pn("close",s);break;case"iframe":case"object":pn("load",s);break;case"video":case"audio":for(E=0;E<bg.length;E++)pn(bg[E],s);break;case"image":pn("error",s),pn("load",s);break;case"details":pn("toggle",s);break;case"embed":case"source":case"link":pn("error",s),pn("load",s);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Ne in m)if(m.hasOwnProperty(Ne)&&(E=m[Ne],E!=null))switch(Ne){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,c));default:Yn(s,c,Ne,E,m,null)}return;default:if(nn(c)){for(He in m)m.hasOwnProperty(He)&&(E=m[He],E!==void 0&&pw(s,c,He,E,m,void 0));return}}for(te in m)m.hasOwnProperty(te)&&(E=m[te],E!=null&&Yn(s,c,te,E,m,null))}function ple(s,c,m,E){switch(c){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var C=null,M=null,G=null,te=null,de=null,Ne=null,He=null;for(Me in m){var We=m[Me];if(m.hasOwnProperty(Me)&&We!=null)switch(Me){case"checked":break;case"value":break;case"defaultValue":de=We;default:E.hasOwnProperty(Me)||Yn(s,c,Me,null,E,We)}}for(var ke in E){var Me=E[ke];if(We=m[ke],E.hasOwnProperty(ke)&&(Me!=null||We!=null))switch(ke){case"type":M=Me;break;case"name":C=Me;break;case"checked":Ne=Me;break;case"defaultChecked":He=Me;break;case"value":G=Me;break;case"defaultValue":te=Me;break;case"children":case"dangerouslySetInnerHTML":if(Me!=null)throw Error(r(137,c));break;default:Me!==We&&Yn(s,c,ke,Me,E,We)}}ru(s,G,te,de,Ne,He,M,C);return;case"select":Me=G=te=ke=null;for(M in m)if(de=m[M],m.hasOwnProperty(M)&&de!=null)switch(M){case"value":break;case"multiple":Me=de;default:E.hasOwnProperty(M)||Yn(s,c,M,null,E,de)}for(C in E)if(M=E[C],de=m[C],E.hasOwnProperty(C)&&(M!=null||de!=null))switch(C){case"value":ke=M;break;case"defaultValue":te=M;break;case"multiple":G=M;default:M!==de&&Yn(s,c,C,M,E,de)}c=te,m=G,E=Me,ke!=null?$r(s,!!m,ke,!1):!!E!=!!m&&(c!=null?$r(s,!!m,c,!0):$r(s,!!m,m?[]:"",!1));return;case"textarea":Me=ke=null;for(te in m)if(C=m[te],m.hasOwnProperty(te)&&C!=null&&!E.hasOwnProperty(te))switch(te){case"value":break;case"children":break;default:Yn(s,c,te,null,E,C)}for(G in E)if(C=E[G],M=m[G],E.hasOwnProperty(G)&&(C!=null||M!=null))switch(G){case"value":ke=C;break;case"defaultValue":Me=C;break;case"children":break;case"dangerouslySetInnerHTML":if(C!=null)throw Error(r(91));break;default:C!==M&&Yn(s,c,G,C,E,M)}zu(s,ke,Me);return;case"option":for(var Vt in m)if(ke=m[Vt],m.hasOwnProperty(Vt)&&ke!=null&&!E.hasOwnProperty(Vt))switch(Vt){case"selected":s.selected=!1;break;default:Yn(s,c,Vt,null,E,ke)}for(de in E)if(ke=E[de],Me=m[de],E.hasOwnProperty(de)&&ke!==Me&&(ke!=null||Me!=null))switch(de){case"selected":s.selected=ke&&typeof ke!="function"&&typeof ke!="symbol";break;default:Yn(s,c,de,ke,E,Me)}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 Nt in m)ke=m[Nt],m.hasOwnProperty(Nt)&&ke!=null&&!E.hasOwnProperty(Nt)&&Yn(s,c,Nt,null,E,ke);for(Ne in E)if(ke=E[Ne],Me=m[Ne],E.hasOwnProperty(Ne)&&ke!==Me&&(ke!=null||Me!=null))switch(Ne){case"children":case"dangerouslySetInnerHTML":if(ke!=null)throw Error(r(137,c));break;default:Yn(s,c,Ne,ke,E,Me)}return;default:if(nn(c)){for(var Qn in m)ke=m[Qn],m.hasOwnProperty(Qn)&&ke!==void 0&&!E.hasOwnProperty(Qn)&&pw(s,c,Qn,void 0,E,ke);for(He in E)ke=E[He],Me=m[He],!E.hasOwnProperty(He)||ke===Me||ke===void 0&&Me===void 0||pw(s,c,He,ke,E,Me);return}}for(var Ce in m)ke=m[Ce],m.hasOwnProperty(Ce)&&ke!=null&&!E.hasOwnProperty(Ce)&&Yn(s,c,Ce,null,E,ke);for(We in E)ke=E[We],Me=m[We],!E.hasOwnProperty(We)||ke===Me||ke==null&&Me==null||Yn(s,c,We,ke,E,Me)}var mw=null,gw=null;function Lb(s){return s.nodeType===9?s:s.ownerDocument}function NL(s){switch(s){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function OL(s,c){if(s===0)switch(c){case"svg":return 1;case"math":return 2;default:return 0}return s===1&&c==="foreignObject"?0:s}function vw(s,c){return s==="textarea"||s==="noscript"||typeof c.children=="string"||typeof c.children=="number"||typeof c.children=="bigint"||typeof c.dangerouslySetInnerHTML=="object"&&c.dangerouslySetInnerHTML!==null&&c.dangerouslySetInnerHTML.__html!=null}var yw=null;function mle(){var s=window.event;return s&&s.type==="popstate"?s===yw?!1:(yw=s,!0):(yw=null,!1)}var kL=typeof setTimeout=="function"?setTimeout:void 0,gle=typeof clearTimeout=="function"?clearTimeout:void 0,RL=typeof Promise=="function"?Promise:void 0,vle=typeof queueMicrotask=="function"?queueMicrotask:typeof RL<"u"?function(s){return RL.resolve(null).then(s).catch(yle)}:kL;function yle(s){setTimeout(function(){throw s})}function Lc(s){return s==="head"}function ML(s,c){var m=c,E=0,C=0;do{var M=m.nextSibling;if(s.removeChild(m),M&&M.nodeType===8)if(m=M.data,m==="/$"){if(0<E&&8>E){m=E;var G=s.ownerDocument;if(m&1&&xg(G.documentElement),m&2&&xg(G.body),m&4)for(m=G.head,xg(m),G=m.firstChild;G;){var te=G.nextSibling,de=G.nodeName;G[Dn]||de==="SCRIPT"||de==="STYLE"||de==="LINK"&&G.rel.toLowerCase()==="stylesheet"||m.removeChild(G),G=te}}if(C===0){s.removeChild(M),Ng(c);return}C--}else m==="$"||m==="$?"||m==="$!"?C++:E=m.charCodeAt(0)-48;else E=0;m=M}while(m);Ng(c)}function bw(s){var c=s.firstChild;for(c&&c.nodeType===10&&(c=c.nextSibling);c;){var m=c;switch(c=c.nextSibling,m.nodeName){case"HTML":case"HEAD":case"BODY":bw(m),Kr(m);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(m.rel.toLowerCase()==="stylesheet")continue}s.removeChild(m)}}function ble(s,c,m,E){for(;s.nodeType===1;){var C=m;if(s.nodeName.toLowerCase()!==c.toLowerCase()){if(!E&&(s.nodeName!=="INPUT"||s.type!=="hidden"))break}else if(E){if(!s[Dn])switch(c){case"meta":if(!s.hasAttribute("itemprop"))break;return s;case"link":if(M=s.getAttribute("rel"),M==="stylesheet"&&s.hasAttribute("data-precedence"))break;if(M!==C.rel||s.getAttribute("href")!==(C.href==null||C.href===""?null:C.href)||s.getAttribute("crossorigin")!==(C.crossOrigin==null?null:C.crossOrigin)||s.getAttribute("title")!==(C.title==null?null:C.title))break;return s;case"style":if(s.hasAttribute("data-precedence"))break;return s;case"script":if(M=s.getAttribute("src"),(M!==(C.src==null?null:C.src)||s.getAttribute("type")!==(C.type==null?null:C.type)||s.getAttribute("crossorigin")!==(C.crossOrigin==null?null:C.crossOrigin))&&M&&s.hasAttribute("async")&&!s.hasAttribute("itemprop"))break;return s;default:return s}}else if(c==="input"&&s.type==="hidden"){var M=C.name==null?null:""+C.name;if(C.type==="hidden"&&s.getAttribute("name")===M)return s}else return s;if(s=La(s.nextSibling),s===null)break}return null}function Ele(s,c,m){if(c==="")return null;for(;s.nodeType!==3;)if((s.nodeType!==1||s.nodeName!=="INPUT"||s.type!=="hidden")&&!m||(s=La(s.nextSibling),s===null))return null;return s}function Ew(s){return s.data==="$!"||s.data==="$?"&&s.ownerDocument.readyState==="complete"}function xle(s,c){var m=s.ownerDocument;if(s.data!=="$?"||m.readyState==="complete")c();else{var E=function(){c(),m.removeEventListener("DOMContentLoaded",E)};m.addEventListener("DOMContentLoaded",E),s._reactRetry=E}}function La(s){for(;s!=null;s=s.nextSibling){var c=s.nodeType;if(c===1||c===3)break;if(c===8){if(c=s.data,c==="$"||c==="$!"||c==="$?"||c==="F!"||c==="F")break;if(c==="/$")return null}}return s}var xw=null;function LL(s){s=s.previousSibling;for(var c=0;s;){if(s.nodeType===8){var m=s.data;if(m==="$"||m==="$!"||m==="$?"){if(c===0)return s;c--}else m==="/$"&&c++}s=s.previousSibling}return null}function IL(s,c,m){switch(c=Lb(m),s){case"html":if(s=c.documentElement,!s)throw Error(r(452));return s;case"head":if(s=c.head,!s)throw Error(r(453));return s;case"body":if(s=c.body,!s)throw Error(r(454));return s;default:throw Error(r(451))}}function xg(s){for(var c=s.attributes;c.length;)s.removeAttributeNode(c[0]);Kr(s)}var Js=new Map,FL=new Set;function Ib(s){return typeof s.getRootNode=="function"?s.getRootNode():s.nodeType===9?s:s.ownerDocument}var fl=ue.d;ue.d={f:Tle,r:Sle,D:wle,C:Cle,L:_le,m:Ale,X:Nle,S:Dle,M:Ole};function Tle(){var s=fl.f(),c=_b();return s||c}function Sle(s){var c=zn(s);c!==null&&c.tag===5&&c.type==="form"?ip(c):fl.r(s)}var Sp=typeof document>"u"?null:document;function PL(s,c,m){var E=Sp;if(E&&typeof c=="string"&&c){var C=gt(c);C='link[rel="'+s+'"][href="'+C+'"]',typeof m=="string"&&(C+='[crossorigin="'+m+'"]'),FL.has(C)||(FL.add(C),s={rel:s,crossOrigin:m,href:c},E.querySelector(C)===null&&(c=E.createElement("link"),uo(c,"link",s),dn(c),E.head.appendChild(c)))}}function wle(s){fl.D(s),PL("dns-prefetch",s,null)}function Cle(s,c){fl.C(s,c),PL("preconnect",s,c)}function _le(s,c,m){fl.L(s,c,m);var E=Sp;if(E&&s&&c){var C='link[rel="preload"][as="'+gt(c)+'"]';c==="image"&&m&&m.imageSrcSet?(C+='[imagesrcset="'+gt(m.imageSrcSet)+'"]',typeof m.imageSizes=="string"&&(C+='[imagesizes="'+gt(m.imageSizes)+'"]')):C+='[href="'+gt(s)+'"]';var M=C;switch(c){case"style":M=wp(s);break;case"script":M=Cp(s)}Js.has(M)||(s=p({rel:"preload",href:c==="image"&&m&&m.imageSrcSet?void 0:s,as:c},m),Js.set(M,s),E.querySelector(C)!==null||c==="style"&&E.querySelector(Tg(M))||c==="script"&&E.querySelector(Sg(M))||(c=E.createElement("link"),uo(c,"link",s),dn(c),E.head.appendChild(c)))}}function Ale(s,c){fl.m(s,c);var m=Sp;if(m&&s){var E=c&&typeof c.as=="string"?c.as:"script",C='link[rel="modulepreload"][as="'+gt(E)+'"][href="'+gt(s)+'"]',M=C;switch(E){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":M=Cp(s)}if(!Js.has(M)&&(s=p({rel:"modulepreload",href:s},c),Js.set(M,s),m.querySelector(C)===null)){switch(E){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(m.querySelector(Sg(M)))return}E=m.createElement("link"),uo(E,"link",s),dn(E),m.head.appendChild(E)}}}function Dle(s,c,m){fl.S(s,c,m);var E=Sp;if(E&&s){var C=Zi(E).hoistableStyles,M=wp(s);c=c||"default";var G=C.get(M);if(!G){var te={loading:0,preload:null};if(G=E.querySelector(Tg(M)))te.loading=5;else{s=p({rel:"stylesheet",href:s,"data-precedence":c},m),(m=Js.get(M))&&Tw(s,m);var de=G=E.createElement("link");dn(de),uo(de,"link",s),de._p=new Promise(function(Ne,He){de.onload=Ne,de.onerror=He}),de.addEventListener("load",function(){te.loading|=1}),de.addEventListener("error",function(){te.loading|=2}),te.loading|=4,Fb(G,c,E)}G={type:"stylesheet",instance:G,count:1,state:te},C.set(M,G)}}}function Nle(s,c){fl.X(s,c);var m=Sp;if(m&&s){var E=Zi(m).hoistableScripts,C=Cp(s),M=E.get(C);M||(M=m.querySelector(Sg(C)),M||(s=p({src:s,async:!0},c),(c=Js.get(C))&&Sw(s,c),M=m.createElement("script"),dn(M),uo(M,"link",s),m.head.appendChild(M)),M={type:"script",instance:M,count:1,state:null},E.set(C,M))}}function Ole(s,c){fl.M(s,c);var m=Sp;if(m&&s){var E=Zi(m).hoistableScripts,C=Cp(s),M=E.get(C);M||(M=m.querySelector(Sg(C)),M||(s=p({src:s,async:!0,type:"module"},c),(c=Js.get(C))&&Sw(s,c),M=m.createElement("script"),dn(M),uo(M,"link",s),m.head.appendChild(M)),M={type:"script",instance:M,count:1,state:null},E.set(C,M))}}function jL(s,c,m,E){var C=(C=ve.current)?Ib(C):null;if(!C)throw Error(r(446));switch(s){case"meta":case"title":return null;case"style":return typeof m.precedence=="string"&&typeof m.href=="string"?(c=wp(m.href),m=Zi(C).hoistableStyles,E=m.get(c),E||(E={type:"style",instance:null,count:0,state:null},m.set(c,E)),E):{type:"void",instance:null,count:0,state:null};case"link":if(m.rel==="stylesheet"&&typeof m.href=="string"&&typeof m.precedence=="string"){s=wp(m.href);var M=Zi(C).hoistableStyles,G=M.get(s);if(G||(C=C.ownerDocument||C,G={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},M.set(s,G),(M=C.querySelector(Tg(s)))&&!M._p&&(G.instance=M,G.state.loading=5),Js.has(s)||(m={rel:"preload",as:"style",href:m.href,crossOrigin:m.crossOrigin,integrity:m.integrity,media:m.media,hrefLang:m.hrefLang,referrerPolicy:m.referrerPolicy},Js.set(s,m),M||kle(C,s,m,G.state))),c&&E===null)throw Error(r(528,""));return G}if(c&&E!==null)throw Error(r(529,""));return null;case"script":return c=m.async,m=m.src,typeof m=="string"&&c&&typeof c!="function"&&typeof c!="symbol"?(c=Cp(m),m=Zi(C).hoistableScripts,E=m.get(c),E||(E={type:"script",instance:null,count:0,state:null},m.set(c,E)),E):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,s))}}function wp(s){return'href="'+gt(s)+'"'}function Tg(s){return'link[rel="stylesheet"]['+s+"]"}function VL(s){return p({},s,{"data-precedence":s.precedence,precedence:null})}function kle(s,c,m,E){s.querySelector('link[rel="preload"][as="style"]['+c+"]")?E.loading=1:(c=s.createElement("link"),E.preload=c,c.addEventListener("load",function(){return E.loading|=1}),c.addEventListener("error",function(){return E.loading|=2}),uo(c,"link",m),dn(c),s.head.appendChild(c))}function Cp(s){return'[src="'+gt(s)+'"]'}function Sg(s){return"script[async]"+s}function BL(s,c,m){if(c.count++,c.instance===null)switch(c.type){case"style":var E=s.querySelector('style[data-href~="'+gt(m.href)+'"]');if(E)return c.instance=E,dn(E),E;var C=p({},m,{"data-href":m.href,"data-precedence":m.precedence,href:null,precedence:null});return E=(s.ownerDocument||s).createElement("style"),dn(E),uo(E,"style",C),Fb(E,m.precedence,s),c.instance=E;case"stylesheet":C=wp(m.href);var M=s.querySelector(Tg(C));if(M)return c.state.loading|=4,c.instance=M,dn(M),M;E=VL(m),(C=Js.get(C))&&Tw(E,C),M=(s.ownerDocument||s).createElement("link"),dn(M);var G=M;return G._p=new Promise(function(te,de){G.onload=te,G.onerror=de}),uo(M,"link",E),c.state.loading|=4,Fb(M,m.precedence,s),c.instance=M;case"script":return M=Cp(m.src),(C=s.querySelector(Sg(M)))?(c.instance=C,dn(C),C):(E=m,(C=Js.get(M))&&(E=p({},m),Sw(E,C)),s=s.ownerDocument||s,C=s.createElement("script"),dn(C),uo(C,"link",E),s.head.appendChild(C),c.instance=C);case"void":return null;default:throw Error(r(443,c.type))}else c.type==="stylesheet"&&(c.state.loading&4)===0&&(E=c.instance,c.state.loading|=4,Fb(E,m.precedence,s));return c.instance}function Fb(s,c,m){for(var E=m.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),C=E.length?E[E.length-1]:null,M=C,G=0;G<E.length;G++){var te=E[G];if(te.dataset.precedence===c)M=te;else if(M!==C)break}M?M.parentNode.insertBefore(s,M.nextSibling):(c=m.nodeType===9?m.head:m,c.insertBefore(s,c.firstChild))}function Tw(s,c){s.crossOrigin==null&&(s.crossOrigin=c.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=c.referrerPolicy),s.title==null&&(s.title=c.title)}function Sw(s,c){s.crossOrigin==null&&(s.crossOrigin=c.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=c.referrerPolicy),s.integrity==null&&(s.integrity=c.integrity)}var Pb=null;function $L(s,c,m){if(Pb===null){var E=new Map,C=Pb=new Map;C.set(m,E)}else C=Pb,E=C.get(m),E||(E=new Map,C.set(m,E));if(E.has(s))return E;for(E.set(s,null),m=m.getElementsByTagName(s),C=0;C<m.length;C++){var M=m[C];if(!(M[Dn]||M[It]||s==="link"&&M.getAttribute("rel")==="stylesheet")&&M.namespaceURI!=="http://www.w3.org/2000/svg"){var G=M.getAttribute(c)||"";G=s+G;var te=E.get(G);te?te.push(M):E.set(G,[M])}}return E}function UL(s,c,m){s=s.ownerDocument||s,s.head.insertBefore(m,c==="title"?s.querySelector("head > title"):null)}function Rle(s,c,m){if(m===1||c.itemProp!=null)return!1;switch(s){case"meta":case"title":return!0;case"style":if(typeof c.precedence!="string"||typeof c.href!="string"||c.href==="")break;return!0;case"link":if(typeof c.rel!="string"||typeof c.href!="string"||c.href===""||c.onLoad||c.onError)break;switch(c.rel){case"stylesheet":return s=c.disabled,typeof c.precedence=="string"&&s==null;default:return!0}case"script":if(c.async&&typeof c.async!="function"&&typeof c.async!="symbol"&&!c.onLoad&&!c.onError&&c.src&&typeof c.src=="string")return!0}return!1}function HL(s){return!(s.type==="stylesheet"&&(s.state.loading&3)===0)}var wg=null;function Mle(){}function Lle(s,c,m){if(wg===null)throw Error(r(475));var E=wg;if(c.type==="stylesheet"&&(typeof m.media!="string"||matchMedia(m.media).matches!==!1)&&(c.state.loading&4)===0){if(c.instance===null){var C=wp(m.href),M=s.querySelector(Tg(C));if(M){s=M._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(E.count++,E=jb.bind(E),s.then(E,E)),c.state.loading|=4,c.instance=M,dn(M);return}M=s.ownerDocument||s,m=VL(m),(C=Js.get(C))&&Tw(m,C),M=M.createElement("link"),dn(M);var G=M;G._p=new Promise(function(te,de){G.onload=te,G.onerror=de}),uo(M,"link",m),c.instance=M}E.stylesheets===null&&(E.stylesheets=new Map),E.stylesheets.set(c,s),(s=c.state.preload)&&(c.state.loading&3)===0&&(E.count++,c=jb.bind(E),s.addEventListener("load",c),s.addEventListener("error",c))}}function Ile(){if(wg===null)throw Error(r(475));var s=wg;return s.stylesheets&&s.count===0&&ww(s,s.stylesheets),0<s.count?function(c){var m=setTimeout(function(){if(s.stylesheets&&ww(s,s.stylesheets),s.unsuspend){var E=s.unsuspend;s.unsuspend=null,E()}},6e4);return s.unsuspend=c,function(){s.unsuspend=null,clearTimeout(m)}}:null}function jb(){if(this.count--,this.count===0){if(this.stylesheets)ww(this,this.stylesheets);else if(this.unsuspend){var s=this.unsuspend;this.unsuspend=null,s()}}}var Vb=null;function ww(s,c){s.stylesheets=null,s.unsuspend!==null&&(s.count++,Vb=new Map,c.forEach(Fle,s),Vb=null,jb.call(s))}function Fle(s,c){if(!(c.state.loading&4)){var m=Vb.get(s);if(m)var E=m.get(null);else{m=new Map,Vb.set(s,m);for(var C=s.querySelectorAll("link[data-precedence],style[data-precedence]"),M=0;M<C.length;M++){var G=C[M];(G.nodeName==="LINK"||G.getAttribute("media")!=="not all")&&(m.set(G.dataset.precedence,G),E=G)}E&&m.set(null,E)}C=c.instance,G=C.getAttribute("data-precedence"),M=m.get(G)||E,M===E&&m.set(null,C),m.set(G,C),this.count++,E=jb.bind(this),C.addEventListener("load",E),C.addEventListener("error",E),M?M.parentNode.insertBefore(C,M.nextSibling):(s=s.nodeType===9?s.head:s,s.insertBefore(C,s.firstChild)),c.state.loading|=4}}var Cg={$$typeof:O,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function Ple(s,c,m,E,C,M,G,te){this.tag=1,this.containerInfo=s,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=An(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=An(0),this.hiddenUpdates=An(null),this.identifierPrefix=E,this.onUncaughtError=C,this.onCaughtError=M,this.onRecoverableError=G,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=te,this.incompleteTransitions=new Map}function zL(s,c,m,E,C,M,G,te,de,Ne,He,We){return s=new Ple(s,c,m,G,te,de,Ne,We),c=1,M===!0&&(c|=24),M=Io(3,null,null,c),s.current=M,M.stateNode=s,c=Bm(),c.refCount++,s.pooledCache=c,c.refCount++,M.memoizedState={element:E,isDehydrated:m,cache:c},Uh(M),s}function qL(s){return s?(s=du,s):du}function GL(s,c,m,E,C,M){C=qL(C),E.context===null?E.context=C:E.pendingContext=C,E=oo(c),E.payload={element:m},M=M===void 0?null:M,M!==null&&(E.callback=M),m=_a(s,E,c),m!==null&&(bs(m,s,c),nc(m,s,c))}function WL(s,c){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var m=s.retryLane;s.retryLane=m!==0&&m<c?m:c}}function Cw(s,c){WL(s,c),(s=s.alternate)&&WL(s,c)}function YL(s){if(s.tag===13){var c=Ku(s,67108864);c!==null&&bs(c,s,67108864),Cw(s,67108864)}}var Bb=!0;function jle(s,c,m,E){var C=J.T;J.T=null;var M=ue.p;try{ue.p=2,_w(s,c,m,E)}finally{ue.p=M,J.T=C}}function Vle(s,c,m,E){var C=J.T;J.T=null;var M=ue.p;try{ue.p=8,_w(s,c,m,E)}finally{ue.p=M,J.T=C}}function _w(s,c,m,E){if(Bb){var C=Aw(E);if(C===null)hw(s,c,E,$b,m),KL(s,E);else if($le(C,s,c,m,E))E.stopPropagation();else if(KL(s,E),c&4&&-1<Ble.indexOf(s)){for(;C!==null;){var M=zn(C);if(M!==null)switch(M.tag){case 3:if(M=M.stateNode,M.current.memoizedState.isDehydrated){var G=_n(M.pendingLanes);if(G!==0){var te=M;for(te.pendingLanes|=2,te.entangledLanes|=2;G;){var de=1<<31-mt(G);te.entanglements[1]|=de,G&=~de}Cu(M),($n&6)===0&&(wb=re()+500,yg(0))}}break;case 13:te=Ku(M,2),te!==null&&bs(te,M,2),_b(),Cw(M,2)}if(M=Aw(E),M===null&&hw(s,c,E,$b,m),M===C)break;C=M}C!==null&&E.stopPropagation()}else hw(s,c,E,null,m)}}function Aw(s){return s=Df(s),Dw(s)}var $b=null;function Dw(s){if($b=null,s=Br(s),s!==null){var c=o(s);if(c===null)s=null;else{var m=c.tag;if(m===13){if(s=a(c),s!==null)return s;s=null}else if(m===3){if(c.stateNode.current.memoizedState.isDehydrated)return c.tag===3?c.stateNode.containerInfo:null;s=null}else c!==s&&(s=null)}}return $b=s,null}function QL(s){switch(s){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(_e()){case ze:return 2;case Le:return 8;case Pe:case Te:return 32;case Ie:return 268435456;default:return 32}default:return 32}}var Nw=!1,Ic=null,Fc=null,Pc=null,_g=new Map,Ag=new Map,jc=[],Ble="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 KL(s,c){switch(s){case"focusin":case"focusout":Ic=null;break;case"dragenter":case"dragleave":Fc=null;break;case"mouseover":case"mouseout":Pc=null;break;case"pointerover":case"pointerout":_g.delete(c.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ag.delete(c.pointerId)}}function Dg(s,c,m,E,C,M){return s===null||s.nativeEvent!==M?(s={blockedOn:c,domEventName:m,eventSystemFlags:E,nativeEvent:M,targetContainers:[C]},c!==null&&(c=zn(c),c!==null&&YL(c)),s):(s.eventSystemFlags|=E,c=s.targetContainers,C!==null&&c.indexOf(C)===-1&&c.push(C),s)}function $le(s,c,m,E,C){switch(c){case"focusin":return Ic=Dg(Ic,s,c,m,E,C),!0;case"dragenter":return Fc=Dg(Fc,s,c,m,E,C),!0;case"mouseover":return Pc=Dg(Pc,s,c,m,E,C),!0;case"pointerover":var M=C.pointerId;return _g.set(M,Dg(_g.get(M)||null,s,c,m,E,C)),!0;case"gotpointercapture":return M=C.pointerId,Ag.set(M,Dg(Ag.get(M)||null,s,c,m,E,C)),!0}return!1}function XL(s){var c=Br(s.target);if(c!==null){var m=o(c);if(m!==null){if(c=m.tag,c===13){if(c=a(m),c!==null){s.blockedOn=c,Dt(s.priority,function(){if(m.tag===13){var E=ys();E=Qt(E);var C=Ku(m,E);C!==null&&bs(C,m,E),Cw(m,E)}});return}}else if(c===3&&m.stateNode.current.memoizedState.isDehydrated){s.blockedOn=m.tag===3?m.stateNode.containerInfo:null;return}}}s.blockedOn=null}function Ub(s){if(s.blockedOn!==null)return!1;for(var c=s.targetContainers;0<c.length;){var m=Aw(s.nativeEvent);if(m===null){m=s.nativeEvent;var E=new m.constructor(m.type,m);Go=E,m.target.dispatchEvent(E),Go=null}else return c=zn(m),c!==null&&YL(c),s.blockedOn=m,!1;c.shift()}return!0}function ZL(s,c,m){Ub(s)&&m.delete(c)}function Ule(){Nw=!1,Ic!==null&&Ub(Ic)&&(Ic=null),Fc!==null&&Ub(Fc)&&(Fc=null),Pc!==null&&Ub(Pc)&&(Pc=null),_g.forEach(ZL),Ag.forEach(ZL)}function Hb(s,c){s.blockedOn===c&&(s.blockedOn=null,Nw||(Nw=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Ule)))}var zb=null;function JL(s){zb!==s&&(zb=s,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){zb===s&&(zb=null);for(var c=0;c<s.length;c+=3){var m=s[c],E=s[c+1],C=s[c+2];if(typeof E!="function"){if(Dw(E||m)===null)continue;break}var M=zn(m);M!==null&&(s.splice(c,3),c-=3,bu(M,{pending:!0,data:C,method:m.method,action:E},E,C))}}))}function Ng(s){function c(de){return Hb(de,s)}Ic!==null&&Hb(Ic,s),Fc!==null&&Hb(Fc,s),Pc!==null&&Hb(Pc,s),_g.forEach(c),Ag.forEach(c);for(var m=0;m<jc.length;m++){var E=jc[m];E.blockedOn===s&&(E.blockedOn=null)}for(;0<jc.length&&(m=jc[0],m.blockedOn===null);)XL(m),m.blockedOn===null&&jc.shift();if(m=(s.ownerDocument||s).$$reactFormReplay,m!=null)for(E=0;E<m.length;E+=3){var C=m[E],M=m[E+1],G=C[en]||null;if(typeof M=="function")G||JL(m);else if(G){var te=null;if(M&&M.hasAttribute("formAction")){if(C=M,G=M[en]||null)te=G.formAction;else if(Dw(C)!==null)continue}else te=G.action;typeof te=="function"?m[E+1]=te:(m.splice(E,3),E-=3),JL(m)}}}function Ow(s){this._internalRoot=s}qb.prototype.render=Ow.prototype.render=function(s){var c=this._internalRoot;if(c===null)throw Error(r(409));var m=c.current,E=ys();GL(m,E,s,c,null,null)},qb.prototype.unmount=Ow.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var c=s.containerInfo;GL(s.current,2,null,s,null,null),_b(),c[wi]=null}};function qb(s){this._internalRoot=s}qb.prototype.unstable_scheduleHydration=function(s){if(s){var c=Rn();s={blockedOn:null,target:s,priority:c};for(var m=0;m<jc.length&&c!==0&&c<jc[m].priority;m++);jc.splice(m,0,s),m===0&&XL(s)}};var eI=t.version;if(eI!=="19.1.0")throw Error(r(527,eI,"19.1.0"));ue.findDOMNode=function(s){var c=s._reactInternals;if(c===void 0)throw typeof s.render=="function"?Error(r(188)):(s=Object.keys(s).join(","),Error(r(268,s)));return s=f(c),s=s!==null?h(s):null,s=s===null?null:s.stateNode,s};var Hle={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:J,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Gb=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Gb.isDisabled&&Gb.supportsFiber)try{At=Gb.inject(Hle),kt=Gb}catch{}}return Dp.createRoot=function(s,c){if(!i(s))throw Error(r(299));var m=!1,E="",C=fd,M=vb,G=yb,te=null;return c!=null&&(c.unstable_strictMode===!0&&(m=!0),c.identifierPrefix!==void 0&&(E=c.identifierPrefix),c.onUncaughtError!==void 0&&(C=c.onUncaughtError),c.onCaughtError!==void 0&&(M=c.onCaughtError),c.onRecoverableError!==void 0&&(G=c.onRecoverableError),c.unstable_transitionCallbacks!==void 0&&(te=c.unstable_transitionCallbacks)),c=zL(s,1,!1,null,null,m,E,C,M,G,te,null),s[wi]=c.current,dw(s),new Ow(c)},Dp.hydrateRoot=function(s,c,m){if(!i(s))throw Error(r(299));var E=!1,C="",M=fd,G=vb,te=yb,de=null,Ne=null;return m!=null&&(m.unstable_strictMode===!0&&(E=!0),m.identifierPrefix!==void 0&&(C=m.identifierPrefix),m.onUncaughtError!==void 0&&(M=m.onUncaughtError),m.onCaughtError!==void 0&&(G=m.onCaughtError),m.onRecoverableError!==void 0&&(te=m.onRecoverableError),m.unstable_transitionCallbacks!==void 0&&(de=m.unstable_transitionCallbacks),m.formState!==void 0&&(Ne=m.formState)),c=zL(s,1,!0,c,m??null,E,C,M,G,te,de,Ne),c.context=qL(null),m=c.current,E=ys(),E=Qt(E),C=oo(E),C.callback=null,_a(m,C,E),m=E,c.current.lanes=m,Yt(c,m),Cu(c),s[wi]=c.current,dw(s),new qb(c)},Dp.version="19.1.0",Dp}var $w;function cI(){if($w)return Qb.exports;$w=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(),Qb.exports=lI(),Qb.exports}var Uw=cI();/**
* 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.
*
* @lightSyntaxTransform
* @noflow
* @nolint
* @preventMunge
* @preserve-invariant-messages
*/var Jb,Hw;function fI(){if(Hw)return Jb;Hw=1;var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,a=(ne,oe)=>{for(var K in oe)t(ne,K,{get:oe[K],enumerable:!0})},l=(ne,oe,K,he)=>{if(oe&&typeof oe=="object"||typeof oe=="function")for(let se of r(oe))!o.call(ne,se)&&se!==K&&t(ne,se,{get:()=>oe[se],enumerable:!(he=n(oe,se))||he.enumerable});return ne},f=(ne,oe,K)=>(K=ne!=null?e(i(ne)):{},l(!ne||!ne.__esModule?t(K,"default",{value:ne,enumerable:!0}):K,ne)),h=ne=>l(t({},"__esModule",{value:!0}),ne),p={};a(p,{$dispatcherGuard:()=>F,$makeReadOnly:()=>q,$reset:()=>B,$structuralCheck:()=>ue,c:()=>O,clearRenderCounterRegistry:()=>Z,renderCounterRegistry:()=>W,useRenderCounter:()=>H}),Jb=h(p);var b=f(md()),{useRef:v,useEffect:x,isValidElement:S}=b,w,k=(w=b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)!=null?w:b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,_=Symbol.for("react.memo_cache_sentinel"),N,O=typeof((N=b.__COMPILER_RUNTIME)==null?void 0:N.c)=="function"?b.__COMPILER_RUNTIME.c:function(oe){return b.useMemo(()=>{const K=new Array(oe);for(let he=0;he<oe;he++)K[he]=_;return K[_]=!0,K},[])},A={};["readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","getCacheSignal","getCacheForType","useCacheRefresh"].forEach(ne=>{A[ne]=()=>{throw new Error(`[React] Unexpected React hook call (${ne}) from a React compiled function. Check that all hooks are called directly and named according to convention ('use[A-Z]') `)}});var L=null;A.useMemoCache=ne=>{if(L==null)throw new Error("React Compiler internal invariant violation: unexpected null dispatcher");return L.useMemoCache(ne)};function P(ne){return k.ReactCurrentDispatcher.current=ne,k.ReactCurrentDispatcher.current}var j=[];function F(ne){const oe=k.ReactCurrentDispatcher.current;if(ne===0){if(j.push(oe),j.length===1&&(L=oe),oe===A)throw new Error("[React] Unexpected call to custom hook or component from a React compiled function. Check that (1) all hooks are called directly and named according to convention ('use[A-Z]') and (2) components are returned as JSX instead of being directly invoked.");P(A)}else if(ne===1){const K=j.pop();if(K==null)throw new Error("React Compiler internal error: unexpected null in guard stack");j.length===0&&(L=null),P(K)}else if(ne===2)j.push(oe),P(L);else if(ne===3){const K=j.pop();if(K==null)throw new Error("React Compiler internal error: unexpected null in guard stack");P(K)}else throw new Error("React Compiler internal error: unreachable block"+ne)}function B(ne){for(let oe=0;oe<ne.length;oe++)ne[oe]=_}function q(){throw new Error("TODO: implement $makeReadOnly in react-compiler-runtime")}var W=new Map;function Z(){for(const ne of W.values())ne.forEach(oe=>{oe.count=0})}function X(ne,oe){let K=W.get(ne);K==null&&(K=new Set,W.set(ne,K)),K.add(oe)}function ee(ne,oe){const K=W.get(ne);K!=null&&K.delete(oe)}function H(ne){const oe=v(null);oe.current!=null&&(oe.current.count+=1),x(()=>{if(oe.current==null){const K={count:0};X(ne,K),oe.current=K}return()=>{oe.current!==null&&ee(ne,oe.current)}})}var J=new Set;function ue(ne,oe,K,he,se,fe){function ae(xe,ge,Ve,Xe){const et=`${he}:${fe} [${se}] ${K}${Ve} changed from ${xe} to ${ge} at depth ${Xe}`;J.has(et)||(J.add(et),console.error(et))}const Ee=2;function ve(xe,ge,Ve,Xe){if(!(Xe>Ee)){if(xe===ge)return;if(typeof xe!=typeof ge)ae(`type ${typeof xe}`,`type ${typeof ge}`,Ve,Xe);else if(typeof xe=="object"){const et=Array.isArray(xe),dt=Array.isArray(ge);if(xe===null&&ge!==null)ae("null",`type ${typeof ge}`,Ve,Xe);else if(ge===null)ae(`type ${typeof xe}`,"null",Ve,Xe);else if(xe instanceof Map)if(!(ge instanceof Map))ae("Map instance","other value",Ve,Xe);else if(xe.size!==ge.size)ae(`Map instance with size ${xe.size}`,`Map instance with size ${ge.size}`,Ve,Xe);else for(const[we,pe]of xe)ge.has(we)?ve(pe,ge.get(we),`${Ve}.get(${we})`,Xe+1):ae(`Map instance with key ${we}`,`Map instance without key ${we}`,Ve,Xe);else if(ge instanceof Map)ae("other value","Map instance",Ve,Xe);else if(xe instanceof Set)if(!(ge instanceof Set))ae("Set instance","other value",Ve,Xe);else if(xe.size!==ge.size)ae(`Set instance with size ${xe.size}`,`Set instance with size ${ge.size}`,Ve,Xe);else for(const we of ge)xe.has(we)||ae(`Set instance without element ${we}`,`Set instance with element ${we}`,Ve,Xe);else if(ge instanceof Set)ae("other value","Set instance",Ve,Xe);else if(et||dt)if(et!==dt)ae(`type ${et?"array":"object"}`,`type ${dt?"array":"object"}`,Ve,Xe);else if(xe.length!==ge.length)ae(`array with length ${xe.length}`,`array with length ${ge.length}`,Ve,Xe);else for(let we=0;we<xe.length;we++)ve(xe[we],ge[we],`${Ve}[${we}]`,Xe+1);else if(S(xe)||S(ge))S(xe)!==S(ge)?ae(`type ${S(xe)?"React element":"object"}`,`type ${S(ge)?"React element":"object"}`,Ve,Xe):xe.type!==ge.type?ae(`React element of type ${xe.type}`,`React element of type ${ge.type}`,Ve,Xe):ve(xe.props,ge.props,`[props of ${Ve}]`,Xe+1);else{for(const we in ge)we in xe||ae(`object without key ${we}`,`object with key ${we}`,Ve,Xe);for(const we in xe)we in ge?ve(xe[we],ge[we],`${Ve}.${we}`,Xe+1):ae(`object with key ${we}`,`object without key ${we}`,Ve,Xe)}}else{if(typeof xe=="function")return;isNaN(xe)||isNaN(ge)?isNaN(xe)!==isNaN(ge)&&ae(`${isNaN(xe)?"NaN":"non-NaN value"}`,`${isNaN(ge)?"NaN":"non-NaN value"}`,Ve,Xe):xe!==ge&&ae(xe,ge,Ve,Xe)}}}ve(ne,oe,"",0)}return Jb}var it=fI(),dI=Object.defineProperty,hI=Object.defineProperties,pI=Object.getOwnPropertyDescriptors,zw=Object.getOwnPropertySymbols,mI=Object.prototype.hasOwnProperty,gI=Object.prototype.propertyIsEnumerable,qw=(e,t,n)=>t in e?dI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,gd=(e,t)=>{for(var n in t||(t={}))mI.call(t,n)&&qw(e,n,t[n]);if(zw)for(var n of zw(t))gI.call(t,n)&&qw(e,n,t[n]);return e},Og=(e,t)=>hI(e,pI(t));function Gw(e){return typeof e=="object"&&e!==null&&typeof e.then=="function"}function vI(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 Ww(e){return typeof e=="object"&&e!==null&&"subscribe"in e&&typeof e.subscribe=="function"}function Yw(e){return typeof e=="object"&&e!==null&&(e[Symbol.toStringTag]==="AsyncGenerator"||Symbol.asyncIterator in e)}async function yI(e){var t;const n=(t=("return"in e?e:e[Symbol.asyncIterator]()).return)==null?void 0:t.bind(e),r=await("next"in e?e:e[Symbol.asyncIterator]()).next.bind(e)();return n==null||n(),r.value}async function Qw(e){const t=await e;return Yw(t)?yI(t):Ww(t)?vI(t):t}const bI="16.11.0",kg=Object.freeze({major:16,minor:11,patch:0,preReleaseTag:null});function rn(e,t){if(!!!e)throw new Error(t)}function ts(e){return typeof(e==null?void 0:e.then)=="function"}function ns(e){return typeof e=="object"&&e!==null}function Gr(e,t){if(!!!e)throw new Error(t??"Unexpected invariant triggered.")}const EI=/\r\n|[\n\r]/g;function Rg(e,t){let n=0,r=1;for(const i of e.body.matchAll(EI)){if(typeof i.index=="number"||Gr(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function Kw(e){return e2(e.source,Rg(e.source,e.start))}function e2(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,l=t.line===1?n:0,f=t.column+l,h=`${e.name}:${a}:${f}
`,p=r.split(/\r\n|[\n\r]/g),b=p[i];if(b.length>120){const v=Math.floor(f/80),x=f%80,S=[];for(let w=0;w<b.length;w+=80)S.push(b.slice(w,w+80));return h+Xw([[`${a} |`,S[0]],...S.slice(1,v+1).map(w=>["|",w]),["|","^".padStart(x)],["|",S[v+1]]])}return h+Xw([[`${a-1} |`,p[i-1]],[`${a} |`,b],["|","^".padStart(f)],[`${a+1} |`,p[i+1]]])}function Xw(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 xI(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 Fe extends Error{constructor(t,...n){var r,i,o;const{nodes:a,source:l,positions:f,path:h,originalError:p,extensions:b}=xI(n);super(t),this.name="GraphQLError",this.path=h??void 0,this.originalError=p??void 0,this.nodes=Zw(Array.isArray(a)?a:a?[a]:void 0);const v=Zw((r=this.nodes)===null||r===void 0?void 0:r.map(S=>S.loc).filter(S=>S!=null));this.source=l??(v==null||(i=v[0])===null||i===void 0?void 0:i.source),this.positions=f??(v==null?void 0:v.map(S=>S.start)),this.locations=f&&l?f.map(S=>Rg(l,S)):v==null?void 0:v.map(S=>Rg(S.source,S.start));const x=ns(p==null?void 0:p.extensions)?p==null?void 0:p.extensions:void 0;this.extensions=(o=b??x)!==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}}),p!=null&&p.stack?Object.defineProperty(this,"stack",{value:p.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,Fe):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+=`
`+Kw(n.loc));else if(this.source&&this.locations)for(const n of this.locations)t+=`
`+e2(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 Zw(e){return e===void 0||e.length===0?void 0:e}function TI(e){return e.toString()}function SI(e){return e.toJSON()}function gi(e,t,n){return new Fe(`Syntax Error: ${n}`,{source:e,positions:[t]})}let Jw=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}}},t2=class{constructor(t,n,r,i,o,a){this.kind=t,this.start=n,this.end=r,this.line=i,this.column=o,this.value=a,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 eC={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"]},wI=new Set(Object.keys(eC));function n2(e){const t=e==null?void 0:e.kind;return typeof t=="string"&&wI.has(t)}var vi;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(vi||(vi={}));var at;(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"})(at||(at={}));var Q;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(Q||(Q={}));function r2(e){return e===9||e===32}function Np(e){return e>=48&&e<=57}function tC(e){return e>=97&&e<=122||e>=65&&e<=90}function i2(e){return tC(e)||e===95}function nC(e){return tC(e)||Np(e)||e===95}function CI(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let a=0;a<e.length;++a){var o;const l=e[a],f=_I(l);f!==l.length&&(r=(o=r)!==null&&o!==void 0?o:a,i=a,a!==0&&f<n&&(n=f))}return e.map((a,l)=>l===0?a:a.slice(n)).slice((t=r)!==null&&t!==void 0?t:0,i+1)}function _I(e){let t=0;for(;t<e.length&&r2(e.charCodeAt(t));)++t;return t}function AI(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 rC(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(x=>x.length===0||r2(x.charCodeAt(0))),a=n.endsWith('\\"""'),l=e.endsWith('"')&&!a,f=e.endsWith("\\"),h=l||f,p=!(t!=null&&t.minimize)&&(!i||e.length>70||h||o||a);let b="";const v=i&&r2(e.charCodeAt(0));return(p&&!v||o)&&(b+=`
`),b+=n,(p||h)&&(b+=`
`),'"""'+b+'"""'}var Be;(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"})(Be||(Be={}));class o2{constructor(t){const n=new t2(Be.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!==Be.EOF)do if(t.next)t=t.next;else{const n=DI(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===Be.COMMENT);return t}}function iC(e){return e===Be.BANG||e===Be.DOLLAR||e===Be.AMP||e===Be.PAREN_L||e===Be.PAREN_R||e===Be.SPREAD||e===Be.COLON||e===Be.EQUALS||e===Be.AT||e===Be.BRACKET_L||e===Be.BRACKET_R||e===Be.BRACE_L||e===Be.PIPE||e===Be.BRACE_R}function vd(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function Mg(e,t){return oC(e.charCodeAt(t))&&sC(e.charCodeAt(t+1))}function oC(e){return e>=55296&&e<=56319}function sC(e){return e>=56320&&e<=57343}function $c(e,t){const n=e.source.body.codePointAt(t);if(n===void 0)return Be.EOF;if(n>=32&&n<=126){const r=String.fromCodePoint(n);return r==='"'?`'"'`:`"${r}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function oi(e,t,n,r,i){const o=e.line,a=1+n-e.lineStart;return new t2(t,n,r,o,a,i)}function DI(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 NI(e,i);case 33:return oi(e,Be.BANG,i,i+1);case 36:return oi(e,Be.DOLLAR,i,i+1);case 38:return oi(e,Be.AMP,i,i+1);case 40:return oi(e,Be.PAREN_L,i,i+1);case 41:return oi(e,Be.PAREN_R,i,i+1);case 46:if(n.charCodeAt(i+1)===46&&n.charCodeAt(i+2)===46)return oi(e,Be.SPREAD,i,i+3);break;case 58:return oi(e,Be.COLON,i,i+1);case 61:return oi(e,Be.EQUALS,i,i+1);case 64:return oi(e,Be.AT,i,i+1);case 91:return oi(e,Be.BRACKET_L,i,i+1);case 93:return oi(e,Be.BRACKET_R,i,i+1);case 123:return oi(e,Be.BRACE_L,i,i+1);case 124:return oi(e,Be.PIPE,i,i+1);case 125:return oi(e,Be.BRACE_R,i,i+1);case 34:return n.charCodeAt(i+1)===34&&n.charCodeAt(i+2)===34?II(e,i):kI(e,i)}if(Np(o)||o===45)return OI(e,i,o);if(i2(o))return FI(e,i);throw gi(e.source,i,o===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:vd(o)||Mg(n,i)?`Unexpected character: ${$c(e,i)}.`:`Invalid character: ${$c(e,i)}.`)}return oi(e,Be.EOF,r,r)}function NI(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(vd(o))++i;else if(Mg(n,i))i+=2;else break}return oi(e,Be.COMMENT,t,i,n.slice(t+1,i))}function OI(e,t,n){const r=e.source.body;let i=t,o=n,a=!1;if(o===45&&(o=r.charCodeAt(++i)),o===48){if(o=r.charCodeAt(++i),Np(o))throw gi(e.source,i,`Invalid number, unexpected digit after 0: ${$c(e,i)}.`)}else i=s2(e,i,o),o=r.charCodeAt(i);if(o===46&&(a=!0,o=r.charCodeAt(++i),i=s2(e,i,o),o=r.charCodeAt(i)),(o===69||o===101)&&(a=!0,o=r.charCodeAt(++i),(o===43||o===45)&&(o=r.charCodeAt(++i)),i=s2(e,i,o),o=r.charCodeAt(i)),o===46||i2(o))throw gi(e.source,i,`Invalid number, expected digit but got: ${$c(e,i)}.`);return oi(e,a?Be.FLOAT:Be.INT,t,i,r.slice(t,i))}function s2(e,t,n){if(!Np(n))throw gi(e.source,t,`Invalid number, expected digit but got: ${$c(e,t)}.`);const r=e.source.body;let i=t+1;for(;Np(r.charCodeAt(i));)++i;return i}function kI(e,t){const n=e.source.body,r=n.length;let i=t+1,o=i,a="";for(;i<r;){const l=n.charCodeAt(i);if(l===34)return a+=n.slice(o,i),oi(e,Be.STRING,t,i+1,a);if(l===92){a+=n.slice(o,i);const f=n.charCodeAt(i+1)===117?n.charCodeAt(i+2)===123?RI(e,i):MI(e,i):LI(e,i);a+=f.value,i+=f.size,o=i;continue}if(l===10||l===13)break;if(vd(l))++i;else if(Mg(n,i))i+=2;else throw gi(e.source,i,`Invalid character within String: ${$c(e,i)}.`)}throw gi(e.source,i,"Unterminated string.")}function RI(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||!vd(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|Op(o),r<0)break}throw gi(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}function MI(e,t){const n=e.source.body,r=aC(n,t+2);if(vd(r))return{value:String.fromCodePoint(r),size:6};if(oC(r)&&n.charCodeAt(t+6)===92&&n.charCodeAt(t+7)===117){const i=aC(n,t+8);if(sC(i))return{value:String.fromCodePoint(r,i),size:12}}throw gi(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function aC(e,t){return Op(e.charCodeAt(t))<<12|Op(e.charCodeAt(t+1))<<8|Op(e.charCodeAt(t+2))<<4|Op(e.charCodeAt(t+3))}function Op(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function LI(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 gi(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function II(e,t){const n=e.source.body,r=n.length;let i=e.lineStart,o=t+3,a=o,l="";const f=[];for(;o<r;){const h=n.charCodeAt(o);if(h===34&&n.charCodeAt(o+1)===34&&n.charCodeAt(o+2)===34){l+=n.slice(a,o),f.push(l);const p=oi(e,Be.BLOCK_STRING,t,o+3,CI(f).join(`
`));return e.line+=f.length-1,e.lineStart=i,p}if(h===92&&n.charCodeAt(o+1)===34&&n.charCodeAt(o+2)===34&&n.charCodeAt(o+3)===34){l+=n.slice(a,o),a=o+1,o+=4;continue}if(h===10||h===13){l+=n.slice(a,o),f.push(l),h===13&&n.charCodeAt(o+1)===10?o+=2:++o,l="",a=o,i=o;continue}if(vd(h))++o;else if(Mg(n,o))o+=2;else throw gi(e.source,o,`Invalid character within String: ${$c(e,o)}.`)}throw gi(e.source,o,"Unterminated string.")}function FI(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const o=n.charCodeAt(i);if(nC(o))++i;else break}return oi(e,Be.NAME,t,i,n.slice(t,i))}const PI=10,uC=2;function Ue(e){return Lg(e,[])}function Lg(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return jI(e,t);default:return String(e)}}function jI(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(VI(e)){const r=e.toJSON();if(r!==e)return typeof r=="string"?r:Lg(r,n)}else if(Array.isArray(e))return $I(e,n);return BI(e,n)}function VI(e){return typeof e.toJSON=="function"}function BI(e,t){const n=Object.entries(e);return n.length===0?"{}":t.length>uC?"["+UI(e)+"]":"{ "+n.map(([i,o])=>i+": "+Lg(o,t)).join(", ")+" }"}function $I(e,t){if(e.length===0)return"[]";if(t.length>uC)return"[Array]";const n=Math.min(PI,e.length),r=e.length-n,i=[];for(let o=0;o<n;++o)i.push(Lg(e[o],t));return r===1?i.push("... 1 more item"):r>1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}function UI(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 ea=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 a=Ue(t);throw new Error(`Cannot use ${i} "${a}" 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 kp{constructor(t,n="GraphQL request",r={line:1,column:1}){typeof t=="string"||rn(!1,`Body must be a string. Received: ${Ue(t)}.`),this.body=t,this.name=n,this.locationOffset=r,this.locationOffset.line>0||rn(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||rn(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function lC(e){return ea(e,kp)}function zi(e,t){const n=new Ig(e,t),r=n.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:n.tokenCount}),r}function cC(e,t){const n=new Ig(e,t);n.expectToken(Be.SOF);const r=n.parseValueLiteral(!1);return n.expectToken(Be.EOF),r}function HI(e,t){const n=new Ig(e,t);n.expectToken(Be.SOF);const r=n.parseConstValueLiteral();return n.expectToken(Be.EOF),r}function zI(e,t){const n=new Ig(e,t);n.expectToken(Be.SOF);const r=n.parseTypeReference();return n.expectToken(Be.EOF),r}class Ig{constructor(t,n={}){const r=lC(t)?t:new kp(t);this._lexer=new o2(r),this._options=n,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const t=this.expectToken(Be.NAME);return this.node(t,{kind:Q.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:Q.DOCUMENT,definitions:this.many(Be.SOF,this.parseDefinition,Be.EOF)})}parseDefinition(){if(this.peek(Be.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===Be.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 gi(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(Be.BRACE_L))return this.node(t,{kind:Q.OPERATION_DEFINITION,operation:vi.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const n=this.parseOperationType();let r;return this.peek(Be.NAME)&&(r=this.parseName()),this.node(t,{kind:Q.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(Be.NAME);switch(t.value){case"query":return vi.QUERY;case"mutation":return vi.MUTATION;case"subscription":return vi.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(Be.PAREN_L,this.parseVariableDefinition,Be.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:Q.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Be.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Be.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(Be.DOLLAR),this.node(t,{kind:Q.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:Q.SELECTION_SET,selections:this.many(Be.BRACE_L,this.parseSelection,Be.BRACE_R)})}parseSelection(){return this.peek(Be.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,n=this.parseName();let r,i;return this.expectOptionalToken(Be.COLON)?(r=n,i=this.parseName()):i=n,this.node(t,{kind:Q.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(Be.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(Be.PAREN_L,n,Be.PAREN_R)}parseArgument(t=!1){const n=this._lexer.token,r=this.parseName();return this.expectToken(Be.COLON),this.node(n,{kind:Q.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(Be.SPREAD);const n=this.expectOptionalKeyword("on");return!n&&this.peek(Be.NAME)?this.node(t,{kind:Q.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:Q.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:Q.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:Q.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){const n=this._lexer.token;switch(n.kind){case Be.BRACKET_L:return this.parseList(t);case Be.BRACE_L:return this.parseObject(t);case Be.INT:return this.advanceLexer(),this.node(n,{kind:Q.INT,value:n.value});case Be.FLOAT:return this.advanceLexer(),this.node(n,{kind:Q.FLOAT,value:n.value});case Be.STRING:case Be.BLOCK_STRING:return this.parseStringLiteral();case Be.NAME:switch(this.advanceLexer(),n.value){case"true":return this.node(n,{kind:Q.BOOLEAN,value:!0});case"false":return this.node(n,{kind:Q.BOOLEAN,value:!1});case"null":return this.node(n,{kind:Q.NULL});default:return this.node(n,{kind:Q.ENUM,value:n.value})}case Be.DOLLAR:if(t)if(this.expectToken(Be.DOLLAR),this._lexer.token.kind===Be.NAME){const r=this._lexer.token.value;throw gi(this._lexer.source,n.start,`Unexpected variable "$${r}" in constant value.`)}else throw this.unexpected(n);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:Q.STRING,value:t.value,block:t.kind===Be.BLOCK_STRING})}parseList(t){const n=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:Q.LIST,values:this.any(Be.BRACKET_L,n,Be.BRACKET_R)})}parseObject(t){const n=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:Q.OBJECT,fields:this.any(Be.BRACE_L,n,Be.BRACE_R)})}parseObjectField(t){const n=this._lexer.token,r=this.parseName();return this.expectToken(Be.COLON),this.node(n,{kind:Q.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){const n=[];for(;this.peek(Be.AT);)n.push(this.parseDirective(t));return n}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const n=this._lexer.token;return this.expectToken(Be.AT),this.node(n,{kind:Q.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let n;if(this.expectOptionalToken(Be.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(Be.BRACKET_R),n=this.node(t,{kind:Q.LIST_TYPE,type:r})}else n=this.parseNamedType();return this.expectOptionalToken(Be.BANG)?this.node(t,{kind:Q.NON_NULL_TYPE,type:n}):n}parseNamedType(){return this.node(this._lexer.token,{kind:Q.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(Be.STRING)||this.peek(Be.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(Be.BRACE_L,this.parseOperationTypeDefinition,Be.BRACE_R);return this.node(t,{kind:Q.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:i})}parseOperationTypeDefinition(){const t=this._lexer.token,n=this.parseOperationType();this.expectToken(Be.COLON);const r=this.parseNamedType();return this.node(t,{kind:Q.OPERATION_TYPE_DEFINITION,operation:n,type:r})}parseScalarTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName(),i=this.parseConstDirectives();return this.node(t,{kind:Q.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:i})}parseObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("type");const r=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:Q.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:o,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(Be.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(Be.BRACE_L,this.parseFieldDefinition,Be.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(Be.COLON);const o=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(t,{kind:Q.FIELD_DEFINITION,description:n,name:r,arguments:i,type:o,directives:a})}parseArgumentDefs(){return this.optionalMany(Be.PAREN_L,this.parseInputValueDef,Be.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(Be.COLON);const i=this.parseTypeReference();let o;this.expectOptionalToken(Be.EQUALS)&&(o=this.parseConstValueLiteral());const a=this.parseConstDirectives();return this.node(t,{kind:Q.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:o,directives:a})}parseInterfaceTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("interface");const r=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(t,{kind:Q.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:o,fields:a})}parseUnionTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("union");const r=this.parseName(),i=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(t,{kind:Q.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(Be.EQUALS)?this.delimitedMany(Be.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("enum");const r=this.parseName(),i=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(t,{kind:Q.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:o})}parseEnumValuesDefinition(){return this.optionalMany(Be.BRACE_L,this.parseEnumValueDefinition,Be.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,n=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:Q.ENUM_VALUE_DEFINITION,description:n,name:r,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw gi(this._lexer.source,this._lexer.token.start,`${Fg(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("input");const r=this.parseName(),i=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(t,{kind:Q.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(Be.BRACE_L,this.parseInputValueDef,Be.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===Be.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(Be.BRACE_L,this.parseOperationTypeDefinition,Be.BRACE_R);if(n.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:Q.SCHEMA_EXTENSION,directives:n,operationTypes:r})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(t,{kind:Q.SCALAR_TYPE_EXTENSION,name:n,directives:r})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:Q.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:o})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:Q.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:Q.UNION_TYPE_EXTENSION,name:n,directives:r,types:i})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:Q.ENUM_TYPE_EXTENSION,name:n,directives:r,values:i})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:Q.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:i})}parseDirectiveDefinition(){const t=this._lexer.token,n=this.parseDescription();this.expectKeyword("directive"),this.expectToken(Be.AT);const r=this.parseName(),i=this.parseArgumentDefs(),o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const a=this.parseDirectiveLocations();return this.node(t,{kind:Q.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:o,locations:a})}parseDirectiveLocations(){return this.delimitedMany(Be.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,n=this.parseName();if(Object.prototype.hasOwnProperty.call(at,n.value))return n;throw this.unexpected(t)}node(t,n){return this._options.noLocation!==!0&&(n.loc=new Jw(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 gi(this._lexer.source,n.start,`Expected ${fC(t)}, found ${Fg(n)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){const n=this._lexer.token;if(n.kind===Be.NAME&&n.value===t)this.advanceLexer();else throw gi(this._lexer.source,n.start,`Expected "${t}", found ${Fg(n)}.`)}expectOptionalKeyword(t){const n=this._lexer.token;return n.kind===Be.NAME&&n.value===t?(this.advanceLexer(),!0):!1}unexpected(t){const n=t??this._lexer.token;return gi(this._lexer.source,n.start,`Unexpected ${Fg(n)}.`)}any(t,n,r){this.expectToken(t);const i=[];for(;!this.expectOptionalToken(r);)i.push(n.call(this));return i}optionalMany(t,n,r){if(this.expectOptionalToken(t)){const i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}return[]}many(t,n,r){this.expectToken(t);const i=[];do i.push(n.call(this));while(!this.expectOptionalToken(r));return i}delimitedMany(t,n){this.expectOptionalToken(t);const r=[];do r.push(n.call(this));while(this.expectOptionalToken(t));return r}advanceLexer(){const{maxTokens:t}=this._options,n=this._lexer.advance();if(n.kind!==Be.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw gi(this._lexer.source,n.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function Fg(e){const t=e.value;return fC(e.kind)+(t!=null?` "${t}"`:"")}function fC(e){return iC(e)?`"${e}"`:e}const qI=5;function _u(e,t){const[n,r]=t?[e,t]:[void 0,e];let i=" Did you mean ";n&&(i+=n+" ");const o=r.map(f=>`"${f}"`);switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}const a=o.slice(0,qI),l=a.pop();return i+a.join(", ")+", or "+l+"?"}function dC(e){return e}function Au(e,t){const n=Object.create(null);for(const r of e)n[t(r)]=r;return n}function dl(e,t,n){const r=Object.create(null);for(const i of e)r[t(i)]=n(i);return r}function Du(e,t){const n=Object.create(null);for(const r of Object.keys(e))n[r]=t(e[r],r);return n}function Rp(e,t){let n=0,r=0;for(;n<e.length&&r<t.length;){let i=e.charCodeAt(n),o=t.charCodeAt(r);if(Pg(i)&&Pg(o)){let a=0;do++n,a=a*10+i-a2,i=e.charCodeAt(n);while(Pg(i)&&a>0);let l=0;do++r,l=l*10+o-a2,o=t.charCodeAt(r);while(Pg(o)&&l>0);if(a<l)return-1;if(a>l)return 1}else{if(i<o)return-1;if(i>o)return 1;++n,++r}}return e.length-t.length}const a2=48,GI=57;function Pg(e){return!isNaN(e)&&a2<=e&&e<=GI}function hl(e,t){const n=Object.create(null),r=new WI(e),i=Math.floor(e.length*.4)+1;for(const o of t){const a=r.measure(o,i);a!==void 0&&(n[o]=a)}return Object.keys(n).sort((o,a)=>{const l=n[o]-n[a];return l!==0?l:Rp(o,a)})}class WI{constructor(t){this._input=t,this._inputLowerCase=t.toLowerCase(),this._inputArray=hC(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=hC(r),o=this._inputArray;if(i.length<o.length){const p=i;i=o,o=p}const a=i.length,l=o.length;if(a-l>n)return;const f=this._rows;for(let p=0;p<=l;p++)f[0][p]=p;for(let p=1;p<=a;p++){const b=f[(p-1)%3],v=f[p%3];let x=v[0]=p;for(let S=1;S<=l;S++){const w=i[p-1]===o[S-1]?0:1;let k=Math.min(b[S]+1,v[S-1]+1,b[S-1]+w);if(p>1&&S>1&&i[p-1]===o[S-2]&&i[p-2]===o[S-1]){const _=f[(p-2)%3][S-2];k=Math.min(k,_+1)}k<x&&(x=k),v[S]=k}if(x>n)return}const h=f[a%3][l];return h<=n?h:void 0}}function hC(e){const t=e.length,n=new Array(t);for(let r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}function xs(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 YI(e){return`"${e.replace(QI,KI)}"`}const QI=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function KI(e){return XI[e.charCodeAt(0)]}const XI=["\\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"],Uc=Object.freeze({});function Cr(e,t,n=eC){const r=new Map;for(const _ of Object.values(Q))r.set(_,yd(t,_));let i,o=Array.isArray(e),a=[e],l=-1,f=[],h=e,p,b;const v=[],x=[];do{l++;const _=l===a.length,N=_&&f.length!==0;if(_){if(p=x.length===0?void 0:v[v.length-1],h=b,b=x.pop(),N)if(o){h=h.slice();let A=0;for(const[L,P]of f){const j=L-A;P===null?(h.splice(j,1),A++):h[j]=P}}else{h={...h};for(const[A,L]of f)h[A]=L}l=i.index,a=i.keys,f=i.edits,o=i.inArray,i=i.prev}else if(b){if(p=o?l:a[l],h=b[p],h==null)continue;v.push(p)}let O;if(!Array.isArray(h)){var S,w;n2(h)||rn(!1,`Invalid AST Node: ${Ue(h)}.`);const A=_?(S=r.get(h.kind))===null||S===void 0?void 0:S.leave:(w=r.get(h.kind))===null||w===void 0?void 0:w.enter;if(O=A==null?void 0:A.call(t,h,p,b,v,x),O===Uc)break;if(O===!1){if(!_){v.pop();continue}}else if(O!==void 0&&(f.push([p,O]),!_))if(n2(O))h=O;else{v.pop();continue}}if(O===void 0&&N&&f.push([p,h]),_)v.pop();else{var k;i={inArray:o,index:l,keys:a,edits:f,prev:i},o=Array.isArray(h),a=o?h:(k=n[h.kind])!==null&&k!==void 0?k:[],l=-1,f=[],b&&x.push(b),b=h}}while(i!==void 0);return f.length!==0?f[f.length-1][1]:e}function u2(e){const t=new Array(e.length).fill(null),n=Object.create(null);for(const r of Object.values(Q)){let i=!1;const o=new Array(e.length).fill(void 0),a=new Array(e.length).fill(void 0);for(let f=0;f<e.length;++f){const{enter:h,leave:p}=yd(e[f],r);i||(i=h!=null||p!=null),o[f]=h,a[f]=p}if(!i)continue;const l={enter(...f){const h=f[0];for(let b=0;b<e.length;b++)if(t[b]===null){var p;const v=(p=o[b])===null||p===void 0?void 0:p.apply(e[b],f);if(v===!1)t[b]=h;else if(v===Uc)t[b]=Uc;else if(v!==void 0)return v}},leave(...f){const h=f[0];for(let b=0;b<e.length;b++)if(t[b]===null){var p;const v=(p=a[b])===null||p===void 0?void 0:p.apply(e[b],f);if(v===Uc)t[b]=Uc;else if(v!==void 0&&v!==!1)return v}else t[b]===h&&(t[b]=null)}};n[r]=l}return n}function yd(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 ZI(e,t,n){const{enter:r,leave:i}=yd(e,t);return n?i:r}function mn(e){return Cr(e,eF)}const JI=80,eF={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>bt(e.definitions,`
`)},OperationDefinition:{leave(e){const t=gn("(",bt(e.variableDefinitions,", "),")"),n=bt([e.operation,bt([e.name,t]),bt(e.directives," ")]," ");return(n==="query"?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+gn(" = ",n)+gn(" ",bt(r," "))},SelectionSet:{leave:({selections:e})=>ta(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=gn("",e,": ")+t;let a=o+gn("(",bt(n,", "),")");return a.length>JI&&(a=o+gn(`(
`,jg(bt(n,`
`)),`
)`)),bt([a,bt(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+gn(" ",bt(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>bt(["...",gn("on ",e),bt(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${gn("(",bt(n,", "),")")} on ${t} ${gn("",bt(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?rC(e):YI(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+gn("(",bt(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>gn("",e,`
`)+bt(["schema",bt(t," "),ta(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>gn("",e,`
`)+bt(["scalar",t,bt(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>gn("",e,`
`)+bt(["type",t,gn("implements ",bt(n," & ")),bt(r," "),ta(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>gn("",e,`
`)+t+(pC(n)?gn(`(
`,jg(bt(n,`
`)),`
)`):gn("(",bt(n,", "),")"))+": "+r+gn(" ",bt(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>gn("",e,`
`)+bt([t+": "+n,gn("= ",r),bt(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>gn("",e,`
`)+bt(["interface",t,gn("implements ",bt(n," & ")),bt(r," "),ta(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>gn("",e,`
`)+bt(["union",t,bt(n," "),gn("= ",bt(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>gn("",e,`
`)+bt(["enum",t,bt(n," "),ta(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>gn("",e,`
`)+bt([t,bt(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>gn("",e,`
`)+bt(["input",t,bt(n," "),ta(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>gn("",e,`
`)+"directive @"+t+(pC(n)?gn(`(
`,jg(bt(n,`
`)),`
)`):gn("(",bt(n,", "),")"))+(r?" repeatable":"")+" on "+bt(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>bt(["extend schema",bt(e," "),ta(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,gn("implements ",bt(t," & ")),bt(n," "),ta(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>bt(["extend interface",e,gn("implements ",bt(t," & ")),bt(n," "),ta(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>bt(["extend union",e,bt(t," "),gn("= ",bt(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>bt(["extend enum",e,bt(t," "),ta(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>bt(["extend input",e,bt(t," "),ta(n)]," ")}};function bt(e,t=""){var n;return(n=e==null?void 0:e.filter(r=>r).join(t))!==null&&n!==void 0?n:""}function ta(e){return gn(`{
`,jg(bt(e,`
`)),`
}`)}function gn(e,t,n=""){return t!=null&&t!==""?e+t+n:""}function jg(e){return gn(" ",e.replace(/\n/g,`
`))}function pC(e){var t;return(t=e==null?void 0:e.some(n=>n.includes(`
`)))!==null&&t!==void 0?t:!1}function Vg(e,t){switch(e.kind){case Q.NULL:return null;case Q.INT:return parseInt(e.value,10);case Q.FLOAT:return parseFloat(e.value);case Q.STRING:case Q.ENUM:case Q.BOOLEAN:return e.value;case Q.LIST:return e.values.map(n=>Vg(n,t));case Q.OBJECT:return dl(e.fields,n=>n.name.value,n=>Vg(n.value,t));case Q.VARIABLE:return t==null?void 0:t[e.name.value]}}function rs(e){if(e!=null||rn(!1,"Must provide name."),typeof e=="string"||rn(!1,"Expected name to be a string."),e.length===0)throw new Fe("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!nC(e.charCodeAt(t)))throw new Fe(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!i2(e.charCodeAt(0)))throw new Fe(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function mC(e){if(e==="true"||e==="false"||e==="null")throw new Fe(`Enum values cannot be named: ${e}`);return rs(e)}function bd(e){return qi(e)||_t(e)||Ot(e)||lr(e)||Xn(e)||sn(e)||vn(e)||wt(e)}function tF(e){if(!bd(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL type.`);return e}function qi(e){return ea(e,Ts)}function nF(e){if(!qi(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL Scalar type.`);return e}function _t(e){return ea(e,bi)}function gC(e){if(!_t(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL Object type.`);return e}function Ot(e){return ea(e,To)}function vC(e){if(!Ot(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL Interface type.`);return e}function lr(e){return ea(e,gl)}function rF(e){if(!lr(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL Union type.`);return e}function Xn(e){return ea(e,co)}function iF(e){if(!Xn(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL Enum type.`);return e}function sn(e){return ea(e,So)}function oF(e){if(!sn(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL Input Object type.`);return e}function vn(e){return ea(e,fr)}function sF(e){if(!vn(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL List type.`);return e}function wt(e){return ea(e,Ft)}function aF(e){if(!wt(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL Non-Null type.`);return e}function Gi(e){return qi(e)||Xn(e)||sn(e)||Mp(e)&&Gi(e.ofType)}function uF(e){if(!Gi(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL input type.`);return e}function Nu(e){return qi(e)||_t(e)||Ot(e)||lr(e)||Xn(e)||Mp(e)&&Nu(e.ofType)}function lF(e){if(!Nu(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL output type.`);return e}function yi(e){return qi(e)||Xn(e)}function cF(e){if(!yi(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL leaf type.`);return e}function si(e){return _t(e)||Ot(e)||lr(e)}function fF(e){if(!si(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL composite type.`);return e}function cr(e){return Ot(e)||lr(e)}function yC(e){if(!cr(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL abstract type.`);return e}class fr{constructor(t){bd(t)||rn(!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 Ft{constructor(t){Lp(t)||rn(!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 Mp(e){return vn(e)||wt(e)}function dF(e){if(!Mp(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL wrapping type.`);return e}function Lp(e){return bd(e)&&!wt(e)}function bC(e){if(!Lp(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL nullable type.`);return e}function pl(e){if(e)return wt(e)?e.ofType:e}function Ou(e){return qi(e)||_t(e)||Ot(e)||lr(e)||Xn(e)||sn(e)}function hF(e){if(!Ou(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL named type.`);return e}function yn(e){if(e){let t=e;for(;Mp(t);)t=t.ofType;return t}}function l2(e){return typeof e=="function"?e():e}function c2(e){return typeof e=="function"?e():e}class Ts{constructor(t){var n,r,i,o;const a=(n=t.parseValue)!==null&&n!==void 0?n:dC;this.name=rs(t.name),this.description=t.description,this.specifiedByURL=t.specifiedByURL,this.serialize=(r=t.serialize)!==null&&r!==void 0?r:dC,this.parseValue=a,this.parseLiteral=(i=t.parseLiteral)!==null&&i!==void 0?i:(l,f)=>a(Vg(l,f)),this.extensions=xs(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(o=t.extensionASTNodes)!==null&&o!==void 0?o:[],t.specifiedByURL==null||typeof t.specifiedByURL=="string"||rn(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${Ue(t.specifiedByURL)}.`),t.serialize==null||typeof t.serialize=="function"||rn(!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"||rn(!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 bi{constructor(t){var n;this.name=rs(t.name),this.description=t.description,this.isTypeOf=t.isTypeOf,this.extensions=xs(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=()=>xC(t),this._interfaces=()=>EC(t),t.isTypeOf==null||typeof t.isTypeOf=="function"||rn(!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:SC(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}function EC(e){var t;const n=l2((t=e.interfaces)!==null&&t!==void 0?t:[]);return Array.isArray(n)||rn(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function xC(e){const t=c2(e.fields);return Ed(t)||rn(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),Du(t,(n,r)=>{var i;Ed(n)||rn(!1,`${e.name}.${r} field config must be an object.`),n.resolve==null||typeof n.resolve=="function"||rn(!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 Ed(o)||rn(!1,`${e.name}.${r} args must be an object with argument names as keys.`),{name:rs(r),description:n.description,type:n.type,args:TC(o),resolve:n.resolve,subscribe:n.subscribe,deprecationReason:n.deprecationReason,extensions:xs(n.extensions),astNode:n.astNode}})}function TC(e){return Object.entries(e).map(([t,n])=>({name:rs(t),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:xs(n.extensions),astNode:n.astNode}))}function Ed(e){return ns(e)&&!Array.isArray(e)}function SC(e){return Du(e,t=>({description:t.description,type:t.type,args:wC(t.args),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function wC(e){return dl(e,t=>t.name,t=>({description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:t.extensions,astNode:t.astNode}))}function ml(e){return wt(e.type)&&e.defaultValue===void 0}class To{constructor(t){var n;this.name=rs(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=xs(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._fields=xC.bind(void 0,t),this._interfaces=EC.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||rn(!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:SC(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}}class gl{constructor(t){var n;this.name=rs(t.name),this.description=t.description,this.resolveType=t.resolveType,this.extensions=xs(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._types=pF.bind(void 0,t),t.resolveType==null||typeof t.resolveType=="function"||rn(!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 pF(e){const t=l2(e.types);return Array.isArray(t)||rn(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}class co{constructor(t){var n;this.name=rs(t.name),this.description=t.description,this.extensions=xs(t.extensions),this.astNode=t.astNode,this.extensionASTNodes=(n=t.extensionASTNodes)!==null&&n!==void 0?n:[],this._values=typeof t.values=="function"?t.values:CC(this.name,t.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return typeof this._values=="function"&&(this._values=CC(this.name,this._values())),this._values}getValue(t){return this._nameLookup===null&&(this._nameLookup=Au(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 Fe(`Enum "${this.name}" cannot represent value: ${Ue(t)}`);return n.name}parseValue(t){if(typeof t!="string"){const r=Ue(t);throw new Fe(`Enum "${this.name}" cannot represent non-string value: ${r}.`+Bg(this,r))}const n=this.getValue(t);if(n==null)throw new Fe(`Value "${t}" does not exist in "${this.name}" enum.`+Bg(this,t));return n.value}parseLiteral(t,n){if(t.kind!==Q.ENUM){const i=mn(t);throw new Fe(`Enum "${this.name}" cannot represent non-enum value: ${i}.`+Bg(this,i),{nodes:t})}const r=this.getValue(t.value);if(r==null){const i=mn(t);throw new Fe(`Value "${i}" does not exist in "${this.name}" enum.`+Bg(this,i),{nodes:t})}return r.value}toConfig(){const t=dl(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 Bg(e,t){const n=e.getValues().map(i=>i.name),r=hl(t,n);return _u("the enum value",r)}function CC(e,t){return Ed(t)||rn(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([n,r])=>(Ed(r)||rn(!1,`${e}.${n} must refer to an object with a "value" key representing an internal value but got: ${Ue(r)}.`),{name:mC(n),description:r.description,value:r.value!==void 0?r.value:n,deprecationReason:r.deprecationReason,extensions:xs(r.extensions),astNode:r.astNode}))}class So{constructor(t){var n,r;this.name=rs(t.name),this.description=t.description,this.extensions=xs(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=mF.bind(void 0,t)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return typeof this._fields=="function"&&(this._fields=this._fields()),this._fields}toConfig(){const t=Du(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 mF(e){const t=c2(e.fields);return Ed(t)||rn(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),Du(t,(n,r)=>(!("resolve"in n)||rn(!1,`${e.name}.${r} field has a resolve property, but Input Types cannot define resolvers.`),{name:rs(r),description:n.description,type:n.type,defaultValue:n.defaultValue,deprecationReason:n.deprecationReason,extensions:xs(n.extensions),astNode:n.astNode}))}function $g(e){return wt(e.type)&&e.defaultValue===void 0}function Ug(e,t){return e===t?!0:wt(e)&&wt(t)||vn(e)&&vn(t)?Ug(e.ofType,t.ofType):!1}function Hc(e,t,n){return t===n?!0:wt(n)?wt(t)?Hc(e,t.ofType,n.ofType):!1:wt(t)?Hc(e,t.ofType,n):vn(n)?vn(t)?Hc(e,t.ofType,n.ofType):!1:vn(t)?!1:cr(n)&&(Ot(t)||_t(t))&&e.isSubType(n,t)}function Ip(e,t,n){return t===n?!0:cr(t)?cr(n)?e.getPossibleTypes(t).some(r=>e.isSubType(n,r)):e.isSubType(t,n):cr(n)?e.isSubType(n,t):!1}const Hg=2147483647,zg=-2147483648,Fp=new Ts({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=$p(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 Fe(`Int cannot represent non-integer value: ${Ue(t)}`);if(n>Hg||n<zg)throw new Fe("Int cannot represent non 32-bit signed integer value: "+Ue(t));return n},parseValue(e){if(typeof e!="number"||!Number.isInteger(e))throw new Fe(`Int cannot represent non-integer value: ${Ue(e)}`);if(e>Hg||e<zg)throw new Fe(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==Q.INT)throw new Fe(`Int cannot represent non-integer value: ${mn(e)}`,{nodes:e});const t=parseInt(e.value,10);if(t>Hg||t<zg)throw new Fe(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),Pp=new Ts({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=$p(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 Fe(`Float cannot represent non numeric value: ${Ue(t)}`);return n},parseValue(e){if(typeof e!="number"||!Number.isFinite(e))throw new Fe(`Float cannot represent non numeric value: ${Ue(e)}`);return e},parseLiteral(e){if(e.kind!==Q.FLOAT&&e.kind!==Q.INT)throw new Fe(`Float cannot represent non numeric value: ${mn(e)}`,e);return parseFloat(e.value)}}),nr=new Ts({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=$p(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 Fe(`String cannot represent value: ${Ue(e)}`)},parseValue(e){if(typeof e!="string")throw new Fe(`String cannot represent a non string value: ${Ue(e)}`);return e},parseLiteral(e){if(e.kind!==Q.STRING)throw new Fe(`String cannot represent a non string value: ${mn(e)}`,{nodes:e});return e.value}}),rr=new Ts({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const t=$p(e);if(typeof t=="boolean")return t;if(Number.isFinite(t))return t!==0;throw new Fe(`Boolean cannot represent a non boolean value: ${Ue(t)}`)},parseValue(e){if(typeof e!="boolean")throw new Fe(`Boolean cannot represent a non boolean value: ${Ue(e)}`);return e},parseLiteral(e){if(e.kind!==Q.BOOLEAN)throw new Fe(`Boolean cannot represent a non boolean value: ${mn(e)}`,{nodes:e});return e.value}}),jp=new Ts({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=$p(e);if(typeof t=="string")return t;if(Number.isInteger(t))return String(t);throw new Fe(`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 Fe(`ID cannot represent value: ${Ue(e)}`)},parseLiteral(e){if(e.kind!==Q.STRING&&e.kind!==Q.INT)throw new Fe("ID cannot represent a non-string and non-integer value: "+mn(e),{nodes:e});return e.value}}),Vp=Object.freeze([nr,Fp,Pp,rr,jp]);function Bp(e){return Vp.some(({name:t})=>e.name===t)}function $p(e){if(ns(e)){if(typeof e.valueOf=="function"){const t=e.valueOf();if(!ns(t))return t}if(typeof e.toJSON=="function")return e.toJSON()}return e}function qg(e){return ea(e,jo)}function gF(e){if(!qg(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL directive.`);return e}class jo{constructor(t){var n,r;this.name=rs(t.name),this.description=t.description,this.locations=t.locations,this.isRepeatable=(n=t.isRepeatable)!==null&&n!==void 0?n:!1,this.extensions=xs(t.extensions),this.astNode=t.astNode,Array.isArray(t.locations)||rn(!1,`@${t.name} locations must be an Array.`);const i=(r=t.args)!==null&&r!==void 0?r:{};ns(i)&&!Array.isArray(i)||rn(!1,`@${t.name} args must be an object with argument names as keys.`),this.args=TC(i)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:wC(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}}const Gg=new jo({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[at.FIELD,at.FRAGMENT_SPREAD,at.INLINE_FRAGMENT],args:{if:{type:new Ft(rr),description:"Included when true."}}}),Wg=new jo({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[at.FIELD,at.FRAGMENT_SPREAD,at.INLINE_FRAGMENT],args:{if:{type:new Ft(rr),description:"Skipped when true."}}}),f2="No longer supported",Yg=new jo({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[at.FIELD_DEFINITION,at.ARGUMENT_DEFINITION,at.INPUT_FIELD_DEFINITION,at.ENUM_VALUE],args:{reason:{type:nr,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:f2}}}),d2=new jo({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[at.SCALAR],args:{url:{type:new Ft(nr),description:"The URL that specifies the behavior of this scalar."}}}),h2=new jo({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[at.INPUT_OBJECT],args:{}}),vl=Object.freeze([Gg,Wg,Yg,d2,h2]);function Qg(e){return vl.some(({name:t})=>t===e.name)}function p2(e){return typeof e=="object"&&typeof(e==null?void 0:e[Symbol.iterator])=="function"}function ku(e,t){if(wt(t)){const n=ku(e,t.ofType);return(n==null?void 0:n.kind)===Q.NULL?null:n}if(e===null)return{kind:Q.NULL};if(e===void 0)return null;if(vn(t)){const n=t.ofType;if(p2(e)){const r=[];for(const i of e){const o=ku(i,n);o!=null&&r.push(o)}return{kind:Q.LIST,values:r}}return ku(e,n)}if(sn(t)){if(!ns(e))return null;const n=[];for(const r of Object.values(t.getFields())){const i=ku(e[r.name],r.type);i&&n.push({kind:Q.OBJECT_FIELD,name:{kind:Q.NAME,value:r.name},value:i})}return{kind:Q.OBJECT,fields:n}}if(yi(t)){const n=t.serialize(e);if(n==null)return null;if(typeof n=="boolean")return{kind:Q.BOOLEAN,value:n};if(typeof n=="number"&&Number.isFinite(n)){const r=String(n);return _C.test(r)?{kind:Q.INT,value:r}:{kind:Q.FLOAT,value:r}}if(typeof n=="string")return Xn(t)?{kind:Q.ENUM,value:n}:t===jp&&_C.test(n)?{kind:Q.INT,value:n}:{kind:Q.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${Ue(n)}.`)}Gr(!1,"Unexpected input type: "+Ue(t))}const _C=/^-?(?:0|[1-9][0-9]*)$/,Kg=new bi({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:nr,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new Ft(new fr(new Ft(Ss))),resolve(e){return Object.values(e.getTypeMap())}},queryType:{description:"The type that query operations will be rooted at.",type:new Ft(Ss),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:Ss,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:Ss,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new Ft(new fr(new Ft(m2))),resolve:e=>e.getDirectives()}})}),m2=new bi({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 Ft(nr),resolve:e=>e.name},description:{type:nr,resolve:e=>e.description},isRepeatable:{type:new Ft(rr),resolve:e=>e.isRepeatable},locations:{type:new Ft(new fr(new Ft(g2))),resolve:e=>e.locations},args:{type:new Ft(new fr(new Ft(Up))),args:{includeDeprecated:{type:rr,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}}})}),g2=new co({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:at.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:at.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:at.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:at.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:at.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:at.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:at.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:at.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:at.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:at.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:at.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:at.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:at.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:at.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:at.UNION,description:"Location adjacent to a union definition."},ENUM:{value:at.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:at.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:at.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:at.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),Ss=new bi({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 Ft(b2),resolve(e){if(qi(e))return Hn.SCALAR;if(_t(e))return Hn.OBJECT;if(Ot(e))return Hn.INTERFACE;if(lr(e))return Hn.UNION;if(Xn(e))return Hn.ENUM;if(sn(e))return Hn.INPUT_OBJECT;if(vn(e))return Hn.LIST;if(wt(e))return Hn.NON_NULL;Gr(!1,`Unexpected type: "${Ue(e)}".`)}},name:{type:nr,resolve:e=>"name"in e?e.name:void 0},description:{type:nr,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:nr,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new fr(new Ft(v2)),args:{includeDeprecated:{type:rr,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(_t(e)||Ot(e)){const n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},interfaces:{type:new fr(new Ft(Ss)),resolve(e){if(_t(e)||Ot(e))return e.getInterfaces()}},possibleTypes:{type:new fr(new Ft(Ss)),resolve(e,t,n,{schema:r}){if(cr(e))return r.getPossibleTypes(e)}},enumValues:{type:new fr(new Ft(y2)),args:{includeDeprecated:{type:rr,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(Xn(e)){const n=e.getValues();return t?n:n.filter(r=>r.deprecationReason==null)}}},inputFields:{type:new fr(new Ft(Up)),args:{includeDeprecated:{type:rr,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(sn(e)){const n=Object.values(e.getFields());return t?n:n.filter(r=>r.deprecationReason==null)}}},ofType:{type:Ss,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:rr,resolve:e=>{if(sn(e))return e.isOneOf}}})}),v2=new bi({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 Ft(nr),resolve:e=>e.name},description:{type:nr,resolve:e=>e.description},args:{type:new Ft(new fr(new Ft(Up))),args:{includeDeprecated:{type:rr,defaultValue:!1}},resolve(e,{includeDeprecated:t}){return t?e.args:e.args.filter(n=>n.deprecationReason==null)}},type:{type:new Ft(Ss),resolve:e=>e.type},isDeprecated:{type:new Ft(rr),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:nr,resolve:e=>e.deprecationReason}})}),Up=new bi({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 Ft(nr),resolve:e=>e.name},description:{type:nr,resolve:e=>e.description},type:{type:new Ft(Ss),resolve:e=>e.type},defaultValue:{type:nr,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:n}=e,r=ku(n,t);return r?mn(r):null}},isDeprecated:{type:new Ft(rr),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:nr,resolve:e=>e.deprecationReason}})}),y2=new bi({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 Ft(nr),resolve:e=>e.name},description:{type:nr,resolve:e=>e.description},isDeprecated:{type:new Ft(rr),resolve:e=>e.deprecationReason!=null},deprecationReason:{type:nr,resolve:e=>e.deprecationReason}})});var Hn;(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"})(Hn||(Hn={}));const b2=new co({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:Hn.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:Hn.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:Hn.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:Hn.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:Hn.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:Hn.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:Hn.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:Hn.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),ws={name:"__schema",type:new Ft(Kg),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},Cs={name:"__type",type:Ss,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new Ft(nr),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},_s={name:"__typename",type:new Ft(nr),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},Hp=Object.freeze([Kg,m2,g2,Ss,v2,Up,y2,b2]);function zc(e){return Hp.some(({name:t})=>e.name===t)}function Xg(e){return ea(e,qc)}function E2(e){if(!Xg(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL schema.`);return e}class qc{constructor(t){var n,r;this.__validationErrors=t.assumeValid===!0?[]:void 0,ns(t)||rn(!1,"Must provide configuration object."),!t.types||Array.isArray(t.types)||rn(!1,`"types" must be Array if provided but got: ${Ue(t.types)}.`),!t.directives||Array.isArray(t.directives)||rn(!1,`"directives" must be Array if provided but got: ${Ue(t.directives)}.`),this.description=t.description,this.extensions=xs(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:vl;const i=new Set(t.types);if(t.types!=null)for(const o of t.types)i.delete(o),na(o,i);this._queryType!=null&&na(this._queryType,i),this._mutationType!=null&&na(this._mutationType,i),this._subscriptionType!=null&&na(this._subscriptionType,i);for(const o of this._directives)if(qg(o))for(const a of o.args)na(a.type,i);na(Kg,i),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const o of i){if(o==null)continue;const a=o.name;if(a||rn(!1,"One of the provided types for building the Schema is missing a name."),this._typeMap[a]!==void 0)throw new Error(`Schema must contain uniquely named types but contains multiple types named "${a}".`);if(this._typeMap[a]=o,Ot(o)){for(const l of o.getInterfaces())if(Ot(l)){let f=this._implementationsMap[l.name];f===void 0&&(f=this._implementationsMap[l.name]={objects:[],interfaces:[]}),f.interfaces.push(o)}}else if(_t(o)){for(const l of o.getInterfaces())if(Ot(l)){let f=this._implementationsMap[l.name];f===void 0&&(f=this._implementationsMap[l.name]={objects:[],interfaces:[]}),f.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 vi.QUERY:return this.getQueryType();case vi.MUTATION:return this.getMutationType();case vi.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(t){return this.getTypeMap()[t]}getPossibleTypes(t){return lr(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),lr(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 na(e,t){const n=yn(e);if(!t.has(n)){if(t.add(n),lr(n))for(const r of n.getTypes())na(r,t);else if(_t(n)||Ot(n)){for(const r of n.getInterfaces())na(r,t);for(const r of Object.values(n.getFields())){na(r.type,t);for(const i of r.args)na(i.type,t)}}else if(sn(n))for(const r of Object.values(n.getFields()))na(r.type,t)}return t}function Zg(e){if(E2(e),e.__validationErrors)return e.__validationErrors;const t=new vF(e);yF(t),bF(t),EF(t);const n=t.getErrors();return e.__validationErrors=n,n}function Jg(e){const t=Zg(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(`
`))}class vF{constructor(t){this._errors=[],this.schema=t}reportError(t,n){const r=Array.isArray(n)?n.filter(Boolean):n;this._errors.push(new Fe(t,{nodes:r}))}getErrors(){return this._errors}}function yF(e){const t=e.schema,n=t.getQueryType();if(!n)e.reportError("Query root type must be provided.",t.astNode);else if(!_t(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${Ue(n)}.`,(r=x2(t,vi.QUERY))!==null&&r!==void 0?r:n.astNode)}const i=t.getMutationType();if(i&&!_t(i)){var o;e.reportError(`Mutation root type must be Object type if provided, it cannot be ${Ue(i)}.`,(o=x2(t,vi.MUTATION))!==null&&o!==void 0?o:i.astNode)}const a=t.getSubscriptionType();if(a&&!_t(a)){var l;e.reportError(`Subscription root type must be Object type if provided, it cannot be ${Ue(a)}.`,(l=x2(t,vi.SUBSCRIPTION))!==null&&l!==void 0?l:a.astNode)}}function x2(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 bF(e){for(const n of e.schema.getDirectives()){if(!qg(n)){e.reportError(`Expected directive but got: ${Ue(n)}.`,n==null?void 0:n.astNode);continue}Gc(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(Gc(e,r),Gi(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${Ue(r.type)}.`,r.astNode),ml(r)&&r.deprecationReason!=null){var t;e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[T2(r.astNode),(t=r.astNode)===null||t===void 0?void 0:t.type])}}}function Gc(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function EF(e){const t=AF(e),n=e.schema.getTypeMap();for(const r of Object.values(n)){if(!Ou(r)){e.reportError(`Expected GraphQL named type but got: ${Ue(r)}.`,r.astNode);continue}zc(r)||Gc(e,r),_t(r)||Ot(r)?(AC(e,r),DC(e,r)):lr(r)?SF(e,r):Xn(r)?wF(e,r):sn(r)&&(CF(e,r),t(r))}}function AC(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 a of n){if(Gc(e,a),!Nu(a.type)){var r;e.reportError(`The type of ${t.name}.${a.name} must be Output Type but got: ${Ue(a.type)}.`,(r=a.astNode)===null||r===void 0?void 0:r.type)}for(const l of a.args){const f=l.name;if(Gc(e,l),!Gi(l.type)){var i;e.reportError(`The type of ${t.name}.${a.name}(${f}:) must be Input Type but got: ${Ue(l.type)}.`,(i=l.astNode)===null||i===void 0?void 0:i.type)}if(ml(l)&&l.deprecationReason!=null){var o;e.reportError(`Required argument ${t.name}.${a.name}(${f}:) cannot be deprecated.`,[T2(l.astNode),(o=l.astNode)===null||o===void 0?void 0:o.type])}}}}function DC(e,t){const n=Object.create(null);for(const r of t.getInterfaces()){if(!Ot(r)){e.reportError(`Type ${Ue(t)} must only implement Interface types, it cannot implement ${Ue(r)}.`,zp(t,r));continue}if(t===r){e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,zp(t,r));continue}if(n[r.name]){e.reportError(`Type ${t.name} can only implement ${r.name} once.`,zp(t,r));continue}n[r.name]=!0,TF(e,t,r),xF(e,t,r)}}function xF(e,t,n){const r=t.getFields();for(const f of Object.values(n.getFields())){const h=f.name,p=r[h];if(!p){e.reportError(`Interface field ${n.name}.${h} expected but ${t.name} does not provide it.`,[f.astNode,t.astNode,...t.extensionASTNodes]);continue}if(!Hc(e.schema,p.type,f.type)){var i,o;e.reportError(`Interface field ${n.name}.${h} expects type ${Ue(f.type)} but ${t.name}.${h} is type ${Ue(p.type)}.`,[(i=f.astNode)===null||i===void 0?void 0:i.type,(o=p.astNode)===null||o===void 0?void 0:o.type])}for(const b of f.args){const v=b.name,x=p.args.find(S=>S.name===v);if(!x){e.reportError(`Interface field argument ${n.name}.${h}(${v}:) expected but ${t.name}.${h} does not provide it.`,[b.astNode,p.astNode]);continue}if(!Ug(b.type,x.type)){var a,l;e.reportError(`Interface field argument ${n.name}.${h}(${v}:) expects type ${Ue(b.type)} but ${t.name}.${h}(${v}:) is type ${Ue(x.type)}.`,[(a=b.astNode)===null||a===void 0?void 0:a.type,(l=x.astNode)===null||l===void 0?void 0:l.type])}}for(const b of p.args){const v=b.name;!f.args.find(S=>S.name===v)&&ml(b)&&e.reportError(`Object field ${t.name}.${h} includes required argument ${v} that is missing from the Interface field ${n.name}.${h}.`,[b.astNode,f.astNode])}}}function TF(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}.`,[...zp(n,i),...zp(t,n)])}function SF(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.`,NC(t,i.name));continue}r[i.name]=!0,_t(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${Ue(i)}.`,NC(t,String(i)))}}function wF(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)Gc(e,r)}function CF(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(Gc(e,o),!Gi(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($g(o)&&o.deprecationReason!=null){var i;e.reportError(`Required input field ${t.name}.${o.name} cannot be deprecated.`,[T2(o.astNode),(i=o.astNode)===null||i===void 0?void 0:i.type])}t.isOneOf&&_F(t,o,e)}}function _F(e,t,n){if(wt(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 AF(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 a=Object.values(o.getFields());for(const l of a)if(wt(l.type)&&sn(l.type.ofType)){const f=l.type.ofType,h=r[f.name];if(n.push(l),h===void 0)i(f);else{const p=n.slice(h),b=p.map(v=>v.name).join(".");e.reportError(`Cannot reference Input Object "${f.name}" within itself through a series of non-null fields: "${b}".`,p.map(v=>v.astNode))}n.pop()}r[o.name]=void 0}}function zp(e,t){const{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(o=>{var a;return(a=o.interfaces)!==null&&a!==void 0?a:[]}).filter(o=>o.name.value===t.name)}function NC(e,t){const{astNode:n,extensionASTNodes:r}=e;return(n!=null?[n,...r]:r).flatMap(o=>{var a;return(a=o.types)!==null&&a!==void 0?a:[]}).filter(o=>o.name.value===t)}function T2(e){var t;return e==null||(t=e.directives)===null||t===void 0?void 0:t.find(n=>n.name.value===Yg.name)}function Mi(e,t){switch(t.kind){case Q.LIST_TYPE:{const n=Mi(e,t.type);return n&&new fr(n)}case Q.NON_NULL_TYPE:{const n=Mi(e,t.type);return n&&new Ft(n)}case Q.NAMED_TYPE:return e.getType(t.name.value)}}class yl{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??DF,n&&(Gi(n)&&this._inputTypeStack.push(n),si(n)&&this._parentTypeStack.push(n),Nu(n)&&this._typeStack.push(n))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(t){const n=this._schema;switch(t.kind){case Q.SELECTION_SET:{const i=yn(this.getType());this._parentTypeStack.push(si(i)?i:void 0);break}case Q.FIELD:{const i=this.getParentType();let o,a;i&&(o=this._getFieldDef(n,i,t),o&&(a=o.type)),this._fieldDefStack.push(o),this._typeStack.push(Nu(a)?a:void 0);break}case Q.DIRECTIVE:this._directive=n.getDirective(t.name.value);break;case Q.OPERATION_DEFINITION:{const i=n.getRootType(t.operation);this._typeStack.push(_t(i)?i:void 0);break}case Q.INLINE_FRAGMENT:case Q.FRAGMENT_DEFINITION:{const i=t.typeCondition,o=i?Mi(n,i):yn(this.getType());this._typeStack.push(Nu(o)?o:void 0);break}case Q.VARIABLE_DEFINITION:{const i=Mi(n,t.type);this._inputTypeStack.push(Gi(i)?i:void 0);break}case Q.ARGUMENT:{var r;let i,o;const a=(r=this.getDirective())!==null&&r!==void 0?r:this.getFieldDef();a&&(i=a.args.find(l=>l.name===t.name.value),i&&(o=i.type)),this._argument=i,this._defaultValueStack.push(i?i.defaultValue:void 0),this._inputTypeStack.push(Gi(o)?o:void 0);break}case Q.LIST:{const i=pl(this.getInputType()),o=vn(i)?i.ofType:i;this._defaultValueStack.push(void 0),this._inputTypeStack.push(Gi(o)?o:void 0);break}case Q.OBJECT_FIELD:{const i=yn(this.getInputType());let o,a;sn(i)&&(a=i.getFields()[t.name.value],a&&(o=a.type)),this._defaultValueStack.push(a?a.defaultValue:void 0),this._inputTypeStack.push(Gi(o)?o:void 0);break}case Q.ENUM:{const i=yn(this.getInputType());let o;Xn(i)&&(o=i.getValue(t.value)),this._enumValue=o;break}}}leave(t){switch(t.kind){case Q.SELECTION_SET:this._parentTypeStack.pop();break;case Q.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case Q.DIRECTIVE:this._directive=null;break;case Q.OPERATION_DEFINITION:case Q.INLINE_FRAGMENT:case Q.FRAGMENT_DEFINITION:this._typeStack.pop();break;case Q.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case Q.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Q.LIST:case Q.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case Q.ENUM:this._enumValue=null;break}}}function DF(e,t,n){const r=n.name.value;if(r===ws.name&&e.getQueryType()===t)return ws;if(r===Cs.name&&e.getQueryType()===t)return Cs;if(r===_s.name&&si(t))return _s;if(_t(t)||Ot(t))return t.getFields()[r]}function bl(e,t){return{enter(...n){const r=n[0];e.enter(r);const i=yd(t,r.kind).enter;if(i){const o=i.apply(t,n);return o!==void 0&&(e.leave(r),n2(o)&&e.enter(o)),o}},leave(...n){const r=n[0],i=yd(t,r.kind).leave;let o;return i&&(o=i.apply(t,n)),e.leave(r),o}}}function NF(e){return S2(e)||ev(e)||C2(e)}function S2(e){return e.kind===Q.OPERATION_DEFINITION||e.kind===Q.FRAGMENT_DEFINITION}function OF(e){return e.kind===Q.FIELD||e.kind===Q.FRAGMENT_SPREAD||e.kind===Q.INLINE_FRAGMENT}function OC(e){return e.kind===Q.VARIABLE||e.kind===Q.INT||e.kind===Q.FLOAT||e.kind===Q.STRING||e.kind===Q.BOOLEAN||e.kind===Q.NULL||e.kind===Q.ENUM||e.kind===Q.LIST||e.kind===Q.OBJECT}function w2(e){return OC(e)&&(e.kind===Q.LIST?e.values.some(w2):e.kind===Q.OBJECT?e.fields.some(t=>w2(t.value)):e.kind!==Q.VARIABLE)}function kF(e){return e.kind===Q.NAMED_TYPE||e.kind===Q.LIST_TYPE||e.kind===Q.NON_NULL_TYPE}function ev(e){return e.kind===Q.SCHEMA_DEFINITION||xd(e)||e.kind===Q.DIRECTIVE_DEFINITION}function xd(e){return e.kind===Q.SCALAR_TYPE_DEFINITION||e.kind===Q.OBJECT_TYPE_DEFINITION||e.kind===Q.INTERFACE_TYPE_DEFINITION||e.kind===Q.UNION_TYPE_DEFINITION||e.kind===Q.ENUM_TYPE_DEFINITION||e.kind===Q.INPUT_OBJECT_TYPE_DEFINITION}function C2(e){return e.kind===Q.SCHEMA_EXTENSION||tv(e)}function tv(e){return e.kind===Q.SCALAR_TYPE_EXTENSION||e.kind===Q.OBJECT_TYPE_EXTENSION||e.kind===Q.INTERFACE_TYPE_EXTENSION||e.kind===Q.UNION_TYPE_EXTENSION||e.kind===Q.ENUM_TYPE_EXTENSION||e.kind===Q.INPUT_OBJECT_TYPE_EXTENSION}function _2(e){return{Document(t){for(const n of t.definitions)if(!S2(n)){const r=n.kind===Q.SCHEMA_DEFINITION||n.kind===Q.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new Fe(`The ${r} definition is not executable.`,{nodes:n}))}return!1}}}function kC(e){return{Field(t){const n=e.getParentType();if(n&&!e.getFieldDef()){const i=e.getSchema(),o=t.name.value;let a=_u("to use an inline fragment on",RF(i,n,o));a===""&&(a=_u(MF(n,o))),e.reportError(new Fe(`Cannot query field "${o}" on type "${n.name}".`+a,{nodes:t}))}}}}function RF(e,t,n){if(!cr(t))return[];const r=new Set,i=Object.create(null);for(const a of e.getPossibleTypes(t))if(a.getFields()[n]){r.add(a),i[a.name]=1;for(const l of a.getInterfaces()){var o;l.getFields()[n]&&(r.add(l),i[l.name]=((o=i[l.name])!==null&&o!==void 0?o:0)+1)}}return[...r].sort((a,l)=>{const f=i[l.name]-i[a.name];return f!==0?f:Ot(a)&&e.isSubType(a,l)?-1:Ot(l)&&e.isSubType(l,a)?1:Rp(a.name,l.name)}).map(a=>a.name)}function MF(e,t){if(_t(e)||Ot(e)){const n=Object.keys(e.getFields());return hl(t,n)}return[]}function RC(e){return{InlineFragment(t){const n=t.typeCondition;if(n){const r=Mi(e.getSchema(),n);if(r&&!si(r)){const i=mn(n);e.reportError(new Fe(`Fragment cannot condition on non composite type "${i}".`,{nodes:n}))}}},FragmentDefinition(t){const n=Mi(e.getSchema(),t.typeCondition);if(n&&!si(n)){const r=mn(t.typeCondition);e.reportError(new Fe(`Fragment "${t.name.value}" cannot condition on non composite type "${r}".`,{nodes:t.typeCondition}))}}}}function MC(e){return{...LC(e),Argument(t){const n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){const o=t.name.value,a=r.args.map(f=>f.name),l=hl(o,a);e.reportError(new Fe(`Unknown argument "${o}" on field "${i.name}.${r.name}".`+_u(l),{nodes:t}))}}}}function LC(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():vl;for(const a of r)t[a.name]=a.args.map(l=>l.name);const i=e.getDocument().definitions;for(const a of i)if(a.kind===Q.DIRECTIVE_DEFINITION){var o;const l=(o=a.arguments)!==null&&o!==void 0?o:[];t[a.name.value]=l.map(f=>f.name.value)}return{Directive(a){const l=a.name.value,f=t[l];if(a.arguments&&f)for(const h of a.arguments){const p=h.name.value;if(!f.includes(p)){const b=hl(p,f);e.reportError(new Fe(`Unknown argument "${p}" on directive "@${l}".`+_u(b),{nodes:h}))}}return!1}}}function A2(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():vl;for(const o of r)t[o.name]=o.locations;const i=e.getDocument().definitions;for(const o of i)o.kind===Q.DIRECTIVE_DEFINITION&&(t[o.name.value]=o.locations.map(a=>a.value));return{Directive(o,a,l,f,h){const p=o.name.value,b=t[p];if(!b){e.reportError(new Fe(`Unknown directive "@${p}".`,{nodes:o}));return}const v=LF(h);v&&!b.includes(v)&&e.reportError(new Fe(`Directive "@${p}" may not be used on ${v}.`,{nodes:o}))}}}function LF(e){const t=e[e.length-1];switch("kind"in t||Gr(!1),t.kind){case Q.OPERATION_DEFINITION:return IF(t.operation);case Q.FIELD:return at.FIELD;case Q.FRAGMENT_SPREAD:return at.FRAGMENT_SPREAD;case Q.INLINE_FRAGMENT:return at.INLINE_FRAGMENT;case Q.FRAGMENT_DEFINITION:return at.FRAGMENT_DEFINITION;case Q.VARIABLE_DEFINITION:return at.VARIABLE_DEFINITION;case Q.SCHEMA_DEFINITION:case Q.SCHEMA_EXTENSION:return at.SCHEMA;case Q.SCALAR_TYPE_DEFINITION:case Q.SCALAR_TYPE_EXTENSION:return at.SCALAR;case Q.OBJECT_TYPE_DEFINITION:case Q.OBJECT_TYPE_EXTENSION:return at.OBJECT;case Q.FIELD_DEFINITION:return at.FIELD_DEFINITION;case Q.INTERFACE_TYPE_DEFINITION:case Q.INTERFACE_TYPE_EXTENSION:return at.INTERFACE;case Q.UNION_TYPE_DEFINITION:case Q.UNION_TYPE_EXTENSION:return at.UNION;case Q.ENUM_TYPE_DEFINITION:case Q.ENUM_TYPE_EXTENSION:return at.ENUM;case Q.ENUM_VALUE_DEFINITION:return at.ENUM_VALUE;case Q.INPUT_OBJECT_TYPE_DEFINITION:case Q.INPUT_OBJECT_TYPE_EXTENSION:return at.INPUT_OBJECT;case Q.INPUT_VALUE_DEFINITION:{const n=e[e.length-3];return"kind"in n||Gr(!1),n.kind===Q.INPUT_OBJECT_TYPE_DEFINITION?at.INPUT_FIELD_DEFINITION:at.ARGUMENT_DEFINITION}default:Gr(!1,"Unexpected kind: "+Ue(t.kind))}}function IF(e){switch(e){case vi.QUERY:return at.QUERY;case vi.MUTATION:return at.MUTATION;case vi.SUBSCRIPTION:return at.SUBSCRIPTION}}function IC(e){return{FragmentSpread(t){const n=t.name.value;e.getFragment(n)||e.reportError(new Fe(`Unknown fragment "${n}".`,{nodes:t.name}))}}}function D2(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(const o of e.getDocument().definitions)xd(o)&&(r[o.name.value]=!0);const i=[...Object.keys(n),...Object.keys(r)];return{NamedType(o,a,l,f,h){const p=o.name.value;if(!n[p]&&!r[p]){var b;const v=(b=h[2])!==null&&b!==void 0?b:l,x=v!=null&&FF(v);if(x&&FC.includes(p))return;const S=hl(p,x?FC.concat(i):i);e.reportError(new Fe(`Unknown type "${p}".`+_u(S),{nodes:o}))}}}}const FC=[...Vp,...Hp].map(e=>e.name);function FF(e){return"kind"in e&&(ev(e)||C2(e))}function PC(e){let t=0;return{Document(n){t=n.definitions.filter(r=>r.kind===Q.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new Fe("This anonymous operation must be the only defined operation.",{nodes:n}))}}}function jC(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 a=0;return{SchemaDefinition(l){if(o){e.reportError(new Fe("Cannot define a new schema within a schema extension.",{nodes:l}));return}a>0&&e.reportError(new Fe("Must provide only one schema definition.",{nodes:l})),++a}}}const PF=3;function VC(e){function t(n,r=Object.create(null),i=0){if(n.kind===Q.FRAGMENT_SPREAD){const o=n.name.value;if(r[o]===!0)return!1;const a=e.getFragment(o);if(!a)return!1;try{return r[o]=!0,t(a,r,i)}finally{r[o]=void 0}}if(n.kind===Q.FIELD&&(n.name.value==="fields"||n.name.value==="interfaces"||n.name.value==="possibleTypes"||n.name.value==="inputFields")&&(i++,i>=PF))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 Fe("Maximum introspection depth exceeded",{nodes:[n]})),!1}}}function BC(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 a=o.name.value;t[a]=!0;const l=e.getFragmentSpreads(o.selectionSet);if(l.length!==0){r[a]=n.length;for(const f of l){const h=f.name.value,p=r[h];if(n.push(f),p===void 0){const b=e.getFragment(h);b&&i(b)}else{const b=n.slice(p),v=b.slice(0,-1).map(x=>'"'+x.name.value+'"').join(", ");e.reportError(new Fe(`Cannot spread fragment "${h}" within itself`+(v!==""?` via ${v}.`:"."),{nodes:b}))}n.pop()}r[a]=void 0}}}function $C(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 Fe(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 N2(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 Fe(`Fragment "${o}" is never used.`,{nodes:i}))}}}}}function UC(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 a=o.variable.name.value;r[a]!==!0&&e.reportError(new Fe(n.name?`Variable "$${a}" is never used in operation "${n.name.value}".`:`Variable "$${a}" is never used.`,{nodes:o}))}}},VariableDefinition(n){t.push(n)}}}function nv(e){switch(e.kind){case Q.OBJECT:return{...e,fields:jF(e.fields)};case Q.LIST:return{...e,values:e.values.map(nv)};case Q.INT:case Q.FLOAT:case Q.STRING:case Q.BOOLEAN:case Q.NULL:case Q.ENUM:case Q.VARIABLE:return e}}function jF(e){return e.map(t=>({...t,value:nv(t.value)})).sort((t,n)=>Rp(t.name.value,n.name.value))}function HC(e){return Array.isArray(e)?e.map(([t,n])=>`subfields "${t}" conflict because `+HC(n)).join(" and "):e}function zC(e){const t=new YC,n=new zF,r=new Map;return{SelectionSet(i){const o=VF(e,r,t,n,e.getParentType(),i);for(const[[a,l],f,h]of o){const p=HC(l);e.reportError(new Fe(`Fields "${a}" conflict because ${p}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:f.concat(h)}))}}}}function VF(e,t,n,r,i,o){const a=[],[l,f]=ov(e,t,i,o);if($F(e,a,t,n,r,l),f.length!==0)for(let h=0;h<f.length;h++){rv(e,a,t,n,r,!1,l,f[h]);for(let p=h+1;p<f.length;p++)iv(e,a,t,n,r,!1,f[h],f[p])}return a}function rv(e,t,n,r,i,o,a,l){if(r.has(a,l,o))return;r.add(a,l,o);const f=e.getFragment(l);if(!f)return;const[h,p]=R2(e,n,f);if(a!==h){O2(e,t,n,r,i,o,a,h);for(const b of p)rv(e,t,n,r,i,o,a,b)}}function iv(e,t,n,r,i,o,a,l){if(a===l||i.has(a,l,o))return;i.add(a,l,o);const f=e.getFragment(a),h=e.getFragment(l);if(!f||!h)return;const[p,b]=R2(e,n,f),[v,x]=R2(e,n,h);O2(e,t,n,r,i,o,p,v);for(const S of x)iv(e,t,n,r,i,o,a,S);for(const S of b)iv(e,t,n,r,i,o,S,l)}function BF(e,t,n,r,i,o,a,l,f){const h=[],[p,b]=ov(e,t,o,a),[v,x]=ov(e,t,l,f);O2(e,h,t,n,r,i,p,v);for(const S of x)rv(e,h,t,n,r,i,p,S);for(const S of b)rv(e,h,t,n,r,i,v,S);for(const S of b)for(const w of x)iv(e,h,t,n,r,i,S,w);return h}function $F(e,t,n,r,i,o){for(const[a,l]of Object.entries(o))if(l.length>1)for(let f=0;f<l.length;f++)for(let h=f+1;h<l.length;h++){const p=qC(e,n,r,i,!1,a,l[f],l[h]);p&&t.push(p)}}function O2(e,t,n,r,i,o,a,l){for(const[f,h]of Object.entries(a)){const p=l[f];if(p)for(const b of h)for(const v of p){const x=qC(e,n,r,i,o,f,b,v);x&&t.push(x)}}}function qC(e,t,n,r,i,o,a,l){const[f,h,p]=a,[b,v,x]=l,S=i||f!==b&&_t(f)&&_t(b);if(!S){const O=h.name.value,A=v.name.value;if(O!==A)return[[o,`"${O}" and "${A}" are different fields`],[h],[v]];if(!UF(h,v))return[[o,"they have differing arguments"],[h],[v]]}const w=p==null?void 0:p.type,k=x==null?void 0:x.type;if(w&&k&&k2(w,k))return[[o,`they return conflicting types "${Ue(w)}" and "${Ue(k)}"`],[h],[v]];const _=h.selectionSet,N=v.selectionSet;if(_&&N){const O=BF(e,t,n,r,S,yn(w),_,yn(k),N);return HF(O,o,h,v)}}function UF(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:a})=>[o.value,a]));return n.every(o=>{const a=o.value,l=i.get(o.name.value);return l===void 0?!1:GC(a)===GC(l)})}function GC(e){return mn(nv(e))}function k2(e,t){return vn(e)?vn(t)?k2(e.ofType,t.ofType):!0:vn(t)?!0:wt(e)?wt(t)?k2(e.ofType,t.ofType):!0:wt(t)?!0:yi(e)||yi(t)?e!==t:!1}function ov(e,t,n,r){const i=t.get(r);if(i)return i;const o=Object.create(null),a=Object.create(null);WC(e,n,r,o,a);const l=[o,Object.keys(a)];return t.set(r,l),l}function R2(e,t,n){const r=t.get(n.selectionSet);if(r)return r;const i=Mi(e.getSchema(),n.typeCondition);return ov(e,t,i,n.selectionSet)}function WC(e,t,n,r,i){for(const o of n.selections)switch(o.kind){case Q.FIELD:{const a=o.name.value;let l;(_t(t)||Ot(t))&&(l=t.getFields()[a]);const f=o.alias?o.alias.value:a;r[f]||(r[f]=[]),r[f].push([t,o,l]);break}case Q.FRAGMENT_SPREAD:i[o.name.value]=!0;break;case Q.INLINE_FRAGMENT:{const a=o.typeCondition,l=a?Mi(e.getSchema(),a):t;WC(e,l,o.selectionSet,r,i);break}}}function HF(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 YC{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 zF{constructor(){this._orderedPairSet=new YC}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 QC(e){return{InlineFragment(t){const n=e.getType(),r=e.getParentType();if(si(n)&&si(r)&&!Ip(e.getSchema(),n,r)){const i=Ue(r),o=Ue(n);e.reportError(new Fe(`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=qF(e,n),i=e.getParentType();if(r&&i&&!Ip(e.getSchema(),r,i)){const o=Ue(i),a=Ue(r);e.reportError(new Fe(`Fragment "${n}" cannot be spread here as objects of type "${o}" can never be of type "${a}".`,{nodes:t}))}}}}function qF(e,t){const n=e.getFragment(t);if(n){const r=Mi(e.getSchema(),n.typeCondition);if(si(r))return r}}function KC(e){const t=e.getSchema(),n=Object.create(null);for(const i of e.getDocument().definitions)xd(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,a=n[o],l=t==null?void 0:t.getType(o);let f;if(a?f=GF[a.kind]:l&&(f=WF(l)),f){if(f!==i.kind){const h=YF(i.kind);e.reportError(new Fe(`Cannot extend non-${h} type "${o}".`,{nodes:a?[a,i]:i}))}}else{const h=Object.keys({...n,...t==null?void 0:t.getTypeMap()}),p=hl(o,h);e.reportError(new Fe(`Cannot extend type "${o}" because it is not defined.`+_u(p),{nodes:i.name}))}}}const GF={[Q.SCALAR_TYPE_DEFINITION]:Q.SCALAR_TYPE_EXTENSION,[Q.OBJECT_TYPE_DEFINITION]:Q.OBJECT_TYPE_EXTENSION,[Q.INTERFACE_TYPE_DEFINITION]:Q.INTERFACE_TYPE_EXTENSION,[Q.UNION_TYPE_DEFINITION]:Q.UNION_TYPE_EXTENSION,[Q.ENUM_TYPE_DEFINITION]:Q.ENUM_TYPE_EXTENSION,[Q.INPUT_OBJECT_TYPE_DEFINITION]:Q.INPUT_OBJECT_TYPE_EXTENSION};function WF(e){if(qi(e))return Q.SCALAR_TYPE_EXTENSION;if(_t(e))return Q.OBJECT_TYPE_EXTENSION;if(Ot(e))return Q.INTERFACE_TYPE_EXTENSION;if(lr(e))return Q.UNION_TYPE_EXTENSION;if(Xn(e))return Q.ENUM_TYPE_EXTENSION;if(sn(e))return Q.INPUT_OBJECT_TYPE_EXTENSION;Gr(!1,"Unexpected type: "+Ue(e))}function YF(e){switch(e){case Q.SCALAR_TYPE_EXTENSION:return"scalar";case Q.OBJECT_TYPE_EXTENSION:return"object";case Q.INTERFACE_TYPE_EXTENSION:return"interface";case Q.UNION_TYPE_EXTENSION:return"union";case Q.ENUM_TYPE_EXTENSION:return"enum";case Q.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:Gr(!1,"Unexpected kind: "+Ue(e))}}function XC(e){return{...ZC(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)&&ml(o)){const a=Ue(o.type);e.reportError(new Fe(`Field "${r.name}" argument "${o.name}" of type "${a}" is required, but it was not provided.`,{nodes:t}))}}}}}function ZC(e){var t;const n=Object.create(null),r=e.getSchema(),i=(t=r==null?void 0:r.getDirectives())!==null&&t!==void 0?t:vl;for(const l of i)n[l.name]=Au(l.args.filter(ml),f=>f.name);const o=e.getDocument().definitions;for(const l of o)if(l.kind===Q.DIRECTIVE_DEFINITION){var a;const f=(a=l.arguments)!==null&&a!==void 0?a:[];n[l.name.value]=Au(f.filter(QF),h=>h.name.value)}return{Directive:{leave(l){const f=l.name.value,h=n[f];if(h){var p;const b=(p=l.arguments)!==null&&p!==void 0?p:[],v=new Set(b.map(x=>x.name.value));for(const[x,S]of Object.entries(h))if(!v.has(x)){const w=bd(S.type)?Ue(S.type):mn(S.type);e.reportError(new Fe(`Directive "@${f}" argument "${x}" of type "${w}" is required, but it was not provided.`,{nodes:l}))}}}}}}function QF(e){return e.type.kind===Q.NON_NULL_TYPE&&e.defaultValue==null}function JC(e){return{Field(t){const n=e.getType(),r=t.selectionSet;if(n)if(yi(yn(n))){if(r){const i=t.name.value,o=Ue(n);e.reportError(new Fe(`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 Fe(`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 Fe(`Field "${i}" of type "${o}" must have a selection of subfields. Did you mean "${i} { ... }"?`,{nodes:t}))}}}}function e_(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}function Td(e,t,n){return{prev:e,key:t,typename:n}}function Li(e){const t=[];let n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}function M2(e,t,n=KF){return qp(e,t,n,void 0)}function KF(e,t,n){let r="Invalid value "+Ue(t);throw e.length>0&&(r+=` at "value${e_(e)}"`),n.message=r+": "+n.message,n}function qp(e,t,n,r){if(wt(t)){if(e!=null)return qp(e,t.ofType,n,r);n(Li(r),e,new Fe(`Expected non-nullable type "${Ue(t)}" not to be null.`));return}if(e==null)return null;if(vn(t)){const i=t.ofType;return p2(e)?Array.from(e,(o,a)=>{const l=Td(r,a,void 0);return qp(o,i,n,l)}):[qp(e,i,n,r)]}if(sn(t)){if(!ns(e)||Array.isArray(e)){n(Li(r),e,new Fe(`Expected type "${t.name}" to be an object.`));return}const i={},o=t.getFields();for(const a of Object.values(o)){const l=e[a.name];if(l===void 0){if(a.defaultValue!==void 0)i[a.name]=a.defaultValue;else if(wt(a.type)){const f=Ue(a.type);n(Li(r),e,new Fe(`Field "${a.name}" of required type "${f}" was not provided.`))}continue}i[a.name]=qp(l,a.type,n,Td(r,a.name,t.name))}for(const a of Object.keys(e))if(!o[a]){const l=hl(a,Object.keys(t.getFields()));n(Li(r),e,new Fe(`Field "${a}" is not defined by type "${t.name}".`+_u(l)))}if(t.isOneOf){const a=Object.keys(i);a.length!==1&&n(Li(r),e,new Fe(`Exactly one key must be specified for OneOf type "${t.name}".`));const l=a[0],f=i[l];f===null&&n(Li(r).concat(l),f,new Fe(`Field "${l}" must be non-null.`))}return i}if(yi(t)){let i;try{i=t.parseValue(e)}catch(o){o instanceof Fe?n(Li(r),e,o):n(Li(r),e,new Fe(`Expected type "${t.name}". `+o.message,{originalError:o}));return}return i===void 0&&n(Li(r),e,new Fe(`Expected type "${t.name}".`)),i}Gr(!1,"Unexpected input type: "+Ue(t))}function As(e,t,n){if(e){if(e.kind===Q.VARIABLE){const r=e.name.value;if(n==null||n[r]===void 0)return;const i=n[r];return i===null&&wt(t)?void 0:i}if(wt(t))return e.kind===Q.NULL?void 0:As(e,t.ofType,n);if(e.kind===Q.NULL)return null;if(vn(t)){const r=t.ofType;if(e.kind===Q.LIST){const o=[];for(const a of e.values)if(t_(a,n)){if(wt(r))return;o.push(null)}else{const l=As(a,r,n);if(l===void 0)return;o.push(l)}return o}const i=As(e,r,n);return i===void 0?void 0:[i]}if(sn(t)){if(e.kind!==Q.OBJECT)return;const r=Object.create(null),i=Au(e.fields,o=>o.name.value);for(const o of Object.values(t.getFields())){const a=i[o.name];if(!a||t_(a.value,n)){if(o.defaultValue!==void 0)r[o.name]=o.defaultValue;else if(wt(o.type))return;continue}const l=As(a.value,o.type,n);if(l===void 0)return;r[o.name]=l}if(t.isOneOf){const o=Object.keys(r);if(o.length!==1||r[o[0]]===null)return}return r}if(yi(t)){let r;try{r=t.parseLiteral(e,n)}catch{return}return r===void 0?void 0:r}Gr(!1,"Unexpected input type: "+Ue(t))}}function t_(e,t){return e.kind===Q.VARIABLE&&(t==null||t[e.name.value]===void 0)}function n_(e,t,n,r){const i=[],o=r==null?void 0:r.maxErrors;try{const a=XF(e,t,n,l=>{if(o!=null&&i.length>=o)throw new Fe("Too many errors processing variables, error limit reached. Execution aborted.");i.push(l)});if(i.length===0)return{coerced:a}}catch(a){i.push(a)}return{errors:i}}function XF(e,t,n,r){const i={};for(const o of t){const a=o.variable.name.value,l=Mi(e,o.type);if(!Gi(l)){const h=mn(o.type);r(new Fe(`Variable "$${a}" expected value of type "${h}" which cannot be used as an input type.`,{nodes:o.type}));continue}if(!r_(n,a)){if(o.defaultValue)i[a]=As(o.defaultValue,l);else if(wt(l)){const h=Ue(l);r(new Fe(`Variable "$${a}" of required type "${h}" was not provided.`,{nodes:o}))}continue}const f=n[a];if(f===null&&wt(l)){const h=Ue(l);r(new Fe(`Variable "$${a}" of non-null type "${h}" must not be null.`,{nodes:o}));continue}i[a]=M2(f,l,(h,p,b)=>{let v=`Variable "$${a}" got invalid value `+Ue(p);h.length>0&&(v+=` at "${a}${e_(h)}"`),r(new Fe(v+"; "+b.message,{nodes:o,originalError:b}))})}return i}function sv(e,t,n){var r;const i={},o=(r=t.arguments)!==null&&r!==void 0?r:[],a=Au(o,l=>l.name.value);for(const l of e.args){const f=l.name,h=l.type,p=a[f];if(!p){if(l.defaultValue!==void 0)i[f]=l.defaultValue;else if(wt(h))throw new Fe(`Argument "${f}" of required type "${Ue(h)}" was not provided.`,{nodes:t});continue}const b=p.value;let v=b.kind===Q.NULL;if(b.kind===Q.VARIABLE){const S=b.name.value;if(n==null||!r_(n,S)){if(l.defaultValue!==void 0)i[f]=l.defaultValue;else if(wt(h))throw new Fe(`Argument "${f}" of required type "${Ue(h)}" was provided the variable "$${S}" which was not provided a runtime value.`,{nodes:b});continue}v=n[S]==null}if(v&&wt(h))throw new Fe(`Argument "${f}" of non-null type "${Ue(h)}" must not be null.`,{nodes:b});const x=As(b,h,n);if(x===void 0)throw new Fe(`Argument "${f}" has invalid value ${mn(b)}.`,{nodes:b});i[f]=x}return i}function Ia(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 sv(e,i,n)}function r_(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function L2(e,t,n,r,i){const o=new Map;return av(e,t,n,r,i,o,new Set),o}function ZF(e,t,n,r,i){const o=new Map,a=new Set;for(const l of i)l.selectionSet&&av(e,t,n,r,l.selectionSet,o,a);return o}function av(e,t,n,r,i,o,a){for(const l of i.selections)switch(l.kind){case Q.FIELD:{if(!I2(n,l))continue;const f=JF(l),h=o.get(f);h!==void 0?h.push(l):o.set(f,[l]);break}case Q.INLINE_FRAGMENT:{if(!I2(n,l)||!i_(e,l,r))continue;av(e,t,n,r,l.selectionSet,o,a);break}case Q.FRAGMENT_SPREAD:{const f=l.name.value;if(a.has(f)||!I2(n,l))continue;a.add(f);const h=t[f];if(!h||!i_(e,h,r))continue;av(e,t,n,r,h.selectionSet,o,a);break}}}function I2(e,t){const n=Ia(Wg,t,e);if((n==null?void 0:n.if)===!0)return!1;const r=Ia(Gg,t,e);return(r==null?void 0:r.if)!==!1}function i_(e,t,n){const r=t.typeCondition;if(!r)return!0;const i=Mi(e,r);return i===n?!0:cr(i)?e.isSubType(i,n):!1}function JF(e){return e.alias?e.alias.value:e.name.value}function o_(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),a=e.getDocument(),l=Object.create(null);for(const h of a.definitions)h.kind===Q.FRAGMENT_DEFINITION&&(l[h.name.value]=h);const f=L2(n,l,o,r,t.selectionSet);if(f.size>1){const b=[...f.values()].slice(1).flat();e.reportError(new Fe(i!=null?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:b}))}for(const h of f.values())h[0].name.value.startsWith("__")&&e.reportError(new Fe(i!=null?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:h}))}}}}}function F2(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 s_(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,a=(i=r.fields)!==null&&i!==void 0?i:[];for(const f of a){var l;const h=f.name.value,p=(l=f.arguments)!==null&&l!==void 0?l:[];n(`${o}.${h}`,p)}return!1}function n(r,i){const o=F2(i,a=>a.name.value);for(const[a,l]of o)l.length>1&&e.reportError(new Fe(`Argument "${r}(${a}:)" can only be defined once.`,{nodes:l.map(f=>f.name)}));return!1}}function P2(e){return{Field:t,Directive:t};function t(n){var r;const i=(r=n.arguments)!==null&&r!==void 0?r:[],o=F2(i,a=>a.name.value);for(const[a,l]of o)l.length>1&&e.reportError(new Fe(`There can be only one argument named "${a}".`,{nodes:l.map(f=>f.name)}))}}function a_(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 Fe(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}));return}return t[i]?e.reportError(new Fe(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1}}}function j2(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():vl;for(const l of r)t[l.name]=!l.isRepeatable;const i=e.getDocument().definitions;for(const l of i)l.kind===Q.DIRECTIVE_DEFINITION&&(t[l.name.value]=!l.repeatable);const o=Object.create(null),a=Object.create(null);return{enter(l){if(!("directives"in l)||!l.directives)return;let f;if(l.kind===Q.SCHEMA_DEFINITION||l.kind===Q.SCHEMA_EXTENSION)f=o;else if(xd(l)||tv(l)){const h=l.name.value;f=a[h],f===void 0&&(a[h]=f=Object.create(null))}else f=Object.create(null);for(const h of l.directives){const p=h.name.value;t[p]&&(f[p]?e.reportError(new Fe(`The directive "@${p}" can only be used once at this location.`,{nodes:[f[p],h]})):f[p]=h)}}}}function u_(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 a;const l=o.name.value;r[l]||(r[l]=Object.create(null));const f=(a=o.values)!==null&&a!==void 0?a:[],h=r[l];for(const p of f){const b=p.name.value,v=n[l];Xn(v)&&v.getValue(b)?e.reportError(new Fe(`Enum value "${l}.${b}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:p.name})):h[b]?e.reportError(new Fe(`Enum value "${l}.${b}" can only be defined once.`,{nodes:[h[b],p.name]})):h[b]=p.name}return!1}}function l_(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 a;const l=o.name.value;r[l]||(r[l]=Object.create(null));const f=(a=o.fields)!==null&&a!==void 0?a:[],h=r[l];for(const p of f){const b=p.name.value;eP(n[l],b)?e.reportError(new Fe(`Field "${l}.${b}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:p.name})):h[b]?e.reportError(new Fe(`Field "${l}.${b}" can only be defined once.`,{nodes:[h[b],p.name]})):h[b]=p.name}return!1}}function eP(e,t){return _t(e)||Ot(e)||sn(e)?e.getFields()[t]!=null:!1}function c_(e){const t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){const r=n.name.value;return t[r]?e.reportError(new Fe(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}function V2(e){const t=[];let n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){const r=t.pop();r||Gr(!1),n=r}},ObjectField(r){const i=r.name.value;n[i]?e.reportError(new Fe(`There can be only one input field named "${i}".`,{nodes:[n[i],r.name]})):n[i]=r.name}}}function f_(e){const t=Object.create(null);return{OperationDefinition(n){const r=n.name;return r&&(t[r.value]?e.reportError(new Fe(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}function d_(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 a;const l=(a=o.operationTypes)!==null&&a!==void 0?a:[];for(const f of l){const h=f.operation,p=n[h];r[h]?e.reportError(new Fe(`Type for ${h} already defined in the schema. It cannot be redefined.`,{nodes:f})):p?e.reportError(new Fe(`There can be only one ${h} type in schema.`,{nodes:[p,f]})):n[h]=f}return!1}}function h_(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 Fe(`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 Fe(`There can be only one type named "${o}".`,{nodes:[t[o],i.name]})):t[o]=i.name,!1}}function p_(e){return{OperationDefinition(t){var n;const r=(n=t.variableDefinitions)!==null&&n!==void 0?n:[],i=F2(r,o=>o.variable.name.value);for(const[o,a]of i)a.length>1&&e.reportError(new Fe(`There can be only one variable named "$${o}".`,{nodes:a.map(l=>l.variable.name)}))}}}function m_(e){let t={};return{OperationDefinition:{enter(){t={}}},VariableDefinition(n){t[n.variable.name.value]=n},ListValue(n){const r=pl(e.getParentInputType());if(!vn(r))return Wc(e,n),!1},ObjectValue(n){const r=yn(e.getInputType());if(!sn(r))return Wc(e,n),!1;const i=Au(n.fields,o=>o.name.value);for(const o of Object.values(r.getFields()))if(!i[o.name]&&$g(o)){const l=Ue(o.type);e.reportError(new Fe(`Field "${r.name}.${o.name}" of required type "${l}" was not provided.`,{nodes:n}))}r.isOneOf&&tP(e,n,r,i,t)},ObjectField(n){const r=yn(e.getParentInputType());if(!e.getInputType()&&sn(r)){const o=hl(n.name.value,Object.keys(r.getFields()));e.reportError(new Fe(`Field "${n.name.value}" is not defined by type "${r.name}".`+_u(o),{nodes:n}))}},NullValue(n){const r=e.getInputType();wt(r)&&e.reportError(new Fe(`Expected value of type "${Ue(r)}", found ${mn(n)}.`,{nodes:n}))},EnumValue:n=>Wc(e,n),IntValue:n=>Wc(e,n),FloatValue:n=>Wc(e,n),StringValue:n=>Wc(e,n),BooleanValue:n=>Wc(e,n)}}function Wc(e,t){const n=e.getInputType();if(!n)return;const r=yn(n);if(!yi(r)){const i=Ue(n);e.reportError(new Fe(`Expected value of type "${i}", found ${mn(t)}.`,{nodes:t}));return}try{if(r.parseLiteral(t,void 0)===void 0){const o=Ue(n);e.reportError(new Fe(`Expected value of type "${o}", found ${mn(t)}.`,{nodes:t}))}}catch(i){const o=Ue(n);i instanceof Fe?e.reportError(i):e.reportError(new Fe(`Expected value of type "${o}", found ${mn(t)}; `+i.message,{nodes:t,originalError:i}))}}function tP(e,t,n,r,i){var o;const a=Object.keys(r);if(a.length!==1){e.reportError(new Fe(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));return}const f=(o=r[a[0]])===null||o===void 0?void 0:o.value,h=!f||f.kind===Q.NULL,p=(f==null?void 0:f.kind)===Q.VARIABLE;if(h){e.reportError(new Fe(`Field "${n.name}.${a[0]}" must be non-null.`,{nodes:[t]}));return}if(p){const b=f.name.value;i[b].type.kind!==Q.NON_NULL_TYPE&&e.reportError(new Fe(`Variable "${b}" must be non-nullable to be used for OneOf Input Object "${n.name}".`,{nodes:[t]}))}}function g_(e){return{VariableDefinition(t){const n=Mi(e.getSchema(),t.type);if(n!==void 0&&!Gi(n)){const r=t.variable.name.value,i=mn(t.type);e.reportError(new Fe(`Variable "$${r}" cannot be non-input type "${i}".`,{nodes:t.type}))}}}}function v_(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const r=e.getRecursiveVariableUsages(n);for(const{node:i,type:o,defaultValue:a,parentType:l}of r){const f=i.name.value,h=t[f];if(h&&o){const p=e.getSchema(),b=Mi(p,h.type);if(b&&!nP(p,b,h.defaultValue,o,a)){const v=Ue(b),x=Ue(o);e.reportError(new Fe(`Variable "$${f}" of type "${v}" used in position expecting type "${x}".`,{nodes:[h,i]}))}sn(l)&&l.isOneOf&&Lp(b)&&e.reportError(new Fe(`Variable "$${f}" is of type "${b}" but must be non-nullable to be used for OneOf Input Object "${l}".`,{nodes:[h,i]}))}}}},VariableDefinition(n){t[n.variable.name.value]=n}}}function nP(e,t,n,r,i){if(wt(r)&&!wt(t)){if(!(n!=null&&n.kind!==Q.NULL)&&!(i!==void 0))return!1;const l=r.ofType;return Hc(e,t,l)}return Hc(e,t,r)}const y_=Object.freeze([VC]),B2=Object.freeze([_2,f_,PC,o_,D2,RC,g_,JC,kC,c_,IC,N2,QC,BC,p_,$C,UC,A2,j2,MC,P2,m_,XC,v_,zC,V2,...y_]),rP=Object.freeze([jC,d_,h_,u_,l_,s_,a_,D2,A2,j2,KC,LC,P2,V2,ZC]);class b_{constructor(t,n){this._ast=t,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=n}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(t){this._onError(t)}getDocument(){return this._ast}getFragment(t){let n;if(this._fragments)n=this._fragments;else{n=Object.create(null);for(const r of this.getDocument().definitions)r.kind===Q.FRAGMENT_DEFINITION&&(n[r.name.value]=r);this._fragments=n}return n[t]}getFragmentSpreads(t){let n=this._fragmentSpreads.get(t);if(!n){n=[];const r=[t];let i;for(;i=r.pop();)for(const o of i.selections)o.kind===Q.FRAGMENT_SPREAD?n.push(o):o.selectionSet&&r.push(o.selectionSet);this._fragmentSpreads.set(t,n)}return n}getRecursivelyReferencedFragments(t){let n=this._recursivelyReferencedFragments.get(t);if(!n){n=[];const r=Object.create(null),i=[t.selectionSet];let o;for(;o=i.pop();)for(const a of this.getFragmentSpreads(o)){const l=a.name.value;if(r[l]!==!0){r[l]=!0;const f=this.getFragment(l);f&&(n.push(f),i.push(f.selectionSet))}}this._recursivelyReferencedFragments.set(t,n)}return n}}class iP extends b_{constructor(t,n,r){super(t,r),this._schema=n}get[Symbol.toStringTag](){return"SDLValidationContext"}getSchema(){return this._schema}}class E_ extends b_{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 yl(this._schema);Cr(t,bl(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 Gp(e,t,n=B2,r,i=new yl(e)){var o;const a=(o=r==null?void 0:r.maxErrors)!==null&&o!==void 0?o:100;t||rn(!1,"Must provide document."),Jg(e);const l=Object.freeze({}),f=[],h=new E_(e,t,i,b=>{if(f.length>=a)throw f.push(new Fe("Too many validation errors, error limit reached. Validation aborted.")),l;f.push(b)}),p=u2(n.map(b=>b(h)));try{Cr(t,bl(i,p))}catch(b){if(b!==l)throw b}return f}function x_(e,t,n=rP){const r=[],i=new iP(e,t,a=>{r.push(a)}),o=n.map(a=>a(i));return Cr(e,u2(o)),r}function oP(e){const t=x_(e);if(t.length!==0)throw new Error(t.map(n=>n.message).join(`
`))}function sP(e,t){const n=x_(e,t);if(n.length!==0)throw new Error(n.map(r=>r.message).join(`
`))}function aP(e){let t;return function(r,i,o){t===void 0&&(t=new WeakMap);let a=t.get(r);a===void 0&&(a=new WeakMap,t.set(r,a));let l=a.get(i);l===void 0&&(l=new WeakMap,a.set(i,l));let f=l.get(o);return f===void 0&&(f=e(r,i,o),l.set(o,f)),f}}function T_(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 uP(e,t,n){let r=n;for(const i of e)r=ts(r)?r.then(o=>t(o,i)):t(r,i);return r}function lP(e){return e instanceof Error?e:new cP(e)}class cP extends Error{constructor(t){super("Unexpected error value: "+Ue(t)),this.name="NonErrorThrown",this.thrownValue=t}}function mr(e,t,n){var r;const i=lP(e);return fP(i)?i:new Fe(i.message,{nodes:(r=i.nodes)!==null&&r!==void 0?r:t,source:i.source,positions:i.positions,path:n,originalError:i})}function fP(e){return Array.isArray(e.path)}const dP=aP((e,t,n)=>ZF(e.schema,e.fragments,e.variableValues,t,n));function uv(e){arguments.length<2||rn(!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;w_(t,n,r);const o=C_(e);if(!("schema"in o))return{errors:o};try{const{operation:a}=o,l=hP(o,a,i);return ts(l)?l.then(f=>lv(f,o.errors),f=>(o.errors.push(f),lv(null,o.errors))):lv(l,o.errors)}catch(a){return o.errors.push(a),lv(null,o.errors)}}function S_(e){const t=uv(e);if(ts(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function lv(e,t){return t.length===0?{data:e}:{errors:t,data:e}}function w_(e,t,n){t||rn(!1,"Must provide document."),Jg(e),n==null||ns(n)||rn(!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 C_(e){var t,n,r;const{schema:i,document:o,rootValue:a,contextValue:l,variableValues:f,operationName:h,fieldResolver:p,typeResolver:b,subscribeFieldResolver:v,options:x}=e;let S;const w=Object.create(null);for(const N of o.definitions)switch(N.kind){case Q.OPERATION_DEFINITION:if(h==null){if(S!==void 0)return[new Fe("Must provide operation name if query contains multiple operations.")];S=N}else((t=N.name)===null||t===void 0?void 0:t.value)===h&&(S=N);break;case Q.FRAGMENT_DEFINITION:w[N.name.value]=N;break}if(!S)return h!=null?[new Fe(`Unknown operation named "${h}".`)]:[new Fe("Must provide an operation.")];const k=(n=S.variableDefinitions)!==null&&n!==void 0?n:[],_=n_(i,k,f??{},{maxErrors:(r=x==null?void 0:x.maxCoercionErrors)!==null&&r!==void 0?r:50});return _.errors?_.errors:{schema:i,fragments:w,rootValue:a,contextValue:l,operation:S,variableValues:_.coerced,fieldResolver:p??dv,typeResolver:b??O_,subscribeFieldResolver:v??dv,errors:[]}}function hP(e,t,n){const r=e.schema.getRootType(t.operation);if(r==null)throw new Fe(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});const i=L2(e.schema,e.fragments,e.variableValues,r,t.selectionSet),o=void 0;switch(t.operation){case vi.QUERY:return cv(e,r,n,o,i);case vi.MUTATION:return pP(e,r,n,o,i);case vi.SUBSCRIPTION:return cv(e,r,n,o,i)}}function pP(e,t,n,r,i){return uP(i.entries(),(o,[a,l])=>{const f=Td(r,a,t.name),h=__(e,t,n,l,f);return h===void 0?o:ts(h)?h.then(p=>(o[a]=p,o)):(o[a]=h,o)},Object.create(null))}function cv(e,t,n,r,i){const o=Object.create(null);let a=!1;try{for(const[l,f]of i.entries()){const h=Td(r,l,t.name),p=__(e,t,n,f,h);p!==void 0&&(o[l]=p,ts(p)&&(a=!0))}}catch(l){if(a)return T_(o).finally(()=>{throw l});throw l}return a?T_(o):o}function __(e,t,n,r,i){var o;const a=k_(e.schema,t,r[0]);if(!a)return;const l=a.type,f=(o=a.resolve)!==null&&o!==void 0?o:e.fieldResolver,h=A_(e,a,r,t,i);try{const p=sv(a,r[0],e.variableValues),b=e.contextValue,v=f(n,p,b,h);let x;return ts(v)?x=v.then(S=>Wp(e,l,r,h,i,S)):x=Wp(e,l,r,h,i,v),ts(x)?x.then(void 0,S=>{const w=mr(S,r,Li(i));return fv(w,l,e)}):x}catch(p){const b=mr(p,r,Li(i));return fv(b,l,e)}}function A_(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 fv(e,t,n){if(wt(t))throw e;return n.errors.push(e),null}function Wp(e,t,n,r,i,o){if(o instanceof Error)throw o;if(wt(t)){const a=Wp(e,t.ofType,n,r,i,o);if(a===null)throw new Error(`Cannot return null for non-nullable field ${r.parentType.name}.${r.fieldName}.`);return a}if(o==null)return null;if(vn(t))return mP(e,t,n,r,i,o);if(yi(t))return gP(t,o);if(cr(t))return vP(e,t,n,r,i,o);if(_t(t))return $2(e,t,n,r,i,o);Gr(!1,"Cannot complete value of unexpected output type: "+Ue(t))}function mP(e,t,n,r,i,o){if(!p2(o))throw new Fe(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);const a=t.ofType;let l=!1;const f=Array.from(o,(h,p)=>{const b=Td(i,p,void 0);try{let v;return ts(h)?v=h.then(x=>Wp(e,a,n,r,b,x)):v=Wp(e,a,n,r,b,h),ts(v)?(l=!0,v.then(void 0,x=>{const S=mr(x,n,Li(b));return fv(S,a,e)})):v}catch(v){const x=mr(v,n,Li(b));return fv(x,a,e)}});return l?Promise.all(f):f}function gP(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 vP(e,t,n,r,i,o){var a;const l=(a=t.resolveType)!==null&&a!==void 0?a:e.typeResolver,f=e.contextValue,h=l(o,f,r,t);return ts(h)?h.then(p=>$2(e,D_(p,e,t,n,r,o),n,r,i,o)):$2(e,D_(h,e,t,n,r,o),n,r,i,o)}function D_(e,t,n,r,i,o){if(e==null)throw new Fe(`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(_t(e))throw new Fe("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 Fe(`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 a=t.schema.getType(e);if(a==null)throw new Fe(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!_t(a))throw new Fe(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,a))throw new Fe(`Runtime Object type "${a.name}" is not a possible type for "${n.name}".`,{nodes:r});return a}function $2(e,t,n,r,i,o){const a=dP(e,t,n);if(t.isTypeOf){const l=t.isTypeOf(o,e.contextValue,r);if(ts(l))return l.then(f=>{if(!f)throw N_(t,o,n);return cv(e,t,o,i,a)});if(!l)throw N_(t,o,n)}return cv(e,t,o,i,a)}function N_(e,t,n){return new Fe(`Expected value of type "${e.name}" but got: ${Ue(t)}.`,{nodes:n})}const O_=function(e,t,n,r){if(ns(e)&&typeof e.__typename=="string")return e.__typename;const i=n.schema.getPossibleTypes(r),o=[];for(let a=0;a<i.length;a++){const l=i[a];if(l.isTypeOf){const f=l.isTypeOf(e,t,n);if(ts(f))o[a]=f;else if(f)return l.name}}if(o.length)return Promise.all(o).then(a=>{for(let l=0;l<a.length;l++)if(a[l])return i[l].name})},dv=function(e,t,n,r){if(ns(e)||typeof e=="function"){const i=e[r.fieldName];return typeof i=="function"?e[r.fieldName](t,n,r):i}};function k_(e,t,n){const r=n.name.value;return r===ws.name&&e.getQueryType()===t?ws:r===Cs.name&&e.getQueryType()===t?Cs:r===_s.name?_s:t.getFields()[r]}function yP(e){return new Promise(t=>t(R_(e)))}function bP(e){const t=R_(e);if(ts(t))throw new Error("GraphQL execution failed to complete synchronously.");return t}function R_(e){arguments.length<2||rn(!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:a,fieldResolver:l,typeResolver:f}=e,h=Zg(t);if(h.length>0)return{errors:h};let p;try{p=zi(n)}catch(v){return{errors:[v]}}const b=Gp(t,p);return b.length>0?{errors:b}:uv({schema:t,document:p,rootValue:r,contextValue:i,variableValues:o,operationName:a,fieldResolver:l,typeResolver:f})}function M_(e){return typeof(e==null?void 0:e[Symbol.asyncIterator])=="function"}function EP(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 xP(e){arguments.length<2||rn(!1,"graphql@16 dropped long-deprecated support for positional arguments, please pass an object instead.");const t=await L_(e);return M_(t)?EP(t,r=>uv({...e,rootValue:r})):t}function TP(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 L_(...e){const t=TP(e),{schema:n,document:r,variableValues:i}=t;w_(n,r,i);const o=C_(t);if(!("schema"in o))return{errors:o};try{const a=await SP(o);if(!M_(a))throw new Error(`Subscription field must return Async Iterable. Received: ${Ue(a)}.`);return a}catch(a){if(a instanceof Fe)return{errors:[a]};throw a}}async function SP(e){const{schema:t,fragments:n,operation:r,variableValues:i,rootValue:o}=e,a=t.getSubscriptionType();if(a==null)throw new Fe("Schema is not configured to execute subscription operation.",{nodes:r});const l=L2(t,n,i,a,r.selectionSet),[f,h]=[...l.entries()][0],p=k_(t,a,h[0]);if(!p){const S=h[0].name.value;throw new Fe(`The subscription field "${S}" is not defined.`,{nodes:h})}const b=Td(void 0,f,a.name),v=A_(e,p,h,a,b);try{var x;const S=sv(p,h[0],i),w=e.contextValue,_=await((x=p.subscribe)!==null&&x!==void 0?x:e.subscribeFieldResolver)(o,S,w,v);if(_ instanceof Error)throw _;return _}catch(S){throw mr(S,h,Li(b))}}function I_(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||Gr(!1),e.reportError(new Fe(`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 Fe(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{const o=e.getParentType(),a=e.getFieldDef();o!=null&&a!=null||Gr(!1),e.reportError(new Fe(`Field "${o.name}.${a.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){const n=yn(e.getParentInputType());if(sn(n)){const r=n.getFields()[t.name.value],i=r==null?void 0:r.deprecationReason;i!=null&&e.reportError(new Fe(`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=yn(e.getInputType());i!=null||Gr(!1),e.reportError(new Fe(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}function wP(e){return{Field(t){const n=yn(e.getType());n&&zc(n)&&e.reportError(new Fe(`GraphQL introspection has been disabled, but the requested query contained the field "${t.name.value}".`,{nodes:t}))}}}function hv(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 a(f){return t.inputValueDeprecation?f:""}const l=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${a("(includeDeprecated: true)")} {
...InputValue
}
}
}
}
fragment FullType on __Type {
kind
name
${n}
${r}
${l}
fields(includeDeprecated: true) {
name
${n}
args${a("(includeDeprecated: true)")} {
...InputValue
}
type {
...TypeRef
}
isDeprecated
deprecationReason
}
inputFields${a("(includeDeprecated: true)")} {
...InputValue
}
interfaces {
...TypeRef
}
enumValues(includeDeprecated: true) {
name
${n}
isDeprecated
deprecationReason
}
possibleTypes {
...TypeRef
}
}
fragment InputValue on __InputValue {
name
${n}
type { ...TypeRef }
defaultValue
${a("isDeprecated")}
${a("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 U2(e,t){let n=null;for(const i of e.definitions)if(i.kind===Q.OPERATION_DEFINITION){var r;if(t==null){if(n)return null;n=i}else if(((r=i.name)===null||r===void 0?void 0:r.value)===t)return i}return n}function CP(e,t){if(t.operation==="query"){const n=e.getQueryType();if(!n)throw new Fe("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 Fe("Schema is not configured for mutations.",{nodes:t});return n}if(t.operation==="subscription"){const n=e.getSubscriptionType();if(!n)throw new Fe("Schema is not configured for subscriptions.",{nodes:t});return n}throw new Fe("Can only have query, mutation and subscription operations.",{nodes:t})}function _P(e,t){const n={specifiedByUrl:!0,directiveIsRepeatable:!0,schemaDescription:!0,inputValueDeprecation:!0,oneOf:!0,...t},r=zi(hv(n)),i=S_({schema:e,document:r});return!i.errors&&i.data||Gr(!1),i.data}function H2(e,t){ns(e)&&ns(e.__schema)||rn(!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=dl(n.types,B=>B.name,B=>v(B));for(const B of[...Vp,...Hp])r[B.name]&&(r[B.name]=B);const i=n.queryType?p(n.queryType):null,o=n.mutationType?p(n.mutationType):null,a=n.subscriptionType?p(n.subscriptionType):null,l=n.directives?n.directives.map(F):[];return new qc({description:n.description,query:i,mutation:o,subscription:a,types:Object.values(r),directives:l,assumeValid:t==null?void 0:t.assumeValid});function f(B){if(B.kind===Hn.LIST){const q=B.ofType;if(!q)throw new Error("Decorated type deeper than introspection query.");return new fr(f(q))}if(B.kind===Hn.NON_NULL){const q=B.ofType;if(!q)throw new Error("Decorated type deeper than introspection query.");const W=f(q);return new Ft(bC(W))}return h(B)}function h(B){const q=B.name;if(!q)throw new Error(`Unknown type reference: ${Ue(B)}.`);const W=r[q];if(!W)throw new Error(`Invalid or incomplete schema, unknown type: ${q}. Ensure that a full introspection query is used in order to build a client schema.`);return W}function p(B){return gC(h(B))}function b(B){return vC(h(B))}function v(B){if(B!=null&&B.name!=null&&B.kind!=null)switch(B.kind){case Hn.SCALAR:return x(B);case Hn.OBJECT:return w(B);case Hn.INTERFACE:return k(B);case Hn.UNION:return _(B);case Hn.ENUM:return N(B);case Hn.INPUT_OBJECT:return O(B)}const q=Ue(B);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${q}.`)}function x(B){return new Ts({name:B.name,description:B.description,specifiedByURL:B.specifiedByURL})}function S(B){if(B.interfaces===null&&B.kind===Hn.INTERFACE)return[];if(!B.interfaces){const q=Ue(B);throw new Error(`Introspection result missing interfaces: ${q}.`)}return B.interfaces.map(b)}function w(B){return new bi({name:B.name,description:B.description,interfaces:()=>S(B),fields:()=>A(B)})}function k(B){return new To({name:B.name,description:B.description,interfaces:()=>S(B),fields:()=>A(B)})}function _(B){if(!B.possibleTypes){const q=Ue(B);throw new Error(`Introspection result missing possibleTypes: ${q}.`)}return new gl({name:B.name,description:B.description,types:()=>B.possibleTypes.map(p)})}function N(B){if(!B.enumValues){const q=Ue(B);throw new Error(`Introspection result missing enumValues: ${q}.`)}return new co({name:B.name,description:B.description,values:dl(B.enumValues,q=>q.name,q=>({description:q.description,deprecationReason:q.deprecationReason}))})}function O(B){if(!B.inputFields){const q=Ue(B);throw new Error(`Introspection result missing inputFields: ${q}.`)}return new So({name:B.name,description:B.description,fields:()=>P(B.inputFields),isOneOf:B.isOneOf})}function A(B){if(!B.fields)throw new Error(`Introspection result missing fields: ${Ue(B)}.`);return dl(B.fields,q=>q.name,L)}function L(B){const q=f(B.type);if(!Nu(q)){const W=Ue(q);throw new Error(`Introspection must provide output type for fields, but received: ${W}.`)}if(!B.args){const W=Ue(B);throw new Error(`Introspection result missing field args: ${W}.`)}return{description:B.description,deprecationReason:B.deprecationReason,type:q,args:P(B.args)}}function P(B){return dl(B,q=>q.name,j)}function j(B){const q=f(B.type);if(!Gi(q)){const Z=Ue(q);throw new Error(`Introspection must provide input type for arguments, but received: ${Z}.`)}const W=B.defaultValue!=null?As(cC(B.defaultValue),q):void 0;return{description:B.description,type:q,defaultValue:W,deprecationReason:B.deprecationReason}}function F(B){if(!B.args){const q=Ue(B);throw new Error(`Introspection result missing directive args: ${q}.`)}if(!B.locations){const q=Ue(B);throw new Error(`Introspection result missing directive locations: ${q}.`)}return new jo({name:B.name,description:B.description,isRepeatable:B.isRepeatable,locations:B.locations.slice(),args:P(B.args)})}}function AP(e,t,n){E2(e),t!=null&&t.kind===Q.DOCUMENT||rn(!1,"Must provide valid Document AST."),(n==null?void 0:n.assumeValid)!==!0&&(n==null?void 0:n.assumeValidSDL)!==!0&&sP(t,e);const r=e.toConfig(),i=F_(r,t,n);return r===i?e:new qc(i)}function F_(e,t,n){var r,i,o,a;const l=[],f=Object.create(null),h=[];let p;const b=[];for(const se of t.definitions)if(se.kind===Q.SCHEMA_DEFINITION)p=se;else if(se.kind===Q.SCHEMA_EXTENSION)b.push(se);else if(xd(se))l.push(se);else if(tv(se)){const fe=se.name.value,ae=f[fe];f[fe]=ae?ae.concat([se]):[se]}else se.kind===Q.DIRECTIVE_DEFINITION&&h.push(se);if(Object.keys(f).length===0&&l.length===0&&h.length===0&&b.length===0&&p==null)return e;const v=Object.create(null);for(const se of e.types)v[se.name]=N(se);for(const se of l){var x;const fe=se.name.value;v[fe]=(x=P_[fe])!==null&&x!==void 0?x:he(se)}const S={query:e.query&&k(e.query),mutation:e.mutation&&k(e.mutation),subscription:e.subscription&&k(e.subscription),...p&&W([p]),...W(b)};return{description:(r=p)===null||r===void 0||(i=r.description)===null||i===void 0?void 0:i.value,...S,types:Object.values(v),directives:[...e.directives.map(_),...h.map(ee)],extensions:Object.create(null),astNode:(o=p)!==null&&o!==void 0?o:e.astNode,extensionASTNodes:e.extensionASTNodes.concat(b),assumeValid:(a=n==null?void 0:n.assumeValid)!==null&&a!==void 0?a:!1};function w(se){return vn(se)?new fr(w(se.ofType)):wt(se)?new Ft(w(se.ofType)):k(se)}function k(se){return v[se.name]}function _(se){const fe=se.toConfig();return new jo({...fe,args:Du(fe.args,q)})}function N(se){if(zc(se)||Bp(se))return se;if(qi(se))return L(se);if(_t(se))return P(se);if(Ot(se))return j(se);if(lr(se))return F(se);if(Xn(se))return A(se);if(sn(se))return O(se);Gr(!1,"Unexpected type: "+Ue(se))}function O(se){var fe;const ae=se.toConfig(),Ee=(fe=f[ae.name])!==null&&fe!==void 0?fe:[];return new So({...ae,fields:()=>({...Du(ae.fields,ve=>({...ve,type:w(ve.type)})),...ue(Ee)}),extensionASTNodes:ae.extensionASTNodes.concat(Ee)})}function A(se){var fe;const ae=se.toConfig(),Ee=(fe=f[se.name])!==null&&fe!==void 0?fe:[];return new co({...ae,values:{...ae.values,...ne(Ee)},extensionASTNodes:ae.extensionASTNodes.concat(Ee)})}function L(se){var fe;const ae=se.toConfig(),Ee=(fe=f[ae.name])!==null&&fe!==void 0?fe:[];let ve=ae.specifiedByURL;for(const ge of Ee){var xe;ve=(xe=j_(ge))!==null&&xe!==void 0?xe:ve}return new Ts({...ae,specifiedByURL:ve,extensionASTNodes:ae.extensionASTNodes.concat(Ee)})}function P(se){var fe;const ae=se.toConfig(),Ee=(fe=f[ae.name])!==null&&fe!==void 0?fe:[];return new bi({...ae,interfaces:()=>[...se.getInterfaces().map(k),...oe(Ee)],fields:()=>({...Du(ae.fields,B),...H(Ee)}),extensionASTNodes:ae.extensionASTNodes.concat(Ee)})}function j(se){var fe;const ae=se.toConfig(),Ee=(fe=f[ae.name])!==null&&fe!==void 0?fe:[];return new To({...ae,interfaces:()=>[...se.getInterfaces().map(k),...oe(Ee)],fields:()=>({...Du(ae.fields,B),...H(Ee)}),extensionASTNodes:ae.extensionASTNodes.concat(Ee)})}function F(se){var fe;const ae=se.toConfig(),Ee=(fe=f[ae.name])!==null&&fe!==void 0?fe:[];return new gl({...ae,types:()=>[...se.getTypes().map(k),...K(Ee)],extensionASTNodes:ae.extensionASTNodes.concat(Ee)})}function B(se){return{...se,type:w(se.type),args:se.args&&Du(se.args,q)}}function q(se){return{...se,type:w(se.type)}}function W(se){const fe={};for(const Ee of se){var ae;const ve=(ae=Ee.operationTypes)!==null&&ae!==void 0?ae:[];for(const xe of ve)fe[xe.operation]=Z(xe.type)}return fe}function Z(se){var fe;const ae=se.name.value,Ee=(fe=P_[ae])!==null&&fe!==void 0?fe:v[ae];if(Ee===void 0)throw new Error(`Unknown type: "${ae}".`);return Ee}function X(se){return se.kind===Q.LIST_TYPE?new fr(X(se.type)):se.kind===Q.NON_NULL_TYPE?new Ft(X(se.type)):Z(se)}function ee(se){var fe;return new jo({name:se.name.value,description:(fe=se.description)===null||fe===void 0?void 0:fe.value,locations:se.locations.map(({value:ae})=>ae),isRepeatable:se.repeatable,args:J(se.arguments),astNode:se})}function H(se){const fe=Object.create(null);for(const ve of se){var ae;const xe=(ae=ve.fields)!==null&&ae!==void 0?ae:[];for(const ge of xe){var Ee;fe[ge.name.value]={type:X(ge.type),description:(Ee=ge.description)===null||Ee===void 0?void 0:Ee.value,args:J(ge.arguments),deprecationReason:pv(ge),astNode:ge}}}return fe}function J(se){const fe=se??[],ae=Object.create(null);for(const ve of fe){var Ee;const xe=X(ve.type);ae[ve.name.value]={type:xe,description:(Ee=ve.description)===null||Ee===void 0?void 0:Ee.value,defaultValue:As(ve.defaultValue,xe),deprecationReason:pv(ve),astNode:ve}}return ae}function ue(se){const fe=Object.create(null);for(const ve of se){var ae;const xe=(ae=ve.fields)!==null&&ae!==void 0?ae:[];for(const ge of xe){var Ee;const Ve=X(ge.type);fe[ge.name.value]={type:Ve,description:(Ee=ge.description)===null||Ee===void 0?void 0:Ee.value,defaultValue:As(ge.defaultValue,Ve),deprecationReason:pv(ge),astNode:ge}}}return fe}function ne(se){const fe=Object.create(null);for(const ve of se){var ae;const xe=(ae=ve.values)!==null&&ae!==void 0?ae:[];for(const ge of xe){var Ee;fe[ge.name.value]={description:(Ee=ge.description)===null||Ee===void 0?void 0:Ee.value,deprecationReason:pv(ge),astNode:ge}}}return fe}function oe(se){return se.flatMap(fe=>{var ae,Ee;return(ae=(Ee=fe.interfaces)===null||Ee===void 0?void 0:Ee.map(Z))!==null&&ae!==void 0?ae:[]})}function K(se){return se.flatMap(fe=>{var ae,Ee;return(ae=(Ee=fe.types)===null||Ee===void 0?void 0:Ee.map(Z))!==null&&ae!==void 0?ae:[]})}function he(se){var fe;const ae=se.name.value,Ee=(fe=f[ae])!==null&&fe!==void 0?fe:[];switch(se.kind){case Q.OBJECT_TYPE_DEFINITION:{var ve;const dt=[se,...Ee];return new bi({name:ae,description:(ve=se.description)===null||ve===void 0?void 0:ve.value,interfaces:()=>oe(dt),fields:()=>H(dt),astNode:se,extensionASTNodes:Ee})}case Q.INTERFACE_TYPE_DEFINITION:{var xe;const dt=[se,...Ee];return new To({name:ae,description:(xe=se.description)===null||xe===void 0?void 0:xe.value,interfaces:()=>oe(dt),fields:()=>H(dt),astNode:se,extensionASTNodes:Ee})}case Q.ENUM_TYPE_DEFINITION:{var ge;const dt=[se,...Ee];return new co({name:ae,description:(ge=se.description)===null||ge===void 0?void 0:ge.value,values:ne(dt),astNode:se,extensionASTNodes:Ee})}case Q.UNION_TYPE_DEFINITION:{var Ve;const dt=[se,...Ee];return new gl({name:ae,description:(Ve=se.description)===null||Ve===void 0?void 0:Ve.value,types:()=>K(dt),astNode:se,extensionASTNodes:Ee})}case Q.SCALAR_TYPE_DEFINITION:{var Xe;return new Ts({name:ae,description:(Xe=se.description)===null||Xe===void 0?void 0:Xe.value,specifiedByURL:j_(se),astNode:se,extensionASTNodes:Ee})}case Q.INPUT_OBJECT_TYPE_DEFINITION:{var et;const dt=[se,...Ee];return new So({name:ae,description:(et=se.description)===null||et===void 0?void 0:et.value,fields:()=>ue(dt),astNode:se,extensionASTNodes:Ee,isOneOf:DP(se)})}}}}const P_=Au([...Vp,...Hp],e=>e.name);function pv(e){const t=Ia(Yg,e);return t==null?void 0:t.reason}function j_(e){const t=Ia(d2,e);return t==null?void 0:t.url}function DP(e){return!!Ia(h2,e)}function mv(e,t){e!=null&&e.kind===Q.DOCUMENT||rn(!1,"Must provide valid Document AST."),(t==null?void 0:t.assumeValid)!==!0&&(t==null?void 0:t.assumeValidSDL)!==!0&&oP(e);const r=F_({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,...vl.filter(o=>r.directives.every(a=>a.name!==o.name))];return new qc({...r,directives:i})}function z2(e,t){const n=zi(e,{noLocation:t==null?void 0:t.noLocation,allowLegacyFragmentVariables:t==null?void 0:t.allowLegacyFragmentVariables});return mv(n,{assumeValidSDL:t==null?void 0:t.assumeValidSDL,assumeValid:t==null?void 0:t.assumeValid})}function NP(e){const t=e.toConfig(),n=dl(q2(t.types),v=>v.name,b);return new qc({...t,types:Object.values(n),directives:q2(t.directives).map(a),query:o(t.query),mutation:o(t.mutation),subscription:o(t.subscription)});function r(v){return vn(v)?new fr(r(v.ofType)):wt(v)?new Ft(r(v.ofType)):i(v)}function i(v){return n[v.name]}function o(v){return v&&i(v)}function a(v){const x=v.toConfig();return new jo({...x,locations:V_(x.locations,S=>S),args:l(x.args)})}function l(v){return gv(v,x=>({...x,type:r(x.type)}))}function f(v){return gv(v,x=>({...x,type:r(x.type),args:x.args&&l(x.args)}))}function h(v){return gv(v,x=>({...x,type:r(x.type)}))}function p(v){return q2(v).map(i)}function b(v){if(qi(v)||zc(v))return v;if(_t(v)){const x=v.toConfig();return new bi({...x,interfaces:()=>p(x.interfaces),fields:()=>f(x.fields)})}if(Ot(v)){const x=v.toConfig();return new To({...x,interfaces:()=>p(x.interfaces),fields:()=>f(x.fields)})}if(lr(v)){const x=v.toConfig();return new gl({...x,types:()=>p(x.types)})}if(Xn(v)){const x=v.toConfig();return new co({...x,values:gv(x.values,S=>S)})}if(sn(v)){const x=v.toConfig();return new So({...x,fields:()=>h(x.fields)})}Gr(!1,"Unexpected type: "+Ue(v))}}function gv(e,t){const n=Object.create(null);for(const r of Object.keys(e).sort(Rp))n[r]=t(e[r]);return n}function q2(e){return V_(e,t=>t.name)}function V_(e,t){return e.slice().sort((n,r)=>{const i=t(n),o=t(r);return Rp(i,o)})}function OP(e){return B_(e,t=>!Qg(t),RP)}function kP(e){return B_(e,Qg,zc)}function RP(e){return!Bp(e)&&!zc(e)}function B_(e,t,n){const r=e.getDirectives().filter(t),i=Object.values(e.getTypeMap()).filter(n);return[MP(e),...r.map(o=>$P(o)),...i.map(o=>$_(o))].filter(Boolean).join(`
`)}function MP(e){if(e.description==null&&LP(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}`),Ds(e)+`schema {
${t.join(`
`)}
}`}function LP(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 $_(e){if(qi(e))return IP(e);if(_t(e))return FP(e);if(Ot(e))return PP(e);if(lr(e))return jP(e);if(Xn(e))return VP(e);if(sn(e))return BP(e);Gr(!1,"Unexpected type: "+Ue(e))}function IP(e){return Ds(e)+`scalar ${e.name}`+UP(e)}function U_(e){const t=e.getInterfaces();return t.length?" implements "+t.map(n=>n.name).join(" & "):""}function FP(e){return Ds(e)+`type ${e.name}`+U_(e)+H_(e)}function PP(e){return Ds(e)+`interface ${e.name}`+U_(e)+H_(e)}function jP(e){const t=e.getTypes(),n=t.length?" = "+t.join(" | "):"";return Ds(e)+"union "+e.name+n}function VP(e){const t=e.getValues().map((n,r)=>Ds(n," ",!r)+" "+n.name+Y2(n.deprecationReason));return Ds(e)+`enum ${e.name}`+G2(t)}function BP(e){const t=Object.values(e.getFields()).map((n,r)=>Ds(n," ",!r)+" "+W2(n));return Ds(e)+`input ${e.name}`+(e.isOneOf?" @oneOf":"")+G2(t)}function H_(e){const t=Object.values(e.getFields()).map((n,r)=>Ds(n," ",!r)+" "+n.name+z_(n.args," ")+": "+String(n.type)+Y2(n.deprecationReason));return G2(t)}function G2(e){return e.length!==0?` {
`+e.join(`
`)+`
}`:""}function z_(e,t=""){return e.length===0?"":e.every(n=>!n.description)?"("+e.map(W2).join(", ")+")":`(
`+e.map((n,r)=>Ds(n," "+t,!r)+" "+t+W2(n)).join(`
`)+`
`+t+")"}function W2(e){const t=ku(e.defaultValue,e.type);let n=e.name+": "+String(e.type);return t&&(n+=` = ${mn(t)}`),n+Y2(e.deprecationReason)}function $P(e){return Ds(e)+"directive @"+e.name+z_(e.args)+(e.isRepeatable?" repeatable":"")+" on "+e.locations.join(" | ")}function Y2(e){return e==null?"":e!==f2?` @deprecated(reason: ${mn({kind:Q.STRING,value:e})})`:" @deprecated"}function UP(e){return e.specifiedByURL==null?"":` @specifiedBy(url: ${mn({kind:Q.STRING,value:e.specifiedByURL})})`}function Ds(e,t="",n=!0){const{description:r}=e;if(r==null)return"";const i=mn({kind:Q.STRING,value:r,block:AI(r)});return(t&&!n?`
`+t:t)+i.replace(/\n/g,`
`+t)+`
`}function HP(e){const t=[];for(const n of e)t.push(...n.definitions);return{kind:Q.DOCUMENT,definitions:t}}function zP(e){const t=[],n=Object.create(null);for(const i of e.definitions)switch(i.kind){case Q.OPERATION_DEFINITION:t.push(i);break;case Q.FRAGMENT_DEFINITION:n[i.name.value]=G_(i.selectionSet);break}const r=Object.create(null);for(const i of t){const o=new Set;for(const l of G_(i.selectionSet))q_(o,n,l);const a=i.name?i.name.value:"";r[a]={kind:Q.DOCUMENT,definitions:e.definitions.filter(l=>l===i||l.kind===Q.FRAGMENT_DEFINITION&&o.has(l.name.value))}}return r}function q_(e,t,n){if(!e.has(n)){e.add(n);const r=t[n];if(r!==void 0)for(const i of r)q_(e,t,i)}}function G_(e){const t=[];return Cr(e,{FragmentSpread(n){t.push(n.name.value)}}),t}function W_(e){const t=lC(e)?e:new kp(e),n=t.body,r=new o2(t);let i="",o=!1;for(;r.advance().kind!==Be.EOF;){const a=r.token,l=a.kind,f=!iC(a.kind);o&&(f||a.kind===Be.SPREAD)&&(i+=" ");const h=n.slice(a.start,a.end);l===Be.BLOCK_STRING?i+=rC(a.value,{minimize:!0}):i+=h,o=f}return i}function qP(e){const t=Y_(e);if(t)throw t;return e}function Y_(e){if(typeof e=="string"||rn(!1,"Expected name to be a string."),e.startsWith("__"))return new Fe(`Name "${e}" must not begin with "__", which is reserved by GraphQL introspection.`);try{rs(e)}catch(t){return t}}var Ir;(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"})(Ir||(Ir={}));var ra;(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"})(ra||(ra={}));function GP(e,t){return Q_(e,t).filter(n=>n.type in Ir)}function WP(e,t){return Q_(e,t).filter(n=>n.type in ra)}function Q_(e,t){return[...QP(e,t),...YP(e,t)]}function YP(e,t){const n=[],r=Ru(e.getDirectives(),t.getDirectives());for(const i of r.removed)n.push({type:Ir.DIRECTIVE_REMOVED,description:`${i.name} was removed.`});for(const[i,o]of r.persisted){const a=Ru(i.args,o.args);for(const l of a.added)ml(l)&&n.push({type:Ir.REQUIRED_DIRECTIVE_ARG_ADDED,description:`A required arg ${l.name} on directive ${i.name} was added.`});for(const l of a.removed)n.push({type:Ir.DIRECTIVE_ARG_REMOVED,description:`${l.name} was removed from ${i.name}.`});i.isRepeatable&&!o.isRepeatable&&n.push({type:Ir.DIRECTIVE_REPEATABLE_REMOVED,description:`Repeatable flag was removed from ${i.name}.`});for(const l of i.locations)o.locations.includes(l)||n.push({type:Ir.DIRECTIVE_LOCATION_REMOVED,description:`${l} was removed from ${i.name}.`})}return n}function QP(e,t){const n=[],r=Ru(Object.values(e.getTypeMap()),Object.values(t.getTypeMap()));for(const i of r.removed)n.push({type:Ir.TYPE_REMOVED,description:Bp(i)?`Standard scalar ${i.name} was removed because it is not referenced anymore.`:`${i.name} was removed.`});for(const[i,o]of r.persisted)Xn(i)&&Xn(o)?n.push(...ZP(i,o)):lr(i)&&lr(o)?n.push(...XP(i,o)):sn(i)&&sn(o)?n.push(...KP(i,o)):_t(i)&&_t(o)?n.push(...X_(i,o),...K_(i,o)):Ot(i)&&Ot(o)?n.push(...X_(i,o),...K_(i,o)):i.constructor!==o.constructor&&n.push({type:Ir.TYPE_CHANGED_KIND,description:`${i.name} changed from ${Z_(i)} to ${Z_(o)}.`});return n}function KP(e,t){const n=[],r=Ru(Object.values(e.getFields()),Object.values(t.getFields()));for(const i of r.added)$g(i)?n.push({type:Ir.REQUIRED_INPUT_FIELD_ADDED,description:`A required field ${i.name} on input type ${e.name} was added.`}):n.push({type:ra.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:Ir.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(const[i,o]of r.persisted)Qp(i.type,o.type)||n.push({type:Ir.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(o.type)}.`});return n}function XP(e,t){const n=[],r=Ru(e.getTypes(),t.getTypes());for(const i of r.added)n.push({type:ra.TYPE_ADDED_TO_UNION,description:`${i.name} was added to union type ${e.name}.`});for(const i of r.removed)n.push({type:Ir.TYPE_REMOVED_FROM_UNION,description:`${i.name} was removed from union type ${e.name}.`});return n}function ZP(e,t){const n=[],r=Ru(e.getValues(),t.getValues());for(const i of r.added)n.push({type:ra.VALUE_ADDED_TO_ENUM,description:`${i.name} was added to enum type ${e.name}.`});for(const i of r.removed)n.push({type:Ir.VALUE_REMOVED_FROM_ENUM,description:`${i.name} was removed from enum type ${e.name}.`});return n}function K_(e,t){const n=[],r=Ru(e.getInterfaces(),t.getInterfaces());for(const i of r.added)n.push({type:ra.IMPLEMENTED_INTERFACE_ADDED,description:`${i.name} added to interfaces implemented by ${e.name}.`});for(const i of r.removed)n.push({type:Ir.IMPLEMENTED_INTERFACE_REMOVED,description:`${e.name} no longer implements interface ${i.name}.`});return n}function X_(e,t){const n=[],r=Ru(Object.values(e.getFields()),Object.values(t.getFields()));for(const i of r.removed)n.push({type:Ir.FIELD_REMOVED,description:`${e.name}.${i.name} was removed.`});for(const[i,o]of r.persisted)n.push(...JP(e,i,o)),Yp(i.type,o.type)||n.push({type:Ir.FIELD_CHANGED_KIND,description:`${e.name}.${i.name} changed type from ${String(i.type)} to ${String(o.type)}.`});return n}function JP(e,t,n){const r=[],i=Ru(t.args,n.args);for(const o of i.removed)r.push({type:Ir.ARG_REMOVED,description:`${e.name}.${t.name} arg ${o.name} was removed.`});for(const[o,a]of i.persisted)if(!Qp(o.type,a.type))r.push({type:Ir.ARG_CHANGED_KIND,description:`${e.name}.${t.name} arg ${o.name} has changed type from ${String(o.type)} to ${String(a.type)}.`});else if(o.defaultValue!==void 0)if(a.defaultValue===void 0)r.push({type:ra.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${o.name} defaultValue was removed.`});else{const f=J_(o.defaultValue,o.type),h=J_(a.defaultValue,a.type);f!==h&&r.push({type:ra.ARG_DEFAULT_VALUE_CHANGE,description:`${e.name}.${t.name} arg ${o.name} has changed defaultValue from ${f} to ${h}.`})}for(const o of i.added)ml(o)?r.push({type:Ir.REQUIRED_ARG_ADDED,description:`A required arg ${o.name} on ${e.name}.${t.name} was added.`}):r.push({type:ra.OPTIONAL_ARG_ADDED,description:`An optional arg ${o.name} on ${e.name}.${t.name} was added.`});return r}function Yp(e,t){return vn(e)?vn(t)&&Yp(e.ofType,t.ofType)||wt(t)&&Yp(e,t.ofType):wt(e)?wt(t)&&Yp(e.ofType,t.ofType):Ou(t)&&e.name===t.name||wt(t)&&Yp(e,t.ofType)}function Qp(e,t){return vn(e)?vn(t)&&Qp(e.ofType,t.ofType):wt(e)?wt(t)&&Qp(e.ofType,t.ofType)||!wt(t)&&Qp(e.ofType,t):Ou(t)&&e.name===t.name}function Z_(e){if(qi(e))return"a Scalar type";if(_t(e))return"an Object type";if(Ot(e))return"an Interface type";if(lr(e))return"a Union type";if(Xn(e))return"an Enum type";if(sn(e))return"an Input type";Gr(!1,"Unexpected type: "+Ue(e))}function J_(e,t){const n=ku(e,t);return n!=null||Gr(!1),mn(nv(n))}function Ru(e,t){const n=[],r=[],i=[],o=Au(e,({name:l})=>l),a=Au(t,({name:l})=>l);for(const l of e){const f=a[l.name];f===void 0?r.push(l):i.push([l,f])}for(const l of t)o[l.name]===void 0&&n.push(l);return{added:n,persisted:i,removed:r}}const ej=Object.freeze(Object.defineProperty({__proto__:null,BREAK:Uc,get BreakingChangeType(){return Ir},DEFAULT_DEPRECATION_REASON:f2,get DangerousChangeType(){return ra},get DirectiveLocation(){return at},ExecutableDefinitionsRule:_2,FieldsOnCorrectTypeRule:kC,FragmentsOnCompositeTypesRule:RC,GRAPHQL_MAX_INT:Hg,GRAPHQL_MIN_INT:zg,GraphQLBoolean:rr,GraphQLDeprecatedDirective:Yg,GraphQLDirective:jo,GraphQLEnumType:co,GraphQLError:Fe,GraphQLFloat:Pp,GraphQLID:jp,GraphQLIncludeDirective:Gg,GraphQLInputObjectType:So,GraphQLInt:Fp,GraphQLInterfaceType:To,GraphQLList:fr,GraphQLNonNull:Ft,GraphQLObjectType:bi,GraphQLOneOfDirective:h2,GraphQLScalarType:Ts,GraphQLSchema:qc,GraphQLSkipDirective:Wg,GraphQLSpecifiedByDirective:d2,GraphQLString:nr,GraphQLUnionType:gl,get Kind(){return Q},KnownArgumentNamesRule:MC,KnownDirectivesRule:A2,KnownFragmentNamesRule:IC,KnownTypeNamesRule:D2,Lexer:o2,Location:Jw,LoneAnonymousOperationRule:PC,LoneSchemaDefinitionRule:jC,MaxIntrospectionDepthRule:VC,NoDeprecatedCustomRule:I_,NoFragmentCyclesRule:BC,NoSchemaIntrospectionCustomRule:wP,NoUndefinedVariablesRule:$C,NoUnusedFragmentsRule:N2,NoUnusedVariablesRule:UC,get OperationTypeNode(){return vi},OverlappingFieldsCanBeMergedRule:zC,PossibleFragmentSpreadsRule:QC,PossibleTypeExtensionsRule:KC,ProvidedRequiredArgumentsRule:XC,ScalarLeafsRule:JC,SchemaMetaFieldDef:ws,SingleFieldSubscriptionsRule:o_,Source:kp,Token:t2,get TokenKind(){return Be},TypeInfo:yl,get TypeKind(){return Hn},TypeMetaFieldDef:Cs,TypeNameMetaFieldDef:_s,UniqueArgumentDefinitionNamesRule:s_,UniqueArgumentNamesRule:P2,UniqueDirectiveNamesRule:a_,UniqueDirectivesPerLocationRule:j2,UniqueEnumValueNamesRule:u_,UniqueFieldDefinitionNamesRule:l_,UniqueFragmentNamesRule:c_,UniqueInputFieldNamesRule:V2,UniqueOperationNamesRule:f_,UniqueOperationTypesRule:d_,UniqueTypeNamesRule:h_,UniqueVariableNamesRule:p_,ValidationContext:E_,ValuesOfCorrectTypeRule:m_,VariablesAreInputTypesRule:g_,VariablesInAllowedPositionRule:v_,__Directive:m2,__DirectiveLocation:g2,__EnumValue:y2,__Field:v2,__InputValue:Up,__Schema:Kg,__Type:Ss,__TypeKind:b2,assertAbstractType:yC,assertCompositeType:fF,assertDirective:gF,assertEnumType:iF,assertEnumValueName:mC,assertInputObjectType:oF,assertInputType:uF,assertInterfaceType:vC,assertLeafType:cF,assertListType:sF,assertName:rs,assertNamedType:hF,assertNonNullType:aF,assertNullableType:bC,assertObjectType:gC,assertOutputType:lF,assertScalarType:nF,assertSchema:E2,assertType:tF,assertUnionType:rF,assertValidName:qP,assertValidSchema:Jg,assertWrappingType:dF,astFromValue:ku,buildASTSchema:mv,buildClientSchema:H2,buildSchema:z2,coerceInputValue:M2,concatAST:HP,createSourceEventStream:L_,defaultFieldResolver:dv,defaultTypeResolver:O_,doTypesOverlap:Ip,execute:uv,executeSync:S_,extendSchema:AP,findBreakingChanges:GP,findDangerousChanges:WP,formatError:SI,getArgumentValues:sv,getDirectiveValues:Ia,getEnterLeaveForKind:yd,getIntrospectionQuery:hv,getLocation:Rg,getNamedType:yn,getNullableType:pl,getOperationAST:U2,getOperationRootType:CP,getVariableValues:n_,getVisitFn:ZI,graphql:yP,graphqlSync:bP,introspectionFromSchema:_P,introspectionTypes:Hp,isAbstractType:cr,isCompositeType:si,isConstValueNode:w2,isDefinitionNode:NF,isDirective:qg,isEnumType:Xn,isEqualType:Ug,isExecutableDefinitionNode:S2,isInputObjectType:sn,isInputType:Gi,isInterfaceType:Ot,isIntrospectionType:zc,isLeafType:yi,isListType:vn,isNamedType:Ou,isNonNullType:wt,isNullableType:Lp,isObjectType:_t,isOutputType:Nu,isRequiredArgument:ml,isRequiredInputField:$g,isScalarType:qi,isSchema:Xg,isSelectionNode:OF,isSpecifiedDirective:Qg,isSpecifiedScalarType:Bp,isType:bd,isTypeDefinitionNode:xd,isTypeExtensionNode:tv,isTypeNode:kF,isTypeSubTypeOf:Hc,isTypeSystemDefinitionNode:ev,isTypeSystemExtensionNode:C2,isUnionType:lr,isValidNameError:Y_,isValueNode:OC,isWrappingType:Mp,lexicographicSortSchema:NP,locatedError:mr,parse:zi,parseConstValue:HI,parseType:zI,parseValue:cC,print:mn,printError:TI,printIntrospectionSchema:kP,printLocation:Kw,printSchema:OP,printSourceLocation:e2,printType:$_,recommendedRules:y_,resolveObjMapThunk:c2,resolveReadonlyArrayThunk:l2,responsePathAsArray:Li,separateOperations:zP,specifiedDirectives:vl,specifiedRules:B2,specifiedScalarTypes:Vp,stripIgnoredCharacters:W_,subscribe:xP,syntaxError:gi,typeFromAST:Mi,validate:Gp,validateSchema:Zg,valueFromAST:As,valueFromASTUntyped:Vg,version:bI,versionInfo:kg,visit:Cr,visitInParallel:u2,visitWithTypeInfo:bl},Symbol.toStringTag,{value:"Module"}));var tj=new TextDecoder;async function nj(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,a=n.indexOf(";",o);i=n.slice(o,a>-1?a:void 0).trim().replace(/"/g,"")}return async function*(o,a,l){let f,h,p,b=o.getReader(),v=!0,x=a.length,S="",w=[];try{let k;e:for(;!(k=await b.read()).done;){let _=tj.decode(k.value);f=S.length,S+=_;let N=_.indexOf(a);for(~N?f+=N:f=S.indexOf(a),w=[];~f;){let O=S.slice(0,f),A=S.slice(f+x);if(h){let L=O.indexOf(`\r
\r
`)+4,P=O.lastIndexOf(`\r
`,L),j=!1,F=O.slice(L,P>-1?void 0:P),B=String(O.slice(0,L)).trim().split(`\r
`),q={},W=B.length;for(;p=B[--W];p=p.split(": "),q[p.shift().toLowerCase()]=p.join(": "));if(p=q["content-type"],p&&~p.indexOf("application/json"))try{F=JSON.parse(F),j=!0}catch{}if(p={headers:q,body:F,json:j},v?yield p:w.push(p),A.slice(0,2)==="--")break e}else a=`\r
`+a,h=x+=2;S=A,f=S.indexOf(a)}w.length&&(yield w)}}finally{w.length&&(yield w),await b.cancel()}}(e.body,`--${i}`)}function Q2(e){return JSON.stringify(e,null,2)}function rj(e){return Og(gd({},e),{message:e.message,stack:e.stack})}function e6(e){return e instanceof Error?rj(e):e}function Kp(e){return Array.isArray(e)?Q2({errors:e.map(t=>e6(t))}):Q2({errors:[e6(e)]})}function K2(e){return Q2(e)}function ij(e,t,n){const r=[];if(!e||!t)return{insertions:r,result:t};let i;try{i=zi(t)}catch{return{insertions:r,result:t}}const o=n||oj,a=new yl(e);return Cr(i,{leave(l){a.leave(l)},enter(l){if(a.enter(l),l.kind==="Field"&&!l.selectionSet){const f=a.getType(),h=t6(uj(f),o);if(h&&l.loc){const p=aj(t,l.loc.start);r.push({index:l.loc.end,string:" "+mn(h).replaceAll(`
`,`
`+p)})}}}}),{insertions:r,result:sj(t,r)}}function oj(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))yi(t[r].type)&&n.push(r);return n}function t6(e,t){const n=yn(e);if(!e||yi(e))return;const r=t(n);if(!(!Array.isArray(r)||r.length===0||!("getFields"in n)))return{kind:Q.SELECTION_SET,selections:r.map(i=>{const o=n.getFields()[i],a=o?o.type:null;return{kind:Q.FIELD,name:{kind:Q.NAME,value:i},selectionSet:t6(a,t)}})}}function sj(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 aj(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 uj(e){if(e)return e}function lj(e,t){var n;const r=new Map,i=[];for(const o of e)if(o.kind==="Field"){const a=t(o),l=r.get(a);if((n=o.directives)!=null&&n.length){const f=gd({},o);i.push(f)}else if(l!=null&&l.selectionSet&&o.selectionSet)l.selectionSet.selections=[...l.selectionSet.selections,...o.selectionSet.selections];else if(!l){const f=gd({},o);r.set(a,f),i.push(f)}}else i.push(o);return i}function n6(e,t,n){var r;const i=n?yn(n).name:null,o=[],a=[];for(let l of t){if(l.kind==="FragmentSpread"){const f=l.name.value;if(!l.directives||l.directives.length===0){if(a.includes(f))continue;a.push(f)}const h=e[l.name.value];if(h){const{typeCondition:p,directives:b,selectionSet:v}=h;l={kind:Q.INLINE_FRAGMENT,typeCondition:p,directives:b,selectionSet:v}}}if(l.kind===Q.INLINE_FRAGMENT&&(!l.directives||((r=l.directives)==null?void 0:r.length)===0)){const f=l.typeCondition?l.typeCondition.name.value:null;if(!f||f===i){o.push(...n6(e,l.selectionSet.selections,n));continue}}o.push(l)}return o}function cj(e,t){const n=t?new yl(t):null,r=Object.create(null);for(const a of e.definitions)a.kind===Q.FRAGMENT_DEFINITION&&(r[a.name.value]=a);const i={SelectionSet(a){const l=n?n.getParentType():null;let{selections:f}=a;return f=n6(r,f,l),Og(gd({},a),{selections:f})},FragmentDefinition(){return null}},o=Cr(e,n?bl(n,i):i);return Cr(o,{SelectionSet(a){let{selections:l}=a;return l=lj(l,f=>f.alias?f.alias.value:f.name.value),Og(gd({},a),{selections:l})},FragmentDefinition(){return null}})}function fj(e,t,n){if(!n||n.length<1)return;const r=n.map(i=>{var o;return(o=i.name)==null?void 0:o.value});if(t&&r.includes(t))return t;if(t&&e){const i=e.map(o=>{var a;return(a=o.name)==null?void 0:a.value}).indexOf(t);if(i!==-1&&i<r.length)return r[i]}return r[0]}function dj(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 hj{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(`${vv}:`)===0&&(n+=1);return n},clear(){for(const n in localStorage)n.indexOf(`${vv}:`)===0&&localStorage.removeItem(n)}}}get(t){if(!this.storage)return null;const n=`${vv}:${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=`${vv}:${t}`;if(n)try{this.storage.setItem(o,n)}catch(a){i=a instanceof Error?a:new Error(`${a}`),r=dj(this.storage,a)}else this.storage.removeItem(o)}return{isQuotaError:r,error:i}}clear(){this.storage&&this.storage.clear()}}const vv="graphiql";class r6{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 pj=1e5;class mj{constructor(t,n){this.storage=t,this.maxHistoryLength=n,this.updateHistory=({query:r,variables:i,headers:o,operationName:a})=>{if(!this.shouldSaveQuery(r,i,o,this.history.fetchRecent()))return;this.history.push({query:r,variables:i,headers:o,operationName:a});const l=this.history.items,f=this.favorite.items;this.queries=l.concat(f)},this.deleteHistory=({query:r,variables:i,headers:o,operationName:a,favorite:l},f=!1)=>{function h(p){const b=p.items.find(v=>v.query===r&&v.variables===i&&v.headers===o&&v.operationName===a);b&&p.delete(b)}(l||f)&&h(this.favorite),(!l||f)&&h(this.history),this.queries=[...this.history.items,...this.favorite.items]},this.history=new r6("queries",this.storage,this.maxHistoryLength),this.favorite=new r6("favorites",this.storage,null),this.queries=[...this.history.fetchAll(),...this.favorite.fetchAll()]}shouldSaveQuery(t,n,r,i){if(!t)return!1;try{zi(t)}catch{return!1}return t.length>pj?!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:a}){const l={query:t,variables:n,headers:r,operationName:i,label:o};a?(l.favorite=!1,this.favorite.delete(l),this.history.push(l)):(l.favorite=!0,this.favorite.push(l),this.history.delete(l)),this.queries=[...this.history.items,...this.favorite.items]}editLabel({query:t,variables:n,headers:r,operationName:i,label:o,favorite:a},l){const f={query:t,variables:n,headers:r,operationName:i,label:o};a?this.favorite.edit(Og(gd({},f),{favorite:a}),l):this.history.edit(f,l),this.queries=[...this.history.items,...this.favorite.items]}}function Yc(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 dr(e,t){return gj(t,i6(e.string))}function gj(e,t){if(!t||t.trim()===""||t.trim()===":"||t.trim()==="{")return X2(e,r=>!r.isDeprecated);const n=e.map(r=>({proximity:vj(i6(r.label),t),entry:r}));return X2(X2(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 X2(e,t){const n=e.filter(t);return n.length===0?e:n}function i6(e){return e.toLowerCase().replaceAll(/\W/g,"")}function vj(e,t){let n=yj(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=e.indexOf(t)===0?0:.5),n}function yj(e,t){let n,r;const i=[],o=e.length,a=t.length;for(n=0;n<=o;n++)i[n]=[n];for(r=1;r<=a;r++)i[0][r]=r;for(n=1;n<=o;n++)for(r=1;r<=a;r++){const l=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]+l),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]+l))}return i[o][a]}const bj=e=>` {
$1
}`,yv=(e,t,n)=>{if(!t)return n??e;const r=yn(t);return _t(r)||sn(r)||vn(r)||cr(r)?e+bj():n??e},o6=(e,t,n)=>{if(vn(t)){const r=yn(t.ofType);return e+`[${yv("",r,"$1")}]`}return yv(e,t,n)},Ej=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}`)}) ${yv("",e.type,`
`)}`};var s6;(function(e){function t(n){return typeof n=="string"}e.is=t})(s6||(s6={}));var Z2;(function(e){function t(n){return typeof n=="string"}e.is=t})(Z2||(Z2={}));var a6;(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})(a6||(a6={}));var bv;(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})(bv||(bv={}));var ia;(function(e){function t(r,i){return r===Number.MAX_VALUE&&(r=bv.MAX_VALUE),i===Number.MAX_VALUE&&(i=bv.MAX_VALUE),{line:r,character:i}}e.create=t;function n(r){let i=r;return Oe.objectLiteral(i)&&Oe.uinteger(i.line)&&Oe.uinteger(i.character)}e.is=n})(ia||(ia={}));var Wr;(function(e){function t(r,i,o,a){if(Oe.uinteger(r)&&Oe.uinteger(i)&&Oe.uinteger(o)&&Oe.uinteger(a))return{start:ia.create(r,i),end:ia.create(o,a)};if(ia.is(r)&&ia.is(i))return{start:r,end:i};throw new Error(`Range#create called with invalid arguments[${r}, ${i}, ${o}, ${a}]`)}e.create=t;function n(r){let i=r;return Oe.objectLiteral(i)&&ia.is(i.start)&&ia.is(i.end)}e.is=n})(Wr||(Wr={}));var Ev;(function(e){function t(r,i){return{uri:r,range:i}}e.create=t;function n(r){let i=r;return Oe.objectLiteral(i)&&Wr.is(i.range)&&(Oe.string(i.uri)||Oe.undefined(i.uri))}e.is=n})(Ev||(Ev={}));var u6;(function(e){function t(r,i,o,a){return{targetUri:r,targetRange:i,targetSelectionRange:o,originSelectionRange:a}}e.create=t;function n(r){let i=r;return Oe.objectLiteral(i)&&Wr.is(i.targetRange)&&Oe.string(i.targetUri)&&Wr.is(i.targetSelectionRange)&&(Wr.is(i.originSelectionRange)||Oe.undefined(i.originSelectionRange))}e.is=n})(u6||(u6={}));var J2;(function(e){function t(r,i,o,a){return{red:r,green:i,blue:o,alpha:a}}e.create=t;function n(r){const i=r;return Oe.objectLiteral(i)&&Oe.numberRange(i.red,0,1)&&Oe.numberRange(i.green,0,1)&&Oe.numberRange(i.blue,0,1)&&Oe.numberRange(i.alpha,0,1)}e.is=n})(J2||(J2={}));var l6;(function(e){function t(r,i){return{range:r,color:i}}e.create=t;function n(r){const i=r;return Oe.objectLiteral(i)&&Wr.is(i.range)&&J2.is(i.color)}e.is=n})(l6||(l6={}));var c6;(function(e){function t(r,i,o){return{label:r,textEdit:i,additionalTextEdits:o}}e.create=t;function n(r){const i=r;return Oe.objectLiteral(i)&&Oe.string(i.label)&&(Oe.undefined(i.textEdit)||wd.is(i))&&(Oe.undefined(i.additionalTextEdits)||Oe.typedArray(i.additionalTextEdits,wd.is))}e.is=n})(c6||(c6={}));var f6;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(f6||(f6={}));var d6;(function(e){function t(r,i,o,a,l,f){const h={startLine:r,endLine:i};return Oe.defined(o)&&(h.startCharacter=o),Oe.defined(a)&&(h.endCharacter=a),Oe.defined(l)&&(h.kind=l),Oe.defined(f)&&(h.collapsedText=f),h}e.create=t;function n(r){const i=r;return Oe.objectLiteral(i)&&Oe.uinteger(i.startLine)&&Oe.uinteger(i.startLine)&&(Oe.undefined(i.startCharacter)||Oe.uinteger(i.startCharacter))&&(Oe.undefined(i.endCharacter)||Oe.uinteger(i.endCharacter))&&(Oe.undefined(i.kind)||Oe.string(i.kind))}e.is=n})(d6||(d6={}));var eE;(function(e){function t(r,i){return{location:r,message:i}}e.create=t;function n(r){let i=r;return Oe.defined(i)&&Ev.is(i.location)&&Oe.string(i.message)}e.is=n})(eE||(eE={}));var h6;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(h6||(h6={}));var p6;(function(e){e.Unnecessary=1,e.Deprecated=2})(p6||(p6={}));var m6;(function(e){function t(n){const r=n;return Oe.objectLiteral(r)&&Oe.string(r.href)}e.is=t})(m6||(m6={}));var xv;(function(e){function t(r,i,o,a,l,f){let h={range:r,message:i};return Oe.defined(o)&&(h.severity=o),Oe.defined(a)&&(h.code=a),Oe.defined(l)&&(h.source=l),Oe.defined(f)&&(h.relatedInformation=f),h}e.create=t;function n(r){var i;let o=r;return Oe.defined(o)&&Wr.is(o.range)&&Oe.string(o.message)&&(Oe.number(o.severity)||Oe.undefined(o.severity))&&(Oe.integer(o.code)||Oe.string(o.code)||Oe.undefined(o.code))&&(Oe.undefined(o.codeDescription)||Oe.string((i=o.codeDescription)===null||i===void 0?void 0:i.href))&&(Oe.string(o.source)||Oe.undefined(o.source))&&(Oe.undefined(o.relatedInformation)||Oe.typedArray(o.relatedInformation,eE.is))}e.is=n})(xv||(xv={}));var Sd;(function(e){function t(r,i,...o){let a={title:r,command:i};return Oe.defined(o)&&o.length>0&&(a.arguments=o),a}e.create=t;function n(r){let i=r;return Oe.defined(i)&&Oe.string(i.title)&&Oe.string(i.command)}e.is=n})(Sd||(Sd={}));var wd;(function(e){function t(o,a){return{range:o,newText:a}}e.replace=t;function n(o,a){return{range:{start:o,end:o},newText:a}}e.insert=n;function r(o){return{range:o,newText:""}}e.del=r;function i(o){const a=o;return Oe.objectLiteral(a)&&Oe.string(a.newText)&&Wr.is(a.range)}e.is=i})(wd||(wd={}));var tE;(function(e){function t(r,i,o){const a={label:r};return i!==void 0&&(a.needsConfirmation=i),o!==void 0&&(a.description=o),a}e.create=t;function n(r){const i=r;return Oe.objectLiteral(i)&&Oe.string(i.label)&&(Oe.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(Oe.string(i.description)||i.description===void 0)}e.is=n})(tE||(tE={}));var Cd;(function(e){function t(n){const r=n;return Oe.string(r)}e.is=t})(Cd||(Cd={}));var g6;(function(e){function t(o,a,l){return{range:o,newText:a,annotationId:l}}e.replace=t;function n(o,a,l){return{range:{start:o,end:o},newText:a,annotationId:l}}e.insert=n;function r(o,a){return{range:o,newText:"",annotationId:a}}e.del=r;function i(o){const a=o;return wd.is(a)&&(tE.is(a.annotationId)||Cd.is(a.annotationId))}e.is=i})(g6||(g6={}));var nE;(function(e){function t(r,i){return{textDocument:r,edits:i}}e.create=t;function n(r){let i=r;return Oe.defined(i)&&aE.is(i.textDocument)&&Array.isArray(i.edits)}e.is=n})(nE||(nE={}));var rE;(function(e){function t(r,i,o){let a={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(a.options=i),o!==void 0&&(a.annotationId=o),a}e.create=t;function n(r){let i=r;return i&&i.kind==="create"&&Oe.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||Oe.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||Oe.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Cd.is(i.annotationId))}e.is=n})(rE||(rE={}));var iE;(function(e){function t(r,i,o,a){let l={kind:"rename",oldUri:r,newUri:i};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(l.options=o),a!==void 0&&(l.annotationId=a),l}e.create=t;function n(r){let i=r;return i&&i.kind==="rename"&&Oe.string(i.oldUri)&&Oe.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||Oe.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||Oe.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Cd.is(i.annotationId))}e.is=n})(iE||(iE={}));var oE;(function(e){function t(r,i,o){let a={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(a.options=i),o!==void 0&&(a.annotationId=o),a}e.create=t;function n(r){let i=r;return i&&i.kind==="delete"&&Oe.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||Oe.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||Oe.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||Cd.is(i.annotationId))}e.is=n})(oE||(oE={}));var sE;(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=>Oe.string(i.kind)?rE.is(i)||iE.is(i)||oE.is(i):nE.is(i)))}e.is=t})(sE||(sE={}));var v6;(function(e){function t(r){return{uri:r}}e.create=t;function n(r){let i=r;return Oe.defined(i)&&Oe.string(i.uri)}e.is=n})(v6||(v6={}));var y6;(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return Oe.defined(i)&&Oe.string(i.uri)&&Oe.integer(i.version)}e.is=n})(y6||(y6={}));var aE;(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return Oe.defined(i)&&Oe.string(i.uri)&&(i.version===null||Oe.integer(i.version))}e.is=n})(aE||(aE={}));var b6;(function(e){function t(r,i,o,a){return{uri:r,languageId:i,version:o,text:a}}e.create=t;function n(r){let i=r;return Oe.defined(i)&&Oe.string(i.uri)&&Oe.string(i.languageId)&&Oe.integer(i.version)&&Oe.string(i.text)}e.is=n})(b6||(b6={}));var uE;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(n){const r=n;return r===e.PlainText||r===e.Markdown}e.is=t})(uE||(uE={}));var Xp;(function(e){function t(n){const r=n;return Oe.objectLiteral(n)&&uE.is(r.kind)&&Oe.string(r.value)}e.is=t})(Xp||(Xp={}));var E6;(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})(E6||(E6={}));var _d;(function(e){e.PlainText=1,e.Snippet=2})(_d||(_d={}));var x6;(function(e){e.Deprecated=1})(x6||(x6={}));var T6;(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&&Oe.string(i.newText)&&Wr.is(i.insert)&&Wr.is(i.replace)}e.is=n})(T6||(T6={}));var Qc;(function(e){e.asIs=1,e.adjustIndentation=2})(Qc||(Qc={}));var S6;(function(e){function t(n){const r=n;return r&&(Oe.string(r.detail)||r.detail===void 0)&&(Oe.string(r.description)||r.description===void 0)}e.is=t})(S6||(S6={}));var w6;(function(e){function t(n){return{label:n}}e.create=t})(w6||(w6={}));var C6;(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(C6||(C6={}));var Tv;(function(e){function t(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function n(r){const i=r;return Oe.string(i)||Oe.objectLiteral(i)&&Oe.string(i.language)&&Oe.string(i.value)}e.is=n})(Tv||(Tv={}));var _6;(function(e){function t(n){let r=n;return!!r&&Oe.objectLiteral(r)&&(Xp.is(r.contents)||Tv.is(r.contents)||Oe.typedArray(r.contents,Tv.is))&&(n.range===void 0||Wr.is(n.range))}e.is=t})(_6||(_6={}));var A6;(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(A6||(A6={}));var D6;(function(e){function t(n,r,...i){let o={label:n};return Oe.defined(r)&&(o.documentation=r),Oe.defined(i)?o.parameters=i:o.parameters=[],o}e.create=t})(D6||(D6={}));var N6;(function(e){e.Text=1,e.Read=2,e.Write=3})(N6||(N6={}));var O6;(function(e){function t(n,r){let i={range:n};return Oe.number(r)&&(i.kind=r),i}e.create=t})(O6||(O6={}));var k6;(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})(k6||(k6={}));var R6;(function(e){e.Deprecated=1})(R6||(R6={}));var M6;(function(e){function t(n,r,i,o,a){let l={name:n,kind:r,location:{uri:o,range:i}};return a&&(l.containerName=a),l}e.create=t})(M6||(M6={}));var L6;(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})(L6||(L6={}));var I6;(function(e){function t(r,i,o,a,l,f){let h={name:r,detail:i,kind:o,range:a,selectionRange:l};return f!==void 0&&(h.children=f),h}e.create=t;function n(r){let i=r;return i&&Oe.string(i.name)&&Oe.number(i.kind)&&Wr.is(i.range)&&Wr.is(i.selectionRange)&&(i.detail===void 0||Oe.string(i.detail))&&(i.deprecated===void 0||Oe.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}e.is=n})(I6||(I6={}));var F6;(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"})(F6||(F6={}));var Sv;(function(e){e.Invoked=1,e.Automatic=2})(Sv||(Sv={}));var P6;(function(e){function t(r,i,o){let a={diagnostics:r};return i!=null&&(a.only=i),o!=null&&(a.triggerKind=o),a}e.create=t;function n(r){let i=r;return Oe.defined(i)&&Oe.typedArray(i.diagnostics,xv.is)&&(i.only===void 0||Oe.typedArray(i.only,Oe.string))&&(i.triggerKind===void 0||i.triggerKind===Sv.Invoked||i.triggerKind===Sv.Automatic)}e.is=n})(P6||(P6={}));var j6;(function(e){function t(r,i,o){let a={title:r},l=!0;return typeof i=="string"?(l=!1,a.kind=i):Sd.is(i)?a.command=i:a.edit=i,l&&o!==void 0&&(a.kind=o),a}e.create=t;function n(r){let i=r;return i&&Oe.string(i.title)&&(i.diagnostics===void 0||Oe.typedArray(i.diagnostics,xv.is))&&(i.kind===void 0||Oe.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||Sd.is(i.command))&&(i.isPreferred===void 0||Oe.boolean(i.isPreferred))&&(i.edit===void 0||sE.is(i.edit))}e.is=n})(j6||(j6={}));var V6;(function(e){function t(r,i){let o={range:r};return Oe.defined(i)&&(o.data=i),o}e.create=t;function n(r){let i=r;return Oe.defined(i)&&Wr.is(i.range)&&(Oe.undefined(i.command)||Sd.is(i.command))}e.is=n})(V6||(V6={}));var B6;(function(e){function t(r,i){return{tabSize:r,insertSpaces:i}}e.create=t;function n(r){let i=r;return Oe.defined(i)&&Oe.uinteger(i.tabSize)&&Oe.boolean(i.insertSpaces)}e.is=n})(B6||(B6={}));var $6;(function(e){function t(r,i,o){return{range:r,target:i,data:o}}e.create=t;function n(r){let i=r;return Oe.defined(i)&&Wr.is(i.range)&&(Oe.undefined(i.target)||Oe.string(i.target))}e.is=n})($6||($6={}));var U6;(function(e){function t(r,i){return{range:r,parent:i}}e.create=t;function n(r){let i=r;return Oe.objectLiteral(i)&&Wr.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=n})(U6||(U6={}));var H6;(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"})(H6||(H6={}));var z6;(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"})(z6||(z6={}));var q6;(function(e){function t(n){const r=n;return Oe.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})(q6||(q6={}));var G6;(function(e){function t(r,i){return{range:r,text:i}}e.create=t;function n(r){const i=r;return i!=null&&Wr.is(i.range)&&Oe.string(i.text)}e.is=n})(G6||(G6={}));var W6;(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&&Wr.is(i.range)&&Oe.boolean(i.caseSensitiveLookup)&&(Oe.string(i.variableName)||i.variableName===void 0)}e.is=n})(W6||(W6={}));var Y6;(function(e){function t(r,i){return{range:r,expression:i}}e.create=t;function n(r){const i=r;return i!=null&&Wr.is(i.range)&&(Oe.string(i.expression)||i.expression===void 0)}e.is=n})(Y6||(Y6={}));var Q6;(function(e){function t(r,i){return{frameId:r,stoppedLocation:i}}e.create=t;function n(r){const i=r;return Oe.defined(i)&&Wr.is(r.stoppedLocation)}e.is=n})(Q6||(Q6={}));var lE;(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(lE||(lE={}));var cE;(function(e){function t(r){return{value:r}}e.create=t;function n(r){const i=r;return Oe.objectLiteral(i)&&(i.tooltip===void 0||Oe.string(i.tooltip)||Xp.is(i.tooltip))&&(i.location===void 0||Ev.is(i.location))&&(i.command===void 0||Sd.is(i.command))}e.is=n})(cE||(cE={}));var K6;(function(e){function t(r,i,o){const a={position:r,label:i};return o!==void 0&&(a.kind=o),a}e.create=t;function n(r){const i=r;return Oe.objectLiteral(i)&&ia.is(i.position)&&(Oe.string(i.label)||Oe.typedArray(i.label,cE.is))&&(i.kind===void 0||lE.is(i.kind))&&i.textEdits===void 0||Oe.typedArray(i.textEdits,wd.is)&&(i.tooltip===void 0||Oe.string(i.tooltip)||Xp.is(i.tooltip))&&(i.paddingLeft===void 0||Oe.boolean(i.paddingLeft))&&(i.paddingRight===void 0||Oe.boolean(i.paddingRight))}e.is=n})(K6||(K6={}));var X6;(function(e){function t(n){return{kind:"snippet",value:n}}e.createSnippet=t})(X6||(X6={}));var Z6;(function(e){function t(n,r,i,o){return{insertText:n,filterText:r,range:i,command:o}}e.create=t})(Z6||(Z6={}));var J6;(function(e){function t(n){return{items:n}}e.create=t})(J6||(J6={}));var e4;(function(e){e.Invoked=0,e.Automatic=1})(e4||(e4={}));var t4;(function(e){function t(n,r){return{range:n,text:r}}e.create=t})(t4||(t4={}));var n4;(function(e){function t(n,r){return{triggerKind:n,selectedCompletionInfo:r}}e.create=t})(n4||(n4={}));var r4;(function(e){function t(n){const r=n;return Oe.objectLiteral(r)&&Z2.is(r.uri)&&Oe.string(r.name)}e.is=t})(r4||(r4={}));var i4;(function(e){function t(o,a,l,f){return new xj(o,a,l,f)}e.create=t;function n(o){let a=o;return!!(Oe.defined(a)&&Oe.string(a.uri)&&(Oe.undefined(a.languageId)||Oe.string(a.languageId))&&Oe.uinteger(a.lineCount)&&Oe.func(a.getText)&&Oe.func(a.positionAt)&&Oe.func(a.offsetAt))}e.is=n;function r(o,a){let l=o.getText(),f=i(a,(p,b)=>{let v=p.range.start.line-b.range.start.line;return v===0?p.range.start.character-b.range.start.character:v}),h=l.length;for(let p=f.length-1;p>=0;p--){let b=f[p],v=o.offsetAt(b.range.start),x=o.offsetAt(b.range.end);if(x<=h)l=l.substring(0,v)+b.newText+l.substring(x,l.length);else throw new Error("Overlapping edit");h=v}return l}e.applyEdits=r;function i(o,a){if(o.length<=1)return o;const l=o.length/2|0,f=o.slice(0,l),h=o.slice(l);i(f,a),i(h,a);let p=0,b=0,v=0;for(;p<f.length&&b<h.length;)a(f[p],h[b])<=0?o[v++]=f[p++]:o[v++]=h[b++];for(;p<f.length;)o[v++]=f[p++];for(;b<h.length;)o[v++]=h[b++];return o}})(i4||(i4={}));class xj{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 ia.create(0,t);for(;r<i;){let a=Math.floor((r+i)/2);n[a]>t?i=a:r=a+1}let o=r-1;return ia.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 Oe;(function(e){const t=Object.prototype.toString;function n(x){return typeof x<"u"}e.defined=n;function r(x){return typeof x>"u"}e.undefined=r;function i(x){return x===!0||x===!1}e.boolean=i;function o(x){return t.call(x)==="[object String]"}e.string=o;function a(x){return t.call(x)==="[object Number]"}e.number=a;function l(x,S,w){return t.call(x)==="[object Number]"&&S<=x&&x<=w}e.numberRange=l;function f(x){return t.call(x)==="[object Number]"&&-2147483648<=x&&x<=2147483647}e.integer=f;function h(x){return t.call(x)==="[object Number]"&&0<=x&&x<=2147483647}e.uinteger=h;function p(x){return t.call(x)==="[object Function]"}e.func=p;function b(x){return x!==null&&typeof x=="object"}e.objectLiteral=b;function v(x,S){return Array.isArray(x)&&x.every(S)}e.typedArray=v})(Oe||(Oe={}));class fE{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,a=null;return typeof n=="string"?(a=new RegExp(n,i?"i":"g").test(this._sourceText.slice(this._pos,this._pos+n.length)),o=n):n instanceof RegExp&&(a=this._sourceText.slice(this._pos).match(n),o=a==null?void 0:a[0]),a!=null&&(typeof n=="string"||a instanceof Array&&this._sourceText.startsWith(a[0],this._pos))?(r&&(this._start=this._pos,o&&o.length&&(this._pos+=o.length)),a):!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 gr(e){return{ofRule:e}}function an(e,t){return{ofRule:e,isList:!0,separator:t}}function Tj(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 is(e,t){return{style:t,match:n=>n.kind===e}}function ht(e,t){return{style:t||"punctuation",match:n=>n.kind==="Punctuation"&&n.value===e}}const o4=e=>e===" "||e===" "||e===","||e===`
`||e==="\r"||e==="\uFEFF"||e===" ",s4={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:/^#.*/},a4={Document:[an("Definition")],Definition(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return Q.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:[Wi("query"),gr(ir("def")),gr("VariableDefinitions"),an("Directive"),"SelectionSet"],Mutation:[Wi("mutation"),gr(ir("def")),gr("VariableDefinitions"),an("Directive"),"SelectionSet"],Subscription:[Wi("subscription"),gr(ir("def")),gr("VariableDefinitions"),an("Directive"),"SelectionSet"],VariableDefinitions:[ht("("),an("VariableDefinition"),ht(")")],VariableDefinition:["Variable",ht(":"),"Type",gr("DefaultValue")],Variable:[ht("$","variable"),ir("variable")],DefaultValue:[ht("="),"Value"],SelectionSet:[ht("{"),an("Selection"),ht("}")],Selection(e,t){return e.value==="..."?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field"},AliasedField:[ir("property"),ht(":"),ir("qualifier"),gr("Arguments"),an("Directive"),gr("SelectionSet")],Field:[ir("property"),gr("Arguments"),an("Directive"),gr("SelectionSet")],Arguments:[ht("("),an("Argument"),ht(")")],Argument:[ir("attribute"),ht(":"),"Value"],FragmentSpread:[ht("..."),ir("def"),an("Directive")],InlineFragment:[ht("..."),gr("TypeCondition"),an("Directive"),"SelectionSet"],FragmentDefinition:[Wi("fragment"),gr(Tj(ir("def"),[Wi("on")])),"TypeCondition",an("Directive"),"SelectionSet"],TypeCondition:[Wi("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:[is("Number","number")],StringValue:[{style:"string",match:e=>e.kind==="String",update(e,t){t.value.startsWith('"""')&&(e.inBlockstring=!t.value.slice(3).endsWith('"""'))}}],BooleanValue:[is("Name","builtin")],NullValue:[is("Name","keyword")],EnumValue:[ir("string-2")],ListValue:[ht("["),an("Value"),ht("]")],ObjectValue:[ht("{"),an("ObjectField"),ht("}")],ObjectField:[ir("attribute"),ht(":"),"Value"],Type(e){return e.value==="["?"ListType":"NonNullType"},ListType:[ht("["),"Type",ht("]"),gr(ht("!"))],NonNullType:["NamedType",gr(ht("!"))],NamedType:[Sj("atom")],Directive:[ht("@","meta"),ir("meta"),gr("Arguments")],DirectiveDef:[Wi("directive"),ht("@","meta"),ir("meta"),gr("ArgumentsDef"),Wi("on"),an("DirectiveLocation",ht("|"))],InterfaceDef:[Wi("interface"),ir("atom"),gr("Implements"),an("Directive"),ht("{"),an("FieldDef"),ht("}")],Implements:[Wi("implements"),an("NamedType",ht("&"))],DirectiveLocation:[ir("string-2")],SchemaDef:[Wi("schema"),an("Directive"),ht("{"),an("OperationTypeDef"),ht("}")],OperationTypeDef:[ir("keyword"),ht(":"),ir("atom")],ScalarDef:[Wi("scalar"),ir("atom"),an("Directive")],ObjectTypeDef:[Wi("type"),ir("atom"),gr("Implements"),an("Directive"),ht("{"),an("FieldDef"),ht("}")],FieldDef:[ir("property"),gr("ArgumentsDef"),ht(":"),"Type",an("Directive")],ArgumentsDef:[ht("("),an("InputValueDef"),ht(")")],InputValueDef:[ir("attribute"),ht(":"),"Type",gr("DefaultValue"),an("Directive")],UnionDef:[Wi("union"),ir("atom"),an("Directive"),ht("="),an("UnionMember",ht("|"))],UnionMember:["NamedType"],EnumDef:[Wi("enum"),ir("atom"),an("Directive"),ht("{"),an("EnumValueDef"),ht("}")],EnumValueDef:[ir("string-2"),an("Directive")],InputDef:[Wi("input"),ir("atom"),an("Directive"),ht("{"),an("InputValueDef"),ht("}")],ExtendDef:[Wi("extend"),"ExtensionDefinition"],ExtensionDefinition(e){switch(e.value){case"schema":return Q.SCHEMA_EXTENSION;case"scalar":return Q.SCALAR_TYPE_EXTENSION;case"type":return Q.OBJECT_TYPE_EXTENSION;case"interface":return Q.INTERFACE_TYPE_EXTENSION;case"union":return Q.UNION_TYPE_EXTENSION;case"enum":return Q.ENUM_TYPE_EXTENSION;case"input":return Q.INPUT_OBJECT_TYPE_EXTENSION}},[Q.SCHEMA_EXTENSION]:["SchemaDef"],[Q.SCALAR_TYPE_EXTENSION]:["ScalarDef"],[Q.OBJECT_TYPE_EXTENSION]:["ObjectTypeDef"],[Q.INTERFACE_TYPE_EXTENSION]:["InterfaceDef"],[Q.UNION_TYPE_EXTENSION]:["UnionDef"],[Q.ENUM_TYPE_EXTENSION]:["EnumDef"],[Q.INPUT_OBJECT_TYPE_EXTENSION]:["InputDef"]};function Wi(e){return{style:"keyword",match:t=>t.kind==="Name"&&t.value===e}}function ir(e){return{style:e,match:t=>t.kind==="Name",update(t,n){t.name=n.value}}}function Sj(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 Zp(e={eatWhitespace:t=>t.eatWhile(o4),lexRules:s4,parseRules:a4,editorConfig:{}}){return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeparator:!1,prevState:null};return Jp(e.parseRules,t,Q.DOCUMENT),t},token(t,n){return wj(t,n,e)}}}function wj(e,t,n){var r;if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");const{lexRules:i,parseRules:o,eatWhitespace:a,editorConfig:l}=n;if(t.rule&&t.rule.length===0?hE(t):t.needsAdvance&&(t.needsAdvance=!1,pE(t,!0)),e.sol()){const p=(l==null?void 0:l.tabSize)||2;t.indentLevel=Math.floor(e.indentation()/p)}if(a(e))return"ws";const f=_j(i,e);if(!f)return e.match(/\S+/)||e.match(/\s/),Jp(dE,t,"Invalid"),"invalidchar";if(f.kind==="Comment")return Jp(dE,t,"Comment"),"comment";const h=u4({},t);if(f.kind==="Punctuation"){if(/^[{([]/.test(f.value))t.indentLevel!==void 0&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\]]/.test(f.value)){const p=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&p.length>0&&p.at(-1)<t.indentLevel&&(t.indentLevel=p.at(-1))}}for(;t.rule;){let p=typeof t.rule=="function"?t.step===0?t.rule(f,e):null:t.rule[t.step];if(t.needsSeparator&&(p=p==null?void 0:p.separator),p){if(p.ofRule&&(p=p.ofRule),typeof p=="string"){Jp(o,t,p);continue}if(!((r=p.match)===null||r===void 0)&&r.call(p,f))return p.update&&p.update(t,f),f.kind==="Punctuation"?pE(t,!0):t.needsAdvance=!0,p.style}Cj(t)}return u4(t,h),Jp(dE,t,"Invalid"),"invalidchar"}function u4(e,t){const n=Object.keys(t);for(let r=0;r<n.length;r++)e[n[r]]=t[n[r]];return e}const dE={Invalid:[],Comment:[]};function Jp(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 hE(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 pE(e,t){var n;if(l4(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);)hE(e),e.rule&&(l4(e)?!((n=e.rule)===null||n===void 0)&&n[e.step].separator&&(e.needsSeparator=!e.needsSeparator):(e.needsSeparator=!1,e.step++))}function l4(e){const t=Array.isArray(e.rule)&&typeof e.rule[e.step]!="string"&&e.rule[e.step];return t&&t.isList}function Cj(e){for(;e.rule&&!(Array.isArray(e.rule)&&e.rule[e.step].ofRule);)hE(e);e.rule&&pE(e,!1)}function _j(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 wv(e,t){const n=e.split(`
`),r=Zp();let i=r.startState(),o="",a=new fE("");for(let l=0;l<n.length;l++){for(a=new fE(n[l]);!a.eol()&&(o=r.token(a,i),t(a,i,o,l)!=="BREAK"););t(a,i,o,l),i.kind||(i=r.startState())}return{start:a.getStartOfToken(),end:a.getCurrentPosition(),string:a.current(),state:i,style:o}}var Mu;(function(e){e.TYPE_SYSTEM="TYPE_SYSTEM",e.EXECUTABLE="EXECUTABLE",e.UNKNOWN="UNKNOWN"})(Mu||(Mu={}));const Aj=[Q.SCHEMA_DEFINITION,Q.OPERATION_TYPE_DEFINITION,Q.SCALAR_TYPE_DEFINITION,Q.OBJECT_TYPE_DEFINITION,Q.INTERFACE_TYPE_DEFINITION,Q.UNION_TYPE_DEFINITION,Q.ENUM_TYPE_DEFINITION,Q.INPUT_OBJECT_TYPE_DEFINITION,Q.DIRECTIVE_DEFINITION,Q.SCHEMA_EXTENSION,Q.SCALAR_TYPE_EXTENSION,Q.OBJECT_TYPE_EXTENSION,Q.INTERFACE_TYPE_EXTENSION,Q.UNION_TYPE_EXTENSION,Q.ENUM_TYPE_EXTENSION,Q.INPUT_OBJECT_TYPE_EXTENSION],Dj=e=>{let t=Mu.UNKNOWN;if(e)try{Cr(zi(e),{enter(n){if(n.kind==="Document"){t=Mu.EXECUTABLE;return}return Aj.includes(n.kind)?(t=Mu.TYPE_SYSTEM,Uc):!1}})}catch{return t}return t};function Nj(e,t){return t!=null&&t.endsWith(".graphqls")?Mu.TYPE_SYSTEM:Dj(e)}function Oj(e,t,n=0){let r=null,i=null,o=null;const a=wv(e,(l,f,h,p)=>{if(!(p!==t.line||l.getCurrentPosition()+n<t.character+1))return r=h,i=Object.assign({},f),o=l.current(),"BREAK"});return{start:a.start,end:a.end,string:o||a.string,state:i||a.state,style:r||a.style}}function kj(e,t,n,r,i){const o=r||Oj(e,t,1);if(!o)return null;const a=o.state.kind==="Invalid"?o.state.prevState:o.state;if(!a)return null;const l=Mj(n,o.state),f=(i==null?void 0:i.mode)||Nj(e,i==null?void 0:i.uri);return{token:o,state:a,typeInfo:l,mode:f}}function c4(e,t,n){return n===ws.name&&e.getQueryType()===t?ws:n===Cs.name&&e.getQueryType()===t?Cs:n===_s.name&&si(t)?_s:"getFields"in t?t.getFields()[n]:null}function f4(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 Rj(e){let t;return f4(e,n=>{switch(n.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=n;break}}),t}function Mj(e,t){let n,r,i,o,a,l,f,h,p,b,v;return f4(t,x=>{var S;switch(x.kind){case Je.QUERY:case"ShortQuery":b=e.getQueryType();break;case Je.MUTATION:b=e.getMutationType();break;case Je.SUBSCRIPTION:b=e.getSubscriptionType();break;case Je.INLINE_FRAGMENT:case Je.FRAGMENT_DEFINITION:x.type&&(b=e.getType(x.type));break;case Je.FIELD:case Je.ALIASED_FIELD:{!b||!x.name?a=null:(a=p?c4(e,p,x.name):null,b=a?a.type:null);break}case Je.SELECTION_SET:p=yn(b);break;case Je.DIRECTIVE:i=x.name?e.getDirective(x.name):null;break;case Je.INTERFACE_DEF:x.name&&(f=null,v=new To({name:x.name,interfaces:[],fields:{}}));break;case Je.OBJECT_TYPE_DEF:x.name&&(v=null,f=new bi({name:x.name,interfaces:[],fields:{}}));break;case Je.ARGUMENTS:{if(x.prevState)switch(x.prevState.kind){case Je.FIELD:r=a&&a.args;break;case Je.DIRECTIVE:r=i&&i.args;break;case Je.ALIASED_FIELD:{const O=(S=x.prevState)===null||S===void 0?void 0:S.name;if(!O){r=null;break}const A=p?c4(e,p,O):null;if(!A){r=null;break}r=A.args;break}default:r=null;break}else r=null;break}case Je.ARGUMENT:if(r){for(let O=0;O<r.length;O++)if(r[O].name===x.name){n=r[O];break}}l=n==null?void 0:n.type;break;case Je.VARIABLE_DEFINITION:case Je.VARIABLE:b=l;break;case Je.ENUM_VALUE:const w=yn(l);o=w instanceof co?w.getValues().find(O=>O.value===x.name):null;break;case Je.LIST_VALUE:const k=pl(l);l=k instanceof fr?k.ofType:null;break;case Je.OBJECT_VALUE:const _=yn(l);h=_ instanceof So?_.getFields():null;break;case Je.OBJECT_FIELD:const N=x.name&&h?h[x.name]:null;l=N==null?void 0:N.type,a=N,b=a?a.type:null;break;case Je.NAMED_TYPE:x.name&&(b=e.getType(x.name));break}}),{argDef:n,argDefs:r,directiveDef:i,enumValue:o,fieldDef:a,inputType:l,objectFieldDefs:h,parentType:p,type:b,interfaceDef:v,objectTypeDef:f}}const Lj={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"},Je=Object.assign(Object.assign({},Q),Lj);var cn;(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})(cn||(cn={}));const mE={command:"editor.action.triggerSuggest",title:"Suggestions"},Ij=e=>{const t=[];if(e)try{Cr(zi(e),{FragmentDefinition(n){t.push(n)}})}catch{return[]}return t};function Fj(e,t,n,r,i,o){var a;const l=Object.assign(Object.assign({},o),{schema:e}),f=kj(t,n,e,r,o);if(!f)return[];const{state:h,typeInfo:p,mode:b,token:v}=f,{kind:x,step:S,prevState:w}=h;if(x===Je.DOCUMENT)return b===Mu.TYPE_SYSTEM?Pj(v):b===Mu.EXECUTABLE?jj(v):Vj(v);if(x===Je.EXTEND_DEF)return Bj(v);if(((a=w==null?void 0:w.prevState)===null||a===void 0?void 0:a.kind)===Je.EXTENSION_DEFINITION&&h.name)return dr(v,[]);if((w==null?void 0:w.kind)===Q.SCALAR_TYPE_EXTENSION)return dr(v,Object.values(e.getTypeMap()).filter(qi).map(_=>({label:_.name,kind:cn.Function})));if((w==null?void 0:w.kind)===Q.OBJECT_TYPE_EXTENSION)return dr(v,Object.values(e.getTypeMap()).filter(_=>_t(_)&&!_.name.startsWith("__")).map(_=>({label:_.name,kind:cn.Function})));if((w==null?void 0:w.kind)===Q.INTERFACE_TYPE_EXTENSION)return dr(v,Object.values(e.getTypeMap()).filter(Ot).map(_=>({label:_.name,kind:cn.Function})));if((w==null?void 0:w.kind)===Q.UNION_TYPE_EXTENSION)return dr(v,Object.values(e.getTypeMap()).filter(lr).map(_=>({label:_.name,kind:cn.Function})));if((w==null?void 0:w.kind)===Q.ENUM_TYPE_EXTENSION)return dr(v,Object.values(e.getTypeMap()).filter(_=>Xn(_)&&!_.name.startsWith("__")).map(_=>({label:_.name,kind:cn.Function})));if((w==null?void 0:w.kind)===Q.INPUT_OBJECT_TYPE_EXTENSION)return dr(v,Object.values(e.getTypeMap()).filter(sn).map(_=>({label:_.name,kind:cn.Function})));if(x===Je.IMPLEMENTS||x===Je.NAMED_TYPE&&(w==null?void 0:w.kind)===Je.IMPLEMENTS)return Hj(v,h,e,t,p);if(x===Je.SELECTION_SET||x===Je.FIELD||x===Je.ALIASED_FIELD)return $j(v,p,l);if(x===Je.ARGUMENTS||x===Je.ARGUMENT&&S===0){const{argDefs:_}=p;if(_)return dr(v,_.map(N=>{var O;return{label:N.name,insertText:o6(N.name+": ",N.type),insertTextMode:Qc.adjustIndentation,insertTextFormat:_d.Snippet,command:mE,labelDetails:{detail:" "+String(N.type)},documentation:(O=N.description)!==null&&O!==void 0?O:void 0,kind:cn.Variable,type:N.type}}))}if((x===Je.OBJECT_VALUE||x===Je.OBJECT_FIELD&&S===0)&&p.objectFieldDefs){const _=Yc(p.objectFieldDefs),N=x===Je.OBJECT_VALUE?cn.Value:cn.Field;return dr(v,_.map(O=>{var A;return{label:O.name,detail:String(O.type),documentation:(A=O==null?void 0:O.description)!==null&&A!==void 0?A:void 0,kind:N,type:O.type,insertText:o6(O.name+": ",O.type),insertTextMode:Qc.adjustIndentation,insertTextFormat:_d.Snippet,command:mE}}))}if(x===Je.ENUM_VALUE||x===Je.LIST_VALUE&&S===1||x===Je.OBJECT_FIELD&&S===2||x===Je.ARGUMENT&&S===2)return Uj(v,p,t,e);if(x===Je.VARIABLE&&S===1){const _=yn(p.inputType),N=h4(t,e,v);return dr(v,N.filter(O=>O.detail===(_==null?void 0:_.name)))}if(x===Je.TYPE_CONDITION&&S===1||x===Je.NAMED_TYPE&&w!=null&&w.kind===Je.TYPE_CONDITION)return zj(v,p,e);if(x===Je.FRAGMENT_SPREAD&&S===1)return qj(v,p,e,t,Array.isArray(i)?i:Ij(i));const k=p4(h);return k.kind===Je.FIELD_DEF?dr(v,Object.values(e.getTypeMap()).filter(_=>Nu(_)&&!_.name.startsWith("__")).map(_=>({label:_.name,kind:cn.Function,insertText:o!=null&&o.fillLeafsOnComplete?_.name+`
`:_.name,insertTextMode:Qc.adjustIndentation}))):k.kind===Je.INPUT_VALUE_DEF&&S===2?dr(v,Object.values(e.getTypeMap()).filter(_=>Gi(_)&&!_.name.startsWith("__")).map(_=>({label:_.name,kind:cn.Function,insertText:o!=null&&o.fillLeafsOnComplete?_.name+`
$1`:_.name,insertTextMode:Qc.adjustIndentation,insertTextFormat:_d.Snippet}))):x===Je.VARIABLE_DEFINITION&&S===2||x===Je.LIST_TYPE&&S===1||x===Je.NAMED_TYPE&&w&&(w.kind===Je.VARIABLE_DEFINITION||w.kind===Je.LIST_TYPE||w.kind===Je.NON_NULL_TYPE)?Yj(v,e):x===Je.DIRECTIVE?Qj(v,h,e):x===Je.DIRECTIVE_DEF?Kj(v,h,e):[]}const gE=[{label:"type",kind:cn.Function},{label:"interface",kind:cn.Function},{label:"union",kind:cn.Function},{label:"input",kind:cn.Function},{label:"scalar",kind:cn.Function},{label:"schema",kind:cn.Function}],d4=[{label:"query",kind:cn.Function},{label:"mutation",kind:cn.Function},{label:"subscription",kind:cn.Function},{label:"fragment",kind:cn.Function},{label:"{",kind:cn.Constructor}];function Pj(e){return dr(e,[{label:"extend",kind:cn.Function},...gE])}function jj(e){return dr(e,d4)}function Vj(e){return dr(e,[{label:"extend",kind:cn.Function},...d4,...gE])}function Bj(e){return dr(e,gE)}function $j(e,t,n){var r;if(t.parentType){const{parentType:i}=t;let o=[];return"getFields"in i&&(o=Yc(i.getFields())),si(i)&&o.push(_s),i===((r=n==null?void 0:n.schema)===null||r===void 0?void 0:r.getQueryType())&&o.push(ws,Cs),dr(e,o.map((a,l)=>{var f;const h={sortText:String(l)+a.name,label:a.name,detail:String(a.type),documentation:(f=a.description)!==null&&f!==void 0?f:void 0,deprecated:!!a.deprecationReason,isDeprecated:!!a.deprecationReason,deprecationReason:a.deprecationReason,kind:cn.Field,labelDetails:{detail:" "+a.type.toString()},type:a.type};return n!=null&&n.fillLeafsOnComplete&&(h.insertText=Ej(a),h.insertText||(h.insertText=yv(a.name,a.type,a.name+(e.state.needsAdvance?"":`
`))),h.insertText&&(h.insertTextFormat=_d.Snippet,h.insertTextMode=Qc.adjustIndentation,h.command=mE)),h}))}return[]}function Uj(e,t,n,r){const i=yn(t.inputType),o=h4(n,r,e).filter(a=>a.detail===(i==null?void 0:i.name));if(i instanceof co){const a=i.getValues();return dr(e,a.map(l=>{var f;return{label:l.name,detail:String(i),documentation:(f=l.description)!==null&&f!==void 0?f:void 0,deprecated:!!l.deprecationReason,isDeprecated:!!l.deprecationReason,deprecationReason:l.deprecationReason,kind:cn.EnumMember,type:i}}).concat(o))}return i===rr?dr(e,o.concat([{label:"true",detail:String(rr),documentation:"Not false.",kind:cn.Variable,type:rr},{label:"false",detail:String(rr),documentation:"Not true.",kind:cn.Variable,type:rr}])):o}function Hj(e,t,n,r,i){if(t.needsSeparator)return[];const o=n.getTypeMap(),a=Yc(o).filter(Ot),l=a.map(({name:x})=>x),f=new Set;wv(r,(x,S)=>{var w,k,_,N,O;if(S.name&&(S.kind===Je.INTERFACE_DEF&&!l.includes(S.name)&&f.add(S.name),S.kind===Je.NAMED_TYPE&&((w=S.prevState)===null||w===void 0?void 0:w.kind)===Je.IMPLEMENTS)){if(i.interfaceDef){if((k=i.interfaceDef)===null||k===void 0?void 0:k.getInterfaces().find(({name:j})=>j===S.name))return;const L=n.getType(S.name),P=(_=i.interfaceDef)===null||_===void 0?void 0:_.toConfig();i.interfaceDef=new To(Object.assign(Object.assign({},P),{interfaces:[...P.interfaces,L||new To({name:S.name,fields:{}})]}))}else if(i.objectTypeDef){if((N=i.objectTypeDef)===null||N===void 0?void 0:N.getInterfaces().find(({name:j})=>j===S.name))return;const L=n.getType(S.name),P=(O=i.objectTypeDef)===null||O===void 0?void 0:O.toConfig();i.objectTypeDef=new bi(Object.assign(Object.assign({},P),{interfaces:[...P.interfaces,L||new To({name:S.name,fields:{}})]}))}}});const h=i.interfaceDef||i.objectTypeDef,b=((h==null?void 0:h.getInterfaces())||[]).map(({name:x})=>x),v=a.concat([...f].map(x=>({name:x}))).filter(({name:x})=>x!==(h==null?void 0:h.name)&&!b.includes(x));return dr(e,v.map(x=>{const S={label:x.name,kind:cn.Interface,type:x};return x!=null&&x.description&&(S.documentation=x.description),S}))}function zj(e,t,n,r){let i;if(t.parentType)if(cr(t.parentType)){const o=yC(t.parentType),a=n.getPossibleTypes(o),l=Object.create(null);for(const f of a)for(const h of f.getInterfaces())l[h.name]=h;i=a.concat(Yc(l))}else i=[t.parentType];else{const o=n.getTypeMap();i=Yc(o).filter(a=>si(a)&&!a.name.startsWith("__"))}return dr(e,i.map(o=>{const a=yn(o);return{label:String(o),documentation:(a==null?void 0:a.description)||"",kind:cn.Field}}))}function qj(e,t,n,r,i){if(!r)return[];const o=n.getTypeMap(),a=Rj(e.state),l=Wj(r);i&&i.length>0&&l.push(...i);const f=l.filter(h=>o[h.typeCondition.name.value]&&!(a&&a.kind===Je.FRAGMENT_DEFINITION&&a.name===h.name.value)&&si(t.parentType)&&si(o[h.typeCondition.name.value])&&Ip(n,t.parentType,o[h.typeCondition.name.value]));return dr(e,f.map(h=>({label:h.name.value,detail:String(o[h.typeCondition.name.value]),documentation:`fragment ${h.name.value} on ${h.typeCondition.name.value}`,labelDetails:{detail:`fragment ${h.name.value} on ${h.typeCondition.name.value}`},kind:cn.Field,type:o[h.typeCondition.name.value]})))}const Gj=(e,t)=>{var n,r,i,o,a,l,f,h,p,b;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(((l=(a=(o=e.prevState)===null||o===void 0?void 0:o.prevState)===null||a===void 0?void 0:a.prevState)===null||l===void 0?void 0:l.kind)===t)return e.prevState.prevState.prevState;if(((b=(p=(h=(f=e.prevState)===null||f===void 0?void 0:f.prevState)===null||h===void 0?void 0:h.prevState)===null||p===void 0?void 0:p.prevState)===null||b===void 0?void 0:b.kind)===t)return e.prevState.prevState.prevState.prevState};function h4(e,t,n){let r=null,i;const o=Object.create({});return wv(e,(a,l)=>{var f;if((l==null?void 0:l.kind)===Je.VARIABLE&&l.name&&(r=l.name),(l==null?void 0:l.kind)===Je.NAMED_TYPE&&r){const h=Gj(l,Je.TYPE);h!=null&&h.type&&(i=t.getType(h==null?void 0:h.type))}if(r&&i&&!o[r]){const h=n.string==="$"||((f=n==null?void 0:n.state)===null||f===void 0?void 0:f.kind)==="Variable"?r:"$"+r;o[r]={detail:i.toString(),insertText:h,label:"$"+r,rawInsert:h,type:i,kind:cn.Variable},r=null,i=null}}),Yc(o)}function Wj(e){const t=[];return wv(e,(n,r)=>{r.kind===Je.FRAGMENT_DEFINITION&&r.name&&r.type&&t.push({kind:Je.FRAGMENT_DEFINITION,name:{kind:Q.NAME,value:r.name},selectionSet:{kind:Je.SELECTION_SET,selections:[]},typeCondition:{kind:Je.NAMED_TYPE,name:{kind:Q.NAME,value:r.type}}})}),t}function Yj(e,t,n){const r=t.getTypeMap(),i=Yc(r).filter(Gi);return dr(e,i.map(o=>({label:o.name,documentation:(o==null?void 0:o.description)||"",kind:cn.Variable})))}function Qj(e,t,n,r){var i;if(!((i=t.prevState)===null||i===void 0)&&i.kind){const o=n.getDirectives().filter(a=>Xj(t.prevState,a));return dr(e,o.map(a=>({label:a.name,documentation:(a==null?void 0:a.description)||"",kind:cn.Function})))}return[]}function Kj(e,t,n,r){const i=n.getDirectives().find(o=>o.name===t.name);return dr(e,(i==null?void 0:i.args.map(o=>({label:o.name,documentation:o.description||"",kind:cn.Field})))||[])}function Xj(e,t){if(!(e!=null&&e.kind))return!1;const{kind:n,prevState:r}=e,{locations:i}=t;switch(n){case Je.QUERY:return i.includes(at.QUERY);case Je.MUTATION:return i.includes(at.MUTATION);case Je.SUBSCRIPTION:return i.includes(at.SUBSCRIPTION);case Je.FIELD:case Je.ALIASED_FIELD:return i.includes(at.FIELD);case Je.FRAGMENT_DEFINITION:return i.includes(at.FRAGMENT_DEFINITION);case Je.FRAGMENT_SPREAD:return i.includes(at.FRAGMENT_SPREAD);case Je.INLINE_FRAGMENT:return i.includes(at.INLINE_FRAGMENT);case Je.SCHEMA_DEF:return i.includes(at.SCHEMA);case Je.SCALAR_DEF:return i.includes(at.SCALAR);case Je.OBJECT_TYPE_DEF:return i.includes(at.OBJECT);case Je.FIELD_DEF:return i.includes(at.FIELD_DEFINITION);case Je.INTERFACE_DEF:return i.includes(at.INTERFACE);case Je.UNION_DEF:return i.includes(at.UNION);case Je.ENUM_DEF:return i.includes(at.ENUM);case Je.ENUM_VALUE:return i.includes(at.ENUM_VALUE);case Je.INPUT_DEF:return i.includes(at.INPUT_OBJECT);case Je.INPUT_VALUE_DEF:switch(r==null?void 0:r.kind){case Je.ARGUMENTS_DEF:return i.includes(at.ARGUMENT_DEFINITION);case Je.INPUT_DEF:return i.includes(at.INPUT_FIELD_DEFINITION)}}return!1}function p4(e){return e.prevState&&e.kind&&[Je.NAMED_TYPE,Je.LIST_TYPE,Je.TYPE,Je.NON_NULL_TYPE].includes(e.kind)?p4(e.prevState):e}var e0={exports:{}},m4;function Zj(){if(m4)return e0.exports;m4=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 e0.exports=e,e0.exports.default=e,Object.defineProperty(e0.exports,"__esModule",{value:!0}),e0.exports}var Jj=Zj();const g4=Lr(Jj),eV=(e,t)=>{if(!t)return[];const n=new Map,r=new Set;Cr(e,{FragmentDefinition(a){n.set(a.name.value,!0)},FragmentSpread(a){r.has(a.name.value)||r.add(a.name.value)}});const i=new Set;for(const a of r)!n.has(a)&&t.has(a)&&i.add(g4(t.get(a)));const o=[];for(const a of i)Cr(a,{FragmentSpread(l){!r.has(l.name.value)&&t.get(l.name.value)&&(i.add(g4(t.get(l.name.value))),r.add(l.name.value))}}),n.has(a.name.value)||o.push(a);return o};class v4{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 Kc(t,n)}setEnd(t,n){this.end=new Kc(t,n)}}class Kc{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 tV(e,t,n,r,i){const o=B2.filter(l=>!(l===N2||l===_2));return n&&Array.prototype.push.apply(o,n),Gp(e,t,o).filter(l=>{if(l.message.includes("Unknown directive")&&l.nodes){const f=l.nodes[0];if(f&&f.kind===Q.DIRECTIVE){const h=f.name.value;if(h==="arguments"||h==="argumentDefinitions")return!1}}return!0})}function nV(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:a}of i){const l=Mi(e,a);l?n[o.name.value]=l:a.kind===Q.NAMED_TYPE&&a.name.value==="Float"&&(n[o.name.value]=Pp)}}return n}function rV(e,t){const n=t?nV(t,e):void 0,r=[];return Cr(e,{OperationDefinition(i){r.push(i)}}),{variableToType:n,operations:r}}function iV(e,t){if(t)try{const n=zi(t);return Object.assign(Object.assign({},rV(n,e)),{documentAST:n})}catch{return}}const y4={Error:"Error",Warning:"Warning"},vE={[y4.Error]:1,[y4.Warning]:2},Cv=(e,t)=>{if(!e)throw new Error(t)};function oV(e,t=null,n,r,i){var o,a;let l=null,f="";i&&(f=typeof i=="string"?i:i.reduce((p,b)=>p+mn(b)+`
`,""));const h=f?`${e}
${f}`:e;try{l=zi(h)}catch(p){if(p instanceof Fe){const b=aV((a=(o=p.locations)===null||o===void 0?void 0:o[0])!==null&&a!==void 0?a:{line:0},h);return[{severity:vE.Error,message:p.message,source:"GraphQL: Syntax",range:b}]}throw p}return sV(l,t,n)}function sV(e,t=null,n,r){if(!t)return[];const i=tV(t,e,n).flatMap(a=>b4(a,vE.Error,"Validation")),o=Gp(t,e,[I_]).flatMap(a=>b4(a,vE.Warning,"Deprecation"));return i.concat(o)}function b4(e,t,n){if(!e.nodes)return[];const r=[];for(const[i,o]of e.nodes.entries()){const a=o.kind!=="Variable"&&"name"in o&&o.name!==void 0?o.name:"variable"in o&&o.variable!==void 0?o.variable:o;if(a){Cv(e.locations,"GraphQL validation error requires locations.");const l=e.locations[i],f=uV(a),h=l.column+(f.end-f.start);r.push({source:`GraphQL: ${n}`,message:e.message,severity:t,range:new v4(new Kc(l.line-1,l.column-1),new Kc(l.line-1,h))})}}return r}function aV(e,t){const n=Zp(),r=n.startState(),i=t.split(`
`);Cv(i.length>=e.line,"Query text must have more lines than where the error happened");let o=null;for(let h=0;h<e.line;h++)for(o=new fE(i[h]);!o.eol()&&n.token(o,r)!=="invalidchar";);Cv(o,"Expected Parser stream to be available.");const a=e.line-1,l=o.getStartOfToken(),f=o.getCurrentPosition();return new v4(new Kc(a,l),new Kc(a,f))}function uV(e){const n=e.loc;return Cv(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 yE,E4;function lV(){return E4||(E4=1,yE=function(t){return typeof t=="object"?t===null:typeof t!="function"}),yE}/*!
* isobject <https://github.com/jonschlinkert/isobject>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/var bE,x4;function T4(){return x4||(x4=1,bE=function(t){return t!=null&&typeof t=="object"&&Array.isArray(t)===!1}),bE}/*!
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
*
* Copyright (c) 2014-2017, Jon Schlinkert.
* Released under the MIT License.
*/var EE,S4;function cV(){if(S4)return EE;S4=1;var e=T4();function t(n){return e(n)===!0&&Object.prototype.toString.call(n)==="[object Object]"}return EE=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)},EE}/*!
* set-value <https://github.com/jonschlinkert/set-value>
*
* Copyright (c) Jon Schlinkert (https://github.com/jonschlinkert).
* Released under the MIT License.
*/var xE,w4;function fV(){if(w4)return xE;w4=1;const{deleteProperty:e}=Reflect,t=lV(),n=cV(),r=x=>typeof x=="object"&&x!==null||typeof x=="function",i=x=>x==="__proto__"||x==="constructor"||x==="prototype",o=x=>{if(!t(x))throw new TypeError("Object keys must be strings or symbols");if(i(x))throw new Error(`Cannot set unsafe key: "${x}"`)},a=x=>Array.isArray(x)?x.flat().map(String).join(","):x,l=(x,S)=>{if(typeof x!="string"||!S)return x;let w=x+";";return S.arrays!==void 0&&(w+=`arrays=${S.arrays};`),S.separator!==void 0&&(w+=`separator=${S.separator};`),S.split!==void 0&&(w+=`split=${S.split};`),S.merge!==void 0&&(w+=`merge=${S.merge};`),S.preservePaths!==void 0&&(w+=`preservePaths=${S.preservePaths};`),w},f=(x,S,w)=>{const k=a(S?l(x,S):x);o(k);const _=v.cache.get(k)||w();return v.cache.set(k,_),_},h=(x,S={})=>{const w=S.separator||".",k=w==="/"?!1:S.preservePaths;if(typeof x=="string"&&k!==!1&&/\//.test(x))return[x];const _=[];let N="";const O=A=>{let L;A.trim()!==""&&Number.isInteger(L=Number(A))?_.push(L):_.push(A)};for(let A=0;A<x.length;A++){const L=x[A];if(L==="\\"){N+=x[++A];continue}if(L===w){O(N),N="";continue}N+=L}return N&&O(N),_},p=(x,S)=>S&&typeof S.split=="function"?S.split(x):typeof x=="symbol"?[x]:Array.isArray(x)?x:f(x,S,()=>h(x,S)),b=(x,S,w,k)=>{if(o(S),w===void 0)e(x,S);else if(k&&k.merge){const _=k.merge==="function"?k.merge:Object.assign;_&&n(x[S])&&n(w)?x[S]=_(x[S],w):x[S]=w}else x[S]=w;return x},v=(x,S,w,k)=>{if(!S||!r(x))return x;const _=p(S,k);let N=x;for(let O=0;O<_.length;O++){const A=_[O],L=_[O+1];if(o(A),L===void 0){b(N,A,w,k);break}if(typeof L=="number"&&!Array.isArray(N[A])){N=N[A]=[];continue}r(N[A])||(N[A]={}),N=N[A]}return x};return v.split=p,v.cache=new Map,v.clear=()=>{v.cache=new Map},xE=v,xE}var dV=fV();const TE=Lr(dV);/*!
* get-value <https://github.com/jonschlinkert/get-value>
*
* Copyright (c) 2014-2018, Jon Schlinkert.
* Released under the MIT License.
*/var SE,C4;function hV(){if(C4)return SE;C4=1;const e=T4();SE=function(o,a,l){if(e(l)||(l={default:l}),!i(o))return typeof l.default<"u"?l.default:o;typeof a=="number"&&(a=String(a));const f=Array.isArray(a),h=typeof a=="string",p=l.separator||".",b=l.joinChar||(typeof p=="string"?p:".");if(!h&&!f)return o;if(h&&a in o)return r(a,o,l)?o[a]:l.default;let v=f?a:n(a,p,l),x=v.length,S=0;do{let w=v[S];for(typeof w=="number"&&(w=String(w));w&&w.slice(-1)==="\\";)w=t([w.slice(0,-1),v[++S]||""],b,l);if(w in o){if(!r(w,o,l))return l.default;o=o[w]}else{let k=!1,_=S+1;for(;_<x;)if(w=t([w,v[_++]],b,l),k=w in o){if(!r(w,o,l))return l.default;o=o[w],S=_-1;break}if(!k)return l.default}}while(++S<x&&i(o));return S===x?o:l.default};function t(o,a,l){return typeof l.join=="function"?l.join(o):o[0]+a+o[1]}function n(o,a,l){return typeof l.split=="function"?l.split(o):o.split(a)}function r(o,a,l){return typeof l.isValid=="function"?l.isValid(o,a):!0}function i(o){return e(o)||Array.isArray(o)||typeof o=="function"}return SE}var pV=hV();const mV=Lr(pV);function _4(e){const t=R.createContext(null);return t.displayName=e,t}function A4(e){function t(n){var r;const i=R.useContext(e);if(i===null&&(n!=null&&n.nonNull))throw new Error(`Tried to use \`${((r=n.caller)==null?void 0:r.name)||"a component"}\` without the necessary context. Make sure to render the \`${e.displayName}Provider\` component higher up the tree.`);return i}return Object.defineProperty(t,"name",{value:`use${e.displayName}`}),t}const D4=e=>{let t;const n=new Set,r=(h,p)=>{const b=typeof h=="function"?h(t):h;if(!Object.is(b,t)){const v=t;t=p??(typeof b!="object"||b===null)?b:Object.assign({},t,b),n.forEach(x=>x(t,v))}},i=()=>t,l={setState:r,getState:i,getInitialState:()=>f,subscribe:h=>(n.add(h),()=>n.delete(h))},f=t=e(r,i,l);return l},t0=e=>e?D4(e):D4,gV=e=>e;function n0(e,t=gV){const n=Mt.useSyncExternalStore(e.subscribe,()=>t(e.getState()),()=>t(e.getInitialState()));return Mt.useDebugValue(n),n}const Ad=t0(()=>({storage:null})),vV=e=>{const t=it.c(3),{storage:n,children:r}=e,i=Xc();let o,a;return t[0]!==n?(o=()=>{Ad.setState({storage:new hj(n)})},a=[n],t[0]=n,t[1]=o,t[2]=a):(o=t[1],a=t[2]),R.useEffect(o,a),i&&r};function Xc(){return n0(Ad,yV)}function yV(e){return e.storage}const wE=typeof navigator<"u"&&navigator.userAgent.includes("Mac"),_v="graphiql",Av="sublime",Dv={[wE?"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 r0(e,t){const n=await Promise.resolve().then(()=>$ae).then(r=>typeof r=="function"?r:r.default);return await Promise.all((t==null?void 0:t.useCommonAddons)===!1?e:[Promise.resolve().then(()=>Hae),Promise.resolve().then(()=>zae),Promise.resolve().then(()=>Gae),Promise.resolve().then(()=>G7),Promise.resolve().then(()=>Z7),Promise.resolve().then(()=>Xae),Promise.resolve().then(()=>oM),Promise.resolve().then(()=>fM),Promise.resolve().then(()=>hM),Promise.resolve().then(()=>vM),...e]),n}var CE,N4;function bV(){return N4||(N4=1,CE=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()}}),CE}var _E,O4;function EV(){if(O4)return _E;O4=1;var e=bV(),t={"text/plain":"Text","text/html":"Url",default:"Text"},n="Copy to clipboard: #{key}, Enter";function r(o){var a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return o.replace(/#{\s*key\s*}/g,a)}function i(o,a){var l,f,h,p,b,v,x=!1;a||(a={}),l=a.debug||!1;try{h=e(),p=document.createRange(),b=document.getSelection(),v=document.createElement("span"),v.textContent=o,v.ariaHidden="true",v.style.all="unset",v.style.position="fixed",v.style.top=0,v.style.clip="rect(0, 0, 0, 0)",v.style.whiteSpace="pre",v.style.webkitUserSelect="text",v.style.MozUserSelect="text",v.style.msUserSelect="text",v.style.userSelect="text",v.addEventListener("copy",function(w){if(w.stopPropagation(),a.format)if(w.preventDefault(),typeof w.clipboardData>"u"){l&&console.warn("unable to use e.clipboardData"),l&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var k=t[a.format]||t.default;window.clipboardData.setData(k,o)}else w.clipboardData.clearData(),w.clipboardData.setData(a.format,o);a.onCopy&&(w.preventDefault(),a.onCopy(w.clipboardData))}),document.body.appendChild(v),p.selectNodeContents(v),b.addRange(p);var S=document.execCommand("copy");if(!S)throw new Error("copy command was unsuccessful");x=!0}catch(w){l&&console.error("unable to copy using execCommand: ",w),l&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(a.format||"text",o),a.onCopy&&a.onCopy(window.clipboardData),x=!0}catch(k){l&&console.error("unable to copy using clipboardData: ",k),l&&console.error("falling back to prompt"),f=r("message"in a?a.message:n),window.prompt(f,o)}}finally{b&&(typeof b.removeRange=="function"?b.removeRange(p):b.removeAllRanges()),v&&document.body.removeChild(v),h()}return x}return _E=i,_E}var xV=EV();const TV=Lr(xV),AE=t0((e,t)=>({plugins:[],visiblePlugin:null,referencePlugin:void 0,setVisiblePlugin(n){const{plugins:r,onTogglePluginVisibility:i}=t(),o=typeof n=="string",a=n&&r.find(l=>(o?l.title:l)===n)||null;e(({visiblePlugin:l})=>a===l?{visiblePlugin:l}:(i==null||i(a),{visiblePlugin:a}))}})),SV=e=>{const t=it.c(8),{onTogglePluginVisibility:n,children:r,visiblePlugin:i,plugins:o,referencePlugin:a}=e;let l;t[0]!==o?(l=o===void 0?[]:o,t[0]=o,t[1]=l):l=t[1];const f=l;let h,p;return t[2]!==n||t[3]!==f||t[4]!==a||t[5]!==i?(h=()=>{const b=new Set;for(const{title:v}of f){if(typeof v!="string"||!v)throw new Error("All GraphiQL plugins must have a unique title");if(b.has(v))throw new Error(`All GraphiQL plugins must have a unique title, found two plugins with the title '${v}'`);b.add(v)}AE.setState({plugins:f,onTogglePluginVisibility:n,referencePlugin:a}),AE.getState().setVisiblePlugin(i??null)},p=[f,n,a,i],t[2]=n,t[3]=f,t[4]=a,t[5]=i,t[6]=h,t[7]=p):(h=t[6],p=t[7]),R.useEffect(h,p),r};function Nv(){return n0(AE)}const k4=t0((e,t)=>({inputValueDeprecation:null,introspectionQueryName:null,schemaDescription:null,fetcher:null,onSchemaChange:void 0,fetchError:null,isFetching:!1,schema:null,validationErrors:[],schemaReference:null,setSchemaReference(n){e({schemaReference:n})},requestCounter:0,currentHeaders:"",introspect(){const{schema:n,requestCounter:r,fetcher:i,currentHeaders:o,onSchemaChange:a,...l}=t();if(Xg(n)||n===null)return;const f=r+1;e({requestCounter:f});const h=n;async function p(){if(h)return h;const b=CV(o);if(!b.isValidJSON){e({fetchError:"Introspection failed as headers are invalid."});return}const v=b.headers?{headers:b.headers}:{},{introspectionQuery:x,introspectionQueryName:S,introspectionQuerySansSubscriptions:w}=wV(l),k=Qw(i({query:x,operationName:S},v));if(!Gw(k)){e({fetchError:"Fetcher did not return a Promise for introspection."});return}e({isFetching:!0,fetchError:null});let _=await k;if(typeof _!="object"||_===null||!("data"in _)){const O=Qw(i({query:w,operationName:S},v));if(!Gw(O))throw new Error("Fetcher did not return a Promise for introspection.");_=await O}if(e({isFetching:!1}),_!=null&&_.data&&"__schema"in _.data)return _.data;const N=typeof _=="string"?_:K2(_);e({fetchError:N})}p().then(b=>{if(!(f!==t().requestCounter||!b))try{const v=H2(b);e({schema:v}),a==null||a(v)}catch(v){e({fetchError:Kp(v)})}}).catch(b=>{f===t().requestCounter&&e({fetchError:Kp(b),isFetching:!1})})}})),R4=e=>{const t=it.c(15),{fetcher:n,onSchemaChange:r,dangerouslyAssumeSchemaIsValid:i,children:o,schema:a,inputValueDeprecation:l,introspectionQueryName:f,schemaDescription:h}=e,p=i===void 0?!1:i,b=l===void 0?!1:l,v=f===void 0?"IntrospectionQuery":f,x=h===void 0?!1:h;if(!n)throw new TypeError("The `SchemaContextProvider` component requires a `fetcher` function to be passed as prop.");let S;t[0]===Symbol.for("react.memo_cache_sentinel")?(S={nonNull:!0,caller:R4},t[0]=S):S=t[0];const{headerEditor:w}=Ei(S),{introspect:k}=Ns();let _,N;t[1]!==p||t[2]!==n||t[3]!==w||t[4]!==b||t[5]!==k||t[6]!==v||t[7]!==r||t[8]!==a||t[9]!==x?(_=()=>{const L=Xg(a)||a==null?a:void 0,P=!L||p?[]:Zg(L);k4.setState(j=>{const{requestCounter:F}=j;return{fetcher:n,onSchemaChange:r,schema:L,inputValueDeprecation:b,introspectionQueryName:v,schemaDescription:x,validationErrors:P,requestCounter:F+1,currentHeaders:w==null?void 0:w.getValue()}}),k()},N=[k,a,p,r,n,b,v,x,w],t[1]=p,t[2]=n,t[3]=w,t[4]=b,t[5]=k,t[6]=v,t[7]=r,t[8]=a,t[9]=x,t[10]=_,t[11]=N):(_=t[10],N=t[11]),R.useEffect(_,N);let O,A;return t[12]!==k?(O=()=>{const L=function(j){j.ctrlKey&&j.key==="R"&&k()};return window.addEventListener("keydown",L),()=>{window.removeEventListener("keydown",L)}},A=[k],t[12]=k,t[13]=O,t[14]=A):(O=t[13],A=t[14]),R.useEffect(O,A),o};function Ns(e){return n0(k4,e)}function wV({inputValueDeprecation:e,introspectionQueryName:t,schemaDescription:n}){const r=hv({inputValueDeprecation:e,schemaDescription:n}),i=t==="IntrospectionQuery"?r:r.replace("query IntrospectionQuery",`query ${t}`),o=r.replace("subscriptionType { name }","");return{introspectionQueryName:t,introspectionQuery:i,introspectionQuerySansSubscriptions:o}}function CV(e){let t=null,n=!0;try{e&&(t=JSON.parse(e))}catch{n=!1}return{headers:t,isValidJSON:n}}const M4={};function _V(e){let t=M4[e];if(t)return t;t=M4[e]=[];for(let n=0;n<128;n++){const r=String.fromCharCode(n);t.push(r)}for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2)}return t}function Dd(e,t){typeof t!="string"&&(t=Dd.defaultChars);const n=_V(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(r){let i="";for(let o=0,a=r.length;o<a;o+=3){const l=parseInt(r.slice(o+1,o+3),16);if(l<128){i+=n[l];continue}if((l&224)===192&&o+3<a){const f=parseInt(r.slice(o+4,o+6),16);if((f&192)===128){const h=l<<6&1984|f&63;h<128?i+="��":i+=String.fromCharCode(h),o+=3;continue}}if((l&240)===224&&o+6<a){const f=parseInt(r.slice(o+4,o+6),16),h=parseInt(r.slice(o+7,o+9),16);if((f&192)===128&&(h&192)===128){const p=l<<12&61440|f<<6&4032|h&63;p<2048||p>=55296&&p<=57343?i+="���":i+=String.fromCharCode(p),o+=6;continue}}if((l&248)===240&&o+9<a){const f=parseInt(r.slice(o+4,o+6),16),h=parseInt(r.slice(o+7,o+9),16),p=parseInt(r.slice(o+10,o+12),16);if((f&192)===128&&(h&192)===128&&(p&192)===128){let b=l<<18&1835008|f<<12&258048|h<<6&4032|p&63;b<65536||b>1114111?i+="����":(b-=65536,i+=String.fromCharCode(55296+(b>>10),56320+(b&1023))),o+=9;continue}}i+="�"}return i})}Dd.defaultChars=";/?:@&=+$,#",Dd.componentChars="";const L4={};function AV(e){let t=L4[e];if(t)return t;t=L4[e]=[];for(let n=0;n<128;n++){const r=String.fromCharCode(n);/^[0-9a-z]$/i.test(r)?t.push(r):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function i0(e,t,n){typeof t!="string"&&(n=t,t=i0.defaultChars),typeof n>"u"&&(n=!0);const r=AV(t);let i="";for(let o=0,a=e.length;o<a;o++){const l=e.charCodeAt(o);if(n&&l===37&&o+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3))){i+=e.slice(o,o+3),o+=2;continue}if(l<128){i+=r[l];continue}if(l>=55296&&l<=57343){if(l>=55296&&l<=56319&&o+1<a){const f=e.charCodeAt(o+1);if(f>=56320&&f<=57343){i+=encodeURIComponent(e[o]+e[o+1]),o++;continue}}i+="%EF%BF%BD";continue}i+=encodeURIComponent(e[o])}return i}i0.defaultChars=";/?:@&=+$,-_.!~*'()#",i0.componentChars="-_.!~*'()";function DE(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function Ov(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const DV=/^([a-z0-9.+-]+:)/i,NV=/:[0-9]*$/,OV=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,kV=["<",">",'"',"`"," ","\r",`
`," "],RV=["{","}","|","\\","^","`"].concat(kV),MV=["'"].concat(RV),I4=["%","/","?",";","#"].concat(MV),F4=["/","?","#"],LV=255,P4=/^[+a-z0-9A-Z_-]{0,63}$/,IV=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,j4={javascript:!0,"javascript:":!0},V4={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function NE(e,t){if(e&&e instanceof Ov)return e;const n=new Ov;return n.parse(e,t),n}Ov.prototype.parse=function(e,t){let n,r,i,o=e;if(o=o.trim(),!t&&e.split("#").length===1){const h=OV.exec(o);if(h)return this.pathname=h[1],h[2]&&(this.search=h[2]),this}let a=DV.exec(o);if(a&&(a=a[0],n=a.toLowerCase(),this.protocol=a,o=o.substr(a.length)),(t||a||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=o.substr(0,2)==="//",i&&!(a&&j4[a])&&(o=o.substr(2),this.slashes=!0)),!j4[a]&&(i||a&&!V4[a])){let h=-1;for(let S=0;S<F4.length;S++)r=o.indexOf(F4[S]),r!==-1&&(h===-1||r<h)&&(h=r);let p,b;h===-1?b=o.lastIndexOf("@"):b=o.lastIndexOf("@",h),b!==-1&&(p=o.slice(0,b),o=o.slice(b+1),this.auth=p),h=-1;for(let S=0;S<I4.length;S++)r=o.indexOf(I4[S]),r!==-1&&(h===-1||r<h)&&(h=r);h===-1&&(h=o.length),o[h-1]===":"&&h--;const v=o.slice(0,h);o=o.slice(h),this.parseHost(v),this.hostname=this.hostname||"";const x=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!x){const S=this.hostname.split(/\./);for(let w=0,k=S.length;w<k;w++){const _=S[w];if(_&&!_.match(P4)){let N="";for(let O=0,A=_.length;O<A;O++)_.charCodeAt(O)>127?N+="x":N+=_[O];if(!N.match(P4)){const O=S.slice(0,w),A=S.slice(w+1),L=_.match(IV);L&&(O.push(L[1]),A.unshift(L[2])),A.length&&(o=A.join(".")+o),this.hostname=O.join(".");break}}}}this.hostname.length>LV&&(this.hostname=""),x&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const l=o.indexOf("#");l!==-1&&(this.hash=o.substr(l),o=o.slice(0,l));const f=o.indexOf("?");return f!==-1&&(this.search=o.substr(f),o=o.slice(0,f)),o&&(this.pathname=o),V4[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},Ov.prototype.parseHost=function(e){let t=NV.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const FV=Object.freeze(Object.defineProperty({__proto__:null,decode:Dd,encode:i0,format:DE,parse:NE},Symbol.toStringTag,{value:"Module"})),B4=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,$4=/[\0-\x1F\x7F-\x9F]/,PV=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,OE=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,U4=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,H4=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,jV=Object.freeze(Object.defineProperty({__proto__:null,Any:B4,Cc:$4,Cf:PV,P:OE,S:U4,Z:H4},Symbol.toStringTag,{value:"Module"})),VV=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),BV=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var kE;const $V=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),UV=(kE=String.fromCodePoint)!==null&&kE!==void 0?kE:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function HV(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=$V.get(e))!==null&&t!==void 0?t:e}var Ii;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Ii||(Ii={}));const zV=32;var El;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(El||(El={}));function RE(e){return e>=Ii.ZERO&&e<=Ii.NINE}function qV(e){return e>=Ii.UPPER_A&&e<=Ii.UPPER_F||e>=Ii.LOWER_A&&e<=Ii.LOWER_F}function GV(e){return e>=Ii.UPPER_A&&e<=Ii.UPPER_Z||e>=Ii.LOWER_A&&e<=Ii.LOWER_Z||RE(e)}function WV(e){return e===Ii.EQUALS||GV(e)}var Fi;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Fi||(Fi={}));var xl;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(xl||(xl={}));class YV{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Fi.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=xl.Strict}startEntity(t){this.decodeMode=t,this.state=Fi.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Fi.EntityStart:return t.charCodeAt(n)===Ii.NUM?(this.state=Fi.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Fi.NamedEntity,this.stateNamedEntity(t,n));case Fi.NumericStart:return this.stateNumericStart(t,n);case Fi.NumericDecimal:return this.stateNumericDecimal(t,n);case Fi.NumericHex:return this.stateNumericHex(t,n);case Fi.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|zV)===Ii.LOWER_X?(this.state=Fi.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Fi.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const o=r-n;this.result=this.result*Math.pow(i,o)+parseInt(t.substr(n,o),i),this.consumed+=o}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(RE(i)||qV(i))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(RE(i))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Ii.SEMI)this.consumed+=1;else if(this.decodeMode===xl.Strict)return 0;return this.emitCodePoint(HV(this.result),this.consumed),this.errors&&(t!==Ii.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let i=r[this.treeIndex],o=(i&El.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const a=t.charCodeAt(n);if(this.treeIndex=QV(r,i,this.treeIndex+Math.max(1,o),a),this.treeIndex<0)return this.result===0||this.decodeMode===xl.Attribute&&(o===0||WV(a))?0:this.emitNotTerminatedNamedEntity();if(i=r[this.treeIndex],o=(i&El.VALUE_LENGTH)>>14,o!==0){if(a===Ii.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==xl.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&El.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~El.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case Fi.NamedEntity:return this.result!==0&&(this.decodeMode!==xl.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Fi.NumericDecimal:return this.emitNumericEntity(0,2);case Fi.NumericHex:return this.emitNumericEntity(0,3);case Fi.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Fi.EntityStart:return 0}}}function z4(e){let t="";const n=new YV(e,r=>t+=UV(r));return function(i,o){let a=0,l=0;for(;(l=i.indexOf("&",l))>=0;){t+=i.slice(a,l),n.startEntity(o);const h=n.write(i,l+1);if(h<0){a=l+n.end();break}a=l+h,l=h===0?a+1:a}const f=t+i.slice(a);return t="",f}}function QV(e,t,n,r){const i=(t&El.BRANCH_LENGTH)>>7,o=t&El.JUMP_TABLE;if(i===0)return o!==0&&r===o?n:-1;if(o){const f=r-o;return f<0||f>=i?-1:e[n+f]-1}let a=n,l=a+i-1;for(;a<=l;){const f=a+l>>>1,h=e[f];if(h<r)a=f+1;else if(h>r)l=f-1;else return e[f+i]}return-1}const KV=z4(VV);z4(BV);function q4(e,t=xl.Legacy){return KV(e,t)}function XV(e){return Object.prototype.toString.call(e)}function ME(e){return XV(e)==="[object String]"}const ZV=Object.prototype.hasOwnProperty;function JV(e,t){return ZV.call(e,t)}function kv(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(r){e[r]=n[r]})}}),e}function G4(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function LE(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function Rv(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const W4=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,eB=/&([a-z#][a-z0-9]{1,31});/gi,tB=new RegExp(W4.source+"|"+eB.source,"gi"),nB=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function rB(e,t){if(t.charCodeAt(0)===35&&nB.test(t)){const r=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return LE(r)?Rv(r):e}const n=q4(e);return n!==e?n:e}function iB(e){return e.indexOf("\\")<0?e:e.replace(W4,"$1")}function Nd(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(tB,function(t,n,r){return n||rB(t,r)})}const oB=/[&<>"]/,sB=/[&<>"]/g,aB={"&":"&","<":"<",">":">",'"':"""};function uB(e){return aB[e]}function Tl(e){return oB.test(e)?e.replace(sB,uB):e}const lB=/[.?*+^$[\]\\(){}|-]/g;function cB(e){return e.replace(lB,"\\$&")}function or(e){switch(e){case 9:case 32:return!0}return!1}function o0(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function s0(e){return OE.test(e)||U4.test(e)}function a0(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Mv(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const fB=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:G4,assign:kv,escapeHtml:Tl,escapeRE:cB,fromCodePoint:Rv,has:JV,isMdAsciiPunct:a0,isPunctChar:s0,isSpace:or,isString:ME,isValidEntityCode:LE,isWhiteSpace:o0,lib:{mdurl:FV,ucmicro:jV},normalizeReference:Mv,unescapeAll:Nd,unescapeMd:iB},Symbol.toStringTag,{value:"Module"}));function dB(e,t,n){let r,i,o,a;const l=e.posMax,f=e.pos;for(e.pos=t+1,r=1;e.pos<l;){if(o=e.src.charCodeAt(e.pos),o===93&&(r--,r===0)){i=!0;break}if(a=e.pos,e.md.inline.skipToken(e),o===91){if(a===e.pos-1)r++;else if(n)return e.pos=f,-1}}let h=-1;return i&&(h=e.pos),e.pos=f,h}function hB(e,t,n){let r,i=t;const o={ok:!1,pos:0,str:""};if(e.charCodeAt(i)===60){for(i++;i<n;){if(r=e.charCodeAt(i),r===10||r===60)return o;if(r===62)return o.pos=i+1,o.str=Nd(e.slice(t+1,i)),o.ok=!0,o;if(r===92&&i+1<n){i+=2;continue}i++}return o}let a=0;for(;i<n&&(r=e.charCodeAt(i),!(r===32||r<32||r===127));){if(r===92&&i+1<n){if(e.charCodeAt(i+1)===32)break;i+=2;continue}if(r===40&&(a++,a>32))return o;if(r===41){if(a===0)break;a--}i++}return t===i||a!==0||(o.str=Nd(e.slice(t,i)),o.pos=i,o.ok=!0),o}function pB(e,t,n,r){let i,o=t;const a={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)a.str=r.str,a.marker=r.marker;else{if(o>=n)return a;let l=e.charCodeAt(o);if(l!==34&&l!==39&&l!==40)return a;t++,o++,l===40&&(l=41),a.marker=l}for(;o<n;){if(i=e.charCodeAt(o),i===a.marker)return a.pos=o+1,a.str+=Nd(e.slice(t,o)),a.ok=!0,a;if(i===40&&a.marker===41)return a;i===92&&o+1<n&&o++,o++}return a.can_continue=!0,a.str+=Nd(e.slice(t,o)),a}const mB=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:hB,parseLinkLabel:dB,parseLinkTitle:pB},Symbol.toStringTag,{value:"Module"})),Fa={};Fa.code_inline=function(e,t,n,r,i){const o=e[t];return"<code"+i.renderAttrs(o)+">"+Tl(o.content)+"</code>"},Fa.code_block=function(e,t,n,r,i){const o=e[t];return"<pre"+i.renderAttrs(o)+"><code>"+Tl(e[t].content)+`</code></pre>
`},Fa.fence=function(e,t,n,r,i){const o=e[t],a=o.info?Nd(o.info).trim():"";let l="",f="";if(a){const p=a.split(/(\s+)/g);l=p[0],f=p.slice(2).join("")}let h;if(n.highlight?h=n.highlight(o.content,l,f)||Tl(o.content):h=Tl(o.content),h.indexOf("<pre")===0)return h+`
`;if(a){const p=o.attrIndex("class"),b=o.attrs?o.attrs.slice():[];p<0?b.push(["class",n.langPrefix+l]):(b[p]=b[p].slice(),b[p][1]+=" "+n.langPrefix+l);const v={attrs:b};return`<pre><code${i.renderAttrs(v)}>${h}</code></pre>
`}return`<pre><code${i.renderAttrs(o)}>${h}</code></pre>
`},Fa.image=function(e,t,n,r,i){const o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)},Fa.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
`:`<br>
`},Fa.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
`:`<br>
`:`
`},Fa.text=function(e,t){return Tl(e[t].content)},Fa.html_block=function(e,t){return e[t].content},Fa.html_inline=function(e,t){return e[t].content};function Od(){this.rules=kv({},Fa)}Od.prototype.renderAttrs=function(t){let n,r,i;if(!t.attrs)return"";for(i="",n=0,r=t.attrs.length;n<r;n++)i+=" "+Tl(t.attrs[n][0])+'="'+Tl(t.attrs[n][1])+'"';return i},Od.prototype.renderToken=function(t,n,r){const i=t[n];let o="";if(i.hidden)return"";i.block&&i.nesting!==-1&&n&&t[n-1].hidden&&(o+=`
`),o+=(i.nesting===-1?"</":"<")+i.tag,o+=this.renderAttrs(i),i.nesting===0&&r.xhtmlOut&&(o+=" /");let a=!1;if(i.block&&(a=!0,i.nesting===1&&n+1<t.length)){const l=t[n+1];(l.type==="inline"||l.hidden||l.nesting===-1&&l.tag===i.tag)&&(a=!1)}return o+=a?`>
`:">",o},Od.prototype.renderInline=function(e,t,n){let r="";const i=this.rules;for(let o=0,a=e.length;o<a;o++){const l=e[o].type;typeof i[l]<"u"?r+=i[l](e,o,t,n,this):r+=this.renderToken(e,o,t)}return r},Od.prototype.renderInlineAsText=function(e,t,n){let r="";for(let i=0,o=e.length;i<o;i++)switch(e[i].type){case"text":r+=e[i].content;break;case"image":r+=this.renderInlineAsText(e[i].children,t,n);break;case"html_inline":case"html_block":r+=e[i].content;break;case"softbreak":case"hardbreak":r+=`
`;break}return r},Od.prototype.render=function(e,t,n){let r="";const i=this.rules;for(let o=0,a=e.length;o<a;o++){const l=e[o].type;l==="inline"?r+=this.renderInline(e[o].children,t,n):typeof i[l]<"u"?r+=i[l](e,o,t,n,this):r+=this.renderToken(e,o,t,n)}return r};function Vo(){this.__rules__=[],this.__cache__=null}Vo.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},Vo.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(r){t.indexOf(r)<0&&t.push(r)})}),e.__cache__={},t.forEach(function(n){e.__cache__[n]=[],e.__rules__.forEach(function(r){r.enabled&&(n&&r.alt.indexOf(n)<0||e.__cache__[n].push(r.fn))})})},Vo.prototype.at=function(e,t,n){const r=this.__find__(e),i=n||{};if(r===-1)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null},Vo.prototype.before=function(e,t,n,r){const i=this.__find__(e),o=r||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},Vo.prototype.after=function(e,t,n,r){const i=this.__find__(e),o=r||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},Vo.prototype.push=function(e,t,n){const r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},Vo.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(r){const i=this.__find__(r);if(i<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[i].enabled=!0,n.push(r)},this),this.__cache__=null,n},Vo.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)},Vo.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(r){const i=this.__find__(r);if(i<0){if(t)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[i].enabled=!1,n.push(r)},this),this.__cache__=null,n},Vo.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function oa(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}oa.prototype.attrIndex=function(t){if(!this.attrs)return-1;const n=this.attrs;for(let r=0,i=n.length;r<i;r++)if(n[r][0]===t)return r;return-1},oa.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]},oa.prototype.attrSet=function(t,n){const r=this.attrIndex(t),i=[t,n];r<0?this.attrPush(i):this.attrs[r]=i},oa.prototype.attrGet=function(t){const n=this.attrIndex(t);let r=null;return n>=0&&(r=this.attrs[n][1]),r},oa.prototype.attrJoin=function(t,n){const r=this.attrIndex(t);r<0?this.attrPush([t,n]):this.attrs[r][1]=this.attrs[r][1]+" "+n};function Y4(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}Y4.prototype.Token=oa;const gB=/\r\n?|\n/g,vB=/\0/g;function yB(e){let t;t=e.src.replace(gB,`
`),t=t.replace(vB,"�"),e.src=t}function bB(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function EB(e){const t=e.tokens;for(let n=0,r=t.length;n<r;n++){const i=t[n];i.type==="inline"&&e.md.inline.parse(i.content,e.md,e.env,i.children)}}function xB(e){return/^<a[>\s]/i.test(e)}function TB(e){return/^<\/a\s*>/i.test(e)}function SB(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,r=t.length;n<r;n++){if(t[n].type!=="inline"||!e.md.linkify.pretest(t[n].content))continue;let i=t[n].children,o=0;for(let a=i.length-1;a>=0;a--){const l=i[a];if(l.type==="link_close"){for(a--;i[a].level!==l.level&&i[a].type!=="link_open";)a--;continue}if(l.type==="html_inline"&&(xB(l.content)&&o>0&&o--,TB(l.content)&&o++),!(o>0)&&l.type==="text"&&e.md.linkify.test(l.content)){const f=l.content;let h=e.md.linkify.match(f);const p=[];let b=l.level,v=0;h.length>0&&h[0].index===0&&a>0&&i[a-1].type==="text_special"&&(h=h.slice(1));for(let x=0;x<h.length;x++){const S=h[x].url,w=e.md.normalizeLink(S);if(!e.md.validateLink(w))continue;let k=h[x].text;h[x].schema?h[x].schema==="mailto:"&&!/^mailto:/i.test(k)?k=e.md.normalizeLinkText("mailto:"+k).replace(/^mailto:/,""):k=e.md.normalizeLinkText(k):k=e.md.normalizeLinkText("http://"+k).replace(/^http:\/\//,"");const _=h[x].index;if(_>v){const L=new e.Token("text","",0);L.content=f.slice(v,_),L.level=b,p.push(L)}const N=new e.Token("link_open","a",1);N.attrs=[["href",w]],N.level=b++,N.markup="linkify",N.info="auto",p.push(N);const O=new e.Token("text","",0);O.content=k,O.level=b,p.push(O);const A=new e.Token("link_close","a",-1);A.level=--b,A.markup="linkify",A.info="auto",p.push(A),v=h[x].lastIndex}if(v<f.length){const x=new e.Token("text","",0);x.content=f.slice(v),x.level=b,p.push(x)}t[n].children=i=G4(i,a,p)}}}}const Q4=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,wB=/\((c|tm|r)\)/i,CB=/\((c|tm|r)\)/ig,_B={c:"©",r:"®",tm:"™"};function AB(e,t){return _B[t.toLowerCase()]}function DB(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&(r.content=r.content.replace(CB,AB)),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function NB(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];r.type==="text"&&!t&&Q4.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),r.type==="link_open"&&r.info==="auto"&&t--,r.type==="link_close"&&r.info==="auto"&&t++}}function OB(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(wB.test(e.tokens[t].content)&&DB(e.tokens[t].children),Q4.test(e.tokens[t].content)&&NB(e.tokens[t].children))}const kB=/['"]/,K4=/['"]/g,X4="’";function Lv(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function RB(e,t){let n;const r=[];for(let i=0;i<e.length;i++){const o=e[i],a=e[i].level;for(n=r.length-1;n>=0&&!(r[n].level<=a);n--);if(r.length=n+1,o.type!=="text")continue;let l=o.content,f=0,h=l.length;e:for(;f<h;){K4.lastIndex=f;const p=K4.exec(l);if(!p)break;let b=!0,v=!0;f=p.index+1;const x=p[0]==="'";let S=32;if(p.index-1>=0)S=l.charCodeAt(p.index-1);else for(n=i-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){S=e[n].content.charCodeAt(e[n].content.length-1);break}let w=32;if(f<h)w=l.charCodeAt(f);else for(n=i+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){w=e[n].content.charCodeAt(0);break}const k=a0(S)||s0(String.fromCharCode(S)),_=a0(w)||s0(String.fromCharCode(w)),N=o0(S),O=o0(w);if(O?b=!1:_&&(N||k||(b=!1)),N?v=!1:k&&(O||_||(v=!1)),w===34&&p[0]==='"'&&S>=48&&S<=57&&(v=b=!1),b&&v&&(b=k,v=_),!b&&!v){x&&(o.content=Lv(o.content,p.index,X4));continue}if(v)for(n=r.length-1;n>=0;n--){let A=r[n];if(r[n].level<a)break;if(A.single===x&&r[n].level===a){A=r[n];let L,P;x?(L=t.md.options.quotes[2],P=t.md.options.quotes[3]):(L=t.md.options.quotes[0],P=t.md.options.quotes[1]),o.content=Lv(o.content,p.index,P),e[A.token].content=Lv(e[A.token].content,A.pos,L),f+=P.length-1,A.token===i&&(f+=L.length-1),l=o.content,h=l.length,r.length=n;continue e}}b?r.push({token:i,pos:p.index,single:x,level:a}):v&&x&&(o.content=Lv(o.content,p.index,X4))}}}function MB(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!kB.test(e.tokens[t].content)||RB(e.tokens[t].children,e)}function LB(e){let t,n;const r=e.tokens,i=r.length;for(let o=0;o<i;o++){if(r[o].type!=="inline")continue;const a=r[o].children,l=a.length;for(t=0;t<l;t++)a[t].type==="text_special"&&(a[t].type="text");for(t=n=0;t<l;t++)a[t].type==="text"&&t+1<l&&a[t+1].type==="text"?a[t+1].content=a[t].content+a[t+1].content:(t!==n&&(a[n]=a[t]),n++);t!==n&&(a.length=n)}}const IE=[["normalize",yB],["block",bB],["inline",EB],["linkify",SB],["replacements",OB],["smartquotes",MB],["text_join",LB]];function FE(){this.ruler=new Vo;for(let e=0;e<IE.length;e++)this.ruler.push(IE[e][0],IE[e][1])}FE.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)},FE.prototype.State=Y4;function Pa(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const i=this.src;for(let o=0,a=0,l=0,f=0,h=i.length,p=!1;a<h;a++){const b=i.charCodeAt(a);if(!p)if(or(b)){l++,b===9?f+=4-f%4:f++;continue}else p=!0;(b===10||a===h-1)&&(b!==10&&a++,this.bMarks.push(o),this.eMarks.push(a),this.tShift.push(l),this.sCount.push(f),this.bsCount.push(0),p=!1,l=0,f=0,o=a+1)}this.bMarks.push(i.length),this.eMarks.push(i.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Pa.prototype.push=function(e,t,n){const r=new oa(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},Pa.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},Pa.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t},Pa.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){const r=this.src.charCodeAt(t);if(!or(r))break}return t},Pa.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!or(this.src.charCodeAt(--t)))return t+1;return t},Pa.prototype.skipChars=function(t,n){for(let r=this.src.length;t<r&&this.src.charCodeAt(t)===n;t++);return t},Pa.prototype.skipCharsBack=function(t,n,r){if(t<=r)return t;for(;t>r;)if(n!==this.src.charCodeAt(--t))return t+1;return t},Pa.prototype.getLines=function(t,n,r,i){if(t>=n)return"";const o=new Array(n-t);for(let a=0,l=t;l<n;l++,a++){let f=0;const h=this.bMarks[l];let p=h,b;for(l+1<n||i?b=this.eMarks[l]+1:b=this.eMarks[l];p<b&&f<r;){const v=this.src.charCodeAt(p);if(or(v))v===9?f+=4-(f+this.bsCount[l])%4:f++;else if(p-h<this.tShift[l])f++;else break;p++}f>r?o[a]=new Array(f-r+1).join(" ")+this.src.slice(p,b):o[a]=this.src.slice(p,b)}return o.join("")},Pa.prototype.Token=oa;const IB=65536;function PE(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function Z4(e){const t=[],n=e.length;let r=0,i=e.charCodeAt(r),o=!1,a=0,l="";for(;r<n;)i===124&&(o?(l+=e.substring(a,r-1),a=r):(t.push(l+e.substring(a,r)),l="",a=r+1)),o=i===92,r++,i=e.charCodeAt(r);return t.push(l+e.substring(a)),t}function FB(e,t,n,r){if(t+2>n)return!1;let i=t+1;if(e.sCount[i]<e.blkIndent||e.sCount[i]-e.blkIndent>=4)return!1;let o=e.bMarks[i]+e.tShift[i];if(o>=e.eMarks[i])return!1;const a=e.src.charCodeAt(o++);if(a!==124&&a!==45&&a!==58||o>=e.eMarks[i])return!1;const l=e.src.charCodeAt(o++);if(l!==124&&l!==45&&l!==58&&!or(l)||a===45&&or(l))return!1;for(;o<e.eMarks[i];){const A=e.src.charCodeAt(o);if(A!==124&&A!==45&&A!==58&&!or(A))return!1;o++}let f=PE(e,t+1),h=f.split("|");const p=[];for(let A=0;A<h.length;A++){const L=h[A].trim();if(!L){if(A===0||A===h.length-1)continue;return!1}if(!/^:?-+:?$/.test(L))return!1;L.charCodeAt(L.length-1)===58?p.push(L.charCodeAt(0)===58?"center":"right"):L.charCodeAt(0)===58?p.push("left"):p.push("")}if(f=PE(e,t).trim(),f.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;h=Z4(f),h.length&&h[0]===""&&h.shift(),h.length&&h[h.length-1]===""&&h.pop();const b=h.length;if(b===0||b!==p.length)return!1;if(r)return!0;const v=e.parentType;e.parentType="table";const x=e.md.block.ruler.getRules("blockquote"),S=e.push("table_open","table",1),w=[t,0];S.map=w;const k=e.push("thead_open","thead",1);k.map=[t,t+1];const _=e.push("tr_open","tr",1);_.map=[t,t+1];for(let A=0;A<h.length;A++){const L=e.push("th_open","th",1);p[A]&&(L.attrs=[["style","text-align:"+p[A]]]);const P=e.push("inline","",0);P.content=h[A].trim(),P.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let N,O=0;for(i=t+2;i<n&&!(e.sCount[i]<e.blkIndent);i++){let A=!1;for(let P=0,j=x.length;P<j;P++)if(x[P](e,i,n,!0)){A=!0;break}if(A||(f=PE(e,i).trim(),!f)||e.sCount[i]-e.blkIndent>=4||(h=Z4(f),h.length&&h[0]===""&&h.shift(),h.length&&h[h.length-1]===""&&h.pop(),O+=b-h.length,O>IB))break;if(i===t+2){const P=e.push("tbody_open","tbody",1);P.map=N=[t+2,0]}const L=e.push("tr_open","tr",1);L.map=[i,i+1];for(let P=0;P<b;P++){const j=e.push("td_open","td",1);p[P]&&(j.attrs=[["style","text-align:"+p[P]]]);const F=e.push("inline","",0);F.content=h[P]?h[P].trim():"",F.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return N&&(e.push("tbody_close","tbody",-1),N[1]=i),e.push("table_close","table",-1),w[1]=i,e.parentType=v,e.line=i,!0}function PB(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,i=r;for(;r<n;){if(e.isEmpty(r)){r++;continue}if(e.sCount[r]-e.blkIndent>=4){r++,i=r;continue}break}e.line=i;const o=e.push("code_block","code",0);return o.content=e.getLines(t,i,4+e.blkIndent,!1)+`
`,o.map=[t,e.line],!0}function jB(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>o)return!1;const a=e.src.charCodeAt(i);if(a!==126&&a!==96)return!1;let l=i;i=e.skipChars(i,a);let f=i-l;if(f<3)return!1;const h=e.src.slice(l,i),p=e.src.slice(i,o);if(a===96&&p.indexOf(String.fromCharCode(a))>=0)return!1;if(r)return!0;let b=t,v=!1;for(;b++,!(b>=n||(i=l=e.bMarks[b]+e.tShift[b],o=e.eMarks[b],i<o&&e.sCount[b]<e.blkIndent));)if(e.src.charCodeAt(i)===a&&!(e.sCount[b]-e.blkIndent>=4)&&(i=e.skipChars(i,a),!(i-l<f)&&(i=e.skipSpaces(i),!(i<o)))){v=!0;break}f=e.sCount[t],e.line=b+(v?1:0);const x=e.push("fence","code",0);return x.info=p,x.content=e.getLines(t+1,b,f,!0),x.markup=h,x.map=[t,e.line],!0}function VB(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];const a=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==62)return!1;if(r)return!0;const l=[],f=[],h=[],p=[],b=e.md.block.ruler.getRules("blockquote"),v=e.parentType;e.parentType="blockquote";let x=!1,S;for(S=t;S<n;S++){const O=e.sCount[S]<e.blkIndent;if(i=e.bMarks[S]+e.tShift[S],o=e.eMarks[S],i>=o)break;if(e.src.charCodeAt(i++)===62&&!O){let L=e.sCount[S]+1,P,j;e.src.charCodeAt(i)===32?(i++,L++,j=!1,P=!0):e.src.charCodeAt(i)===9?(P=!0,(e.bsCount[S]+L)%4===3?(i++,L++,j=!1):j=!0):P=!1;let F=L;for(l.push(e.bMarks[S]),e.bMarks[S]=i;i<o;){const B=e.src.charCodeAt(i);if(or(B))B===9?F+=4-(F+e.bsCount[S]+(j?1:0))%4:F++;else break;i++}x=i>=o,f.push(e.bsCount[S]),e.bsCount[S]=e.sCount[S]+1+(P?1:0),h.push(e.sCount[S]),e.sCount[S]=F-L,p.push(e.tShift[S]),e.tShift[S]=i-e.bMarks[S];continue}if(x)break;let A=!1;for(let L=0,P=b.length;L<P;L++)if(b[L](e,S,n,!0)){A=!0;break}if(A){e.lineMax=S,e.blkIndent!==0&&(l.push(e.bMarks[S]),f.push(e.bsCount[S]),p.push(e.tShift[S]),h.push(e.sCount[S]),e.sCount[S]-=e.blkIndent);break}l.push(e.bMarks[S]),f.push(e.bsCount[S]),p.push(e.tShift[S]),h.push(e.sCount[S]),e.sCount[S]=-1}const w=e.blkIndent;e.blkIndent=0;const k=e.push("blockquote_open","blockquote",1);k.markup=">";const _=[t,0];k.map=_,e.md.block.tokenize(e,t,S);const N=e.push("blockquote_close","blockquote",-1);N.markup=">",e.lineMax=a,e.parentType=v,_[1]=e.line;for(let O=0;O<p.length;O++)e.bMarks[O+t]=l[O],e.tShift[O+t]=p[O],e.sCount[O+t]=h[O],e.bsCount[O+t]=f[O];return e.blkIndent=w,!0}function BB(e,t,n,r){const i=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.bMarks[t]+e.tShift[t];const a=e.src.charCodeAt(o++);if(a!==42&&a!==45&&a!==95)return!1;let l=1;for(;o<i;){const h=e.src.charCodeAt(o++);if(h!==a&&!or(h))return!1;h===a&&l++}if(l<3)return!1;if(r)return!0;e.line=t+1;const f=e.push("hr","hr",0);return f.map=[t,e.line],f.markup=Array(l+1).join(String.fromCharCode(a)),!0}function J4(e,t){const n=e.eMarks[t];let r=e.bMarks[t]+e.tShift[t];const i=e.src.charCodeAt(r++);if(i!==42&&i!==45&&i!==43)return-1;if(r<n){const o=e.src.charCodeAt(r);if(!or(o))return-1}return r}function eA(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];let i=n;if(i+1>=r)return-1;let o=e.src.charCodeAt(i++);if(o<48||o>57)return-1;for(;;){if(i>=r)return-1;if(o=e.src.charCodeAt(i++),o>=48&&o<=57){if(i-n>=10)return-1;continue}if(o===41||o===46)break;return-1}return i<r&&(o=e.src.charCodeAt(i),!or(o))?-1:i}function $B(e,t){const n=e.level+2;for(let r=t+2,i=e.tokens.length-2;r<i;r++)e.tokens[r].level===n&&e.tokens[r].type==="paragraph_open"&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}function UB(e,t,n,r){let i,o,a,l,f=t,h=!0;if(e.sCount[f]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[f]-e.listIndent>=4&&e.sCount[f]<e.blkIndent)return!1;let p=!1;r&&e.parentType==="paragraph"&&e.sCount[f]>=e.blkIndent&&(p=!0);let b,v,x;if((x=eA(e,f))>=0){if(b=!0,a=e.bMarks[f]+e.tShift[f],v=Number(e.src.slice(a,x-1)),p&&v!==1)return!1}else if((x=J4(e,f))>=0)b=!1;else return!1;if(p&&e.skipSpaces(x)>=e.eMarks[f])return!1;if(r)return!0;const S=e.src.charCodeAt(x-1),w=e.tokens.length;b?(l=e.push("ordered_list_open","ol",1),v!==1&&(l.attrs=[["start",v]])):l=e.push("bullet_list_open","ul",1);const k=[f,0];l.map=k,l.markup=String.fromCharCode(S);let _=!1;const N=e.md.block.ruler.getRules("list"),O=e.parentType;for(e.parentType="list";f<n;){o=x,i=e.eMarks[f];const A=e.sCount[f]+x-(e.bMarks[f]+e.tShift[f]);let L=A;for(;o<i;){const H=e.src.charCodeAt(o);if(H===9)L+=4-(L+e.bsCount[f])%4;else if(H===32)L++;else break;o++}const P=o;let j;P>=i?j=1:j=L-A,j>4&&(j=1);const F=A+j;l=e.push("list_item_open","li",1),l.markup=String.fromCharCode(S);const B=[f,0];l.map=B,b&&(l.info=e.src.slice(a,x-1));const q=e.tight,W=e.tShift[f],Z=e.sCount[f],X=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=F,e.tight=!0,e.tShift[f]=P-e.bMarks[f],e.sCount[f]=L,P>=i&&e.isEmpty(f+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,f,n,!0),(!e.tight||_)&&(h=!1),_=e.line-f>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=X,e.tShift[f]=W,e.sCount[f]=Z,e.tight=q,l=e.push("list_item_close","li",-1),l.markup=String.fromCharCode(S),f=e.line,B[1]=f,f>=n||e.sCount[f]<e.blkIndent||e.sCount[f]-e.blkIndent>=4)break;let ee=!1;for(let H=0,J=N.length;H<J;H++)if(N[H](e,f,n,!0)){ee=!0;break}if(ee)break;if(b){if(x=eA(e,f),x<0)break;a=e.bMarks[f]+e.tShift[f]}else if(x=J4(e,f),x<0)break;if(S!==e.src.charCodeAt(x-1))break}return b?l=e.push("ordered_list_close","ol",-1):l=e.push("bullet_list_close","ul",-1),l.markup=String.fromCharCode(S),k[1]=f,e.line=f,e.parentType=O,h&&$B(e,w),!0}function HB(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],a=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(i)!==91)return!1;function l(N){const O=e.lineMax;if(N>=O||e.isEmpty(N))return null;let A=!1;if(e.sCount[N]-e.blkIndent>3&&(A=!0),e.sCount[N]<0&&(A=!0),!A){const j=e.md.block.ruler.getRules("reference"),F=e.parentType;e.parentType="reference";let B=!1;for(let q=0,W=j.length;q<W;q++)if(j[q](e,N,O,!0)){B=!0;break}if(e.parentType=F,B)return null}const L=e.bMarks[N]+e.tShift[N],P=e.eMarks[N];return e.src.slice(L,P+1)}let f=e.src.slice(i,o+1);o=f.length;let h=-1;for(i=1;i<o;i++){const N=f.charCodeAt(i);if(N===91)return!1;if(N===93){h=i;break}else if(N===10){const O=l(a);O!==null&&(f+=O,o=f.length,a++)}else if(N===92&&(i++,i<o&&f.charCodeAt(i)===10)){const O=l(a);O!==null&&(f+=O,o=f.length,a++)}}if(h<0||f.charCodeAt(h+1)!==58)return!1;for(i=h+2;i<o;i++){const N=f.charCodeAt(i);if(N===10){const O=l(a);O!==null&&(f+=O,o=f.length,a++)}else if(!or(N))break}const p=e.md.helpers.parseLinkDestination(f,i,o);if(!p.ok)return!1;const b=e.md.normalizeLink(p.str);if(!e.md.validateLink(b))return!1;i=p.pos;const v=i,x=a,S=i;for(;i<o;i++){const N=f.charCodeAt(i);if(N===10){const O=l(a);O!==null&&(f+=O,o=f.length,a++)}else if(!or(N))break}let w=e.md.helpers.parseLinkTitle(f,i,o);for(;w.can_continue;){const N=l(a);if(N===null)break;f+=N,i=o,o=f.length,a++,w=e.md.helpers.parseLinkTitle(f,i,o,w)}let k;for(i<o&&S!==i&&w.ok?(k=w.str,i=w.pos):(k="",i=v,a=x);i<o;){const N=f.charCodeAt(i);if(!or(N))break;i++}if(i<o&&f.charCodeAt(i)!==10&&k)for(k="",i=v,a=x;i<o;){const N=f.charCodeAt(i);if(!or(N))break;i++}if(i<o&&f.charCodeAt(i)!==10)return!1;const _=Mv(f.slice(1,h));return _?(r||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[_]>"u"&&(e.env.references[_]={title:k,href:b}),e.line=a),!0):!1}const zB=["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","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],qB="[a-zA-Z_:][a-zA-Z0-9:._-]*",GB="(?:"+"[^\"'=<>`\\x00-\\x20]+"+"|"+"'[^']*'"+"|"+'"[^"]*"'+")",tA="<[A-Za-z][A-Za-z0-9\\-]*"+("(?:\\s+"+qB+"(?:\\s*=\\s*"+GB+")?)")+"*\\s*\\/?>",nA="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",WB="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",YB="<[?][\\s\\S]*?[?]>",QB="<![A-Za-z][^>]*>",KB="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",XB=new RegExp("^(?:"+tA+"|"+nA+"|"+WB+"|"+YB+"|"+QB+"|"+KB+")"),ZB=new RegExp("^(?:"+tA+"|"+nA+")"),kd=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+zB.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(ZB.source+"\\s*$"),/^$/,!1]];function JB(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(i)!==60)return!1;let a=e.src.slice(i,o),l=0;for(;l<kd.length&&!kd[l][0].test(a);l++);if(l===kd.length)return!1;if(r)return kd[l][2];let f=t+1;if(!kd[l][1].test(a)){for(;f<n&&!(e.sCount[f]<e.blkIndent);f++)if(i=e.bMarks[f]+e.tShift[f],o=e.eMarks[f],a=e.src.slice(i,o),kd[l][1].test(a)){a.length!==0&&f++;break}}e.line=f;const h=e.push("html_block","",0);return h.map=[t,f],h.content=e.getLines(t,f,e.blkIndent,!0),!0}function e$(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.src.charCodeAt(i);if(a!==35||i>=o)return!1;let l=1;for(a=e.src.charCodeAt(++i);a===35&&i<o&&l<=6;)l++,a=e.src.charCodeAt(++i);if(l>6||i<o&&!or(a))return!1;if(r)return!0;o=e.skipSpacesBack(o,i);const f=e.skipCharsBack(o,35,i);f>i&&or(e.src.charCodeAt(f-1))&&(o=f),e.line=t+1;const h=e.push("heading_open","h"+String(l),1);h.markup="########".slice(0,l),h.map=[t,e.line];const p=e.push("inline","",0);p.content=e.src.slice(i,o).trim(),p.map=[t,e.line],p.children=[];const b=e.push("heading_close","h"+String(l),-1);return b.markup="########".slice(0,l),!0}function t$(e,t,n){const r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const i=e.parentType;e.parentType="paragraph";let o=0,a,l=t+1;for(;l<n&&!e.isEmpty(l);l++){if(e.sCount[l]-e.blkIndent>3)continue;if(e.sCount[l]>=e.blkIndent){let x=e.bMarks[l]+e.tShift[l];const S=e.eMarks[l];if(x<S&&(a=e.src.charCodeAt(x),(a===45||a===61)&&(x=e.skipChars(x,a),x=e.skipSpaces(x),x>=S))){o=a===61?1:2;break}}if(e.sCount[l]<0)continue;let v=!1;for(let x=0,S=r.length;x<S;x++)if(r[x](e,l,n,!0)){v=!0;break}if(v)break}if(!o)return!1;const f=e.getLines(t,l,e.blkIndent,!1).trim();e.line=l+1;const h=e.push("heading_open","h"+String(o),1);h.markup=String.fromCharCode(a),h.map=[t,e.line];const p=e.push("inline","",0);p.content=f,p.map=[t,e.line-1],p.children=[];const b=e.push("heading_close","h"+String(o),-1);return b.markup=String.fromCharCode(a),e.parentType=i,!0}function n$(e,t,n){const r=e.md.block.ruler.getRules("paragraph"),i=e.parentType;let o=t+1;for(e.parentType="paragraph";o<n&&!e.isEmpty(o);o++){if(e.sCount[o]-e.blkIndent>3||e.sCount[o]<0)continue;let h=!1;for(let p=0,b=r.length;p<b;p++)if(r[p](e,o,n,!0)){h=!0;break}if(h)break}const a=e.getLines(t,o,e.blkIndent,!1).trim();e.line=o;const l=e.push("paragraph_open","p",1);l.map=[t,e.line];const f=e.push("inline","",0);return f.content=a,f.map=[t,e.line],f.children=[],e.push("paragraph_close","p",-1),e.parentType=i,!0}const Iv=[["table",FB,["paragraph","reference"]],["code",PB],["fence",jB,["paragraph","reference","blockquote","list"]],["blockquote",VB,["paragraph","reference","blockquote","list"]],["hr",BB,["paragraph","reference","blockquote","list"]],["list",UB,["paragraph","reference","blockquote"]],["reference",HB],["html_block",JB,["paragraph","reference","blockquote"]],["heading",e$,["paragraph","reference","blockquote"]],["lheading",t$],["paragraph",n$]];function Fv(){this.ruler=new Vo;for(let e=0;e<Iv.length;e++)this.ruler.push(Iv[e][0],Iv[e][1],{alt:(Iv[e][2]||[]).slice()})}Fv.prototype.tokenize=function(e,t,n){const r=this.ruler.getRules(""),i=r.length,o=e.md.options.maxNesting;let a=t,l=!1;for(;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n||e.sCount[a]<e.blkIndent));){if(e.level>=o){e.line=n;break}const f=e.line;let h=!1;for(let p=0;p<i;p++)if(h=r[p](e,a,n,!1),h){if(f>=e.line)throw new Error("block rule didn't increment state.line");break}if(!h)throw new Error("none of the block rules matched");e.tight=!l,e.isEmpty(e.line-1)&&(l=!0),a=e.line,a<n&&e.isEmpty(a)&&(l=!0,a++,e.line=a)}},Fv.prototype.parse=function(e,t,n,r){if(!e)return;const i=new this.State(e,t,n,r);this.tokenize(i,i.line,i.lineMax)},Fv.prototype.State=Pa;function u0(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}u0.prototype.pushPending=function(){const e=new oa("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},u0.prototype.push=function(e,t,n){this.pending&&this.pushPending();const r=new oa(e,t,n);let i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},u0.prototype.scanDelims=function(e,t){const n=this.posMax,r=this.src.charCodeAt(e),i=e>0?this.src.charCodeAt(e-1):32;let o=e;for(;o<n&&this.src.charCodeAt(o)===r;)o++;const a=o-e,l=o<n?this.src.charCodeAt(o):32,f=a0(i)||s0(String.fromCharCode(i)),h=a0(l)||s0(String.fromCharCode(l)),p=o0(i),b=o0(l),v=!b&&(!h||p||f),x=!p&&(!f||b||h);return{can_open:v&&(t||!x||f),can_close:x&&(t||!v||h),length:a}},u0.prototype.Token=oa;function r$(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function i$(e,t){let n=e.pos;for(;n<e.posMax&&!r$(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const o$=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function s$(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,r=e.posMax;if(n+3>r||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const i=e.pending.match(o$);if(!i)return!1;const o=i[1],a=e.md.linkify.matchAtStart(e.src.slice(n-o.length));if(!a)return!1;let l=a.url;if(l.length<=o.length)return!1;l=l.replace(/\*+$/,"");const f=e.md.normalizeLink(l);if(!e.md.validateLink(f))return!1;if(!t){e.pending=e.pending.slice(0,-o.length);const h=e.push("link_open","a",1);h.attrs=[["href",f]],h.markup="linkify",h.info="auto";const p=e.push("text","",0);p.content=e.md.normalizeLinkText(l);const b=e.push("link_close","a",-1);b.markup="linkify",b.info="auto"}return e.pos+=l.length-o.length,!0}function a$(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const r=e.pending.length-1,i=e.posMax;if(!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){let o=r-1;for(;o>=1&&e.pending.charCodeAt(o-1)===32;)o--;e.pending=e.pending.slice(0,o),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<i&&or(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const jE=[];for(let e=0;e<256;e++)jE.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){jE[e.charCodeAt(0)]=1});function u$(e,t){let n=e.pos;const r=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=r))return!1;let i=e.src.charCodeAt(n);if(i===10){for(t||e.push("hardbreak","br",0),n++;n<r&&(i=e.src.charCodeAt(n),!!or(i));)n++;return e.pos=n,!0}let o=e.src[n];if(i>=55296&&i<=56319&&n+1<r){const l=e.src.charCodeAt(n+1);l>=56320&&l<=57343&&(o+=e.src[n+1],n++)}const a="\\"+o;if(!t){const l=e.push("text_special","",0);i<256&&jE[i]!==0?l.content=o:l.content=a,l.markup=a,l.info="escape"}return e.pos=n+1,!0}function l$(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const i=n;n++;const o=e.posMax;for(;n<o&&e.src.charCodeAt(n)===96;)n++;const a=e.src.slice(i,n),l=a.length;if(e.backticksScanned&&(e.backticks[l]||0)<=i)return t||(e.pending+=a),e.pos+=l,!0;let f=n,h;for(;(h=e.src.indexOf("`",f))!==-1;){for(f=h+1;f<o&&e.src.charCodeAt(f)===96;)f++;const p=f-h;if(p===l){if(!t){const b=e.push("code_inline","code",0);b.markup=a,b.content=e.src.slice(n,h).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=f,!0}e.backticks[p]=h}return e.backticksScanned=!0,t||(e.pending+=a),e.pos+=l,!0}function c$(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==126)return!1;const i=e.scanDelims(e.pos,!0);let o=i.length;const a=String.fromCharCode(r);if(o<2)return!1;let l;o%2&&(l=e.push("text","",0),l.content=a,o--);for(let f=0;f<o;f+=2)l=e.push("text","",0),l.content=a+a,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close});return e.pos+=i.length,!0}function rA(e,t){let n;const r=[],i=t.length;for(let o=0;o<i;o++){const a=t[o];if(a.marker!==126||a.end===-1)continue;const l=t[a.end];n=e.tokens[a.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[l.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[l.token-1].type==="text"&&e.tokens[l.token-1].content==="~"&&r.push(l.token-1)}for(;r.length;){const o=r.pop();let a=o+1;for(;a<e.tokens.length&&e.tokens[a].type==="s_close";)a++;a--,o!==a&&(n=e.tokens[a],e.tokens[a]=e.tokens[o],e.tokens[o]=n)}}function f$(e){const t=e.tokens_meta,n=e.tokens_meta.length;rA(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&rA(e,t[r].delimiters)}const iA={tokenize:c$,postProcess:f$};function d$(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t||r!==95&&r!==42)return!1;const i=e.scanDelims(e.pos,r===42);for(let o=0;o<i.length;o++){const a=e.push("text","",0);a.content=String.fromCharCode(r),e.delimiters.push({marker:r,length:i.length,token:e.tokens.length-1,end:-1,open:i.can_open,close:i.can_close})}return e.pos+=i.length,!0}function oA(e,t){const n=t.length;for(let r=n-1;r>=0;r--){const i=t[r];if(i.marker!==95&&i.marker!==42||i.end===-1)continue;const o=t[i.end],a=r>0&&t[r-1].end===i.end+1&&t[r-1].marker===i.marker&&t[r-1].token===i.token-1&&t[i.end+1].token===o.token+1,l=String.fromCharCode(i.marker),f=e.tokens[i.token];f.type=a?"strong_open":"em_open",f.tag=a?"strong":"em",f.nesting=1,f.markup=a?l+l:l,f.content="";const h=e.tokens[o.token];h.type=a?"strong_close":"em_close",h.tag=a?"strong":"em",h.nesting=-1,h.markup=a?l+l:l,h.content="",a&&(e.tokens[t[r-1].token].content="",e.tokens[t[i.end+1].token].content="",r--)}}function h$(e){const t=e.tokens_meta,n=e.tokens_meta.length;oA(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&oA(e,t[r].delimiters)}const sA={tokenize:d$,postProcess:h$};function p$(e,t){let n,r,i,o,a="",l="",f=e.pos,h=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const p=e.pos,b=e.posMax,v=e.pos+1,x=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(x<0)return!1;let S=x+1;if(S<b&&e.src.charCodeAt(S)===40){for(h=!1,S++;S<b&&(n=e.src.charCodeAt(S),!(!or(n)&&n!==10));S++);if(S>=b)return!1;if(f=S,i=e.md.helpers.parseLinkDestination(e.src,S,e.posMax),i.ok){for(a=e.md.normalizeLink(i.str),e.md.validateLink(a)?S=i.pos:a="",f=S;S<b&&(n=e.src.charCodeAt(S),!(!or(n)&&n!==10));S++);if(i=e.md.helpers.parseLinkTitle(e.src,S,e.posMax),S<b&&f!==S&&i.ok)for(l=i.str,S=i.pos;S<b&&(n=e.src.charCodeAt(S),!(!or(n)&&n!==10));S++);}(S>=b||e.src.charCodeAt(S)!==41)&&(h=!0),S++}if(h){if(typeof e.env.references>"u")return!1;if(S<b&&e.src.charCodeAt(S)===91?(f=S+1,S=e.md.helpers.parseLinkLabel(e,S),S>=0?r=e.src.slice(f,S++):S=x+1):S=x+1,r||(r=e.src.slice(v,x)),o=e.env.references[Mv(r)],!o)return e.pos=p,!1;a=o.href,l=o.title}if(!t){e.pos=v,e.posMax=x;const w=e.push("link_open","a",1),k=[["href",a]];w.attrs=k,l&&k.push(["title",l]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=S,e.posMax=b,!0}function m$(e,t){let n,r,i,o,a,l,f,h,p="";const b=e.pos,v=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const x=e.pos+2,S=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(S<0)return!1;if(o=S+1,o<v&&e.src.charCodeAt(o)===40){for(o++;o<v&&(n=e.src.charCodeAt(o),!(!or(n)&&n!==10));o++);if(o>=v)return!1;for(h=o,l=e.md.helpers.parseLinkDestination(e.src,o,e.posMax),l.ok&&(p=e.md.normalizeLink(l.str),e.md.validateLink(p)?o=l.pos:p=""),h=o;o<v&&(n=e.src.charCodeAt(o),!(!or(n)&&n!==10));o++);if(l=e.md.helpers.parseLinkTitle(e.src,o,e.posMax),o<v&&h!==o&&l.ok)for(f=l.str,o=l.pos;o<v&&(n=e.src.charCodeAt(o),!(!or(n)&&n!==10));o++);else f="";if(o>=v||e.src.charCodeAt(o)!==41)return e.pos=b,!1;o++}else{if(typeof e.env.references>"u")return!1;if(o<v&&e.src.charCodeAt(o)===91?(h=o+1,o=e.md.helpers.parseLinkLabel(e,o),o>=0?i=e.src.slice(h,o++):o=S+1):o=S+1,i||(i=e.src.slice(x,S)),a=e.env.references[Mv(i)],!a)return e.pos=b,!1;p=a.href,f=a.title}if(!t){r=e.src.slice(x,S);const w=[];e.md.inline.parse(r,e.md,e.env,w);const k=e.push("image","img",0),_=[["src",p],["alt",""]];k.attrs=_,k.children=w,k.content=r,f&&_.push(["title",f])}return e.pos=o,e.posMax=v,!0}const g$=/^([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])?)*)$/,v$=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function y$(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const r=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;const a=e.src.charCodeAt(n);if(a===60)return!1;if(a===62)break}const o=e.src.slice(r+1,n);if(v$.test(o)){const a=e.md.normalizeLink(o);if(!e.md.validateLink(a))return!1;if(!t){const l=e.push("link_open","a",1);l.attrs=[["href",a]],l.markup="autolink",l.info="auto";const f=e.push("text","",0);f.content=e.md.normalizeLinkText(o);const h=e.push("link_close","a",-1);h.markup="autolink",h.info="auto"}return e.pos+=o.length+2,!0}if(g$.test(o)){const a=e.md.normalizeLink("mailto:"+o);if(!e.md.validateLink(a))return!1;if(!t){const l=e.push("link_open","a",1);l.attrs=[["href",a]],l.markup="autolink",l.info="auto";const f=e.push("text","",0);f.content=e.md.normalizeLinkText(o);const h=e.push("link_close","a",-1);h.markup="autolink",h.info="auto"}return e.pos+=o.length+2,!0}return!1}function b$(e){return/^<a[>\s]/i.test(e)}function E$(e){return/^<\/a\s*>/i.test(e)}function x$(e){const t=e|32;return t>=97&&t<=122}function T$(e,t){if(!e.md.options.html)return!1;const n=e.posMax,r=e.pos;if(e.src.charCodeAt(r)!==60||r+2>=n)return!1;const i=e.src.charCodeAt(r+1);if(i!==33&&i!==63&&i!==47&&!x$(i))return!1;const o=e.src.slice(r).match(XB);if(!o)return!1;if(!t){const a=e.push("html_inline","",0);a.content=o[0],b$(a.content)&&e.linkLevel++,E$(a.content)&&e.linkLevel--}return e.pos+=o[0].length,!0}const S$=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,w$=/^&([a-z][a-z0-9]{1,31});/i;function C$(e,t){const n=e.pos,r=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=r)return!1;if(e.src.charCodeAt(n+1)===35){const o=e.src.slice(n).match(S$);if(o){if(!t){const a=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),l=e.push("text_special","",0);l.content=LE(a)?Rv(a):Rv(65533),l.markup=o[0],l.info="entity"}return e.pos+=o[0].length,!0}}else{const o=e.src.slice(n).match(w$);if(o){const a=q4(o[0]);if(a!==o[0]){if(!t){const l=e.push("text_special","",0);l.content=a,l.markup=o[0],l.info="entity"}return e.pos+=o[0].length,!0}}}return!1}function aA(e){const t={},n=e.length;if(!n)return;let r=0,i=-2;const o=[];for(let a=0;a<n;a++){const l=e[a];if(o.push(0),(e[r].marker!==l.marker||i!==l.token-1)&&(r=a),i=l.token,l.length=l.length||0,!l.close)continue;t.hasOwnProperty(l.marker)||(t[l.marker]=[-1,-1,-1,-1,-1,-1]);const f=t[l.marker][(l.open?3:0)+l.length%3];let h=r-o[r]-1,p=h;for(;h>f;h-=o[h]+1){const b=e[h];if(b.marker===l.marker&&b.open&&b.end<0){let v=!1;if((b.close||l.open)&&(b.length+l.length)%3===0&&(b.length%3!==0||l.length%3!==0)&&(v=!0),!v){const x=h>0&&!e[h-1].open?o[h-1]+1:0;o[a]=a-h+x,o[h]=x,l.open=!1,b.end=a,b.close=!1,p=-1,i=-2;break}}}p!==-1&&(t[l.marker][(l.open?3:0)+(l.length||0)%3]=p)}}function _$(e){const t=e.tokens_meta,n=e.tokens_meta.length;aA(e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&aA(t[r].delimiters)}function A$(e){let t,n,r=0;const i=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,i[t].type==="text"&&t+1<o&&i[t+1].type==="text"?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}const VE=[["text",i$],["linkify",s$],["newline",a$],["escape",u$],["backticks",l$],["strikethrough",iA.tokenize],["emphasis",sA.tokenize],["link",p$],["image",m$],["autolink",y$],["html_inline",T$],["entity",C$]],BE=[["balance_pairs",_$],["strikethrough",iA.postProcess],["emphasis",sA.postProcess],["fragments_join",A$]];function l0(){this.ruler=new Vo;for(let e=0;e<VE.length;e++)this.ruler.push(VE[e][0],VE[e][1]);this.ruler2=new Vo;for(let e=0;e<BE.length;e++)this.ruler2.push(BE[e][0],BE[e][1])}l0.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),r=n.length,i=e.md.options.maxNesting,o=e.cache;if(typeof o[t]<"u"){e.pos=o[t];return}let a=!1;if(e.level<i){for(let l=0;l<r;l++)if(e.level++,a=n[l](e,!0),e.level--,a){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;a||e.pos++,o[t]=e.pos},l0.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,r=e.posMax,i=e.md.options.maxNesting;for(;e.pos<r;){const o=e.pos;let a=!1;if(e.level<i){for(let l=0;l<n;l++)if(a=t[l](e,!1),a){if(o>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(a){if(e.pos>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},l0.prototype.parse=function(e,t,n,r){const i=new this.State(e,t,n,r);this.tokenize(i);const o=this.ruler2.getRules(""),a=o.length;for(let l=0;l<a;l++)o[l](i)},l0.prototype.State=u0;function D$(e){const t={};e=e||{},t.src_Any=B4.source,t.src_Cc=$4.source,t.src_Z=H4.source,t.src_P=OE.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const 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+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\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["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+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}function $E(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(r){e[r]=n[r]})}),e}function Pv(e){return Object.prototype.toString.call(e)}function N$(e){return Pv(e)==="[object String]"}function O$(e){return Pv(e)==="[object Object]"}function k$(e){return Pv(e)==="[object RegExp]"}function uA(e){return Pv(e)==="[object Function]"}function R$(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const lA={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function M$(e){return Object.keys(e||{}).reduce(function(t,n){return t||lA.hasOwnProperty(n)},!1)}const L$={"http:":{validate:function(e,t,n){const r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},I$="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]",F$="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function P$(e){e.__index__=-1,e.__text_cache__=""}function j$(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function cA(){return function(e,t){t.normalize(e)}}function jv(e){const t=e.re=D$(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(I$),n.push(t.src_xn),t.src_tlds=n.join("|");function r(l){return l.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");const i=[];e.__compiled__={};function o(l,f){throw new Error('(LinkifyIt) Invalid schema "'+l+'": '+f)}Object.keys(e.__schemas__).forEach(function(l){const f=e.__schemas__[l];if(f===null)return;const h={validate:null,link:null};if(e.__compiled__[l]=h,O$(f)){k$(f.validate)?h.validate=j$(f.validate):uA(f.validate)?h.validate=f.validate:o(l,f),uA(f.normalize)?h.normalize=f.normalize:f.normalize?o(l,f):h.normalize=cA();return}if(N$(f)){i.push(l);return}o(l,f)}),i.forEach(function(l){e.__compiled__[e.__schemas__[l]]&&(e.__compiled__[l].validate=e.__compiled__[e.__schemas__[l]].validate,e.__compiled__[l].normalize=e.__compiled__[e.__schemas__[l]].normalize)}),e.__compiled__[""]={validate:null,normalize:cA()};const a=Object.keys(e.__compiled__).filter(function(l){return l.length>0&&e.__compiled__[l]}).map(R$).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),P$(e)}function V$(e,t){const n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function UE(e,t){const n=new V$(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function os(e,t){if(!(this instanceof os))return new os(e,t);t||M$(e)&&(t=e,e={}),this.__opts__=$E({},lA,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=$E({},L$,e),this.__compiled__={},this.__tlds__=F$,this.__tlds_replaced__=!1,this.re={},jv(this)}os.prototype.add=function(t,n){return this.__schemas__[t]=n,jv(this),this},os.prototype.set=function(t){return this.__opts__=$E(this.__opts__,t),this},os.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let n,r,i,o,a,l,f,h,p;if(this.re.schema_test.test(t)){for(f=this.re.schema_search,f.lastIndex=0;(n=f.exec(t))!==null;)if(o=this.testSchemaAt(t,n[2],f.lastIndex),o){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(h=t.search(this.re.host_fuzzy_test),h>=0&&(this.__index__<0||h<this.__index__)&&(r=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(a=r.index+r[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(p=t.indexOf("@"),p>=0&&(i=t.match(this.re.email_fuzzy))!==null&&(a=i.index+i[1].length,l=i.index+i[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&l>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=l))),this.__index__>=0},os.prototype.pretest=function(t){return this.re.pretest.test(t)},os.prototype.testSchemaAt=function(t,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,r,this):0},os.prototype.match=function(t){const n=[];let r=0;this.__index__>=0&&this.__text_cache__===t&&(n.push(UE(this,r)),r=this.__last_index__);let i=r?t.slice(r):t;for(;this.test(i);)n.push(UE(this,r)),i=i.slice(this.__last_index__),r+=this.__last_index__;return n.length?n:null},os.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const n=this.re.schema_at_start.exec(t);if(!n)return null;const r=this.testSchemaAt(t,n[2],n[0].length);return r?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+r,UE(this,0)):null},os.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(r,i,o){return r!==o[i-1]}).reverse(),jv(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,jv(this),this)},os.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)},os.prototype.onCompile=function(){};const Rd=2147483647,ja=36,HE=1,c0=26,B$=38,$$=700,fA=72,dA=128,hA="-",U$=/^xn--/,H$=/[^\0-\x7F]/,z$=/[\x2E\u3002\uFF0E\uFF61]/g,q$={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},zE=ja-HE,Va=Math.floor,qE=String.fromCharCode;function Sl(e){throw new RangeError(q$[e])}function G$(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}function pA(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(z$,".");const i=e.split("."),o=G$(i,t).join(".");return r+o}function mA(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 W$=e=>String.fromCodePoint(...e),Y$=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:ja},gA=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},vA=function(e,t,n){let r=0;for(e=n?Va(e/$$):e>>1,e+=Va(e/t);e>zE*c0>>1;r+=ja)e=Va(e/zE);return Va(r+(zE+1)*e/(e+B$))},yA=function(e){const t=[],n=e.length;let r=0,i=dA,o=fA,a=e.lastIndexOf(hA);a<0&&(a=0);for(let l=0;l<a;++l)e.charCodeAt(l)>=128&&Sl("not-basic"),t.push(e.charCodeAt(l));for(let l=a>0?a+1:0;l<n;){const f=r;for(let p=1,b=ja;;b+=ja){l>=n&&Sl("invalid-input");const v=Y$(e.charCodeAt(l++));v>=ja&&Sl("invalid-input"),v>Va((Rd-r)/p)&&Sl("overflow"),r+=v*p;const x=b<=o?HE:b>=o+c0?c0:b-o;if(v<x)break;const S=ja-x;p>Va(Rd/S)&&Sl("overflow"),p*=S}const h=t.length+1;o=vA(r-f,h,f==0),Va(r/h)>Rd-i&&Sl("overflow"),i+=Va(r/h),r%=h,t.splice(r++,0,i)}return String.fromCodePoint(...t)},bA=function(e){const t=[];e=mA(e);const n=e.length;let r=dA,i=0,o=fA;for(const f of e)f<128&&t.push(qE(f));const a=t.length;let l=a;for(a&&t.push(hA);l<n;){let f=Rd;for(const p of e)p>=r&&p<f&&(f=p);const h=l+1;f-r>Va((Rd-i)/h)&&Sl("overflow"),i+=(f-r)*h,r=f;for(const p of e)if(p<r&&++i>Rd&&Sl("overflow"),p===r){let b=i;for(let v=ja;;v+=ja){const x=v<=o?HE:v>=o+c0?c0:v-o;if(b<x)break;const S=b-x,w=ja-x;t.push(qE(gA(x+S%w,0))),b=Va(S/w)}t.push(qE(gA(b,0))),o=vA(i,h,l===a),i=0,++l}++i,++r}return t.join("")},EA={version:"2.3.1",ucs2:{decode:mA,encode:W$},decode:yA,encode:bA,toASCII:function(e){return pA(e,function(t){return H$.test(t)?"xn--"+bA(t):t})},toUnicode:function(e){return pA(e,function(t){return U$.test(t)?yA(t.slice(4).toLowerCase()):t})}},Q$={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},K$=/^(vbscript|javascript|file|data):/,X$=/^data:image\/(gif|png|jpeg|webp);/;function Z$(e){const t=e.trim().toLowerCase();return K$.test(t)?X$.test(t):!0}const xA=["http:","https:","mailto:"];function J$(e){const t=NE(e,!0);if(t.hostname&&(!t.protocol||xA.indexOf(t.protocol)>=0))try{t.hostname=EA.toASCII(t.hostname)}catch{}return i0(DE(t))}function eU(e){const t=NE(e,!0);if(t.hostname&&(!t.protocol||xA.indexOf(t.protocol)>=0))try{t.hostname=EA.toUnicode(t.hostname)}catch{}return Dd(DE(t),Dd.defaultChars+"%")}function Os(e,t){if(!(this instanceof Os))return new Os(e,t);t||ME(e)||(t=e||{},e="default"),this.inline=new l0,this.block=new Fv,this.core=new FE,this.renderer=new Od,this.linkify=new os,this.validateLink=Z$,this.normalizeLink=J$,this.normalizeLinkText=eU,this.utils=fB,this.helpers=kv({},mB),this.options={},this.configure(e),t&&this.set(t)}Os.prototype.set=function(e){return kv(this.options,e),this},Os.prototype.configure=function(e){const t=this;if(ME(e)){const n=e;if(e=Q$[n],!e)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this},Os.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const r=e.filter(function(i){return n.indexOf(i)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},Os.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(i){n=n.concat(this[i].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const r=e.filter(function(i){return n.indexOf(i)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},Os.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},Os.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},Os.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},Os.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},Os.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const Vv=new Os({breaks:!1,linkify:!0});function tU(e,t,{schema:n,setSchemaReference:r},i,o){r0([],{useCommonAddons:!1}).then(l=>{let f,h,p,b,v,x,S,w,k;l.on(t,"select",(_,N)=>{if(!f){const O=N.parentNode;f=document.createElement("div"),f.className="CodeMirror-hint-information",O.append(f);const A=document.createElement("header");A.className="CodeMirror-hint-information-header",f.append(A),h=document.createElement("span"),h.className="CodeMirror-hint-information-field-name",A.append(h),p=document.createElement("span"),p.className="CodeMirror-hint-information-type-name-pill",A.append(p),b=document.createElement("span"),p.append(b),v=document.createElement("a"),v.className="CodeMirror-hint-information-type-name",v.href="javascript:void 0",v.addEventListener("click",a),p.append(v),x=document.createElement("span"),p.append(x),S=document.createElement("div"),S.className="CodeMirror-hint-information-description",f.append(S),w=document.createElement("div"),w.className="CodeMirror-hint-information-deprecation",f.append(w);const L=document.createElement("span");L.className="CodeMirror-hint-information-deprecation-label",L.textContent="Deprecated",w.append(L),k=document.createElement("div"),k.className="CodeMirror-hint-information-deprecation-reason",w.append(k);const P=parseInt(window.getComputedStyle(f).paddingBottom.replace(/px$/,""),10)||0,j=parseInt(window.getComputedStyle(f).maxHeight.replace(/px$/,""),10)||0,F=()=>{f&&(f.style.paddingTop=O.scrollTop+P+"px",f.style.maxHeight=O.scrollTop+j+"px")};O.addEventListener("scroll",F);let B;O.addEventListener("DOMNodeRemoved",B=q=>{q.target===O&&(O.removeEventListener("scroll",F),O.removeEventListener("DOMNodeRemoved",B),f==null||f.removeEventListener("click",a),f=null,h=null,p=null,b=null,v=null,x=null,S=null,w=null,k=null,B=null)})}if(h&&(h.textContent=_.text),p&&b&&v&&x)if(_.type){p.style.display="inline";const O=A=>{wt(A)?(x.textContent="!"+x.textContent,O(A.ofType)):vn(A)?(b.textContent+="[",x.textContent="]"+x.textContent,O(A.ofType)):v.textContent=A.name};b.textContent="",x.textContent="",O(_.type)}else b.textContent="",v.textContent="",x.textContent="",p.style.display="none";S&&(_.description?(S.style.display="block",S.innerHTML=Vv.render(_.description)):(S.style.display="none",S.innerHTML="")),w&&k&&(_.deprecationReason?(w.style.display="block",k.innerHTML=Vv.render(_.deprecationReason)):(w.style.display="none",k.innerHTML=""))})});function a(l){const f=i==null?void 0:i.referencePlugin;if(!n||!f||!(l.currentTarget instanceof HTMLElement))return;const h=l.currentTarget.textContent||"",p=n.getType(h);p&&(i.setVisiblePlugin(f),r({kind:"Type",type:p}),o==null||o(p))}}function Md(e,t){let n;return function(...r){n&&clearTimeout(n),n=setTimeout(()=>{n=null,t(...r)},e)}}function Bv(e,t){const n=it.c(4);let r,i;n[0]!==e||n[1]!==t?(r=()=>{e&&typeof t=="string"&&t!==e.getValue()&&e.setValue(t)},i=[e,t],n[0]=e,n[1]=t,n[2]=r,n[3]=i):(r=n[2],i=n[3]),R.useEffect(r,i)}function $v(e,t,n){const r=it.c(5);let i,o;r[0]!==e||r[1]!==t||r[2]!==n?(i=()=>{e==null||e.setOption(t,n)},o=[e,t,n],r[0]=e,r[1]=t,r[2]=n,r[3]=i,r[4]=o):(i=r[3],o=r[4]),R.useEffect(i,o)}function TA(e,t,n,r,i){const o=it.c(9);let a;o[0]!==i?(a={nonNull:!0,caller:i},o[0]=i,o[1]=a):a=o[1];const{updateActiveTabValues:l}=Ei(a);let f,h;o[2]!==t||o[3]!==e||o[4]!==n||o[5]!==r||o[6]!==l?(f=()=>{if(!e)return;const{storage:p}=Ad.getState(),b=Md(500,S=>{n!==null&&p.set(n,S)}),v=Md(100,S=>{l({[r]:S})}),x=(S,w)=>{if(!w)return;const k=S.getValue();b(k),v(k),t==null||t(k)};return e.on("change",x),()=>e.off("change",x)},h=[t,e,n,r,l],o[2]=t,o[3]=e,o[4]=n,o[5]=r,o[6]=l,o[7]=f,o[8]=h):(f=o[7],h=o[8]),R.useEffect(f,h)}function SA(e,t){const n=it.c(7),{schema:r,setSchemaReference:i}=Ns(),o=Nv();let a,l;n[0]!==t||n[1]!==e||n[2]!==o||n[3]!==r||n[4]!==i?(a=()=>{if(!e)return;const f=(h,p)=>{tU(h,p,{schema:r,setSchemaReference:i},o,v=>{t==null||t({kind:"Type",type:v,schema:r||void 0})})};return e.on("hasCompletion",f),()=>e.off("hasCompletion",f)},l=[t,e,o,r,i],n[0]=t,n[1]=e,n[2]=o,n[3]=r,n[4]=i,n[5]=a,n[6]=l):(a=n[5],l=n[6]),R.useEffect(a,l)}function Ba(e,t,n){const r=it.c(5);let i,o;r[0]!==n||r[1]!==e||r[2]!==t?(i=()=>{if(e){for(const a of t)e.removeKeyMap(a);if(n){const a={};for(const l of t)a[l]=()=>n();e.addKeyMap(a)}}},o=[e,t,n],r[0]=n,r[1]=e,r[2]=t,r[3]=i,r[4]=o):(i=r[3],o=r[4]),R.useEffect(i,o)}const nU=GE,rU=f0,iU=d0,oU=wA;function GE(e){const t=it.c(7);let n;t[0]!==e?(n=e===void 0?{}:e,t[0]=e,t[1]=n):n=t[1];const{caller:r,onCopyQuery:i}=n,o=r||nU;let a;t[2]!==o?(a={nonNull:!0,caller:o},t[2]=o,t[3]=a):a=t[3];const{queryEditor:l}=Ei(a);let f;return t[4]!==i||t[5]!==l?(f=()=>{if(!l)return;const h=l.getValue();TV(h),i==null||i(h)},t[4]=i,t[5]=l,t[6]=f):f=t[6],f}function f0(e){const t=it.c(7);let n;t[0]!==e?(n=e===void 0?{}:e,t[0]=e,t[1]=n):n=t[1];const{caller:r}=n,i=r||rU;let o;t[2]!==i?(o={nonNull:!0,caller:i},t[2]=i,t[3]=o):o=t[3];const{queryEditor:a}=Ei(o),{schema:l}=Ns();let f;return t[4]!==a||t[5]!==l?(f=()=>{const h=a==null?void 0:a.documentAST,p=a==null?void 0:a.getValue();!h||!p||a.setValue(mn(cj(h,l)))},t[4]=a,t[5]=l,t[6]=f):f=t[6],f}function sU(e){return mn(zi(e))}function d0(e){const t=it.c(9);let n;t[0]!==e?(n=e===void 0?{}:e,t[0]=e,t[1]=n):n=t[1];const{caller:r,onPrettifyQuery:i}=n,o=i===void 0?sU:i,a=r||iU;let l;t[2]!==a?(l={nonNull:!0,caller:a},t[2]=a,t[3]=l):l=t[3];const{queryEditor:f,headerEditor:h,variableEditor:p}=Ei(l);let b;return t[4]!==h||t[5]!==o||t[6]!==f||t[7]!==p?(b=async()=>{if(p){const v=p.getValue();try{const x=JSON.stringify(JSON.parse(v),null,2);x!==v&&p.setValue(x)}catch{}}if(h){const v=h.getValue();try{const x=JSON.stringify(JSON.parse(v),null,2);x!==v&&h.setValue(x)}catch{}}if(f){const v=f.getValue();try{const x=await o(v);x!==v&&f.setValue(x)}catch{}}},t[4]=h,t[5]=o,t[6]=f,t[7]=p,t[8]=b):b=t[8],b}function wA(e){const t=it.c(8);let n;t[0]!==e?(n=e===void 0?{}:e,t[0]=e,t[1]=n):n=t[1];const{getDefaultFieldNames:r,caller:i}=n,{schema:o}=Ns(),a=i||oU;let l;t[2]!==a?(l={nonNull:!0,caller:a},t[2]=a,t[3]=l):l=t[3];const{queryEditor:f}=Ei(l);let h;return t[4]!==r||t[5]!==f||t[6]!==o?(h=()=>{if(!f)return;const p=f.getValue(),{insertions:b,result:v}=ij(o,p,r);return b&&b.length>0&&f.operation(()=>{const x=f.getCursor(),S=f.indexFromPos(x);f.setValue(v||"");let w;w=0;const k=b.map(N=>{const{index:O,string:A}=N;return w=w+A.length,f.markText(f.posFromIndex(O+w),f.posFromIndex(O+w),{className:"auto-inserted-leaf",clearOnEnter:!0,title:"Automatically added leaf fields"})});setTimeout(()=>{for(const N of k)N.clear()},7e3);let _=S;for(const{index:N,string:O}of b)N<S&&(_=_+O.length);f.setCursor(f.posFromIndex(_))}),v},t[4]=r,t[5]=f,t[6]=o,t[7]=h):h=t[7],h}const aU=e=>{"use no memo";const n=Ei({nonNull:!0})[`${e}Editor`];let r="";const i=(n==null?void 0:n.getValue())??!1;i&&i.length>0&&(r=i);const o=R.useCallback(a=>n==null?void 0:n.setValue(a),[n]);return R.useMemo(()=>[r,o],[r,o])},uU=()=>aU("query");function lU(e){const t=it.c(12),[n,r]=e;let i;t[0]!==n?(i={pending:null,last:n},t[0]=n,t[1]=i):i=t[1];const o=R.useRef(i),[a,l]=R.useState(n);let f,h;t[2]!==a||t[3]!==r||t[4]!==n?(f=()=>{o.current.last===n||(o.current.last=n,o.current.pending===null?l(n):o.current.pending===n?(o.current.pending=null,n!==a&&(o.current.pending=a,r(a))):(o.current.pending=null,l(n)))},h=[n,a,r],t[2]=a,t[3]=r,t[4]=n,t[5]=f,t[6]=h):(f=t[5],h=t[6]),R.useEffect(f,h);let p;t[7]!==r?(p=x=>{l(x),o.current.pending===null&&o.current.last!==x&&(o.current.pending=x,r(x))},t[7]=r,t[8]=p):p=t[8];const b=p;let v;return t[9]!==b||t[10]!==a?(v=[a,b],t[9]=b,t[10]=a,t[11]=v):v=t[11],v}function cU(){return r0([Promise.resolve().then(()=>tue)])}const Uv=CA;function CA(e,t){const n=it.c(17);let r;n[0]!==e?(r=e===void 0?{}:e,n[0]=e,n[1]=r):r=n[1];const{editorTheme:i,keyMap:o,onEdit:a,readOnly:l}=r,f=i===void 0?_v:i,h=o===void 0?Av:o,p=l===void 0?!1:l,b=t||Uv;let v;n[2]!==b?(v={nonNull:!0,caller:b},n[2]=b,n[3]=v):v=n[3];const{initialHeaders:x,headerEditor:S,setHeaderEditor:w,shouldPersistHeaders:k}=Ei(v),_=Zc(),N=t||Uv;let O;n[4]!==N?(O={caller:N},n[4]=N,n[5]=O):O=n[5];const A=f0(O),L=t||Uv;let P;n[6]!==L?(P={caller:L},n[6]=L,n[7]=P):P=n[7];const j=d0(P),F=R.useRef(null);let B,q;n[8]!==f||n[9]!==x||n[10]!==p||n[11]!==w?(B=()=>{let ee;return ee=!0,cU().then(H=>{if(!ee)return;const J=F.current;if(!J)return;const ue=H(J,{value:x,lineNumbers:!0,tabSize:2,mode:{name:"javascript",json:!0},theme:f,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:p?"nocursor":!1,foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:Dv});ue.addKeyMap({"Cmd-Space"(){ue.showHint({completeSingle:!1,container:J})},"Ctrl-Space"(){ue.showHint({completeSingle:!1,container:J})},"Alt-Space"(){ue.showHint({completeSingle:!1,container:J})},"Shift-Space"(){ue.showHint({completeSingle:!1,container:J})}}),ue.on("keyup",fU),w(ue)}),()=>{ee=!1}},q=[f,x,p,w],n[8]=f,n[9]=x,n[10]=p,n[11]=w,n[12]=B,n[13]=q):(B=n[12],q=n[13]),R.useEffect(B,q),$v(S,"keyMap",h),TA(S,a,k?Hv:null,"headers",Uv);let W;n[14]===Symbol.for("react.memo_cache_sentinel")?(W=["Cmd-Enter","Ctrl-Enter"],n[14]=W):W=n[14],Ba(S,W,_==null?void 0:_.run);let Z;n[15]===Symbol.for("react.memo_cache_sentinel")?(Z=["Shift-Ctrl-P"],n[15]=Z):Z=n[15],Ba(S,Z,j);let X;return n[16]===Symbol.for("react.memo_cache_sentinel")?(X=["Shift-Ctrl-M"],n[16]=X):X=n[16],Ba(S,X,A),F}function fU(e,t){const{code:n,key:r,shiftKey:i}=t,o=n.startsWith("Key"),a=!i&&n.startsWith("Digit");(o||a||r==="_"||r==='"')&&e.execCommand("autocomplete")}const Hv="headers",dU=Array.from({length:11},(e,t)=>String.fromCharCode(8192+t)).concat(["\u2028","\u2029"," "," "]),hU=new RegExp("["+dU.join("")+"]","g");function pU(e){return e.replace(hU," ")}function mU(){return r0([Promise.resolve().then(()=>rue),Promise.resolve().then(()=>AM),Promise.resolve().then(()=>oue),Promise.resolve().then(()=>aue),Promise.resolve().then(()=>xue),Promise.resolve().then(()=>Aue),Promise.resolve().then(()=>Nue)])}const zv=_A;function gU(e,t){e.state.lint.linterOptions.variableToType=t==null?void 0:t.variableToType,e.options.lint.variableToType=t==null?void 0:t.variableToType,e.options.hintOptions.variableToType=t==null?void 0:t.variableToType}function vU(e,t){e.state.lint.linterOptions.schema=t,e.options.lint.schema=t,e.options.hintOptions.schema=t,e.options.info.schema=t,e.options.jump.schema=t}function yU(e,t){e.state.lint.linterOptions.validationRules=t,e.options.lint.validationRules=t}function bU(e,t){e.state.lint.linterOptions.externalFragments=t,e.options.lint.externalFragments=t,e.options.hintOptions.externalFragments=t}function _A(e,t){const n=it.c(40);let r;n[0]!==e?(r=e===void 0?{}:e,n[0]=e,n[1]=r):r=n[1];const{editorTheme:i,keyMap:o,onClickReference:a,onCopyQuery:l,onEdit:f,onPrettifyQuery:h,readOnly:p}=r,b=i===void 0?_v:i,v=o===void 0?Av:o,x=p===void 0?!1:p,{schema:S,setSchemaReference:w}=Ns(),k=t||zv;let _;n[2]!==k?(_={nonNull:!0,caller:k},n[2]=k,n[3]=_):_=n[3];const{externalFragments:N,initialQuery:O,queryEditor:A,setOperationName:L,setQueryEditor:P,validationRules:j,variableEditor:F,updateActiveTabValues:B}=Ei(_),q=Zc(),W=Xc(),Z=Nv(),X=t||zv;let ee;n[4]!==l||n[5]!==X?(ee={caller:X,onCopyQuery:l},n[4]=l,n[5]=X,n[6]=ee):ee=n[6];const H=GE(ee),J=t||zv;let ue;n[7]!==J?(ue={caller:J},n[7]=J,n[8]=ue):ue=n[8];const ne=f0(ue),oe=t||zv;let K;n[9]!==h||n[10]!==oe?(K={caller:oe,onPrettifyQuery:h},n[9]=h,n[10]=oe,n[11]=K):K=n[11];const he=d0(K),se=R.useRef(null),fe=R.useRef(void 0),ae=R.useRef(SU);let Ee,ve;n[12]!==a||n[13]!==Z||n[14]!==w?(Ee=()=>{ae.current=_e=>{const ze=Z==null?void 0:Z.referencePlugin;ze&&(Z.setVisiblePlugin(ze),w(_e),a==null||a(_e))}},ve=[a,Z,w],n[12]=a,n[13]=Z,n[14]=w,n[15]=Ee,n[16]=ve):(Ee=n[15],ve=n[16]),R.useEffect(Ee,ve);let xe,ge;n[17]!==b||n[18]!==O||n[19]!==x||n[20]!==P?(xe=()=>{let _e;return _e=!0,mU().then(ze=>{if(!_e)return;fe.current=ze;const Le=se.current;if(!Le)return;const Pe=ze(Le,{value:O,lineNumbers:!0,tabSize:2,foldGutter:!0,mode:"graphql",theme:b,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:x?"nocursor":!1,lint:{schema:void 0,validationRules:null,externalFragments:void 0},hintOptions:{schema:void 0,closeOnUnfocus:!1,completeSingle:!1,container:Le,externalFragments:void 0,autocompleteOptions:{mode:Mu.EXECUTABLE}},info:{schema:void 0,renderDescription:TU,onClick(Qe){ae.current(Qe)}},jump:{schema:void 0,onClick(Qe){ae.current(Qe)}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{...Dv,"Cmd-S"(){},"Ctrl-S"(){}}}),Te=function(){Pe.showHint({completeSingle:!0,container:Le})};Pe.addKeyMap({"Cmd-Space":Te,"Ctrl-Space":Te,"Alt-Space":Te,"Shift-Space":Te,"Shift-Alt-Space":Te}),Pe.on("keyup",xU);let Ie;Ie=!1,Pe.on("startCompletion",()=>{Ie=!0}),Pe.on("endCompletion",()=>{Ie=!1}),Pe.on("keydown",(Qe,ut)=>{ut.key==="Escape"&&Ie&&ut.stopPropagation()}),Pe.on("beforeChange",EU),Pe.documentAST=null,Pe.operationName=null,Pe.operations=null,Pe.variableToType=null,P(Pe)}),()=>{_e=!1}},ge=[b,O,x,P],n[17]=b,n[18]=O,n[19]=x,n[20]=P,n[21]=xe,n[22]=ge):(xe=n[21],ge=n[22]),R.useEffect(xe,ge),$v(A,"keyMap",v);let Ve,Xe;n[23]!==f||n[24]!==A||n[25]!==S||n[26]!==L||n[27]!==W||n[28]!==B||n[29]!==F?(Ve=()=>{if(!A)return;const _e=function(Pe){var Te;const Ie=iV(S,Pe.getValue()),Qe=fj(Pe.operations??void 0,Pe.operationName??void 0,Ie==null?void 0:Ie.operations);return Pe.documentAST=(Ie==null?void 0:Ie.documentAST)??null,Pe.operationName=Qe??null,Pe.operations=(Ie==null?void 0:Ie.operations)??null,F&&(gU(F,Ie),(Te=fe.current)==null||Te.signal(F,"change",F)),Ie?{...Ie,operationName:Qe}:null},ze=Md(100,Le=>{const Pe=Le.getValue();W.set(AA,Pe);const Te=Le.operationName,Ie=_e(Le);(Ie==null?void 0:Ie.operationName)!==void 0&&W.set(DU,Ie.operationName),f==null||f(Pe,Ie==null?void 0:Ie.documentAST),Ie!=null&&Ie.operationName&&Te!==Ie.operationName&&L(Ie.operationName),B({query:Pe,operationName:(Ie==null?void 0:Ie.operationName)??null})});return _e(A),A.on("change",ze),()=>A.off("change",ze)},Xe=[f,A,S,L,W,F,B],n[23]=f,n[24]=A,n[25]=S,n[26]=L,n[27]=W,n[28]=B,n[29]=F,n[30]=Ve,n[31]=Xe):(Ve=n[30],Xe=n[31]),R.useEffect(Ve,Xe),wU(A,S??null,fe),CU(A,j??null,fe),_U(A,N,fe),SA(A,a);const et=q==null?void 0:q.run;let dt;n[32]!==A||n[33]!==et||n[34]!==L?(dt=()=>{var _e;if(!et||!A||!A.operations||!A.hasFocus()){et==null||et();return}const ze=A.indexFromPos(A.getCursor());let Le;for(const Pe of A.operations)Pe.loc&&Pe.loc.start<=ze&&Pe.loc.end>=ze&&(Le=(_e=Pe.name)==null?void 0:_e.value);Le&&Le!==A.operationName&&L(Le),et()},n[32]=A,n[33]=et,n[34]=L,n[35]=dt):dt=n[35];const we=dt;let pe;n[36]===Symbol.for("react.memo_cache_sentinel")?(pe=["Cmd-Enter","Ctrl-Enter"],n[36]=pe):pe=n[36],Ba(A,pe,we);let qe;n[37]===Symbol.for("react.memo_cache_sentinel")?(qe=["Shift-Ctrl-C"],n[37]=qe):qe=n[37],Ba(A,qe,H);let ye;n[38]===Symbol.for("react.memo_cache_sentinel")?(ye=["Shift-Ctrl-P","Shift-Ctrl-F"],n[38]=ye):ye=n[38],Ba(A,ye,he);let re;return n[39]===Symbol.for("react.memo_cache_sentinel")?(re=["Shift-Ctrl-M"],n[39]=re):re=n[39],Ba(A,re,ne),se}function EU(e,t){var n;if(t.origin==="paste"){const r=t.text.map(pU);(n=t.update)==null||n.call(t,t.from,t.to,r)}}function xU(e,t){AU.test(t.key)&&e.execCommand("autocomplete")}function TU(e){return Vv.render(e)}function SU(){}function wU(e,t,n){const r=it.c(5);let i,o;r[0]!==n||r[1]!==e||r[2]!==t?(i=()=>{if(!e)return;const a=e.options.lint.schema!==t;vU(e,t),a&&n.current&&n.current.signal(e,"change",e)},o=[e,t,n],r[0]=n,r[1]=e,r[2]=t,r[3]=i,r[4]=o):(i=r[3],o=r[4]),R.useEffect(i,o)}function CU(e,t,n){const r=it.c(5);let i,o;r[0]!==n||r[1]!==e||r[2]!==t?(i=()=>{if(!e)return;const a=e.options.lint.validationRules!==t;yU(e,t),a&&n.current&&n.current.signal(e,"change",e)},o=[e,t,n],r[0]=n,r[1]=e,r[2]=t,r[3]=i,r[4]=o):(i=r[3],o=r[4]),R.useEffect(i,o)}function _U(e,t,n){const r=it.c(7);let i;r[0]!==t?(i=[...t.values()],r[0]=t,r[1]=i):i=r[1];const o=i;let a,l;r[2]!==n||r[3]!==e||r[4]!==o?(a=()=>{if(!e)return;const f=e.options.lint.externalFragments!==o;bU(e,o),f&&n.current&&n.current.signal(e,"change",e)},l=[e,o,n],r[2]=n,r[3]=e,r[4]=o,r[5]=a,r[6]=l):(a=r[5],l=r[6]),R.useEffect(a,l)}const AU=/^[a-zA-Z0-9_@(]$/,AA="query",DU="operationName";function NU({defaultQuery:e,defaultHeaders:t,headers:n,defaultTabs:r,query:i,variables:o,shouldPersistHeaders:a}){const{storage:l}=Ad.getState(),f=l.get(p0);try{if(!f)throw new Error("Storage for tabs is empty");const h=JSON.parse(f),p=a?n:void 0;if(OU(h)){const b=qv({query:i,variables:o,headers:p});let v=-1;for(let x=0;x<h.tabs.length;x++){const S=h.tabs[x];S.hash=qv({query:S.query,variables:S.variables,headers:S.headers}),S.hash===b&&(v=x)}if(v>=0)h.activeTabIndex=v;else{const x=i?WE(i):null;h.tabs.push({id:RA(),hash:b,title:x||YE,query:i,variables:o,headers:n,operationName:x,response:null}),h.activeTabIndex=h.tabs.length-1}return h}throw new Error("Storage for tabs is invalid")}catch{return{activeTabIndex:0,tabs:(r||[{query:i??e,variables:o,headers:n??t}]).map(OA)}}}function OU(e){return e&&typeof e=="object"&&!Array.isArray(e)&&RU(e,"activeTabIndex")&&"tabs"in e&&Array.isArray(e.tabs)&&e.tabs.every(kU)}function kU(e){return e&&typeof e=="object"&&!Array.isArray(e)&&DA(e,"id")&&DA(e,"title")&&h0(e,"query")&&h0(e,"variables")&&h0(e,"headers")&&h0(e,"operationName")&&h0(e,"response")}function RU(e,t){return t in e&&typeof e[t]=="number"}function DA(e,t){return t in e&&typeof e[t]=="string"}function h0(e,t){return t in e&&(typeof e[t]=="string"||e[t]===null)}function MU({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r}){return R.useCallback(i=>{const o=(e==null?void 0:e.getValue())??null,a=(t==null?void 0:t.getValue())??null,l=(n==null?void 0:n.getValue())??null,f=(e==null?void 0:e.operationName)??null,h=(r==null?void 0:r.getValue())??null;return kA(i,{query:o,variables:a,headers:l,response:h,operationName:f})},[e,t,n,r])}function NA(e,t=!1){return JSON.stringify(e,(n,r)=>n==="hash"||n==="response"||!t&&n==="headers"?null:r)}function LU({shouldPersistHeaders:e}){return R.useCallback(t=>{const{storage:n}=Ad.getState();Md(500,i=>{n.set(p0,i)})(NA(t,e))},[e])}function IU({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r,defaultHeaders:i}){return R.useCallback(({query:o,variables:a,headers:l,response:f})=>{e==null||e.setValue(o??""),t==null||t.setValue(a??""),n==null||n.setValue(l??i??""),r==null||r.setValue(f??"")},[n,e,r,t,i])}function OA({query:e=null,variables:t=null,headers:n=null}={}){const r=e?WE(e):null;return{id:RA(),hash:qv({query:e,variables:t,headers:n}),title:r||YE,query:e,variables:t,headers:n,operationName:r,response:null}}function kA(e,t){return{...e,tabs:e.tabs.map((n,r)=>{if(r!==e.activeTabIndex)return n;const i={...n,...t};return{...i,hash:qv(i),title:i.operationName||(i.query?WE(i.query):void 0)||YE}})}}function RA(){const e=()=>Math.floor((1+Math.random())*65536).toString(16).slice(1);return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}function qv(e){return[e.query??"",e.variables??"",e.headers??""].join("|")}function WE(e){const n=/^(?!#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/m.exec(e);return(n==null?void 0:n[2])??null}function FU(){const{storage:e}=Ad.getState(),t=e.get(p0);if(t){const n=JSON.parse(t);e.set(p0,JSON.stringify(n,(r,i)=>r==="headers"?null:i))}}const YE="<untitled>",p0="tabState";function PU(){return r0([Promise.resolve().then(()=>Iue),Promise.resolve().then(()=>Hue),Promise.resolve().then(()=>Gue)])}const Gv=MA;function MA(e,t){const n=it.c(17);let r;n[0]!==e?(r=e===void 0?{}:e,n[0]=e,n[1]=r):r=n[1];const{editorTheme:i,keyMap:o,onClickReference:a,onEdit:l,readOnly:f}=r,h=i===void 0?_v:i,p=o===void 0?Av:o,b=f===void 0?!1:f,v=t||Gv;let x;n[2]!==v?(x={nonNull:!0,caller:v},n[2]=v,n[3]=x):x=n[3];const{initialVariables:S,variableEditor:w,setVariableEditor:k}=Ei(x),_=Zc(),N=t||Gv;let O;n[4]!==N?(O={caller:N},n[4]=N,n[5]=O):O=n[5];const A=f0(O),L=t||Gv;let P;n[6]!==L?(P={caller:L},n[6]=L,n[7]=P):P=n[7];const j=d0(P),F=R.useRef(null);let B,q;n[8]!==h||n[9]!==S||n[10]!==b||n[11]!==k?(B=()=>{let ee;return ee=!0,PU().then(H=>{if(!ee)return;const J=F.current;if(!J)return;const ue=H(J,{value:S,lineNumbers:!0,tabSize:2,mode:"graphql-variables",theme:h,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:b?"nocursor":!1,foldGutter:!0,lint:{variableToType:void 0},hintOptions:{closeOnUnfocus:!1,completeSingle:!1,container:J,variableToType:void 0},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:Dv});ue.addKeyMap({"Cmd-Space"(){ue.showHint({completeSingle:!1,container:J})},"Ctrl-Space"(){ue.showHint({completeSingle:!1,container:J})},"Alt-Space"(){ue.showHint({completeSingle:!1,container:J})},"Shift-Space"(){ue.showHint({completeSingle:!1,container:J})}}),ue.on("keyup",jU),k(ue)}),()=>{ee=!1}},q=[h,S,b,k],n[8]=h,n[9]=S,n[10]=b,n[11]=k,n[12]=B,n[13]=q):(B=n[12],q=n[13]),R.useEffect(B,q),$v(w,"keyMap",p),TA(w,l,LA,"variables",Gv),SA(w,a);let W;n[14]===Symbol.for("react.memo_cache_sentinel")?(W=["Cmd-Enter","Ctrl-Enter"],n[14]=W):W=n[14],Ba(w,W,_==null?void 0:_.run);let Z;n[15]===Symbol.for("react.memo_cache_sentinel")?(Z=["Shift-Ctrl-P"],n[15]=Z):Z=n[15],Ba(w,Z,j);let X;return n[16]===Symbol.for("react.memo_cache_sentinel")?(X=["Shift-Ctrl-M"],n[16]=X):X=n[16],Ba(w,X,A),F}function jU(e,t){const{code:n,key:r,shiftKey:i}=t,o=n.startsWith("Key"),a=!i&&n.startsWith("Digit");(o||a||r==="_"||r==='"')&&e.execCommand("autocomplete")}const LA="variables",IA=`# 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)
#
`,FA=_4("EditorContext"),VU=e=>{const t=it.c(88),n=Xc(),[r,i]=R.useState(null),[o,a]=R.useState(null),[l,f]=R.useState(null),[h,p]=R.useState(null);let b;t[0]!==e.shouldPersistHeaders||t[1]!==n?(b=()=>{const _e=n.get(QE)!==null;return e.shouldPersistHeaders!==!1&&_e?n.get(QE)==="true":!!e.shouldPersistHeaders},t[0]=e.shouldPersistHeaders,t[1]=n,t[2]=b):b=t[2];const[v,x]=R.useState(b);Bv(r,e.headers),Bv(o,e.query),Bv(l,e.response),Bv(h,e.variables);let S;t[3]!==v?(S={shouldPersistHeaders:v},t[3]=v,t[4]=S):S=t[4];const w=LU(S);let k;t[5]!==e.defaultHeaders||t[6]!==e.defaultQuery||t[7]!==e.defaultTabs||t[8]!==e.headers||t[9]!==e.query||t[10]!==e.response||t[11]!==e.variables||t[12]!==v||t[13]!==n||t[14]!==w?(k=()=>{const _e=e.query??n.get(AA)??null,ze=e.variables??n.get(LA)??null,Le=e.headers??n.get(Hv)??null,Pe=e.response??"",Te=NU({query:_e,variables:ze,headers:Le,defaultTabs:e.defaultTabs,defaultQuery:e.defaultQuery||IA,defaultHeaders:e.defaultHeaders,shouldPersistHeaders:v});return w(Te),{query:_e??(Te.activeTabIndex===0?Te.tabs[0].query:null)??"",variables:ze??"",headers:Le??e.defaultHeaders??"",response:Pe,tabState:Te}},t[5]=e.defaultHeaders,t[6]=e.defaultQuery,t[7]=e.defaultTabs,t[8]=e.headers,t[9]=e.query,t[10]=e.response,t[11]=e.variables,t[12]=v,t[13]=n,t[14]=w,t[15]=k):k=t[15];const[_]=R.useState(k),[N,O]=R.useState(_.tabState);let A;t[16]!==r||t[17]!==n||t[18]!==N?(A=_e=>{if(_e){n.set(Hv,(r==null?void 0:r.getValue())??"");const ze=NA(N,!0);n.set(p0,ze)}else n.set(Hv,""),FU();x(_e),n.set(QE,_e.toString())},t[16]=r,t[17]=n,t[18]=N,t[19]=A):A=t[19];const L=A,P=R.useRef(void 0);let j,F;t[20]!==e.shouldPersistHeaders||t[21]!==L?(j=()=>{const _e=!!e.shouldPersistHeaders;(P==null?void 0:P.current)!==_e&&(L(_e),P.current=_e)},F=[e.shouldPersistHeaders,L],t[20]=e.shouldPersistHeaders,t[21]=L,t[22]=j,t[23]=F):(j=t[22],F=t[23]),R.useEffect(j,F);let B;t[24]!==r||t[25]!==o||t[26]!==l||t[27]!==h?(B={queryEditor:o,variableEditor:h,headerEditor:r,responseEditor:l},t[24]=r,t[25]=o,t[26]=l,t[27]=h,t[28]=B):B=t[28];const q=MU(B),{onTabChange:W,defaultHeaders:Z,defaultQuery:X,children:ee}=e;let H;t[29]!==Z||t[30]!==r||t[31]!==o||t[32]!==l||t[33]!==h?(H={queryEditor:o,variableEditor:h,headerEditor:r,responseEditor:l,defaultHeaders:Z},t[29]=Z,t[30]=r,t[31]=o,t[32]=l,t[33]=h,t[34]=H):H=t[34];const J=IU(H);let ue;t[35]!==Z||t[36]!==X||t[37]!==W||t[38]!==J||t[39]!==w||t[40]!==q?(ue=()=>{O(_e=>{const ze=q(_e),Le={tabs:[...ze.tabs,OA({headers:Z,query:X??IA})],activeTabIndex:ze.tabs.length};return w(Le),J(Le.tabs[Le.activeTabIndex]),W==null||W(Le),Le})},t[35]=Z,t[36]=X,t[37]=W,t[38]=J,t[39]=w,t[40]=q,t[41]=ue):ue=t[41];const ne=ue;let oe;t[42]!==W||t[43]!==J||t[44]!==w?(oe=_e=>{O(ze=>{const Le={...ze,activeTabIndex:_e};return w(Le),J(Le.tabs[Le.activeTabIndex]),W==null||W(Le),Le})},t[42]=W,t[43]=J,t[44]=w,t[45]=oe):oe=t[45];const K=oe;let he;t[46]!==W||t[47]!==J||t[48]!==w?(he=_e=>{O(ze=>{const Le=ze.tabs[ze.activeTabIndex],Pe={tabs:_e,activeTabIndex:_e.indexOf(Le)};return w(Pe),J(Pe.tabs[Pe.activeTabIndex]),W==null||W(Pe),Pe})},t[46]=W,t[47]=J,t[48]=w,t[49]=he):he=t[49];const se=he;let fe;t[50]!==W||t[51]!==J||t[52]!==w?(fe=_e=>{O(ze=>{const Le={tabs:ze.tabs.filter((Pe,Te)=>_e!==Te),activeTabIndex:Math.max(ze.activeTabIndex-1,0)};return w(Le),J(Le.tabs[Le.activeTabIndex]),W==null||W(Le),Le})},t[50]=W,t[51]=J,t[52]=w,t[53]=fe):fe=t[53];const ae=fe;let Ee;t[54]!==W||t[55]!==w?(Ee=_e=>{O(ze=>{const Le=kA(ze,_e);return w(Le),W==null||W(Le),Le})},t[54]=W,t[55]=w,t[56]=Ee):Ee=t[56];const ve=Ee,{onEditOperationName:xe}=e;let ge;t[57]!==xe||t[58]!==o||t[59]!==ve?(ge=_e=>{o&&(BU(o,_e),ve({operationName:_e}),xe==null||xe(_e))},t[57]=xe,t[58]=o,t[59]=ve,t[60]=ge):ge=t[60];const Ve=ge;let Xe,et;if(t[61]!==e.externalFragments){if(et=new Map,Array.isArray(e.externalFragments))for(const _e of e.externalFragments)et.set(_e.name.value,_e);else if(typeof e.externalFragments=="string")Cr(zi(e.externalFragments,{}),{FragmentDefinition(_e){et.set(_e.name.value,_e)}});else if(e.externalFragments)throw new Error("The `externalFragments` prop must either be a string that contains the fragment definitions in SDL or a list of FragmentDefinitionNode objects.");t[61]=e.externalFragments,t[62]=et}else et=t[62];Xe=et;const dt=Xe;let we;t[63]!==e.validationRules?(we=e.validationRules||[],t[63]=e.validationRules,t[64]=we):we=t[64];const pe=we;let qe;t[65]!==ne||t[66]!==K||t[67]!==ae||t[68]!==dt||t[69]!==r||t[70]!==_.headers||t[71]!==_.query||t[72]!==_.response||t[73]!==_.variables||t[74]!==se||t[75]!==o||t[76]!==l||t[77]!==Ve||t[78]!==L||t[79]!==v||t[80]!==N||t[81]!==ve||t[82]!==pe||t[83]!==h?(qe={...N,addTab:ne,changeTab:K,moveTab:se,closeTab:ae,updateActiveTabValues:ve,headerEditor:r,queryEditor:o,responseEditor:l,variableEditor:h,setHeaderEditor:i,setQueryEditor:a,setResponseEditor:f,setVariableEditor:p,setOperationName:Ve,initialQuery:_.query,initialVariables:_.variables,initialHeaders:_.headers,initialResponse:_.response,externalFragments:dt,validationRules:pe,shouldPersistHeaders:v,setShouldPersistHeaders:L},t[65]=ne,t[66]=K,t[67]=ae,t[68]=dt,t[69]=r,t[70]=_.headers,t[71]=_.query,t[72]=_.response,t[73]=_.variables,t[74]=se,t[75]=o,t[76]=l,t[77]=Ve,t[78]=L,t[79]=v,t[80]=N,t[81]=ve,t[82]=pe,t[83]=h,t[84]=qe):qe=t[84];const ye=qe;let re;return t[85]!==ee||t[86]!==ye?(re=$.jsx(FA.Provider,{value:ye,children:ee}),t[85]=ee,t[86]=ye,t[87]=re):re=t[87],re};function BU(e,t){e.operationName=t}const Ei=A4(FA),QE="shouldPersistHeaders",PA=_4("ExecutionContext"),KE=e=>{const t=it.c(26),{fetcher:n,getDefaultFieldNames:r,children:i,operationName:o}=e;if(typeof n!="function")throw new TypeError("The `ExecutionContextProvider` component requires a `fetcher` function to be passed as prop.");let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a={nonNull:!0,caller:KE},t[0]=a):a=t[0];const{externalFragments:l,headerEditor:f,queryEditor:h,responseEditor:p,variableEditor:b,updateActiveTabValues:v}=Ei(a);let x;t[1]!==r?(x={getDefaultFieldNames:r,caller:KE},t[1]=r,t[2]=x):x=t[2];const S=wA(x),[w,k]=R.useState(!1),[_,N]=R.useState(null),O=R.useRef(0);let A;t[3]!==_?(A=()=>{_==null||_.unsubscribe(),k(!1),N(null)},t[3]=_,t[4]=A):A=t[4];const L=A;let P;t[5]!==S||t[6]!==l||t[7]!==n||t[8]!==f||t[9]!==o||t[10]!==h||t[11]!==p||t[12]!==L||t[13]!==_||t[14]!==v||t[15]!==b?(P=async()=>{if(!h||!p)return;if(_){L();return}const X=fe=>{p.setValue(fe),v({response:fe})};O.current=O.current+1;const ee=O.current;let H=S()||h.getValue();const J=b==null?void 0:b.getValue();let ue;try{ue=jA({json:J,errorMessageParse:"Variables are invalid JSON",errorMessageType:"Variables are not a JSON object."})}catch(fe){const ae=fe;X(ae instanceof Error?ae.message:`${ae}`);return}const ne=f==null?void 0:f.getValue();let oe;try{oe=jA({json:ne,errorMessageParse:"Headers are invalid JSON",errorMessageType:"Headers are not a JSON object."})}catch(fe){const ae=fe;X(ae instanceof Error?ae.message:`${ae}`);return}if(l){const fe=h.documentAST?eV(h.documentAST,l):[];fe.length>0&&(H=H+(`
`+fe.map(UU).join(`
`)))}X(""),k(!0);const K=o??h.operationName??void 0,he=oe??void 0,se=h.documentAST??void 0;try{const fe={},ae=xe=>{if(ee!==O.current)return;let ge=Array.isArray(xe)?xe:!1;if(!ge&&typeof xe=="object"&&xe!==null&&"hasNext"in xe&&(ge=[xe]),ge){for(const Ve of ge)VA(fe,Ve);k(!1),X(K2(fe))}else{const Ve=K2(xe);k(!1),X(Ve)}},ve=await n({query:H,variables:ue,operationName:K},{headers:he,documentAST:se});Ww(ve)?N(ve.subscribe({next(xe){ae(xe)},error(xe){k(!1),xe&&X(Kp(xe)),N(null)},complete(){k(!1),N(null)}})):Yw(ve)?(N({unsubscribe:()=>{var xe,ge;return(ge=(xe=ve[Symbol.asyncIterator]()).return)==null?void 0:ge.call(xe)}}),await $U(ae,ve),k(!1),N(null)):ae(ve)}catch(fe){const ae=fe;k(!1),X(Kp(ae)),N(null)}},t[5]=S,t[6]=l,t[7]=n,t[8]=f,t[9]=o,t[10]=h,t[11]=p,t[12]=L,t[13]=_,t[14]=v,t[15]=b,t[16]=P):P=t[16];const j=P,F=!!_,B=o??null;let q;t[17]!==w||t[18]!==j||t[19]!==L||t[20]!==F||t[21]!==B?(q={isFetching:w,isSubscribed:F,operationName:B,run:j,stop:L},t[17]=w,t[18]=j,t[19]=L,t[20]=F,t[21]=B,t[22]=q):q=t[22];const W=q;let Z;return t[23]!==i||t[24]!==W?(Z=$.jsx(PA.Provider,{value:W,children:i}),t[23]=i,t[24]=W,t[25]=Z):Z=t[25],Z};async function $U(e,t){for await(const n of t)e(n)}const Zc=A4(PA);function jA({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}const m0=new WeakMap;function VA(e,t){var n,r,i;let o=["data",...t.path??[]];for(const f of[e,t])if(f.pending){let h=m0.get(e);h===void 0&&(h=new Map,m0.set(e,h));for(const{id:p,path:b}of f.pending)h.set(p,["data",...b])}const{items:a}=t;if(a){const{id:f}=t;if(f){if(o=(n=m0.get(e))==null?void 0:n.get(f),o===void 0)throw new Error("Invalid incremental delivery format.");mV(e,o.join(".")).push(...a)}else{o=["data",...t.path??[]];for(const h of a)TE(e,o.join("."),h),o[o.length-1]++}}const{data:l}=t;if(l){const{id:f}=t;if(f){if(o=(r=m0.get(e))==null?void 0:r.get(f),o===void 0)throw new Error("Invalid incremental delivery format.");const{subPath:h}=t;h!==void 0&&(o=[...o,...h])}TE(e,o.join("."),l,{merge:!0})}if(t.errors&&(e.errors||(e.errors=[]),e.errors.push(...t.errors)),t.extensions&&TE(e,"extensions",t.extensions,{merge:!0}),t.incremental)for(const f of t.incremental)VA(e,f);if(t.completed)for(const{id:f,errors:h}of t.completed)(i=m0.get(e))==null||i.delete(f),h&&(e.errors||(e.errors=[]),e.errors.push(...h))}function UU(e){return mn(e)}const BA=e=>{const t=it.c(45),{children:n,dangerouslyAssumeSchemaIsValid:r,defaultQuery:i,defaultHeaders:o,defaultTabs:a,externalFragments:l,fetcher:f,getDefaultFieldNames:h,headers:p,inputValueDeprecation:b,introspectionQueryName:v,onEditOperationName:x,onSchemaChange:S,onTabChange:w,onTogglePluginVisibility:k,operationName:_,plugins:N,referencePlugin:O,query:A,response:L,schema:P,schemaDescription:j,shouldPersistHeaders:F,storage:B,validationRules:q,variables:W,visiblePlugin:Z}=e;let X;t[0]!==o||t[1]!==i||t[2]!==a||t[3]!==l||t[4]!==p||t[5]!==x||t[6]!==w||t[7]!==A||t[8]!==L||t[9]!==F||t[10]!==q||t[11]!==W?(X={defaultQuery:i,defaultHeaders:o,defaultTabs:a,externalFragments:l,headers:p,onEditOperationName:x,onTabChange:w,query:A,response:L,shouldPersistHeaders:F,validationRules:q,variables:W},t[0]=o,t[1]=i,t[2]=a,t[3]=l,t[4]=p,t[5]=x,t[6]=w,t[7]=A,t[8]=L,t[9]=F,t[10]=q,t[11]=W,t[12]=X):X=t[12];const ee=X;let H;t[13]!==r||t[14]!==f||t[15]!==b||t[16]!==v||t[17]!==S||t[18]!==P||t[19]!==j?(H={dangerouslyAssumeSchemaIsValid:r,fetcher:f,inputValueDeprecation:b,introspectionQueryName:v,onSchemaChange:S,schema:P,schemaDescription:j},t[13]=r,t[14]=f,t[15]=b,t[16]=v,t[17]=S,t[18]=P,t[19]=j,t[20]=H):H=t[20];const J=H;let ue;t[21]!==f||t[22]!==h||t[23]!==_?(ue={getDefaultFieldNames:h,fetcher:f,operationName:_},t[21]=f,t[22]=h,t[23]=_,t[24]=ue):ue=t[24];const ne=ue;let oe;t[25]!==k||t[26]!==N||t[27]!==O||t[28]!==Z?(oe={onTogglePluginVisibility:k,plugins:N,visiblePlugin:Z,referencePlugin:O},t[25]=k,t[26]=N,t[27]=O,t[28]=Z,t[29]=oe):oe=t[29];const K=oe;let he;t[30]!==n||t[31]!==K?(he=$.jsx(SV,{...K,children:n}),t[30]=n,t[31]=K,t[32]=he):he=t[32];let se;t[33]!==ne||t[34]!==he?(se=$.jsx(KE,{...ne,children:he}),t[33]=ne,t[34]=he,t[35]=se):se=t[35];let fe;t[36]!==J||t[37]!==se?(fe=$.jsx(R4,{...J,children:se}),t[36]=J,t[37]=se,t[38]=fe):fe=t[38];let ae;t[39]!==ee||t[40]!==fe?(ae=$.jsx(VU,{...ee,children:fe}),t[39]=ee,t[40]=fe,t[41]=ae):ae=t[41];let Ee;return t[42]!==B||t[43]!==ae?(Ee=$.jsx(vV,{storage:B,children:ae}),t[42]=B,t[43]=ae,t[44]=Ee):Ee=t[44],Ee};function HU(e){const t=it.c(11),n=e===void 0?null:e,r=Xc();let i;t[0]!==n||t[1]!==r?(i=()=>{const v=r.get(XE);switch(v){case"light":return"light";case"dark":return"dark";default:return typeof v=="string"&&r.set(XE,""),n}},t[0]=n,t[1]=r,t[2]=i):i=t[2];const[o,a]=R.useState(i);let l,f;t[3]!==o?(l=()=>{document.body.classList.remove("graphiql-light","graphiql-dark"),o&&document.body.classList.add(`graphiql-${o}`)},f=[o],t[3]=o,t[4]=l,t[5]=f):(l=t[4],f=t[5]),R.useEffect(l,f);let h;t[6]!==r?(h=v=>{r.set(XE,v||""),a(v)},t[6]=r,t[7]=h):h=t[7];const p=h;let b;return t[8]!==p||t[9]!==o?(b={theme:o,setTheme:p},t[8]=p,t[9]=o,t[10]=b):b=t[10],b}const XE="theme",zU=({title:e,titleId:t,...n})=>R.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R.createElement("title",{id:t},e):null,R.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}),R.createElement("rect",{x:6,y:6,width:2,height:2,rx:1,fill:"currentColor"})),qU=({title:e,titleId:t,...n})=>R.createElement("svg",{height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R.createElement("title",{id:t},e):null,R.createElement("path",{d:"M1 1L7 7L13 1",stroke:"currentColor",strokeWidth:1.5})),GU=({title:e,titleId:t,...n})=>R.createElement("svg",{height:"1em",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R.createElement("title",{id:t},e):null,R.createElement("path",{d:"M6 1.04819L2 5.04819L6 9.04819",stroke:"currentColor",strokeWidth:1.75})),WU=({title:e,titleId:t,...n})=>R.createElement("svg",{height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R.createElement("title",{id:t},e):null,R.createElement("path",{d:"M13 8L7 2L1 8",stroke:"currentColor",strokeWidth:1.5})),YU=({title:e,titleId:t,...n})=>R.createElement("svg",{height:"1em",viewBox:"0 0 14 14",stroke:"currentColor",strokeWidth:3,xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R.createElement("title",{id:t},e):null,R.createElement("path",{d:"M1 1L12.9998 12.9997"}),R.createElement("path",{d:"M13 1L1.00079 13.0003"})),QU=({title:e,titleId:t,...n})=>R.createElement("svg",{height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R.createElement("title",{id:t},e):null,R.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}),R.createElement("rect",{x:6.75,y:.75,width:10.5,height:10.5,rx:2.2069,stroke:"currentColor",strokeWidth:1.5})),KU=({title:e,titleId:t,...n})=>R.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R.createElement("title",{id:t},e):null,R.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}),R.createElement("path",{d:"M5 9L9 5",stroke:"currentColor",strokeWidth:1.2}),R.createElement("path",{d:"M5 5L9 9",stroke:"currentColor",strokeWidth:1.2})),XU=({title:e,titleId:t,...n})=>R.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R.createElement("title",{id:t},e):null,R.createElement("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),R.createElement("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2}),R.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"})),ZU=({title:e,titleId:t,...n})=>R.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R.createElement("title",{id:t},e):null,R.createElement("rect",{x:.6,y:.6,width:10.8,height:10.8,rx:3.4,stroke:"currentColor",strokeWidth:1.2}),R.createElement("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),R.createElement("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2})),JU=({title:e,titleId:t,...n})=>R.createElement("svg",{height:"1em",viewBox:"0 0.5 12 12",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R.createElement("title",{id:t},e):null,R.createElement("rect",{x:7,y:5.5,width:2,height:2,rx:1,transform:"rotate(90 7 5.5)",fill:"currentColor"}),R.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"})),eH=({title:e,titleId:t,...n})=>R.createElement("svg",{height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R.createElement("title",{id:t},e):null,R.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}),R.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}),R.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"})),tH=({title:e,titleId:t,...n})=>R.createElement("svg",{height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R.createElement("title",{id:t},e):null,R.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}),R.createElement("line",{x1:13,y1:11.75,x2:6,y2:11.75,stroke:"currentColor",strokeWidth:1.5})),nH=({title:e,titleId:t,...n})=>R.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R.createElement("title",{id:t},e):null,R.createElement("rect",{x:5,y:5,width:2,height:2,rx:1,fill:"currentColor"}),R.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"})),rH=({title:e,titleId:t,...n})=>R.createElement("svg",{height:"1em",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R.createElement("title",{id:t},e):null,R.createElement("rect",{x:.6,y:1.1,width:10.8,height:10.8,rx:2.4,stroke:"currentColor",strokeWidth:1.2}),R.createElement("rect",{x:5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"})),iH=({title:e,titleId:t,...n})=>R.createElement("svg",{height:"1em",viewBox:"0 0 24 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R.createElement("title",{id:t},e):null,R.createElement("path",{d:"M1.59375 9.52344L4.87259 12.9944L8.07872 9.41249",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),R.createElement("path",{d:"M13.75 5.25V10.75H18.75",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),R.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})),oH=({title:e,titleId:t,...n})=>R.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R.createElement("title",{id:t},e):null,R.createElement("circle",{cx:6,cy:6,r:5.4,stroke:"currentColor",strokeWidth:1.2,strokeDasharray:"4.241025 4.241025",transform:"rotate(22.5 6 6)"}),R.createElement("circle",{cx:6,cy:6,r:1,fill:"currentColor"})),sH=({title:e,titleId:t,...n})=>R.createElement("svg",{height:"1em",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R.createElement("title",{id:t},e):null,R.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"}),R.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"}),R.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"}),R.createElement("path",{d:"M12.6318 5.86775H6.36955V12.1285H12.6318V5.86775Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),R.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"})),aH=({title:e,titleId:t,...n})=>R.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R.createElement("title",{id:t},e):null,R.createElement("circle",{cx:5,cy:5,r:4.35,stroke:"currentColor",strokeWidth:1.3}),R.createElement("line",{x1:8.45962,y1:8.54038,x2:11.7525,y2:11.8333,stroke:"currentColor",strokeWidth:1.3})),uH=({title:e,titleId:t,...n})=>R.createElement("svg",{height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R.createElement("title",{id:t},e):null,R.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}),R.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}),R.createElement("path",{d:"M6 4.5L9 7.5L12 4.5",stroke:"currentColor",strokeWidth:1.5}),R.createElement("path",{d:"M12 13.5L9 10.5L6 13.5",stroke:"currentColor",strokeWidth:1.5})),lH=({title:e,titleId:t,...n})=>R.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R.createElement("title",{id:t},e):null,R.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"}),R.createElement("path",{d:"M11.5 4.5L9.5 2.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"}),R.createElement("path",{d:"M5.5 10.5L3.5 8.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"})),cH=({title:e,titleId:t,...n})=>R.createElement("svg",{height:"1em",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R.createElement("title",{id:t},e):null,R.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"})),fH=({title:e,titleId:t,...n})=>R.createElement("svg",{height:"1em",viewBox:"0 0 10 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R.createElement("title",{id:t},e):null,R.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"})),dH=({title:e,titleId:t,...n})=>R.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?R.createElement("title",{id:t},e):null,R.createElement("path",{d:"M10.2852 24.0745L13.7139 18.0742",stroke:"currentColor",strokeWidth:1.5625}),R.createElement("path",{d:"M14.5742 24.0749L17.1457 19.7891",stroke:"currentColor",strokeWidth:1.5625}),R.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}),R.createElement("path",{d:"M4 15L5 13L7 12L5 11L4 9L3 11L1 12L3 13L4 15Z",stroke:"currentColor",strokeWidth:1.5625,strokeLinejoin:"round"}),R.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"})),hH=({title:e,titleId:t,...n})=>R.createElement("svg",{height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R.createElement("title",{id:t},e):null,R.createElement("path",{d:"M4.75 9.25H1.25V12.75",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),R.createElement("path",{d:"M11.25 6.75H14.75V3.25",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),R.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}),R.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})),pH=({title:e,titleId:t,...n})=>R.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R.createElement("title",{id:t},e):null,R.createElement("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),R.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})),mH=({title:e,titleId:t,...n})=>R.createElement("svg",{height:"1em",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R.createElement("title",{id:t},e):null,R.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"})),gH=({title:e,titleId:t,...n})=>R.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R.createElement("title",{id:t},e):null,R.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"})),vH=({title:e,titleId:t,...n})=>R.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R.createElement("title",{id:t},e):null,R.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})),yH=({title:e,titleId:t,...n})=>R.createElement("svg",{height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R.createElement("title",{id:t},e):null,R.createElement("rect",{width:16,height:16,rx:2,fill:"currentColor"})),bH=({title:e,titleId:t,...n})=>R.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?R.createElement("title",{id:t},e):null,R.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"})),EH=({title:e,titleId:t,...n})=>R.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?R.createElement("title",{id:t},e):null,R.createElement("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),R.createElement("rect",{x:5.5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"})),xH=jn(zU),TH=jn(qU),SH=jn(GU),wH=jn(WU),ZE=jn(YU),CH=jn(QU),_H=jn(KU),AH=jn(XU),DH=jn(ZU),NH=jn(JU),OH=jn(eH),kH=jn(tH),RH=jn(nH),MH=jn(rH),LH=jn(iH),IH=jn(oH),FH=jn(sH),PH=jn(aH),jH=jn(uH),VH=jn(lH),BH=jn(cH),$H=jn(fH),UH=jn(dH),HH=jn(hH),zH=jn(pH),qH=jn(mH),GH=jn(gH),WH=jn(vH),YH=jn(yH),QH=jn(bH),Wv=jn(EH);function jn(e){const t=e.name.replace("Svg","").replaceAll(/([A-Z])/g," $1").trimStart().toLowerCase()+" icon",n=r=>{const i=it.c(2);let o;return i[0]!==r?(o=$.jsx(e,{title:t,...r}),i[0]=r,i[1]=o):o=i[1],o};return n.displayName=e.name,n}function $A(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=$A(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Zn(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=$A(e))&&(r&&(r+=" "),r+=t);return r}const JE=e=>{const t=it.c(13);let n,r;t[0]!==e?({isHidden:r,...n}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]===Symbol.for("react.memo_cache_sentinel")?(i={nonNull:!0,caller:JE},t[3]=i):i=t[3];const{headerEditor:o}=Ei(i),a=CA(n,JE);let l,f;t[4]!==o||t[5]!==r?(l=()=>{r||o==null||o.refresh()},f=[o,r],t[4]=o,t[5]=r,t[6]=l,t[7]=f):(l=t[6],f=t[7]),R.useEffect(l,f);const h=r&&"hidden";let p;t[8]!==h?(p=Zn("graphiql-editor",h),t[8]=h,t[9]=p):p=t[9];let b;return t[10]!==a||t[11]!==p?(b=$.jsx("div",{className:p,ref:a}),t[10]=a,t[11]=p,t[12]=b):b=t[12],b},UA=Object.assign(e=>{var t;const n=it.c(14);let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r={width:null,height:null},n[0]=r):r=n[0];const[i,o]=R.useState(r),[a,l]=R.useState(null),f=R.useRef(null),h=(t=HA(e.token))==null?void 0:t.href;let p,b;n[1]!==h?(p=()=>{if(f.current){if(!h){o({width:null,height:null}),l(null);return}fetch(h,{method:"HEAD"}).then(_=>{l(_.headers.get("Content-Type"))}).catch(()=>{l(null)})}},b=[h],n[1]=h,n[2]=p,n[3]=b):(p=n[2],b=n[3]),R.useEffect(p,b);let v;n[4]!==i.height||n[5]!==i.width||n[6]!==a?(v=i.width!==null&&i.height!==null?$.jsxs("div",{children:[i.width,"x",i.height,a===null?null:" "+a]}):null,n[4]=i.height,n[5]=i.width,n[6]=a,n[7]=v):v=n[7];const x=v;let S;n[8]===Symbol.for("react.memo_cache_sentinel")?(S=()=>{var _,N;o({width:((_=f.current)==null?void 0:_.naturalWidth)??null,height:((N=f.current)==null?void 0:N.naturalHeight)??null})},n[8]=S):S=n[8];let w;n[9]!==h?(w=$.jsx("img",{onLoad:S,ref:f,src:h}),n[9]=h,n[10]=w):w=n[10];let k;return n[11]!==x||n[12]!==w?(k=$.jsxs("div",{children:[w,x]}),n[11]=x,n[12]=w,n[13]=k):k=n[13],k},{shouldRender(e){const t=HA(e);return t?KH(t):!1}});function HA(e){if(e.type!=="string")return;const t=e.string.slice(1).slice(0,-1).trim();try{return new URL(t,location.protocol+"//"+location.host)}catch{}}function KH(e){return/\.(bmp|gif|jpe?g|png|svg|webp)$/.test(e.pathname)}const zA=e=>{const t=it.c(2),n=_A(e,zA);let r;return t[0]!==n?(r=$.jsx("div",{className:"graphiql-editor",ref:n}),t[0]=n,t[1]=r):r=t[1],r};function XH(){return r0([Promise.resolve().then(()=>Z7),Promise.resolve().then(()=>G7),Promise.resolve().then(()=>hM),Promise.resolve().then(()=>AM),Promise.resolve().then(()=>oM),Promise.resolve().then(()=>fM),Promise.resolve().then(()=>vM),Promise.resolve().then(()=>Que),Promise.resolve().then(()=>pue)],{useCommonAddons:!1})}const ZH=qA;function qA(e,t){const n=it.c(17);let r;n[0]!==e?(r=e===void 0?{}:e,n[0]=e,n[1]=r):r=n[1];const{responseTooltip:i,editorTheme:o,keyMap:a}=r,l=o===void 0?_v:o,f=a===void 0?Av:a,{fetchError:h,validationErrors:p}=Ns(),b=t||ZH;let v;n[2]!==b?(v={nonNull:!0,caller:b},n[2]=b,n[3]=v):v=n[3];const{initialResponse:x,responseEditor:S,setResponseEditor:w}=Ei(v),k=R.useRef(null),_=R.useRef(i);let N,O;n[4]!==i?(N=()=>{_.current=i},O=[i],n[4]=i,n[5]=N,n[6]=O):(N=n[5],O=n[6]),R.useEffect(N,O);let A,L;n[7]!==l||n[8]!==x||n[9]!==w?(A=()=>{let F;return F=!0,XH().then(B=>{if(!F)return;const q=document.createElement("div"),W=Uw.createRoot(q);B.registerHelper("info","graphql-results",(ee,H,J,ue)=>{const ne=_.current,oe=[ne&&$.jsx(ne,{pos:ue,token:ee}),UA.shouldRender(ee)&&$.jsx(UA,{token:ee},"image-preview")].filter(JH);if(oe.length)return W.render(oe),q;W.unmount()});const Z=k.current;if(!Z)return;const X=B(Z,{value:x,lineWrapping:!0,readOnly:!0,theme:l,mode:"graphql-results",foldGutter:!0,gutters:["CodeMirror-foldgutter"],info:!0,extraKeys:Dv});w(X)}),()=>{F=!1}},L=[l,x,w],n[7]=l,n[8]=x,n[9]=w,n[10]=A,n[11]=L):(A=n[10],L=n[11]),R.useEffect(A,L),$v(S,"keyMap",f);let P,j;return n[12]!==h||n[13]!==S||n[14]!==p?(P=()=>{h&&(S==null||S.setValue(h)),p.length&&(S==null||S.setValue(Kp(p)))},j=[S,h,p],n[12]=h,n[13]=S,n[14]=p,n[15]=P,n[16]=j):(P=n[15],j=n[16]),R.useEffect(P,j),k}function JH(e){return!!e}const GA=e=>{const t=it.c(2),n=qA(e,GA);let r;return t[0]!==n?(r=$.jsx("section",{className:"result-window","aria-label":"Result Window","aria-live":"polite","aria-atomic":"true",ref:n}),t[0]=n,t[1]=r):r=t[1],r},ex=e=>{const t=it.c(13);let n,r;t[0]!==e?({isHidden:r,...n}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]===Symbol.for("react.memo_cache_sentinel")?(i={nonNull:!0,caller:ex},t[3]=i):i=t[3];const{variableEditor:o}=Ei(i),a=MA(n,ex);let l,f;t[4]!==r||t[5]!==o?(l=()=>{r||o==null||o.refresh()},f=[o,r],t[4]=r,t[5]=o,t[6]=l,t[7]=f):(l=t[6],f=t[7]),R.useEffect(l,f);const h=r&&"hidden";let p;t[8]!==h?(p=Zn("graphiql-editor",h),t[8]=h,t[9]=p):p=t[9];let b;return t[10]!==a||t[11]!==p?(b=$.jsx("div",{className:p,ref:a}),t[10]=a,t[11]=p,t[12]=b):b=t[12],b};function tx(e){const t=it.c(31),{defaultSizeRelation:n,direction:r,initiallyHidden:i,onHiddenElementChange:o,sizeThresholdFirst:a,sizeThresholdSecond:l,storageKey:f}=e,h=n===void 0?1:n,p=a===void 0?100:a,b=l===void 0?100:l,v=Xc();let x;t[0]!==v||t[1]!==f?(x=Md(500,H=>{f&&v.set(f,H)}),t[0]=v,t[1]=f,t[2]=x):x=t[2];const S=x;let w;t[3]!==i||t[4]!==v||t[5]!==f?(w=()=>{const H=f&&v.get(f);return H===Yv||i==="first"?"first":H===Qv||i==="second"?"second":null},t[3]=i,t[4]=v,t[5]=f,t[6]=w):w=t[6];const[k,_]=R.useState(w);let N;t[7]!==k||t[8]!==o?(N=H=>{H!==k&&(_(H),o==null||o(H))},t[7]=k,t[8]=o,t[9]=N):N=t[9];const O=N,A=R.useRef(null),L=R.useRef(null),P=R.useRef(null),j=R.useRef(`${h}`);let F;t[10]!==v||t[11]!==f?(F=()=>{const H=f&&v.get(f)||j.current;A.current&&(A.current.style.flex=H===Yv||H===Qv?j.current:H),P.current&&(P.current.style.flex="1")},t[10]=v,t[11]=f,t[12]=F):F=t[12];let B;t[13]!==r||t[14]!==v||t[15]!==f?(B=[r,v,f],t[13]=r,t[14]=v,t[15]=f,t[16]=B):B=t[16],R.useEffect(F,B);let q,W;t[17]!==k||t[18]!==v||t[19]!==f?(W=()=>{const H=ue=>{const ne=ue==="first"?A.current:P.current;if(ne&&(ne.style.left="-1000px",ne.style.position="absolute",ne.style.opacity="0",ne.style.height="500px",ne.style.width="500px",A.current)){const oe=parseFloat(A.current.style.flex);(!Number.isFinite(oe)||oe<1)&&(A.current.style.flex="1")}},J=ue=>{const ne=ue==="first"?A.current:P.current;if(ne&&(ne.style.width="",ne.style.height="",ne.style.opacity="",ne.style.position="",ne.style.left="",f)){const oe=v.get(f);A.current&&oe!==Yv&&oe!==Qv&&(A.current.style.flex=oe||j.current)}};k==="first"?H("first"):J("first"),k==="second"?H("second"):J("second")},q=[k,v,f],t[17]=k,t[18]=v,t[19]=f,t[20]=q,t[21]=W):(q=t[20],W=t[21]),R.useEffect(W,q);let Z,X;t[22]!==r||t[23]!==O||t[24]!==p||t[25]!==b||t[26]!==S?(Z=()=>{if(!L.current||!A.current||!P.current)return;const H=L.current,J=A.current,ue=J.parentElement,ne=r==="horizontal"?"clientX":"clientY",oe=r==="horizontal"?"left":"top",K=r==="horizontal"?"right":"bottom",he=r==="horizontal"?"clientWidth":"clientHeight",se=function(Ee){if(!(Ee.target===Ee.currentTarget))return;Ee.preventDefault();const xe=Ee[ne]-H.getBoundingClientRect()[oe],ge=function(et){if(et.buttons===0)return Ve();const dt=et[ne]-ue.getBoundingClientRect()[oe]-xe,we=ue.getBoundingClientRect()[K]-et[ne]+xe-H[he];if(dt<p)O("first"),S(Yv);else if(we<b)O("second"),S(Qv);else{O(null);const pe=`${dt/we}`;J.style.flex=pe,S(pe)}};function Ve(){document.removeEventListener("mousemove",ge),document.removeEventListener("mouseup",Ve)}document.addEventListener("mousemove",ge),document.addEventListener("mouseup",Ve)};H.addEventListener("mousedown",se);const fe=function(){A.current&&(A.current.style.flex=j.current),S(j.current),O(null)};return H.addEventListener("dblclick",fe),()=>{H.removeEventListener("mousedown",se),H.removeEventListener("dblclick",fe)}},X=[r,O,p,b,S],t[22]=r,t[23]=O,t[24]=p,t[25]=b,t[26]=S,t[27]=Z,t[28]=X):(Z=t[27],X=t[28]),R.useEffect(Z,X);let ee;return t[29]!==k?(ee={dragBarRef:L,hiddenElement:k,firstRef:A,setHiddenElement:_,secondRef:P},t[29]=k,t[30]=ee):ee=t[30],ee}const Yv="hide-first",Qv="hide-second",xi=R.forwardRef((e,t)=>{const n=it.c(6);let r;n[0]!==e.className?(r=Zn("graphiql-un-styled",e.className),n[0]=e.className,n[1]=r):r=n[1];let i;return n[2]!==e||n[3]!==t||n[4]!==r?(i=$.jsx("button",{...e,ref:t,className:r}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});xi.displayName="UnStyledButton";const sa=R.forwardRef((e,t)=>{const n=it.c(7);let r;n[0]!==e.className||n[1]!==e.state?(r=Zn("graphiql-button",{success:"graphiql-button-success",error:"graphiql-button-error"}[e.state],e.className),n[0]=e.className,n[1]=e.state,n[2]=r):r=n[2];let i;return n[3]!==e||n[4]!==t||n[5]!==r?(i=$.jsx("button",{...e,ref:t,className:r}),n[3]=e,n[4]=t,n[5]=r,n[6]=i):i=n[6],i});sa.displayName="Button";const nx=R.forwardRef((e,t)=>{const n=it.c(6);let r;n[0]!==e.className?(r=Zn("graphiql-button-group",e.className),n[0]=e.className,n[1]=r):r=n[1];let i;return n[2]!==e||n[3]!==t||n[4]!==r?(i=$.jsx("div",{...e,ref:t,className:r}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});nx.displayName="ButtonGroup";function zt(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 WA(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function rx(...e){return t=>{let n=!1;const r=e.map(i=>{const o=WA(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():WA(e[i],null)}}}}function ai(...e){return R.useCallback(rx(...e),e)}function ez(e,t){const n=R.createContext(t),r=o=>{const{children:a,...l}=o,f=R.useMemo(()=>l,Object.values(l));return $.jsx(n.Provider,{value:f,children:a})};r.displayName=e+"Provider";function i(o){const a=R.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}return[r,i]}function Jc(e,t=[]){let n=[];function r(o,a){const l=R.createContext(a),f=n.length;n=[...n,a];const h=b=>{var _;const{scope:v,children:x,...S}=b,w=((_=v==null?void 0:v[e])==null?void 0:_[f])||l,k=R.useMemo(()=>S,Object.values(S));return $.jsx(w.Provider,{value:k,children:x})};h.displayName=o+"Provider";function p(b,v){var w;const x=((w=v==null?void 0:v[e])==null?void 0:w[f])||l,S=R.useContext(x);if(S)return S;if(a!==void 0)return a;throw new Error(`\`${b}\` must be used within \`${o}\``)}return[h,p]}const i=()=>{const o=n.map(a=>R.createContext(a));return function(l){const f=(l==null?void 0:l[e])||o;return R.useMemo(()=>({[`__scope${e}`]:{...l,[e]:f}}),[l,f])}};return i.scopeName=e,[r,tz(i,...t)]}function tz(...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 a=r.reduce((l,{useScope:f,scopeName:h})=>{const b=f(o)[`__scope${h}`];return{...l,...b}},{});return R.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var wl=globalThis!=null&&globalThis.document?R.useLayoutEffect:()=>{},nz=Ap[" useId ".trim().toString()]||(()=>{}),rz=0;function ef(e){const[t,n]=R.useState(nz());return wl(()=>{n(r=>r??String(rz++))},[e]),e||(t?`radix-${t}`:"")}var iz=Ap[" useInsertionEffect ".trim().toString()]||wl;function Kv({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,o,a]=oz({defaultProp:t,onChange:n}),l=e!==void 0,f=l?e:i;{const p=R.useRef(e!==void 0);R.useEffect(()=>{const b=p.current;b!==l&&console.warn(`${r} is changing from ${b?"controlled":"uncontrolled"} to ${l?"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.`),p.current=l},[l,r])}const h=R.useCallback(p=>{var b;if(l){const v=sz(p)?p(e):p;v!==e&&((b=a.current)==null||b.call(a,v))}else o(p)},[l,e,o,a]);return[f,h]}function oz({defaultProp:e,onChange:t}){const[n,r]=R.useState(e),i=R.useRef(n),o=R.useRef(t);return iz(()=>{o.current=t},[t]),R.useEffect(()=>{var a;i.current!==n&&((a=o.current)==null||a.call(o,n),i.current=n)},[n,i]),[n,r,o]}function sz(e){return typeof e=="function"}var wo=Vw();const az=Lr(wo);function g0(e){const t=uz(e),n=R.forwardRef((r,i)=>{const{children:o,...a}=r,l=R.Children.toArray(o),f=l.find(cz);if(f){const h=f.props.children,p=l.map(b=>b===f?R.Children.count(h)>1?R.Children.only(null):R.isValidElement(h)?h.props.children:null:b);return $.jsx(t,{...a,ref:i,children:R.isValidElement(h)?R.cloneElement(h,void 0,p):null})}return $.jsx(t,{...a,ref:i,children:o})});return n.displayName=`${e}.Slot`,n}function uz(e){const t=R.forwardRef((n,r)=>{const{children:i,...o}=n,a=R.isValidElement(i)?dz(i):void 0,l=ai(a,r);if(R.isValidElement(i)){const f=fz(o,i.props);return i.type!==R.Fragment&&(f.ref=l),R.cloneElement(i,f)}return R.Children.count(i)>1?R.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var YA=Symbol("radix.slottable");function lz(e){const t=({children:n})=>$.jsx($.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=YA,t}function cz(e){return R.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===YA}function fz(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]=(...l)=>{const f=o(...l);return i(...l),f}:i&&(n[r]=i):r==="style"?n[r]={...i,...o}:r==="className"&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}function dz(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 hz=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Fr=hz.reduce((e,t)=>{const n=g0(`Primitive.${t}`),r=R.forwardRef((i,o)=>{const{asChild:a,...l}=i,f=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),$.jsx(f,{...l,ref:o})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function QA(e,t){e&&wo.flushSync(()=>e.dispatchEvent(t))}function Lu(e){const t=R.useRef(e);return R.useEffect(()=>{t.current=e}),R.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function pz(e,t=globalThis==null?void 0:globalThis.document){const n=Lu(e);R.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 mz="DismissableLayer",ix="dismissableLayer.update",gz="dismissableLayer.pointerDownOutside",vz="dismissableLayer.focusOutside",KA,XA=R.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Xv=R.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:a,onDismiss:l,...f}=e,h=R.useContext(XA),[p,b]=R.useState(null),v=(p==null?void 0:p.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,x]=R.useState({}),S=ai(t,j=>b(j)),w=Array.from(h.layers),[k]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),_=w.indexOf(k),N=p?w.indexOf(p):-1,O=h.layersWithOutsidePointerEventsDisabled.size>0,A=N>=_,L=Ez(j=>{const F=j.target,B=[...h.branches].some(q=>q.contains(F));!A||B||(i==null||i(j),a==null||a(j),j.defaultPrevented||l==null||l())},v),P=xz(j=>{const F=j.target;[...h.branches].some(q=>q.contains(F))||(o==null||o(j),a==null||a(j),j.defaultPrevented||l==null||l())},v);return pz(j=>{N===h.layers.size-1&&(r==null||r(j),!j.defaultPrevented&&l&&(j.preventDefault(),l()))},v),R.useEffect(()=>{if(p)return n&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(KA=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(p)),h.layers.add(p),ZA(),()=>{n&&h.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=KA)}},[p,v,n,h]),R.useEffect(()=>()=>{p&&(h.layers.delete(p),h.layersWithOutsidePointerEventsDisabled.delete(p),ZA())},[p,h]),R.useEffect(()=>{const j=()=>x({});return document.addEventListener(ix,j),()=>document.removeEventListener(ix,j)},[]),$.jsx(Fr.div,{...f,ref:S,style:{pointerEvents:O?A?"auto":"none":void 0,...e.style},onFocusCapture:zt(e.onFocusCapture,P.onFocusCapture),onBlurCapture:zt(e.onBlurCapture,P.onBlurCapture),onPointerDownCapture:zt(e.onPointerDownCapture,L.onPointerDownCapture)})});Xv.displayName=mz;var yz="DismissableLayerBranch",bz=R.forwardRef((e,t)=>{const n=R.useContext(XA),r=R.useRef(null),i=ai(t,r);return R.useEffect(()=>{const o=r.current;if(o)return n.branches.add(o),()=>{n.branches.delete(o)}},[n.branches]),$.jsx(Fr.div,{...e,ref:i})});bz.displayName=yz;function Ez(e,t=globalThis==null?void 0:globalThis.document){const n=Lu(e),r=R.useRef(!1),i=R.useRef(()=>{});return R.useEffect(()=>{const o=l=>{if(l.target&&!r.current){let f=function(){JA(gz,n,h,{discrete:!0})};const h={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=f,t.addEventListener("click",i.current,{once:!0})):f()}else t.removeEventListener("click",i.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",o)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",o),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function xz(e,t=globalThis==null?void 0:globalThis.document){const n=Lu(e),r=R.useRef(!1);return R.useEffect(()=>{const i=o=>{o.target&&!r.current&&JA(vz,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 ZA(){const e=new CustomEvent(ix);document.dispatchEvent(e)}function JA(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?QA(i,o):i.dispatchEvent(o)}var ox="focusScope.autoFocusOnMount",sx="focusScope.autoFocusOnUnmount",e5={bubbles:!1,cancelable:!0},Tz="FocusScope",ax=R.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...a}=e,[l,f]=R.useState(null),h=Lu(i),p=Lu(o),b=R.useRef(null),v=ai(t,w=>f(w)),x=R.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;R.useEffect(()=>{if(r){let w=function(O){if(x.paused||!l)return;const A=O.target;l.contains(A)?b.current=A:Cl(b.current,{select:!0})},k=function(O){if(x.paused||!l)return;const A=O.relatedTarget;A!==null&&(l.contains(A)||Cl(b.current,{select:!0}))},_=function(O){if(document.activeElement===document.body)for(const L of O)L.removedNodes.length>0&&Cl(l)};document.addEventListener("focusin",w),document.addEventListener("focusout",k);const N=new MutationObserver(_);return l&&N.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",k),N.disconnect()}}},[r,l,x.paused]),R.useEffect(()=>{if(l){r5.add(x);const w=document.activeElement;if(!l.contains(w)){const _=new CustomEvent(ox,e5);l.addEventListener(ox,h),l.dispatchEvent(_),_.defaultPrevented||(Sz(Dz(t5(l)),{select:!0}),document.activeElement===w&&Cl(l))}return()=>{l.removeEventListener(ox,h),setTimeout(()=>{const _=new CustomEvent(sx,e5);l.addEventListener(sx,p),l.dispatchEvent(_),_.defaultPrevented||Cl(w??document.body,{select:!0}),l.removeEventListener(sx,p),r5.remove(x)},0)}}},[l,h,p,x]);const S=R.useCallback(w=>{if(!n&&!r||x.paused)return;const k=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,_=document.activeElement;if(k&&_){const N=w.currentTarget,[O,A]=wz(N);O&&A?!w.shiftKey&&_===A?(w.preventDefault(),n&&Cl(O,{select:!0})):w.shiftKey&&_===O&&(w.preventDefault(),n&&Cl(A,{select:!0})):_===N&&w.preventDefault()}},[n,r,x.paused]);return $.jsx(Fr.div,{tabIndex:-1,...a,ref:v,onKeyDown:S})});ax.displayName=Tz;function Sz(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Cl(r,{select:t}),document.activeElement!==n)return}function wz(e){const t=t5(e),n=n5(t,e),r=n5(t.reverse(),e);return[n,r]}function t5(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 n5(e,t){for(const n of e)if(!Cz(n,{upTo:t}))return n}function Cz(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 _z(e){return e instanceof HTMLInputElement&&"select"in e}function Cl(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&_z(e)&&t&&e.select()}}var r5=Az();function Az(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=i5(e,t),e.unshift(t)},remove(t){var n;e=i5(e,t),(n=e[0])==null||n.resume()}}}function i5(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function Dz(e){return e.filter(t=>t.tagName!=="A")}var Nz="Portal",Zv=R.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[i,o]=R.useState(!1);wl(()=>o(!0),[]);const a=n||i&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return a?az.createPortal($.jsx(Fr.div,{...r,ref:t}),a):null});Zv.displayName=Nz;function Oz(e,t){return R.useReducer((n,r)=>t[n][r]??n,e)}var $a=e=>{const{present:t,children:n}=e,r=kz(t),i=typeof n=="function"?n({present:r.isPresent}):R.Children.only(n),o=ai(r.ref,Rz(i));return typeof n=="function"||r.isPresent?R.cloneElement(i,{ref:o}):null};$a.displayName="Presence";function kz(e){const[t,n]=R.useState(),r=R.useRef(null),i=R.useRef(e),o=R.useRef("none"),a=e?"mounted":"unmounted",[l,f]=Oz(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return R.useEffect(()=>{const h=Jv(r.current);o.current=l==="mounted"?h:"none"},[l]),wl(()=>{const h=r.current,p=i.current;if(p!==e){const v=o.current,x=Jv(h);e?f("MOUNT"):x==="none"||(h==null?void 0:h.display)==="none"?f("UNMOUNT"):f(p&&v!==x?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,f]),wl(()=>{if(t){let h;const p=t.ownerDocument.defaultView??window,b=x=>{const w=Jv(r.current).includes(x.animationName);if(x.target===t&&w&&(f("ANIMATION_END"),!i.current)){const k=t.style.animationFillMode;t.style.animationFillMode="forwards",h=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=k)})}},v=x=>{x.target===t&&(o.current=Jv(r.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",b),t.addEventListener("animationend",b),()=>{p.clearTimeout(h),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",b),t.removeEventListener("animationend",b)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:R.useCallback(h=>{r.current=h?getComputedStyle(h):null,n(h)},[])}}function Jv(e){return(e==null?void 0:e.animationName)||"none"}function Rz(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 ux=0;function o5(){R.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??s5()),document.body.insertAdjacentElement("beforeend",e[1]??s5()),ux++,()=>{ux===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ux--}},[])}function s5(){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 Ua=function(){return Ua=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},Ua.apply(this,arguments)};function a5(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 Mz(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 e1="right-scroll-bar-position",t1="width-before-scroll-bar",Lz="with-scroll-bars-hidden",Iz="--removed-body-scroll-bar-size";function lx(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Fz(e,t){var n=R.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 Pz=typeof window<"u"?R.useLayoutEffect:R.useEffect,u5=new WeakMap;function jz(e,t){var n=Fz(null,function(r){return e.forEach(function(i){return lx(i,r)})});return Pz(function(){var r=u5.get(n);if(r){var i=new Set(r),o=new Set(e),a=n.current;i.forEach(function(l){o.has(l)||lx(l,null)}),o.forEach(function(l){i.has(l)||lx(l,a)})}u5.set(n,e)},[e]),n}function Vz(e){return e}function Bz(e,t){t===void 0&&(t=Vz);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 a=t(o,r);return n.push(a),function(){n=n.filter(function(l){return l!==a})}},assignSyncMedium:function(o){for(r=!0;n.length;){var a=n;n=[],a.forEach(o)}n={push:function(l){return o(l)},filter:function(){return n}}},assignMedium:function(o){r=!0;var a=[];if(n.length){var l=n;n=[],l.forEach(o),a=n}var f=function(){var p=a;a=[],p.forEach(o)},h=function(){return Promise.resolve().then(f)};h(),n={push:function(p){a.push(p),h()},filter:function(p){return a=a.filter(p),n}}}};return i}function $z(e){e===void 0&&(e={});var t=Bz(null);return t.options=Ua({async:!0,ssr:!1},e),t}var l5=function(e){var t=e.sideCar,n=a5(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 R.createElement(r,Ua({},n))};l5.isSideCarExport=!0;function Uz(e,t){return e.useMedium(t),l5}var c5=$z(),cx=function(){},n1=R.forwardRef(function(e,t){var n=R.useRef(null),r=R.useState({onScrollCapture:cx,onWheelCapture:cx,onTouchMoveCapture:cx}),i=r[0],o=r[1],a=e.forwardProps,l=e.children,f=e.className,h=e.removeScrollBar,p=e.enabled,b=e.shards,v=e.sideCar,x=e.noRelative,S=e.noIsolation,w=e.inert,k=e.allowPinchZoom,_=e.as,N=_===void 0?"div":_,O=e.gapMode,A=a5(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=v,P=jz([n,t]),j=Ua(Ua({},A),i);return R.createElement(R.Fragment,null,p&&R.createElement(L,{sideCar:c5,removeScrollBar:h,shards:b,noRelative:x,noIsolation:S,inert:w,setCallbacks:o,allowPinchZoom:!!k,lockRef:n,gapMode:O}),a?R.cloneElement(R.Children.only(l),Ua(Ua({},j),{ref:P})):R.createElement(N,Ua({},j,{className:f,ref:P}),l))});n1.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},n1.classNames={fullWidth:t1,zeroRight:e1};var Hz=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function zz(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Hz();return t&&e.setAttribute("nonce",t),e}function qz(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Gz(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Wz=function(){var e=0,t=null;return{add:function(n){e==0&&(t=zz())&&(qz(t,n),Gz(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Yz=function(){var e=Wz();return function(t,n){R.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},f5=function(){var e=Yz(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},Qz={left:0,top:0,right:0,gap:0},fx=function(e){return parseInt(e||"",10)||0},Kz=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[fx(n),fx(r),fx(i)]},Xz=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Qz;var t=Kz(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])}},Zz=f5(),Ld="data-scroll-locked",Jz=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,l=e.gap;return n===void 0&&(n="margin"),`
.`.concat(Lz,` {
overflow: hidden `).concat(r,`;
padding-right: `).concat(l,"px ").concat(r,`;
}
body[`).concat(Ld,`] {
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(a,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(l,"px ").concat(r,`;
`),n==="padding"&&"padding-right: ".concat(l,"px ").concat(r,";")].filter(Boolean).join(""),`
}
.`).concat(e1,` {
right: `).concat(l,"px ").concat(r,`;
}
.`).concat(t1,` {
margin-right: `).concat(l,"px ").concat(r,`;
}
.`).concat(e1," .").concat(e1,` {
right: 0 `).concat(r,`;
}
.`).concat(t1," .").concat(t1,` {
margin-right: 0 `).concat(r,`;
}
body[`).concat(Ld,`] {
`).concat(Iz,": ").concat(l,`px;
}
`)},d5=function(){var e=parseInt(document.body.getAttribute(Ld)||"0",10);return isFinite(e)?e:0},eq=function(){R.useEffect(function(){return document.body.setAttribute(Ld,(d5()+1).toString()),function(){var e=d5()-1;e<=0?document.body.removeAttribute(Ld):document.body.setAttribute(Ld,e.toString())}},[])},tq=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;eq();var o=R.useMemo(function(){return Xz(i)},[i]);return R.createElement(Zz,{styles:Jz(o,!t,i,n?"":"!important")})},dx=!1;if(typeof window<"u")try{var r1=Object.defineProperty({},"passive",{get:function(){return dx=!0,!0}});window.addEventListener("test",r1,r1),window.removeEventListener("test",r1,r1)}catch{dx=!1}var Id=dx?{passive:!1}:!1,nq=function(e){return e.tagName==="TEXTAREA"},h5=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!nq(e)&&n[t]==="visible")},rq=function(e){return h5(e,"overflowY")},iq=function(e){return h5(e,"overflowX")},p5=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=m5(e,r);if(i){var o=g5(e,r),a=o[1],l=o[2];if(a>l)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},oq=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},sq=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},m5=function(e,t){return e==="v"?rq(t):iq(t)},g5=function(e,t){return e==="v"?oq(t):sq(t)},aq=function(e,t){return e==="h"&&t==="rtl"?-1:1},uq=function(e,t,n,r,i){var o=aq(e,window.getComputedStyle(t).direction),a=o*r,l=n.target,f=t.contains(l),h=!1,p=a>0,b=0,v=0;do{var x=g5(e,l),S=x[0],w=x[1],k=x[2],_=w-k-o*S;(S||_)&&m5(e,l)&&(b+=_,v+=S),l=l.parentNode.host||l.parentNode}while(!f&&l!==document.body||f&&(t.contains(l)||t===l));return(p&&Math.abs(b)<1||!p&&Math.abs(v)<1)&&(h=!0),h},i1=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},v5=function(e){return[e.deltaX,e.deltaY]},y5=function(e){return e&&"current"in e?e.current:e},lq=function(e,t){return e[0]===t[0]&&e[1]===t[1]},cq=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},fq=0,Fd=[];function dq(e){var t=R.useRef([]),n=R.useRef([0,0]),r=R.useRef(),i=R.useState(fq++)[0],o=R.useState(f5)[0],a=R.useRef(e);R.useEffect(function(){a.current=e},[e]),R.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var w=Mz([e.lockRef.current],(e.shards||[]).map(y5),!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 l=R.useCallback(function(w,k){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!a.current.allowPinchZoom;var _=i1(w),N=n.current,O="deltaX"in w?w.deltaX:N[0]-_[0],A="deltaY"in w?w.deltaY:N[1]-_[1],L,P=w.target,j=Math.abs(O)>Math.abs(A)?"h":"v";if("touches"in w&&j==="h"&&P.type==="range")return!1;var F=p5(j,P);if(!F)return!0;if(F?L=j:(L=j==="v"?"h":"v",F=p5(j,P)),!F)return!1;if(!r.current&&"changedTouches"in w&&(O||A)&&(r.current=L),!L)return!0;var B=r.current||L;return uq(B,k,w,B==="h"?O:A)},[]),f=R.useCallback(function(w){var k=w;if(!(!Fd.length||Fd[Fd.length-1]!==o)){var _="deltaY"in k?v5(k):i1(k),N=t.current.filter(function(L){return L.name===k.type&&(L.target===k.target||k.target===L.shadowParent)&&lq(L.delta,_)})[0];if(N&&N.should){k.cancelable&&k.preventDefault();return}if(!N){var O=(a.current.shards||[]).map(y5).filter(Boolean).filter(function(L){return L.contains(k.target)}),A=O.length>0?l(k,O[0]):!a.current.noIsolation;A&&k.cancelable&&k.preventDefault()}}},[]),h=R.useCallback(function(w,k,_,N){var O={name:w,delta:k,target:_,should:N,shadowParent:hq(_)};t.current.push(O),setTimeout(function(){t.current=t.current.filter(function(A){return A!==O})},1)},[]),p=R.useCallback(function(w){n.current=i1(w),r.current=void 0},[]),b=R.useCallback(function(w){h(w.type,v5(w),w.target,l(w,e.lockRef.current))},[]),v=R.useCallback(function(w){h(w.type,i1(w),w.target,l(w,e.lockRef.current))},[]);R.useEffect(function(){return Fd.push(o),e.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:v}),document.addEventListener("wheel",f,Id),document.addEventListener("touchmove",f,Id),document.addEventListener("touchstart",p,Id),function(){Fd=Fd.filter(function(w){return w!==o}),document.removeEventListener("wheel",f,Id),document.removeEventListener("touchmove",f,Id),document.removeEventListener("touchstart",p,Id)}},[]);var x=e.removeScrollBar,S=e.inert;return R.createElement(R.Fragment,null,S?R.createElement(o,{styles:cq(i)}):null,x?R.createElement(tq,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function hq(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const pq=Uz(c5,dq);var hx=R.forwardRef(function(e,t){return R.createElement(n1,Ua({},e,{ref:t,sideCar:pq}))});hx.classNames=n1.classNames;var mq=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Pd=new WeakMap,o1=new WeakMap,s1={},px=0,b5=function(e){return e&&(e.host||b5(e.parentNode))},gq=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=b5(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})},vq=function(e,t,n,r){var i=gq(t,Array.isArray(e)?e:[e]);s1[n]||(s1[n]=new WeakMap);var o=s1[n],a=[],l=new Set,f=new Set(i),h=function(b){!b||l.has(b)||(l.add(b),h(b.parentNode))};i.forEach(h);var p=function(b){!b||f.has(b)||Array.prototype.forEach.call(b.children,function(v){if(l.has(v))p(v);else try{var x=v.getAttribute(r),S=x!==null&&x!=="false",w=(Pd.get(v)||0)+1,k=(o.get(v)||0)+1;Pd.set(v,w),o.set(v,k),a.push(v),w===1&&S&&o1.set(v,!0),k===1&&v.setAttribute(n,"true"),S||v.setAttribute(r,"true")}catch(_){console.error("aria-hidden: cannot operate on ",v,_)}})};return p(t),l.clear(),px++,function(){a.forEach(function(b){var v=Pd.get(b)-1,x=o.get(b)-1;Pd.set(b,v),o.set(b,x),v||(o1.has(b)||b.removeAttribute(r),o1.delete(b)),x||b.removeAttribute(n)}),px--,px||(Pd=new WeakMap,Pd=new WeakMap,o1=new WeakMap,s1={})}},E5=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=mq(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),vq(r,i,n,"aria-hidden")):function(){return null}},a1="Dialog",[x5,oce]=Jc(a1),[yq,aa]=x5(a1),T5=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:a=!0}=e,l=R.useRef(null),f=R.useRef(null),[h,p]=Kv({prop:r,defaultProp:i??!1,onChange:o,caller:a1});return $.jsx(yq,{scope:t,triggerRef:l,contentRef:f,contentId:ef(),titleId:ef(),descriptionId:ef(),open:h,onOpenChange:p,onOpenToggle:R.useCallback(()=>p(b=>!b),[p]),modal:a,children:n})};T5.displayName=a1;var S5="DialogTrigger",w5=R.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=aa(S5,n),o=ai(t,i.triggerRef);return $.jsx(Fr.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":vx(i.open),...r,ref:o,onClick:zt(e.onClick,i.onOpenToggle)})});w5.displayName=S5;var mx="DialogPortal",[bq,C5]=x5(mx,{forceMount:void 0}),_5=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,o=aa(mx,t);return $.jsx(bq,{scope:t,forceMount:n,children:R.Children.map(r,a=>$.jsx($a,{present:n||o.open,children:$.jsx(Zv,{asChild:!0,container:i,children:a})}))})};_5.displayName=mx;var u1="DialogOverlay",A5=R.forwardRef((e,t)=>{const n=C5(u1,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=aa(u1,e.__scopeDialog);return o.modal?$.jsx($a,{present:r||o.open,children:$.jsx(xq,{...i,ref:t})}):null});A5.displayName=u1;var Eq=g0("DialogOverlay.RemoveScroll"),xq=R.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=aa(u1,n);return $.jsx(hx,{as:Eq,allowPinchZoom:!0,shards:[i.contentRef],children:$.jsx(Fr.div,{"data-state":vx(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),tf="DialogContent",D5=R.forwardRef((e,t)=>{const n=C5(tf,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=aa(tf,e.__scopeDialog);return $.jsx($a,{present:r||o.open,children:o.modal?$.jsx(Tq,{...i,ref:t}):$.jsx(Sq,{...i,ref:t})})});D5.displayName=tf;var Tq=R.forwardRef((e,t)=>{const n=aa(tf,e.__scopeDialog),r=R.useRef(null),i=ai(t,n.contentRef,r);return R.useEffect(()=>{const o=r.current;if(o)return E5(o)},[]),$.jsx(N5,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:zt(e.onCloseAutoFocus,o=>{var a;o.preventDefault(),(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:zt(e.onPointerDownOutside,o=>{const a=o.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0;(a.button===2||l)&&o.preventDefault()}),onFocusOutside:zt(e.onFocusOutside,o=>o.preventDefault())})}),Sq=R.forwardRef((e,t)=>{const n=aa(tf,e.__scopeDialog),r=R.useRef(!1),i=R.useRef(!1);return $.jsx(N5,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var a,l;(a=e.onCloseAutoFocus)==null||a.call(e,o),o.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),o.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:o=>{var f,h;(f=e.onInteractOutside)==null||f.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const a=o.target;((h=n.triggerRef.current)==null?void 0:h.contains(a))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),N5=R.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...a}=e,l=aa(tf,n),f=R.useRef(null),h=ai(t,f);return o5(),$.jsxs($.Fragment,{children:[$.jsx(ax,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:$.jsx(Xv,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":vx(l.open),...a,ref:h,onDismiss:()=>l.onOpenChange(!1)})}),$.jsxs($.Fragment,{children:[$.jsx(wq,{titleId:l.titleId}),$.jsx(_q,{contentRef:f,descriptionId:l.descriptionId})]})]})}),gx="DialogTitle",O5=R.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=aa(gx,n);return $.jsx(Fr.h2,{id:i.titleId,...r,ref:t})});O5.displayName=gx;var k5="DialogDescription",R5=R.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=aa(k5,n);return $.jsx(Fr.p,{id:i.descriptionId,...r,ref:t})});R5.displayName=k5;var M5="DialogClose",L5=R.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=aa(M5,n);return $.jsx(Fr.button,{type:"button",...r,ref:t,onClick:zt(e.onClick,()=>i.onOpenChange(!1))})});L5.displayName=M5;function vx(e){return e?"open":"closed"}var I5="DialogTitleWarning",[sce,F5]=ez(I5,{contentName:tf,titleName:gx,docsSlug:"dialog"}),wq=({titleId:e})=>{const t=F5(I5),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 R.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Cq="DialogDescriptionWarning",_q=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${F5(Cq).contentName}}.`;return R.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},Aq=T5,Dq=w5,Nq=_5,Oq=A5,kq=D5,Rq=O5,Mq=R5,Lq=L5,Iq=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"}),Fq="VisuallyHidden",P5=R.forwardRef((e,t)=>$.jsx(Fr.span,{...e,ref:t,style:{...Iq,...e.style}}));P5.displayName=Fq;var j5=P5;const V5=R.forwardRef((e,t)=>{const n=it.c(8);let r;n[0]!==e.className?(r=Zn("graphiql-dialog-close",e.className),n[0]=e.className,n[1]=r):r=n[1];let i,o;n[2]===Symbol.for("react.memo_cache_sentinel")?(i=$.jsx(j5,{children:"Close dialog"}),o=$.jsx(ZE,{}),n[2]=i,n[3]=o):(i=n[2],o=n[3]);let a;return n[4]!==e||n[5]!==t||n[6]!==r?(a=$.jsx(Lq,{asChild:!0,children:$.jsxs(xi,{...e,ref:t,type:"button",className:r,children:[i,o]})}),n[4]=e,n[5]=t,n[6]=r,n[7]=a):a=n[7],a});V5.displayName="Dialog.Close";const jd=Object.assign(e=>{const t=it.c(9);let n,r;t[0]!==e?({children:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let i;t[3]===Symbol.for("react.memo_cache_sentinel")?(i=$.jsx(Oq,{className:"graphiql-dialog-overlay"}),t[3]=i):i=t[3];let o;t[4]!==n?(o=$.jsxs(Nq,{children:[i,$.jsx(kq,{className:"graphiql-dialog",children:n})]}),t[4]=n,t[5]=o):o=t[5];let a;return t[6]!==r||t[7]!==o?(a=$.jsx(Aq,{...r,children:o}),t[6]=r,t[7]=o,t[8]=a):a=t[8],a},{Close:V5,Title:Rq,Trigger:Dq,Description:Mq});function B5(e){const t=e+"CollectionProvider",[n,r]=Jc(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=w=>{const{scope:k,children:_}=w,N=Mt.useRef(null),O=Mt.useRef(new Map).current;return $.jsx(i,{scope:k,itemMap:O,collectionRef:N,children:_})};a.displayName=t;const l=e+"CollectionSlot",f=g0(l),h=Mt.forwardRef((w,k)=>{const{scope:_,children:N}=w,O=o(l,_),A=ai(k,O.collectionRef);return $.jsx(f,{ref:A,children:N})});h.displayName=l;const p=e+"CollectionItemSlot",b="data-radix-collection-item",v=g0(p),x=Mt.forwardRef((w,k)=>{const{scope:_,children:N,...O}=w,A=Mt.useRef(null),L=ai(k,A),P=o(p,_);return Mt.useEffect(()=>(P.itemMap.set(A,{ref:A,...O}),()=>void P.itemMap.delete(A))),$.jsx(v,{[b]:"",ref:L,children:N})});x.displayName=p;function S(w){const k=o(e+"CollectionConsumer",w);return Mt.useCallback(()=>{const N=k.collectionRef.current;if(!N)return[];const O=Array.from(N.querySelectorAll(`[${b}]`));return Array.from(k.itemMap.values()).sort((P,j)=>O.indexOf(P.ref.current)-O.indexOf(j.ref.current))},[k.collectionRef,k.itemMap])}return[{Provider:a,Slot:h,ItemSlot:x},S,r]}var Pq=R.createContext(void 0);function $5(e){const t=R.useContext(Pq);return e||t||"ltr"}const jq=["top","right","bottom","left"],Iu=Math.min,fo=Math.max,v0=Math.round,l1=Math.floor,Ha=e=>({x:e,y:e}),Vq={left:"right",right:"left",bottom:"top",top:"bottom"},Bq={start:"end",end:"start"};function yx(e,t,n){return fo(e,Iu(t,n))}function za(e,t){return typeof e=="function"?e(t):e}function Fu(e){return e.split("-")[0]}function Vd(e){return e.split("-")[1]}function bx(e){return e==="x"?"y":"x"}function Ex(e){return e==="y"?"height":"width"}function Pu(e){return["top","bottom"].includes(Fu(e))?"y":"x"}function xx(e){return bx(Pu(e))}function $q(e,t,n){n===void 0&&(n=!1);const r=Vd(e),i=xx(e),o=Ex(i);let a=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=c1(a)),[a,c1(a)]}function Uq(e){const t=c1(e);return[Tx(e),t,Tx(t)]}function Tx(e){return e.replace(/start|end/g,t=>Bq[t])}function Hq(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}function zq(e,t,n,r){const i=Vd(e);let o=Hq(Fu(e),n==="start",r);return i&&(o=o.map(a=>a+"-"+i),t&&(o=o.concat(o.map(Tx)))),o}function c1(e){return e.replace(/left|right|bottom|top/g,t=>Vq[t])}function qq(e){return{top:0,right:0,bottom:0,left:0,...e}}function U5(e){return typeof e!="number"?qq(e):{top:e,right:e,bottom:e,left:e}}function f1(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 H5(e,t,n){let{reference:r,floating:i}=e;const o=Pu(t),a=xx(t),l=Ex(a),f=Fu(t),h=o==="y",p=r.x+r.width/2-i.width/2,b=r.y+r.height/2-i.height/2,v=r[l]/2-i[l]/2;let x;switch(f){case"top":x={x:p,y:r.y-i.height};break;case"bottom":x={x:p,y:r.y+r.height};break;case"right":x={x:r.x+r.width,y:b};break;case"left":x={x:r.x-i.width,y:b};break;default:x={x:r.x,y:r.y}}switch(Vd(t)){case"start":x[a]-=v*(n&&h?-1:1);break;case"end":x[a]+=v*(n&&h?-1:1);break}return x}const Gq=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,l=o.filter(Boolean),f=await(a.isRTL==null?void 0:a.isRTL(t));let h=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:p,y:b}=H5(h,r,f),v=r,x={},S=0;for(let w=0;w<l.length;w++){const{name:k,fn:_}=l[w],{x:N,y:O,data:A,reset:L}=await _({x:p,y:b,initialPlacement:r,placement:v,strategy:i,middlewareData:x,rects:h,platform:a,elements:{reference:e,floating:t}});p=N??p,b=O??b,x={...x,[k]:{...x[k],...A}},L&&S<=50&&(S++,typeof L=="object"&&(L.placement&&(v=L.placement),L.rects&&(h=L.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:i}):L.rects),{x:p,y:b}=H5(h,v,f)),w=-1)}return{x:p,y:b,placement:v,strategy:i,middlewareData:x}};async function Bd(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:a,elements:l,strategy:f}=e,{boundary:h="clippingAncestors",rootBoundary:p="viewport",elementContext:b="floating",altBoundary:v=!1,padding:x=0}=za(t,e),S=U5(x),k=l[v?b==="floating"?"reference":"floating":b],_=f1(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(l.floating)),boundary:h,rootBoundary:p,strategy:f})),N=b==="floating"?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,O=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l.floating)),A=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},L=f1(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:N,offsetParent:O,strategy:f}):N);return{top:(_.top-L.top+S.top)/A.y,bottom:(L.bottom-_.bottom+S.bottom)/A.y,left:(_.left-L.left+S.left)/A.x,right:(L.right-_.right+S.right)/A.x}}const Wq=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:l,middlewareData:f}=t,{element:h,padding:p=0}=za(e,t)||{};if(h==null)return{};const b=U5(p),v={x:n,y:r},x=xx(i),S=Ex(x),w=await a.getDimensions(h),k=x==="y",_=k?"top":"left",N=k?"bottom":"right",O=k?"clientHeight":"clientWidth",A=o.reference[S]+o.reference[x]-v[x]-o.floating[S],L=v[x]-o.reference[x],P=await(a.getOffsetParent==null?void 0:a.getOffsetParent(h));let j=P?P[O]:0;(!j||!await(a.isElement==null?void 0:a.isElement(P)))&&(j=l.floating[O]||o.floating[S]);const F=A/2-L/2,B=j/2-w[S]/2-1,q=Iu(b[_],B),W=Iu(b[N],B),Z=q,X=j-w[S]-W,ee=j/2-w[S]/2+F,H=yx(Z,ee,X),J=!f.arrow&&Vd(i)!=null&&ee!==H&&o.reference[S]/2-(ee<Z?q:W)-w[S]/2<0,ue=J?ee<Z?ee-Z:ee-X:0;return{[x]:v[x]+ue,data:{[x]:H,centerOffset:ee-H-ue,...J&&{alignmentOffset:ue}},reset:J}}}),Yq=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:l,platform:f,elements:h}=t,{mainAxis:p=!0,crossAxis:b=!0,fallbackPlacements:v,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:w=!0,...k}=za(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const _=Fu(i),N=Pu(l),O=Fu(l)===l,A=await(f.isRTL==null?void 0:f.isRTL(h.floating)),L=v||(O||!w?[c1(l)]:Uq(l)),P=S!=="none";!v&&P&&L.push(...zq(l,w,S,A));const j=[l,...L],F=await Bd(t,k),B=[];let q=((r=o.flip)==null?void 0:r.overflows)||[];if(p&&B.push(F[_]),b){const H=$q(i,a,A);B.push(F[H[0]],F[H[1]])}if(q=[...q,{placement:i,overflows:B}],!B.every(H=>H<=0)){var W,Z;const H=(((W=o.flip)==null?void 0:W.index)||0)+1,J=j[H];if(J){var X;const ne=b==="alignment"?N!==Pu(J):!1,oe=((X=q[0])==null?void 0:X.overflows[0])>0;if(!ne||oe)return{data:{index:H,overflows:q},reset:{placement:J}}}let ue=(Z=q.filter(ne=>ne.overflows[0]<=0).sort((ne,oe)=>ne.overflows[1]-oe.overflows[1])[0])==null?void 0:Z.placement;if(!ue)switch(x){case"bestFit":{var ee;const ne=(ee=q.filter(oe=>{if(P){const K=Pu(oe.placement);return K===N||K==="y"}return!0}).map(oe=>[oe.placement,oe.overflows.filter(K=>K>0).reduce((K,he)=>K+he,0)]).sort((oe,K)=>oe[1]-K[1])[0])==null?void 0:ee[0];ne&&(ue=ne);break}case"initialPlacement":ue=l;break}if(i!==ue)return{reset:{placement:ue}}}return{}}}};function z5(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function q5(e){return jq.some(t=>e[t]>=0)}const Qq=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=za(e,t);switch(r){case"referenceHidden":{const o=await Bd(t,{...i,elementContext:"reference"}),a=z5(o,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:q5(a)}}}case"escaped":{const o=await Bd(t,{...i,altBoundary:!0}),a=z5(o,n.floating);return{data:{escapedOffsets:a,escaped:q5(a)}}}default:return{}}}}};async function Kq(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),a=Fu(n),l=Vd(n),f=Pu(n)==="y",h=["left","top"].includes(a)?-1:1,p=o&&f?-1:1,b=za(t,e);let{mainAxis:v,crossAxis:x,alignmentAxis:S}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return l&&typeof S=="number"&&(x=l==="end"?S*-1:S),f?{x:x*p,y:v*h}:{x:v*h,y:x*p}}const Xq=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:l}=t,f=await Kq(t,e);return a===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:i+f.x,y:o+f.y,data:{...f,placement:a}}}}},Zq=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:a=!1,limiter:l={fn:k=>{let{x:_,y:N}=k;return{x:_,y:N}}},...f}=za(e,t),h={x:n,y:r},p=await Bd(t,f),b=Pu(Fu(i)),v=bx(b);let x=h[v],S=h[b];if(o){const k=v==="y"?"top":"left",_=v==="y"?"bottom":"right",N=x+p[k],O=x-p[_];x=yx(N,x,O)}if(a){const k=b==="y"?"top":"left",_=b==="y"?"bottom":"right",N=S+p[k],O=S-p[_];S=yx(N,S,O)}const w=l.fn({...t,[v]:x,[b]:S});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[v]:o,[b]:a}}}}}},Jq=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:a}=t,{offset:l=0,mainAxis:f=!0,crossAxis:h=!0}=za(e,t),p={x:n,y:r},b=Pu(i),v=bx(b);let x=p[v],S=p[b];const w=za(l,t),k=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(f){const O=v==="y"?"height":"width",A=o.reference[v]-o.floating[O]+k.mainAxis,L=o.reference[v]+o.reference[O]-k.mainAxis;x<A?x=A:x>L&&(x=L)}if(h){var _,N;const O=v==="y"?"width":"height",A=["top","left"].includes(Fu(i)),L=o.reference[b]-o.floating[O]+(A&&((_=a.offset)==null?void 0:_[b])||0)+(A?0:k.crossAxis),P=o.reference[b]+o.reference[O]+(A?0:((N=a.offset)==null?void 0:N[b])||0)-(A?k.crossAxis:0);S<L?S=L:S>P&&(S=P)}return{[v]:x,[b]:S}}}},eG=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:a,elements:l}=t,{apply:f=()=>{},...h}=za(e,t),p=await Bd(t,h),b=Fu(i),v=Vd(i),x=Pu(i)==="y",{width:S,height:w}=o.floating;let k,_;b==="top"||b==="bottom"?(k=b,_=v===(await(a.isRTL==null?void 0:a.isRTL(l.floating))?"start":"end")?"left":"right"):(_=b,k=v==="end"?"top":"bottom");const N=w-p.top-p.bottom,O=S-p.left-p.right,A=Iu(w-p[k],N),L=Iu(S-p[_],O),P=!t.middlewareData.shift;let j=A,F=L;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(F=O),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(j=N),P&&!v){const q=fo(p.left,0),W=fo(p.right,0),Z=fo(p.top,0),X=fo(p.bottom,0);x?F=S-2*(q!==0||W!==0?q+W:fo(p.left,p.right)):j=w-2*(Z!==0||X!==0?Z+X:fo(p.top,p.bottom))}await f({...t,availableWidth:F,availableHeight:j});const B=await a.getDimensions(l.floating);return S!==B.width||w!==B.height?{reset:{rects:!0}}:{}}}};function d1(){return typeof window<"u"}function $d(e){return G5(e)?(e.nodeName||"").toLowerCase():"#document"}function ss(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function qa(e){var t;return(t=(G5(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function G5(e){return d1()?e instanceof Node||e instanceof ss(e).Node:!1}function Co(e){return d1()?e instanceof Element||e instanceof ss(e).Element:!1}function Ga(e){return d1()?e instanceof HTMLElement||e instanceof ss(e).HTMLElement:!1}function W5(e){return!d1()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ss(e).ShadowRoot}function y0(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=ua(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function tG(e){return["table","td","th"].includes($d(e))}function h1(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Sx(e){const t=wx(),n=Co(e)?ua(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 nG(e){let t=_l(e);for(;Ga(t)&&!Ud(t);){if(Sx(t))return t;if(h1(t))return null;t=_l(t)}return null}function wx(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ud(e){return["html","body","#document"].includes($d(e))}function ua(e){return ss(e).getComputedStyle(e)}function p1(e){return Co(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function _l(e){if($d(e)==="html")return e;const t=e.assignedSlot||e.parentNode||W5(e)&&e.host||qa(e);return W5(t)?t.host:t}function Y5(e){const t=_l(e);return Ud(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ga(t)&&y0(t)?t:Y5(t)}function b0(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Y5(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),a=ss(i);if(o){const l=Cx(a);return t.concat(a,a.visualViewport||[],y0(i)?i:[],l&&n?b0(l):[])}return t.concat(i,b0(i,[],n))}function Cx(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Q5(e){const t=ua(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Ga(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,l=v0(n)!==o||v0(r)!==a;return l&&(n=o,r=a),{width:n,height:r,$:l}}function _x(e){return Co(e)?e:e.contextElement}function Hd(e){const t=_x(e);if(!Ga(t))return Ha(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Q5(t);let a=(o?v0(n.width):n.width)/r,l=(o?v0(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const rG=Ha(0);function K5(e){const t=ss(e);return!wx()||!t.visualViewport?rG:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function iG(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ss(e)?!1:t}function nf(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=_x(e);let a=Ha(1);t&&(r?Co(r)&&(a=Hd(r)):a=Hd(e));const l=iG(o,n,r)?K5(o):Ha(0);let f=(i.left+l.x)/a.x,h=(i.top+l.y)/a.y,p=i.width/a.x,b=i.height/a.y;if(o){const v=ss(o),x=r&&Co(r)?ss(r):r;let S=v,w=Cx(S);for(;w&&r&&x!==S;){const k=Hd(w),_=w.getBoundingClientRect(),N=ua(w),O=_.left+(w.clientLeft+parseFloat(N.paddingLeft))*k.x,A=_.top+(w.clientTop+parseFloat(N.paddingTop))*k.y;f*=k.x,h*=k.y,p*=k.x,b*=k.y,f+=O,h+=A,S=ss(w),w=Cx(S)}}return f1({width:p,height:b,x:f,y:h})}function Ax(e,t){const n=p1(e).scrollLeft;return t?t.left+n:nf(qa(e)).left+n}function X5(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:Ax(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function oG(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",a=qa(r),l=t?h1(t.floating):!1;if(r===a||l&&o)return n;let f={scrollLeft:0,scrollTop:0},h=Ha(1);const p=Ha(0),b=Ga(r);if((b||!b&&!o)&&(($d(r)!=="body"||y0(a))&&(f=p1(r)),Ga(r))){const x=nf(r);h=Hd(r),p.x=x.x+r.clientLeft,p.y=x.y+r.clientTop}const v=a&&!b&&!o?X5(a,f,!0):Ha(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-f.scrollLeft*h.x+p.x+v.x,y:n.y*h.y-f.scrollTop*h.y+p.y+v.y}}function sG(e){return Array.from(e.getClientRects())}function aG(e){const t=qa(e),n=p1(e),r=e.ownerDocument.body,i=fo(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=fo(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Ax(e);const l=-n.scrollTop;return ua(r).direction==="rtl"&&(a+=fo(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:l}}function uG(e,t){const n=ss(e),r=qa(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,l=0,f=0;if(i){o=i.width,a=i.height;const h=wx();(!h||h&&t==="fixed")&&(l=i.offsetLeft,f=i.offsetTop)}return{width:o,height:a,x:l,y:f}}function lG(e,t){const n=nf(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Ga(e)?Hd(e):Ha(1),a=e.clientWidth*o.x,l=e.clientHeight*o.y,f=i*o.x,h=r*o.y;return{width:a,height:l,x:f,y:h}}function Z5(e,t,n){let r;if(t==="viewport")r=uG(e,n);else if(t==="document")r=aG(qa(e));else if(Co(t))r=lG(t,n);else{const i=K5(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return f1(r)}function J5(e,t){const n=_l(e);return n===t||!Co(n)||Ud(n)?!1:ua(n).position==="fixed"||J5(n,t)}function cG(e,t){const n=t.get(e);if(n)return n;let r=b0(e,[],!1).filter(l=>Co(l)&&$d(l)!=="body"),i=null;const o=ua(e).position==="fixed";let a=o?_l(e):e;for(;Co(a)&&!Ud(a);){const l=ua(a),f=Sx(a);!f&&l.position==="fixed"&&(i=null),(o?!f&&!i:!f&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||y0(a)&&!f&&J5(e,a))?r=r.filter(p=>p!==a):i=l,a=_l(a)}return t.set(e,r),r}function fG(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const a=[...n==="clippingAncestors"?h1(t)?[]:cG(t,this._c):[].concat(n),r],l=a[0],f=a.reduce((h,p)=>{const b=Z5(t,p,i);return h.top=fo(b.top,h.top),h.right=Iu(b.right,h.right),h.bottom=Iu(b.bottom,h.bottom),h.left=fo(b.left,h.left),h},Z5(t,l,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function dG(e){const{width:t,height:n}=Q5(e);return{width:t,height:n}}function hG(e,t,n){const r=Ga(t),i=qa(t),o=n==="fixed",a=nf(e,!0,o,t);let l={scrollLeft:0,scrollTop:0};const f=Ha(0);function h(){f.x=Ax(i)}if(r||!r&&!o)if(($d(t)!=="body"||y0(i))&&(l=p1(t)),r){const x=nf(t,!0,o,t);f.x=x.x+t.clientLeft,f.y=x.y+t.clientTop}else i&&h();o&&!r&&i&&h();const p=i&&!r&&!o?X5(i,l):Ha(0),b=a.left+l.scrollLeft-f.x-p.x,v=a.top+l.scrollTop-f.y-p.y;return{x:b,y:v,width:a.width,height:a.height}}function Dx(e){return ua(e).position==="static"}function eD(e,t){if(!Ga(e)||ua(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return qa(e)===n&&(n=n.ownerDocument.body),n}function tD(e,t){const n=ss(e);if(h1(e))return n;if(!Ga(e)){let i=_l(e);for(;i&&!Ud(i);){if(Co(i)&&!Dx(i))return i;i=_l(i)}return n}let r=eD(e,t);for(;r&&tG(r)&&Dx(r);)r=eD(r,t);return r&&Ud(r)&&Dx(r)&&!Sx(r)?n:r||nG(e)||n}const pG=async function(e){const t=this.getOffsetParent||tD,n=this.getDimensions,r=await n(e.floating);return{reference:hG(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function mG(e){return ua(e).direction==="rtl"}const gG={convertOffsetParentRelativeRectToViewportRelativeRect:oG,getDocumentElement:qa,getClippingRect:fG,getOffsetParent:tD,getElementRects:pG,getClientRects:sG,getDimensions:dG,getScale:Hd,isElement:Co,isRTL:mG};function nD(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function vG(e,t){let n=null,r;const i=qa(e);function o(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function a(l,f){l===void 0&&(l=!1),f===void 0&&(f=1),o();const h=e.getBoundingClientRect(),{left:p,top:b,width:v,height:x}=h;if(l||t(),!v||!x)return;const S=l1(b),w=l1(i.clientWidth-(p+v)),k=l1(i.clientHeight-(b+x)),_=l1(p),O={rootMargin:-S+"px "+-w+"px "+-k+"px "+-_+"px",threshold:fo(0,Iu(1,f))||1};let A=!0;function L(P){const j=P[0].intersectionRatio;if(j!==f){if(!A)return a();j?a(!1,j):r=setTimeout(()=>{a(!1,1e-7)},1e3)}j===1&&!nD(h,e.getBoundingClientRect())&&a(),A=!1}try{n=new IntersectionObserver(L,{...O,root:i.ownerDocument})}catch{n=new IntersectionObserver(L,O)}n.observe(e)}return a(!0),o}function rD(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,h=_x(e),p=i||o?[...h?b0(h):[],...b0(t)]:[];p.forEach(_=>{i&&_.addEventListener("scroll",n,{passive:!0}),o&&_.addEventListener("resize",n)});const b=h&&l?vG(h,n):null;let v=-1,x=null;a&&(x=new ResizeObserver(_=>{let[N]=_;N&&N.target===h&&x&&(x.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var O;(O=x)==null||O.observe(t)})),n()}),h&&!f&&x.observe(h),x.observe(t));let S,w=f?nf(e):null;f&&k();function k(){const _=nf(e);w&&!nD(w,_)&&n(),w=_,S=requestAnimationFrame(k)}return n(),()=>{var _;p.forEach(N=>{i&&N.removeEventListener("scroll",n),o&&N.removeEventListener("resize",n)}),b==null||b(),(_=x)==null||_.disconnect(),x=null,f&&cancelAnimationFrame(S)}}const Nx=Bd,yG=Xq,bG=Zq,EG=Yq,xG=eG,TG=Qq,iD=Wq,SG=Jq,wG=(e,t,n)=>{const r=new Map,i={platform:gG,...n},o={...i.platform,_c:r};return Gq(e,t,{...i,platform:o})};var m1=typeof document<"u"?R.useLayoutEffect:R.useEffect;function g1(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(!g1(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)&&!g1(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function oD(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function sD(e,t){const n=oD(e);return Math.round(t*n)/n}function Ox(e){const t=R.useRef(e);return m1(()=>{t.current=e}),t}function aD(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:l=!0,whileElementsMounted:f,open:h}=e,[p,b]=R.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,x]=R.useState(r);g1(v,r)||x(r);const[S,w]=R.useState(null),[k,_]=R.useState(null),N=R.useCallback(ne=>{ne!==P.current&&(P.current=ne,w(ne))},[]),O=R.useCallback(ne=>{ne!==j.current&&(j.current=ne,_(ne))},[]),A=o||S,L=a||k,P=R.useRef(null),j=R.useRef(null),F=R.useRef(p),B=f!=null,q=Ox(f),W=Ox(i),Z=Ox(h),X=R.useCallback(()=>{if(!P.current||!j.current)return;const ne={placement:t,strategy:n,middleware:v};W.current&&(ne.platform=W.current),wG(P.current,j.current,ne).then(oe=>{const K={...oe,isPositioned:Z.current!==!1};ee.current&&!g1(F.current,K)&&(F.current=K,wo.flushSync(()=>{b(K)}))})},[v,t,n,W,Z]);m1(()=>{h===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,b(ne=>({...ne,isPositioned:!1})))},[h]);const ee=R.useRef(!1);m1(()=>(ee.current=!0,()=>{ee.current=!1}),[]),m1(()=>{if(A&&(P.current=A),L&&(j.current=L),A&&L){if(q.current)return q.current(A,L,X);X()}},[A,L,X,q,B]);const H=R.useMemo(()=>({reference:P,floating:j,setReference:N,setFloating:O}),[N,O]),J=R.useMemo(()=>({reference:A,floating:L}),[A,L]),ue=R.useMemo(()=>{const ne={position:n,left:0,top:0};if(!J.floating)return ne;const oe=sD(J.floating,p.x),K=sD(J.floating,p.y);return l?{...ne,transform:"translate("+oe+"px, "+K+"px)",...oD(J.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:oe,top:K}},[n,l,J.floating,p.x,p.y]);return R.useMemo(()=>({...p,update:X,refs:H,elements:J,floatingStyles:ue}),[p,X,H,J,ue])}const CG=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?iD({element:r.current,padding:i}).fn(n):{}:r?iD({element:r,padding:i}).fn(n):{}}}},kx=(e,t)=>({...yG(e),options:[e,t]}),uD=(e,t)=>({...bG(e),options:[e,t]}),_G=(e,t)=>({...SG(e),options:[e,t]}),lD=(e,t)=>({...EG(e),options:[e,t]}),cD=(e,t)=>({...xG(e),options:[e,t]}),AG=(e,t)=>({...TG(e),options:[e,t]}),DG=(e,t)=>({...CG(e),options:[e,t]});var NG="Arrow",fD=R.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...o}=e;return $.jsx(Fr.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:$.jsx("polygon",{points:"0,0 30,0 15,10"})})});fD.displayName=NG;var OG=fD;function kG(e){const[t,n]=R.useState(void 0);return wl(()=>{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 a,l;if("borderBoxSize"in o){const f=o.borderBoxSize,h=Array.isArray(f)?f[0]:f;a=h.inlineSize,l=h.blockSize}else a=e.offsetWidth,l=e.offsetHeight;n({width:a,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Rx="Popper",[dD,v1]=Jc(Rx),[RG,hD]=dD(Rx),pD=e=>{const{__scopePopper:t,children:n}=e,[r,i]=R.useState(null);return $.jsx(RG,{scope:t,anchor:r,onAnchorChange:i,children:n})};pD.displayName=Rx;var mD="PopperAnchor",gD=R.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,o=hD(mD,n),a=R.useRef(null),l=ai(t,a);return R.useEffect(()=>{o.onAnchorChange((r==null?void 0:r.current)||a.current)}),r?null:$.jsx(Fr.div,{...i,ref:l})});gD.displayName=mD;var Mx="PopperContent",[MG,LG]=dD(Mx),vD=R.forwardRef((e,t)=>{var xe,ge,Ve,Xe,et,dt;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:o="center",alignOffset:a=0,arrowPadding:l=0,avoidCollisions:f=!0,collisionBoundary:h=[],collisionPadding:p=0,sticky:b="partial",hideWhenDetached:v=!1,updatePositionStrategy:x="optimized",onPlaced:S,...w}=e,k=hD(Mx,n),[_,N]=R.useState(null),O=ai(t,we=>N(we)),[A,L]=R.useState(null),P=kG(A),j=(P==null?void 0:P.width)??0,F=(P==null?void 0:P.height)??0,B=r+(o!=="center"?"-"+o:""),q=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},W=Array.isArray(h)?h:[h],Z=W.length>0,X={padding:q,boundary:W.filter(FG),altBoundary:Z},{refs:ee,floatingStyles:H,placement:J,isPositioned:ue,middlewareData:ne}=aD({strategy:"fixed",placement:B,whileElementsMounted:(...we)=>rD(...we,{animationFrame:x==="always"}),elements:{reference:k.anchor},middleware:[kx({mainAxis:i+F,alignmentAxis:a}),f&&uD({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?_G():void 0,...X}),f&&lD({...X}),cD({...X,apply:({elements:we,rects:pe,availableWidth:qe,availableHeight:ye})=>{const{width:re,height:_e}=pe.reference,ze=we.floating.style;ze.setProperty("--radix-popper-available-width",`${qe}px`),ze.setProperty("--radix-popper-available-height",`${ye}px`),ze.setProperty("--radix-popper-anchor-width",`${re}px`),ze.setProperty("--radix-popper-anchor-height",`${_e}px`)}}),A&&DG({element:A,padding:l}),PG({arrowWidth:j,arrowHeight:F}),v&&AG({strategy:"referenceHidden",...X})]}),[oe,K]=ED(J),he=Lu(S);wl(()=>{ue&&(he==null||he())},[ue,he]);const se=(xe=ne.arrow)==null?void 0:xe.x,fe=(ge=ne.arrow)==null?void 0:ge.y,ae=((Ve=ne.arrow)==null?void 0:Ve.centerOffset)!==0,[Ee,ve]=R.useState();return wl(()=>{_&&ve(window.getComputedStyle(_).zIndex)},[_]),$.jsx("div",{ref:ee.setFloating,"data-radix-popper-content-wrapper":"",style:{...H,transform:ue?H.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ee,"--radix-popper-transform-origin":[(Xe=ne.transformOrigin)==null?void 0:Xe.x,(et=ne.transformOrigin)==null?void 0:et.y].join(" "),...((dt=ne.hide)==null?void 0:dt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:$.jsx(MG,{scope:n,placedSide:oe,onArrowChange:L,arrowX:se,arrowY:fe,shouldHideArrow:ae,children:$.jsx(Fr.div,{"data-side":oe,"data-align":K,...w,ref:O,style:{...w.style,animation:ue?void 0:"none"}})})})});vD.displayName=Mx;var yD="PopperArrow",IG={top:"bottom",right:"left",bottom:"top",left:"right"},bD=R.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,o=LG(yD,r),a=IG[o.placedSide];return $.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]: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:$.jsx(OG,{...i,ref:n,style:{...i.style,display:"block"}})})});bD.displayName=yD;function FG(e){return e!==null}var PG=e=>({name:"transformOrigin",options:e,fn(t){var k,_,N;const{placement:n,rects:r,middlewareData:i}=t,a=((k=i.arrow)==null?void 0:k.centerOffset)!==0,l=a?0:e.arrowWidth,f=a?0:e.arrowHeight,[h,p]=ED(n),b={start:"0%",center:"50%",end:"100%"}[p],v=(((_=i.arrow)==null?void 0:_.x)??0)+l/2,x=(((N=i.arrow)==null?void 0:N.y)??0)+f/2;let S="",w="";return h==="bottom"?(S=a?b:`${v}px`,w=`${-f}px`):h==="top"?(S=a?b:`${v}px`,w=`${r.floating.height+f}px`):h==="right"?(S=`${-f}px`,w=a?b:`${x}px`):h==="left"&&(S=`${r.floating.width+f}px`,w=a?b:`${x}px`),{data:{x:S,y:w}}}});function ED(e){const[t,n="center"]=e.split("-");return[t,n]}var xD=pD,TD=gD,SD=vD,wD=bD,Lx="rovingFocusGroup.onEntryFocus",jG={bubbles:!1,cancelable:!0},E0="RovingFocusGroup",[Ix,CD,VG]=B5(E0),[BG,_D]=Jc(E0,[VG]),[$G,UG]=BG(E0),AD=R.forwardRef((e,t)=>$.jsx(Ix.Provider,{scope:e.__scopeRovingFocusGroup,children:$.jsx(Ix.Slot,{scope:e.__scopeRovingFocusGroup,children:$.jsx(HG,{...e,ref:t})})}));AD.displayName=E0;var HG=R.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:o,currentTabStopId:a,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:f,onEntryFocus:h,preventScrollOnEntryFocus:p=!1,...b}=e,v=R.useRef(null),x=ai(t,v),S=$5(o),[w,k]=Kv({prop:a,defaultProp:l??null,onChange:f,caller:E0}),[_,N]=R.useState(!1),O=Lu(h),A=CD(n),L=R.useRef(!1),[P,j]=R.useState(0);return R.useEffect(()=>{const F=v.current;if(F)return F.addEventListener(Lx,O),()=>F.removeEventListener(Lx,O)},[O]),$.jsx($G,{scope:n,orientation:r,dir:S,loop:i,currentTabStopId:w,onItemFocus:R.useCallback(F=>k(F),[k]),onItemShiftTab:R.useCallback(()=>N(!0),[]),onFocusableItemAdd:R.useCallback(()=>j(F=>F+1),[]),onFocusableItemRemove:R.useCallback(()=>j(F=>F-1),[]),children:$.jsx(Fr.div,{tabIndex:_||P===0?-1:0,"data-orientation":r,...b,ref:x,style:{outline:"none",...e.style},onMouseDown:zt(e.onMouseDown,()=>{L.current=!0}),onFocus:zt(e.onFocus,F=>{const B=!L.current;if(F.target===F.currentTarget&&B&&!_){const q=new CustomEvent(Lx,jG);if(F.currentTarget.dispatchEvent(q),!q.defaultPrevented){const W=A().filter(J=>J.focusable),Z=W.find(J=>J.active),X=W.find(J=>J.id===w),H=[Z,X,...W].filter(Boolean).map(J=>J.ref.current);OD(H,p)}}L.current=!1}),onBlur:zt(e.onBlur,()=>N(!1))})})}),DD="RovingFocusGroupItem",ND=R.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:o,children:a,...l}=e,f=ef(),h=o||f,p=UG(DD,n),b=p.currentTabStopId===h,v=CD(n),{onFocusableItemAdd:x,onFocusableItemRemove:S,currentTabStopId:w}=p;return R.useEffect(()=>{if(r)return x(),()=>S()},[r,x,S]),$.jsx(Ix.ItemSlot,{scope:n,id:h,focusable:r,active:i,children:$.jsx(Fr.span,{tabIndex:b?0:-1,"data-orientation":p.orientation,...l,ref:t,onMouseDown:zt(e.onMouseDown,k=>{r?p.onItemFocus(h):k.preventDefault()}),onFocus:zt(e.onFocus,()=>p.onItemFocus(h)),onKeyDown:zt(e.onKeyDown,k=>{if(k.key==="Tab"&&k.shiftKey){p.onItemShiftTab();return}if(k.target!==k.currentTarget)return;const _=GG(k,p.orientation,p.dir);if(_!==void 0){if(k.metaKey||k.ctrlKey||k.altKey||k.shiftKey)return;k.preventDefault();let O=v().filter(A=>A.focusable).map(A=>A.ref.current);if(_==="last")O.reverse();else if(_==="prev"||_==="next"){_==="prev"&&O.reverse();const A=O.indexOf(k.currentTarget);O=p.loop?WG(O,A+1):O.slice(A+1)}setTimeout(()=>OD(O))}}),children:typeof a=="function"?a({isCurrentTabStop:b,hasTabStop:w!=null}):a})})});ND.displayName=DD;var zG={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function qG(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function GG(e,t,n){const r=qG(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return zG[r]}function OD(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function WG(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var YG=AD,QG=ND,Fx=["Enter"," "],KG=["ArrowDown","PageUp","Home"],kD=["ArrowUp","PageDown","End"],XG=[...KG,...kD],ZG={ltr:[...Fx,"ArrowRight"],rtl:[...Fx,"ArrowLeft"]},JG={ltr:["ArrowLeft"],rtl:["ArrowRight"]},x0="Menu",[T0,eW,tW]=B5(x0),[rf,RD]=Jc(x0,[tW,v1,_D]),y1=v1(),MD=_D(),[nW,of]=rf(x0),[rW,S0]=rf(x0),LD=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:o,modal:a=!0}=e,l=y1(t),[f,h]=R.useState(null),p=R.useRef(!1),b=Lu(o),v=$5(i);return R.useEffect(()=>{const x=()=>{p.current=!0,document.addEventListener("pointerdown",S,{capture:!0,once:!0}),document.addEventListener("pointermove",S,{capture:!0,once:!0})},S=()=>p.current=!1;return document.addEventListener("keydown",x,{capture:!0}),()=>{document.removeEventListener("keydown",x,{capture:!0}),document.removeEventListener("pointerdown",S,{capture:!0}),document.removeEventListener("pointermove",S,{capture:!0})}},[]),$.jsx(xD,{...l,children:$.jsx(nW,{scope:t,open:n,onOpenChange:b,content:f,onContentChange:h,children:$.jsx(rW,{scope:t,onClose:R.useCallback(()=>b(!1),[b]),isUsingKeyboardRef:p,dir:v,modal:a,children:r})})})};LD.displayName=x0;var iW="MenuAnchor",Px=R.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=y1(n);return $.jsx(TD,{...i,...r,ref:t})});Px.displayName=iW;var jx="MenuPortal",[oW,ID]=rf(jx,{forceMount:void 0}),FD=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:i}=e,o=of(jx,t);return $.jsx(oW,{scope:t,forceMount:n,children:$.jsx($a,{present:n||o.open,children:$.jsx(Zv,{asChild:!0,container:i,children:r})})})};FD.displayName=jx;var ks="MenuContent",[sW,Vx]=rf(ks),PD=R.forwardRef((e,t)=>{const n=ID(ks,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=of(ks,e.__scopeMenu),a=S0(ks,e.__scopeMenu);return $.jsx(T0.Provider,{scope:e.__scopeMenu,children:$.jsx($a,{present:r||o.open,children:$.jsx(T0.Slot,{scope:e.__scopeMenu,children:a.modal?$.jsx(aW,{...i,ref:t}):$.jsx(uW,{...i,ref:t})})})})}),aW=R.forwardRef((e,t)=>{const n=of(ks,e.__scopeMenu),r=R.useRef(null),i=ai(t,r);return R.useEffect(()=>{const o=r.current;if(o)return E5(o)},[]),$.jsx(Bx,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:zt(e.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),uW=R.forwardRef((e,t)=>{const n=of(ks,e.__scopeMenu);return $.jsx(Bx,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),lW=g0("MenuContent.ScrollLock"),Bx=R.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:l,onEntryFocus:f,onEscapeKeyDown:h,onPointerDownOutside:p,onFocusOutside:b,onInteractOutside:v,onDismiss:x,disableOutsideScroll:S,...w}=e,k=of(ks,n),_=S0(ks,n),N=y1(n),O=MD(n),A=eW(n),[L,P]=R.useState(null),j=R.useRef(null),F=ai(t,j,k.onContentChange),B=R.useRef(0),q=R.useRef(""),W=R.useRef(0),Z=R.useRef(null),X=R.useRef("right"),ee=R.useRef(0),H=S?hx:R.Fragment,J=S?{as:lW,allowPinchZoom:!0}:void 0,ue=oe=>{var xe,ge;const K=q.current+oe,he=A().filter(Ve=>!Ve.disabled),se=document.activeElement,fe=(xe=he.find(Ve=>Ve.ref.current===se))==null?void 0:xe.textValue,ae=he.map(Ve=>Ve.textValue),Ee=xW(ae,K,fe),ve=(ge=he.find(Ve=>Ve.textValue===Ee))==null?void 0:ge.ref.current;(function Ve(Xe){q.current=Xe,window.clearTimeout(B.current),Xe!==""&&(B.current=window.setTimeout(()=>Ve(""),1e3))})(K),ve&&setTimeout(()=>ve.focus())};R.useEffect(()=>()=>window.clearTimeout(B.current),[]),o5();const ne=R.useCallback(oe=>{var he,se;return X.current===((he=Z.current)==null?void 0:he.side)&&SW(oe,(se=Z.current)==null?void 0:se.area)},[]);return $.jsx(sW,{scope:n,searchRef:q,onItemEnter:R.useCallback(oe=>{ne(oe)&&oe.preventDefault()},[ne]),onItemLeave:R.useCallback(oe=>{var K;ne(oe)||((K=j.current)==null||K.focus(),P(null))},[ne]),onTriggerLeave:R.useCallback(oe=>{ne(oe)&&oe.preventDefault()},[ne]),pointerGraceTimerRef:W,onPointerGraceIntentChange:R.useCallback(oe=>{Z.current=oe},[]),children:$.jsx(H,{...J,children:$.jsx(ax,{asChild:!0,trapped:i,onMountAutoFocus:zt(o,oe=>{var K;oe.preventDefault(),(K=j.current)==null||K.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:$.jsx(Xv,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:h,onPointerDownOutside:p,onFocusOutside:b,onInteractOutside:v,onDismiss:x,children:$.jsx(YG,{asChild:!0,...O,dir:_.dir,orientation:"vertical",loop:r,currentTabStopId:L,onCurrentTabStopIdChange:P,onEntryFocus:zt(f,oe=>{_.isUsingKeyboardRef.current||oe.preventDefault()}),preventScrollOnEntryFocus:!0,children:$.jsx(SD,{role:"menu","aria-orientation":"vertical","data-state":eN(k.open),"data-radix-menu-content":"",dir:_.dir,...N,...w,ref:F,style:{outline:"none",...w.style},onKeyDown:zt(w.onKeyDown,oe=>{const he=oe.target.closest("[data-radix-menu-content]")===oe.currentTarget,se=oe.ctrlKey||oe.altKey||oe.metaKey,fe=oe.key.length===1;he&&(oe.key==="Tab"&&oe.preventDefault(),!se&&fe&&ue(oe.key));const ae=j.current;if(oe.target!==ae||!XG.includes(oe.key))return;oe.preventDefault();const ve=A().filter(xe=>!xe.disabled).map(xe=>xe.ref.current);kD.includes(oe.key)&&ve.reverse(),bW(ve)}),onBlur:zt(e.onBlur,oe=>{oe.currentTarget.contains(oe.target)||(window.clearTimeout(B.current),q.current="")}),onPointerMove:zt(e.onPointerMove,C0(oe=>{const K=oe.target,he=ee.current!==oe.clientX;if(oe.currentTarget.contains(K)&&he){const se=oe.clientX>ee.current?"right":"left";X.current=se,ee.current=oe.clientX}}))})})})})})})});PD.displayName=ks;var cW="MenuGroup",$x=R.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return $.jsx(Fr.div,{role:"group",...r,ref:t})});$x.displayName=cW;var fW="MenuLabel",jD=R.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return $.jsx(Fr.div,{...r,ref:t})});jD.displayName=fW;var b1="MenuItem",VD="menu.itemSelect",E1=R.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...i}=e,o=R.useRef(null),a=S0(b1,e.__scopeMenu),l=Vx(b1,e.__scopeMenu),f=ai(t,o),h=R.useRef(!1),p=()=>{const b=o.current;if(!n&&b){const v=new CustomEvent(VD,{bubbles:!0,cancelable:!0});b.addEventListener(VD,x=>r==null?void 0:r(x),{once:!0}),QA(b,v),v.defaultPrevented?h.current=!1:a.onClose()}};return $.jsx(BD,{...i,ref:f,disabled:n,onClick:zt(e.onClick,p),onPointerDown:b=>{var v;(v=e.onPointerDown)==null||v.call(e,b),h.current=!0},onPointerUp:zt(e.onPointerUp,b=>{var v;h.current||(v=b.currentTarget)==null||v.click()}),onKeyDown:zt(e.onKeyDown,b=>{const v=l.searchRef.current!=="";n||v&&b.key===" "||Fx.includes(b.key)&&(b.currentTarget.click(),b.preventDefault())})})});E1.displayName=b1;var BD=R.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:i,...o}=e,a=Vx(b1,n),l=MD(n),f=R.useRef(null),h=ai(t,f),[p,b]=R.useState(!1),[v,x]=R.useState("");return R.useEffect(()=>{const S=f.current;S&&x((S.textContent??"").trim())},[o.children]),$.jsx(T0.ItemSlot,{scope:n,disabled:r,textValue:i??v,children:$.jsx(QG,{asChild:!0,...l,focusable:!r,children:$.jsx(Fr.div,{role:"menuitem","data-highlighted":p?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...o,ref:h,onPointerMove:zt(e.onPointerMove,C0(S=>{r?a.onItemLeave(S):(a.onItemEnter(S),S.defaultPrevented||S.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:zt(e.onPointerLeave,C0(S=>a.onItemLeave(S))),onFocus:zt(e.onFocus,()=>b(!0)),onBlur:zt(e.onBlur,()=>b(!1))})})})}),dW="MenuCheckboxItem",$D=R.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...i}=e;return $.jsx(GD,{scope:e.__scopeMenu,checked:n,children:$.jsx(E1,{role:"menuitemcheckbox","aria-checked":x1(n)?"mixed":n,...i,ref:t,"data-state":Hx(n),onSelect:zt(i.onSelect,()=>r==null?void 0:r(x1(n)?!0:!n),{checkForDefaultPrevented:!1})})})});$D.displayName=dW;var UD="MenuRadioGroup",[hW,pW]=rf(UD,{value:void 0,onValueChange:()=>{}}),HD=R.forwardRef((e,t)=>{const{value:n,onValueChange:r,...i}=e,o=Lu(r);return $.jsx(hW,{scope:e.__scopeMenu,value:n,onValueChange:o,children:$.jsx($x,{...i,ref:t})})});HD.displayName=UD;var zD="MenuRadioItem",qD=R.forwardRef((e,t)=>{const{value:n,...r}=e,i=pW(zD,e.__scopeMenu),o=n===i.value;return $.jsx(GD,{scope:e.__scopeMenu,checked:o,children:$.jsx(E1,{role:"menuitemradio","aria-checked":o,...r,ref:t,"data-state":Hx(o),onSelect:zt(r.onSelect,()=>{var a;return(a=i.onValueChange)==null?void 0:a.call(i,n)},{checkForDefaultPrevented:!1})})})});qD.displayName=zD;var Ux="MenuItemIndicator",[GD,mW]=rf(Ux,{checked:!1}),WD=R.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...i}=e,o=mW(Ux,n);return $.jsx($a,{present:r||x1(o.checked)||o.checked===!0,children:$.jsx(Fr.span,{...i,ref:t,"data-state":Hx(o.checked)})})});WD.displayName=Ux;var gW="MenuSeparator",YD=R.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return $.jsx(Fr.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});YD.displayName=gW;var vW="MenuArrow",QD=R.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=y1(n);return $.jsx(wD,{...i,...r,ref:t})});QD.displayName=vW;var yW="MenuSub",[uce,KD]=rf(yW),w0="MenuSubTrigger",XD=R.forwardRef((e,t)=>{const n=of(w0,e.__scopeMenu),r=S0(w0,e.__scopeMenu),i=KD(w0,e.__scopeMenu),o=Vx(w0,e.__scopeMenu),a=R.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:f}=o,h={__scopeMenu:e.__scopeMenu},p=R.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return R.useEffect(()=>p,[p]),R.useEffect(()=>{const b=l.current;return()=>{window.clearTimeout(b),f(null)}},[l,f]),$.jsx(Px,{asChild:!0,...h,children:$.jsx(BD,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":eN(n.open),...e,ref:rx(t,i.onTriggerChange),onClick:b=>{var v;(v=e.onClick)==null||v.call(e,b),!(e.disabled||b.defaultPrevented)&&(b.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:zt(e.onPointerMove,C0(b=>{o.onItemEnter(b),!b.defaultPrevented&&!e.disabled&&!n.open&&!a.current&&(o.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),p()},100))})),onPointerLeave:zt(e.onPointerLeave,C0(b=>{var x,S;p();const v=(x=n.content)==null?void 0:x.getBoundingClientRect();if(v){const w=(S=n.content)==null?void 0:S.dataset.side,k=w==="right",_=k?-5:5,N=v[k?"left":"right"],O=v[k?"right":"left"];o.onPointerGraceIntentChange({area:[{x:b.clientX+_,y:b.clientY},{x:N,y:v.top},{x:O,y:v.top},{x:O,y:v.bottom},{x:N,y:v.bottom}],side:w}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(b),b.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:zt(e.onKeyDown,b=>{var x;const v=o.searchRef.current!=="";e.disabled||v&&b.key===" "||ZG[r.dir].includes(b.key)&&(n.onOpenChange(!0),(x=n.content)==null||x.focus(),b.preventDefault())})})})});XD.displayName=w0;var ZD="MenuSubContent",JD=R.forwardRef((e,t)=>{const n=ID(ks,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=of(ks,e.__scopeMenu),a=S0(ks,e.__scopeMenu),l=KD(ZD,e.__scopeMenu),f=R.useRef(null),h=ai(t,f);return $.jsx(T0.Provider,{scope:e.__scopeMenu,children:$.jsx($a,{present:r||o.open,children:$.jsx(T0.Slot,{scope:e.__scopeMenu,children:$.jsx(Bx,{id:l.contentId,"aria-labelledby":l.triggerId,...i,ref:h,align:"start",side:a.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:p=>{var b;a.isUsingKeyboardRef.current&&((b=f.current)==null||b.focus()),p.preventDefault()},onCloseAutoFocus:p=>p.preventDefault(),onFocusOutside:zt(e.onFocusOutside,p=>{p.target!==l.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:zt(e.onEscapeKeyDown,p=>{a.onClose(),p.preventDefault()}),onKeyDown:zt(e.onKeyDown,p=>{var x;const b=p.currentTarget.contains(p.target),v=JG[a.dir].includes(p.key);b&&v&&(o.onOpenChange(!1),(x=l.trigger)==null||x.focus(),p.preventDefault())})})})})})});JD.displayName=ZD;function eN(e){return e?"open":"closed"}function x1(e){return e==="indeterminate"}function Hx(e){return x1(e)?"indeterminate":e?"checked":"unchecked"}function bW(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function EW(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function xW(e,t,n){const i=t.length>1&&Array.from(t).every(h=>h===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let a=EW(e,Math.max(o,0));i.length===1&&(a=a.filter(h=>h!==n));const f=a.find(h=>h.toLowerCase().startsWith(i.toLowerCase()));return f!==n?f:void 0}function TW(e,t){const{x:n,y:r}=e;let i=!1;for(let o=0,a=t.length-1;o<t.length;a=o++){const l=t[o],f=t[a],h=l.x,p=l.y,b=f.x,v=f.y;p>r!=v>r&&n<(b-h)*(r-p)/(v-p)+h&&(i=!i)}return i}function SW(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return TW(n,t)}function C0(e){return t=>t.pointerType==="mouse"?e(t):void 0}var wW=LD,CW=Px,_W=FD,AW=PD,DW=$x,NW=jD,OW=E1,kW=$D,RW=HD,MW=qD,LW=WD,IW=YD,FW=QD,PW=XD,jW=JD,T1="DropdownMenu",[VW,lce]=Jc(T1,[RD]),_o=RD(),[BW,tN]=VW(T1),nN=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:o,onOpenChange:a,modal:l=!0}=e,f=_o(t),h=R.useRef(null),[p,b]=Kv({prop:i,defaultProp:o??!1,onChange:a,caller:T1});return $.jsx(BW,{scope:t,triggerId:ef(),triggerRef:h,contentId:ef(),open:p,onOpenChange:b,onOpenToggle:R.useCallback(()=>b(v=>!v),[b]),modal:l,children:$.jsx(wW,{...f,open:p,onOpenChange:b,dir:r,modal:l,children:n})})};nN.displayName=T1;var rN="DropdownMenuTrigger",iN=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,o=tN(rN,n),a=_o(n);return $.jsx(CW,{asChild:!0,...a,children:$.jsx(Fr.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:rx(t,o.triggerRef),onPointerDown:zt(e.onPointerDown,l=>{!r&&l.button===0&&l.ctrlKey===!1&&(o.onOpenToggle(),o.open||l.preventDefault())}),onKeyDown:zt(e.onKeyDown,l=>{r||(["Enter"," "].includes(l.key)&&o.onOpenToggle(),l.key==="ArrowDown"&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})})});iN.displayName=rN;var $W="DropdownMenuPortal",oN=e=>{const{__scopeDropdownMenu:t,...n}=e,r=_o(t);return $.jsx(_W,{...r,...n})};oN.displayName=$W;var sN="DropdownMenuContent",aN=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=tN(sN,n),o=_o(n),a=R.useRef(!1);return $.jsx(AW,{id:i.contentId,"aria-labelledby":i.triggerId,...o,...r,ref:t,onCloseAutoFocus:zt(e.onCloseAutoFocus,l=>{var f;a.current||(f=i.triggerRef.current)==null||f.focus(),a.current=!1,l.preventDefault()}),onInteractOutside:zt(e.onInteractOutside,l=>{const f=l.detail.originalEvent,h=f.button===0&&f.ctrlKey===!0,p=f.button===2||h;(!i.modal||p)&&(a.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)"}})});aN.displayName=sN;var UW="DropdownMenuGroup",HW=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=_o(n);return $.jsx(DW,{...i,...r,ref:t})});HW.displayName=UW;var zW="DropdownMenuLabel",qW=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=_o(n);return $.jsx(NW,{...i,...r,ref:t})});qW.displayName=zW;var GW="DropdownMenuItem",uN=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=_o(n);return $.jsx(OW,{...i,...r,ref:t})});uN.displayName=GW;var WW="DropdownMenuCheckboxItem",YW=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=_o(n);return $.jsx(kW,{...i,...r,ref:t})});YW.displayName=WW;var QW="DropdownMenuRadioGroup",KW=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=_o(n);return $.jsx(RW,{...i,...r,ref:t})});KW.displayName=QW;var XW="DropdownMenuRadioItem",ZW=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=_o(n);return $.jsx(MW,{...i,...r,ref:t})});ZW.displayName=XW;var JW="DropdownMenuItemIndicator",eY=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=_o(n);return $.jsx(LW,{...i,...r,ref:t})});eY.displayName=JW;var tY="DropdownMenuSeparator",nY=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=_o(n);return $.jsx(IW,{...i,...r,ref:t})});nY.displayName=tY;var rY="DropdownMenuArrow",iY=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=_o(n);return $.jsx(FW,{...i,...r,ref:t})});iY.displayName=rY;var oY="DropdownMenuSubTrigger",sY=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=_o(n);return $.jsx(PW,{...i,...r,ref:t})});sY.displayName=oY;var aY="DropdownMenuSubContent",uY=R.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=_o(n);return $.jsx(jW,{...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)"}})});uY.displayName=aY;var lY=nN,cY=iN,fY=oN,dY=aN,hY=uN;const lN=R.forwardRef((e,t)=>{const n=it.c(6);let r;n[0]!==e.className?(r=Zn("graphiql-un-styled",e.className),n[0]=e.className,n[1]=r):r=n[1];let i;return n[2]!==e||n[3]!==t||n[4]!==r?(i=$.jsx(cY,{asChild:!0,children:$.jsx("button",{...e,ref:t,className:r})}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});lN.displayName="DropdownMenuButton";const S1=Object.assign(lY,{Button:lN,Item:e=>{const t=it.c(10);let n,r,i;t[0]!==e?({className:r,children:n,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i):(n=t[1],r=t[2],i=t[3]);let o;t[4]!==r?(o=Zn("graphiql-dropdown-item",r),t[4]=r,t[5]=o):o=t[5];let a;return t[6]!==n||t[7]!==i||t[8]!==o?(a=$.jsx(hY,{className:o,...i,children:n}),t[6]=n,t[7]=i,t[8]=o,t[9]=a):a=t[9],a},Content:e=>{const t=it.c(14);let n,r,i,o,a;t[0]!==e?({children:n,align:o,sideOffset:a,className:r,...i}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a):(n=t[1],r=t[2],i=t[3],o=t[4],a=t[5]);const l=o===void 0?"start":o,f=a===void 0?5:a;let h;t[6]!==r?(h=Zn("graphiql-dropdown-content",r),t[6]=r,t[7]=h):h=t[7];let p;return t[8]!==l||t[9]!==n||t[10]!==i||t[11]!==f||t[12]!==h?(p=$.jsx(fY,{children:$.jsx(dY,{align:l,sideOffset:f,className:h,...i,children:n})}),t[8]=l,t[9]=n,t[10]=i,t[11]=f,t[12]=h,t[13]=p):p=t[13],p}}),Wa=R.forwardRef((e,t)=>{const n=it.c(18);let r,i,o,a;n[0]!==e?({children:r,onlyShowFirstChild:i,type:a,...o}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=o,n[4]=a):(r=n[1],i=n[2],o=n[3],a=n[4]);const l=`graphiql-markdown-${a}`,f=i&&"graphiql-markdown-preview";let h;n[5]!==o.className||n[6]!==l||n[7]!==f?(h=Zn(l,f,o.className),n[5]=o.className,n[6]=l,n[7]=f,n[8]=h):h=n[8];let p;n[9]!==r?(p=Vv.render(r),n[9]=r,n[10]=p):p=n[10];let b;n[11]!==p?(b={__html:p},n[11]=p,n[12]=b):b=n[12];let v;return n[13]!==o||n[14]!==t||n[15]!==h||n[16]!==b?(v=$.jsx("div",{...o,ref:t,className:h,dangerouslySetInnerHTML:b}),n[13]=o,n[14]=t,n[15]=h,n[16]=b,n[17]=v):v=n[17],v});Wa.displayName="MarkdownContent";const zx=R.forwardRef((e,t)=>{const n=it.c(6);let r;n[0]!==e.className?(r=Zn("graphiql-spinner",e.className),n[0]=e.className,n[1]=r):r=n[1];let i;return n[2]!==e||n[3]!==t||n[4]!==r?(i=$.jsx("div",{...e,ref:t,className:r}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});zx.displayName="Spinner";const cN=R.createContext({});function _0(e){const t=R.useRef(null);return t.current===null&&(t.current=e()),t.current}const qx=typeof window<"u",fN=qx?R.useLayoutEffect:R.useEffect,Gx=R.createContext(null);function Wx(e,t){e.indexOf(t)===-1&&e.push(t)}function Yx(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function pY([...e],t,n){const r=t<0?e.length+t:t;if(r>=0&&r<e.length){const i=n<0?e.length+n:n,[o]=e.splice(t,1);e.splice(i,0,o)}return e}const ju=(e,t,n)=>n>t?t:n<e?e:n;let Qx=()=>{};const Vu={},dN=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function hN(e){return typeof e=="object"&&e!==null}const pN=e=>/^0[^.\s]+$/u.test(e);function Kx(e){let t;return()=>(t===void 0&&(t=e()),t)}const Rs=e=>e,mY=(e,t)=>n=>t(e(n)),A0=(...e)=>e.reduce(mY),D0=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class Xx{constructor(){this.subscriptions=[]}add(t){return Wx(this.subscriptions,t),()=>Yx(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ya=e=>e*1e3,Qa=e=>e/1e3;function mN(e,t){return t?e*(1e3/t):0}const gN=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,gY=1e-7,vY=12;function yY(e,t,n,r,i){let o,a,l=0;do a=t+(n-t)/2,o=gN(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>gY&&++l<vY);return a}function N0(e,t,n,r){if(e===t&&n===r)return Rs;const i=o=>yY(o,0,1,e,n);return o=>o===0||o===1?o:gN(i(o),t,r)}const vN=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,yN=e=>t=>1-e(1-t),bN=N0(.33,1.53,.69,.99),Zx=yN(bN),EN=vN(Zx),xN=e=>(e*=2)<1?.5*Zx(e):.5*(2-Math.pow(2,-10*(e-1))),Jx=e=>1-Math.sin(Math.acos(e)),TN=yN(Jx),SN=vN(Jx),bY=N0(.42,0,1,1),EY=N0(0,0,.58,1),wN=N0(.42,0,.58,1),xY=e=>Array.isArray(e)&&typeof e[0]!="number",CN=e=>Array.isArray(e)&&typeof e[0]=="number",TY={linear:Rs,easeIn:bY,easeInOut:wN,easeOut:EY,circIn:Jx,circInOut:SN,circOut:TN,backIn:Zx,backInOut:EN,backOut:bN,anticipate:xN},SY=e=>typeof e=="string",_N=e=>{if(CN(e)){Qx(e.length===4);const[t,n,r,i]=e;return N0(t,n,r,i)}else if(SY(e))return TY[e];return e},w1=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function wY(e,t){let n=new Set,r=new Set,i=!1,o=!1;const a=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function f(p){a.has(p)&&(h.schedule(p),e()),p(l)}const h={schedule:(p,b=!1,v=!1)=>{const S=v&&i?n:r;return b&&a.add(p),S.has(p)||S.add(p),p},cancel:p=>{r.delete(p),a.delete(p)},process:p=>{if(l=p,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(f),n.clear(),i=!1,o&&(o=!1,h.process(p))}};return h}const CY=40;function AN(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=w1.reduce((O,A)=>(O[A]=wY(o),O),{}),{setup:l,read:f,resolveKeyframes:h,preUpdate:p,update:b,preRender:v,render:x,postRender:S}=a,w=()=>{const O=Vu.useManualTiming?i.timestamp:performance.now();n=!1,Vu.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(O-i.timestamp,CY),1)),i.timestamp=O,i.isProcessing=!0,l.process(i),f.process(i),h.process(i),p.process(i),b.process(i),v.process(i),x.process(i),S.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(w))},k=()=>{n=!0,r=!0,i.isProcessing||e(w)};return{schedule:w1.reduce((O,A)=>{const L=a[A];return O[A]=(P,j=!1,F=!1)=>(n||k(),L.schedule(P,j,F)),O},{}),cancel:O=>{for(let A=0;A<w1.length;A++)a[w1[A]].cancel(O)},state:i,steps:a}}const{schedule:vr,cancel:Bu,state:Yi,steps:eT}=AN(typeof requestAnimationFrame<"u"?requestAnimationFrame:Rs,!0);let C1;function _Y(){C1=void 0}const Bo={now:()=>(C1===void 0&&Bo.set(Yi.isProcessing||Vu.useManualTiming?Yi.timestamp:performance.now()),C1),set:e=>{C1=e,queueMicrotask(_Y)}},DN=e=>t=>typeof t=="string"&&t.startsWith(e),tT=DN("--"),AY=DN("var(--"),nT=e=>AY(e)?DY.test(e.split("/*")[0].trim()):!1,DY=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,zd={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},O0={...zd,transform:e=>ju(0,1,e)},_1={...zd,default:1},k0=e=>Math.round(e*1e5)/1e5,rT=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function NY(e){return e==null}const OY=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,iT=(e,t)=>n=>!!(typeof n=="string"&&OY.test(n)&&n.startsWith(e)||t&&!NY(n)&&Object.prototype.hasOwnProperty.call(n,t)),NN=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,l]=r.match(rT);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:l!==void 0?parseFloat(l):1}},kY=e=>ju(0,255,e),oT={...zd,transform:e=>Math.round(kY(e))},sf={test:iT("rgb","red"),parse:NN("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+oT.transform(e)+", "+oT.transform(t)+", "+oT.transform(n)+", "+k0(O0.transform(r))+")"};function RY(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),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 sT={test:iT("#"),parse:RY,transform:sf.transform},R0=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Al=R0("deg"),Ka=R0("%"),Pt=R0("px"),MY=R0("vh"),LY=R0("vw"),ON={...Ka,parse:e=>Ka.parse(e)/100,transform:e=>Ka.transform(e*100)},qd={test:iT("hsl","hue"),parse:NN("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ka.transform(k0(t))+", "+Ka.transform(k0(n))+", "+k0(O0.transform(r))+")"},ho={test:e=>sf.test(e)||sT.test(e)||qd.test(e),parse:e=>sf.test(e)?sf.parse(e):qd.test(e)?qd.parse(e):sT.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?sf.transform(e):qd.transform(e)},IY=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function FY(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(rT))==null?void 0:t.length)||0)+(((n=e.match(IY))==null?void 0:n.length)||0)>0}const kN="number",RN="color",PY="var",jY="var(",MN="${}",VY=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function M0(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const l=t.replace(VY,f=>(ho.test(f)?(r.color.push(o),i.push(RN),n.push(ho.parse(f))):f.startsWith(jY)?(r.var.push(o),i.push(PY),n.push(f)):(r.number.push(o),i.push(kN),n.push(parseFloat(f))),++o,MN)).split(MN);return{values:n,split:l,indexes:r,types:i}}function LN(e){return M0(e).values}function IN(e){const{split:t,types:n}=M0(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const l=n[a];l===kN?o+=k0(i[a]):l===RN?o+=ho.transform(i[a]):o+=i[a]}return o}}const BY=e=>typeof e=="number"?0:e;function $Y(e){const t=LN(e);return IN(e)(t.map(BY))}const Dl={test:FY,parse:LN,createTransformer:IN,getAnimatableNone:$Y};function aT(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 UY({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const l=n<.5?n*(1+t):n+t-n*t,f=2*n-l;i=aT(f,l,e+1/3),o=aT(f,l,e),a=aT(f,l,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function A1(e,t){return n=>n>0?t:e}const yr=(e,t,n)=>e+(t-e)*n,uT=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},HY=[sT,sf,qd],zY=e=>HY.find(t=>t.test(e));function FN(e){const t=zY(e);if(!t)return!1;let n=t.parse(e);return t===qd&&(n=UY(n)),n}const PN=(e,t)=>{const n=FN(e),r=FN(t);if(!n||!r)return A1(e,t);const i={...n};return o=>(i.red=uT(n.red,r.red,o),i.green=uT(n.green,r.green,o),i.blue=uT(n.blue,r.blue,o),i.alpha=yr(n.alpha,r.alpha,o),sf.transform(i))},lT=new Set(["none","hidden"]);function qY(e,t){return lT.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function GY(e,t){return n=>yr(e,t,n)}function cT(e){return typeof e=="number"?GY:typeof e=="string"?nT(e)?A1:ho.test(e)?PN:QY:Array.isArray(e)?jN:typeof e=="object"?ho.test(e)?PN:WY:A1}function jN(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>cT(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function WY(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=cT(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function YY(e,t){const n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const o=t.types[i],a=e.indexes[o][r[o]],l=e.values[a]??0;n[i]=l,r[o]++}return n}const QY=(e,t)=>{const n=Dl.createTransformer(t),r=M0(e),i=M0(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?lT.has(e)&&!i.values.length||lT.has(t)&&!r.values.length?qY(e,t):A0(jN(YY(r,i),i.values),n):A1(e,t)};function VN(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?yr(e,t,n):cT(e)(e,t)}const KY=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>vr.update(t,n),stop:()=>Bu(t),now:()=>Yi.isProcessing?Yi.timestamp:Bo.now()}},BN=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(o/(i-1))+", ";return`linear(${r.substring(0,r.length-2)})`},D1=2e4;function fT(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<D1;)t+=n,r=e.next(t);return t>=D1?1/0:t}function XY(e,t=100,n){const r=n({...e,keyframes:[0,t]}),i=Math.min(fT(r),D1);return{type:"keyframes",ease:o=>r.next(i*o).value/t,duration:Qa(i)}}const ZY=5;function $N(e,t,n){const r=Math.max(t-ZY,0);return mN(n-e(r),t-r)}const Pr={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},UN=.001;function JY({duration:e=Pr.duration,bounce:t=Pr.bounce,velocity:n=Pr.velocity,mass:r=Pr.mass}){let i,o,a=1-t;a=ju(Pr.minDamping,Pr.maxDamping,a),e=ju(Pr.minDuration,Pr.maxDuration,Qa(e)),a<1?(i=h=>{const p=h*a,b=p*e,v=p-n,x=dT(h,a),S=Math.exp(-b);return UN-v/x*S},o=h=>{const b=h*a*e,v=b*n+n,x=Math.pow(a,2)*Math.pow(h,2)*e,S=Math.exp(-b),w=dT(Math.pow(h,2),a);return(-i(h)+UN>0?-1:1)*((v-x)*S)/w}):(i=h=>{const p=Math.exp(-h*e),b=(h-n)*e+1;return-.001+p*b},o=h=>{const p=Math.exp(-h*e),b=(n-h)*(e*e);return p*b});const l=5/e,f=tQ(i,o,l);if(e=Ya(e),isNaN(f))return{stiffness:Pr.stiffness,damping:Pr.damping,duration:e};{const h=Math.pow(f,2)*r;return{stiffness:h,damping:a*2*Math.sqrt(r*h),duration:e}}}const eQ=12;function tQ(e,t,n){let r=n;for(let i=1;i<eQ;i++)r=r-e(r)/t(r);return r}function dT(e,t){return e*Math.sqrt(1-t*t)}const nQ=["duration","bounce"],rQ=["stiffness","damping","mass"];function HN(e,t){return t.some(n=>e[n]!==void 0)}function iQ(e){let t={velocity:Pr.velocity,stiffness:Pr.stiffness,damping:Pr.damping,mass:Pr.mass,isResolvedFromDuration:!1,...e};if(!HN(e,rQ)&&HN(e,nQ))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*ju(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Pr.mass,stiffness:i,damping:o}}else{const n=JY(e);t={...t,...n,mass:Pr.mass},t.isResolvedFromDuration=!0}return t}function N1(e=Pr.visualDuration,t=Pr.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:o},{stiffness:f,damping:h,mass:p,duration:b,velocity:v,isResolvedFromDuration:x}=iQ({...n,velocity:-Qa(n.velocity||0)}),S=v||0,w=h/(2*Math.sqrt(f*p)),k=a-o,_=Qa(Math.sqrt(f/p)),N=Math.abs(k)<5;r||(r=N?Pr.restSpeed.granular:Pr.restSpeed.default),i||(i=N?Pr.restDelta.granular:Pr.restDelta.default);let O;if(w<1){const L=dT(_,w);O=P=>{const j=Math.exp(-w*_*P);return a-j*((S+w*_*k)/L*Math.sin(L*P)+k*Math.cos(L*P))}}else if(w===1)O=L=>a-Math.exp(-_*L)*(k+(S+_*k)*L);else{const L=_*Math.sqrt(w*w-1);O=P=>{const j=Math.exp(-w*_*P),F=Math.min(L*P,300);return a-j*((S+w*_*k)*Math.sinh(F)+L*k*Math.cosh(F))/L}}const A={calculatedDuration:x&&b||null,next:L=>{const P=O(L);if(x)l.done=L>=b;else{let j=L===0?S:0;w<1&&(j=L===0?Ya(S):$N(O,L,P));const F=Math.abs(j)<=r,B=Math.abs(a-P)<=i;l.done=F&&B}return l.value=l.done?a:P,l},toString:()=>{const L=Math.min(fT(A),D1),P=BN(j=>A.next(L*j).value,L,30);return L+"ms "+P},toTransition:()=>{}};return A}N1.applyToOptions=e=>{const t=XY(e,100,N1);return e.ease=t.ease,e.duration=Ya(t.duration),e.type="keyframes",e};function hT({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:l,max:f,restDelta:h=.5,restSpeed:p}){const b=e[0],v={done:!1,value:b},x=F=>l!==void 0&&F<l||f!==void 0&&F>f,S=F=>l===void 0?f:f===void 0||Math.abs(l-F)<Math.abs(f-F)?l:f;let w=n*t;const k=b+w,_=a===void 0?k:a(k);_!==k&&(w=_-b);const N=F=>-w*Math.exp(-F/r),O=F=>_+N(F),A=F=>{const B=N(F),q=O(F);v.done=Math.abs(B)<=h,v.value=v.done?_:q};let L,P;const j=F=>{x(v.value)&&(L=F,P=N1({keyframes:[v.value,S(v.value)],velocity:$N(O,F,v.value),damping:i,stiffness:o,restDelta:h,restSpeed:p}))};return j(0),{calculatedDuration:null,next:F=>{let B=!1;return!P&&L===void 0&&(B=!0,A(F),j(F)),L!==void 0&&F>=L?P.next(F-L):(!B&&A(F),v)}}}function oQ(e,t,n){const r=[],i=n||Vu.mix||VN,o=e.length-1;for(let a=0;a<o;a++){let l=i(e[a],e[a+1]);if(t){const f=Array.isArray(t)?t[a]||Rs:t;l=A0(f,l)}r.push(l)}return r}function zN(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Qx(o===t.length),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const l=oQ(t,r,i),f=l.length,h=p=>{if(a&&p<e[0])return t[0];let b=0;if(f>1)for(;b<e.length-2&&!(p<e[b+1]);b++);const v=D0(e[b],e[b+1],p);return l[b](v)};return n?p=>h(ju(e[0],e[o-1],p)):h}function sQ(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=D0(0,t,r);e.push(yr(n,1,i))}}function aQ(e){const t=[0];return sQ(t,e.length-1),t}function uQ(e,t){return e.map(n=>n*t)}function lQ(e,t){return e.map(()=>t||wN).splice(0,e.length-1)}function L0({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=xY(r)?r.map(_N):_N(r),o={done:!1,value:t[0]},a=uQ(n&&n.length===t.length?n:aQ(t),e),l=zN(a,t,{ease:Array.isArray(i)?i:lQ(t,i)});return{calculatedDuration:e,next:f=>(o.value=l(f),o.done=f>=e,o)}}const cQ=e=>e!==null;function pT(e,{repeat:t,repeatType:n="loop"},r,i=1){const o=e.filter(cQ),l=i<0||t&&n!=="loop"&&t%2===1?0:o.length-1;return!l||r===void 0?o[l]:r}const fQ={decay:hT,inertia:hT,tween:L0,keyframes:L0,spring:N1};function qN(e){typeof e.type=="string"&&(e.type=fQ[e.type])}class mT{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const dQ=e=>e/100;class gT extends mT{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=(n=!0)=>{var r,i;if(n){const{motionValue:o}=this.options;o&&o.updatedAt!==Bo.now()&&this.tick(Bo.now())}this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(r=this.options).onStop)==null||i.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;qN(t);const{type:n=L0,repeat:r=0,repeatDelay:i=0,repeatType:o,velocity:a=0}=t;let{keyframes:l}=t;const f=n||L0;f!==L0&&typeof l[0]!="number"&&(this.mixKeyframes=A0(dQ,VN(l[0],l[1])),l=[0,100]);const h=f({...t,keyframes:l});o==="mirror"&&(this.mirroredGenerator=f({...t,keyframes:[...l].reverse(),velocity:-a})),h.calculatedDuration===null&&(h.calculatedDuration=fT(h));const{calculatedDuration:p}=h;this.calculatedDuration=p,this.resolvedDuration=p+i,this.totalDuration=this.resolvedDuration*(r+1)-i,this.generator=h}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:i,mixKeyframes:o,mirroredGenerator:a,resolvedDuration:l,calculatedDuration:f}=this;if(this.startTime===null)return r.next(0);const{delay:h=0,keyframes:p,repeat:b,repeatType:v,repeatDelay:x,type:S,onUpdate:w,finalKeyframe:k}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-i/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const _=this.currentTime-h*(this.playbackSpeed>=0?1:-1),N=this.playbackSpeed>=0?_<0:_>i;this.currentTime=Math.max(_,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let O=this.currentTime,A=r;if(b){const F=Math.min(this.currentTime,i)/l;let B=Math.floor(F),q=F%1;!q&&F>=1&&(q=1),q===1&&B--,B=Math.min(B,b+1),!!(B%2)&&(v==="reverse"?(q=1-q,x&&(q-=x/l)):v==="mirror"&&(A=a)),O=ju(0,1,q)*l}const L=N?{done:!1,value:p[0]}:A.next(O);o&&(L.value=o(L.value));let{done:P}=L;!N&&f!==null&&(P=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const j=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return j&&S!==hT&&(L.value=pT(p,this.options,k,this.speed)),w&&w(L.value),j&&this.finish(),L}then(t,n){return this.finished.then(t,n)}get duration(){return Qa(this.calculatedDuration)}get time(){return Qa(this.currentTime)}set time(t){var n;t=Ya(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Bo.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Qa(this.currentTime))}play(){var i,o;if(this.isStopped)return;const{driver:t=KY,startTime:n}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),(o=(i=this.options).onPlay)==null||o.call(i);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Bo.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function hQ(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const af=e=>e*180/Math.PI,vT=e=>{const t=af(Math.atan2(e[1],e[0]));return yT(t)},pQ={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:vT,rotateZ:vT,skewX:e=>af(Math.atan(e[1])),skewY:e=>af(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},yT=e=>(e=e%360,e<0&&(e+=360),e),GN=vT,WN=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),YN=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),mQ={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:WN,scaleY:YN,scale:e=>(WN(e)+YN(e))/2,rotateX:e=>yT(af(Math.atan2(e[6],e[5]))),rotateY:e=>yT(af(Math.atan2(-e[2],e[0]))),rotateZ:GN,rotate:GN,skewX:e=>af(Math.atan(e[4])),skewY:e=>af(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function bT(e){return e.includes("scale")?1:0}function ET(e,t){if(!e||e==="none")return bT(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=mQ,i=n;else{const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=pQ,i=l}if(!i)return bT(t);const o=r[t],a=i[1].split(",").map(vQ);return typeof o=="function"?o(a):a[o]}const gQ=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return ET(n,t)};function vQ(e){return parseFloat(e.trim())}const Gd=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Wd=new Set(Gd),QN=e=>e===zd||e===Pt,yQ=new Set(["x","y","z"]),bQ=Gd.filter(e=>!yQ.has(e));function EQ(e){const t=[];return bQ.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const uf={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>ET(t,"x"),y:(e,{transform:t})=>ET(t,"y")};uf.translateX=uf.x,uf.translateY=uf.y;const lf=new Set;let xT=!1,TT=!1,ST=!1;function KN(){if(TT){const e=Array.from(lf).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=EQ(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([o,a])=>{var l;(l=r.getValue(o))==null||l.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}TT=!1,xT=!1,lf.forEach(e=>e.complete(ST)),lf.clear()}function XN(){lf.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(TT=!0)})}function xQ(){ST=!0,XN(),KN(),ST=!1}class wT{constructor(t,n,r,i,o,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=o,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(lf.add(this),xT||(xT=!0,vr.read(XN),vr.resolveKeyframes(KN))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;if(t[0]===null){const o=i==null?void 0:i.get(),a=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const l=r.readValue(n,a);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=a),i&&o===void 0&&i.set(t[0])}hQ(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),lf.delete(this)}cancel(){this.state==="scheduled"&&(lf.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const TQ=e=>e.startsWith("--");function SQ(e,t,n){TQ(t)?e.style.setProperty(t,n):e.style[t]=n}const wQ=Kx(()=>window.ScrollTimeline!==void 0),CQ={};function _Q(e,t){const n=Kx(e);return()=>CQ[t]??n()}const ZN=_Q(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),I0=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,JN={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:I0([0,.65,.55,1]),circOut:I0([.55,0,1,.45]),backIn:I0([.31,.01,.66,-.59]),backOut:I0([.33,1.53,.69,.99])};function eO(e,t){if(e)return typeof e=="function"?ZN()?BN(e,t):"ease-out":CN(e)?I0(e):Array.isArray(e)?e.map(n=>eO(n,t)||JN.easeOut):JN[e]}function AQ(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:l="easeOut",times:f}={},h=void 0){const p={[t]:n};f&&(p.offset=f);const b=eO(l,i);Array.isArray(b)&&(p.easing=b);const v={delay:r,duration:i,easing:Array.isArray(b)?"linear":b,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"};return h&&(v.pseudoElement=h),e.animate(p,v)}function tO(e){return typeof e=="function"&&"applyToOptions"in e}function DQ({type:e,...t}){return tO(e)&&ZN()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class NQ extends mT{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:i,pseudoElement:o,allowFlatten:a=!1,finalKeyframe:l,onComplete:f}=t;this.isPseudoElement=!!o,this.allowFlatten=a,this.options=t,Qx(typeof t.type!="string");const h=DQ(t);this.animation=AQ(n,r,i,h,o),h.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!o){const p=pT(i,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(p):SQ(n,r,p),this.animation.cancel()}f==null||f(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Qa(Number(t))}get time(){return Qa(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Ya(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&wQ()?(this.animation.timeline=t,Rs):n(this)}}const nO={anticipate:xN,backInOut:EN,circInOut:SN};function OQ(e){return e in nO}function kQ(e){typeof e.ease=="string"&&OQ(e.ease)&&(e.ease=nO[e.ease])}const rO=10;class RQ extends NQ{constructor(t){kQ(t),qN(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:i,element:o,...a}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const l=new gT({...a,autoplay:!1}),f=Ya(this.finishedTime??this.time);n.setWithVelocity(l.sample(f-rO).value,l.sample(f).value,rO),l.stop()}}const iO=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Dl.test(e)||e==="0")&&!e.startsWith("url("));function MQ(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function LQ(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=iO(i,t),l=iO(o,t);return!a||!l?!1:MQ(e)||(n==="spring"||tO(n))&&r}function oO(e){return hN(e)&&"offsetHeight"in e}const IQ=new Set(["opacity","clipPath","filter","transform"]),FQ=Kx(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function PQ(e){var h;const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:a}=e;if(!oO((h=t==null?void 0:t.owner)==null?void 0:h.current))return!1;const{onUpdate:l,transformTemplate:f}=t.owner.getProps();return FQ()&&n&&IQ.has(n)&&(n!=="transform"||!f)&&!l&&!r&&i!=="mirror"&&o!==0&&a!=="inertia"}const jQ=40;class VQ extends mT{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",keyframes:l,name:f,motionValue:h,element:p,...b}){var S;super(),this.stop=()=>{var w,k;this._animation&&(this._animation.stop(),(w=this.stopTimeline)==null||w.call(this)),(k=this.keyframeResolver)==null||k.cancel()},this.createdAt=Bo.now();const v={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,name:f,motionValue:h,element:p,...b},x=(p==null?void 0:p.KeyframeResolver)||wT;this.keyframeResolver=new x(l,(w,k,_)=>this.onKeyframesResolved(w,k,v,!_),f,h,p),(S=this.keyframeResolver)==null||S.scheduleResolve()}onKeyframesResolved(t,n,r,i){this.keyframeResolver=void 0;const{name:o,type:a,velocity:l,delay:f,isHandoff:h,onUpdate:p}=r;this.resolvedAt=Bo.now(),LQ(t,o,a,l)||((Vu.instantAnimations||!f)&&(p==null||p(pT(t,r,n))),t[0]=t[t.length-1],r.duration=0,r.repeat=0);const v={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>jQ?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},x=!h&&PQ(v)?new RQ({...v,element:v.motionValue.owner.current}):new gT(v);x.finished.then(()=>this.notifyFinished()).catch(Rs),this.pendingTimeline&&(this.stopTimeline=x.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=x}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),xQ()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const BQ=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function $Q(e){const t=BQ.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function sO(e,t,n=1){const[r,i]=$Q(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return dN(a)?parseFloat(a):a}return nT(i)?sO(i,t,n+1):i}function CT(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const aO=new Set(["width","height","top","left","right","bottom",...Gd]),UQ={test:e=>e==="auto",parse:e=>e},uO=e=>t=>t.test(e),lO=[zd,Pt,Ka,Al,LY,MY,UQ],cO=e=>lO.find(uO(e));function HQ(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||pN(e):!0}const zQ=new Set(["brightness","contrast","saturate","opacity"]);function qQ(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(rT)||[];if(!r)return e;const i=n.replace(r,"");let o=zQ.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const GQ=/\b([a-z-]*)\(.*?\)/gu,_T={...Dl,getAnimatableNone:e=>{const t=e.match(GQ);return t?t.map(qQ).join(" "):e}},fO={...zd,transform:Math.round},AT={borderWidth:Pt,borderTopWidth:Pt,borderRightWidth:Pt,borderBottomWidth:Pt,borderLeftWidth:Pt,borderRadius:Pt,radius:Pt,borderTopLeftRadius:Pt,borderTopRightRadius:Pt,borderBottomRightRadius:Pt,borderBottomLeftRadius:Pt,width:Pt,maxWidth:Pt,height:Pt,maxHeight:Pt,top:Pt,right:Pt,bottom:Pt,left:Pt,padding:Pt,paddingTop:Pt,paddingRight:Pt,paddingBottom:Pt,paddingLeft:Pt,margin:Pt,marginTop:Pt,marginRight:Pt,marginBottom:Pt,marginLeft:Pt,backgroundPositionX:Pt,backgroundPositionY:Pt,...{rotate:Al,rotateX:Al,rotateY:Al,rotateZ:Al,scale:_1,scaleX:_1,scaleY:_1,scaleZ:_1,skew:Al,skewX:Al,skewY:Al,distance:Pt,translateX:Pt,translateY:Pt,translateZ:Pt,x:Pt,y:Pt,z:Pt,perspective:Pt,transformPerspective:Pt,opacity:O0,originX:ON,originY:ON,originZ:Pt},zIndex:fO,fillOpacity:O0,strokeOpacity:O0,numOctaves:fO},WQ={...AT,color:ho,backgroundColor:ho,outlineColor:ho,fill:ho,stroke:ho,borderColor:ho,borderTopColor:ho,borderRightColor:ho,borderBottomColor:ho,borderLeftColor:ho,filter:_T,WebkitFilter:_T},dO=e=>WQ[e];function hO(e,t){let n=dO(e);return n!==_T&&(n=Dl),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const YQ=new Set(["auto","none","0"]);function QQ(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!YQ.has(o)&&M0(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=hO(n,i)}class KQ extends wT{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let f=0;f<t.length;f++){let h=t[f];if(typeof h=="string"&&(h=h.trim(),nT(h))){const p=sO(h,n.current);p!==void 0&&(t[f]=p),f===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!aO.has(r)||t.length!==2)return;const[i,o]=t,a=cO(i),l=cO(o);if(a!==l)if(QN(a)&&QN(l))for(let f=0;f<t.length;f++){const h=t[f];typeof h=="string"&&(t[f]=parseFloat(h))}else uf[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)(t[i]===null||HQ(t[i]))&&r.push(i);r.length&&QQ(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=uf[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var l;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const o=r.length-1,a=r[o];r[o]=uf[n](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),(l=this.removedTransforms)!=null&&l.length&&this.removedTransforms.forEach(([f,h])=>{t.getValue(f).set(h)}),this.resolveNoneKeyframes()}}function XQ(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const i=(n==null?void 0:n[e])??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}const pO=30,ZQ=e=>!isNaN(parseFloat(e)),F0={current:void 0};class JQ{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{var a,l;const o=Bo.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((a=this.events.change)==null||a.notify(this.current),this.dependents))for(const f of this.dependents)f.dirty();i&&((l=this.events.renderRequest)==null||l.notify(this.current))},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Bo.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=ZQ(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Xx);const r=this.events[t].add(n);return t==="change"?()=>{r(),vr.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return F0.current&&F0.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=Bo.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>pO)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,pO);return mN(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function cf(e,t){return new JQ(e,t)}const mO=(e,t)=>t&&typeof e=="number"?t.transform(e):e,{schedule:DT}=AN(queueMicrotask,!1),la={x:!1,y:!1};function gO(){return la.x||la.y}function eK(e){return e==="x"||e==="y"?la[e]?null:(la[e]=!0,()=>{la[e]=!1}):la.x||la.y?null:(la.x=la.y=!0,()=>{la.x=la.y=!1})}function vO(e,t){const n=XQ(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function yO(e){return!(e.pointerType==="touch"||gO())}function tK(e,t,n={}){const[r,i,o]=vO(e,n),a=l=>{if(!yO(l))return;const{target:f}=l,h=t(f,l);if(typeof h!="function"||!f)return;const p=b=>{yO(b)&&(h(b),f.removeEventListener("pointerleave",p))};f.addEventListener("pointerleave",p,i)};return r.forEach(l=>{l.addEventListener("pointerenter",a,i)}),o}const bO=(e,t)=>t?e===t?!0:bO(e,t.parentElement):!1,NT=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,nK=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function rK(e){return nK.has(e.tagName)||e.tabIndex!==-1}const O1=new WeakSet;function EO(e){return t=>{t.key==="Enter"&&e(t)}}function OT(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const iK=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=EO(()=>{if(O1.has(n))return;OT(n,"down");const i=EO(()=>{OT(n,"up")}),o=()=>OT(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function xO(e){return NT(e)&&!gO()}function oK(e,t,n={}){const[r,i,o]=vO(e,n),a=l=>{const f=l.currentTarget;if(!xO(l))return;O1.add(f);const h=t(f,l),p=(x,S)=>{window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",v),O1.has(f)&&O1.delete(f),xO(x)&&typeof h=="function"&&h(x,{success:S})},b=x=>{p(x,f===window||f===document||n.useGlobalTarget||bO(f,x.target))},v=x=>{p(x,!1)};window.addEventListener("pointerup",b,i),window.addEventListener("pointercancel",v,i)};return r.forEach(l=>{(n.useGlobalTarget?window:l).addEventListener("pointerdown",a,i),oO(l)&&(l.addEventListener("focus",h=>iK(h,i)),!rK(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),o}function TO(e){return hN(e)&&"ownerSVGElement"in e}function sK(e){return TO(e)&&e.tagName==="svg"}function aK(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],o=e[2+n],a=e[3+n],l=zN(i,o,a);return t?l(r):l}const Qi=e=>!!(e&&e.getVelocity),uK=[...lO,ho,Dl],lK=e=>uK.find(uO(e)),kT=R.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function cK(e=!0){const t=R.useContext(Gx);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=R.useId();R.useEffect(()=>{if(e)return i(o)},[e]);const a=R.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const SO=R.createContext({strict:!1}),wO={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Yd={};for(const e in wO)Yd[e]={isEnabled:t=>wO[e].some(n=>!!t[n])};function fK(e){for(const t in e)Yd[t]={...Yd[t],...e[t]}}const dK=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function k1(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||dK.has(e)}let CO=e=>!k1(e);function hK(e){e&&(CO=t=>t.startsWith("on")?!k1(t):e(t))}try{hK(require("@emotion/is-prop-valid").default)}catch{}function pK(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(CO(i)||n===!0&&k1(i)||!t&&!k1(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function mK(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const R1=R.createContext({});function M1(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function P0(e){return typeof e=="string"||Array.isArray(e)}const RT=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],MT=["initial",...RT];function L1(e){return M1(e.animate)||MT.some(t=>P0(e[t]))}function _O(e){return!!(L1(e)||e.variants)}function gK(e,t){if(L1(e)){const{initial:n,animate:r}=e;return{initial:n===!1||P0(n)?n:void 0,animate:P0(r)?r:void 0}}return e.inherit!==!1?t:{}}function vK(e){const{initial:t,animate:n}=gK(e,R.useContext(R1));return R.useMemo(()=>({initial:t,animate:n}),[AO(t),AO(n)])}function AO(e){return Array.isArray(e)?e.join(" "):e}const yK=Symbol.for("motionComponentSymbol");function Qd(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function bK(e,t,n){return R.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Qd(n)&&(n.current=r))},[t])}const LT=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),DO="data-"+LT("framerAppearId"),NO=R.createContext({});function EK(e,t,n,r,i){var w,k;const{visualElement:o}=R.useContext(R1),a=R.useContext(SO),l=R.useContext(Gx),f=R.useContext(kT).reducedMotion,h=R.useRef(null);r=r||a.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:f}));const p=h.current,b=R.useContext(NO);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&xK(h.current,n,i,b);const v=R.useRef(!1);R.useInsertionEffect(()=>{p&&v.current&&p.update(n,l)});const x=n[DO],S=R.useRef(!!x&&!((w=window.MotionHandoffIsComplete)!=null&&w.call(window,x))&&((k=window.MotionHasOptimisedAnimation)==null?void 0:k.call(window,x)));return fN(()=>{p&&(v.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),DT.render(p.render),S.current&&p.animationState&&p.animationState.animateChanges())}),R.useEffect(()=>{p&&(!S.current&&p.animationState&&p.animationState.animateChanges(),S.current&&(queueMicrotask(()=>{var _;(_=window.MotionHandoffMarkAsComplete)==null||_.call(window,x)}),S.current=!1))}),p}function xK(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:l,layoutScroll:f,layoutRoot:h,layoutCrossfade:p}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:OO(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||l&&Qd(l),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,crossfade:p,layoutScroll:f,layoutRoot:h})}function OO(e){if(e)return e.options.allowProjection!==!1?e.projection:OO(e.parent)}function TK({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&fK(e);function o(l,f){let h;const p={...R.useContext(kT),...l,layoutId:SK(l)},{isStatic:b}=p,v=vK(l),x=r(l,b);if(!b&&qx){wK();const S=CK(p);h=S.MeasureLayout,v.visualElement=EK(i,x,p,t,S.ProjectionNode)}return $.jsxs(R1.Provider,{value:v,children:[h&&v.visualElement?$.jsx(h,{visualElement:v.visualElement,...p}):null,n(i,l,bK(x,v.visualElement,f),x,b,v.visualElement)]})}o.displayName=`motion.${typeof i=="string"?i:`create(${i.displayName??i.name??""})`}`;const a=R.forwardRef(o);return a[yK]=i,a}function SK({layoutId:e}){const t=R.useContext(cN).id;return t&&e!==void 0?t+"-"+e:e}function wK(e,t){R.useContext(SO).strict}function CK(e){const{drag:t,layout:n}=Yd;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const j0={};function _K(e){for(const t in e)j0[t]=e[t],tT(t)&&(j0[t].isCSSVariable=!0)}function kO(e,{layout:t,layoutId:n}){return Wd.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!j0[e]||e==="opacity")}const AK={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},DK=Gd.length;function NK(e,t,n){let r="",i=!0;for(let o=0;o<DK;o++){const a=Gd[o],l=e[a];if(l===void 0)continue;let f=!0;if(typeof l=="number"?f=l===(a.startsWith("scale")?1:0):f=parseFloat(l)===0,!f||n){const h=mO(l,AT[a]);if(!f){i=!1;const p=AK[a]||a;r+=`${p}(${h}) `}n&&(t[a]=h)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function IT(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,l=!1;for(const f in t){const h=t[f];if(Wd.has(f)){a=!0;continue}else if(tT(f)){i[f]=h;continue}else{const p=mO(h,AT[f]);f.startsWith("origin")?(l=!0,o[f]=p):r[f]=p}}if(t.transform||(a||n?r.transform=NK(t,e.transform,n):r.transform&&(r.transform="none")),l){const{originX:f="50%",originY:h="50%",originZ:p=0}=o;r.transformOrigin=`${f} ${h} ${p}`}}const FT=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function RO(e,t,n){for(const r in t)!Qi(t[r])&&!kO(r,n)&&(e[r]=t[r])}function OK({transformTemplate:e},t){return R.useMemo(()=>{const n=FT();return IT(n,t,e),Object.assign({},n.vars,n.style)},[t])}function kK(e,t){const n=e.style||{},r={};return RO(r,n,e),Object.assign(r,OK(e,t)),r}function RK(e,t){const n={},r=kK(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const MK={offset:"stroke-dashoffset",array:"stroke-dasharray"},LK={offset:"strokeDashoffset",array:"strokeDasharray"};function IK(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?MK:LK;e[o.offset]=Pt.transform(-r);const a=Pt.transform(t),l=Pt.transform(n);e[o.array]=`${a} ${l}`}function MO(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:a=0,...l},f,h,p){if(IT(e,l,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:b,style:v}=e;b.transform&&(v.transform=b.transform,delete b.transform),(v.transform||b.transformOrigin)&&(v.transformOrigin=b.transformOrigin??"50% 50%",delete b.transformOrigin),v.transform&&(v.transformBox=(p==null?void 0:p.transformBox)??"fill-box",delete b.transformBox),t!==void 0&&(b.x=t),n!==void 0&&(b.y=n),r!==void 0&&(b.scale=r),i!==void 0&&IK(b,i,o,a,!1)}const LO=()=>({...FT(),attrs:{}}),IO=e=>typeof e=="string"&&e.toLowerCase()==="svg";function FK(e,t,n,r){const i=R.useMemo(()=>{const o=LO();return MO(o,t,IO(r),e.transformTemplate,e.style),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};RO(o,e.style,e),i.style={...o,...i.style}}return i}const PK=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function PT(e){return typeof e!="string"||e.includes("-")?!1:!!(PK.indexOf(e)>-1||/[A-Z]/u.test(e))}function jK(e=!1){return(n,r,i,{latestValues:o},a)=>{const f=(PT(n)?FK:RK)(r,o,a,n),h=pK(r,typeof n=="string",e),p=n!==R.Fragment?{...h,...f,ref:i}:{},{children:b}=r,v=R.useMemo(()=>Qi(b)?b.get():b,[b]);return R.createElement(n,{...p,children:v})}}function FO(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function jT(e,t,n,r){if(typeof t=="function"){const[i,o]=FO(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=FO(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function I1(e){return Qi(e)?e.get():e}function VK({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:BK(n,r,i,e),renderState:t()}}const PO=e=>(t,n)=>{const r=R.useContext(R1),i=R.useContext(Gx),o=()=>VK(e,t,r,i);return n?o():_0(o)};function BK(e,t,n,r){const i={},o=r(e,{});for(const v in o)i[v]=I1(o[v]);let{initial:a,animate:l}=e;const f=L1(e),h=_O(e);t&&h&&!f&&e.inherit!==!1&&(a===void 0&&(a=t.initial),l===void 0&&(l=t.animate));let p=n?n.initial===!1:!1;p=p||a===!1;const b=p?l:a;if(b&&typeof b!="boolean"&&!M1(b)){const v=Array.isArray(b)?b:[b];for(let x=0;x<v.length;x++){const S=jT(e,v[x]);if(S){const{transitionEnd:w,transition:k,..._}=S;for(const N in _){let O=_[N];if(Array.isArray(O)){const A=p?O.length-1:0;O=O[A]}O!==null&&(i[N]=O)}for(const N in w)i[N]=w[N]}}}return i}function VT(e,t,n){var o;const{style:r}=e,i={};for(const a in r)(Qi(r[a])||t.style&&Qi(t.style[a])||kO(a,e)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(i[a]=r[a]);return i}const $K={useVisualState:PO({scrapeMotionValuesFromProps:VT,createRenderState:FT})};function jO(e,t,n){const r=VT(e,t,n);for(const i in e)if(Qi(e[i])||Qi(t[i])){const o=Gd.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}const UK={useVisualState:PO({scrapeMotionValuesFromProps:jO,createRenderState:LO})};function HK(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...PT(r)?UK:$K,preloadedFeatures:e,useRender:jK(i),createVisualElement:t,Component:r};return TK(a)}}function V0(e,t,n){const r=e.getProps();return jT(r,t,n!==void 0?n:r.custom,e)}const BT=e=>Array.isArray(e);function zK(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,cf(n))}function qK(e){return BT(e)?e[e.length-1]||0:e}function GK(e,t){const n=V0(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const l=qK(o[a]);zK(e,a,l)}}function WK(e){return!!(Qi(e)&&e.add)}function $T(e,t){const n=e.getValue("willChange");if(WK(n))return n.add(t);if(!n&&Vu.WillChange){const r=new Vu.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function VO(e){return e.props[DO]}const YK=e=>e!==null;function QK(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(YK),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return i[o]}const KK={type:"spring",stiffness:500,damping:25,restSpeed:10},XK=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),ZK={type:"keyframes",duration:.8},JK={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},eX=(e,{keyframes:t})=>t.length>2?ZK:Wd.has(e)?e.startsWith("scale")?XK(t[1]):KK:JK;function tX({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:l,from:f,elapsed:h,...p}){return!!Object.keys(p).length}const UT=(e,t,n,r={},i,o)=>a=>{const l=CT(r,e)||{},f=l.delay||r.delay||0;let{elapsed:h=0}=r;h=h-Ya(f);const p={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-h,onUpdate:v=>{t.set(v),l.onUpdate&&l.onUpdate(v)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:o?void 0:i};tX(l)||Object.assign(p,eX(e,p)),p.duration&&(p.duration=Ya(p.duration)),p.repeatDelay&&(p.repeatDelay=Ya(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let b=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(p.duration=0,p.delay===0&&(b=!0)),(Vu.instantAnimations||Vu.skipAnimations)&&(b=!0,p.duration=0,p.delay=0),p.allowFlatten=!l.type&&!l.ease,b&&!o&&t.get()!==void 0){const v=QK(p.keyframes,l);if(v!==void 0){vr.update(()=>{p.onUpdate(v),p.onComplete()});return}}return l.isSync?new gT(p):new VQ(p)};function nX({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function BO(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(o=r);const f=[],h=i&&e.animationState&&e.animationState.getState()[i];for(const p in l){const b=e.getValue(p,e.latestValues[p]??null),v=l[p];if(v===void 0||h&&nX(h,p))continue;const x={delay:n,...CT(o||{},p)},S=b.get();if(S!==void 0&&!b.isAnimating&&!Array.isArray(v)&&v===S&&!x.velocity)continue;let w=!1;if(window.MotionHandoffAnimation){const _=VO(e);if(_){const N=window.MotionHandoffAnimation(_,p,vr);N!==null&&(x.startTime=N,w=!0)}}$T(e,p),b.start(UT(p,b,v,e.shouldReduceMotion&&aO.has(p)?{type:!1}:x,e,w));const k=b.animation;k&&f.push(k)}return a&&Promise.all(f).then(()=>{vr.update(()=>{a&&GK(e,a)})}),f}function HT(e,t,n={}){var f;const r=V0(e,t,n.type==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const o=r?()=>Promise.all(BO(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:p=0,staggerChildren:b,staggerDirection:v}=i;return rX(e,t,p+h,b,v,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[h,p]=l==="beforeChildren"?[o,a]:[a,o];return h().then(()=>p())}else return Promise.all([o(),a(n.delay)])}function rX(e,t,n=0,r=0,i=1,o){const a=[],l=(e.variantChildren.size-1)*r,f=i===1?(h=0)=>h*r:(h=0)=>l-h*r;return Array.from(e.variantChildren).sort(iX).forEach((h,p)=>{h.notify("AnimationStart",t),a.push(HT(h,t,{...o,delay:n+f(p)}).then(()=>h.notify("AnimationComplete",t)))}),Promise.all(a)}function iX(e,t){return e.sortNodePosition(t)}function oX(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>HT(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=HT(e,t,n);else{const i=typeof t=="function"?V0(e,t,n.custom):t;r=Promise.all(BO(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function $O(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const sX=MT.length;function UO(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?UO(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<sX;n++){const r=MT[n],i=e.props[r];(P0(i)||i===!1)&&(t[r]=i)}return t}const aX=[...RT].reverse(),uX=RT.length;function lX(e){return t=>Promise.all(t.map(({animation:n,options:r})=>oX(e,n,r)))}function cX(e){let t=lX(e),n=HO(),r=!0;const i=f=>(h,p)=>{var v;const b=V0(e,p,f==="exit"?(v=e.presenceContext)==null?void 0:v.custom:void 0);if(b){const{transition:x,transitionEnd:S,...w}=b;h={...h,...w,...S}}return h};function o(f){t=f(e)}function a(f){const{props:h}=e,p=UO(e.parent)||{},b=[],v=new Set;let x={},S=1/0;for(let k=0;k<uX;k++){const _=aX[k],N=n[_],O=h[_]!==void 0?h[_]:p[_],A=P0(O),L=_===f?N.isActive:null;L===!1&&(S=k);let P=O===p[_]&&O!==h[_]&&A;if(P&&r&&e.manuallyAnimateOnMount&&(P=!1),N.protectedKeys={...x},!N.isActive&&L===null||!O&&!N.prevProp||M1(O)||typeof O=="boolean")continue;const j=fX(N.prevProp,O);let F=j||_===f&&N.isActive&&!P&&A||k>S&&A,B=!1;const q=Array.isArray(O)?O:[O];let W=q.reduce(i(_),{});L===!1&&(W={});const{prevResolvedValues:Z={}}=N,X={...Z,...W},ee=ue=>{F=!0,v.has(ue)&&(B=!0,v.delete(ue)),N.needsAnimating[ue]=!0;const ne=e.getValue(ue);ne&&(ne.liveStyle=!1)};for(const ue in X){const ne=W[ue],oe=Z[ue];if(x.hasOwnProperty(ue))continue;let K=!1;BT(ne)&&BT(oe)?K=!$O(ne,oe):K=ne!==oe,K?ne!=null?ee(ue):v.add(ue):ne!==void 0&&v.has(ue)?ee(ue):N.protectedKeys[ue]=!0}N.prevProp=O,N.prevResolvedValues=W,N.isActive&&(x={...x,...W}),r&&e.blockInitialAnimation&&(F=!1),F&&(!(P&&j)||B)&&b.push(...q.map(ue=>({animation:ue,options:{type:_}})))}if(v.size){const k={};if(typeof h.initial!="boolean"){const _=V0(e,Array.isArray(h.initial)?h.initial[0]:h.initial);_&&_.transition&&(k.transition=_.transition)}v.forEach(_=>{const N=e.getBaseTarget(_),O=e.getValue(_);O&&(O.liveStyle=!0),k[_]=N??null}),b.push({animation:k})}let w=!!b.length;return r&&(h.initial===!1||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(w=!1),r=!1,w?t(b):Promise.resolve()}function l(f,h){var b;if(n[f].isActive===h)return Promise.resolve();(b=e.variantChildren)==null||b.forEach(v=>{var x;return(x=v.animationState)==null?void 0:x.setActive(f,h)}),n[f].isActive=h;const p=a(f);for(const v in n)n[v].protectedKeys={};return p}return{animateChanges:a,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=HO(),r=!0}}}function fX(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!$O(t,e):!1}function ff(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function HO(){return{animate:ff(!0),whileInView:ff(),whileHover:ff(),whileTap:ff(),whileDrag:ff(),whileFocus:ff(),exit:ff()}}class Nl{constructor(t){this.isMounted=!1,this.node=t}update(){}}class dX extends Nl{constructor(t){super(t),t.animationState||(t.animationState=cX(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();M1(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let hX=0;class pX extends Nl{constructor(){super(...arguments),this.id=hX++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const mX={animation:{Feature:dX},exit:{Feature:pX}};function B0(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function $0(e){return{point:{x:e.pageX,y:e.pageY}}}const gX=e=>t=>NT(t)&&e(t,$0(t));function U0(e,t,n,r){return B0(e,t,gX(n),r)}function zO({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function vX({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function yX(e,t){if(!t)return e;const 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}}const qO=1e-4,bX=1-qO,EX=1+qO,GO=.01,xX=0-GO,TX=0+GO;function Ao(e){return e.max-e.min}function SX(e,t,n){return Math.abs(e-t)<=n}function WO(e,t,n,r=.5){e.origin=r,e.originPoint=yr(t.min,t.max,e.origin),e.scale=Ao(n)/Ao(t),e.translate=yr(n.min,n.max,e.origin)-e.originPoint,(e.scale>=bX&&e.scale<=EX||isNaN(e.scale))&&(e.scale=1),(e.translate>=xX&&e.translate<=TX||isNaN(e.translate))&&(e.translate=0)}function H0(e,t,n,r){WO(e.x,t.x,n.x,r?r.originX:void 0),WO(e.y,t.y,n.y,r?r.originY:void 0)}function YO(e,t,n){e.min=n.min+t.min,e.max=e.min+Ao(t)}function wX(e,t,n){YO(e.x,t.x,n.x),YO(e.y,t.y,n.y)}function QO(e,t,n){e.min=t.min-n.min,e.max=e.min+Ao(t)}function z0(e,t,n){QO(e.x,t.x,n.x),QO(e.y,t.y,n.y)}const KO=()=>({translate:0,scale:1,origin:0,originPoint:0}),Kd=()=>({x:KO(),y:KO()}),XO=()=>({min:0,max:0}),Yr=()=>({x:XO(),y:XO()});function Ms(e){return[e("x"),e("y")]}function zT(e){return e===void 0||e===1}function qT({scale:e,scaleX:t,scaleY:n}){return!zT(e)||!zT(t)||!zT(n)}function df(e){return qT(e)||ZO(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ZO(e){return JO(e.x)||JO(e.y)}function JO(e){return e&&e!=="0%"}function F1(e,t,n){const r=e-n,i=t*r;return n+i}function ek(e,t,n,r,i){return i!==void 0&&(e=F1(e,i,r)),F1(e,n,r)+t}function GT(e,t=0,n=1,r,i){e.min=ek(e.min,t,n,r,i),e.max=ek(e.max,t,n,r,i)}function tk(e,{x:t,y:n}){GT(e.x,t.translate,t.scale,t.originPoint),GT(e.y,n.translate,n.scale,n.originPoint)}const nk=.999999999999,rk=1.0000000000001;function CX(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let l=0;l<i;l++){o=n[l],a=o.projectionDelta;const{visualElement:f}=o.options;f&&f.props.style&&f.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&Zd(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,tk(e,a)),r&&df(o.latestValues)&&Zd(e,o.latestValues))}t.x<rk&&t.x>nk&&(t.x=1),t.y<rk&&t.y>nk&&(t.y=1)}function Xd(e,t){e.min=e.min+t,e.max=e.max+t}function ik(e,t,n,r,i=.5){const o=yr(e.min,e.max,i);GT(e,t,n,o,r)}function Zd(e,t){ik(e.x,t.x,t.scaleX,t.scale,t.originX),ik(e.y,t.y,t.scaleY,t.scale,t.originY)}function ok(e,t){return zO(yX(e.getBoundingClientRect(),t))}function _X(e,t,n){const r=ok(e,n),{scroll:i}=t;return i&&(Xd(r.x,i.offset.x),Xd(r.y,i.offset.y)),r}const sk=({current:e})=>e?e.ownerDocument.defaultView:null,ak=(e,t)=>Math.abs(e-t);function AX(e,t){const n=ak(e.x,t.x),r=ak(e.y,t.y);return Math.sqrt(n**2+r**2)}class uk{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=YT(this.lastMoveEventInfo,this.history),v=this.startEvent!==null,x=AX(b.offset,{x:0,y:0})>=3;if(!v&&!x)return;const{point:S}=b,{timestamp:w}=Yi;this.history.push({...S,timestamp:w});const{onStart:k,onMove:_}=this.handlers;v||(k&&k(this.lastMoveEvent,b),this.startEvent=this.lastMoveEvent),_&&_(this.lastMoveEvent,b)},this.handlePointerMove=(b,v)=>{this.lastMoveEvent=b,this.lastMoveEventInfo=WT(v,this.transformPagePoint),vr.update(this.updatePoint,!0)},this.handlePointerUp=(b,v)=>{this.end();const{onEnd:x,onSessionEnd:S,resumeAnimation:w}=this.handlers;if(this.dragSnapToOrigin&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const k=YT(b.type==="pointercancel"?this.lastMoveEventInfo:WT(v,this.transformPagePoint),this.history);this.startEvent&&x&&x(b,k),S&&S(b,k)},!NT(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=$0(t),l=WT(a,this.transformPagePoint),{point:f}=l,{timestamp:h}=Yi;this.history=[{...f,timestamp:h}];const{onSessionStart:p}=n;p&&p(t,YT(l,this.history)),this.removeListeners=A0(U0(this.contextWindow,"pointermove",this.handlePointerMove),U0(this.contextWindow,"pointerup",this.handlePointerUp),U0(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Bu(this.updatePoint)}}function WT(e,t){return t?{point:t(e.point)}:e}function lk(e,t){return{x:e.x-t.x,y:e.y-t.y}}function YT({point:e},t){return{point:e,delta:lk(e,ck(t)),offset:lk(e,DX(t)),velocity:NX(t,.1)}}function DX(e){return e[0]}function ck(e){return e[e.length-1]}function NX(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=ck(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Ya(t)));)n--;if(!r)return{x:0,y:0};const o=Qa(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function OX(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?yr(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?yr(n,e,r.max):Math.min(e,n)),e}function fk(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 kX(e,{top:t,left:n,bottom:r,right:i}){return{x:fk(e.x,n,i),y:fk(e.y,t,r)}}function dk(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function RX(e,t){return{x:dk(e.x,t.x),y:dk(e.y,t.y)}}function MX(e,t){let n=.5;const r=Ao(e),i=Ao(t);return i>r?n=D0(t.min,t.max-r,e.min):r>i&&(n=D0(e.min,e.max-i,t.min)),ju(0,1,n)}function LX(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const QT=.35;function IX(e=QT){return e===!1?e=0:e===!0&&(e=QT),{x:hk(e,"left","right"),y:hk(e,"top","bottom")}}function hk(e,t,n){return{min:pk(e,t),max:pk(e,n)}}function pk(e,t){return typeof e=="number"?e:e[t]||0}const FX=new WeakMap;class PX{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Yr(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=p=>{const{dragSnapToOrigin:b}=this.getProps();b?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor($0(p).point)},o=(p,b)=>{const{drag:v,dragPropagation:x,onDragStart:S}=this.getProps();if(v&&!x&&(this.openDragLock&&this.openDragLock(),this.openDragLock=eK(v),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ms(k=>{let _=this.getAxisMotionValue(k).get()||0;if(Ka.test(_)){const{projection:N}=this.visualElement;if(N&&N.layout){const O=N.layout.layoutBox[k];O&&(_=Ao(O)*(parseFloat(_)/100))}}this.originPoint[k]=_}),S&&vr.postRender(()=>S(p,b)),$T(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},a=(p,b)=>{const{dragPropagation:v,dragDirectionLock:x,onDirectionLock:S,onDrag:w}=this.getProps();if(!v&&!this.openDragLock)return;const{offset:k}=b;if(x&&this.currentDirection===null){this.currentDirection=jX(k),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",b.point,k),this.updateAxis("y",b.point,k),this.visualElement.render(),w&&w(p,b)},l=(p,b)=>this.stop(p,b),f=()=>Ms(p=>{var b;return this.getAnimationState(p)==="paused"&&((b=this.getAxisMotionValue(p).animation)==null?void 0:b.play())}),{dragSnapToOrigin:h}=this.getProps();this.panSession=new uk(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:f},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:h,contextWindow:sk(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&vr.postRender(()=>o(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!P1(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=OX(a,this.constraints[t],this.elastic[t])),o.set(a)}resolveConstraints(){var o;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(o=this.visualElement.projection)==null?void 0:o.layout,i=this.constraints;t&&Qd(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=kX(r.layoutBox,t):this.constraints=!1,this.elastic=IX(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Ms(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=LX(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Qd(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const o=_X(r,i.root,this.visualElement.getTransformPagePoint());let a=RX(i.layout.layoutBox,o);if(n){const l=n(vX(a));this.hasMutatedConstraints=!!l,l&&(a=zO(l))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:l}=this.getProps(),f=this.constraints||{},h=Ms(p=>{if(!P1(p,n,this.currentDirection))return;let b=f&&f[p]||{};a&&(b={min:0,max:0});const v=i?200:1e6,x=i?40:1e7,S={type:"inertia",velocity:r?t[p]:0,bounceStiffness:v,bounceDamping:x,timeConstant:750,restDelta:1,restSpeed:10,...o,...b};return this.startAxisValueAnimation(p,S)});return Promise.all(h).then(l)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return $T(this.visualElement,t),r.start(UT(t,r,0,n,this.visualElement,!1))}stopAnimation(){Ms(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ms(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Ms(n=>{const{drag:r}=this.getProps();if(!P1(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:l}=i.layout.layoutBox[n];o.set(t[n]-yr(a,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Qd(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Ms(a=>{const l=this.getAxisMotionValue(a);if(l&&this.constraints!==!1){const f=l.get();i[a]=MX({min:f,max:f},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ms(a=>{if(!P1(a,t,null))return;const l=this.getAxisMotionValue(a),{min:f,max:h}=this.constraints[a];l.set(yr(f,h,i[a]))})}addListeners(){if(!this.visualElement.current)return;FX.set(this.visualElement,this);const t=this.visualElement.current,n=U0(t,"pointerdown",f=>{const{drag:h,dragListener:p=!0}=this.getProps();h&&p&&this.start(f)}),r=()=>{const{dragConstraints:f}=this.getProps();Qd(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),vr.read(r);const a=B0(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:f,hasLayoutChanged:h})=>{this.isDragging&&h&&(Ms(p=>{const b=this.getAxisMotionValue(p);b&&(this.originPoint[p]+=f[p].translate,b.set(b.get()+f[p].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),l&&l()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=QT,dragMomentum:l=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:l}}}function P1(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function jX(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class VX extends Nl{constructor(t){super(t),this.removeGroupControls=Rs,this.removeListeners=Rs,this.controls=new PX(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Rs}unmount(){this.removeGroupControls(),this.removeListeners()}}const mk=e=>(t,n)=>{e&&vr.postRender(()=>e(t,n))};class BX extends Nl{constructor(){super(...arguments),this.removePointerDownListener=Rs}onPointerDown(t){this.session=new uk(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:sk(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:mk(t),onStart:mk(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&vr.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=U0(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const j1={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function gk(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const q0={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Pt.test(e))e=parseFloat(e);else return e;const n=gk(e,t.target.x),r=gk(e,t.target.y);return`${n}% ${r}%`}},$X={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Dl.parse(e);if(i.length>5)return r;const o=Dl.createTransformer(e),a=typeof i[0]!="number"?1:0,l=n.x.scale*t.x,f=n.y.scale*t.y;i[0+a]/=l,i[1+a]/=f;const h=yr(l,f,.5);return typeof i[2+a]=="number"&&(i[2+a]/=h),typeof i[3+a]=="number"&&(i[3+a]/=h),o(i)}};class UX extends R.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;_K(HX),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),j1.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,{projection:a}=r;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0||t.isPresent!==o?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||vr.postRender(()=>{const l=a.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),DT.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function vk(e){const[t,n]=cK(),r=R.useContext(cN);return $.jsx(UX,{...e,layoutGroup:r,switchLayoutGroup:R.useContext(NO),isPresent:t,safeToRemove:n})}const HX={borderRadius:{...q0,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:q0,borderTopRightRadius:q0,borderBottomLeftRadius:q0,borderBottomRightRadius:q0,boxShadow:$X};function zX(e,t,n){const r=Qi(e)?e:cf(e);return r.start(UT("",r,t,n)),r.animation}const qX=(e,t)=>e.depth-t.depth;class GX{constructor(){this.children=[],this.isDirty=!1}add(t){Wx(this.children,t),this.isDirty=!0}remove(t){Yx(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(qX),this.isDirty=!1,this.children.forEach(t)}}function WX(e,t){const n=Bo.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Bu(r),e(o-t))};return vr.setup(r,!0),()=>Bu(r)}const yk=["TopLeft","TopRight","BottomLeft","BottomRight"],YX=yk.length,bk=e=>typeof e=="string"?parseFloat(e):e,Ek=e=>typeof e=="number"||Pt.test(e);function QX(e,t,n,r,i,o){i?(e.opacity=yr(0,n.opacity??1,KX(r)),e.opacityExit=yr(t.opacity??1,0,XX(r))):o&&(e.opacity=yr(t.opacity??1,n.opacity??1,r));for(let a=0;a<YX;a++){const l=`border${yk[a]}Radius`;let f=xk(t,l),h=xk(n,l);if(f===void 0&&h===void 0)continue;f||(f=0),h||(h=0),f===0||h===0||Ek(f)===Ek(h)?(e[l]=Math.max(yr(bk(f),bk(h),r),0),(Ka.test(h)||Ka.test(f))&&(e[l]+="%")):e[l]=h}(t.rotate||n.rotate)&&(e.rotate=yr(t.rotate||0,n.rotate||0,r))}function xk(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const KX=Tk(0,.5,TN),XX=Tk(.5,.95,Rs);function Tk(e,t,n){return r=>r<e?0:r>t?1:n(D0(e,t,r))}function Sk(e,t){e.min=t.min,e.max=t.max}function Ls(e,t){Sk(e.x,t.x),Sk(e.y,t.y)}function wk(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Ck(e,t,n,r,i){return e-=t,e=F1(e,1/n,r),i!==void 0&&(e=F1(e,1/i,r)),e}function ZX(e,t=0,n=1,r=.5,i,o=e,a=e){if(Ka.test(t)&&(t=parseFloat(t),t=yr(a.min,a.max,t/100)-a.min),typeof t!="number")return;let l=yr(o.min,o.max,r);e===o&&(l-=t),e.min=Ck(e.min,t,n,l,i),e.max=Ck(e.max,t,n,l,i)}function _k(e,t,[n,r,i],o,a){ZX(e,t[n],t[r],t[i],t.scale,o,a)}const JX=["x","scaleX","originX"],eZ=["y","scaleY","originY"];function Ak(e,t,n,r){_k(e.x,t,JX,n?n.x:void 0,r?r.x:void 0),_k(e.y,t,eZ,n?n.y:void 0,r?r.y:void 0)}function Dk(e){return e.translate===0&&e.scale===1}function Nk(e){return Dk(e.x)&&Dk(e.y)}function Ok(e,t){return e.min===t.min&&e.max===t.max}function tZ(e,t){return Ok(e.x,t.x)&&Ok(e.y,t.y)}function kk(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Rk(e,t){return kk(e.x,t.x)&&kk(e.y,t.y)}function Mk(e){return Ao(e.x)/Ao(e.y)}function Lk(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class nZ{constructor(){this.members=[]}add(t){Wx(this.members,t),t.scheduleRender()}remove(t){if(Yx(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const o=this.members[i];if(o.isPresent!==!1){r=o;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function rZ(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:h,rotate:p,rotateX:b,rotateY:v,skewX:x,skewY:S}=n;h&&(r=`perspective(${h}px) ${r}`),p&&(r+=`rotate(${p}deg) `),b&&(r+=`rotateX(${b}deg) `),v&&(r+=`rotateY(${v}deg) `),x&&(r+=`skewX(${x}deg) `),S&&(r+=`skewY(${S}deg) `)}const l=e.x.scale*t.x,f=e.y.scale*t.y;return(l!==1||f!==1)&&(r+=`scale(${l}, ${f})`),r||"none"}const KT=["","X","Y","Z"],iZ={visibility:"hidden"},oZ=1e3;let sZ=0;function XT(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Ik(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=VO(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",vr,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Ik(r)}function Fk({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},l=t==null?void 0:t()){this.id=sZ++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(lZ),this.nodes.forEach(pZ),this.nodes.forEach(mZ),this.nodes.forEach(cZ)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new GX)}addEventListener(a,l){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new Xx),this.eventHandlers.get(a).add(l)}notifyListeners(a,...l){const f=this.eventHandlers.get(a);f&&f.notify(...l)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=TO(a)&&!sK(a),this.instance=a;const{layoutId:l,layout:f,visualElement:h}=this.options;if(h&&!h.current&&h.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(f||l)&&(this.isLayoutDirty=!0),e){let p;const b=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,p&&p(),p=WX(b,250),j1.hasAnimatedSinceResize&&(j1.hasAnimatedSinceResize=!1,this.nodes.forEach(jk))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&h&&(l||f)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:b,hasRelativeLayoutChanged:v,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const S=this.options.transition||h.getDefaultTransition()||EZ,{onLayoutAnimationStart:w,onLayoutAnimationComplete:k}=h.getProps(),_=!this.targetLayout||!Rk(this.targetLayout,x),N=!b&&v;if(this.options.layoutRoot||this.resumeFrom||N||b&&(_||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(p,N);const O={...CT(S,"layout"),onPlay:w,onComplete:k};(h.shouldReduceMotion||this.options.layoutRoot)&&(O.delay=0,O.type=!1),this.startAnimation(O)}else b||jk(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Bu(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(gZ),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ik(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;p<this.path.length;p++){const b=this.path[p];b.shouldResetTransform=!0,b.updateScroll("snapshot"),b.options.layoutRoot&&b.willUpdate(!1)}const{layoutId:l,layout:f}=this.options;if(l===void 0&&!f)return;const h=this.getTransformTemplate();this.prevTransformTemplateValue=h?h(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Pk);return}this.isUpdating||this.nodes.forEach(dZ),this.isUpdating=!1,this.nodes.forEach(hZ),this.nodes.forEach(aZ),this.nodes.forEach(uZ),this.clearAllSnapshots();const l=Bo.now();Yi.delta=ju(0,1e3/60,l-Yi.timestamp),Yi.timestamp=l,Yi.isProcessing=!0,eT.update.process(Yi),eT.preRender.process(Yi),eT.render.process(Yi),Yi.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,DT.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(fZ),this.sharedNodes.forEach(vZ)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,vr.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){vr.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ao(this.snapshot.measuredBox.x)&&!Ao(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f<this.path.length;f++)this.path[f].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Yr(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:l}=this.options;l&&l.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let l=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(l=!1),l&&this.instance){const f=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,l=this.projectionDelta&&!Nk(this.projectionDelta),f=this.getTransformTemplate(),h=f?f(this.latestValues,""):void 0,p=h!==this.prevTransformTemplateValue;a&&this.instance&&(l||df(this.latestValues)||p)&&(i(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const l=this.measurePageBox();let f=this.removeElementScroll(l);return a&&(f=this.removeTransform(f)),xZ(f),{animationId:this.root.animationId,measuredBox:l,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var h;const{visualElement:a}=this.options;if(!a)return Yr();const l=a.measureViewportBox();if(!(((h=this.scroll)==null?void 0:h.wasRoot)||this.path.some(TZ))){const{scroll:p}=this.root;p&&(Xd(l.x,p.offset.x),Xd(l.y,p.offset.y))}return l}removeElementScroll(a){var f;const l=Yr();if(Ls(l,a),(f=this.scroll)!=null&&f.wasRoot)return l;for(let h=0;h<this.path.length;h++){const p=this.path[h],{scroll:b,options:v}=p;p!==this.root&&b&&v.layoutScroll&&(b.wasRoot&&Ls(l,a),Xd(l.x,b.offset.x),Xd(l.y,b.offset.y))}return l}applyTransform(a,l=!1){const f=Yr();Ls(f,a);for(let h=0;h<this.path.length;h++){const p=this.path[h];!l&&p.options.layoutScroll&&p.scroll&&p!==p.root&&Zd(f,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),df(p.latestValues)&&Zd(f,p.latestValues)}return df(this.latestValues)&&Zd(f,this.latestValues),f}removeTransform(a){const l=Yr();Ls(l,a);for(let f=0;f<this.path.length;f++){const h=this.path[f];if(!h.instance||!df(h.latestValues))continue;qT(h.latestValues)&&h.updateSnapshot();const p=Yr(),b=h.measurePageBox();Ls(p,b),Ak(l,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,p)}return df(this.latestValues)&&Ak(l,this.latestValues),l}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){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}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Yi.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var v;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==l;if(!(a||f&&this.isSharedProjectionDirty||this.isProjectionDirty||(v=this.parent)!=null&&v.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:p,layoutId:b}=this.options;if(!(!this.layout||!(p||b))){if(this.resolvedRelativeTargetAt=Yi.timestamp,!this.targetDelta&&!this.relativeTarget){const x=this.getClosestProjectingParent();x&&x.layout&&this.animationProgress!==1?(this.relativeParent=x,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Yr(),this.relativeTargetOrigin=Yr(),z0(this.relativeTargetOrigin,this.layout.layoutBox,x.layout.layoutBox),Ls(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Yr(),this.targetWithTransforms=Yr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),wX(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Ls(this.target,this.layout.layoutBox),tk(this.target,this.targetDelta)):Ls(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const x=this.getClosestProjectingParent();x&&!!x.resumingFrom==!!this.resumingFrom&&!x.options.layoutScroll&&x.target&&this.animationProgress!==1?(this.relativeParent=x,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Yr(),this.relativeTargetOrigin=Yr(),z0(this.relativeTargetOrigin,this.target,x.target),Ls(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||qT(this.parent.latestValues)||ZO(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var S;const a=this.getLead(),l=!!this.resumingFrom||this!==a;let f=!0;if((this.isProjectionDirty||(S=this.parent)!=null&&S.isProjectionDirty)&&(f=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===Yi.timestamp&&(f=!1),f)return;const{layout:h,layoutId:p}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||p))return;Ls(this.layoutCorrected,this.layout.layoutBox);const b=this.treeScale.x,v=this.treeScale.y;CX(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=Yr());const{target:x}=a;if(!x){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(wk(this.prevProjectionDelta.x,this.projectionDelta.x),wk(this.prevProjectionDelta.y,this.projectionDelta.y)),H0(this.projectionDelta,this.layoutCorrected,x,this.latestValues),(this.treeScale.x!==b||this.treeScale.y!==v||!Lk(this.projectionDelta.x,this.prevProjectionDelta.x)||!Lk(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",x))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var l;if((l=this.options.visualElement)==null||l.scheduleRender(),a){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Kd(),this.projectionDelta=Kd(),this.projectionDeltaWithTransform=Kd()}setAnimationOrigin(a,l=!1){const f=this.snapshot,h=f?f.latestValues:{},p={...this.latestValues},b=Kd();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const v=Yr(),x=f?f.source:void 0,S=this.layout?this.layout.source:void 0,w=x!==S,k=this.getStack(),_=!k||k.members.length<=1,N=!!(w&&!_&&this.options.crossfade===!0&&!this.path.some(bZ));this.animationProgress=0;let O;this.mixTargetDelta=A=>{const L=A/1e3;Vk(b.x,a.x,L),Vk(b.y,a.y,L),this.setTargetDelta(b),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(z0(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),yZ(this.relativeTarget,this.relativeTargetOrigin,v,L),O&&tZ(this.relativeTarget,O)&&(this.isProjectionDirty=!1),O||(O=Yr()),Ls(O,this.relativeTarget)),w&&(this.animationValues=p,QX(p,h,this.latestValues,L,N,_)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=L},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){var l,f,h;this.notifyListeners("animationStart"),(l=this.currentAnimation)==null||l.stop(!1),(h=(f=this.resumingFrom)==null?void 0:f.currentAnimation)==null||h.stop(!1),this.pendingAnimation&&(Bu(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=vr.update(()=>{j1.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=cf(0)),this.currentAnimation=zX(this.motionValue,[0,1e3],{...a,isSync:!0,onUpdate:p=>{this.mixTargetDelta(p),a.onUpdate&&a.onUpdate(p)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(oZ),this.currentAnimation.stop(!1)),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:l,target:f,layout:h,latestValues:p}=a;if(!(!l||!f||!h)){if(this!==a&&this.layout&&h&&zk(this.options.animationType,this.layout.layoutBox,h.layoutBox)){f=this.target||Yr();const b=Ao(this.layout.layoutBox.x);f.x.min=a.target.x.min,f.x.max=f.x.min+b;const v=Ao(this.layout.layoutBox.y);f.y.min=a.target.y.min,f.y.max=f.y.min+v}Ls(l,f),Zd(l,p),H0(this.projectionDeltaWithTransform,this.layoutCorrected,l,p)}}registerSharedNode(a,l){this.sharedNodes.has(a)||this.sharedNodes.set(a,new nZ),this.sharedNodes.get(a).add(l);const h=l.options.initialPromotionConfig;l.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(l):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var l;const{layoutId:a}=this.options;return a?((l=this.getStack())==null?void 0:l.lead)||this:this}getPrevLead(){var l;const{layoutId:a}=this.options;return a?(l=this.getStack())==null?void 0:l.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:l,preserveFollowOpacity:f}={}){const h=this.getStack();h&&h.promote(this,f),a&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let l=!1;const{latestValues:f}=a;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(l=!0),!l)return;const h={};f.z&&XT("z",a,h,this.animationValues);for(let p=0;p<KT.length;p++)XT(`rotate${KT[p]}`,a,h,this.animationValues),XT(`skew${KT[p]}`,a,h,this.animationValues);a.render();for(const p in h)a.setStaticValue(p,h[p]),this.animationValues&&(this.animationValues[p]=h[p]);a.scheduleRender()}getProjectionStyles(a){if(!this.instance||this.isSVG)return;if(!this.isVisible)return iZ;const l={visibility:""},f=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,l.opacity="",l.pointerEvents=I1(a==null?void 0:a.pointerEvents)||"",l.transform=f?f(this.latestValues,""):"none",l;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const x={};return this.options.layoutId&&(x.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,x.pointerEvents=I1(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!df(this.latestValues)&&(x.transform=f?f({},""):"none",this.hasProjected=!1),x}const p=h.animationValues||h.latestValues;this.applyTransformsToTarget(),l.transform=rZ(this.projectionDeltaWithTransform,this.treeScale,p),f&&(l.transform=f(p,l.transform));const{x:b,y:v}=this.projectionDelta;l.transformOrigin=`${b.origin*100}% ${v.origin*100}% 0`,h.animationValues?l.opacity=h===this?p.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:l.opacity=h===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const x in j0){if(p[x]===void 0)continue;const{correct:S,applyTo:w,isCSSVariable:k}=j0[x],_=l.transform==="none"?p[x]:S(p[x],h);if(w){const N=w.length;for(let O=0;O<N;O++)l[w[O]]=_}else k?this.options.visualElement.renderState.vars[x]=_:l[x]=_}return this.options.layoutId&&(l.pointerEvents=h===this?I1(a==null?void 0:a.pointerEvents)||"":"none"),l}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var l;return(l=a.currentAnimation)==null?void 0:l.stop(!1)}),this.root.nodes.forEach(Pk),this.root.sharedNodes.clear()}}}function aZ(e){e.updateLayout()}function uZ(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,a=t.source!==e.layout.source;o==="size"?Ms(b=>{const v=a?t.measuredBox[b]:t.layoutBox[b],x=Ao(v);v.min=r[b].min,v.max=v.min+x}):zk(o,t.layoutBox,r)&&Ms(b=>{const v=a?t.measuredBox[b]:t.layoutBox[b],x=Ao(r[b]);v.max=v.min+x,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[b].max=e.relativeTarget[b].min+x)});const l=Kd();H0(l,r,t.layoutBox);const f=Kd();a?H0(f,e.applyTransform(i,!0),t.measuredBox):H0(f,r,t.layoutBox);const h=!Nk(l);let p=!1;if(!e.resumeFrom){const b=e.getClosestProjectingParent();if(b&&!b.resumeFrom){const{snapshot:v,layout:x}=b;if(v&&x){const S=Yr();z0(S,t.layoutBox,v.layoutBox);const w=Yr();z0(w,r,x.layoutBox),Rk(S,w)||(p=!0),b.options.layoutRoot&&(e.relativeTarget=w,e.relativeTargetOrigin=S,e.relativeParent=b)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:f,layoutDelta:l,hasLayoutChanged:h,hasRelativeLayoutChanged:p})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function lZ(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function cZ(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function fZ(e){e.clearSnapshot()}function Pk(e){e.clearMeasurements()}function dZ(e){e.isLayoutDirty=!1}function hZ(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function jk(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function pZ(e){e.resolveTargetDelta()}function mZ(e){e.calcProjection()}function gZ(e){e.resetSkewAndRotation()}function vZ(e){e.removeLeadSnapshot()}function Vk(e,t,n){e.translate=yr(t.translate,0,n),e.scale=yr(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Bk(e,t,n,r){e.min=yr(t.min,n.min,r),e.max=yr(t.max,n.max,r)}function yZ(e,t,n,r){Bk(e.x,t.x,n.x,r),Bk(e.y,t.y,n.y,r)}function bZ(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const EZ={duration:.45,ease:[.4,0,.1,1]},$k=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Uk=$k("applewebkit/")&&!$k("chrome/")?Math.round:Rs;function Hk(e){e.min=Uk(e.min),e.max=Uk(e.max)}function xZ(e){Hk(e.x),Hk(e.y)}function zk(e,t,n){return e==="position"||e==="preserve-aspect"&&!SX(Mk(t),Mk(n),.2)}function TZ(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const SZ=Fk({attachResizeListener:(e,t)=>B0(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ZT={current:void 0},qk=Fk({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ZT.current){const e=new SZ({});e.mount(window),e.setOptions({layoutScroll:!0}),ZT.current=e}return ZT.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),wZ={pan:{Feature:BX},drag:{Feature:VX,ProjectionNode:qk,MeasureLayout:vk}};function Gk(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&vr.postRender(()=>o(t,$0(t)))}class CZ extends Nl{mount(){const{current:t}=this.node;t&&(this.unmount=tK(t,(n,r)=>(Gk(this.node,r,"Start"),i=>Gk(this.node,i,"End"))))}unmount(){}}class _Z extends Nl{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=A0(B0(this.node.current,"focus",()=>this.onFocus()),B0(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Wk(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&vr.postRender(()=>o(t,$0(t)))}class AZ extends Nl{mount(){const{current:t}=this.node;t&&(this.unmount=oK(t,(n,r)=>(Wk(this.node,r,"Start"),(i,{success:o})=>Wk(this.node,i,o?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const JT=new WeakMap,eS=new WeakMap,DZ=e=>{const t=JT.get(e.target);t&&t(e)},NZ=e=>{e.forEach(DZ)};function OZ({root:e,...t}){const n=e||document;eS.has(n)||eS.set(n,{});const r=eS.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(NZ,{root:e,...t})),r[i]}function kZ(e,t,n){const r=OZ(t);return JT.set(e,n),r.observe(e),()=>{JT.delete(e),r.unobserve(e)}}const RZ={some:0,all:1};class MZ extends Nl{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:RZ[i]},l=f=>{const{isIntersecting:h}=f;if(this.isInView===h||(this.isInView=h,o&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:p,onViewportLeave:b}=this.node.getProps(),v=h?p:b;v&&v(f)};return kZ(this.node.current,a,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(LZ(t,n))&&this.startObserver()}unmount(){}}function LZ({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const IZ={inView:{Feature:MZ},tap:{Feature:AZ},focus:{Feature:_Z},hover:{Feature:CZ}},FZ={layout:{ProjectionNode:qk,MeasureLayout:vk}},tS={current:null},Yk={current:!1};function PZ(){if(Yk.current=!0,!!qx)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>tS.current=e.matches;e.addListener(t),t()}else tS.current=!1}const jZ=new WeakMap;function VZ(e,t,n){for(const r in t){const i=t[r],o=n[r];if(Qi(i))e.addValue(r,i);else if(Qi(o))e.addValue(r,cf(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,cf(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const Qk=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class BZ{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=wT,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const v=Bo.now();this.renderScheduledAt<v&&(this.renderScheduledAt=v,vr.render(this.render,!1,!0))};const{latestValues:f,renderState:h}=a;this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=h,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=L1(n),this.isVariantNode=_O(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:p,...b}=this.scrapeMotionValuesFromProps(n,{},this);for(const v in b){const x=b[v];f[v]!==void 0&&Qi(x)&&x.set(f[v],!1)}}mount(t){this.current=t,jZ.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),Yk.current||PZ(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:tS.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Bu(this.notifyUpdate),Bu(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Wd.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&vr.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Yd){const n=Yd[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Yr()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<Qk.length;r++){const i=Qk[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=VZ(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=cf(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(dN(r)||pN(r))?r=parseFloat(r):!lK(r)&&Dl.test(n)&&(r=hO(t,n)),this.setBaseTarget(t,Qi(r)?r.get():r)),Qi(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var o;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const a=jT(this.props,n,(o=this.presenceContext)==null?void 0:o.custom);a&&(r=a[t])}if(n&&r!==void 0)return r;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!Qi(i)?i:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Xx),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Kk extends BZ{constructor(){super(...arguments),this.KeyframeResolver=KQ}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Qi(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Xk(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}function $Z(e){return window.getComputedStyle(e)}class UZ extends Kk{constructor(){super(...arguments),this.type="html",this.renderInstance=Xk}readValueFromInstance(t,n){var r;if(Wd.has(n))return(r=this.projection)!=null&&r.isProjecting?bT(n):gQ(t,n);{const i=$Z(t),o=(tT(n)?i.getPropertyValue(n):i[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return ok(t,n)}build(t,n,r){IT(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return VT(t,n,r)}}const Zk=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function HZ(e,t,n,r){Xk(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Zk.has(i)?i:LT(i),t.attrs[i])}class zZ extends Kk{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Yr}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Wd.has(n)){const r=dO(n);return r&&r.default||0}return n=Zk.has(n)?n:LT(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return jO(t,n,r)}build(t,n,r){MO(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,i){HZ(t,n,r,i)}mount(t){this.isSVGTag=IO(t.tagName),super.mount(t)}}const qZ=(e,t)=>PT(e)?new zZ(t):new UZ(t,{allowProjection:e!==R.Fragment}),GZ=HK({...mX,...IZ,...wZ,...FZ},qZ),Jk=mK(GZ);function e8(e){const t=_0(()=>cf(e)),{isStatic:n}=R.useContext(kT);if(n){const[,r]=R.useState(e);R.useEffect(()=>t.on("change",r),[])}return t}function t8(e,t){const n=e8(t()),r=()=>n.set(t());return r(),fN(()=>{const i=()=>vr.preRender(r,!1,!0),o=e.map(a=>a.on("change",i));return()=>{o.forEach(a=>a()),Bu(r)}}),n}function WZ(e){F0.current=[],e();const t=t8(F0.current,e);return F0.current=void 0,t}function YZ(e,t,n,r){if(typeof e=="function")return WZ(e);const i=typeof t=="function"?t:aK(t,n,r);return Array.isArray(e)?n8(e,i):n8([e],([o])=>i(o))}function n8(e,t){const n=_0(()=>[]);return t8(e,()=>{n.length=0;const r=e.length;for(let i=0;i<r;i++)n[i]=e[i].get();return t(n)})}const r8=R.createContext(null);function QZ(e,t,n,r){if(!r)return e;const i=e.findIndex(p=>p.value===t);if(i===-1)return e;const o=r>0?1:-1,a=e[i+o];if(!a)return e;const l=e[i],f=a.layout,h=yr(f.min,f.max,.5);return o===1&&l.layout.max+n>h||o===-1&&l.layout.min+n<h?pY(e,i,i+o):e}function KZ({children:e,as:t="ul",axis:n="y",onReorder:r,values:i,...o},a){const l=_0(()=>Jk[t]),f=[],h=R.useRef(!1),p={axis:n,registerItem:(b,v)=>{const x=f.findIndex(S=>b===S.value);x!==-1?f[x].layout=v[n]:f.push({value:b,layout:v[n]}),f.sort(JZ)},updateOrder:(b,v,x)=>{if(h.current)return;const S=QZ(f,b,v,x);f!==S&&(h.current=!0,r(S.map(ZZ).filter(w=>i.indexOf(w)!==-1)))}};return R.useEffect(()=>{h.current=!1}),$.jsx(l,{...o,ref:a,ignoreStrict:!0,children:$.jsx(r8.Provider,{value:p,children:e})})}const XZ=R.forwardRef(KZ);function ZZ(e){return e.value}function JZ(e,t){return e.layout.min-t.layout.min}function i8(e,t=0){return Qi(e)?e:e8(t)}function eJ({children:e,style:t={},value:n,as:r="li",onDrag:i,layout:o=!0,...a},l){const f=_0(()=>Jk[r]),h=R.useContext(r8),p={x:i8(t.x),y:i8(t.y)},b=YZ([p.x,p.y],([w,k])=>w||k?1:"unset"),{axis:v,registerItem:x,updateOrder:S}=h;return $.jsx(f,{drag:v,...a,dragSnapToOrigin:!0,style:{...t,x:p.x,y:p.y,zIndex:b},layout:o,onDrag:(w,k)=>{const{velocity:_}=k;_[v]&&S(n,p[v].get(),_[v]),i&&i(w,k)},onLayoutMeasure:w=>x(n,w),ref:l,ignoreStrict:!0,children:e})}const tJ=R.forwardRef(eJ),o8=R.forwardRef((e,t)=>{const n=it.c(16);let r,i,o,a,l;n[0]!==e?({isActive:o,value:l,children:r,className:i,...a}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=o,n[4]=a,n[5]=l):(r=n[1],i=n[2],o=n[3],a=n[4],l=n[5]);const f=o&&"graphiql-tab-active";let h;n[6]!==i||n[7]!==f?(h=Zn("graphiql-tab",f,i),n[6]=i,n[7]=f,n[8]=h):h=n[8];let p;return n[9]!==r||n[10]!==o||n[11]!==a||n[12]!==t||n[13]!==h||n[14]!==l?(p=$.jsx(tJ,{...a,ref:t,value:l,"aria-selected":o,role:"tab",className:h,children:r}),n[9]=r,n[10]=o,n[11]=a,n[12]=t,n[13]=h,n[14]=l,n[15]=p):p=n[15],p});o8.displayName="Tab";const s8=R.forwardRef((e,t)=>{const n=it.c(11);let r,i,o;n[0]!==e?({children:r,className:i,...o}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=o):(r=n[1],i=n[2],o=n[3]);let a;n[4]!==i?(a=Zn("graphiql-tab-button",i),n[4]=i,n[5]=a):a=n[5];let l;return n[6]!==r||n[7]!==o||n[8]!==t||n[9]!==a?(l=$.jsx(xi,{...o,ref:t,type:"button",className:a,children:r}),n[6]=r,n[7]=o,n[8]=t,n[9]=a,n[10]=l):l=n[10],l});s8.displayName="Tab.Button";const a8=R.forwardRef((e,t)=>{const n=it.c(7);let r;n[0]!==e.className?(r=Zn("graphiql-tab-close",e.className),n[0]=e.className,n[1]=r):r=n[1];let i;n[2]===Symbol.for("react.memo_cache_sentinel")?(i=$.jsx(ZE,{}),n[2]=i):i=n[2];let o;return n[3]!==e||n[4]!==t||n[5]!==r?(o=$.jsx(xi,{"aria-label":"Close Tab",...e,ref:t,type:"button",className:r,children:i}),n[3]=e,n[4]=t,n[5]=r,n[6]=o):o=n[6],o});a8.displayName="Tab.Close";const nS=Object.assign(o8,{Button:s8,Close:a8}),u8=R.forwardRef((e,t)=>{const n=it.c(15);let r,i,o,a,l;n[0]!==e?({values:l,onReorder:o,children:r,className:i,...a}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=o,n[4]=a,n[5]=l):(r=n[1],i=n[2],o=n[3],a=n[4],l=n[5]);let f;n[6]!==i?(f=Zn("graphiql-tabs",i),n[6]=i,n[7]=f):f=n[7];let h;return n[8]!==r||n[9]!==o||n[10]!==a||n[11]!==t||n[12]!==f||n[13]!==l?(h=$.jsx(XZ,{...a,ref:t,values:l,onReorder:o,axis:"x",role:"tablist",className:f,children:r}),n[8]=r,n[9]=o,n[10]=a,n[11]=t,n[12]=f,n[13]=l,n[14]=h):h=n[14],h});u8.displayName="Tabs";var[V1,pce]=Jc("Tooltip",[v1]),B1=v1(),l8="TooltipProvider",nJ=700,rS="tooltip.open",[rJ,iS]=V1(l8),c8=e=>{const{__scopeTooltip:t,delayDuration:n=nJ,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:o}=e,a=R.useRef(!0),l=R.useRef(!1),f=R.useRef(0);return R.useEffect(()=>{const h=f.current;return()=>window.clearTimeout(h)},[]),$.jsx(rJ,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:R.useCallback(()=>{window.clearTimeout(f.current),a.current=!1},[]),onClose:R.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:R.useCallback(h=>{l.current=h},[]),disableHoverableContent:i,children:o})};c8.displayName=l8;var G0="Tooltip",[iJ,W0]=V1(G0),f8=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:o,disableHoverableContent:a,delayDuration:l}=e,f=iS(G0,e.__scopeTooltip),h=B1(t),[p,b]=R.useState(null),v=ef(),x=R.useRef(0),S=a??f.disableHoverableContent,w=l??f.delayDuration,k=R.useRef(!1),[_,N]=Kv({prop:r,defaultProp:i??!1,onChange:j=>{j?(f.onOpen(),document.dispatchEvent(new CustomEvent(rS))):f.onClose(),o==null||o(j)},caller:G0}),O=R.useMemo(()=>_?k.current?"delayed-open":"instant-open":"closed",[_]),A=R.useCallback(()=>{window.clearTimeout(x.current),x.current=0,k.current=!1,N(!0)},[N]),L=R.useCallback(()=>{window.clearTimeout(x.current),x.current=0,N(!1)},[N]),P=R.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>{k.current=!0,N(!0),x.current=0},w)},[w,N]);return R.useEffect(()=>()=>{x.current&&(window.clearTimeout(x.current),x.current=0)},[]),$.jsx(xD,{...h,children:$.jsx(iJ,{scope:t,contentId:v,open:_,stateAttribute:O,trigger:p,onTriggerChange:b,onTriggerEnter:R.useCallback(()=>{f.isOpenDelayedRef.current?P():A()},[f.isOpenDelayedRef,P,A]),onTriggerLeave:R.useCallback(()=>{S?L():(window.clearTimeout(x.current),x.current=0)},[L,S]),onOpen:A,onClose:L,disableHoverableContent:S,children:n})})};f8.displayName=G0;var oS="TooltipTrigger",d8=R.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=W0(oS,n),o=iS(oS,n),a=B1(n),l=R.useRef(null),f=ai(t,l,i.onTriggerChange),h=R.useRef(!1),p=R.useRef(!1),b=R.useCallback(()=>h.current=!1,[]);return R.useEffect(()=>()=>document.removeEventListener("pointerup",b),[b]),$.jsx(TD,{asChild:!0,...a,children:$.jsx(Fr.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:f,onPointerMove:zt(e.onPointerMove,v=>{v.pointerType!=="touch"&&!p.current&&!o.isPointerInTransitRef.current&&(i.onTriggerEnter(),p.current=!0)}),onPointerLeave:zt(e.onPointerLeave,()=>{i.onTriggerLeave(),p.current=!1}),onPointerDown:zt(e.onPointerDown,()=>{i.open&&i.onClose(),h.current=!0,document.addEventListener("pointerup",b,{once:!0})}),onFocus:zt(e.onFocus,()=>{h.current||i.onOpen()}),onBlur:zt(e.onBlur,i.onClose),onClick:zt(e.onClick,i.onClose)})})});d8.displayName=oS;var sS="TooltipPortal",[oJ,sJ]=V1(sS,{forceMount:void 0}),h8=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,o=W0(sS,t);return $.jsx(oJ,{scope:t,forceMount:n,children:$.jsx($a,{present:n||o.open,children:$.jsx(Zv,{asChild:!0,container:i,children:r})})})};h8.displayName=sS;var Jd="TooltipContent",p8=R.forwardRef((e,t)=>{const n=sJ(Jd,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=e,a=W0(Jd,e.__scopeTooltip);return $.jsx($a,{present:r||a.open,children:a.disableHoverableContent?$.jsx(m8,{side:i,...o,ref:t}):$.jsx(aJ,{side:i,...o,ref:t})})}),aJ=R.forwardRef((e,t)=>{const n=W0(Jd,e.__scopeTooltip),r=iS(Jd,e.__scopeTooltip),i=R.useRef(null),o=ai(t,i),[a,l]=R.useState(null),{trigger:f,onClose:h}=n,p=i.current,{onPointerInTransitChange:b}=r,v=R.useCallback(()=>{l(null),b(!1)},[b]),x=R.useCallback((S,w)=>{const k=S.currentTarget,_={x:S.clientX,y:S.clientY},N=dJ(_,k.getBoundingClientRect()),O=hJ(_,N),A=pJ(w.getBoundingClientRect()),L=gJ([...O,...A]);l(L),b(!0)},[b]);return R.useEffect(()=>()=>v(),[v]),R.useEffect(()=>{if(f&&p){const S=k=>x(k,p),w=k=>x(k,f);return f.addEventListener("pointerleave",S),p.addEventListener("pointerleave",w),()=>{f.removeEventListener("pointerleave",S),p.removeEventListener("pointerleave",w)}}},[f,p,x,v]),R.useEffect(()=>{if(a){const S=w=>{const k=w.target,_={x:w.clientX,y:w.clientY},N=(f==null?void 0:f.contains(k))||(p==null?void 0:p.contains(k)),O=!mJ(_,a);N?v():O&&(v(),h())};return document.addEventListener("pointermove",S),()=>document.removeEventListener("pointermove",S)}},[f,p,a,h,v]),$.jsx(m8,{...e,ref:o})}),[uJ,lJ]=V1(G0,{isInside:!1}),cJ=lz("TooltipContent"),m8=R.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:o,onPointerDownOutside:a,...l}=e,f=W0(Jd,n),h=B1(n),{onClose:p}=f;return R.useEffect(()=>(document.addEventListener(rS,p),()=>document.removeEventListener(rS,p)),[p]),R.useEffect(()=>{if(f.trigger){const b=v=>{const x=v.target;x!=null&&x.contains(f.trigger)&&p()};return window.addEventListener("scroll",b,{capture:!0}),()=>window.removeEventListener("scroll",b,{capture:!0})}},[f.trigger,p]),$.jsx(Xv,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:b=>b.preventDefault(),onDismiss:p,children:$.jsxs(SD,{"data-state":f.stateAttribute,...h,...l,ref:t,style:{...l.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:[$.jsx(cJ,{children:r}),$.jsx(uJ,{scope:n,isInside:!0,children:$.jsx(j5,{id:f.contentId,role:"tooltip",children:i||r})})]})})});p8.displayName=Jd;var g8="TooltipArrow",fJ=R.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=B1(n);return lJ(g8,n).isInside?null:$.jsx(wD,{...i,...r,ref:t})});fJ.displayName=g8;function dJ(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 hJ(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 pJ(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 mJ(e,t){const{x:n,y:r}=e;let i=!1;for(let o=0,a=t.length-1;o<t.length;a=o++){const l=t[o],f=t[a],h=l.x,p=l.y,b=f.x,v=f.y;p>r!=v>r&&n<(b-h)*(r-p)/(v-p)+h&&(i=!i)}return i}function gJ(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),vJ(t)}function vJ(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],a=t[t.length-2];if((o.x-a.x)*(i.y-a.y)>=(o.y-a.y)*(i.x-a.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],a=n[n.length-2];if((o.x-a.x)*(i.y-a.y)>=(o.y-a.y)*(i.x-a.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 yJ=c8,bJ=f8,EJ=d8,xJ=h8,TJ=p8;const $o=Object.assign(e=>{const t=it.c(10),{children:n,align:r,side:i,sideOffset:o,label:a}=e,l=r===void 0?"start":r,f=i===void 0?"bottom":i,h=o===void 0?5:o;let p;t[0]!==n?(p=$.jsx(EJ,{asChild:!0,children:n}),t[0]=n,t[1]=p):p=t[1];let b;t[2]!==l||t[3]!==a||t[4]!==f||t[5]!==h?(b=$.jsx(xJ,{children:$.jsx(TJ,{className:"graphiql-tooltip",align:l,side:f,sideOffset:h,children:a})}),t[2]=l,t[3]=a,t[4]=f,t[5]=h,t[6]=b):b=t[6];let v;return t[7]!==p||t[8]!==b?(v=$.jsxs(bJ,{children:[p,b]}),t[7]=p,t[8]=b,t[9]=v):v=t[9],v},{Provider:yJ}),$1=R.forwardRef((e,t)=>{const n=it.c(19);let r,i,o;n[0]!==e?({label:r,onClick:i,...o}=e,n[0]=e,n[1]=r,n[2]=i,n[3]=o):(r=n[1],i=n[2],o=n[3]);const[a,l]=R.useState(null);let f;n[4]!==i?(f=k=>{try{i&&i(k),l(null)}catch(_){const N=_;l(N instanceof Error?N:new Error(`Toolbar button click failed: ${N}`))}},n[4]=i,n[5]=f):f=n[5];const h=f,p=a&&"error";let b;n[6]!==o.className||n[7]!==p?(b=Zn("graphiql-toolbar-button",p,o.className),n[6]=o.className,n[7]=p,n[8]=b):b=n[8];const v=a?a.message:r,x=a?"true":o["aria-invalid"];let S;n[9]!==h||n[10]!==o||n[11]!==t||n[12]!==b||n[13]!==v||n[14]!==x?(S=$.jsx(xi,{...o,ref:t,type:"button",className:b,onClick:h,"aria-label":v,"aria-invalid":x}),n[9]=h,n[10]=o,n[11]=t,n[12]=b,n[13]=v,n[14]=x,n[15]=S):S=n[15];let w;return n[16]!==r||n[17]!==S?(w=$.jsx($o,{label:r,children:S}),n[16]=r,n[17]=S,n[18]=w):w=n[18],w});$1.displayName="ToolbarButton";const aS=()=>{const e=it.c(19);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={nonNull:!0,caller:aS},e[0]=t):t=e[0];const{queryEditor:n,setOperationName:r}=Ei(t);let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={nonNull:!0,caller:aS},e[1]=i):i=e[1];const{isFetching:o,isSubscribed:a,operationName:l,run:f,stop:h}=Zc(i);let p;e[2]!==(n==null?void 0:n.operations)?(p=(n==null?void 0:n.operations)||[],e[2]=n==null?void 0:n.operations,e[3]=p):p=e[3];const b=p,v=b.length>1&&typeof l!="string",x=o||a,S=`${x?"Stop":"Execute"} query (Ctrl-Enter)`;let w;e[4]!==x?(w=x?$.jsx(YH,{}):$.jsx(BH,{}),e[4]=x,e[5]=w):w=e[5];let k;e[6]!==S||e[7]!==w?(k={type:"button",className:"graphiql-execute-button",children:w,"aria-label":S},e[6]=S,e[7]=w,e[8]=k):k=e[8];const _=k;let N;return e[9]!==_||e[10]!==v||e[11]!==x||e[12]!==S||e[13]!==b||e[14]!==n||e[15]!==f||e[16]!==r||e[17]!==h?(N=v&&!x?$.jsxs(S1,{children:[$.jsx($o,{label:S,children:$.jsx(S1.Button,{..._})}),$.jsx(S1.Content,{children:b.map((O,A)=>{const L=O.name?O.name.value:`<Unnamed ${O.operation}>`;return $.jsx(S1.Item,{onSelect:()=>{var P;const j=(P=O.name)==null?void 0:P.value;n&&j&&j!==n.operationName&&r(j),f()},children:L},`${L}-${A}`)})})]}):$.jsx($o,{label:S,children:$.jsx("button",{..._,onClick:()=>{x?h():f()}})}),e[9]=_,e[10]=v,e[11]=x,e[12]=S,e[13]=b,e[14]=n,e[15]=f,e[16]=r,e[17]=h,e[18]=N):N=e[18],N};var eh={},Y0={};const SJ=nI(ej);var v8;function wJ(){if(v8)return Y0;v8=1,Object.defineProperty(Y0,"__esModule",{value:!0});var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(we){return typeof we}:function(we){return we&&typeof Symbol=="function"&&we.constructor===Symbol&&we!==Symbol.prototype?"symbol":typeof we},t=function(){function we(pe,qe){var ye=[],re=!0,_e=!1,ze=void 0;try{for(var Le=pe[Symbol.iterator](),Pe;!(re=(Pe=Le.next()).done)&&(ye.push(Pe.value),!(qe&&ye.length===qe));re=!0);}catch(Te){_e=!0,ze=Te}finally{try{!re&&Le.return&&Le.return()}finally{if(_e)throw ze}}return ye}return function(pe,qe){if(Array.isArray(pe))return pe;if(Symbol.iterator in Object(pe))return we(pe,qe);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),n=Object.assign||function(we){for(var pe=1;pe<arguments.length;pe++){var qe=arguments[pe];for(var ye in qe)Object.prototype.hasOwnProperty.call(qe,ye)&&(we[ye]=qe[ye])}return we},r=function(){function we(pe,qe){for(var ye=0;ye<qe.length;ye++){var re=qe[ye];re.enumerable=re.enumerable||!1,re.configurable=!0,"value"in re&&(re.writable=!0),Object.defineProperty(pe,re.key,re)}}return function(pe,qe,ye){return qe&&we(pe.prototype,qe),ye&&we(pe,ye),pe}}();Y0.defaultValue=q;var i=md(),o=l(i),a=SJ;function l(we){if(we&&we.__esModule)return we;var pe={};if(we!=null)for(var qe in we)Object.prototype.hasOwnProperty.call(we,qe)&&(pe[qe]=we[qe]);return pe.default=we,pe}function f(we,pe,qe){return pe in we?Object.defineProperty(we,pe,{value:qe,enumerable:!0,configurable:!0,writable:!0}):we[pe]=qe,we}function h(we){if(Array.isArray(we)){for(var pe=0,qe=Array(we.length);pe<we.length;pe++)qe[pe]=we[pe];return qe}else return Array.from(we)}function p(we,pe){if(!(we instanceof pe))throw new TypeError("Cannot call a class as a function")}function b(we,pe){if(!we)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return pe&&(typeof pe=="object"||typeof pe=="function")?pe:we}function v(we,pe){if(typeof pe!="function"&&pe!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof pe);we.prototype=Object.create(pe&&pe.prototype,{constructor:{value:we,enumerable:!1,writable:!0,configurable:!0}}),pe&&(Object.setPrototypeOf?Object.setPrototypeOf(we,pe):we.__proto__=pe)}function x(we){return we.charAt(0).toUpperCase()+we.slice(1)}var S={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"})),_=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"})),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 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(we){return we.checked?we.styleConfig.checkboxChecked:we.styleConfig.checkboxUnchecked}function A(we){var pe=we.getFields();if(pe.id){var qe=["id"];return pe.email?qe.push("email"):pe.name&&qe.push("name"),qe}if(pe.edges)return["edges"];if(pe.node)return["node"];if(pe.nodes)return["nodes"];var ye=[];return Object.keys(pe).forEach(function(re){(0,a.isLeafType)(pe[re].type)&&ye.push(re)}),ye.length?ye.slice(0,2):["__typename"]}function L(we){return(0,a.isNonNullType)(we.type)&&we.defaultValue===void 0}function P(we){for(var pe=we;(0,a.isWrappingType)(pe);)pe=pe.ofType;return pe}function j(we){for(var pe=we;(0,a.isWrappingType)(pe);)pe=pe.ofType;return pe}function F(we,pe){if(typeof pe!="string"&&pe.kind==="VariableDefinition")return pe.variable;if((0,a.isScalarType)(we))try{switch(we.name){case"String":return{kind:"StringValue",value:String(we.parseValue(pe))};case"Float":return{kind:"FloatValue",value:String(we.parseValue(parseFloat(pe)))};case"Int":return{kind:"IntValue",value:String(we.parseValue(parseInt(pe,10)))};case"Boolean":try{var qe=JSON.parse(pe);return typeof qe=="boolean"?{kind:"BooleanValue",value:qe}:{kind:"BooleanValue",value:!1}}catch{return{kind:"BooleanValue",value:!1}}default:return{kind:"StringValue",value:String(we.parseValue(pe))}}}catch(re){return console.error("error coercing arg value",re,pe),{kind:"StringValue",value:pe}}else try{var ye=we.parseValue(pe);return ye?{kind:"EnumValue",value:String(ye)}:{kind:"EnumValue",value:we.getValues()[0].name}}catch{return{kind:"EnumValue",value:we.getValues()[0].name}}}var B=function(we){v(pe,we);function pe(){var qe,ye,re,_e;p(this,pe);for(var ze=arguments.length,Le=Array(ze),Pe=0;Pe<ze;Pe++)Le[Pe]=arguments[Pe];return _e=(ye=(re=b(this,(qe=pe.__proto__||Object.getPrototypeOf(pe)).call.apply(qe,[this].concat(Le))),re),re._getArgSelection=function(){return re.props.selection.fields.find(function(Te){return Te.name.value===re.props.arg.name})},re._removeArg=function(){var Te=re.props.selection,Ie=re._getArgSelection();re._previousArgSelection=Ie,re.props.modifyFields(Te.fields.filter(function(Qe){return Qe!==Ie}),!0)},re._addArg=function(){var Te=re.props,Ie=Te.selection,Qe=Te.arg,ut=Te.getDefaultScalarArgValue,At=Te.parentField,kt=Te.makeDefaultArg,ct=j(Qe.type),mt=null;if(re._previousArgSelection)mt=re._previousArgSelection;else if((0,a.isInputObjectType)(ct)){var ft=ct.getFields();mt={kind:"ObjectField",name:{kind:"Name",value:Qe.name},value:{kind:"ObjectValue",fields:oe(ut,kt,At,Object.keys(ft).map(function(Bt){return ft[Bt]}))}}}else(0,a.isLeafType)(ct)&&(mt={kind:"ObjectField",name:{kind:"Name",value:Qe.name},value:ut(At,Qe,ct)});if(!mt)console.error("Unable to add arg for argType",ct);else return re.props.modifyFields([].concat(h(Ie.fields||[]),[mt]),!0)},re._setArgValue=function(Te,Ie){var Qe=!1,ut=!1,At=!1;try{Te.kind==="VariableDefinition"?ut=!0:Te===null||typeof Te>"u"?Qe=!0:typeof Te.kind=="string"&&(At=!0)}catch{}var kt=re.props.selection,ct=re._getArgSelection();if(!ct){console.error("missing arg selection when setting arg value");return}var mt=j(re.props.arg.type),ft=(0,a.isLeafType)(mt)||ut||Qe||At;if(!ft){console.warn("Unable to handle non leaf types in InputArgView.setArgValue",Te);return}var Bt=void 0,$t=void 0;Te===null||typeof Te>"u"?$t=null:!Te.target&&Te.kind&&Te.kind==="VariableDefinition"?(Bt=Te,$t=Bt.variable):typeof Te.kind=="string"?$t=Te:Te.target&&typeof Te.target.value=="string"&&(Bt=Te.target.value,$t=F(mt,Bt));var Gt=re.props.modifyFields((kt.fields||[]).map(function(fn){var _n=fn===ct,Bn=_n?n({},fn,{value:$t}):fn;return Bn}),Ie);return Gt},re._modifyChildFields=function(Te){return re.props.modifyFields(re.props.selection.fields.map(function(Ie){return Ie.name.value===re.props.arg.name?n({},Ie,{value:{kind:"ObjectValue",fields:Te}}):Ie}),!0)},ye),b(re,_e)}return r(pe,[{key:"render",value:function(){var ye=this.props,re=ye.arg,_e=ye.parentField,ze=this._getArgSelection();return o.createElement(J,{argValue:ze?ze.value:null,arg:re,parentField:_e,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})}}]),pe}(o.PureComponent);function q(we){if((0,a.isEnumType)(we))return{kind:"EnumValue",value:we.getValues()[0].name};switch(we.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 W(we,pe,qe){return q(qe)}var Z=function(we){v(pe,we);function pe(){var qe,ye,re,_e;p(this,pe);for(var ze=arguments.length,Le=Array(ze),Pe=0;Pe<ze;Pe++)Le[Pe]=arguments[Pe];return _e=(ye=(re=b(this,(qe=pe.__proto__||Object.getPrototypeOf(pe)).call.apply(qe,[this].concat(Le))),re),re._getArgSelection=function(){var Te=re.props.selection;return(Te.arguments||[]).find(function(Ie){return Ie.name.value===re.props.arg.name})},re._removeArg=function(Te){var Ie=re.props.selection,Qe=re._getArgSelection();return re._previousArgSelection=Qe,re.props.modifyArguments((Ie.arguments||[]).filter(function(ut){return ut!==Qe}),Te)},re._addArg=function(Te){var Ie=re.props,Qe=Ie.selection,ut=Ie.getDefaultScalarArgValue,At=Ie.makeDefaultArg,kt=Ie.parentField,ct=Ie.arg,mt=j(ct.type),ft=null;if(re._previousArgSelection)ft=re._previousArgSelection;else if((0,a.isInputObjectType)(mt)){var Bt=mt.getFields();ft={kind:"Argument",name:{kind:"Name",value:ct.name},value:{kind:"ObjectValue",fields:oe(ut,At,kt,Object.keys(Bt).map(function($t){return Bt[$t]}))}}}else(0,a.isLeafType)(mt)&&(ft={kind:"Argument",name:{kind:"Name",value:ct.name},value:ut(kt,ct,mt)});return ft?re.props.modifyArguments([].concat(h(Qe.arguments||[]),[ft]),Te):(console.error("Unable to add arg for argType",mt),null)},re._setArgValue=function(Te,Ie){var Qe=!1,ut=!1,At=!1;try{Te.kind==="VariableDefinition"?ut=!0:Te===null||typeof Te>"u"?Qe=!0:typeof Te.kind=="string"&&(At=!0)}catch{}var kt=re.props.selection,ct=re._getArgSelection();if(!ct&&!ut){console.error("missing arg selection when setting arg value");return}var mt=j(re.props.arg.type),ft=(0,a.isLeafType)(mt)||ut||Qe||At;if(!ft){console.warn("Unable to handle non leaf types in ArgView._setArgValue");return}var Bt=void 0,$t=void 0;return Te===null||typeof Te>"u"?$t=null:Te.target&&typeof Te.target.value=="string"?(Bt=Te.target.value,$t=F(mt,Bt)):!Te.target&&Te.kind==="VariableDefinition"?(Bt=Te,$t=Bt.variable):typeof Te.kind=="string"&&($t=Te),re.props.modifyArguments((kt.arguments||[]).map(function(Gt){return Gt===ct?n({},Gt,{value:$t}):Gt}),Ie)},re._setArgFields=function(Te,Ie){var Qe=re.props.selection,ut=re._getArgSelection();if(!ut){console.error("missing arg selection when setting arg value");return}return re.props.modifyArguments((Qe.arguments||[]).map(function(At){return At===ut?n({},At,{value:{kind:"ObjectValue",fields:Te}}):At}),Ie)},ye),b(re,_e)}return r(pe,[{key:"render",value:function(){var ye=this.props,re=ye.arg,_e=ye.parentField,ze=this._getArgSelection();return o.createElement(J,{argValue:ze?ze.value:null,arg:re,parentField:_e,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})}}]),pe}(o.PureComponent);function X(we){return we.ctrlKey&&we.key==="Enter"}function ee(we){return we!=="FragmentDefinition"}var H=function(we){v(pe,we);function pe(){var qe,ye,re,_e;p(this,pe);for(var ze=arguments.length,Le=Array(ze),Pe=0;Pe<ze;Pe++)Le[Pe]=arguments[Pe];return _e=(ye=(re=b(this,(qe=pe.__proto__||Object.getPrototypeOf(pe)).call.apply(qe,[this].concat(Le))),re),re._handleChange=function(Te){re.props.setArgValue(Te,!0)},ye),b(re,_e)}return r(pe,[{key:"componentDidMount",value:function(){var ye=this._ref,re=document.activeElement;ye&&re&&!(re instanceof HTMLTextAreaElement)&&(ye.focus(),ye.setSelectionRange(0,ye.value.length))}},{key:"render",value:function(){var ye=this,re=this.props,_e=re.arg,ze=re.argValue,Le=re.styleConfig,Pe=j(_e.type),Te=typeof ze.value=="string"?ze.value:"",Ie=this.props.argValue.kind==="StringValue"?Le.colors.string:Le.colors.number;return o.createElement("span",{style:{color:Ie}},Pe.name==="String"?'"':"",o.createElement("input",{style:{border:"none",borderBottom:"1px solid #888",outline:"none",width:Math.max(1,Math.min(15,Te.length))+"ch",color:Ie},ref:function(ut){ye._ref=ut},type:"text",onChange:this._handleChange,value:Te}),Pe.name==="String"?'"':"")}}]),pe}(o.PureComponent),J=function(we){v(pe,we);function pe(){var qe,ye,re,_e;p(this,pe);for(var ze=arguments.length,Le=Array(ze),Pe=0;Pe<ze;Pe++)Le[Pe]=arguments[Pe];return _e=(ye=(re=b(this,(qe=pe.__proto__||Object.getPrototypeOf(pe)).call.apply(qe,[this].concat(Le))),re),re.state={displayArgActions:!1},ye),b(re,_e)}return r(pe,[{key:"render",value:function(){var ye=this,re=this.props,_e=re.argValue,ze=re.arg,Le=re.styleConfig,Pe=j(ze.type),Te=null;if(_e){if(_e.kind==="Variable")Te=o.createElement("span",{style:{color:Le.colors.variable}},"$",_e.name.value);else if((0,a.isScalarType)(Pe))Pe.name==="Boolean"?Te=o.createElement("select",{style:{color:Le.colors.builtin},onChange:this.props.setArgValue,value:_e.kind==="BooleanValue"?_e.value:void 0},o.createElement("option",{key:"true",value:"true"},"true"),o.createElement("option",{key:"false",value:"false"},"false")):Te=o.createElement(H,{setArgValue:this.props.setArgValue,arg:ze,argValue:_e,onRunOperation:this.props.onRunOperation,styleConfig:this.props.styleConfig});else if((0,a.isEnumType)(Pe))_e.kind==="EnumValue"?Te=o.createElement("select",{style:{backgroundColor:"white",color:Le.colors.string2},onChange:this.props.setArgValue,value:_e.value},Pe.getValues().map(function(ct){return o.createElement("option",{key:ct.name,value:ct.name},ct.name)})):console.error("arg mismatch between arg and selection",Pe,_e);else if((0,a.isInputObjectType)(Pe))if(_e.kind==="ObjectValue"){var Ie=Pe.getFields();Te=o.createElement("div",{style:{marginLeft:16}},Object.keys(Ie).sort().map(function(ct){return o.createElement(B,{key:ct,arg:Ie[ct],parentField:ye.props.parentField,selection:_e,modifyFields:ye.props.setArgFields,getDefaultScalarArgValue:ye.props.getDefaultScalarArgValue,makeDefaultArg:ye.props.makeDefaultArg,onRunOperation:ye.props.onRunOperation,styleConfig:ye.props.styleConfig,onCommit:ye.props.onCommit,definition:ye.props.definition})}))}else console.error("arg mismatch between arg and selection",Pe,_e)}var Qe=function(){var mt=ze.name,ft=(ye.props.definition.variableDefinitions||[]).filter(function(Dt){return Dt.variable.name.value.startsWith(mt)}).length,Bt=void 0;ft>0?Bt=""+mt+ft:Bt=mt;var $t=ze.type.toString(),Gt=(0,a.parseType)($t),fn={kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:Bt}},type:Gt,directives:[]},_n=function(Jt){return(ye.props.definition.variableDefinitions||[]).find(function(It){return It.variable.name.value===Jt})},Bn=void 0,Et={};if(typeof _e<"u"&&_e!==null){var Vr=(0,a.visit)(_e,{Variable:function(Jt){var It=Jt.name.value,en=_n(It);if(Et[It]=Et[It]+1||1,!!en)return en.defaultValue}}),lt=fn.type.kind==="NonNullType",Sn=lt?n({},fn,{type:fn.type.type}):fn;Bn=n({},Sn,{defaultValue:Vr})}else Bn=fn;var An=Object.entries(Et).filter(function(Dt){var Jt=t(Dt,2);Jt[0];var It=Jt[1];return It<2}).map(function(Dt){var Jt=t(Dt,2),It=Jt[0];return Jt[1],It});if(Bn){var Yt=ye.props.setArgValue(Bn,!1);if(Yt){var bn=Yt.definitions.find(function(Dt){return Dt.operation&&Dt.name&&Dt.name.value&&ye.props.definition.name&&ye.props.definition.name.value?Dt.name.value===ye.props.definition.name.value:!1}),xt=[].concat(h(bn.variableDefinitions||[]),[Bn]).filter(function(Dt){return An.indexOf(Dt.variable.name.value)===-1}),St=n({},bn,{variableDefinitions:xt}),Qt=Yt.definitions,Lt=Qt.map(function(Dt){return bn===Dt?St:Dt}),Rn=n({},Yt,{definitions:Lt});ye.props.onCommit(Rn)}}},ut=function(){if(!(!_e||!_e.name||!_e.name.value)){var mt=_e.name.value,ft=(ye.props.definition.variableDefinitions||[]).find(function(Sn){return Sn.variable.name.value===mt});if(ft){var Bt=ft.defaultValue,$t=ye.props.setArgValue(Bt,{commit:!1});if($t){var Gt=$t.definitions.find(function(Sn){return Sn.name.value===ye.props.definition.name.value});if(!Gt)return;var fn=0;(0,a.visit)(Gt,{Variable:function(An){An.name.value===mt&&(fn=fn+1)}});var _n=Gt.variableDefinitions||[];fn<2&&(_n=_n.filter(function(Sn){return Sn.variable.name.value!==mt}));var Bn=n({},Gt,{variableDefinitions:_n}),Et=$t.definitions,Vr=Et.map(function(Sn){return Gt===Sn?Bn:Sn}),lt=n({},$t,{definitions:Vr});ye.props.onCommit(lt)}}}},At=_e&&_e.kind==="Variable",kt=this.state.displayArgActions?o.createElement("button",{type:"submit",className:"toolbar-button",title:At?"Remove the variable":"Extract the current value into a GraphQL variable",onClick:function(mt){mt.preventDefault(),mt.stopPropagation(),At?ut():Qe()},style:Le.styles.actionButtonStyle},o.createElement("span",{style:{color:Le.colors.variable}},"$")):null;return o.createElement("div",{style:{cursor:"pointer",minHeight:"16px",WebkitUserSelect:"none",userSelect:"none"},"data-arg-name":ze.name,"data-arg-type":Pe.name,className:"graphiql-explorer-"+ze.name},o.createElement("span",{style:{cursor:"pointer"},onClick:function(mt){var ft=!_e;ft?ye.props.addArg(!0):ye.props.removeArg(!0),ye.setState({displayArgActions:ft})}},(0,a.isInputObjectType)(Pe)?o.createElement("span",null,_e?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):o.createElement(O,{checked:!!_e,styleConfig:this.props.styleConfig}),o.createElement("span",{style:{color:Le.colors.attribute},title:ze.description,onMouseEnter:function(){_e!==null&&typeof _e<"u"&&ye.setState({displayArgActions:!0})},onMouseLeave:function(){return ye.setState({displayArgActions:!1})}},ze.name,L(ze)?"*":"",": ",kt," ")," "),Te||o.createElement("span",null)," ")}}]),pe}(o.PureComponent),ue=function(we){v(pe,we);function pe(){var qe,ye,re,_e;p(this,pe);for(var ze=arguments.length,Le=Array(ze),Pe=0;Pe<ze;Pe++)Le[Pe]=arguments[Pe];return _e=(ye=(re=b(this,(qe=pe.__proto__||Object.getPrototypeOf(pe)).call.apply(qe,[this].concat(Le))),re),re._addFragment=function(){re.props.modifySelections([].concat(h(re.props.selections),[re._previousSelection||{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:re.props.implementingType.name}},selectionSet:{kind:"SelectionSet",selections:re.props.getDefaultFieldNames(re.props.implementingType).map(function(Te){return{kind:"Field",name:{kind:"Name",value:Te}}})}}]))},re._removeFragment=function(){var Te=re._getSelection();re._previousSelection=Te,re.props.modifySelections(re.props.selections.filter(function(Ie){return Ie!==Te}))},re._getSelection=function(){var Te=re.props.selections.find(function(Ie){return Ie.kind==="InlineFragment"&&Ie.typeCondition&&re.props.implementingType.name===Ie.typeCondition.name.value});if(!Te)return null;if(Te.kind==="InlineFragment")return Te},re._modifyChildSelections=function(Te,Ie){var Qe=re._getSelection();return re.props.modifySelections(re.props.selections.map(function(ut){return ut===Qe?{directives:ut.directives,kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:re.props.implementingType.name}},selectionSet:{kind:"SelectionSet",selections:Te}}:ut}),Ie)},ye),b(re,_e)}return r(pe,[{key:"render",value:function(){var ye=this,re=this.props,_e=re.implementingType,ze=re.schema,Le=re.getDefaultFieldNames,Pe=re.styleConfig,Te=this._getSelection(),Ie=_e.getFields(),Qe=Te?Te.selectionSet?Te.selectionSet.selections:[]:[];return o.createElement("div",{className:"graphiql-explorer-"+_e.name},o.createElement("span",{style:{cursor:"pointer"},onClick:Te?this._removeFragment:this._addFragment},o.createElement(O,{checked:!!Te,styleConfig:this.props.styleConfig}),o.createElement("span",{style:{color:Pe.colors.atom}},this.props.implementingType.name)),Te?o.createElement("div",{style:{marginLeft:16}},Object.keys(Ie).sort().map(function(ut){return o.createElement(he,{key:ut,field:Ie[ut],selections:Qe,modifySelections:ye._modifyChildSelections,schema:ze,getDefaultFieldNames:Le,getDefaultScalarArgValue:ye.props.getDefaultScalarArgValue,makeDefaultArg:ye.props.makeDefaultArg,onRunOperation:ye.props.onRunOperation,onCommit:ye.props.onCommit,styleConfig:ye.props.styleConfig,definition:ye.props.definition,availableFragments:ye.props.availableFragments})})):null)}}]),pe}(o.PureComponent),ne=function(we){v(pe,we);function pe(){var qe,ye,re,_e;p(this,pe);for(var ze=arguments.length,Le=Array(ze),Pe=0;Pe<ze;Pe++)Le[Pe]=arguments[Pe];return _e=(ye=(re=b(this,(qe=pe.__proto__||Object.getPrototypeOf(pe)).call.apply(qe,[this].concat(Le))),re),re._addFragment=function(){re.props.modifySelections([].concat(h(re.props.selections),[re._previousSelection||{kind:"FragmentSpread",name:re.props.fragment.name}]))},re._removeFragment=function(){var Te=re._getSelection();re._previousSelection=Te,re.props.modifySelections(re.props.selections.filter(function(Ie){var Qe=Ie.kind==="FragmentSpread"&&Ie.name.value===re.props.fragment.name.value;return!Qe}))},re._getSelection=function(){var Te=re.props.selections.find(function(Ie){return Ie.kind==="FragmentSpread"&&Ie.name.value===re.props.fragment.name.value});return Te},ye),b(re,_e)}return r(pe,[{key:"render",value:function(){var ye=this.props.styleConfig,re=this._getSelection();return o.createElement("div",{className:"graphiql-explorer-"+this.props.fragment.name.value},o.createElement("span",{style:{cursor:"pointer"},onClick:re?this._removeFragment:this._addFragment},o.createElement(O,{checked:!!re,styleConfig:this.props.styleConfig}),o.createElement("span",{style:{color:ye.colors.def},className:"graphiql-explorer-"+this.props.fragment.name.value},this.props.fragment.name.value)))}}]),pe}(o.PureComponent);function oe(we,pe,qe,ye){var re=[],_e=!0,ze=!1,Le=void 0;try{for(var Pe=ye[Symbol.iterator](),Te;!(_e=(Te=Pe.next()).done);_e=!0){var Ie=Te.value;if((0,a.isRequiredInputField)(Ie)||pe&&pe(qe,Ie)){var Qe=j(Ie.type);(0,a.isInputObjectType)(Qe)?function(){var ut=Qe.getFields();re.push({kind:"ObjectField",name:{kind:"Name",value:Ie.name},value:{kind:"ObjectValue",fields:oe(we,pe,qe,Object.keys(ut).map(function(At){return ut[At]}))}})}():(0,a.isLeafType)(Qe)&&re.push({kind:"ObjectField",name:{kind:"Name",value:Ie.name},value:we(qe,Ie,Qe)})}}}catch(ut){ze=!0,Le=ut}finally{try{!_e&&Pe.return&&Pe.return()}finally{if(ze)throw Le}}return re}function K(we,pe,qe){var ye=[],re=!0,_e=!1,ze=void 0;try{for(var Le=qe.args[Symbol.iterator](),Pe;!(re=(Pe=Le.next()).done);re=!0){var Te=Pe.value;if(L(Te)||pe&&pe(qe,Te)){var Ie=j(Te.type);(0,a.isInputObjectType)(Ie)?function(){var Qe=Ie.getFields();ye.push({kind:"Argument",name:{kind:"Name",value:Te.name},value:{kind:"ObjectValue",fields:oe(we,pe,qe,Object.keys(Qe).map(function(ut){return Qe[ut]}))}})}():(0,a.isLeafType)(Ie)&&ye.push({kind:"Argument",name:{kind:"Name",value:Te.name},value:we(qe,Te,Ie)})}}}catch(Qe){_e=!0,ze=Qe}finally{try{!re&&Le.return&&Le.return()}finally{if(_e)throw ze}}return ye}var he=function(we){v(pe,we);function pe(){var qe,ye,re,_e;p(this,pe);for(var ze=arguments.length,Le=Array(ze),Pe=0;Pe<ze;Pe++)Le[Pe]=arguments[Pe];return _e=(ye=(re=b(this,(qe=pe.__proto__||Object.getPrototypeOf(pe)).call.apply(qe,[this].concat(Le))),re),re.state={displayFieldActions:!1},re._addAllFieldsToSelections=function(Te){var Ie=Te?Object.keys(Te).map(function(At){return{kind:"Field",name:{kind:"Name",value:At},arguments:[]}}):[],Qe={kind:"SelectionSet",selections:Ie},ut=[].concat(h(re.props.selections.filter(function(At){return At.kind==="InlineFragment"?!0:At.name.value!==re.props.field.name})),[{kind:"Field",name:{kind:"Name",value:re.props.field.name},arguments:K(re.props.getDefaultScalarArgValue,re.props.makeDefaultArg,re.props.field),selectionSet:Qe}]);re.props.modifySelections(ut)},re._addFieldToSelections=function(Te){var Ie=[].concat(h(re.props.selections),[re._previousSelection||{kind:"Field",name:{kind:"Name",value:re.props.field.name},arguments:K(re.props.getDefaultScalarArgValue,re.props.makeDefaultArg,re.props.field)}]);re.props.modifySelections(Ie)},re._handleUpdateSelections=function(Te){var Ie=re._getSelection();if(Ie&&!Te.altKey)re._removeFieldFromSelections();else{var Qe=(0,a.getNamedType)(re.props.field.type),ut=(0,a.isObjectType)(Qe)&&Qe.getFields(),At=!!ut&&Te.altKey;At?re._addAllFieldsToSelections(ut):re._addFieldToSelections(ut)}},re._removeFieldFromSelections=function(){var Te=re._getSelection();re._previousSelection=Te,re.props.modifySelections(re.props.selections.filter(function(Ie){return Ie!==Te}))},re._getSelection=function(){var Te=re.props.selections.find(function(Ie){return Ie.kind==="Field"&&re.props.field.name===Ie.name.value});if(!Te)return null;if(Te.kind==="Field")return Te},re._setArguments=function(Te,Ie){var Qe=re._getSelection();if(!Qe){console.error("Missing selection when setting arguments",Te);return}return re.props.modifySelections(re.props.selections.map(function(ut){return ut===Qe?{alias:Qe.alias,arguments:Te,directives:Qe.directives,kind:"Field",name:Qe.name,selectionSet:Qe.selectionSet}:ut}),Ie)},re._modifyChildSelections=function(Te,Ie){return re.props.modifySelections(re.props.selections.map(function(Qe){if(Qe.kind==="Field"&&re.props.field.name===Qe.name.value){if(Qe.kind!=="Field")throw new Error("invalid selection");return{alias:Qe.alias,arguments:Qe.arguments,directives:Qe.directives,kind:"Field",name:Qe.name,selectionSet:{kind:"SelectionSet",selections:Te}}}return Qe}),Ie)},ye),b(re,_e)}return r(pe,[{key:"render",value:function(){var ye=this,re=this.props,_e=re.field,ze=re.schema,Le=re.getDefaultFieldNames,Pe=re.styleConfig,Te=this._getSelection(),Ie=P(_e.type),Qe=_e.args.sort(function(ft,Bt){return ft.name.localeCompare(Bt.name)}),ut="graphiql-explorer-node graphiql-explorer-"+_e.name;_e.isDeprecated&&(ut+=" graphiql-explorer-deprecated");var At=(0,a.isObjectType)(Ie)||(0,a.isInterfaceType)(Ie)||(0,a.isUnionType)(Ie)?this.props.availableFragments&&this.props.availableFragments[Ie.name]:null,kt=o.createElement("div",{className:ut},o.createElement("span",{title:_e.description,style:{cursor:"pointer",display:"inline-flex",alignItems:"center",minHeight:"16px",WebkitUserSelect:"none",userSelect:"none"},"data-field-name":_e.name,"data-field-type":Ie.name,onClick:this._handleUpdateSelections,onMouseEnter:function(){var Bt=(0,a.isObjectType)(Ie)&&Te&&Te.selectionSet&&Te.selectionSet.selections.filter(function($t){return $t.kind!=="FragmentSpread"}).length>0;Bt&&ye.setState({displayFieldActions:!0})},onMouseLeave:function(){return ye.setState({displayFieldActions:!1})}},(0,a.isObjectType)(Ie)?o.createElement("span",null,Te?this.props.styleConfig.arrowOpen:this.props.styleConfig.arrowClosed):null,(0,a.isObjectType)(Ie)?null:o.createElement(O,{checked:!!Te,styleConfig:this.props.styleConfig}),o.createElement("span",{style:{color:Pe.colors.property},className:"graphiql-explorer-field-view"},_e.name),this.state.displayFieldActions?o.createElement("button",{type:"submit",className:"toolbar-button",title:"Extract selections into a new reusable fragment",onClick:function(Bt){Bt.preventDefault(),Bt.stopPropagation();var $t=Ie.name,Gt=$t+"Fragment",fn=(At||[]).filter(function(Sn){return Sn.name.value.startsWith(Gt)}).length;fn>0&&(Gt=""+Gt+fn);var _n=Te?Te.selectionSet?Te.selectionSet.selections:[]:[],Bn=[{kind:"FragmentSpread",name:{kind:"Name",value:Gt},directives:[]}],Et={kind:"FragmentDefinition",name:{kind:"Name",value:Gt},typeCondition:{kind:"NamedType",name:{kind:"Name",value:Ie.name}},directives:[],selectionSet:{kind:"SelectionSet",selections:_n}},Vr=ye._modifyChildSelections(Bn,!1);if(Vr){var lt=n({},Vr,{definitions:[].concat(h(Vr.definitions),[Et])});ye.props.onCommit(lt)}else console.warn("Unable to complete extractFragment operation")},style:n({},Pe.styles.actionButtonStyle)},o.createElement("span",null,"…")):null),Te&&Qe.length?o.createElement("div",{style:{marginLeft:16},className:"graphiql-explorer-graphql-arguments"},Qe.map(function(ft){return o.createElement(Z,{key:ft.name,parentField:_e,arg:ft,selection:Te,modifyArguments:ye._setArguments,getDefaultScalarArgValue:ye.props.getDefaultScalarArgValue,makeDefaultArg:ye.props.makeDefaultArg,onRunOperation:ye.props.onRunOperation,styleConfig:ye.props.styleConfig,onCommit:ye.props.onCommit,definition:ye.props.definition})})):null);if(Te&&((0,a.isObjectType)(Ie)||(0,a.isInterfaceType)(Ie)||(0,a.isUnionType)(Ie))){var ct=(0,a.isUnionType)(Ie)?{}:Ie.getFields(),mt=Te?Te.selectionSet?Te.selectionSet.selections:[]:[];return o.createElement("div",{className:"graphiql-explorer-"+_e.name},kt,o.createElement("div",{style:{marginLeft:16}},At?At.map(function(ft){var Bt=ze.getType(ft.typeCondition.name.value),$t=ft.name.value;return Bt?o.createElement(ne,{key:$t,fragment:ft,selections:mt,modifySelections:ye._modifyChildSelections,schema:ze,styleConfig:ye.props.styleConfig,onCommit:ye.props.onCommit}):null}):null,Object.keys(ct).sort().map(function(ft){return o.createElement(pe,{key:ft,field:ct[ft],selections:mt,modifySelections:ye._modifyChildSelections,schema:ze,getDefaultFieldNames:Le,getDefaultScalarArgValue:ye.props.getDefaultScalarArgValue,makeDefaultArg:ye.props.makeDefaultArg,onRunOperation:ye.props.onRunOperation,styleConfig:ye.props.styleConfig,onCommit:ye.props.onCommit,definition:ye.props.definition,availableFragments:ye.props.availableFragments})}),(0,a.isInterfaceType)(Ie)||(0,a.isUnionType)(Ie)?ze.getPossibleTypes(Ie).map(function(ft){return o.createElement(ue,{key:ft.name,implementingType:ft,selections:mt,modifySelections:ye._modifyChildSelections,schema:ze,getDefaultFieldNames:Le,getDefaultScalarArgValue:ye.props.getDefaultScalarArgValue,makeDefaultArg:ye.props.makeDefaultArg,onRunOperation:ye.props.onRunOperation,styleConfig:ye.props.styleConfig,onCommit:ye.props.onCommit,definition:ye.props.definition})}):null))}return kt}}]),pe}(o.PureComponent);function se(we){try{return we.trim()?(0,a.parse)(we,{noLocation:!0}):null}catch(pe){return new Error(pe)}}var fe={kind:"OperationDefinition",operation:"query",variableDefinitions:[],name:{kind:"Name",value:"MyQuery"},directives:[],selectionSet:{kind:"SelectionSet",selections:[]}},ae={kind:"Document",definitions:[fe]},Ee=null;function ve(we){if(Ee&&Ee[0]===we)return Ee[1];var pe=se(we);return pe?pe instanceof Error?Ee?Ee[1]:ae:(Ee=[we,pe],pe):ae}var xe={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(we){v(pe,we);function pe(){var qe,ye,re,_e;p(this,pe);for(var ze=arguments.length,Le=Array(ze),Pe=0;Pe<ze;Pe++)Le[Pe]=arguments[Pe];return _e=(ye=(re=b(this,(qe=pe.__proto__||Object.getPrototypeOf(pe)).call.apply(qe,[this].concat(Le))),re),re.state={newOperationType:"query",displayTitleActions:!1},re._modifySelections=function(Te,Ie){var Qe=re.props.definition;Qe.selectionSet.selections.length===0&&re._previousOperationDef&&(Qe=re._previousOperationDef);var ut=void 0;if(Qe.kind==="FragmentDefinition")ut=n({},Qe,{selectionSet:n({},Qe.selectionSet,{selections:Te})});else if(Qe.kind==="OperationDefinition"){var At=Te.filter(function(kt){return!(kt.kind==="Field"&&kt.name.value==="__typename")});At.length===0&&(At=[{kind:"Field",name:{kind:"Name",value:"__typename ## Placeholder value"}}]),ut=n({},Qe,{selectionSet:n({},Qe.selectionSet,{selections:At})})}return re.props.onEdit(ut,Ie)},re._onOperationRename=function(Te){return re.props.onOperationRename(Te.target.value)},re._handlePotentialRun=function(Te){X(Te)&&ee(re.props.definition.kind)&&re.props.onRunOperation(re.props.name)},re._rootViewElId=function(){var Te=re.props,Ie=Te.operationType,Qe=Te.name,ut=Ie+"-"+(Qe||"unknown");return ut},ye),b(re,_e)}return r(pe,[{key:"componentDidMount",value:function(){var ye=this._rootViewElId();this.props.onMount(ye)}},{key:"render",value:function(){var ye=this,re=this.props,_e=re.operationType,ze=re.definition,Le=re.schema,Pe=re.getDefaultFieldNames,Te=re.styleConfig,Ie=this._rootViewElId(),Qe=this.props.fields||{},ut=ze,At=ut.selectionSet.selections,kt=this.props.name||x(_e)+" Name";return o.createElement("div",{id:Ie,tabIndex:"0",onKeyDown:this._handlePotentialRun,style:{borderBottom:this.props.isLast?"none":"1px solid #d6d6d6",marginBottom:"0em",paddingBottom:"1em"}},o.createElement("div",{style:{color:Te.colors.keyword,paddingBottom:4},className:"graphiql-operation-title-bar",onMouseEnter:function(){return ye.setState({displayTitleActions:!0})},onMouseLeave:function(){return ye.setState({displayTitleActions:!1})}},_e," ",o.createElement("span",{style:{color:Te.colors.def}},o.createElement("input",{style:{color:Te.colors.def,border:"none",borderBottom:"1px solid #888",outline:"none",width:Math.max(4,kt.length)+"ch"},autoComplete:"false",placeholder:x(_e)+" 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 ye.props.onOperationDestroy()},style:n({},Te.styles.actionButtonStyle)},o.createElement("span",null,"✕")),o.createElement("button",{type:"submit",className:"toolbar-button",onClick:function(){return ye.props.onOperationClone()},style:n({},Te.styles.actionButtonStyle)},o.createElement("span",null,"⎘"))):""),Object.keys(Qe).sort().map(function(ct){return o.createElement(he,{key:ct,field:Qe[ct],selections:At,modifySelections:ye._modifySelections,schema:Le,getDefaultFieldNames:Pe,getDefaultScalarArgValue:ye.props.getDefaultScalarArgValue,makeDefaultArg:ye.props.makeDefaultArg,onRunOperation:ye.props.onRunOperation,styleConfig:ye.props.styleConfig,onCommit:ye.props.onCommit,definition:ye.props.definition,availableFragments:ye.props.availableFragments})}))}}]),pe}(o.PureComponent);function Ve(){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 Xe=function(we){v(pe,we);function pe(){var qe,ye,re,_e;p(this,pe);for(var ze=arguments.length,Le=Array(ze),Pe=0;Pe<ze;Pe++)Le[Pe]=arguments[Pe];return _e=(ye=(re=b(this,(qe=pe.__proto__||Object.getPrototypeOf(pe)).call.apply(qe,[this].concat(Le))),re),re.state={newOperationType:"query",operation:null,operationToScrollTo:null},re._resetScroll=function(){var Te=re._ref;Te&&(Te.scrollLeft=0)},re._onEdit=function(Te){return re.props.onEdit(Te)},re._setAddOperationType=function(Te){re.setState({newOperationType:Te})},re._handleRootViewMount=function(Te){if(re.state.operationToScrollTo&&re.state.operationToScrollTo===Te){var Ie=".graphiql-explorer-root #"+Te,Qe=document.querySelector(Ie);Qe&&Qe.scrollIntoView()}},ye),b(re,_e)}return r(pe,[{key:"componentDidMount",value:function(){this._resetScroll()}},{key:"render",value:function(){var ye=this,re=this.props,_e=re.schema,ze=re.query,Le=re.makeDefaultArg;if(!_e)return o.createElement("div",{style:{fontFamily:"sans-serif"},className:"error-container"},"No Schema Available");var Pe={colors:this.props.colors||S,checkboxChecked:this.props.checkboxChecked||_,checkboxUnchecked:this.props.checkboxUnchecked||N,arrowClosed:this.props.arrowClosed||k,arrowOpen:this.props.arrowOpen||w,styles:this.props.styles?n({},xe,this.props.styles):xe},Te=_e.getQueryType(),Ie=_e.getMutationType(),Qe=_e.getSubscriptionType();if(!Te&&!Ie&&!Qe)return o.createElement("div",null,"Missing query type");var ut=Te&&Te.getFields(),At=Ie&&Ie.getFields(),kt=Qe&&Qe.getFields(),ct=ve(ze),mt=this.props.getDefaultFieldNames||A,ft=this.props.getDefaultScalarArgValue||W,Bt=ct.definitions,$t=Bt.map(function(xt){return xt.kind==="FragmentDefinition"||xt.kind==="OperationDefinition"?xt:null}).filter(Boolean),Gt=$t.length===0?ae.definitions:$t,fn=function(St,Qt){var Lt=Qt==null||Qt===""?null:{kind:"Name",value:Qt,loc:void 0},Rn=n({},St,{name:Lt}),Dt=ct.definitions,Jt=Dt.map(function(It){return St===It?Rn:It});return n({},ct,{definitions:Jt})},_n=function(St){var Qt=void 0;St.kind==="FragmentDefinition"?Qt="fragment":Qt=St.operation;var Lt=(St.name&&St.name.value||"")+"Copy",Rn={kind:"Name",value:Lt,loc:void 0},Dt=n({},St,{name:Rn}),Jt=ct.definitions,It=[].concat(h(Jt),[Dt]);return ye.setState({operationToScrollTo:Qt+"-"+Lt}),n({},ct,{definitions:It})},Bn=function(St){var Qt=ct.definitions,Lt=Qt.filter(function(Rn){return St!==Rn});return n({},ct,{definitions:Lt})},Et=function(St){var Qt=ct.definitions,Lt=ct.definitions.length===1&&ct.definitions[0]===ae.definitions[0],Rn=Lt?[]:Qt.filter(function(Ci){return Ci.kind==="OperationDefinition"?Ci.operation===St:!1}),Dt="My"+x(St)+(Rn.length===0?"":Rn.length+1),Jt="__typename # Placeholder value",It={kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:Jt,loc:null},arguments:[],directives:[],selectionSet:null,loc:null}],loc:null},en={kind:"OperationDefinition",operation:St,name:{kind:"Name",value:Dt},variableDefinitions:[],directives:[],selectionSet:It,loc:null},wi=Lt?[en]:[].concat(h(ct.definitions),[en]),Qr=n({},ct,{definitions:wi});ye.setState({operationToScrollTo:St+"-"+Dt}),ye.props.onEdit((0,a.print)(Qr))},Vr=[ut?o.createElement("option",{key:"query",className:"toolbar-button",style:Pe.styles.buttonStyle,type:"link",value:"query"},"Query"):null,At?o.createElement("option",{key:"mutation",className:"toolbar-button",style:Pe.styles.buttonStyle,type:"link",value:"mutation"},"Mutation"):null,kt?o.createElement("option",{key:"subscription",className:"toolbar-button",style:Pe.styles.buttonStyle,type:"link",value:"subscription"},"Subscription"):null].filter(Boolean),lt=Vr.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({},Pe.styles.explorerActionsStyle,{display:"flex",flexDirection:"row",alignItems:"center",borderTop:"1px solid rgb(214, 214, 214)"}),onSubmit:function(St){return St.preventDefault()}},o.createElement("span",{style:{display:"inline-block",flexGrow:"0",textAlign:"right"}},"Add new"," "),o.createElement("select",{onChange:function(St){return ye._setAddOperationType(St.target.value)},value:this.state.newOperationType,style:{flexGrow:"2"}},Vr),o.createElement("button",{type:"submit",className:"toolbar-button",onClick:function(){return ye.state.newOperationType?Et(ye.state.newOperationType):null},style:n({},Pe.styles.buttonStyle,{height:"22px",width:"22px"})},o.createElement("span",null,"+")))),Sn=this.props.externalFragments&&this.props.externalFragments.reduce(function(xt,St){if(St.kind==="FragmentDefinition"){var Qt=St.typeCondition.name.value,Lt=xt[Qt]||[],Rn=[].concat(h(Lt),[St]).sort(function(Dt,Jt){return Dt.name.value.localeCompare(Jt.name.value)});return n({},xt,f({},Qt,Rn))}return xt},{}),An=Gt.reduce(function(xt,St){if(St.kind==="FragmentDefinition"){var Qt=St.typeCondition.name.value,Lt=xt[Qt]||[],Rn=[].concat(h(Lt),[St]).sort(function(Dt,Jt){return Dt.name.value.localeCompare(Jt.name.value)});return n({},xt,f({},Qt,Rn))}return xt},{}),Yt=n({},An,Sn),bn=this.props.showAttribution?o.createElement(Ve,null):null;return o.createElement("div",{ref:function(St){ye._ref=St},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"}},Gt.map(function(xt,St){var Qt=xt&&xt.name&&xt.name.value,Lt=xt.kind==="FragmentDefinition"?"fragment":xt&&xt.operation||"query",Rn=function(Er){var Dn=fn(xt,Er);ye.props.onEdit((0,a.print)(Dn))},Dt=function(){var Er=_n(xt);ye.props.onEdit((0,a.print)(Er))},Jt=function(){var Er=Bn(xt);ye.props.onEdit((0,a.print)(Er))},It=xt.kind==="FragmentDefinition"&&xt.typeCondition.kind==="NamedType"&&_e.getType(xt.typeCondition.name.value),en=It instanceof a.GraphQLObjectType?It.getFields():null,wi=Lt==="query"?ut:Lt==="mutation"?At:Lt==="subscription"?kt:xt.kind==="FragmentDefinition"?en:null,Qr=xt.kind==="FragmentDefinition"?xt.typeCondition.name.value:null,Ci=function(Er){var Dn=(0,a.print)(Er);ye.props.onEdit(Dn)};return o.createElement(ge,{key:St,isLast:St===Gt.length-1,fields:wi,operationType:Lt,name:Qt,definition:xt,onOperationRename:Rn,onOperationDestroy:Jt,onOperationClone:Dt,onTypeName:Qr,onMount:ye._handleRootViewMount,onCommit:Ci,onEdit:function(Er,Dn){var Kr=void 0;if((typeof Dn>"u"?"undefined":e(Dn))==="object"&&typeof Dn.commit<"u"?Kr=Dn.commit:Kr=!0,Er){var Br=n({},ct,{definitions:ct.definitions.map(function(zn){return zn===xt?Er:zn})});return Kr&&Ci(Br),Br}else return ct},schema:_e,getDefaultFieldNames:mt,getDefaultScalarArgValue:ft,makeDefaultArg:Le,onRunOperation:function(){ye.props.onRunOperation&&ye.props.onRunOperation(Qt)},styleConfig:Pe,availableFragments:Yt})}),bn),lt)}}]),pe}(o.PureComponent);Xe.defaultProps={getDefaultFieldNames:A,getDefaultScalarArgValue:W};var et=function(we){v(pe,we);function pe(){var qe,ye,re,_e;p(this,pe);for(var ze=arguments.length,Le=Array(ze),Pe=0;Pe<ze;Pe++)Le[Pe]=arguments[Pe];return _e=(ye=(re=b(this,(qe=pe.__proto__||Object.getPrototypeOf(pe)).call.apply(qe,[this].concat(Le))),re),re.state={hasError:!1,error:null,errorInfo:null},ye),b(re,_e)}return r(pe,[{key:"componentDidCatch",value:function(ye,re){this.setState({hasError:!0,error:ye,errorInfo:re}),console.error("Error in component",ye,re)}},{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}}]),pe}(o.Component),dt=function(we){v(pe,we);function pe(){return p(this,pe),b(this,(pe.__proto__||Object.getPrototypeOf(pe)).apply(this,arguments))}return r(pe,[{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(et,null,o.createElement(Xe,this.props))))}}]),pe}(o.PureComponent);return dt.defaultValue=q,dt.defaultProps={width:320,title:"Explorer"},Y0.default=dt,Y0}var y8;function CJ(){if(y8)return eh;y8=1,Object.defineProperty(eh,"__esModule",{value:!0}),eh.Explorer=void 0;var e=wJ(),t=n(e);function n(r){return r&&r.__esModule?r:{default:r}}return eh.Explorer=t.default,eh.default=t.default,eh}var _J=CJ();const b8=({title:e,titleId:t,...n})=>R.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?R.createElement("title",{id:t},e):null,R.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"})),AJ=({title:e,titleId:t,...n})=>R.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?R.createElement("title",{id:t},e):null,R.createElement("path",{d:"M18 6H20M22 6H20M20 6V4M20 6V8",strokeLinecap:"round",strokeLinejoin:"round"}),R.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"}),R.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"})),DJ=({title:e,titleId:t,...n})=>R.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?R.createElement("title",{id:t},e):null,R.createElement("circle",{cx:7.5,cy:7.5,r:6,strokeWidth:2})),NJ=({title:e,titleId:t,...n})=>R.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?R.createElement("title",{id:t},e):null,R.createElement("circle",{cx:7.5,cy:7.5,r:7.5}),R.createElement("path",{d:"M4.64641 7.00106L6.8801 9.23256L10.5017 5.61325",stroke:"white",strokeWidth:1.5})),OJ={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))"},kJ=Mt.createElement(b8,{style:{width:"var(--px-16)",transform:"rotate(90deg)"}}),RJ=Mt.createElement(b8,{style:{width:"var(--px-16)"}}),MJ=Mt.createElement(DJ,{style:{marginRight:"var(--px-4)"}}),LJ=Mt.createElement(NJ,{style:{fill:"hsl(var(--color-info))",marginRight:"var(--px-4)"}}),IJ={buttonStyle:{cursor:"pointer",fontSize:"2em",lineHeight:0},explorerActionsStyle:{paddingTop:"var(--px-16)"},actionButtonStyle:{}},FJ=e=>{const{setOperationName:t}=Ei({nonNull:!0}),{schema:n}=Ns(),{run:r}=Zc({nonNull:!0}),i=R.useCallback(l=>{l&&t(l),r()},[r,t]),[o,a]=lU(uU());return Mt.createElement(_J.Explorer,{schema:n,onRunOperation:i,explorerIsOpen:!0,colors:OJ,arrowOpen:kJ,arrowClosed:RJ,checkboxUnchecked:MJ,checkboxChecked:LJ,styles:IJ,query:o,onEdit:a,...e})};function PJ(e){return{title:"GraphiQL Explorer",icon:AJ,content:()=>Mt.createElement(FJ,{...e})}}const uS=t0((e,t)=>({historyStorage:null,actions:{addToHistory(n){const{historyStorage:r}=t();r.updateHistory(n),e({})},editLabel(n,r){const{historyStorage:i}=t();i.editLabel(n,r),e({})},toggleFavorite(n){const{historyStorage:r}=t();r.toggleFavorite(n),e({})},setActive:n=>n,deleteFromHistory(n,r){const{historyStorage:i}=t();i.deleteHistory(n,r),e({})}}})),jJ=e=>{const t=it.c(12),{maxHistoryLength:n,children:r}=e,i=n===void 0?20:n;let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={nonNull:!0},t[0]=o):o=t[0];const{isFetching:a}=Zc(o);let l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l={nonNull:!0},t[1]=l):l=t[1];const{tabs:f,activeTabIndex:h}=Ei(l),p=f[h],b=Xc();let v;t[2]!==i||t[3]!==b?(v=new mj(b,i),t[2]=i,t[3]=b,t[4]=v):v=t[4];const x=v;let S,w;t[5]!==x?(S=()=>{uS.setState({historyStorage:x})},w=[x],t[5]=x,t[6]=S,t[7]=w):(S=t[6],w=t[7]),R.useEffect(S,w);let k,_;return t[8]!==p||t[9]!==a?(k=()=>{if(!a)return;const{addToHistory:N}=uS.getState().actions;N({query:p.query??void 0,variables:p.variables??void 0,headers:p.headers??void 0,operationName:p.operationName??void 0})},_=[a,p],t[8]=p,t[9]=a,t[10]=k,t[11]=_):(k=t[10],_=t[11]),R.useEffect(k,_),r};function E8(e){return n0(uS,e)}const VJ=()=>E8(BJ),x8=()=>E8($J);function BJ(e){return e.historyStorage.queries}function $J(e){return e.actions}function UJ(e,t){for(const n of e)t(n,!0)}const HJ=()=>{const e=it.c(13),t=VJ(),{deleteFromHistory:n}=x8();let r;r=t.slice().map(qJ).reverse();const i=r.filter(GJ);i.length&&(r=r.filter(WJ));const[o,a]=R.useState(null);let l,f;e[0]!==o?(l=()=>{o&&setTimeout(()=>{a(null)},2e3)},f=[o],e[0]=o,e[1]=l,e[2]=f):(l=e[1],f=e[2]),R.useEffect(l,f);const h=()=>{try{UJ(r,n),a("success")}catch{a("error")}},p=!!i.length,b=!!r.length,v="History",x="graphiql-history",S=(o||b)&&$.jsx(sa,{type:"button",state:o||void 0,disabled:!r.length,onClick:h,children:{success:"Cleared",error:"Failed to Clear"}[o]||"Clear"});let w;e[3]!==S?(w=$.jsxs("div",{className:"graphiql-history-header",children:["History",S]}),e[3]=S,e[4]=w):w=e[4];const k=p&&$.jsx("ul",{className:"graphiql-history-items",children:i.map(YJ)});let _;e[5]!==p||e[6]!==b?(_=p&&b&&$.jsx("div",{className:"graphiql-history-item-spacer"}),e[5]=p,e[6]=b,e[7]=_):_=e[7];const N=b&&$.jsx("ul",{className:"graphiql-history-items",children:r.map(QJ)});let O;return e[8]!==w||e[9]!==k||e[10]!==_||e[11]!==N?(O=$.jsxs("section",{"aria-label":v,className:x,children:[w,k,_,N]}),e[8]=w,e[9]=k,e[10]=_,e[11]=N,e[12]=O):O=e[12],O},lS=e=>{const t=it.c(39),{editLabel:n,toggleFavorite:r,deleteFromHistory:i,setActive:o}=x8();let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a={nonNull:!0,caller:lS},t[0]=a):a=t[0];const{headerEditor:l,queryEditor:f,variableEditor:h}=Ei(a),p=R.useRef(null),b=R.useRef(null),[v,x]=R.useState(!1);let S,w;t[1]!==v?(S=()=>{var ne;v&&((ne=p.current)==null||ne.focus())},w=[v],t[1]=v,t[2]=S,t[3]=w):(S=t[2],w=t[3]),R.useEffect(S,w);let k;t[4]!==e.item.label||t[5]!==e.item.operationName||t[6]!==e.item.query?(k=e.item.label||e.item.operationName||zJ(e.item.query),t[4]=e.item.label,t[5]=e.item.operationName,t[6]=e.item.query,t[7]=k):k=t[7];const _=k;let N;t[8]!==n||t[9]!==e.item?(N=()=>{var ne;x(!1);const{index:oe,...K}=e.item;n({...K,label:(ne=p.current)==null?void 0:ne.value},oe)},t[8]=n,t[9]=e.item,t[10]=N):N=t[10];const O=N;let A;t[11]===Symbol.for("react.memo_cache_sentinel")?(A=()=>{x(!1)},t[11]=A):A=t[11];const L=A;let P;t[12]===Symbol.for("react.memo_cache_sentinel")?(P=ne=>{ne.stopPropagation(),x(!0)},t[12]=P):P=t[12];const j=P;let F;t[13]!==l||t[14]!==e.item||t[15]!==f||t[16]!==o||t[17]!==h?(F=()=>{const{query:ne,variables:oe,headers:K}=e.item;f==null||f.setValue(ne??""),h==null||h.setValue(oe??""),l==null||l.setValue(K??""),o(e.item)},t[13]=l,t[14]=e.item,t[15]=f,t[16]=o,t[17]=h,t[18]=F):F=t[18];const B=F;let q;t[19]!==i||t[20]!==e.item?(q=ne=>{ne.stopPropagation(),i(e.item)},t[19]=i,t[20]=e.item,t[21]=q):q=t[21];const W=q;let Z;t[22]!==e.item||t[23]!==r?(Z=ne=>{ne.stopPropagation(),r(e.item)},t[22]=e.item,t[23]=r,t[24]=Z):Z=t[24];const X=Z,ee=v&&"editable";let H;t[25]!==ee?(H=Zn("graphiql-history-item",ee),t[25]=ee,t[26]=H):H=t[26];let J;t[27]!==_||t[28]!==n||t[29]!==W||t[30]!==B||t[31]!==O||t[32]!==X||t[33]!==v||t[34]!==e.item?(J=v?$.jsxs($.Fragment,{children:[$.jsx("input",{type:"text",defaultValue:e.item.label,ref:p,onKeyDown:ne=>{ne.key==="Esc"?x(!1):ne.key==="Enter"&&(x(!1),n({...e.item,label:ne.currentTarget.value}))},placeholder:"Type a label"}),$.jsx(xi,{type:"button",ref:b,onClick:O,children:"Save"}),$.jsx(xi,{type:"button",ref:b,onClick:L,children:$.jsx(ZE,{})})]}):$.jsxs($.Fragment,{children:[$.jsx($o,{label:"Set active",children:$.jsx(xi,{type:"button",className:"graphiql-history-item-label",onClick:B,"aria-label":"Set active",children:_})}),$.jsx($o,{label:"Edit label",children:$.jsx(xi,{type:"button",className:"graphiql-history-item-action",onClick:j,"aria-label":"Edit label",children:$.jsx(VH,{"aria-hidden":"true"})})}),$.jsx($o,{label:e.item.favorite?"Remove favorite":"Add favorite",children:$.jsx(xi,{type:"button",className:"graphiql-history-item-action",onClick:X,"aria-label":e.item.favorite?"Remove favorite":"Add favorite",children:e.item.favorite?$.jsx(GH,{"aria-hidden":"true"}):$.jsx(WH,{"aria-hidden":"true"})})}),$.jsx($o,{label:"Delete from history",children:$.jsx(xi,{type:"button",className:"graphiql-history-item-action",onClick:W,"aria-label":"Delete from history",children:$.jsx(QH,{"aria-hidden":"true"})})})]}),t[27]=_,t[28]=n,t[29]=W,t[30]=B,t[31]=O,t[32]=X,t[33]=v,t[34]=e.item,t[35]=J):J=t[35];let ue;return t[36]!==H||t[37]!==J?(ue=$.jsx("li",{className:H,children:J}),t[36]=H,t[37]=J,t[38]=ue):ue=t[38],ue};function zJ(e){return e==null?void 0:e.split(`
`).map(t=>t.replace(/#(.*)/,"")).join(" ").replaceAll("{"," { ").replaceAll("}"," } ").replaceAll(/[\s]{2,}/g," ")}function qJ(e,t){return{...e,index:t}}function GJ(e){return e.favorite}function WJ(e){return!e.favorite}function YJ(e){return $.jsx(lS,{item:e},e.index)}function QJ(e){return $.jsx(lS,{item:e},e.index)}const KJ={title:"History",icon:LH,content:HJ},U1=[{name:"Docs"}],cS=t0((e,t)=>({explorerNavStack:U1,actions:{push(n){e(r=>{const i=r.explorerNavStack;return{explorerNavStack:i.at(-1).def===n.def?i:[...i,n]}})},pop(){e(n=>{const r=n.explorerNavStack;return{explorerNavStack:r.length>1?r.slice(0,-1):r}})},reset(){e(n=>{const r=n.explorerNavStack;return{explorerNavStack:r.length===1?r:U1}})},resolveSchemaReferenceToNavItem(n){if(!n)return;const{push:r}=t().actions;switch(n.kind){case"Type":{r({name:n.type.name,def:n.type});break}case"Field":{r({name:n.field.name,def:n.field});break}case"Argument":{n.field&&r({name:n.field.name,def:n.field});break}case"EnumValue":{n.type&&r({name:n.type.name,def:n.type});break}}},rebuildNavStackWithSchema(n){e(r=>{const i=r.explorerNavStack;if(i.length===1)return i;const o=[...U1];let a=null;for(const l of i)if(l!==U1[0])if(l.def)if(Ou(l.def)){const f=n.getType(l.def.name);if(f)o.push({name:l.name,def:f}),a=f;else break}else{if(a===null)break;if(_t(a)||sn(a)){const f=a.getFields()[l.name];if(f)o.push({name:l.name,def:f});else break}else{if(qi(a)||Xn(a)||Ot(a)||lr(a))break;{const f=a;if(f.args.some(h=>h.name===l.name))o.push({name:l.name,def:f});else break}}}else a=null,o.push(l);return{explorerNavStack:o}})}}})),XJ=e=>{const t=it.c(7),{children:n}=e,{schema:r,validationErrors:i,schemaReference:o}=Ns();let a,l;t[0]!==o?(a=()=>{const{resolveSchemaReferenceToNavItem:p}=cS.getState().actions;p(o)},l=[o],t[0]=o,t[1]=a,t[2]=l):(a=t[1],l=t[2]),R.useEffect(a,l);let f,h;return t[3]!==r||t[4]!==i?(f=()=>{const{reset:p,rebuildNavStackWithSchema:b}=cS.getState().actions;r==null||i.length>0?p():b(r)},h=[r,i],t[3]=r,t[4]=i,t[5]=f,t[6]=h):(f=t[5],h=t[6]),R.useEffect(f,h),n};function T8(e){return n0(cS,e)}const fS=()=>T8(ZJ),H1=()=>T8(JJ);function ZJ(e){return e.explorerNavStack}function JJ(e){return e.actions}const eee=e=>e?mn(e):"",S8=e=>{const t=it.c(12),{field:n}=e;if(!("defaultValue"in n)||n.defaultValue===void 0)return null;const r=n.defaultValue,i=n.type;let o,a,l,f;if(t[0]!==n.defaultValue||t[1]!==n.type){f=Symbol.for("react.early_return_sentinel");e:{const b=ku(r,i);if(!b){f=null;break e}l=" = ",o="graphiql-doc-explorer-default-value",a=eee(b)}t[0]=n.defaultValue,t[1]=n.type,t[2]=o,t[3]=a,t[4]=l,t[5]=f}else o=t[2],a=t[3],l=t[4],f=t[5];if(f!==Symbol.for("react.early_return_sentinel"))return f;let h;t[6]!==o||t[7]!==a?(h=$.jsx("span",{className:o,children:a}),t[6]=o,t[7]=a,t[8]=h):h=t[8];let p;return t[9]!==l||t[10]!==h?(p=$.jsxs($.Fragment,{children:[l,h]}),t[9]=l,t[10]=h,t[11]=p):p=t[11],p};function z1(e,t){return wt(e)?$.jsxs($.Fragment,{children:[z1(e.ofType,t),"!"]}):vn(e)?$.jsxs($.Fragment,{children:["[",z1(e.ofType,t),"]"]}):t(e)}const $u=e=>{const t=it.c(5),{type:n}=e,{push:r}=H1();if(!n)return null;let i;t[0]!==r?(i=a=>$.jsx("a",{className:"graphiql-doc-explorer-type-name",onClick:l=>{l.preventDefault(),r({name:a.name,def:a})},href:"#",children:a.name}),t[0]=r,t[1]=i):i=t[1];let o;return t[2]!==i||t[3]!==n?(o=z1(n,i),t[2]=i,t[3]=n,t[4]=o):o=t[4],o},q1=e=>{const t=it.c(19),{arg:n,showDefaultValue:r,inline:i}=e;let o;t[0]!==n.name?(o=$.jsx("span",{className:"graphiql-doc-explorer-argument-name",children:n.name}),t[0]=n.name,t[1]=o):o=t[1];let a;t[2]!==n.type?(a=$.jsx($u,{type:n.type}),t[2]=n.type,t[3]=a):a=t[3];let l;t[4]!==n||t[5]!==r?(l=r!==!1&&$.jsx(S8,{field:n}),t[4]=n,t[5]=r,t[6]=l):l=t[6];let f;t[7]!==o||t[8]!==a||t[9]!==l?(f=$.jsxs("span",{children:[o,": ",a,l]}),t[7]=o,t[8]=a,t[9]=l,t[10]=f):f=t[10];const h=f;if(i)return h;let p;t[11]!==n.description?(p=n.description?$.jsx(Wa,{type:"description",children:n.description}):null,t[11]=n.description,t[12]=p):p=t[12];let b;t[13]!==n.deprecationReason?(b=n.deprecationReason?$.jsxs("div",{className:"graphiql-doc-explorer-argument-deprecation",children:[$.jsx("div",{className:"graphiql-doc-explorer-argument-deprecation-label",children:"Deprecated"}),$.jsx(Wa,{type:"deprecation",children:n.deprecationReason})]}):null,t[13]=n.deprecationReason,t[14]=b):b=t[14];let v;return t[15]!==h||t[16]!==p||t[17]!==b?(v=$.jsxs("div",{className:"graphiql-doc-explorer-argument",children:[h,p,b]}),t[15]=h,t[16]=p,t[17]=b,t[18]=v):v=t[18],v},w8=e=>{const t=it.c(3);let n;return t[0]!==e.children||t[1]!==e.preview?(n=e.children?$.jsxs("div",{className:"graphiql-doc-explorer-deprecation",children:[$.jsx("div",{className:"graphiql-doc-explorer-deprecation-label",children:"Deprecated"}),$.jsx(Wa,{type:"deprecation",onlyShowFirstChild:e.preview??!0,children:e.children})]}):null,t[0]=e.children,t[1]=e.preview,t[2]=n):n=t[2],n},tee=e=>{const t=it.c(2),{directive:n}=e;let r;return t[0]!==n.name.value?(r=$.jsxs("span",{className:"graphiql-doc-explorer-directive",children:["@",n.name.value]}),t[0]=n.name.value,t[1]=r):r=t[1],r},Is=e=>{const t=it.c(10),{title:n,children:r}=e,i=nee[n];let o;t[0]!==i?(o=$.jsx(i,{}),t[0]=i,t[1]=o):o=t[1];let a;t[2]!==o||t[3]!==n?(a=$.jsxs("div",{className:"graphiql-doc-explorer-section-title",children:[o,n]}),t[2]=o,t[3]=n,t[4]=a):a=t[4];let l;t[5]!==r?(l=$.jsx("div",{className:"graphiql-doc-explorer-section-content",children:r}),t[5]=r,t[6]=l):l=t[6];let f;return t[7]!==a||t[8]!==l?(f=$.jsxs("div",{children:[a,l]}),t[7]=a,t[8]=l,t[9]=f):f=t[9],f},nee={Arguments:xH,"Deprecated Arguments":_H,"Deprecated Enum Values":AH,"Deprecated Fields":DH,Directives:NH,"Enum Values":RH,Fields:MH,Implements:IH,Implementations:Wv,"Possible Types":Wv,"Root Types":zH,Type:Wv,"All Schema Types":Wv},ree=e=>{const t=it.c(15),{field:n}=e;let r;t[0]!==n.description?(r=n.description?$.jsx(Wa,{type:"description",children:n.description}):null,t[0]=n.description,t[1]=r):r=t[1];let i;t[2]!==n.deprecationReason?(i=$.jsx(w8,{preview:!1,children:n.deprecationReason}),t[2]=n.deprecationReason,t[3]=i):i=t[3];let o;t[4]!==n.type?(o=$.jsx(Is,{title:"Type",children:$.jsx($u,{type:n.type})}),t[4]=n.type,t[5]=o):o=t[5];let a,l;t[6]!==n?(a=$.jsx(iee,{field:n}),l=$.jsx(oee,{field:n}),t[6]=n,t[7]=a,t[8]=l):(a=t[7],l=t[8]);let f;return t[9]!==r||t[10]!==i||t[11]!==o||t[12]!==a||t[13]!==l?(f=$.jsxs($.Fragment,{children:[r,i,o,a,l]}),t[9]=r,t[10]=i,t[11]=o,t[12]=a,t[13]=l,t[14]=f):f=t[14],f},iee=e=>{const t=it.c(12),{field:n}=e,[r,i]=R.useState(!1);let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{i(!0)},t[0]=o):o=t[0];const a=o;if(!("args"in n))return null;let l,f,h;if(t[1]!==n.args){l=[],f=[];for(const v of n.args)v.deprecationReason?f.push(v):l.push(v);h=l.length>0?$.jsx(Is,{title:"Arguments",children:l.map(see)}):null,t[1]=n.args,t[2]=l,t[3]=f,t[4]=h}else l=t[2],f=t[3],h=t[4];let p;t[5]!==l.length||t[6]!==f||t[7]!==r?(p=f.length>0?r||l.length===0?$.jsx(Is,{title:"Deprecated Arguments",children:f.map(aee)}):$.jsx(sa,{type:"button",onClick:a,children:"Show Deprecated Arguments"}):null,t[5]=l.length,t[6]=f,t[7]=r,t[8]=p):p=t[8];let b;return t[9]!==h||t[10]!==p?(b=$.jsxs($.Fragment,{children:[h,p]}),t[9]=h,t[10]=p,t[11]=b):b=t[11],b},oee=e=>{var t;const n=it.c(4),{field:r}=e,i=(t=r.astNode)==null?void 0:t.directives;if(!(i!=null&&i.length))return null;let o;n[0]!==i?(o=i.map(uee),n[0]=i,n[1]=o):o=n[1];let a;return n[2]!==o?(a=$.jsx(Is,{title:"Directives",children:o}),n[2]=o,n[3]=a):a=n[3],a};function see(e){return $.jsx(q1,{arg:e},e.name)}function aee(e){return $.jsx(q1,{arg:e},e.name)}function uee(e){return $.jsx("div",{children:$.jsx(tee,{directive:e})},e.name.value)}const lee=e=>{var t,n;const r=it.c(39),{schema:i}=e;let o;r[0]!==i?(o=i.getQueryType(),r[0]=i,r[1]=o):o=r[1];const a=o;let l;r[2]!==i?(l=(t=i.getMutationType)==null?void 0:t.call(i),r[2]=i,r[3]=l):l=r[3];const f=l;let h;r[4]!==i?(h=(n=i.getSubscriptionType)==null?void 0:n.call(i),r[4]=i,r[5]=h):h=r[5];const p=h;let b,v,x,S,w;if(r[6]!==f||r[7]!==a||r[8]!==i||r[9]!==p){const N=i.getTypeMap(),O=a==null?void 0:a.name,A=f==null?void 0:f.name,L=p==null?void 0:p.name;let P;r[15]!==L||r[16]!==O||r[17]!==A?(P=[O,A,L],r[15]=L,r[16]=O,r[17]=A,r[18]=P):P=r[18];const j=P,F=i.description||"A GraphQL schema provides a root type for each kind of operation.";r[19]!==F?(S=$.jsx(Wa,{type:"description",children:F}),r[19]=F,r[20]=S):S=r[20];let B;r[21]!==a?(B=a?$.jsxs("div",{children:[$.jsx("span",{className:"graphiql-doc-explorer-root-type",children:"query"}),": ",$.jsx($u,{type:a})]}):null,r[21]=a,r[22]=B):B=r[22];let q;r[23]!==f?(q=f&&$.jsxs("div",{children:[$.jsx("span",{className:"graphiql-doc-explorer-root-type",children:"mutation"}),": ",$.jsx($u,{type:f})]}),r[23]=f,r[24]=q):q=r[24];let W;r[25]!==p?(W=p&&$.jsxs("div",{children:[$.jsx("span",{className:"graphiql-doc-explorer-root-type",children:"subscription"}),": ",$.jsx($u,{type:p})]}),r[25]=p,r[26]=W):W=r[26],r[27]!==B||r[28]!==q||r[29]!==W?(w=$.jsxs(Is,{title:"Root Types",children:[B,q,W]}),r[27]=B,r[28]=q,r[29]=W,r[30]=w):w=r[30],b=Is,v="All Schema Types",x=N&&$.jsx("div",{children:Object.values(N).map(Z=>j.includes(Z.name)||Z.name.startsWith("__")?null:$.jsx("div",{children:$.jsx($u,{type:Z})},Z.name))}),r[6]=f,r[7]=a,r[8]=i,r[9]=p,r[10]=b,r[11]=v,r[12]=x,r[13]=S,r[14]=w}else b=r[10],v=r[11],x=r[12],S=r[13],w=r[14];let k;r[31]!==b||r[32]!==v||r[33]!==x?(k=$.jsx(b,{title:v,children:x}),r[31]=b,r[32]=v,r[33]=x,r[34]=k):k=r[34];let _;return r[35]!==S||r[36]!==w||r[37]!==k?(_=$.jsxs($.Fragment,{children:[S,w,k]}),r[35]=S,r[36]=w,r[37]=k,r[38]=_):_=r[38],_},C8=typeof document<"u"?Mt.useLayoutEffect:()=>{};function cee(e){const t=R.useRef(null);return C8(()=>{t.current=e},[e]),R.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}const Ol=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},hf=e=>e&&"window"in e&&e.window===e?e:Ol(e).defaultView||window;function fee(e){return e!==null&&typeof e=="object"&&"nodeType"in e&&typeof e.nodeType=="number"}function dee(e){return fee(e)&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}let hee=!1;function dS(){return hee}function _8(e,t){if(!dS())return t&&e?e.contains(t):!1;if(!e||!t)return!1;let n=t;for(;n!==null;){if(n===e)return!0;n.tagName==="SLOT"&&n.assignedSlot?n=n.assignedSlot.parentNode:dee(n)?n=n.host:n=n.parentNode}return!1}const hS=(e=document)=>{var t;if(!dS())return e.activeElement;let n=e.activeElement;for(;n&&"shadowRoot"in n&&(!((t=n.shadowRoot)===null||t===void 0)&&t.activeElement);)n=n.shadowRoot.activeElement;return n};function A8(e){return dS()&&e.target.shadowRoot&&e.composedPath?e.composedPath()[0]:e.target}function pee(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function mee(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function D8(e){let t=null;return()=>(t==null&&(t=e()),t)}const gee=D8(function(){return mee(/^Mac/i)}),vee=D8(function(){return pee(/Android/i)});function N8(){let e=R.useRef(new Map),t=R.useCallback((i,o,a,l)=>{let f=l!=null&&l.once?(...h)=>{e.current.delete(a),a(...h)}:a;e.current.set(a,{type:o,eventTarget:i,fn:f,options:l}),i.addEventListener(o,f,l)},[]),n=R.useCallback((i,o,a,l)=>{var f;let h=((f=e.current.get(a))===null||f===void 0?void 0:f.fn)||a;i.removeEventListener(o,h,l),e.current.delete(a)},[]),r=R.useCallback(()=>{e.current.forEach((i,o)=>{n(i.eventTarget,i.type,o,i.options)})},[n]);return R.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function yee(e){return e.mozInputSource===0&&e.isTrusted?!0:vee()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function O8(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function bee(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}function k8(e){let t=R.useRef({isFocused:!1,observer:null});C8(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=cee(r=>{e==null||e(r)});return R.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,o=a=>{if(t.current.isFocused=!1,i.disabled){let l=O8(a);n(l)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var a;(a=t.current.observer)===null||a===void 0||a.disconnect();let l=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}let Eee=!1,Q0=null,pS=new Set,K0=new Map,pf=!1,mS=!1;const xee={Tab:!0,Escape:!0};function gS(e,t){for(let n of pS)n(e,t)}function Tee(e){return!(e.metaKey||!gee()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function G1(e){pf=!0,Tee(e)&&(Q0="keyboard",gS("keyboard",e))}function th(e){Q0="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(pf=!0,gS("pointer",e))}function R8(e){yee(e)&&(pf=!0,Q0="virtual")}function M8(e){e.target===window||e.target===document||Eee||!e.isTrusted||(!pf&&!mS&&(Q0="virtual",gS("virtual",e)),pf=!1,mS=!1)}function L8(){pf=!1,mS=!0}function vS(e){if(typeof window>"u"||K0.get(hf(e)))return;const t=hf(e),n=Ol(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){pf=!0,r.apply(this,arguments)},n.addEventListener("keydown",G1,!0),n.addEventListener("keyup",G1,!0),n.addEventListener("click",R8,!0),t.addEventListener("focus",M8,!0),t.addEventListener("blur",L8,!1),typeof PointerEvent<"u"&&(n.addEventListener("pointerdown",th,!0),n.addEventListener("pointermove",th,!0),n.addEventListener("pointerup",th,!0)),t.addEventListener("beforeunload",()=>{I8(e)},{once:!0}),K0.set(t,{focus:r})}const I8=(e,t)=>{const n=hf(e),r=Ol(e);t&&r.removeEventListener("DOMContentLoaded",t),K0.has(n)&&(n.HTMLElement.prototype.focus=K0.get(n).focus,r.removeEventListener("keydown",G1,!0),r.removeEventListener("keyup",G1,!0),r.removeEventListener("click",R8,!0),n.removeEventListener("focus",M8,!0),n.removeEventListener("blur",L8,!1),typeof PointerEvent<"u"&&(r.removeEventListener("pointerdown",th,!0),r.removeEventListener("pointermove",th,!0),r.removeEventListener("pointerup",th,!0)),K0.delete(n))};function See(e){const t=Ol(e);let n;return t.readyState!=="loading"?vS(e):(n=()=>{vS(e)},t.addEventListener("DOMContentLoaded",n)),()=>I8(e,n)}typeof document<"u"&&See();function F8(){return Q0!=="pointer"}const wee=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Cee(e,t,n){let r=Ol(n==null?void 0:n.target);const i=typeof window<"u"?hf(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,o=typeof window<"u"?hf(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a=typeof window<"u"?hf(n==null?void 0:n.target).HTMLElement:HTMLElement,l=typeof window<"u"?hf(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||r.activeElement instanceof i&&!wee.has(r.activeElement.type)||r.activeElement instanceof o||r.activeElement instanceof a&&r.activeElement.isContentEditable,!(e&&t==="keyboard"&&n instanceof l&&!xee[n.key])}function _ee(e,t,n){vS(),R.useEffect(()=>{let r=(i,o)=>{Cee(!!(n!=null&&n.isTextInput),i,o)&&e(F8())};return pS.add(r),()=>{pS.delete(r)}},t)}function Aee(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=R.useCallback(f=>{if(f.target===f.currentTarget)return r&&r(f),i&&i(!1),!0},[r,i]),a=k8(o),l=R.useCallback(f=>{const h=Ol(f.target),p=h?hS(h):hS();f.target===f.currentTarget&&p===A8(f.nativeEvent)&&(n&&n(f),i&&i(!0),a(f))},[i,n,a]);return{focusProps:{onFocus:!t&&(n||i||r)?l:void 0,onBlur:!t&&(r||i)?o:void 0}}}function Dee(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=R.useRef({isFocusWithin:!1}),{addGlobalListener:a,removeAllGlobalListeners:l}=N8(),f=R.useCallback(b=>{b.currentTarget.contains(b.target)&&o.current.isFocusWithin&&!b.currentTarget.contains(b.relatedTarget)&&(o.current.isFocusWithin=!1,l(),n&&n(b),i&&i(!1))},[n,i,o,l]),h=k8(f),p=R.useCallback(b=>{if(!b.currentTarget.contains(b.target))return;const v=Ol(b.target),x=hS(v);if(!o.current.isFocusWithin&&x===A8(b.nativeEvent)){r&&r(b),i&&i(!0),o.current.isFocusWithin=!0,h(b);let S=b.currentTarget;a(v,"focus",w=>{if(o.current.isFocusWithin&&!_8(S,w.target)){let k=new v.defaultView.FocusEvent("blur",{relatedTarget:w.target});bee(k,S);let _=O8(k);f(_)}},{capture:!0})}},[r,i,h,a,f]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:p,onBlur:f}}}let yS=!1,bS=0;function Nee(){yS=!0,setTimeout(()=>{yS=!1},50)}function P8(e){e.pointerType==="touch"&&Nee()}function Oee(){if(!(typeof document>"u"))return typeof PointerEvent<"u"&&document.addEventListener("pointerup",P8),bS++,()=>{bS--,!(bS>0)&&typeof PointerEvent<"u"&&document.removeEventListener("pointerup",P8)}}function j8(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,a]=R.useState(!1),l=R.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;R.useEffect(Oee,[]);let{addGlobalListener:f,removeAllGlobalListeners:h}=N8(),{hoverProps:p,triggerHoverEnd:b}=R.useMemo(()=>{let v=(w,k)=>{if(l.pointerType=k,i||k==="touch"||l.isHovered||!w.currentTarget.contains(w.target))return;l.isHovered=!0;let _=w.currentTarget;l.target=_,f(Ol(w.target),"pointerover",N=>{l.isHovered&&l.target&&!_8(l.target,N.target)&&x(N,N.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:_,pointerType:k}),n&&n(!0),a(!0)},x=(w,k)=>{let _=l.target;l.pointerType="",l.target=null,!(k==="touch"||!l.isHovered||!_)&&(l.isHovered=!1,h(),r&&r({type:"hoverend",target:_,pointerType:k}),n&&n(!1),a(!1))},S={};return typeof PointerEvent<"u"&&(S.onPointerEnter=w=>{yS&&w.pointerType==="mouse"||v(w,w.pointerType)},S.onPointerLeave=w=>{!i&&w.currentTarget.contains(w.target)&&x(w,w.pointerType)}),{hoverProps:S,triggerHoverEnd:x}},[t,n,r,i,l,f,h]);return R.useEffect(()=>{i&&b({currentTarget:l.target},l.pointerType)},[i]),{hoverProps:p,isHovered:o}}function V8(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=R.useRef({isFocused:!1,isFocusVisible:t||F8()}),[o,a]=R.useState(!1),[l,f]=R.useState(()=>i.current.isFocused&&i.current.isFocusVisible),h=R.useCallback(()=>f(i.current.isFocused&&i.current.isFocusVisible),[]),p=R.useCallback(x=>{i.current.isFocused=x,a(x),h()},[h]);_ee(x=>{i.current.isFocusVisible=x,h()},[],{isTextInput:n});let{focusProps:b}=Aee({isDisabled:r,onFocusChange:p}),{focusWithinProps:v}=Dee({isDisabled:!r,onFocusWithinChange:p});return{isFocused:o,isFocusVisible:l,focusProps:r?v:b}}var kee=Object.defineProperty,Ree=(e,t,n)=>t in e?kee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ES=(e,t,n)=>(Ree(e,typeof t!="symbol"?t+"":t,n),n);let Mee=class{constructor(){ES(this,"current",this.detect()),ES(this,"handoffState","pending"),ES(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"}},mf=new Mee;function X0(e){var t,n;return mf.isServer?null:e?"ownerDocument"in e?e.ownerDocument:"current"in e?(n=(t=e.current)==null?void 0:t.ownerDocument)!=null?n:document:null:document}function B8(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Xa(){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 B8(()=>{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=Xa();return n(r),this.add(()=>r.dispose())},add(n){return e.includes(n)||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 Z0(){let[e]=R.useState(Xa);return R.useEffect(()=>()=>e.dispose(),[e]),e}let jr=(e,t)=>{mf.isServer?R.useEffect(e,t):R.useLayoutEffect(e,t)};function gf(e){let t=R.useRef(e);return jr(()=>{t.current=e},[e]),t}let xn=function(e){let t=gf(e);return Mt.useCallback((...n)=>t.current(...n),[t])};function Lee(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function Iee(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function Fee({disabled:e=!1}={}){let t=R.useRef(null),[n,r]=R.useState(!1),i=Z0(),o=xn(()=>{t.current=null,r(!1),i.dispose()}),a=xn(l=>{if(i.dispose(),t.current===null){t.current=l.currentTarget,r(!0);{let f=X0(l.currentTarget);i.addEventListener(f,"pointerup",o,!1),i.addEventListener(f,"pointermove",h=>{if(t.current){let p=Lee(h);r(Iee(p,t.current.getBoundingClientRect()))}},!1),i.addEventListener(f,"pointercancel",o,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:a,onPointerUp:o,onClick:o}}}let Pee=R.createContext(void 0);function xS(){return R.useContext(Pee)}function $8(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function Za(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,Za),r}var TS=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(TS||{}),jee=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(jee||{});function ca(){let e=Bee();return R.useCallback(t=>Vee({mergeRefs:e,...t}),[e])}function Vee({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:a,mergeRefs:l}){l=l??$ee;let f=U8(t,e);if(o)return W1(f,n,r,a,l);let h=i??0;if(h&2){let{static:p=!1,...b}=f;if(p)return W1(b,n,r,a,l)}if(h&1){let{unmount:p=!0,...b}=f;return Za(p?0:1,{0(){return null},1(){return W1({...b,hidden:!0,style:{display:"none"}},n,r,a,l)}})}return W1(f,n,r,a,l)}function W1(e,t={},n,r,i){let{as:o=n,children:a,refName:l="ref",...f}=wS(e,["unmount","static"]),h=e.ref!==void 0?{[l]:e.ref}:{},p=typeof a=="function"?a(t):a;"className"in f&&f.className&&typeof f.className=="function"&&(f.className=f.className(t)),f["aria-labelledby"]&&f["aria-labelledby"]===f.id&&(f["aria-labelledby"]=void 0);let b={};if(t){let v=!1,x=[];for(let[S,w]of Object.entries(t))typeof w=="boolean"&&(v=!0),w===!0&&x.push(S.replace(/([A-Z])/g,k=>`-${k.toLowerCase()}`));if(v){b["data-headlessui-state"]=x.join(" ");for(let S of x)b[`data-${S}`]=""}}if(o===R.Fragment&&(Object.keys(vf(f)).length>0||Object.keys(vf(b)).length>0))if(!R.isValidElement(p)||Array.isArray(p)&&p.length>1){if(Object.keys(vf(f)).length>0)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(vf(f)).concat(Object.keys(vf(b))).map(v=>` - ${v}`).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(v=>` - ${v}`).join(`
`)].join(`
`))}else{let v=p.props,x=v==null?void 0:v.className,S=typeof x=="function"?(..._)=>$8(x(..._),f.className):$8(x,f.className),w=S?{className:S}:{},k=U8(p.props,vf(wS(f,["ref"])));for(let _ in b)_ in k&&delete b[_];return R.cloneElement(p,Object.assign({},k,b,h,{ref:i(Uee(p),h.ref)},w))}return R.createElement(o,Object.assign({},wS(f,["ref"]),o!==R.Fragment&&h,o!==R.Fragment&&b),p)}function Bee(){let e=R.useRef([]),t=R.useCallback(n=>{for(let r of e.current)r!=null&&(typeof r=="function"?r(n):r.current=n)},[]);return(...n)=>{if(!n.every(r=>r==null))return e.current=n,t}}function $ee(...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 U8(...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"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[i=>{var o;return(o=i==null?void 0:i.preventDefault)==null?void 0:o.call(i)}]);for(let r in n)Object.assign(t,{[r](i,...o){let a=n[r];for(let l of a){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;l(i,...o)}}});return t}function SS(...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];for(let r in n)Object.assign(t,{[r](...i){let o=n[r];for(let a of o)a==null||a(...i)}});return t}function fa(e){var t;return Object.assign(R.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function vf(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function wS(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function Uee(e){return Mt.version.split(".")[0]>="19"?e.props.ref:e.ref}function Hee(e,t,n){let[r,i]=R.useState(n),o=e!==void 0,a=R.useRef(o),l=R.useRef(!1),f=R.useRef(!1);return o&&!a.current&&!l.current?(l.current=!0,a.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&&a.current&&!f.current&&(f.current=!0,a.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,xn(h=>(o||i(h),t==null?void 0:t(h)))]}function zee(e){let[t]=R.useState(e);return t}function H8(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))q8(n,z8(t,r),i);return n}function z8(e,t){return e?e+"["+t+"]":t}function q8(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())q8(e,z8(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,""]):H8(n,t,e)}let qee="span";var CS=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(CS||{});function Gee(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 ca()({ourProps:o,theirProps:i,slot:{},defaultTag:qee,name:"Hidden"})}let G8=fa(Gee),Wee=R.createContext(null);function Yee({children:e}){let t=R.useContext(Wee);if(!t)return Mt.createElement(Mt.Fragment,null,e);let{target:n}=t;return n?wo.createPortal(Mt.createElement(Mt.Fragment,null,e),n):null}function Qee({data:e,form:t,disabled:n,onReset:r,overrides:i}){let[o,a]=R.useState(null),l=Z0();return R.useEffect(()=>{if(r&&o)return l.addEventListener(o,"reset",r)},[o,t,r]),Mt.createElement(Yee,null,Mt.createElement(Kee,{setForm:a,formId:t}),H8(e).map(([f,h])=>Mt.createElement(G8,{features:CS.Hidden,...vf({key:f,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:f,value:h,...i})})))}function Kee({setForm:e,formId:t}){return R.useEffect(()=>{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:Mt.createElement(G8,{features:CS.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:n=>{if(!n)return;let r=n.closest("form");r&&e(r)}})}let Xee=R.createContext(void 0);function W8(){return R.useContext(Xee)}function _S(e){return typeof e!="object"||e===null?!1:"nodeType"in e}function Y1(e){return _S(e)&&"tagName"in e}function kl(e){return Y1(e)&&"accessKey"in e}function yf(e){return Y1(e)&&"tabIndex"in e}function Zee(e){return Y1(e)&&"style"in e}function Jee(e){return kl(e)&&e.nodeName==="IFRAME"}function Q1(e){return kl(e)&&e.nodeName==="INPUT"}function Y8(e){return kl(e)&&e.nodeName==="LABEL"}function ete(e){return kl(e)&&e.nodeName==="FIELDSET"}function Q8(e){return kl(e)&&e.nodeName==="LEGEND"}function tte(e){return Y1(e)?e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]'):!1}function nte(e){let t=e.parentElement,n=null;for(;t&&!ete(t);)Q8(t)&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&rte(n)?!1:r}function rte(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(Q8(t))return!1;t=t.previousElementSibling}return!0}let K8=Symbol();function ite(e,t=!0){return Object.assign(e,{[K8]:t})}function Uu(...e){let t=R.useRef(e);R.useEffect(()=>{t.current=e},[e]);let n=xn(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[K8]))?void 0:n}let AS=R.createContext(null);AS.displayName="DescriptionContext";function X8(){let e=R.useContext(AS);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,X8),t}return e}function ote(){var e,t;return(t=(e=R.useContext(AS))==null?void 0:e.value)!=null?t:void 0}let ste="p";function ate(e,t){let n=R.useId(),r=xS(),{id:i=`headlessui-description-${n}`,...o}=e,a=X8(),l=Uu(t);jr(()=>a.register(i),[i,a.register]);let f=r||!1,h=R.useMemo(()=>({...a.slot,disabled:f}),[a.slot,f]),p={ref:l,...a.props,id:i};return ca()({ourProps:p,theirProps:o,slot:h,defaultTag:ste,name:a.name||"Description"})}let ute=fa(ate);Object.assign(ute,{});var Do=(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))(Do||{});let K1=R.createContext(null);K1.displayName="LabelContext";function Z8(){let e=R.useContext(K1);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Z8),t}return e}function X1(e){var t,n,r;let i=(n=(t=R.useContext(K1))==null?void 0:t.value)!=null?n:void 0;return((r=e==null?void 0:e.length)!=null?r:0)>0?[i,...e].filter(Boolean).join(" "):i}function lte({inherit:e=!1}={}){let t=X1(),[n,r]=R.useState([]),i=e?[t,...n].filter(Boolean):n;return[i.length>0?i.join(" "):void 0,R.useMemo(()=>function(o){let a=xn(f=>(r(h=>[...h,f]),()=>r(h=>{let p=h.slice(),b=p.indexOf(f);return b!==-1&&p.splice(b,1),p}))),l=R.useMemo(()=>({register:a,slot:o.slot,name:o.name,props:o.props,value:o.value}),[a,o.slot,o.name,o.props,o.value]);return Mt.createElement(K1.Provider,{value:l},o.children)},[r])]}let cte="label";function fte(e,t){var n;let r=R.useId(),i=Z8(),o=W8(),a=xS(),{id:l=`headlessui-label-${r}`,htmlFor:f=o??((n=i.props)==null?void 0:n.htmlFor),passive:h=!1,...p}=e,b=Uu(t);jr(()=>i.register(l),[l,i.register]);let v=xn(k=>{let _=k.currentTarget;if(!(k.target!==k.currentTarget&&tte(k.target))&&(Y8(_)&&k.preventDefault(),i.props&&"onClick"in i.props&&typeof i.props.onClick=="function"&&i.props.onClick(k),Y8(_))){let N=document.getElementById(_.htmlFor);if(N){let O=N.getAttribute("disabled");if(O==="true"||O==="")return;let A=N.getAttribute("aria-disabled");if(A==="true"||A==="")return;(Q1(N)&&(N.type==="file"||N.type==="radio"||N.type==="checkbox")||N.role==="radio"||N.role==="checkbox"||N.role==="switch")&&N.click(),N.focus({preventScroll:!0})}}}),x=a||!1,S=R.useMemo(()=>({...i.slot,disabled:x}),[i.slot,x]),w={ref:b,...i.props,id:l,htmlFor:f,onClick:v};return h&&("onClick"in w&&(delete w.htmlFor,delete w.onClick),"onClick"in p&&delete p.onClick),ca()({ourProps:w,theirProps:p,slot:S,defaultTag:f?cte:"div",name:i.name||"Label"})}let dte=fa(fte),hte=Object.assign(dte,{});function nh(e,t,n){let r=n.initialDeps??[],i;function o(){var a,l,f,h;let p;n.key&&((a=n.debug)!=null&&a.call(n))&&(p=Date.now());const b=e();if(!(b.length!==r.length||b.some((S,w)=>r[w]!==S)))return i;r=b;let x;if(n.key&&((l=n.debug)!=null&&l.call(n))&&(x=Date.now()),i=t(...b),n.key&&((f=n.debug)!=null&&f.call(n))){const S=Math.round((Date.now()-p)*100)/100,w=Math.round((Date.now()-x)*100)/100,k=w/16,_=(N,O)=>{for(N=String(N);N.length<O;)N=" "+N;return N};console.info(`%c⏱ ${_(w,5)} /${_(S,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(h=n==null?void 0:n.onChange)==null||h.call(n,i),i}return o.updateDeps=a=>{r=a},o}function DS(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const pte=(e,t)=>Math.abs(e-t)<=1,mte=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}},J8=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},gte=e=>e,vte=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},yte=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const i=a=>{const{width:l,height:f}=a;t({width:Math.round(l),height:Math.round(f)})};if(i(J8(n)),!r.ResizeObserver)return()=>{};const o=new r.ResizeObserver(a=>{const l=()=>{const f=a[0];if(f!=null&&f.borderBoxSize){const h=f.borderBoxSize[0];if(h){i({width:h.inlineSize,height:h.blockSize});return}}i(J8(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(l):l()});return o.observe(n,{box:"border-box"}),()=>{o.unobserve(n)}},e9={passive:!0},t9=typeof window>"u"?!0:"onscrollend"in window,bte=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let i=0;const o=e.options.useScrollendEvent&&t9?()=>{}:mte(r,()=>{t(i,!1)},e.options.isScrollingResetDelay),a=p=>()=>{const{horizontal:b,isRtl:v}=e.options;i=b?n.scrollLeft*(v&&-1||1):n.scrollTop,o(),t(i,p)},l=a(!0),f=a(!1);f(),n.addEventListener("scroll",l,e9);const h=e.options.useScrollendEvent&&t9;return h&&n.addEventListener("scrollend",f,e9),()=>{n.removeEventListener("scroll",l),h&&n.removeEventListener("scrollend",f)}},Ete=(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"]},xte=(e,{adjustments:t=0,behavior:n},r)=>{var i,o;const a=e+t;(o=(i=r.scrollElement)==null?void 0:i.scrollTo)==null||o.call(i,{[r.options.horizontal?"left":"top"]:a,behavior:n})};class Tte{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 a=()=>{this._measureElement(o.target,o)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(a):a()})}));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:gte,rangeExtractor:vte,onChange:()=>{},measureElement:Ete,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=nh(()=>(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 a=r-1;a>=0;a--){const l=n[a];if(i.has(l.lane))continue;const f=o.get(l.lane);if(f==null||l.end>f.end?o.set(l.lane,l):l.end<f.end&&i.set(l.lane,!0),i.size===this.options.lanes)break}return o.size===this.options.lanes?Array.from(o.values()).sort((a,l)=>a.end===l.end?a.index-l.index:a.end-l.end)[0]:void 0},this.getMeasurementOptions=nh(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(n,r,i,o,a)=>(this.pendingMeasuredCacheIndexes=[],{count:n,paddingStart:r,scrollMargin:i,getItemKey:o,enabled:a}),{key:!1}),this.getMeasurements=nh(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:n,paddingStart:r,scrollMargin:i,getItemKey:o,enabled:a},l)=>{if(!a)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(p=>{this.itemSizeCache.set(p.key,p.size)}));const f=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const h=this.measurementsCache.slice(0,f);for(let p=f;p<n;p++){const b=o(p),v=this.options.lanes===1?h[p-1]:this.getFurthestMeasurement(h,p),x=v?v.end+this.options.gap:r+i,S=l.get(b),w=typeof S=="number"?S:this.options.estimateSize(p),k=x+w,_=v?v.lane:p%this.options.lanes;h[p]={index:p,start:x,size:w,end:k,key:b,lane:_}}return this.measurementsCache=h,h},{key:!1,debug:()=>this.options.debug}),this.calculateRange=nh(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(n,r,i,o)=>this.range=n.length>0&&r>0?Ste({measurements:n,outerSize:r,scrollOffset:i,lanes:o}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=nh(()=>{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,a)=>o===null||a===null?[]:n({startIndex:o,endIndex:a,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 a=o.key,l=this.elementsCache.get(a);l!==n&&(l&&this.observer.unobserve(l),this.observer.observe(n),this.elementsCache.set(a,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,a=r-o;a!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(i,a,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=a,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=nh(()=>[this.getVirtualIndexes(),this.getMeasurements()],(n,r)=>{const i=[];for(let o=0,a=n.length;o<a;o++){const l=n[o],f=r[l];i.push(f)}return i},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=n=>{const r=this.getMeasurements();if(r.length!==0)return DS(r[n9(0,r.length-1,i=>DS(r[i]).start,n)])},this.getOffsetForAlignment=(n,r,i=0)=>{const o=this.getSize(),a=this.getScrollOffset();r==="auto"&&(r=n>=a+o?"end":"start"),r==="center"?n+=(i-o)/2:r==="end"&&(n-=o);const l=this.getTotalSize()-o;return Math.max(Math.min(l,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(),a=this.getScrollOffset();if(r==="auto")if(i.end>=a+o-this.options.scrollPaddingEnd)r="end";else if(i.start<=a+this.options.scrollPaddingStart)r="start";else return[a,r];const l=r==="end"?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(l,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[a,l]=o;this._scrollToOffset(a,{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[h]=DS(this.getOffsetForIndex(n,l)),p=this.getScrollOffset();pte(h,p)||this.scrollToIndex(n,{align:l,behavior:i})}else this.scrollToIndex(n,{align:l,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 a=r.length-1;for(;a>=0&&o.some(l=>l===null);){const l=r[a];o[l.lane]===null&&(o[l.lane]=l.end),a--}i=Math.max(...o.filter(l=>l!==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 n9=(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 Ste({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){const i=e.length-1,o=f=>e[f].start;if(e.length<=r)return{startIndex:0,endIndex:i};let a=n9(0,i,o,n),l=a;if(r===1)for(;l<i&&e[l].end<n+t;)l++;else if(r>1){const f=Array(r).fill(0);for(;l<i&&f.some(p=>p<n+t);){const p=e[l];f[p.lane]=p.end,l++}const h=Array(r).fill(n+t);for(;a>=0&&h.some(p=>p>=n);){const p=e[a];h[p.lane]=p.start,a--}a=Math.max(0,a-a%r),l=Math.min(i,l+(r-1-l%r))}return{startIndex:a,endIndex:l}}const r9=typeof document<"u"?R.useLayoutEffect:R.useEffect;function wte(e){const t=R.useReducer(()=>({}),{})[1],n={...e,onChange:(i,o)=>{var a;o?wo.flushSync(t):t(),(a=e.onChange)==null||a.call(e,i,o)}},[r]=R.useState(()=>new Tte(n));return r.setOptions(n),r9(()=>r._didMount(),[]),r9(()=>r._willUpdate()),r}function Cte(e){return wte({observeElementRect:yte,observeElementOffset:bte,scrollToFn:xte,...e})}function _te(e,t){return e!==null&&t!==null&&typeof e=="object"&&typeof t=="object"&&"id"in e&&"id"in t?e.id===t.id:e===t}function Ate(e=_te){return R.useCallback((t,n)=>{if(typeof e=="string"){let r=e;return(t==null?void 0:t[r])===(n==null?void 0:n[r])}return e(t,n)},[e])}function Dte(e){if(e===null)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function i9(e,t=!1){let[n,r]=R.useReducer(()=>({}),{}),i=R.useMemo(()=>Dte(e),[e,n]);return jr(()=>{if(!e)return;let o=new ResizeObserver(r);return o.observe(e),()=>{o.disconnect()}},[e]),t?{width:`${i.width}px`,height:`${i.height}px`}:i}let o9=class extends Map{constructor(t){super(),this.factory=t}get(t){let n=super.get(t);return n===void 0&&(n=this.factory(t),this.set(t,n)),n}};var Nte=Object.defineProperty,Ote=(e,t,n)=>t in e?Nte(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kte=(e,t,n)=>(Ote(e,t+"",n),n),s9=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},Fs=(e,t,n)=>(s9(e,t,"read from private field"),n?n.call(e):t.get(e)),NS=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},a9=(e,t,n,r)=>(s9(e,t,"write to private field"),t.set(e,n),n),Ja,J0,em;let u9=class{constructor(t){NS(this,Ja,{}),NS(this,J0,new o9(()=>new Set)),NS(this,em,new Set),kte(this,"disposables",Xa()),a9(this,Ja,t)}dispose(){this.disposables.dispose()}get state(){return Fs(this,Ja)}subscribe(t,n){let r={selector:t,callback:n,current:t(Fs(this,Ja))};return Fs(this,em).add(r),this.disposables.add(()=>{Fs(this,em).delete(r)})}on(t,n){return Fs(this,J0).get(t).add(n),this.disposables.add(()=>{Fs(this,J0).get(t).delete(n)})}send(t){let n=this.reduce(Fs(this,Ja),t);if(n!==Fs(this,Ja)){a9(this,Ja,n);for(let r of Fs(this,em)){let i=r.selector(Fs(this,Ja));l9(r.current,i)||(r.current=i,r.callback(i))}for(let r of Fs(this,J0).get(t.type))r(Fs(this,Ja),t)}}};Ja=new WeakMap,J0=new WeakMap,em=new WeakMap;function l9(e,t){return Object.is(e,t)?!0:typeof e!="object"||e===null||typeof t!="object"||t===null?!1:Array.isArray(e)&&Array.isArray(t)?e.length!==t.length?!1:OS(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size!==t.size?!1:OS(e.entries(),t.entries()):c9(e)&&c9(t)?OS(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()):!1}function OS(e,t){do{let n=e.next(),r=t.next();if(n.done&&r.done)return!0;if(n.done||r.done||!Object.is(n.value,r.value))return!1}while(!0)}function c9(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}var Rte=Object.defineProperty,Mte=(e,t,n)=>t in e?Rte(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,f9=(e,t,n)=>(Mte(e,typeof t!="symbol"?t+"":t,n),n),d9=(e=>(e[e.Push=0]="Push",e[e.Pop=1]="Pop",e))(d9||{});let Lte={0(e,t){let n=t.id,r=e.stack,i=e.stack.indexOf(n);if(i!==-1){let o=e.stack.slice();return o.splice(i,1),o.push(n),r=o,{...e,stack:r}}return{...e,stack:[...e.stack,n]}},1(e,t){let n=t.id,r=e.stack.indexOf(n);if(r===-1)return e;let i=e.stack.slice();return i.splice(r,1),{...e,stack:i}}},Ite=class tI extends u9{constructor(){super(...arguments),f9(this,"actions",{push:t=>this.send({type:0,id:t}),pop:t=>this.send({type:1,id:t})}),f9(this,"selectors",{isTop:(t,n)=>t.stack[t.stack.length-1]===n,inStack:(t,n)=>t.stack.includes(n)})}static new(){return new tI({stack:[]})}reduce(t,n){return Za(n.type,Lte,t,n)}};const kS=new o9(()=>Ite.new());var RS={exports:{}},MS={};/**
* @license React
* use-sync-external-store-with-selector.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 h9;function Fte(){if(h9)return MS;h9=1;var e=md();function t(f,h){return f===h&&(f!==0||1/f===1/h)||f!==f&&h!==h}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,i=e.useRef,o=e.useEffect,a=e.useMemo,l=e.useDebugValue;return MS.useSyncExternalStoreWithSelector=function(f,h,p,b,v){var x=i(null);if(x.current===null){var S={hasValue:!1,value:null};x.current=S}else S=x.current;x=a(function(){function k(L){if(!_){if(_=!0,N=L,L=b(L),v!==void 0&&S.hasValue){var P=S.value;if(v(P,L))return O=P}return O=L}if(P=O,n(N,L))return P;var j=b(L);return v!==void 0&&v(P,j)?(N=L,P):(N=L,O=j)}var _=!1,N,O,A=p===void 0?null:p;return[function(){return k(h())},A===null?void 0:function(){return k(A())}]},[h,p,b,v]);var w=r(f,x[0],x[1]);return o(function(){S.hasValue=!0,S.value=w},[w]),l(w),w},MS}var p9;function Pte(){return p9||(p9=1,RS.exports=Fte()),RS.exports}var jte=Pte();function Pi(e,t,n=l9){return jte.useSyncExternalStoreWithSelector(xn(r=>e.subscribe(Vte,r)),xn(()=>e.state),xn(()=>e.state),xn(t),n)}function Vte(e){return e}function m9(e,t){let n=R.useId(),r=kS.get(t),[i,o]=Pi(r,R.useCallback(a=>[r.selectors.isTop(a,n),r.selectors.inStack(a,n)],[r,n]));return jr(()=>{if(e)return r.actions.push(n),()=>r.actions.pop(n)},[r,e,n]),e?o?i:!0:!1}let LS=new Map,tm=new Map;function g9(e){var t;let n=(t=tm.get(e))!=null?t:0;return tm.set(e,n+1),n!==0?()=>v9(e):(LS.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>v9(e))}function v9(e){var t;let n=(t=tm.get(e))!=null?t:1;if(n===1?tm.delete(e):tm.set(e,n-1),n!==1)return;let r=LS.get(e);r&&(r["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,LS.delete(e))}function Bte(e,{allowed:t,disallowed:n}={}){let r=m9(e,"inert-others");jr(()=>{var i,o;if(!r)return;let a=Xa();for(let f of(i=n==null?void 0:n())!=null?i:[])f&&a.add(g9(f));let l=(o=t==null?void 0:t())!=null?o:[];for(let f of l){if(!f)continue;let h=X0(f);if(!h)continue;let p=f.parentElement;for(;p&&p!==h.body;){for(let b of p.children)l.some(v=>b.contains(v))||a.add(g9(b));p=p.parentElement}}return a.dispose},[r,t,n])}function $te(e,t,n){let r=gf(i=>{let o=i.getBoundingClientRect();o.x===0&&o.y===0&&o.width===0&&o.height===0&&n()});R.useEffect(()=>{if(!e)return;let i=t===null?null:kl(t)?t:t.current;if(!i)return;let o=Xa();if(typeof ResizeObserver<"u"){let a=new ResizeObserver(()=>r.current(i));a.observe(i),o.add(()=>a.disconnect())}if(typeof IntersectionObserver<"u"){let a=new IntersectionObserver(()=>r.current(i));a.observe(i),o.add(()=>a.disconnect())}return()=>o.dispose()},[t,r,e])}let IS=["[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 Ute=(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[e.AutoFocus=64]="AutoFocus",e))(Ute||{}),Hte=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Hte||{}),zte=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(zte||{}),y9=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(y9||{});function qte(e,t=0){var n;return e===((n=X0(e))==null?void 0:n.body)?!1:Za(t,{0(){return e.matches(IS)},1(){let r=e;for(;r!==null;){if(r.matches(IS))return!0;r=r.parentElement}return!1}})}var Gte=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Gte||{});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 Wte(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 a=i.compareDocumentPosition(o);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function b9(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Yte(){return/Android/gi.test(window.navigator.userAgent)}function FS(){return b9()||Yte()}function rh(e,t,n,r){let i=gf(n);R.useEffect(()=>{if(!e)return;function o(a){i.current(a)}return document.addEventListener(t,o,r),()=>document.removeEventListener(t,o,r)},[e,t,r])}function Qte(e,t,n,r){let i=gf(n);R.useEffect(()=>{if(!e)return;function o(a){i.current(a)}return window.addEventListener(t,o,r),()=>window.removeEventListener(t,o,r)},[e,t,r])}const E9=30;function Kte(e,t,n){let r=gf(n),i=R.useCallback(function(l,f){if(l.defaultPrevented)return;let h=f(l);if(h===null||!h.getRootNode().contains(h)||!h.isConnected)return;let p=function b(v){return typeof v=="function"?b(v()):Array.isArray(v)||v instanceof Set?v:[v]}(t);for(let b of p)if(b!==null&&(b.contains(h)||l.composed&&l.composedPath().includes(b)))return;return!qte(h,y9.Loose)&&h.tabIndex!==-1&&l.preventDefault(),r.current(l,h)},[r,t]),o=R.useRef(null);rh(e,"pointerdown",l=>{var f,h;FS()||(o.current=((h=(f=l.composedPath)==null?void 0:f.call(l))==null?void 0:h[0])||l.target)},!0),rh(e,"pointerup",l=>{if(FS()||!o.current)return;let f=o.current;return o.current=null,i(l,()=>f)},!0);let a=R.useRef({x:0,y:0});rh(e,"touchstart",l=>{a.current.x=l.touches[0].clientX,a.current.y=l.touches[0].clientY},!0),rh(e,"touchend",l=>{let f={x:l.changedTouches[0].clientX,y:l.changedTouches[0].clientY};if(!(Math.abs(f.x-a.current.x)>=E9||Math.abs(f.y-a.current.y)>=E9))return i(l,()=>yf(l.target)?l.target:null)},!0),Qte(e,"blur",l=>i(l,()=>Jee(window.document.activeElement)?window.document.activeElement:null),!0)}function Z1(...e){return R.useMemo(()=>X0(...e),[...e])}var Xte=(e=>(e[e.Ignore=0]="Ignore",e[e.Select=1]="Select",e[e.Close=2]="Close",e))(Xte||{});const nm={Ignore:{kind:0},Select:e=>({kind:1,target:e}),Close:{kind:2}},Zte=200;function Jte(e,{trigger:t,action:n,close:r,select:i}){let o=R.useRef(null);rh(e&&t!==null,"pointerdown",a=>{_S(a==null?void 0:a.target)&&t!=null&&t.contains(a.target)&&(o.current=new Date)}),rh(e&&t!==null,"pointerup",a=>{if(o.current===null||!yf(a.target))return;let l=n(a),f=new Date().getTime()-o.current.getTime();switch(o.current=null,l.kind){case 0:return;case 1:{f>Zte&&(i(l.target),r());break}case 2:{r();break}}},{capture:!0})}function ene(e,t,n,r){let i=gf(n);R.useEffect(()=>{e=e??window;function o(a){i.current(a)}return e.addEventListener(t,o,r),()=>e.removeEventListener(t,o,r)},[e,t,r])}function x9(e){let t=R.useRef({value:"",selectionStart:null,selectionEnd:null});return ene(e,"blur",n=>{let r=n.target;Q1(r)&&(t.current={value:r.value,selectionStart:r.selectionStart,selectionEnd:r.selectionEnd})}),xn(()=>{if(document.activeElement!==e&&Q1(e)&&e.isConnected){if(e.focus({preventScroll:!0}),e.value!==t.current.value)e.setSelectionRange(e.value.length,e.value.length);else{let{selectionStart:n,selectionEnd:r}=t.current;n!==null&&r!==null&&e.setSelectionRange(n,r)}t.current={value:"",selectionStart:null,selectionEnd:null}}})}function tne(e,t){return R.useMemo(()=>{var n;if(e.type)return e.type;let r=(n=e.as)!=null?n:"button";if(typeof r=="string"&&r.toLowerCase()==="button"||(t==null?void 0:t.tagName)==="BUTTON"&&!t.hasAttribute("type"))return"button"},[e.type,e.as,t])}function nne(e){return R.useSyncExternalStore(e.subscribe,e.getSnapshot,e.getSnapshot)}function rne(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(i){return r.add(i),()=>r.delete(i)},dispatch(i,...o){let a=t[i].call(n,...o);a&&(n=a,r.forEach(l=>l()))}}}function ine(){let e;return{before({doc:t}){var n;let r=t.documentElement,i=(n=t.defaultView)!=null?n:window;e=Math.max(0,i.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,i=Math.max(0,r.clientWidth-r.offsetWidth),o=Math.max(0,e-i);n.style(r,"paddingRight",`${o}px`)}}}function one(){return b9()?{before({doc:e,d:t,meta:n}){function r(i){return n.containers.flatMap(o=>o()).some(o=>o.contains(i))}t.microTask(()=>{var i;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let l=Xa();l.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>l.dispose()))}let o=(i=window.scrollY)!=null?i:window.pageYOffset,a=null;t.addEventListener(e,"click",l=>{if(yf(l.target))try{let f=l.target.closest("a");if(!f)return;let{hash:h}=new URL(f.href),p=e.querySelector(h);yf(p)&&!r(p)&&(a=p)}catch{}},!0),t.addEventListener(e,"touchstart",l=>{if(yf(l.target)&&Zee(l.target))if(r(l.target)){let f=l.target;for(;f.parentElement&&r(f.parentElement);)f=f.parentElement;t.style(f,"overscrollBehavior","contain")}else t.style(l.target,"touchAction","none")}),t.addEventListener(e,"touchmove",l=>{if(yf(l.target)){if(Q1(l.target))return;if(r(l.target)){let f=l.target;for(;f.parentElement&&f.dataset.headlessuiPortal!==""&&!(f.scrollHeight>f.clientHeight||f.scrollWidth>f.clientWidth);)f=f.parentElement;f.dataset.headlessuiPortal===""&&l.preventDefault()}else l.preventDefault()}},{passive:!1}),t.add(()=>{var l;let f=(l=window.scrollY)!=null?l:window.pageYOffset;o!==f&&window.scrollTo(0,o),a&&a.isConnected&&(a.scrollIntoView({block:"nearest"}),a=null)})})}}:{}}function sne(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function ane(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let bf=rne(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Xa(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:ane(n)},i=[one(),ine(),sne()];i.forEach(({before:o})=>o==null?void 0:o(r)),i.forEach(({after:o})=>o==null?void 0:o(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});bf.subscribe(()=>{let e=bf.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",i=n.count!==0;(i&&!r||!i&&r)&&bf.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&bf.dispatch("TEARDOWN",n)}});function une(e,t,n=()=>({containers:[]})){let r=nne(bf),i=t?r.get(t):void 0,o=i?i.count>0:!1;return jr(()=>{if(!(!t||!e))return bf.dispatch("PUSH",t,n),()=>bf.dispatch("POP",t,n)},[e,t]),o}function lne(e,t,n=()=>[document.body]){let r=m9(e,"scroll-lock");une(r,t,i=>{var o;return{containers:[...(o=i.containers)!=null?o:[],n]}})}function T9(e){return[e.screenX,e.screenY]}function cne(){let e=R.useRef([-1,-1]);return{wasMoved(t){let n=T9(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=T9(t)}}}function fne(e=0){let[t,n]=R.useState(e),r=R.useCallback(f=>n(f),[t]),i=R.useCallback(f=>n(h=>h|f),[t]),o=R.useCallback(f=>(t&f)===f,[t]),a=R.useCallback(f=>n(h=>h&~f),[n]),l=R.useCallback(f=>n(h=>h^f),[n]);return{flags:t,setFlag:r,addFlag:i,hasFlag:o,removeFlag:a,toggleFlag:l}}var S9,w9;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((S9=process==null?void 0:process.env)==null?void 0:S9.NODE_ENV)==="test"&&typeof((w9=Element==null?void 0:Element.prototype)==null?void 0:w9.getAnimations)>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
`)),[]});var dne=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(dne||{});function hne(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function pne(e,t,n,r){let[i,o]=R.useState(n),{hasFlag:a,addFlag:l,removeFlag:f}=fne(e&&i?3:0),h=R.useRef(!1),p=R.useRef(!1),b=Z0();return jr(()=>{var v;if(e){if(n&&o(!0),!t){n&&l(3);return}return(v=void 0)==null||v.call(r,n),mne(t,{inFlight:h,prepare(){p.current?p.current=!1:p.current=h.current,h.current=!0,!p.current&&(n?(l(3),f(4)):(l(4),f(2)))},run(){p.current?n?(f(3),l(4)):(f(4),l(3)):n?f(1):l(1)},done(){var x;p.current&&typeof t.getAnimations=="function"&&t.getAnimations().length>0||(h.current=!1,f(7),n||o(!1),(x=void 0)==null||x.call(r,n))}})}},[e,n,t,b]),e?[i,{closed:a(1),enter:a(2),leave:a(4),transition:a(2)||a(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function mne(e,{prepare:t,run:n,done:r,inFlight:i}){let o=Xa();return vne(e,{prepare:t,inFlight:i}),o.nextFrame(()=>{n(),o.requestAnimationFrame(()=>{o.add(gne(e,r))})}),o.dispose}function gne(e,t){var n,r;let i=Xa();if(!e)return i.dispose;let o=!1;i.add(()=>{o=!0});let a=(r=(n=e.getAnimations)==null?void 0:n.call(e).filter(l=>l instanceof CSSTransition))!=null?r:[];return a.length===0?(t(),i.dispose):(Promise.allSettled(a.map(l=>l.finished)).then(()=>{o||t()}),i.dispose)}function vne(e,{inFlight:t,prepare:n}){if(t!=null&&t.current){n();return}let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}function yne(e,{container:t,accept:n,walk:r}){let i=R.useRef(n),o=R.useRef(r);R.useEffect(()=>{i.current=n,o.current=r},[n,r]),jr(()=>{if(!t||!e)return;let a=X0(t);if(!a)return;let l=i.current,f=o.current,h=Object.assign(b=>l(b),{acceptNode:l}),p=a.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,h,!1);for(;p.nextNode();)f(p.currentNode)},[t,e,i,o])}function C9(e,t){let n=R.useRef([]),r=xn(e);R.useEffect(()=>{let i=[...n.current];for(let[o,a]of t.entries())if(n.current[o]!==a){let l=r(t,i);return n.current=t,l}},[r,...t])}function bne(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}const _9={...Ap},Ene=_9.useInsertionEffect||(e=>e());function A9(e){const t=R.useRef(()=>{});return Ene(()=>{t.current=e}),R.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}var PS=typeof document<"u"?R.useLayoutEffect:R.useEffect;let D9=!1,xne=0;const N9=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+xne++;function Tne(){const[e,t]=R.useState(()=>D9?N9():void 0);return PS(()=>{e==null&&t(N9())},[]),R.useEffect(()=>{D9=!0},[]),e}const Sne=_9.useId||Tne;function wne(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(i=>i!==n))||[])}}}const Cne=R.createContext(null),_ne=R.createContext(null),Ane=()=>{var e;return((e=R.useContext(Cne))==null?void 0:e.id)||null},Dne=()=>R.useContext(_ne),Nne="data-floating-ui-focusable";function One(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=Sne(),o=R.useRef({}),[a]=R.useState(()=>wne()),l=Ane()!=null,[f,h]=R.useState(r.reference),p=A9((x,S,w)=>{o.current.openEvent=x?S:void 0,a.emit("openchange",{open:x,event:S,reason:w,nested:l}),n==null||n(x,S,w)}),b=R.useMemo(()=>({setPositionReference:h}),[]),v=R.useMemo(()=>({reference:f||r.reference||null,floating:r.floating||null,domReference:r.reference}),[f,r.reference,r.floating]);return R.useMemo(()=>({dataRef:o,open:t,onOpenChange:p,elements:v,events:a,floatingId:i,refs:b}),[t,p,v,a,i,b])}function kne(e){e===void 0&&(e={});const{nodeId:t}=e,n=One({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=R.useState(null),[l,f]=R.useState(null),p=(i==null?void 0:i.domReference)||o,b=R.useRef(null),v=Dne();PS(()=>{p&&(b.current=p)},[p]);const x=aD({...e,elements:{...i,...l&&{reference:l}}}),S=R.useCallback(O=>{const A=Co(O)?{getBoundingClientRect:()=>O.getBoundingClientRect(),contextElement:O}:O;f(A),x.refs.setReference(A)},[x.refs]),w=R.useCallback(O=>{(Co(O)||O===null)&&(b.current=O,a(O)),(Co(x.refs.reference.current)||x.refs.reference.current===null||O!==null&&!Co(O))&&x.refs.setReference(O)},[x.refs]),k=R.useMemo(()=>({...x.refs,setReference:w,setPositionReference:S,domReference:b}),[x.refs,w,S]),_=R.useMemo(()=>({...x.elements,domReference:p}),[x.elements,p]),N=R.useMemo(()=>({...x,...r,refs:k,elements:_,nodeId:t}),[x,k,_,t,r]);return PS(()=>{r.dataRef.current.floatingContext=N;const O=v==null?void 0:v.nodesRef.current.find(A=>A.id===t);O&&(O.context=N)}),R.useMemo(()=>({...x,context:N,refs:k,elements:_}),[x,k,_,N])}const O9="active",k9="selected";function jS(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[O9]:a,[k9]:l,...f}=e;o=f}return{...n==="floating"&&{tabIndex:-1,[Nne]:""},...o,...t.map(a=>{const l=a?a[n]:null;return typeof l=="function"?e?l(e):null:l}).concat(e).reduce((a,l)=>(l&&Object.entries(l).forEach(f=>{let[h,p]=f;if(!(i&&[O9,k9].includes(h)))if(h.indexOf("on")===0){if(r.has(h)||r.set(h,[]),typeof p=="function"){var b;(b=r.get(h))==null||b.push(p),a[h]=function(){for(var v,x=arguments.length,S=new Array(x),w=0;w<x;w++)S[w]=arguments[w];return(v=r.get(h))==null?void 0:v.map(k=>k(...S)).find(k=>k!==void 0)}}}else a[h]=p}),a),{})}}function Rne(e){e===void 0&&(e=[]);const t=e.map(l=>l==null?void 0:l.reference),n=e.map(l=>l==null?void 0:l.floating),r=e.map(l=>l==null?void 0:l.item),i=R.useCallback(l=>jS(l,e,"reference"),t),o=R.useCallback(l=>jS(l,e,"floating"),n),a=R.useCallback(l=>jS(l,e,"item"),r);return R.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a}),[i,o,a])}function R9(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const Mne=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:r,onFallbackChange:i,offset:o=0,index:a=0,minItemsVisible:l=4,referenceOverflowThreshold:f=0,scrollRef:h,...p}=za(e,t),{rects:b,elements:{floating:v}}=t,x=n.current[a],S=(h==null?void 0:h.current)||v,w=v.clientTop||S.clientTop,k=v.clientTop!==0,_=S.clientTop!==0,N=v===S;if(!x)return{};const O={...t,...await kx(-x.offsetTop-v.clientTop-b.reference.height/2-x.offsetHeight/2-o).fn(t)},A=await Nx(R9(O,S.scrollHeight+w+v.clientTop),p),L=await Nx(O,{...p,elementContext:"reference"}),P=fo(0,A.top),j=O.y+P,q=(S.scrollHeight>S.clientHeight?W=>W:v0)(fo(0,S.scrollHeight+(k&&N||_?w*2:0)-P-fo(0,A.bottom)));if(S.style.maxHeight=q+"px",S.scrollTop=P,i){const W=S.offsetHeight<x.offsetHeight*Iu(l,n.current.length)-1||L.top>=-f||L.bottom>=-f;wo.flushSync(()=>i(W))}return r&&(r.current=await Nx(R9({...O,y:j},S.offsetHeight+w+v.clientTop),p)),{y:j}}});function Lne(e,t){const{open:n,elements:r}=e,{enabled:i=!0,overflowRef:o,scrollRef:a,onChange:l}=t,f=A9(l),h=R.useRef(!1),p=R.useRef(null),b=R.useRef(null);R.useEffect(()=>{if(!i)return;function x(w){if(w.ctrlKey||!S||o.current==null)return;const k=w.deltaY,_=o.current.top>=-.5,N=o.current.bottom>=-.5,O=S.scrollHeight-S.clientHeight,A=k<0?-1:1,L=k<0?"max":"min";S.scrollHeight<=S.clientHeight||(!_&&k>0||!N&&k<0?(w.preventDefault(),wo.flushSync(()=>{f(P=>P+Math[L](k,O*A))})):/firefox/i.test(bne())&&(S.scrollTop+=k))}const S=(a==null?void 0:a.current)||r.floating;if(n&&S)return S.addEventListener("wheel",x),requestAnimationFrame(()=>{p.current=S.scrollTop,o.current!=null&&(b.current={...o.current})}),()=>{p.current=null,b.current=null,S.removeEventListener("wheel",x)}},[i,n,r.floating,o,a,f]);const v=R.useMemo(()=>({onKeyDown(){h.current=!0},onWheel(){h.current=!1},onPointerMove(){h.current=!1},onScroll(){const x=(a==null?void 0:a.current)||r.floating;if(!(!o.current||!x||!h.current)){if(p.current!==null){const S=x.scrollTop-p.current;(o.current.bottom<-.5&&S<-1||o.current.top<-.5&&S>1)&&wo.flushSync(()=>f(w=>w+S))}requestAnimationFrame(()=>{p.current=x.scrollTop})}}}),[r.floating,f,o,a]);return R.useMemo(()=>i?{floating:v}:{},[i,v])}let rm=R.createContext({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});rm.displayName="FloatingContext";let VS=R.createContext(null);VS.displayName="PlacementContext";function Ine(e){return R.useMemo(()=>e?typeof e=="string"?{to:e}:e:null,[e])}function Fne(){return R.useContext(rm).setReference}function Pne(){let{getFloatingProps:e,slot:t}=R.useContext(rm);return R.useCallback((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}function jne(e=null){e===!1&&(e=null),typeof e=="string"&&(e={to:e});let t=R.useContext(VS),n=R.useMemo(()=>e,[JSON.stringify(e,(i,o)=>{var a;return(a=o==null?void 0:o.outerHTML)!=null?a:o})]);jr(()=>{t==null||t(n??null)},[t,n]);let r=R.useContext(rm);return R.useMemo(()=>[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}let M9=4;function Vne({children:e,enabled:t=!0}){let[n,r]=R.useState(null),[i,o]=R.useState(0),a=R.useRef(null),[l,f]=R.useState(null);Bne(l);let h=t&&n!==null&&l!==null,{to:p="bottom",gap:b=0,offset:v=0,padding:x=0,inner:S}=$ne(n,l),[w,k="center"]=p.split(" ");jr(()=>{h&&o(0)},[h]);let{refs:_,floatingStyles:N,context:O}=kne({open:h,placement:w==="selection"?k==="center"?"bottom":`bottom-${k}`:k==="center"?`${w}`:`${w}-${k}`,strategy:"absolute",transform:!1,middleware:[kx({mainAxis:w==="selection"?0:b,crossAxis:v}),uD({padding:x}),w!=="selection"&&lD({padding:x}),w==="selection"&&S?Mne({...S,padding:x,overflowRef:a,offset:i,minItemsVisible:M9,referenceOverflowThreshold:x,onFallbackChange(W){var Z,X;if(!W)return;let ee=O.elements.floating;if(!ee)return;let H=parseFloat(getComputedStyle(ee).scrollPaddingBottom)||0,J=Math.min(M9,ee.childElementCount),ue=0,ne=0;for(let oe of(X=(Z=O.elements.floating)==null?void 0:Z.childNodes)!=null?X:[])if(kl(oe)){let K=oe.offsetTop,he=K+oe.clientHeight+H,se=ee.scrollTop,fe=se+ee.clientHeight;if(K>=se&&he<=fe)J--;else{ne=Math.max(0,Math.min(he,fe)-Math.max(K,se)),ue=oe.clientHeight;break}}J>=1&&o(oe=>{let K=ue*J-ne+H;return oe>=K?oe:K})}}):null,cD({padding:x,apply({availableWidth:W,availableHeight:Z,elements:X}){Object.assign(X.floating.style,{overflow:"auto",maxWidth:`${W}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${Z}px)`})}})].filter(Boolean),whileElementsMounted:rD}),[A=w,L=k]=O.placement.split("-");w==="selection"&&(A="selection");let P=R.useMemo(()=>({anchor:[A,L].filter(Boolean).join(" ")}),[A,L]),j=Lne(O,{overflowRef:a,onChange:o}),{getReferenceProps:F,getFloatingProps:B}=Rne([j]),q=xn(W=>{f(W),_.setFloating(W)});return R.createElement(VS.Provider,{value:r},R.createElement(rm.Provider,{value:{setFloating:q,setReference:_.setReference,styles:N,getReferenceProps:F,getFloatingProps:B,slot:P}},e))}function Bne(e){jr(()=>{if(!e)return;let t=new MutationObserver(()=>{let n=window.getComputedStyle(e).maxHeight,r=parseFloat(n);if(isNaN(r))return;let i=parseInt(n);isNaN(i)||r!==i&&(e.style.maxHeight=`${Math.ceil(r)}px`)});return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}},[e])}function $ne(e,t){var n,r,i;let o=BS((n=e==null?void 0:e.gap)!=null?n:"var(--anchor-gap, 0)",t),a=BS((r=e==null?void 0:e.offset)!=null?r:"var(--anchor-offset, 0)",t),l=BS((i=e==null?void 0:e.padding)!=null?i:"var(--anchor-padding, 0)",t);return{...e,gap:o,offset:a,padding:l}}function BS(e,t,n=void 0){let r=Z0(),i=xn((f,h)=>{if(f==null)return[n,null];if(typeof f=="number")return[f,null];if(typeof f=="string"){if(!h)return[n,null];let p=I9(f,h);return[p,b=>{let v=L9(f);{let x=v.map(S=>window.getComputedStyle(h).getPropertyValue(S));r.requestAnimationFrame(function S(){r.nextFrame(S);let w=!1;for(let[_,N]of v.entries()){let O=window.getComputedStyle(h).getPropertyValue(N);if(x[_]!==O){x[_]=O,w=!0;break}}if(!w)return;let k=I9(f,h);p!==k&&(b(k),p=k)})}return r.dispose}]}return[n,null]}),o=R.useMemo(()=>i(e,t)[0],[e,t]),[a=o,l]=R.useState();return jr(()=>{let[f,h]=i(e,t);if(l(f),!!h)return h(l)},[e,t]),a}function L9(e){let t=/var\((.*)\)/.exec(e);if(t){let n=t[1].indexOf(",");if(n===-1)return[t[1]];let r=t[1].slice(0,n).trim(),i=t[1].slice(n+1).trim();return i?[r,...L9(i)]:[r]}return[]}function I9(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}function Une({children:e,freeze:t}){let n=$S(t,e);return Mt.createElement(Mt.Fragment,null,n)}function $S(e,t){let[n,r]=R.useState(t);return!e&&n!==t&&r(t),e?n:t}let US=R.createContext(null);US.displayName="OpenClosedContext";var im=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(im||{});function Hne(){return R.useContext(US)}function zne({value:e,children:t}){return Mt.createElement(US.Provider,{value:e},t)}function qne(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let Ef=[];qne(()=>{function e(t){if(!yf(t.target)||t.target===document.body||Ef[0]===t.target)return;let n=t.target;n=n.closest(IS),Ef.unshift(n??t.target),Ef=Ef.filter(r=>r!=null&&r.isConnected),Ef.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 Gne(e){throw new Error("Unexpected object: "+e)}var ji=(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))(ji||{});function F9(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:{i===-1&&(i=n.length);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:Gne(e)}}var HS=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(HS||{});function P9(e){let t=xn(e),n=R.useRef(!1);R.useEffect(()=>(n.current=!1,()=>{n.current=!0,B8(()=>{n.current&&t()})}),[t])}function Wne(){let e=typeof document>"u";return"useSyncExternalStore"in Ap?(t=>t.useSyncExternalStore)(Ap)(()=>()=>{},()=>!1,()=>!e):!1}function Yne(){let e=Wne(),[t,n]=R.useState(mf.isHandoffComplete);return t&&mf.isHandoffComplete===!1&&n(!1),R.useEffect(()=>{t!==!0&&n(!0)},[t]),R.useEffect(()=>mf.handoff(),[]),e?!1:t}let Qne=R.createContext(!1);function Kne(){return R.useContext(Qne)}function Xne(e){let t=Kne(),n=R.useContext(V9),[r,i]=R.useState(()=>{var o;if(!t&&n!==null)return(o=n.current)!=null?o:null;if(mf.isServer)return null;let a=e==null?void 0:e.getElementById("headlessui-portal-root");if(a)return a;if(e===null)return null;let l=e.createElement("div");return l.setAttribute("id","headlessui-portal-root"),e.body.appendChild(l)});return R.useEffect(()=>{r!==null&&(e!=null&&e.body.contains(r)||e==null||e.body.appendChild(r))},[r,e]),R.useEffect(()=>{t||n!==null&&i(n.current)},[n,i,t]),r}let j9=R.Fragment,Zne=fa(function(e,t){let{ownerDocument:n=null,...r}=e,i=R.useRef(null),o=Uu(ite(x=>{i.current=x}),t),a=Z1(i),l=n??a,f=Xne(l),[h]=R.useState(()=>{var x;return mf.isServer?null:(x=l==null?void 0:l.createElement("div"))!=null?x:null}),p=R.useContext(nre),b=Yne();jr(()=>{!f||!h||f.contains(h)||(h.setAttribute("data-headlessui-portal",""),f.appendChild(h))},[f,h]),jr(()=>{if(h&&p)return p.register(h)},[p,h]),P9(()=>{var x;!f||!h||(_S(h)&&f.contains(h)&&f.removeChild(h),f.childNodes.length<=0&&((x=f.parentElement)==null||x.removeChild(f)))});let v=ca();return b?!f||!h?null:wo.createPortal(v({ourProps:{ref:o},theirProps:r,slot:{},defaultTag:j9,name:"Portal"}),h):null});function Jne(e,t){let n=Uu(t),{enabled:r=!0,ownerDocument:i,...o}=e,a=ca();return r?Mt.createElement(Zne,{...o,ownerDocument:i,ref:n}):a({ourProps:{ref:n},theirProps:o,slot:{},defaultTag:j9,name:"Portal"})}let ere=R.Fragment,V9=R.createContext(null);function tre(e,t){let{target:n,...r}=e,i={ref:Uu(t)},o=ca();return Mt.createElement(V9.Provider,{value:n},o({ourProps:i,theirProps:r,defaultTag:ere,name:"Popover.Group"}))}let nre=R.createContext(null),rre=fa(Jne),ire=fa(tre),ore=Object.assign(rre,{Group:ire});var sre=Object.defineProperty,are=(e,t,n)=>t in e?sre(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,B9=(e,t,n)=>(are(e,typeof t!="symbol"?t+"":t,n),n),Tn=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Tn||{}),as=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(as||{}),Rl=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(Rl||{}),$9=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.SetTyping=3]="SetTyping",e[e.RegisterOption=4]="RegisterOption",e[e.UnregisterOption=5]="UnregisterOption",e[e.DefaultToFirstOption=6]="DefaultToFirstOption",e[e.SetActivationTrigger=7]="SetActivationTrigger",e[e.UpdateVirtualConfiguration=8]="UpdateVirtualConfiguration",e[e.SetInputElement=9]="SetInputElement",e[e.SetButtonElement=10]="SetButtonElement",e[e.SetOptionsElement=11]="SetOptionsElement",e))($9||{});function zS(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((a,l)=>a.dataRef.current.order-l.dataRef.current.order):Wte(r,a=>a.dataRef.current.domRef.current),o=n?i.indexOf(n):null;return o===-1&&(o=null),{options:i,activeOptionIndex:o}}let ure={1(e){var t;return(t=e.dataRef.current)!=null&&t.disabled||e.comboboxState===1?e:{...e,activeOptionIndex:null,comboboxState:1,isTyping:!1,activationTrigger:2,__demoMode:!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,__demoMode:!1}}return{...e,comboboxState:0,__demoMode:!1}},3(e,t){return e.isTyping===t.isTyping?e:{...e,isTyping:t.isTyping}},2(e,t){var n,r,i,o;if((n=e.dataRef.current)!=null&&n.disabled||e.optionsElement&&!((r=e.dataRef.current)!=null&&r.optionsPropsRef.current.static)&&e.comboboxState===1)return e;if(e.virtual){let{options:h,disabled:p}=e.virtual,b=t.focus===ji.Specific?t.idx:F9(t,{resolveItems:()=>h,resolveActiveIndex:()=>{var x,S;return(S=(x=e.activeOptionIndex)!=null?x:h.findIndex(w=>!p(w)))!=null?S:null},resolveDisabled:p,resolveId(){throw new Error("Function not implemented.")}}),v=(i=t.trigger)!=null?i:2;return e.activeOptionIndex===b&&e.activationTrigger===v?e:{...e,activeOptionIndex:b,activationTrigger:v,isTyping:!1,__demoMode:!1}}let a=zS(e);if(a.activeOptionIndex===null){let h=a.options.findIndex(p=>!p.dataRef.current.disabled);h!==-1&&(a.activeOptionIndex=h)}let l=t.focus===ji.Specific?t.idx:F9(t,{resolveItems:()=>a.options,resolveActiveIndex:()=>a.activeOptionIndex,resolveId:h=>h.id,resolveDisabled:h=>h.dataRef.current.disabled}),f=(o=t.trigger)!=null?o:2;return e.activeOptionIndex===l&&e.activationTrigger===f?e:{...e,...a,isTyping:!1,activeOptionIndex:l,activationTrigger:f,__demoMode:!1}},4:(e,t)=>{var n,r,i,o;if((n=e.dataRef.current)!=null&&n.virtual)return{...e,options:[...e.options,t.payload]};let a=t.payload,l=zS(e,h=>(h.push(a),h));e.activeOptionIndex===null&&(i=(r=e.dataRef.current).isSelected)!=null&&i.call(r,t.payload.dataRef.current.value)&&(l.activeOptionIndex=l.options.indexOf(a));let f={...e,...l,activationTrigger:2};return(o=e.dataRef.current)!=null&&o.__demoMode&&e.dataRef.current.value===void 0&&(f.activeOptionIndex=0),f},5:(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=zS(e,i=>{let o=i.findIndex(a=>a.id===t.id);return o!==-1&&i.splice(o,1),i});return{...e,...r,activationTrigger:2}},6:(e,t)=>e.defaultToFirstOption===t.value?e:{...e,defaultToFirstOption:t.value},7:(e,t)=>e.activationTrigger===t.trigger?e:{...e,activationTrigger:t.trigger},8:(e,t)=>{var n,r;if(e.virtual===null)return{...e,virtual:{options:t.options,disabled:(n=t.disabled)!=null?n:()=>!1}};if(e.virtual.options===t.options&&e.virtual.disabled===t.disabled)return e;let i=e.activeOptionIndex;if(e.activeOptionIndex!==null){let o=t.options.indexOf(e.virtual.options[e.activeOptionIndex]);o!==-1?i=o:i=null}return{...e,activeOptionIndex:i,virtual:{options:t.options,disabled:(r=t.disabled)!=null?r:()=>!1}}},9:(e,t)=>e.inputElement===t.element?e:{...e,inputElement:t.element},10:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},11:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element}};class qS extends u9{constructor(t){super(t),B9(this,"actions",{onChange:n=>{let{onChange:r,compare:i,mode:o,value:a}=this.state.dataRef.current;return Za(o,{0:()=>r==null?void 0:r(n),1:()=>{let l=a.slice(),f=l.findIndex(h=>i(h,n));return f===-1?l.push(n):l.splice(f,1),r==null?void 0:r(l)}})},registerOption:(n,r)=>(this.send({type:4,payload:{id:n,dataRef:r}}),()=>{this.state.activeOptionIndex===this.state.dataRef.current.calculateIndex(r.current.value)&&this.send({type:6,value:!0}),this.send({type:5,id:n})}),goToOption:(n,r)=>(this.send({type:6,value:!1}),this.send({type:2,...n,trigger:r})),setIsTyping:n=>{this.send({type:3,isTyping:n})},closeCombobox:()=>{var n,r;this.send({type:1}),this.send({type:6,value:!1}),(r=(n=this.state.dataRef.current).onClose)==null||r.call(n)},openCombobox:()=>{this.send({type:0}),this.send({type:6,value:!0})},setActivationTrigger:n=>{this.send({type:7,trigger:n})},selectActiveOption:()=>{let n=this.selectors.activeOptionIndex(this.state);if(n!==null){if(this.actions.setIsTyping(!1),this.state.virtual)this.actions.onChange(this.state.virtual.options[n]);else{let{dataRef:r}=this.state.options[n];this.actions.onChange(r.current.value)}this.actions.goToOption({focus:ji.Specific,idx:n})}},setInputElement:n=>{this.send({type:9,element:n})},setButtonElement:n=>{this.send({type:10,element:n})},setOptionsElement:n=>{this.send({type:11,element:n})}}),B9(this,"selectors",{activeDescendantId:n=>{var r,i;let o=this.selectors.activeOptionIndex(n);if(o!==null)return n.virtual?(i=n.options.find(a=>!a.dataRef.current.disabled&&n.dataRef.current.compare(a.dataRef.current.value,n.virtual.options[o])))==null?void 0:i.id:(r=n.options[o])==null?void 0:r.id},activeOptionIndex:n=>{if(n.defaultToFirstOption&&n.activeOptionIndex===null&&(n.virtual?n.virtual.options.length>0:n.options.length>0)){if(n.virtual){let{options:i,disabled:o}=n.virtual,a=i.findIndex(l=>{var f;return!((f=o==null?void 0:o(l))!=null&&f)});if(a!==-1)return a}let r=n.options.findIndex(i=>!i.dataRef.current.disabled);if(r!==-1)return r}return n.activeOptionIndex},activeOption:n=>{var r,i;let o=this.selectors.activeOptionIndex(n);return o===null?null:n.virtual?n.virtual.options[o??0]:(i=(r=n.options[o])==null?void 0:r.dataRef.current.value)!=null?i:null},isActive:(n,r,i)=>{var o;let a=this.selectors.activeOptionIndex(n);return a===null?!1:n.virtual?a===n.dataRef.current.calculateIndex(r):((o=n.options[a])==null?void 0:o.id)===i},shouldScrollIntoView:(n,r,i)=>!(n.virtual||n.__demoMode||n.comboboxState!==0||n.activationTrigger===0||!this.selectors.isActive(n,r,i))});{let n=this.state.id,r=kS.get(null);this.disposables.add(r.on(d9.Push,i=>{!r.selectors.isTop(i,n)&&this.state.comboboxState===0&&this.actions.closeCombobox()})),this.on(0,()=>r.actions.push(n)),this.on(1,()=>r.actions.pop(n))}}static new({id:t,virtual:n=null,__demoMode:r=!1}){var i;return new qS({id:t,dataRef:{current:{}},comboboxState:r?0:1,isTyping:!1,options:[],virtual:n?{options:n.options,disabled:(i=n.disabled)!=null?i:()=>!1}:null,activeOptionIndex:null,activationTrigger:2,inputElement:null,buttonElement:null,optionsElement:null,__demoMode:r})}reduce(t,n){return Za(n.type,ure,t,n)}}const U9=R.createContext(null);function om(e){let t=R.useContext(U9);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,H9),n}return t}function H9({id:e,virtual:t=null,__demoMode:n=!1}){let r=R.useMemo(()=>qS.new({id:e,virtual:t,__demoMode:n}),[]);return P9(()=>r.dispose()),r}let sm=R.createContext(null);sm.displayName="ComboboxDataContext";function ih(e){let t=R.useContext(sm);if(t===null){let n=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,ih),n}return t}let z9=R.createContext(null);function lre(e){let t=om("VirtualProvider"),n=ih("VirtualProvider"),{options:r}=n.virtual,i=Pi(t,x=>x.optionsElement),[o,a]=R.useMemo(()=>{let x=i;if(!x)return[0,0];let S=window.getComputedStyle(x);return[parseFloat(S.paddingBlockStart||S.paddingTop),parseFloat(S.paddingBlockEnd||S.paddingBottom)]},[i]),l=Cte({enabled:r.length!==0,scrollPaddingStart:o,scrollPaddingEnd:a,count:r.length,estimateSize(){return 40},getScrollElement(){return t.state.optionsElement},overscan:12}),[f,h]=R.useState(0);jr(()=>{h(x=>x+1)},[r]);let p=l.getVirtualItems(),b=Pi(t,x=>x.activationTrigger===Rl.Pointer),v=Pi(t,t.selectors.activeOptionIndex);return p.length===0?null:Mt.createElement(z9.Provider,{value:l},Mt.createElement("div",{style:{position:"relative",width:"100%",height:`${l.getTotalSize()}px`},ref:x=>{x&&(b||v!==null&&r.length>v&&l.scrollToIndex(v))}},p.map(x=>{var S;return Mt.createElement(R.Fragment,{key:x.key},Mt.cloneElement((S=e.children)==null?void 0:S.call(e,{...e.slot,option:r[x.index]}),{key:`${f}-${x.key}`,"data-index":x.index,"aria-setsize":r.length,"aria-posinset":x.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${x.start}px)`,overflowAnchor:"none"}}))})))}let cre=R.Fragment;function fre(e,t){let n=R.useId(),r=xS(),{value:i,defaultValue:o,onChange:a,form:l,name:f,by:h,invalid:p=!1,disabled:b=r||!1,onClose:v,__demoMode:x=!1,multiple:S=!1,immediate:w=!1,virtual:k=null,nullable:_,...N}=e,O=zee(o),[A=S?[]:void 0,L]=Hee(i,a,O),P=H9({id:n,virtual:k,__demoMode:x}),j=R.useRef({static:!1,hold:!1}),F=Ate(h),B=xn(ge=>k?h===null?k.options.indexOf(ge):k.options.findIndex(Ve=>F(Ve,ge)):P.state.options.findIndex(Ve=>F(Ve.dataRef.current.value,ge))),q=R.useCallback(ge=>Za(X.mode,{[as.Multi]:()=>A.some(Ve=>F(Ve,ge)),[as.Single]:()=>F(A,ge)}),[A]),W=Pi(P,ge=>ge.virtual),Z=xn(()=>v==null?void 0:v()),X=R.useMemo(()=>({__demoMode:x,immediate:w,optionsPropsRef:j,value:A,defaultValue:O,disabled:b,invalid:p,mode:S?as.Multi:as.Single,virtual:k?W:null,onChange:L,isSelected:q,calculateIndex:B,compare:F,onClose:Z}),[A,O,b,p,S,L,q,x,P,k,W,Z]);jr(()=>{var ge;k&&P.send({type:$9.UpdateVirtualConfiguration,options:k.options,disabled:(ge=k.disabled)!=null?ge:null})},[k,k==null?void 0:k.options,k==null?void 0:k.disabled]),jr(()=>{P.state.dataRef.current=X},[X]);let[ee,H,J,ue]=Pi(P,ge=>[ge.comboboxState,ge.buttonElement,ge.inputElement,ge.optionsElement]),ne=kS.get(null),oe=Pi(ne,R.useCallback(ge=>ne.selectors.isTop(ge,n),[ne,n]));Kte(oe,[H,J,ue],()=>P.actions.closeCombobox());let K=Pi(P,P.selectors.activeOptionIndex),he=Pi(P,P.selectors.activeOption),se=R.useMemo(()=>({open:ee===Tn.Open,disabled:b,invalid:p,activeIndex:K,activeOption:he,value:A}),[X,b,A,p,he,ee]),[fe,ae]=lte(),Ee=t===null?{}:{ref:t},ve=R.useCallback(()=>{if(O!==void 0)return L==null?void 0:L(O)},[L,O]),xe=ca();return Mt.createElement(ae,{value:fe,props:{htmlFor:J==null?void 0:J.id},slot:{open:ee===Tn.Open,disabled:b}},Mt.createElement(Vne,null,Mt.createElement(sm.Provider,{value:X},Mt.createElement(U9.Provider,{value:P},Mt.createElement(zne,{value:Za(ee,{[Tn.Open]:im.Open,[Tn.Closed]:im.Closed})},f!=null&&Mt.createElement(Qee,{disabled:b,data:A!=null?{[f]:A}:{},form:l,onReset:ve}),xe({ourProps:Ee,theirProps:N,slot:se,defaultTag:cre,name:"Combobox"}))))))}let dre="input";function hre(e,t){var n,r;let i=om("Combobox.Input"),o=ih("Combobox.Input"),a=R.useId(),l=W8(),{id:f=l||`headlessui-combobox-input-${a}`,onChange:h,displayValue:p,disabled:b=o.disabled||!1,autoFocus:v=!1,type:x="text",...S}=e,[w]=Pi(i,ae=>[ae.inputElement]),k=R.useRef(null),_=Uu(k,t,Fne(),i.actions.setInputElement),N=Z1(w),[O,A]=Pi(i,ae=>[ae.comboboxState,ae.isTyping]),L=Z0(),P=xn(()=>{i.actions.onChange(null),i.state.optionsElement&&(i.state.optionsElement.scrollTop=0),i.actions.goToOption({focus:ji.Nothing})}),j=R.useMemo(()=>{var ae;return typeof p=="function"&&o.value!==void 0?(ae=p(o.value))!=null?ae:"":typeof o.value=="string"?o.value:""},[o.value,p]);C9(([ae,Ee],[ve,xe])=>{if(i.state.isTyping)return;let ge=k.current;ge&&((xe===Tn.Open&&Ee===Tn.Closed||ae!==ve)&&(ge.value=ae),requestAnimationFrame(()=>{if(i.state.isTyping||!ge||(N==null?void 0:N.activeElement)!==ge)return;let{selectionStart:Ve,selectionEnd:Xe}=ge;Math.abs((Xe??0)-(Ve??0))===0&&Ve===0&&ge.setSelectionRange(ge.value.length,ge.value.length)}))},[j,O,N,A]),C9(([ae],[Ee])=>{if(ae===Tn.Open&&Ee===Tn.Closed){if(i.state.isTyping)return;let ve=k.current;if(!ve)return;let xe=ve.value,{selectionStart:ge,selectionEnd:Ve,selectionDirection:Xe}=ve;ve.value="",ve.value=xe,Xe!==null?ve.setSelectionRange(ge,Ve,Xe):ve.setSelectionRange(ge,Ve)}},[O]);let F=R.useRef(!1),B=xn(()=>{F.current=!0}),q=xn(()=>{L.nextFrame(()=>{F.current=!1})}),W=xn(ae=>{switch(i.actions.setIsTyping(!0),ae.key){case Do.Enter:if(i.state.comboboxState!==Tn.Open||F.current)return;if(ae.preventDefault(),ae.stopPropagation(),i.selectors.activeOptionIndex(i.state)===null){i.actions.closeCombobox();return}i.actions.selectActiveOption(),o.mode===as.Single&&i.actions.closeCombobox();break;case Do.ArrowDown:return ae.preventDefault(),ae.stopPropagation(),Za(i.state.comboboxState,{[Tn.Open]:()=>i.actions.goToOption({focus:ji.Next}),[Tn.Closed]:()=>i.actions.openCombobox()});case Do.ArrowUp:return ae.preventDefault(),ae.stopPropagation(),Za(i.state.comboboxState,{[Tn.Open]:()=>i.actions.goToOption({focus:ji.Previous}),[Tn.Closed]:()=>{wo.flushSync(()=>i.actions.openCombobox()),o.value||i.actions.goToOption({focus:ji.Last})}});case Do.Home:if(ae.shiftKey)break;return ae.preventDefault(),ae.stopPropagation(),i.actions.goToOption({focus:ji.First});case Do.PageUp:return ae.preventDefault(),ae.stopPropagation(),i.actions.goToOption({focus:ji.First});case Do.End:if(ae.shiftKey)break;return ae.preventDefault(),ae.stopPropagation(),i.actions.goToOption({focus:ji.Last});case Do.PageDown:return ae.preventDefault(),ae.stopPropagation(),i.actions.goToOption({focus:ji.Last});case Do.Escape:return i.state.comboboxState!==Tn.Open?void 0:(ae.preventDefault(),i.state.optionsElement&&!o.optionsPropsRef.current.static&&ae.stopPropagation(),o.mode===as.Single&&o.value===null&&P(),i.actions.closeCombobox());case Do.Tab:if(i.state.comboboxState!==Tn.Open)return;o.mode===as.Single&&i.state.activationTrigger!==Rl.Focus&&i.actions.selectActiveOption(),i.actions.closeCombobox();break}}),Z=xn(ae=>{h==null||h(ae),o.mode===as.Single&&ae.target.value===""&&P(),i.actions.openCombobox()}),X=xn(ae=>{var Ee,ve,xe;let ge=(Ee=ae.relatedTarget)!=null?Ee:Ef.find(Ve=>Ve!==ae.currentTarget);if(!((ve=i.state.optionsElement)!=null&&ve.contains(ge))&&!((xe=i.state.buttonElement)!=null&&xe.contains(ge))&&i.state.comboboxState===Tn.Open)return ae.preventDefault(),o.mode===as.Single&&o.value===null&&P(),i.actions.closeCombobox()}),ee=xn(ae=>{var Ee,ve,xe;let ge=(Ee=ae.relatedTarget)!=null?Ee:Ef.find(Ve=>Ve!==ae.currentTarget);(ve=i.state.buttonElement)!=null&&ve.contains(ge)||(xe=i.state.optionsElement)!=null&&xe.contains(ge)||o.disabled||o.immediate&&i.state.comboboxState!==Tn.Open&&L.microTask(()=>{wo.flushSync(()=>i.actions.openCombobox()),i.actions.setActivationTrigger(Rl.Focus)})}),H=X1(),J=ote(),{isFocused:ue,focusProps:ne}=V8({autoFocus:v}),{isHovered:oe,hoverProps:K}=j8({isDisabled:b}),he=Pi(i,ae=>ae.optionsElement),se=R.useMemo(()=>({open:O===Tn.Open,disabled:b,invalid:o.invalid,hover:oe,focus:ue,autofocus:v}),[o,oe,ue,v,b,o.invalid]),fe=SS({ref:_,id:f,role:"combobox",type:x,"aria-controls":he==null?void 0:he.id,"aria-expanded":O===Tn.Open,"aria-activedescendant":Pi(i,i.selectors.activeDescendantId),"aria-labelledby":H,"aria-describedby":J,"aria-autocomplete":"list",defaultValue:(r=(n=e.defaultValue)!=null?n:o.defaultValue!==void 0?p==null?void 0:p(o.defaultValue):null)!=null?r:o.defaultValue,disabled:b||void 0,autoFocus:v,onCompositionStart:B,onCompositionEnd:q,onKeyDown:W,onChange:Z,onFocus:ee,onBlur:X},ne,K);return ca()({ourProps:fe,theirProps:S,slot:se,defaultTag:dre,name:"Combobox.Input"})}let pre="button";function mre(e,t){let n=om("Combobox.Button"),r=ih("Combobox.Button"),[i,o]=R.useState(null),a=Uu(t,o,n.actions.setButtonElement),l=R.useId(),{id:f=`headlessui-combobox-button-${l}`,disabled:h=r.disabled||!1,autoFocus:p=!1,...b}=e,[v,x,S]=Pi(n,Z=>[Z.comboboxState,Z.inputElement,Z.optionsElement]),w=x9(x),k=v===Tn.Open;Jte(k,{trigger:i,action:R.useCallback(Z=>{if(i!=null&&i.contains(Z.target)||x!=null&&x.contains(Z.target))return nm.Ignore;let X=Z.target.closest('[role="option"]:not([data-disabled])');return kl(X)?nm.Select(X):S!=null&&S.contains(Z.target)?nm.Ignore:nm.Close},[i,x,S]),close:n.actions.closeCombobox,select:n.actions.selectActiveOption});let _=xn(Z=>{switch(Z.key){case Do.Space:case Do.Enter:Z.preventDefault(),Z.stopPropagation(),n.state.comboboxState===Tn.Closed&&wo.flushSync(()=>n.actions.openCombobox()),w();return;case Do.ArrowDown:Z.preventDefault(),Z.stopPropagation(),n.state.comboboxState===Tn.Closed&&(wo.flushSync(()=>n.actions.openCombobox()),n.state.dataRef.current.value||n.actions.goToOption({focus:ji.First})),w();return;case Do.ArrowUp:Z.preventDefault(),Z.stopPropagation(),n.state.comboboxState===Tn.Closed&&(wo.flushSync(()=>n.actions.openCombobox()),n.state.dataRef.current.value||n.actions.goToOption({focus:ji.Last})),w();return;case Do.Escape:if(n.state.comboboxState!==Tn.Open)return;Z.preventDefault(),n.state.optionsElement&&!r.optionsPropsRef.current.static&&Z.stopPropagation(),wo.flushSync(()=>n.actions.closeCombobox()),w();return;default:return}}),N=xn(Z=>{Z.preventDefault(),!nte(Z.currentTarget)&&(Z.button===HS.Left&&(n.state.comboboxState===Tn.Open?n.actions.closeCombobox():n.actions.openCombobox()),w())}),O=X1([f]),{isFocusVisible:A,focusProps:L}=V8({autoFocus:p}),{isHovered:P,hoverProps:j}=j8({isDisabled:h}),{pressed:F,pressProps:B}=Fee({disabled:h}),q=R.useMemo(()=>({open:v===Tn.Open,active:F||v===Tn.Open,disabled:h,invalid:r.invalid,value:r.value,hover:P,focus:A}),[r,P,A,F,h,v]),W=SS({ref:a,id:f,type:tne(e,i),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":S==null?void 0:S.id,"aria-expanded":v===Tn.Open,"aria-labelledby":O,disabled:h||void 0,autoFocus:p,onPointerDown:N,onKeyDown:_},L,j,B);return ca()({ourProps:W,theirProps:b,slot:q,defaultTag:pre,name:"Combobox.Button"})}let gre="div",vre=TS.RenderStrategy|TS.Static;function yre(e,t){var n,r,i;let o=R.useId(),{id:a=`headlessui-combobox-options-${o}`,hold:l=!1,anchor:f,portal:h=!1,modal:p=!0,transition:b=!1,...v}=e,x=om("Combobox.Options"),S=ih("Combobox.Options"),w=Ine(f);w&&(h=!0);let[k,_]=jne(w),[N,O]=R.useState(null),A=Pne(),L=Uu(t,w?k:null,x.actions.setOptionsElement,O),[P,j,F,B,q]=Pi(x,Xe=>[Xe.comboboxState,Xe.inputElement,Xe.buttonElement,Xe.optionsElement,Xe.activationTrigger]),W=Z1(j||F),Z=Z1(B),X=Hne(),[ee,H]=pne(b,N,X!==null?(X&im.Open)===im.Open:P===Tn.Open);$te(ee,j,x.actions.closeCombobox);let J=S.__demoMode?!1:p&&P===Tn.Open;lne(J,Z);let ue=S.__demoMode?!1:p&&P===Tn.Open;Bte(ue,{allowed:R.useCallback(()=>[j,F,B],[j,F,B])}),jr(()=>{var Xe;S.optionsPropsRef.current.static=(Xe=e.static)!=null?Xe:!1},[S.optionsPropsRef,e.static]),jr(()=>{S.optionsPropsRef.current.hold=l},[S.optionsPropsRef,l]),yne(P===Tn.Open,{container:B,accept(Xe){return Xe.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:Xe.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(Xe){Xe.setAttribute("role","none")}});let ne=X1([F==null?void 0:F.id]),oe=R.useMemo(()=>({open:P===Tn.Open,option:void 0}),[P]),K=xn(()=>{x.actions.setActivationTrigger(Rl.Pointer)}),he=xn(Xe=>{Xe.preventDefault(),x.actions.setActivationTrigger(Rl.Pointer)}),se=SS(w?A():{},{"aria-labelledby":ne,role:"listbox","aria-multiselectable":S.mode===as.Multi?!0:void 0,id:a,ref:L,style:{...v.style,..._,"--input-width":i9(j,!0).width,"--button-width":i9(F,!0).width},onWheel:q===Rl.Pointer?void 0:K,onMouseDown:he,...hne(H)}),fe=ee&&P===Tn.Closed,ae=$S(fe,(n=S.virtual)==null?void 0:n.options),Ee=$S(fe,S.value),ve=xn(Xe=>S.compare(Ee,Xe)),xe=R.useMemo(()=>{if(!S.virtual)return S;if(ae===void 0)throw new Error("Missing `options` in virtual mode");return ae!==S.virtual.options?{...S,virtual:{...S.virtual,options:ae}}:S},[S,ae,(r=S.virtual)==null?void 0:r.options]);S.virtual&&Object.assign(v,{children:Mt.createElement(sm.Provider,{value:xe},Mt.createElement(lre,{slot:oe},v.children))});let ge=ca(),Ve=R.useMemo(()=>S.mode===as.Multi?S:{...S,isSelected:ve},[S,ve]);return Mt.createElement(ore,{enabled:h?e.static||ee:!1,ownerDocument:W},Mt.createElement(sm.Provider,{value:Ve},ge({ourProps:se,theirProps:{...v,children:Mt.createElement(Une,{freeze:fe},typeof v.children=="function"?(i=v.children)==null?void 0:i.call(v,oe):v.children)},slot:oe,defaultTag:gre,features:vre,visible:ee,name:"Combobox.Options"})))}let bre="div";function Ere(e,t){var n,r,i;let o=ih("Combobox.Option"),a=om("Combobox.Option"),l=R.useId(),{id:f=`headlessui-combobox-option-${l}`,value:h,disabled:p=(i=(r=(n=o.virtual)==null?void 0:n.disabled)==null?void 0:r.call(n,h))!=null?i:!1,order:b=null,...v}=e,[x]=Pi(a,H=>[H.inputElement]),S=x9(x),w=Pi(a,R.useCallback(H=>a.selectors.isActive(H,h,f),[h,f])),k=o.isSelected(h),_=R.useRef(null),N=gf({disabled:p,value:h,domRef:_,order:b}),O=R.useContext(z9),A=Uu(t,_,O?O.measureElement:null),L=xn(()=>{a.actions.setIsTyping(!1),a.actions.onChange(h)});jr(()=>a.actions.registerOption(f,N),[N,f]);let P=Pi(a,R.useCallback(H=>a.selectors.shouldScrollIntoView(H,h,f),[h,f]));jr(()=>{if(P)return Xa().requestAnimationFrame(()=>{var H,J;(J=(H=_.current)==null?void 0:H.scrollIntoView)==null||J.call(H,{block:"nearest"})})},[P,_]);let j=xn(H=>{H.preventDefault(),H.button===HS.Left&&(p||(L(),FS()||requestAnimationFrame(()=>S()),o.mode===as.Single&&a.actions.closeCombobox()))}),F=xn(()=>{if(p)return a.actions.goToOption({focus:ji.Nothing});let H=o.calculateIndex(h);a.actions.goToOption({focus:ji.Specific,idx:H})}),B=cne(),q=xn(H=>B.update(H)),W=xn(H=>{if(!B.wasMoved(H)||p||w)return;let J=o.calculateIndex(h);a.actions.goToOption({focus:ji.Specific,idx:J},Rl.Pointer)}),Z=xn(H=>{B.wasMoved(H)&&(p||w&&(o.optionsPropsRef.current.hold||a.actions.goToOption({focus:ji.Nothing})))}),X=R.useMemo(()=>({active:w,focus:w,selected:k,disabled:p}),[w,k,p]),ee={id:f,ref:A,role:"option",tabIndex:p===!0?void 0:-1,"aria-disabled":p===!0?!0:void 0,"aria-selected":k,disabled:void 0,onMouseDown:j,onFocus:F,onPointerEnter:q,onMouseEnter:q,onPointerMove:W,onMouseMove:W,onPointerLeave:Z,onMouseLeave:Z};return ca()({ourProps:ee,theirProps:v,slot:X,defaultTag:bre,name:"Combobox.Option"})}let xre=fa(fre),Tre=fa(mre),q9=fa(hre),Sre=hte,G9=fa(yre),J1=fa(Ere),wre=Object.assign(xre,{Input:q9,Button:Tre,Label:Sre,Options:G9,Option:J1});const Cre=()=>{const e=it.c(32),t=fS(),{push:n}=H1(),r=R.useRef(null),i=_re(),[o,a]=R.useState("");let l;e[0]!==i||e[1]!==o?(l=()=>i(o),e[0]=i,e[1]=o,e[2]=l):l=e[2];const[f,h]=R.useState(l);let p;e[3]!==i?(p=Md(200,ee=>{h(i(ee))}),e[3]=i,e[4]=p):p=e[4];const b=p,[v]=R.useState(r),x=v.current===document.activeElement;let S,w;e[5]!==b||e[6]!==o?(S=()=>{b(o)},w=[b,o],e[5]=b,e[6]=o,e[7]=S,e[8]=w):(S=e[7],w=e[8]),R.useEffect(S,w);let k,_;e[9]===Symbol.for("react.memo_cache_sentinel")?(k=()=>{const ee=function(J){J.metaKey&&J.key==="k"&&r.current.focus()};return window.addEventListener("keydown",ee),()=>window.removeEventListener("keydown",ee)},_=[],e[9]=k,e[10]=_):(k=e[9],_=e[10]),R.useEffect(k,_);let N,O,A;if(e[11]!==t||e[12]!==n){N=t.at(-1);let ee;e[16]!==n?(ee=H=>{n("field"in H?{name:H.field.name,def:H.field}:{name:H.type.name,def:H.type})},e[16]=n,e[17]=ee):ee=e[17],O=ee,A=t.length===1||_t(N.def)||Ot(N.def)||sn(N.def),e[11]=t,e[12]=n,e[13]=N,e[14]=O,e[15]=A}else N=e[13],O=e[14],A=e[15];if(!A)return null;const P=x?void 0:"idle",j=`Search ${N.name}...`;let F,B;e[18]===Symbol.for("react.memo_cache_sentinel")?(B=()=>{r.current.focus()},F=$.jsx(PH,{}),e[18]=F,e[19]=B):(F=e[18],B=e[19]);let q;e[20]===Symbol.for("react.memo_cache_sentinel")?(q=ee=>a(ee.target.value),e[20]=q):q=e[20];let W;e[21]!==o?(W=$.jsxs("div",{className:"graphiql-doc-explorer-search-input",onClick:B,children:[F,$.jsx(q9,{autoComplete:"off",onChange:q,placeholder:`${wE?"⌘":"Ctrl"} K`,ref:r,value:o,"data-cy":"doc-explorer-input"})]}),e[21]=o,e[22]=W):W=e[22];let Z;e[23]!==x||e[24]!==f?(Z=x&&$.jsxs(G9,{"data-cy":"doc-explorer-list",children:[f.within.length+f.types.length+f.fields.length===0?$.jsx("li",{className:"graphiql-doc-explorer-search-empty",children:"No results found"}):f.within.map(Are),f.within.length>0&&f.types.length+f.fields.length>0?$.jsx("div",{className:"graphiql-doc-explorer-search-divider",children:"Other results"}):null,f.types.map(Dre),f.fields.map(Nre)]}),e[23]=x,e[24]=f,e[25]=Z):Z=e[25];let X;return e[26]!==O||e[27]!==W||e[28]!==Z||e[29]!==P||e[30]!==j?(X=$.jsxs(wre,{as:"div",className:"graphiql-doc-explorer-search",onChange:O,"data-state":P,"aria-label":j,children:[W,Z]}),e[26]=O,e[27]=W,e[28]=Z,e[29]=P,e[30]=j,e[31]=X):X=e[31],X};function _re(){const e=it.c(5),t=fS(),{schema:n}=Ns();let r;e[0]!==t?(r=t.at(-1),e[0]=t,e[1]=r):r=e[1];const i=r;let o;return e[2]!==i||e[3]!==n?(o=a=>{const l={within:[],types:[],fields:[]};if(!n)return l;const f=i.def,h=n.getTypeMap();let p=Object.keys(h);f&&(p=p.filter(b=>b!==f.name),p.unshift(f.name));for(const b of p){if(l.within.length+l.types.length+l.fields.length>=100)break;const v=h[b];if(f!==v&&GS(b,a)&&l.types.push({type:v}),!_t(v)&&!Ot(v)&&!sn(v))continue;const x=v.getFields();for(const S in x){const w=x[S];let k;if(!GS(S,a))if("args"in w){if(k=w.args.filter(_=>GS(_.name,a)),k.length===0)continue}else continue;l[f===v?"within":"fields"].push(...k?k.map(_=>({type:v,field:w,argument:_})):[{type:v,field:w}])}}return l},e[2]=i,e[3]=n,e[4]=o):o=e[4],o}function GS(e,t){try{const n=t.replaceAll(/[^_0-9A-Za-z]/g,r=>"\\"+r);return new RegExp(n,"i").test(e)}catch{return e.toLowerCase().includes(t.toLowerCase())}}const WS=e=>{const t=it.c(2),{type:n}=e;let r;return t[0]!==n.name?(r=$.jsx("span",{className:"graphiql-doc-explorer-search-type",children:n.name}),t[0]=n.name,t[1]=r):r=t[1],r},W9=e=>{const t=it.c(7),{field:n,argument:r}=e;let i;t[0]!==n.name?(i=$.jsx("span",{className:"graphiql-doc-explorer-search-field",children:n.name}),t[0]=n.name,t[1]=i):i=t[1];let o;t[2]!==r?(o=r?$.jsxs($.Fragment,{children:["(",$.jsx("span",{className:"graphiql-doc-explorer-search-argument",children:r.name}),":"," ",z1(r.type,Ore),")"]}):null,t[2]=r,t[3]=o):o=t[3];let a;return t[4]!==i||t[5]!==o?(a=$.jsxs($.Fragment,{children:[i,o]}),t[4]=i,t[5]=o,t[6]=a):a=t[6],a};function Are(e,t){return $.jsx(J1,{value:e,"data-cy":"doc-explorer-option",children:$.jsx(W9,{field:e.field,argument:e.argument})},`within-${t}`)}function Dre(e,t){return $.jsx(J1,{value:e,"data-cy":"doc-explorer-option",children:$.jsx(WS,{type:e.type})},`type-${t}`)}function Nre(e,t){return $.jsxs(J1,{value:e,"data-cy":"doc-explorer-option",children:[$.jsx(WS,{type:e.type}),".",$.jsx(W9,{field:e.field,argument:e.argument})]},`field-${t}`)}function Ore(e){return $.jsx(WS,{type:e})}const kre=e=>{const t=it.c(6),{field:n}=e,{push:r}=H1();let i;t[0]!==n||t[1]!==r?(i=a=>{a.preventDefault(),r({name:n.name,def:n})},t[0]=n,t[1]=r,t[2]=i):i=t[2];let o;return t[3]!==n.name||t[4]!==i?(o=$.jsx("a",{className:"graphiql-doc-explorer-field-name",onClick:i,href:"#",children:n.name}),t[3]=n.name,t[4]=i,t[5]=o):o=t[5],o},Rre=e=>{const t=it.c(2),{type:n}=e;let r;return t[0]!==n?(r=Ou(n)?$.jsxs($.Fragment,{children:[n.description?$.jsx(Wa,{type:"description",children:n.description}):null,$.jsx(Mre,{type:n}),$.jsx(Lre,{type:n}),$.jsx(Ire,{type:n}),$.jsx(Fre,{type:n})]}):null,t[0]=n,t[1]=r):r=t[1],r},Mre=e=>{const t=it.c(5),{type:n}=e;if(!_t(n))return null;let r;t[0]!==n?(r=n.getInterfaces(),t[0]=n,t[1]=r):r=t[1];const i=r;let o;return t[2]!==i.length||t[3]!==n?(o=i.length>0?$.jsx(Is,{title:"Implements",children:n.getInterfaces().map(Pre)}):null,t[2]=i.length,t[3]=n,t[4]=o):o=t[4],o},Lre=e=>{const t=it.c(12),{type:n}=e,[r,i]=R.useState(!1);let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{i(!0)},t[0]=o):o=t[0];const a=o;if(!_t(n)&&!Ot(n)&&!sn(n))return null;let l,f,h;if(t[1]!==n){const v=n.getFields();f=[],l=[];for(const x of Object.keys(v).map(S=>v[S]))x.deprecationReason?l.push(x):f.push(x);h=f.length>0?$.jsx(Is,{title:"Fields",children:f.map(jre)}):null,t[1]=n,t[2]=l,t[3]=f,t[4]=h}else l=t[2],f=t[3],h=t[4];let p;t[5]!==l||t[6]!==f.length||t[7]!==r?(p=l.length>0?r||f.length===0?$.jsx(Is,{title:"Deprecated Fields",children:l.map(Vre)}):$.jsx(sa,{type:"button",onClick:a,children:"Show Deprecated Fields"}):null,t[5]=l,t[6]=f.length,t[7]=r,t[8]=p):p=t[8];let b;return t[9]!==h||t[10]!==p?(b=$.jsxs($.Fragment,{children:[h,p]}),t[9]=h,t[10]=p,t[11]=b):b=t[11],b},Y9=e=>{const t=it.c(22),{field:n}=e;let r,i,o;if(t[0]!==n){const v="args"in n?n.args.filter(Bre):[];o="graphiql-doc-explorer-item",r=$.jsx(kre,{field:n}),i=v.length>0?$.jsxs($.Fragment,{children:["(",$.jsx("span",{children:v.map(x=>v.length===1?$.jsx(q1,{arg:x,inline:!0},x.name):$.jsx("div",{className:"graphiql-doc-explorer-argument-multiple",children:$.jsx(q1,{arg:x,inline:!0})},x.name))}),")"]}):null,t[0]=n,t[1]=r,t[2]=i,t[3]=o}else r=t[1],i=t[2],o=t[3];let a;t[4]!==n.type?(a=$.jsx($u,{type:n.type}),t[4]=n.type,t[5]=a):a=t[5];let l;t[6]!==n?(l=$.jsx(S8,{field:n}),t[6]=n,t[7]=l):l=t[7];let f;t[8]!==r||t[9]!==i||t[10]!==a||t[11]!==l?(f=$.jsxs("div",{children:[r,i,": ",a,l]}),t[8]=r,t[9]=i,t[10]=a,t[11]=l,t[12]=f):f=t[12];let h;t[13]!==n.description?(h=n.description?$.jsx(Wa,{type:"description",onlyShowFirstChild:!0,children:n.description}):null,t[13]=n.description,t[14]=h):h=t[14];let p;t[15]!==n.deprecationReason?(p=$.jsx(w8,{children:n.deprecationReason}),t[15]=n.deprecationReason,t[16]=p):p=t[16];let b;return t[17]!==o||t[18]!==f||t[19]!==h||t[20]!==p?(b=$.jsxs("div",{className:o,children:[f,h,p]}),t[17]=o,t[18]=f,t[19]=h,t[20]=p,t[21]=b):b=t[21],b},Ire=e=>{const t=it.c(12),{type:n}=e,[r,i]=R.useState(!1);let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=()=>{i(!0)},t[0]=o):o=t[0];const a=o;if(!Xn(n))return null;let l,f,h;if(t[1]!==n){h=[],l=[];for(const v of n.getValues())v.deprecationReason?l.push(v):h.push(v);f=h.length>0?$.jsx(Is,{title:"Enum Values",children:h.map($re)}):null,t[1]=n,t[2]=l,t[3]=f,t[4]=h}else l=t[2],f=t[3],h=t[4];let p;t[5]!==l||t[6]!==r||t[7]!==h.length?(p=l.length>0?r||h.length===0?$.jsx(Is,{title:"Deprecated Enum Values",children:l.map(Ure)}):$.jsx(sa,{type:"button",onClick:a,children:"Show Deprecated Values"}):null,t[5]=l,t[6]=r,t[7]=h.length,t[8]=p):p=t[8];let b;return t[9]!==f||t[10]!==p?(b=$.jsxs($.Fragment,{children:[f,p]}),t[9]=f,t[10]=p,t[11]=b):b=t[11],b},Q9=e=>{const t=it.c(10),{value:n}=e;let r;t[0]!==n.name?(r=$.jsx("div",{className:"graphiql-doc-explorer-enum-value",children:n.name}),t[0]=n.name,t[1]=r):r=t[1];let i;t[2]!==n.description?(i=n.description&&$.jsx(Wa,{type:"description",children:n.description}),t[2]=n.description,t[3]=i):i=t[3];let o;t[4]!==n.deprecationReason?(o=n.deprecationReason&&$.jsx(Wa,{type:"deprecation",children:n.deprecationReason}),t[4]=n.deprecationReason,t[5]=o):o=t[5];let a;return t[6]!==r||t[7]!==i||t[8]!==o?(a=$.jsxs("div",{className:"graphiql-doc-explorer-item",children:[r,i,o]}),t[6]=r,t[7]=i,t[8]=o,t[9]=a):a=t[9],a},Fre=e=>{const t=it.c(6),{type:n}=e,{schema:r}=Ns();if(!r||!cr(n))return null;const i=Ot(n)?"Implementations":"Possible Types";let o;t[0]!==r||t[1]!==n?(o=r.getPossibleTypes(n).map(Hre),t[0]=r,t[1]=n,t[2]=o):o=t[2];let a;return t[3]!==i||t[4]!==o?(a=$.jsx(Is,{title:i,children:o}),t[3]=i,t[4]=o,t[5]=a):a=t[5],a};function Pre(e){return $.jsx("div",{children:$.jsx($u,{type:e})},e.name)}function jre(e){return $.jsx(Y9,{field:e},e.name)}function Vre(e){return $.jsx(Y9,{field:e},e.name)}function Bre(e){return!e.deprecationReason}function $re(e){return $.jsx(Q9,{value:e},e.name)}function Ure(e){return $.jsx(Q9,{value:e},e.name)}function Hre(e){return $.jsx("div",{children:$.jsx($u,{type:e})},e.name)}const K9={title:"Documentation Explorer",icon:function(){const{visiblePlugin:t}=Nv();return t===K9?$.jsx(OH,{}):$.jsx(kH,{})},content:()=>{const e=it.c(38),{fetchError:t,isFetching:n,schema:r,validationErrors:i}=Ns(),o=fS(),{pop:a}=H1();let l,f;if(e[0]!==o||e[1]!==t||e[2]!==n||e[3]!==r||e[4]!==i){if(f=o.at(-1),l=null,t){let _;e[7]===Symbol.for("react.memo_cache_sentinel")?(_=$.jsx("div",{className:"graphiql-doc-explorer-error",children:"Error fetching schema"}),e[7]=_):_=e[7],l=_}else if(i.length>0){let _;e[8]!==i[0].message?(_=$.jsxs("div",{className:"graphiql-doc-explorer-error",children:["Schema is invalid: ",i[0].message]}),e[8]=i[0].message,e[9]=_):_=e[9],l=_}else if(n){let _;e[10]===Symbol.for("react.memo_cache_sentinel")?(_=$.jsx(zx,{}),e[10]=_):_=e[10],l=_}else if(r){if(o.length===1){let _;e[12]!==r?(_=$.jsx(lee,{schema:r}),e[12]=r,e[13]=_):_=e[13],l=_}else if(bd(f.def)){let _;e[14]!==f.def?(_=$.jsx(Rre,{type:f.def}),e[14]=f.def,e[15]=_):_=e[15],l=_}else if(f.def){let _;e[16]!==f.def?(_=$.jsx(ree,{field:f.def}),e[16]=f.def,e[17]=_):_=e[17],l=_}}else{let _;e[11]===Symbol.for("react.memo_cache_sentinel")?(_=$.jsx("div",{className:"graphiql-doc-explorer-error",children:"No GraphQL schema available"}),e[11]=_):_=e[11],l=_}e[0]=o,e[1]=t,e[2]=n,e[3]=r,e[4]=i,e[5]=l,e[6]=f}else l=e[5],f=e[6];let h;if(o.length>1){let _;e[18]!==o?(_=o.at(-2),e[18]=o,e[19]=_):_=e[19],h=_.name}let p;e[20]!==a||e[21]!==h?(p=h&&$.jsxs("a",{href:"#",className:"graphiql-doc-explorer-back",onClick:_=>{_.preventDefault(),a()},"aria-label":`Go back to ${h}`,children:[$.jsx(SH,{}),h]}),e[20]=a,e[21]=h,e[22]=p):p=e[22];let b;e[23]!==f.name?(b=$.jsx("div",{className:"graphiql-doc-explorer-title",children:f.name}),e[23]=f.name,e[24]=b):b=e[24];let v;e[25]!==p||e[26]!==b?(v=$.jsxs("div",{className:"graphiql-doc-explorer-header-content",children:[p,b]}),e[25]=p,e[26]=b,e[27]=v):v=e[27];let x;e[28]!==f.name?(x=$.jsx(Cre,{},f.name),e[28]=f.name,e[29]=x):x=e[29];let S;e[30]!==v||e[31]!==x?(S=$.jsxs("div",{className:"graphiql-doc-explorer-header",children:[v,x]}),e[30]=v,e[31]=x,e[32]=S):S=e[32];let w;e[33]!==l?(w=$.jsx("div",{className:"graphiql-doc-explorer-content",children:l}),e[33]=l,e[34]=w):w=e[34];let k;return e[35]!==S||e[36]!==w?(k=$.jsxs("section",{className:"graphiql-doc-explorer","aria-label":"Documentation Explorer",children:[S,w]}),e[35]=S,e[36]=w,e[37]=k):k=e[37],k}},zre=e=>{var t,n;const r=it.c(72);let i,o,a,l,f,h,p,b,v,x,S,w,k,_,N,O,A,L,P,j,F,B,q,W,Z,X,ee,H,J;r[0]!==e?({dangerouslyAssumeSchemaIsValid:o,confirmCloseTab:i,defaultQuery:l,defaultTabs:f,externalFragments:h,fetcher:p,getDefaultFieldNames:b,headers:v,inputValueDeprecation:x,introspectionQueryName:S,maxHistoryLength:w,onEditOperationName:k,onSchemaChange:_,onTabChange:N,onTogglePluginVisibility:O,operationName:A,plugins:Z,referencePlugin:X,query:P,response:j,schema:F,schemaDescription:B,shouldPersistHeaders:q,storage:W,validationRules:ee,variables:H,visiblePlugin:J,defaultHeaders:a,...L}=e,r[0]=e,r[1]=i,r[2]=o,r[3]=a,r[4]=l,r[5]=f,r[6]=h,r[7]=p,r[8]=b,r[9]=v,r[10]=x,r[11]=S,r[12]=w,r[13]=k,r[14]=_,r[15]=N,r[16]=O,r[17]=A,r[18]=L,r[19]=P,r[20]=j,r[21]=F,r[22]=B,r[23]=q,r[24]=W,r[25]=Z,r[26]=X,r[27]=ee,r[28]=H,r[29]=J):(i=r[1],o=r[2],a=r[3],l=r[4],f=r[5],h=r[6],p=r[7],b=r[8],v=r[9],x=r[10],S=r[11],w=r[12],k=r[13],_=r[14],N=r[15],O=r[16],A=r[17],L=r[18],P=r[19],j=r[20],F=r[21],B=r[22],q=r[23],W=r[24],Z=r[25],X=r[26],ee=r[27],H=r[28],J=r[29]);let ue;r[30]!==Z?(ue=Z===void 0?[]:Z,r[30]=Z,r[31]=ue):ue=r[31];const ne=ue,oe=X===void 0?K9:X;if((t=L.toolbar)!=null&&t.additionalContent)throw new TypeError("`toolbar.additionalContent` was removed. Use render props on `GraphiQL.Toolbar` component instead.");if((n=L.toolbar)!=null&&n.additionalComponent)throw new TypeError("`toolbar.additionalComponent` was removed. Use render props on `GraphiQL.Toolbar` component instead.");let K;r[32]!==ne||r[33]!==oe?(K=[oe,KJ,...ne],r[32]=ne,r[33]=oe,r[34]=K):K=r[34];let he;r[35]!==o||r[36]!==a||r[37]!==l||r[38]!==f||r[39]!==h||r[40]!==p||r[41]!==b||r[42]!==v||r[43]!==x||r[44]!==S||r[45]!==k||r[46]!==_||r[47]!==N||r[48]!==O||r[49]!==A||r[50]!==P||r[51]!==oe||r[52]!==j||r[53]!==F||r[54]!==B||r[55]!==q||r[56]!==W||r[57]!==K||r[58]!==ee||r[59]!==H||r[60]!==J?(he={getDefaultFieldNames:b,dangerouslyAssumeSchemaIsValid:o,defaultQuery:l,defaultHeaders:a,defaultTabs:f,externalFragments:h,fetcher:p,headers:v,inputValueDeprecation:x,introspectionQueryName:S,onEditOperationName:k,onSchemaChange:_,onTabChange:N,onTogglePluginVisibility:O,plugins:K,referencePlugin:oe,visiblePlugin:J,operationName:A,query:P,response:j,schema:F,schemaDescription:B,shouldPersistHeaders:q,storage:W,validationRules:ee,variables:H},r[35]=o,r[36]=a,r[37]=l,r[38]=f,r[39]=h,r[40]=p,r[41]=b,r[42]=v,r[43]=x,r[44]=S,r[45]=k,r[46]=_,r[47]=N,r[48]=O,r[49]=A,r[50]=P,r[51]=oe,r[52]=j,r[53]=F,r[54]=B,r[55]=q,r[56]=W,r[57]=K,r[58]=ee,r[59]=H,r[60]=J,r[61]=he):he=r[61];const se=he,fe=q!==!1;let ae;r[62]!==i||r[63]!==L||r[64]!==fe?(ae=$.jsx(XJ,{children:$.jsx(X9,{confirmCloseTab:i,showPersistHeadersSettings:fe,forcedTheme:L.forcedTheme,...L})}),r[62]=i,r[63]=L,r[64]=fe,r[65]=ae):ae=r[65];let Ee;r[66]!==w||r[67]!==ae?(Ee=$.jsx(jJ,{maxHistoryLength:w,children:ae}),r[66]=w,r[67]=ae,r[68]=Ee):Ee=r[68];let ve;return r[69]!==se||r[70]!==Ee?(ve=$.jsx(BA,{...se,children:Ee}),r[69]=se,r[70]=Ee,r[71]=ve):ve=r[71],ve},qre=["light","dark","system"],YS="graphiql-session-tab-",X9=e=>{const t=it.c(231),n=e.isHeadersEditorEnabled??!0;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={nonNull:!0},t[0]=r):r=t[0];const{initialVariables:i,initialHeaders:o,setShouldPersistHeaders:a,addTab:l,moveTab:f,closeTab:h,changeTab:p,shouldPersistHeaders:b,tabs:v,activeTabIndex:x}=Ei(r);let S;t[1]===Symbol.for("react.memo_cache_sentinel")?(S={nonNull:!0},t[1]=S):S=t[1];const w=Zc(S),{isFetching:k,introspect:_}=Ns(),N=Xc(),{visiblePlugin:O,setVisiblePlugin:A,plugins:L}=Nv(),P=e.forcedTheme&&qre.includes(e.forcedTheme)?e.forcedTheme:void 0,{theme:j,setTheme:F}=HU(e.defaultTheme);let B,q;t[2]!==P||t[3]!==F?(B=()=>{P==="system"?F(null):(P==="light"||P==="dark")&&F(P)},q=[P,F],t[2]=P,t[3]=F,t[4]=B,t[5]=q):(B=t[4],q=t[5]),R.useEffect(B,q);const W=O==null?void 0:O.content,Z=O?void 0:"first";let X;t[6]!==A||t[7]!==Z?(X={defaultSizeRelation:.3333333333333333,direction:"horizontal",initiallyHidden:Z,onHiddenElementChange(nn){nn==="first"&&A(null)},sizeThresholdSecond:200,storageKey:"docExplorerFlex"},t[6]=A,t[7]=Z,t[8]=X):X=t[8];const ee=tx(X);let H;t[9]===Symbol.for("react.memo_cache_sentinel")?(H={direction:"horizontal",storageKey:"editorFlex"},t[9]=H):H=t[9];const J=tx(H);let ue;e:{if(e.defaultEditorToolsVisibility==="variables"||e.defaultEditorToolsVisibility==="headers"){ue=void 0;break e}if(typeof e.defaultEditorToolsVisibility=="boolean"){ue=e.defaultEditorToolsVisibility?void 0:"second";break e}ue=i||o?void 0:"second"}let ne;t[10]!==ue?(ne={defaultSizeRelation:3,direction:"vertical",initiallyHidden:ue,sizeThresholdSecond:60,storageKey:"secondaryEditorFlex"},t[10]=ue,t[11]=ne):ne=t[11];const oe=tx(ne);let K;t[12]!==o||t[13]!==i||t[14]!==n||t[15]!==e.defaultEditorToolsVisibility?(K=()=>e.defaultEditorToolsVisibility==="variables"||e.defaultEditorToolsVisibility==="headers"?e.defaultEditorToolsVisibility:!i&&o&&n?"headers":"variables",t[12]=o,t[13]=i,t[14]=n,t[15]=e.defaultEditorToolsVisibility,t[16]=K):K=t[16];const[he,se]=R.useState(K),[fe,ae]=R.useState(null),[Ee,ve]=R.useState(null);let xe;if(t[17]!==e.children||t[18]!==e.onCopyQuery||t[19]!==e.onPrettifyQuery){let nn;t[21]!==e.onCopyQuery||t[22]!==e.onPrettifyQuery?(nn=(Ai,Go)=>{e:switch(Jre(Go)){case oh.Logo:{Ai.logo=Go;break e}case oh.Toolbar:{Ai.toolbar=R.cloneElement(Go,{onCopyQuery:e.onCopyQuery,onPrettifyQuery:e.onPrettifyQuery});break e}case oh.Footer:Ai.footer=Go}return Ai},t[21]=e.onCopyQuery,t[22]=e.onPrettifyQuery,t[23]=nn):nn=t[23];let er;t[24]===Symbol.for("react.memo_cache_sentinel")?(er=$.jsx(oh.Logo,{}),t[24]=er):er=t[24];let Zr;t[25]!==e.onCopyQuery||t[26]!==e.onPrettifyQuery?(Zr=$.jsx(oh.Toolbar,{onCopyQuery:e.onCopyQuery,onPrettifyQuery:e.onPrettifyQuery}),t[25]=e.onCopyQuery,t[26]=e.onPrettifyQuery,t[27]=Zr):Zr=t[27],xe=R.Children.toArray(e.children).reduce(nn,{logo:er,toolbar:Zr}),t[17]=e.children,t[18]=e.onCopyQuery,t[19]=e.onPrettifyQuery,t[20]=xe}else xe=t[20];const{logo:ge,toolbar:Ve,footer:Xe}=xe;let et;t[28]!==ee?(et=()=>{ee.hiddenElement==="first"&&ee.setHiddenElement(null)},t[28]=ee,t[29]=et):et=t[29];const dt=et;let we;t[30]!==N?(we=()=>{try{N.clear(),ve("success")}catch{ve("error")}},t[30]=N,t[31]=we):we=t[31];const pe=we;let qe;t[32]!==a?(qe=nn=>{a(nn.currentTarget.dataset.value==="true")},t[32]=a,t[33]=qe):qe=t[33];const ye=qe;let re;t[34]!==F?(re=nn=>{const er=nn.currentTarget.dataset.theme;F(er||null)},t[34]=F,t[35]=re):re=t[35];const _e=re;let ze;t[36]===Symbol.for("react.memo_cache_sentinel")?(ze=nn=>{ae(nn.currentTarget.dataset.value)},t[36]=ze):ze=t[36];const Le=ze;let Pe;t[37]!==ee||t[38]!==L||t[39]!==A||t[40]!==O?(Pe=nn=>{const er=Number(nn.currentTarget.dataset.index),Zr=L.find((Go,Df)=>er===Df);Zr===O?(A(null),ee.setHiddenElement("first")):(A(Zr),ee.setHiddenElement(null))},t[37]=ee,t[38]=L,t[39]=A,t[40]=O,t[41]=Pe):Pe=t[41];const Te=Pe;let Ie;t[42]!==oe?(Ie=nn=>{oe.hiddenElement==="second"&&oe.setHiddenElement(null),se(nn.currentTarget.dataset.name)},t[42]=oe,t[43]=Ie):Ie=t[43];const Qe=Ie;let ut;t[44]!==oe?(ut=()=>{oe.setHiddenElement(oe.hiddenElement==="second"?null:"second")},t[44]=oe,t[45]=ut):ut=t[45];const At=ut;let kt;t[46]===Symbol.for("react.memo_cache_sentinel")?(kt=nn=>{nn||ae(null)},t[46]=kt):kt=t[46];const ct=kt;let mt;t[47]===Symbol.for("react.memo_cache_sentinel")?(mt=nn=>{nn||(ae(null),ve(null))},t[47]=mt):mt=t[47];const ft=mt,Bt=e.confirmCloseTab;let $t;t[48]!==x||t[49]!==h||t[50]!==Bt||t[51]!==w?($t=async nn=>{const er=nn.currentTarget.previousSibling,Zr=Number(er.id.replace(YS,""));(!Bt||await Bt(Zr))&&(x===Zr&&w.stop(),h(Zr))},t[48]=x,t[49]=h,t[50]=Bt,t[51]=w,t[52]=$t):$t=t[52];const Gt=$t;let fn;t[53]!==p||t[54]!==w?(fn=nn=>{const er=Number(nn.currentTarget.id.replace(YS,""));w.stop(),p(er)},t[53]=p,t[54]=w,t[55]=fn):fn=t[55];const _n=fn;let Bn;t[56]!==e.className?(Bn=Zn("graphiql-container",e.className),t[56]=e.className,t[57]=Bn):Bn=t[57];let Et;if(t[58]!==Te||t[59]!==L||t[60]!==O){let nn;t[62]!==Te||t[63]!==O?(nn=(er,Zr)=>{const Ai=er===O,Go=`${Ai?"Hide":"Show"} ${er.title}`;return $.jsx($o,{label:Go,children:$.jsx(xi,{type:"button",className:Zn(Ai&&"active"),onClick:Te,"data-index":Zr,"aria-label":Go,children:$.jsx(er.icon,{"aria-hidden":"true"})})},er.title)},t[62]=Te,t[63]=O,t[64]=nn):nn=t[64],Et=L.map(nn),t[58]=Te,t[59]=L,t[60]=O,t[61]=Et}else Et=t[61];let Vr;t[65]===Symbol.for("react.memo_cache_sentinel")?(Vr={marginTop:"auto"},t[65]=Vr):Vr=t[65];const lt=k&&"graphiql-spin";let Sn;t[66]!==lt?(Sn=Zn(lt),t[66]=lt,t[67]=Sn):Sn=t[67];let An;t[68]!==Sn?(An=$.jsx(HH,{className:Sn,"aria-hidden":"true"}),t[68]=Sn,t[69]=An):An=t[69];let Yt;t[70]!==_||t[71]!==k||t[72]!==An?(Yt=$.jsx($o,{label:"Re-fetch GraphQL schema",children:$.jsx(xi,{type:"button",disabled:k,onClick:_,"aria-label":"Re-fetch GraphQL schema",style:Vr,children:An})}),t[70]=_,t[71]=k,t[72]=An,t[73]=Yt):Yt=t[73];let bn;t[74]===Symbol.for("react.memo_cache_sentinel")?(bn=$.jsx($o,{label:"Open short keys dialog",children:$.jsx(xi,{type:"button","data-value":"short-keys",onClick:Le,"aria-label":"Open short keys dialog",children:$.jsx(FH,{"aria-hidden":"true"})})}),t[74]=bn):bn=t[74];let xt;t[75]===Symbol.for("react.memo_cache_sentinel")?(xt=$.jsx($o,{label:"Open settings dialog",children:$.jsx(xi,{type:"button","data-value":"settings",onClick:Le,"aria-label":"Open settings dialog",children:$.jsx(qH,{"aria-hidden":"true"})})}),t[75]=xt):xt=t[75];let St;t[76]!==Et||t[77]!==Yt?(St=$.jsxs("div",{className:"graphiql-sidebar",children:[Et,Yt,bn,xt]}),t[76]=Et,t[77]=Yt,t[78]=St):St=t[78];let Qt;t[79]===Symbol.for("react.memo_cache_sentinel")?(Qt={minWidth:"200px"},t[79]=Qt):Qt=t[79];let Lt;t[80]!==W?(Lt=W?$.jsx(W,{}):null,t[80]=W,t[81]=Lt):Lt=t[81];let Rn;t[82]!==ee.firstRef||t[83]!==Lt?(Rn=$.jsx("div",{ref:ee.firstRef,className:"graphiql-plugin",style:Qt,children:Lt}),t[82]=ee.firstRef,t[83]=Lt,t[84]=Rn):Rn=t[84];let Dt;t[85]!==ee.dragBarRef||t[86]!==O?(Dt=O&&$.jsx("div",{className:"graphiql-horizontal-drag-bar",ref:ee.dragBarRef}),t[85]=ee.dragBarRef,t[86]=O,t[87]=Dt):Dt=t[87];const Jt=ee.secondRef;let It;if(t[88]!==x||t[89]!==_n||t[90]!==Gt||t[91]!==v){let nn;t[93]!==x||t[94]!==_n||t[95]!==Gt?(nn=(er,Zr,Ai)=>$.jsxs(nS,{value:er,isActive:Zr===x,children:[$.jsx(nS.Button,{"aria-controls":"graphiql-session",id:`graphiql-session-tab-${Zr}`,title:er.title,onClick:_n,children:er.title}),Ai.length>1&&$.jsx(nS.Close,{onClick:Gt})]},er.id),t[93]=x,t[94]=_n,t[95]=Gt,t[96]=nn):nn=t[96],It=v.map(nn),t[88]=x,t[89]=_n,t[90]=Gt,t[91]=v,t[92]=It}else It=t[92];let en;t[97]!==f||t[98]!==It||t[99]!==v?(en=$.jsx(u8,{values:v,onReorder:f,"aria-label":"Select active operation",className:"no-scrollbar",children:It}),t[97]=f,t[98]=It,t[99]=v,t[100]=en):en=t[100];let wi;t[101]===Symbol.for("react.memo_cache_sentinel")?(wi=$.jsx($H,{"aria-hidden":"true"}),t[101]=wi):wi=t[101];let Qr;t[102]!==l?(Qr=$.jsx($o,{label:"New tab",children:$.jsx(xi,{type:"button",className:"graphiql-tab-add",onClick:l,"aria-label":"New tab",children:wi})}),t[102]=l,t[103]=Qr):Qr=t[103];let Ci;t[104]!==ge||t[105]!==en||t[106]!==Qr?(Ci=$.jsxs("div",{className:"graphiql-session-header",children:[en,Qr,ge]}),t[104]=ge,t[105]=en,t[106]=Qr,t[107]=Ci):Ci=t[107];const Xi=`${YS}${x}`,Er=J.firstRef;let Dn;t[108]!==dt||t[109]!==e.editorTheme||t[110]!==e.keyMap||t[111]!==e.onCopyQuery||t[112]!==e.onEditQuery||t[113]!==e.onPrettifyQuery||t[114]!==e.readOnly?(Dn=$.jsx(zA,{editorTheme:e.editorTheme,keyMap:e.keyMap,onClickReference:dt,onCopyQuery:e.onCopyQuery,onPrettifyQuery:e.onPrettifyQuery,onEdit:e.onEditQuery,readOnly:e.readOnly}),t[108]=dt,t[109]=e.editorTheme,t[110]=e.keyMap,t[111]=e.onCopyQuery,t[112]=e.onEditQuery,t[113]=e.onPrettifyQuery,t[114]=e.readOnly,t[115]=Dn):Dn=t[115];let Kr;t[116]===Symbol.for("react.memo_cache_sentinel")?(Kr=$.jsx(aS,{}),t[116]=Kr):Kr=t[116];let Br;t[117]!==Ve?(Br=$.jsxs("div",{className:"graphiql-toolbar",role:"toolbar","aria-label":"Editor Commands",children:[Kr,Ve]}),t[117]=Ve,t[118]=Br):Br=t[118];let zn;t[119]!==oe.firstRef||t[120]!==Dn||t[121]!==Br?(zn=$.jsxs("section",{className:"graphiql-query-editor","aria-label":"Query Editor",ref:oe.firstRef,children:[Dn,Br]}),t[119]=oe.firstRef,t[120]=Dn,t[121]=Br,t[122]=zn):zn=t[122];const ma=oe.dragBarRef,Zi=he==="variables"&&oe.hiddenElement!=="second"&&"active";let dn;t[123]!==Zi?(dn=Zn(Zi),t[123]=Zi,t[124]=dn):dn=t[124];let Xr;t[125]!==Qe||t[126]!==dn?(Xr=$.jsx(xi,{type:"button",className:dn,onClick:Qe,"data-name":"variables",children:"Variables"}),t[125]=Qe,t[126]=dn,t[127]=Xr):Xr=t[127];let Ji;t[128]!==he||t[129]!==oe.hiddenElement||t[130]!==Qe||t[131]!==n?(Ji=n&&$.jsx(xi,{type:"button",className:Zn(he==="headers"&&oe.hiddenElement!=="second"&&"active"),onClick:Qe,"data-name":"headers",children:"Headers"}),t[128]=he,t[129]=oe.hiddenElement,t[130]=Qe,t[131]=n,t[132]=Ji):Ji=t[132];const Bi=oe.hiddenElement==="second"?"Show editor tools":"Hide editor tools",eo=oe.hiddenElement==="second"?"Show editor tools":"Hide editor tools";let to;t[133]!==oe.hiddenElement?(to=oe.hiddenElement==="second"?$.jsx(wH,{className:"graphiql-chevron-icon","aria-hidden":"true"}):$.jsx(TH,{className:"graphiql-chevron-icon","aria-hidden":"true"}),t[133]=oe.hiddenElement,t[134]=to):to=t[134];let mo;t[135]!==eo||t[136]!==to||t[137]!==At?(mo=$.jsx(xi,{type:"button",onClick:At,"aria-label":eo,className:"graphiql-toggle-editor-tools",children:to}),t[135]=eo,t[136]=to,t[137]=At,t[138]=mo):mo=t[138];let ui;t[139]!==Bi||t[140]!==mo?(ui=$.jsx($o,{label:Bi,children:mo}),t[139]=Bi,t[140]=mo,t[141]=ui):ui=t[141];let qo;t[142]!==oe.dragBarRef||t[143]!==Xr||t[144]!==Ji||t[145]!==ui?(qo=$.jsxs("div",{ref:ma,className:"graphiql-editor-tools",children:[Xr,Ji,ui]}),t[142]=oe.dragBarRef,t[143]=Xr,t[144]=Ji,t[145]=ui,t[146]=qo):qo=t[146];const Oo=he==="variables"?"Variables":"Headers",Fn=he!=="variables";let ot;t[147]!==dt||t[148]!==e.editorTheme||t[149]!==e.keyMap||t[150]!==e.onEditVariables||t[151]!==e.readOnly||t[152]!==Fn?(ot=$.jsx(ex,{editorTheme:e.editorTheme,isHidden:Fn,keyMap:e.keyMap,onEdit:e.onEditVariables,onClickReference:dt,readOnly:e.readOnly}),t[147]=dt,t[148]=e.editorTheme,t[149]=e.keyMap,t[150]=e.onEditVariables,t[151]=e.readOnly,t[152]=Fn,t[153]=ot):ot=t[153];let li;t[154]!==he||t[155]!==n||t[156]!==e.editorTheme||t[157]!==e.keyMap||t[158]!==e.onEditHeaders||t[159]!==e.readOnly?(li=n&&$.jsx(JE,{editorTheme:e.editorTheme,isHidden:he!=="headers",keyMap:e.keyMap,onEdit:e.onEditHeaders,readOnly:e.readOnly}),t[154]=he,t[155]=n,t[156]=e.editorTheme,t[157]=e.keyMap,t[158]=e.onEditHeaders,t[159]=e.readOnly,t[160]=li):li=t[160];let ko;t[161]!==oe.secondRef||t[162]!==Oo||t[163]!==ot||t[164]!==li?(ko=$.jsxs("section",{className:"graphiql-editor-tool","aria-label":Oo,ref:oe.secondRef,children:[ot,li]}),t[161]=oe.secondRef,t[162]=Oo,t[163]=ot,t[164]=li,t[165]=ko):ko=t[165];let Jn;t[166]!==J.firstRef||t[167]!==zn||t[168]!==qo||t[169]!==ko?(Jn=$.jsxs("div",{className:"graphiql-editors",ref:Er,children:[zn,qo,ko]}),t[166]=J.firstRef,t[167]=zn,t[168]=qo,t[169]=ko,t[170]=Jn):Jn=t[170];let Y;t[171]!==J.dragBarRef?(Y=$.jsx("div",{className:"graphiql-horizontal-drag-bar",ref:J.dragBarRef}),t[171]=J.dragBarRef,t[172]=Y):Y=t[172];let le;t[173]!==w.isFetching?(le=w.isFetching?$.jsx(zx,{}):null,t[173]=w.isFetching,t[174]=le):le=t[174];let je;t[175]!==e.editorTheme||t[176]!==e.keyMap||t[177]!==e.responseTooltip?(je=$.jsx(GA,{editorTheme:e.editorTheme,responseTooltip:e.responseTooltip,keyMap:e.keyMap}),t[175]=e.editorTheme,t[176]=e.keyMap,t[177]=e.responseTooltip,t[178]=je):je=t[178];let Ye;t[179]!==J.secondRef||t[180]!==Xe||t[181]!==le||t[182]!==je?(Ye=$.jsxs("div",{className:"graphiql-response",ref:J.secondRef,children:[le,je,Xe]}),t[179]=J.secondRef,t[180]=Xe,t[181]=le,t[182]=je,t[183]=Ye):Ye=t[183];let Ae;t[184]!==Xi||t[185]!==Jn||t[186]!==Y||t[187]!==Ye?(Ae=$.jsxs("div",{role:"tabpanel",id:"graphiql-session","aria-labelledby":Xi,children:[Jn,Y,Ye]}),t[184]=Xi,t[185]=Jn,t[186]=Y,t[187]=Ye,t[188]=Ae):Ae=t[188];let tt;t[189]!==ee.secondRef||t[190]!==Ci||t[191]!==Ae?(tt=$.jsxs("div",{ref:Jt,className:"graphiql-sessions",children:[Ci,Ae]}),t[189]=ee.secondRef,t[190]=Ci,t[191]=Ae,t[192]=tt):tt=t[192];let tn;t[193]!==Rn||t[194]!==Dt||t[195]!==tt?(tn=$.jsxs("div",{className:"graphiql-main",children:[Rn,Dt,tt]}),t[193]=Rn,t[194]=Dt,t[195]=tt,t[196]=tn):tn=t[196];const qn=fe==="short-keys";let Ar;t[197]===Symbol.for("react.memo_cache_sentinel")?(Ar=$.jsxs("div",{className:"graphiql-dialog-header",children:[$.jsx(jd.Title,{className:"graphiql-dialog-title",children:"Short Keys"}),$.jsx(jd.Close,{})]}),t[197]=Ar):Ar=t[197];let $i;t[198]!==e.keyMap?($i=$.jsx("div",{className:"graphiql-dialog-section",children:$.jsx(Wre,{keyMap:e.keyMap})}),t[198]=e.keyMap,t[199]=$i):$i=t[199];let ga;t[200]!==qn||t[201]!==$i?(ga=$.jsxs(jd,{open:qn,onOpenChange:ct,children:[Ar,$i]}),t[200]=qn,t[201]=$i,t[202]=ga):ga=t[202];const gt=fe==="settings";let ru;t[203]===Symbol.for("react.memo_cache_sentinel")?(ru=$.jsxs("div",{className:"graphiql-dialog-header",children:[$.jsx(jd.Title,{className:"graphiql-dialog-title",children:"Settings"}),$.jsx(jd.Close,{})]}),t[203]=ru):ru=t[203];let $s;t[204]!==ye||t[205]!==e.showPersistHeadersSettings||t[206]!==b?($s=e.showPersistHeadersSettings?$.jsxs("div",{className:"graphiql-dialog-section",children:[$.jsxs("div",{children:[$.jsx("div",{className:"graphiql-dialog-section-title",children:"Persist headers"}),$.jsxs("div",{className:"graphiql-dialog-section-caption",children:["Save headers upon reloading."," ",$.jsx("span",{className:"graphiql-warning-text",children:"Only enable if you trust this device."})]})]}),$.jsxs(nx,{children:[$.jsx(sa,{type:"button",id:"enable-persist-headers",className:Zn(b&&"active"),"data-value":"true",onClick:ye,children:"On"}),$.jsx(sa,{type:"button",id:"disable-persist-headers",className:Zn(!b&&"active"),onClick:ye,children:"Off"})]})]}):null,t[204]=ye,t[205]=e.showPersistHeadersSettings,t[206]=b,t[207]=$s):$s=t[207];let Ro;t[208]!==P||t[209]!==_e||t[210]!==j?(Ro=!P&&$.jsxs("div",{className:"graphiql-dialog-section",children:[$.jsxs("div",{children:[$.jsx("div",{className:"graphiql-dialog-section-title",children:"Theme"}),$.jsx("div",{className:"graphiql-dialog-section-caption",children:"Adjust how the interface appears."})]}),$.jsxs(nx,{children:[$.jsx(sa,{type:"button",className:Zn(j===null&&"active"),onClick:_e,children:"System"}),$.jsx(sa,{type:"button",className:Zn(j==="light"&&"active"),"data-theme":"light",onClick:_e,children:"Light"}),$.jsx(sa,{type:"button",className:Zn(j==="dark"&&"active"),"data-theme":"dark",onClick:_e,children:"Dark"})]})]}),t[208]=P,t[209]=_e,t[210]=j,t[211]=Ro):Ro=t[211];let $r;t[212]===Symbol.for("react.memo_cache_sentinel")?($r=$.jsxs("div",{children:[$.jsx("div",{className:"graphiql-dialog-section-title",children:"Clear storage"}),$.jsx("div",{className:"graphiql-dialog-section-caption",children:"Remove all locally stored data and start fresh."})]}),t[212]=$r):$r=t[212];const zu=Ee||void 0,qu=Ee==="success";let _i;t[213]!==Ee?(_i={success:"Cleared data",error:"Failed"}[Ee]||"Clear data",t[213]=Ee,t[214]=_i):_i=t[214];let Us;t[215]!==pe||t[216]!==zu||t[217]!==qu||t[218]!==_i?(Us=$.jsxs("div",{className:"graphiql-dialog-section",children:[$r,$.jsx(sa,{type:"button",state:zu,disabled:qu,onClick:pe,children:_i})]}),t[215]=pe,t[216]=zu,t[217]=qu,t[218]=_i,t[219]=Us):Us=t[219];let Hs;t[220]!==gt||t[221]!==$s||t[222]!==Ro||t[223]!==Us?(Hs=$.jsxs(jd,{open:gt,onOpenChange:ft,children:[ru,$s,Ro,Us]}),t[220]=gt,t[221]=$s,t[222]=Ro,t[223]=Us,t[224]=Hs):Hs=t[224];let va;return t[225]!==Bn||t[226]!==St||t[227]!==tn||t[228]!==ga||t[229]!==Hs?(va=$.jsx($o.Provider,{children:$.jsxs("div",{className:Bn,children:[St,tn,ga,Hs]})}),t[225]=Bn,t[226]=St,t[227]=tn,t[228]=ga,t[229]=Hs,t[230]=va):va=t[230],va},QS=wE?"⌘":"Ctrl",Gre=Object.entries({"Search in editor":[QS,"F"],"Search in documentation":[QS,"K"],"Execute query":[QS,"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"]}),Wre=e=>{const t=it.c(5),{keyMap:n}=e,r=n===void 0?"sublime":n;let i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=$.jsxs("table",{className:"graphiql-table",children:[$.jsx("thead",{children:$.jsxs("tr",{children:[$.jsx("th",{children:"Short Key"}),$.jsx("th",{children:"Function"})]})}),$.jsx("tbody",{children:Gre.map(tie)})]}),t[0]=i):i=t[0];let o;t[1]===Symbol.for("react.memo_cache_sentinel")?(o=$.jsx("a",{href:"https://codemirror.net/5/doc/manual.html#keymaps",target:"_blank",rel:"noopener noreferrer",children:"CodeMirror Key Maps"}),t[1]=o):o=t[1];let a;t[2]===Symbol.for("react.memo_cache_sentinel")?(a=$.jsx("em",{children:"i"}),t[2]=a):a=t[2];let l;return t[3]!==r?(l=$.jsxs("div",{children:[i,$.jsxs("p",{children:["The editors use"," ",o," ","that add more short keys. This instance of Graph",a,"QL uses"," ",$.jsx("code",{children:r}),"."]})]}),t[3]=r,t[4]=l):l=t[4],l},Yre=$.jsxs("a",{className:"graphiql-logo-link",href:"https://github.com/graphql/graphiql",target:"_blank",rel:"noreferrer",children:["Graph",$.jsx("em",{children:"i"}),"QL"]}),Qre=e=>{const t=it.c(2),{children:n}=e,r=n===void 0?Yre:n;let i;return t[0]!==r?(i=$.jsx("div",{className:"graphiql-logo",children:r}),t[0]=r,t[1]=i):i=t[1],i},Kre=e=>{const t=it.c(4),{prettify:n,copy:r,merge:i}=e;let o;return t[0]!==r||t[1]!==i||t[2]!==n?(o=$.jsxs($.Fragment,{children:[n,i,r]}),t[0]=r,t[1]=i,t[2]=n,t[3]=o):o=t[3],o},Xre=({children:e=Kre,onCopyQuery:t,onPrettifyQuery:n})=>{"use no memo";if(typeof e!="function")throw new TypeError("The `GraphiQL.Toolbar` component requires a render prop function as its child.");const r=GE({onCopyQuery:t}),i=f0(),o=d0({onPrettifyQuery:n}),a=$.jsx($1,{onClick:o,label:"Prettify query (Shift-Ctrl-P)",children:$.jsx(UH,{className:"graphiql-toolbar-icon","aria-hidden":"true"})}),l=$.jsx($1,{onClick:i,label:"Merge fragments into query (Shift-Ctrl-M)",children:$.jsx(jH,{className:"graphiql-toolbar-icon","aria-hidden":"true"})});return e({prettify:a,copy:$.jsx($1,{onClick:r,label:"Copy query (Shift-Ctrl-C)",children:$.jsx(CH,{className:"graphiql-toolbar-icon","aria-hidden":"true"})}),merge:l})},Zre=e=>{const t=it.c(2);let n;return t[0]!==e.children?(n=$.jsx("div",{className:"graphiql-footer",children:e.children}),t[0]=e.children,t[1]=n):n=t[1],n};function Jre(e){if(e&&typeof e=="object"&&"type"in e&&typeof e.type=="function")return e.type}const oh=Object.assign(zre,{Logo:Qre,Toolbar:Xre,Footer:Zre});function eie(e,t,n){return $.jsxs(R.Fragment,{children:[$.jsx("code",{className:"graphiql-key",children:e}),t!==n.length-1&&" + "]},e)}function tie(e){const[t,n]=e;return $.jsxs("tr",{children:[$.jsx("td",{children:n.map(eie)}),$.jsx("td",{children:t})]},t)}var eu=null;typeof WebSocket<"u"?eu=WebSocket:typeof MozWebSocket<"u"?eu=MozWebSocket:typeof global<"u"?eu=global.WebSocket||global.MozWebSocket:typeof window<"u"?eu=window.WebSocket||window.MozWebSocket:typeof self<"u"&&(eu=self.WebSocket||self.MozWebSocket);const ey=Symbol.for("@whatwg-node/promise-helpers/FakePromise");function hr(e){return(e==null?void 0:e.then)!=null}function nie(e){const t=e;return t&&t.then&&t.catch&&t.finally}function Wt(e,t,n,r){let i=Uo().then(e).then(t,n);return sie(i)}function Uo(e){return e&&nie(e)?e:hr(e)?{then:(t,n)=>Uo(e.then(t,n)),catch:t=>Uo(e.then(n=>n,t)),finally:t=>Uo(t?oie(e,t):e),[Symbol.toStringTag]:"Promise"}:{then(t){if(t)try{return Uo(t(e))}catch(n){return xf(n)}return this},catch(){return this},finally(t){if(t)try{return Uo(t()).then(()=>e,()=>e)}catch(n){return xf(n)}return this},[Symbol.toStringTag]:"Promise",__fakePromiseValue:e,[ey]:"resolved"}}function Z9(){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 xf(e){return{then(t,n){if(n)try{return Uo(n(e))}catch(r){return xf(r)}return this},catch(t){if(t)try{return Uo(t(e))}catch(n){return xf(n)}return this},finally(t){if(t)try{t()}catch(n){return xf(n)}return this},__fakeRejectError:e,[Symbol.toStringTag]:"Promise",[ey]:"rejected"}}function KS(e,t,n,r){Symbol.asyncIterator in e&&(e=e[Symbol.asyncIterator]());let i,o;typeof e.return=="function"&&(i=e.return,o=f=>{const h=()=>{throw f};return i.call(e).then(h,h)});function a(f){return f.done?f:Wt(()=>f.value,h=>Wt(()=>t(h),J9,o))}let l;if(n){let f;const h=n;l=p=>(f||(f=Wt(()=>p,b=>Wt(()=>h(b),J9,o))),f)}return{next(){return e.next().then(a,l)},return(){return i?i.call(e).then(a,l):Uo({value:void 0,done:!0})},throw(f){return typeof e.throw=="function"?e.throw(f).then(a,l):o?o(f):xf(f)},[Symbol.asyncIterator](){return this}}}function J9(e){return{value:e,done:!1}}function rie(e){return(e==null?void 0:e[ey])==="resolved"}function iie(e){return(e==null?void 0:e[ey])==="rejected"}function oie(e,t){return"finally"in e?e.finally(t):e.then(n=>{const r=t();return hr(r)?r.then(()=>n):n},n=>{const r=t();if(hr(r))return r.then(()=>{throw n});throw n})}function sie(e){if(rie(e))return e.__fakePromiseValue;if(iie(e))throw e.__fakeRejectError;return e}const eR=new WeakMap;function aie(e,t){let n=eR.get(e);return!n&&t&&(n=t(e),eR.set(e,n)),n}const uie=/^(https?|wss?|file):\/\//;function lie(e){if(typeof e!="string"||!uie.test(e))return!1;if(URL.canParse)return URL.canParse(e);try{return!!new URL(e)}catch{return!1}}const cie=e=>Array.isArray(e)?e:e?[e]:[];function fie(e){return e!=null}const tR=3;function Ki(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 die(e,t);default:return String(e)}}function nR(e){return(e.name="GraphQLError")?e.toString():`${e.name}: ${e.message};
${e.stack}`}function die(e,t){if(e===null)return"null";if(e instanceof Error)return e.name==="AggregateError"?nR(e)+`
`+rR(e.errors,t):nR(e);if(t.includes(e))return"[Circular]";const n=[...t,e];if(hie(e)){const r=e.toJSON();if(r!==e)return typeof r=="string"?r:ty(r,n)}else if(Array.isArray(e))return rR(e,n);return pie(e,n)}function hie(e){return typeof e.toJSON=="function"}function pie(e,t){const n=Object.entries(e);return n.length===0?"{}":t.length>tR?"["+mie(e)+"]":"{ "+n.map(([i,o])=>i+": "+ty(o,t)).join(", ")+" }"}function rR(e,t){if(e.length===0)return"[]";if(t.length>tR)return"[Array]";const n=e.length,r=[];for(let i=0;i<n;++i)r.push(ty(e[i],t));return"["+r.join(", ")+"]"}function mie(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 gie=["message","locations","path","nodes","source","positions","originalError","name","stack","extensions"];function vie(e){return e!=null&&typeof e=="object"&&Object.keys(e).every(t=>gie.includes(t))}function Kt(e,t){return t!=null&&t.originalError&&!(t.originalError instanceof Error)&&vie(t.originalError)&&(t.originalError=Kt(t.originalError.message,t.originalError)),kg.major>=17?new Fe(e,t):new Fe(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 XS(e,t){return Kt(e.message,{nodes:e.nodes,source:e.source,positions:e.positions,path:t??e.path,originalError:e,extensions:e.extensions})}function yie(e){return e!=null&&typeof e=="object"&&Symbol.iterator in e}function iR(e){return typeof e=="object"&&e!==null}function oR(e,t,n){let r=n;for(const i of e)r=Wt(()=>r,o=>t(o,i));return r}function sR(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function aR(e,t,n={}){const r={},o=(t.arguments??[]).reduce((a,l)=>({...a,[l.name.value]:l}),{});for(const{name:a,type:l,defaultValue:f}of e.args){const h=o[a];if(!h){if(f!==void 0)r[a]=f;else if(wt(l))throw Kt(`Argument "${a}" of required type "${Ki(l)}" was not provided.`,{nodes:[t]});continue}const p=h.value;let b=p.kind===Q.NULL;if(p.kind===Q.VARIABLE){const x=p.name.value;if(n==null||!sR(n,x)){if(f!==void 0)r[a]=f;else if(wt(l))throw Kt(`Argument "${a}" of required type "${Ki(l)}" was provided the variable "$${x}" which was not provided a runtime value.`,{nodes:[p]});continue}b=n[x]==null}if(b&&wt(l))throw Kt(`Argument "${a}" of non-null type "${Ki(l)}" must not be null.`,{nodes:[p]});const v=As(p,l,n);if(v===void 0)throw Kt(`Argument "${a}" has invalid value ${mn(p)}.`,{nodes:[p]});r[a]=v}return r}function da(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 ny(e){const t=new WeakMap;return function(r,i){let o=t.get(r);if(!o){o=new WeakMap,t.set(r,o);const l=e(r,i);return o.set(i,l),l}const a=o.get(i);if(a===void 0){const l=e(r,i);return o.set(i,l),l}return a}}function bie(e){const t=new WeakMap;return function(r,i,o){let a=t.get(r);if(!a){a=new WeakMap,t.set(r,a);const h=new WeakMap;a.set(i,h);const p=e(r,i,o);return h.set(o,p),p}let l=a.get(i);if(!l){l=new WeakMap,a.set(i,l);const h=e(r,i,o);return l.set(o,h),h}const f=l.get(o);if(f===void 0){const h=e(r,i,o);return l.set(o,h),h}return f}}function Eie(e){const t=new WeakMap;return function(r,i,o,a,l){let f=t.get(r);if(!f){f=new WeakMap,t.set(r,f);const x=new WeakMap;f.set(i,x);const S=new WeakMap;x.set(o,S);const w=new WeakMap;S.set(a,w);const k=e(r,i,o,a,l);return w.set(l,k),k}let h=f.get(i);if(!h){h=new WeakMap,f.set(i,h);const x=new WeakMap;h.set(o,x);const S=new WeakMap;x.set(a,S);const w=e(r,i,o,a,l);return S.set(l,w),w}let p=h.get(o);if(!p){p=new WeakMap,h.set(o,p);const x=new WeakMap;p.set(a,x);const S=e(r,i,o,a,l);return x.set(l,S),S}let b=p.get(a);if(!b){b=new WeakMap,p.set(a,b);const x=e(r,i,o,a,l);return b.set(l,x),x}const v=b.get(l);if(v===void 0){const x=e(r,i,o,a,l);return b.set(l,x),x}return v}}function xie(e){const t=new WeakMap;return function(r,i,o,a){let l=t.get(r);if(!l){l=new WeakMap,t.set(r,l);const h=e(r,i,o,a);return l.set(i,h),h}const f=l.get(i);if(f===void 0){const h=e(r,i,o,a);return l.set(i,h),h}return f}}function ZS(e){if(wt(e)){const t=ZS(e.ofType);if(t.kind===Q.NON_NULL_TYPE)throw new Error(`Invalid type node ${Ki(e)}. Inner type of non-null type cannot be a non-null type.`);return{kind:Q.NON_NULL_TYPE,type:t}}else if(vn(e))return{kind:Q.LIST_TYPE,type:ZS(e.ofType)};return{kind:Q.NAMED_TYPE,name:{kind:Q.NAME,value:e.name}}}function ry(e,t,n){const i=JS(e).get(t);if(i==null)throw Kt(`Schema is not configured to execute ${t} operation.`,{nodes:n});return i}const Tie=da(function(t){const n=Sie(t);return new Set([...n].map(r=>r.name))}),Sie=da(function(t){const n=JS(t);return new Set(n.values())}),JS=da(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}),wie=80;let uR={};function Cie(e){return`
# `+e.replace(/\n/g,`
# `)}function pt(e,t){return e?e.filter(n=>n).join(t||""):""}function lR(e){return(e==null?void 0:e.some(t=>t.includes(`
`)))??!1}function _ie(e){return(t,n,r,i,o)=>{var p;const a=[],l=i.reduce((b,v)=>(["fields","arguments","values"].includes(v)&&b.name&&a.push(b.name.value),b[v]),o[0]),f=[...a,(p=l==null?void 0:l.name)==null?void 0:p.value].filter(Boolean).join("."),h=[];return t.kind.includes("Definition")&&uR[f]&&h.push(...uR[f]),pt([...h.map(Cie),t.description,e(t,n,r,i,o)],`
`)}}function am(e){return e&&` ${e.replace(/\n/g,`
`)}`}function ha(e){return e&&e.length!==0?`{
${am(pt(e,`
`))}
}`:""}function _r(e,t,n){return t?e+t+(n||""):""}function Aie(e,t=!1){const n=e.replace(/\\/g,"\\\\").replace(/"""/g,'\\"""');return(e[0]===" "||e[0]===" ")&&e.indexOf(`
`)===-1?`"""${n.replace(/"$/,`"
`)}"""`:`"""
${t?n:am(n)}
"""`}const cR={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>pt(e.definitions,`
`)},OperationDefinition:{leave:e=>{const t=_r("(",pt(e.variableDefinitions,", "),")");return pt([e.operation,pt([e.name,t]),pt(e.directives," ")]," ")+" "+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+_r(" = ",n)+_r(" ",pt(r," "))},SelectionSet:{leave:({selections:e})=>ha(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=_r("",e,": ")+t;let a=o+_r("(",pt(n,", "),")");return a.length>wie&&(a=o+_r(`(
`,am(pt(n,`
`)),`
)`)),pt([a,pt(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+_r(" ",pt(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>pt(["...",_r("on ",e),pt(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${_r("(",pt(n,", "),")")} on ${t} ${_r("",pt(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?Aie(e):JSON.stringify(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+pt(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+pt(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+_r("(",pt(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({directives:e,operationTypes:t})=>pt(["schema",pt(e," "),ha(t)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({name:e,directives:t})=>pt(["scalar",e,pt(t," ")]," ")},ObjectTypeDefinition:{leave:({name:e,interfaces:t,directives:n,fields:r})=>pt(["type",e,_r("implements ",pt(t," & ")),pt(n," "),ha(r)]," ")},FieldDefinition:{leave:({name:e,arguments:t,type:n,directives:r})=>e+(lR(t)?_r(`(
`,am(pt(t,`
`)),`
)`):_r("(",pt(t,", "),")"))+": "+n+_r(" ",pt(r," "))},InputValueDefinition:{leave:({name:e,type:t,defaultValue:n,directives:r})=>pt([e+": "+t,_r("= ",n),pt(r," ")]," ")},InterfaceTypeDefinition:{leave:({name:e,interfaces:t,directives:n,fields:r})=>pt(["interface",e,_r("implements ",pt(t," & ")),pt(n," "),ha(r)]," ")},UnionTypeDefinition:{leave:({name:e,directives:t,types:n})=>pt(["union",e,pt(t," "),_r("= ",pt(n," | "))]," ")},EnumTypeDefinition:{leave:({name:e,directives:t,values:n})=>pt(["enum",e,pt(t," "),ha(n)]," ")},EnumValueDefinition:{leave:({name:e,directives:t})=>pt([e,pt(t," ")]," ")},InputObjectTypeDefinition:{leave:({name:e,directives:t,fields:n})=>pt(["input",e,pt(t," "),ha(n)]," ")},DirectiveDefinition:{leave:({name:e,arguments:t,repeatable:n,locations:r})=>"directive @"+e+(lR(t)?_r(`(
`,am(pt(t,`
`)),`
)`):_r("(",pt(t,", "),")"))+(n?" repeatable":"")+" on "+pt(r," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>pt(["extend schema",pt(e," "),ha(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>pt(["extend scalar",e,pt(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>pt(["extend type",e,_r("implements ",pt(t," & ")),pt(n," "),ha(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>pt(["extend interface",e,_r("implements ",pt(t," & ")),pt(n," "),ha(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>pt(["extend union",e,pt(t," "),_r("= ",pt(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>pt(["extend enum",e,pt(t," "),ha(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>pt(["extend input",e,pt(t," "),ha(n)]," ")}};Object.keys(cR).reduce((e,t)=>({...e,[t]:{leave:_ie(cR[t].leave)}}),{});function Die(e){const t=e.loc;if(!t)return;const n=[];let r=t.startToken.prev;for(;r!=null&&r.kind===Be.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 Nie(e){const t=e.split(/\r\n|[\n\r]/g),n=Oie(t);if(n!==0)for(let r=1;r<t.length;r++)t[r]=t[r].slice(n);for(;t.length>0&&dR(t[0]);)t.shift();for(;t.length>0&&dR(t[t.length-1]);)t.pop();return t.join(`
`)}function Oie(e){let t=null;for(let n=1;n<e.length;n++){const r=e[n],i=fR(r);if(i!==r.length&&(t===null||i<t)&&(t=i,t===0))break}return t===null?0:t}function fR(e){let t=0;for(;t<e.length&&(e[t]===" "||e[t]===" ");)t++;return t}function dR(e){return fR(e)===e.length}function kie(e,t,n={}){let r;try{n.commentDescriptions&&t.includes("#")?(r=Rie(t,n),n.noLocation&&(r=zi(mn(r),n))):r=zi(new kp(t,e),n)}catch(i){if(i.message.includes("EOF")&&t.replace(/(\#[^*]*)/g,"").trim()==="")r={kind:Q.DOCUMENT,definitions:[]};else throw i}return{location:e,document:r}}function Rie(e,t={}){const n=zi(e,{...t,noLocation:!1});return Cr(n,{leave:i=>{if(Mie(i)){const o=Die(i);if(o!==void 0){const a=Nie(`
`+o),l=a.includes(`
`);return i.description?{...i,description:{...i.description,value:i.description.value+`
`+a,block:!0}}:{...i,description:{kind:Q.STRING,value:a,block:l}}}}}})}function Mie(e){return ev(e)||e.kind===Q.FIELD_DEFINITION||e.kind===Q.INPUT_VALUE_DEFINITION||e.kind===Q.ENUM_VALUE_DEFINITION}var qt;(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"})(qt||(qt={}));function sh(e,t){if(t){const n=e[t.name];if(_t(n))return n}}function Lie(e){if("getFields"in e){const t=e.getFields();for(const n in t)return t[n].name==="_fake"}return!1}function Iie(e){switch(e.name){case Fp.name:return Fp;case Pp.name:return Pp;case nr.name:return nr;case rr.name:return rr;case jp.name:return jp;default:return e}}function Fie(e,t){const n=Object.create(null);for(const v in e)n[v]=e[v];const r=Object.create(null);for(const v in n){const x=n[v];if(x==null||v.startsWith("__"))continue;const S=x.name;if(!S.startsWith("__")){if(r[S]!=null){console.warn(`Duplicate schema type name ${S} found; keeping the existing one found in the schema`);continue}r[S]=x}}for(const v in r)r[v]=l(r[v]);const i=t.map(v=>o(v));return{typeMap:r,directives:i};function o(v){if(Qg(v))return v;const x=v.toConfig();return x.args=a(x.args),new jo(x)}function a(v){const x={};for(const S in v){const w=v[S],k=b(w.type);k!=null&&(w.type=k,x[S]=w)}return x}function l(v){if(_t(v)){const x=v.toConfig(),S={...x,fields:()=>f(x.fields),interfaces:()=>p(x.interfaces)};return new bi(S)}else if(Ot(v)){const x=v.toConfig(),S={...x,fields:()=>f(x.fields)};return"interfaces"in S&&(S.interfaces=()=>p(x.interfaces)),new To(S)}else if(lr(v)){const x=v.toConfig(),S={...x,types:()=>p(x.types)};return new gl(S)}else if(sn(v)){const x=v.toConfig(),S={...x,fields:()=>h(x.fields)};return new So(S)}else if(Xn(v)){const x=v.toConfig();return new co(x)}else if(qi(v)){if(Bp(v))return v;const x=v.toConfig();return new Ts(x)}throw new Error(`Unexpected schema type: ${v}`)}function f(v){const x={};for(const S in v){const w=v[S],k=b(w.type);k!=null&&w.args&&(w.type=k,w.args=a(w.args),x[S]=w)}return x}function h(v){const x={};for(const S in v){const w=v[S],k=b(w.type);k!=null&&(w.type=k,x[S]=w)}return x}function p(v){const x=[];for(const S of v){const w=b(S);w!=null&&x.push(w)}return x}function b(v){if(vn(v)){const x=b(v.ofType);return x!=null?new fr(x):null}else if(wt(v)){const x=b(v.ofType);return x!=null?new Ft(x):null}else if(Ou(v)){let x=n[v.name];return x===void 0&&(x=Lie(v)?Iie(v):l(v),r[x.name]=n[v.name]=x),x!=null?r[x.name]:null}return null}}function iy(e,t,n=null,r=null){if(t==null)return t;const i=pl(e);if(yi(i))return n!=null?n(i,t):t;if(vn(i))return cie(t).map(o=>iy(i.ofType,o,n,r));if(sn(i)){const o=i.getFields(),a={};for(const l in t){const f=o[l];f!=null&&(a[l]=iy(f.type,t[l],n,r))}return r!=null?r(i,a):a}}function oy(e,t){return iy(e,t,(n,r)=>{try{return n.serialize(r)}catch{return r}})}function Pie(e,t){return iy(e,t,(n,r)=>{try{return n.parseValue(r)}catch{return r}})}function jie(e,t={}){const n=mR(pR(e3(hR(Vie(e3(hR(e.getTypeMap(),e,oy),e,t,l=>yi(l)),e,t),e,Pie),e,t,l=>!yi(l)),e,t),e,t),r=e.getDirectives(),i=Bie(r,e,t),{typeMap:o,directives:a}=Fie(n,i);return new qc({...e.toConfig(),query:sh(o,sh(n,e.getQueryType())),mutation:sh(o,sh(n,e.getMutationType())),subscription:sh(o,sh(n,e.getSubscriptionType())),types:Object.values(o),directives:a})}function e3(e,t,n,r=()=>!0){const i={};for(const o in e)if(!o.startsWith("__")){const a=e[o];if(a==null||!r(a)){i[o]=a;continue}const l=Uie(t,n,o);if(l==null){i[o]=a;continue}const f=l(a,t);if(f===void 0){i[o]=a;continue}i[o]=f}return i}function Vie(e,t,n){const r=Wie(n);return r?e3(e,t,{[qt.ENUM_TYPE]:i=>{const o=i.toConfig(),a=o.values,l={};for(const f in a){const h=a[f],p=r(h,i.name,t,f);if(p===void 0)l[f]=h;else if(Array.isArray(p)){const[b,v]=p;l[b]=v===void 0?h:v}else p!==null&&(l[f]=p)}return ay(new co({...o,values:l}))}},i=>Xn(i)):e}function hR(e,t,n){const r=mR(e,t,{[qt.ARGUMENT]:i=>{if(i.defaultValue===void 0)return i;const o=sy(e,i.type);if(o!=null)return{...i,defaultValue:n(o,i.defaultValue)}}});return pR(r,t,{[qt.INPUT_OBJECT_FIELD]:i=>{if(i.defaultValue===void 0)return i;const o=sy(r,i.type);if(o!=null)return{...i,defaultValue:n(o,i.defaultValue)}}})}function sy(e,t){if(vn(t)){const n=sy(e,t.ofType);return n!=null?new fr(n):null}else if(wt(t)){const n=sy(e,t.ofType);return n!=null?new Ft(n):null}else if(Ou(t)){const n=e[t.name];return n??null}return null}function pR(e,t,n){const r={};for(const i in e)if(!i.startsWith("__")){const o=e[i];if(!_t(o)&&!Ot(o)&&!sn(o)){r[i]=o;continue}const a=zie(t,n,i);if(a==null){r[i]=o;continue}const l=o.toConfig(),f=l.fields,h={};for(const p in f){const b=f[p],v=a(b,p,i,t);if(v===void 0)h[p]=b;else if(Array.isArray(v)){const[x,S]=v;S.astNode!=null&&(S.astNode={...S.astNode,name:{...S.astNode.name,value:x}}),h[x]=S===void 0?b:S}else v!==null&&(h[p]=v)}_t(o)?r[i]=ay(new bi({...l,fields:h})):Ot(o)?r[i]=ay(new To({...l,fields:h})):r[i]=ay(new So({...l,fields:h}))}return r}function mR(e,t,n){const r={};for(const i in e)if(!i.startsWith("__")){const o=e[i];if(!_t(o)&&!Ot(o)){r[i]=o;continue}const a=qie(n);if(a==null){r[i]=o;continue}const l=o.toConfig(),f=l.fields,h={};for(const p in f){const b=f[p],v=b.args;if(v==null){h[p]=b;continue}const x=Object.keys(v);if(!x.length){h[p]=b;continue}const S={};for(const w of x){const k=v[w],_=a(k,p,i,t);if(_===void 0)S[w]=k;else if(Array.isArray(_)){const[N,O]=_;S[N]=O}else _!==null&&(S[w]=_)}h[p]={...b,args:S}}_t(o)?r[i]=new bi({...l,fields:h}):Ot(o)?r[i]=new To({...l,fields:h}):r[i]=new So({...l,fields:h})}return r}function Bie(e,t,n){const r=Gie(n);if(r==null)return e.slice();const i=[];for(const o of e){const a=r(o,t);a===void 0?i.push(o):a!==null&&i.push(a)}return i}function $ie(e,t){var i,o,a;const n=e.getType(t),r=[qt.TYPE];return _t(n)?(r.push(qt.COMPOSITE_TYPE,qt.OBJECT_TYPE),t===((i=e.getQueryType())==null?void 0:i.name)?r.push(qt.ROOT_OBJECT,qt.QUERY):t===((o=e.getMutationType())==null?void 0:o.name)?r.push(qt.ROOT_OBJECT,qt.MUTATION):t===((a=e.getSubscriptionType())==null?void 0:a.name)&&r.push(qt.ROOT_OBJECT,qt.SUBSCRIPTION)):sn(n)?r.push(qt.INPUT_OBJECT_TYPE):Ot(n)?r.push(qt.COMPOSITE_TYPE,qt.ABSTRACT_TYPE,qt.INTERFACE_TYPE):lr(n)?r.push(qt.COMPOSITE_TYPE,qt.ABSTRACT_TYPE,qt.UNION_TYPE):Xn(n)?r.push(qt.ENUM_TYPE):qi(n)&&r.push(qt.SCALAR_TYPE),r}function Uie(e,t,n){const r=$ie(e,n);let i;const o=[...r];for(;!i&&o.length>0;){const a=o.pop();i=t[a]}return i??null}function Hie(e,t){var i,o,a;const n=e.getType(t),r=[qt.FIELD];return _t(n)?(r.push(qt.COMPOSITE_FIELD,qt.OBJECT_FIELD),t===((i=e.getQueryType())==null?void 0:i.name)?r.push(qt.ROOT_FIELD,qt.QUERY_ROOT_FIELD):t===((o=e.getMutationType())==null?void 0:o.name)?r.push(qt.ROOT_FIELD,qt.MUTATION_ROOT_FIELD):t===((a=e.getSubscriptionType())==null?void 0:a.name)&&r.push(qt.ROOT_FIELD,qt.SUBSCRIPTION_ROOT_FIELD)):Ot(n)?r.push(qt.COMPOSITE_FIELD,qt.INTERFACE_FIELD):sn(n)&&r.push(qt.INPUT_OBJECT_FIELD),r}function zie(e,t,n){const r=Hie(e,n);let i;const o=[...r];for(;!i&&o.length>0;){const a=o.pop();i=t[a]}return i??null}function qie(e){const t=e[qt.ARGUMENT];return t??null}function Gie(e){const t=e[qt.DIRECTIVE];return t??null}function Wie(e){const t=e[qt.ENUM_VALUE];return t??null}function ay(e){if(_t(e)){const t=e.toConfig();if(t.astNode!=null){const n=[];for(const r in t.fields){const i=t.fields[r];i.astNode!=null&&n.push(i.astNode)}t.astNode={...t.astNode,kind:Q.OBJECT_TYPE_DEFINITION,fields:n}}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>({...n,kind:Q.OBJECT_TYPE_EXTENSION,fields:void 0}))),new bi(t)}else if(Ot(e)){const t=e.toConfig();if(t.astNode!=null){const n=[];for(const r in t.fields){const i=t.fields[r];i.astNode!=null&&n.push(i.astNode)}t.astNode={...t.astNode,kind:Q.INTERFACE_TYPE_DEFINITION,fields:n}}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>({...n,kind:Q.INTERFACE_TYPE_EXTENSION,fields:void 0}))),new To(t)}else if(sn(e)){const t=e.toConfig();if(t.astNode!=null){const n=[];for(const r in t.fields){const i=t.fields[r];i.astNode!=null&&n.push(i.astNode)}t.astNode={...t.astNode,kind:Q.INPUT_OBJECT_TYPE_DEFINITION,fields:n}}return t.extensionASTNodes!=null&&(t.extensionASTNodes=t.extensionASTNodes.map(n=>({...n,kind:Q.INPUT_OBJECT_TYPE_EXTENSION,fields:void 0}))),new So(t)}else if(Xn(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 co(t)}else return e}function um(e,t=!1,n=!1,r=!1){let i,o=!0;const a=e.every(h=>{if(Array.isArray(h)){if(i===void 0)return i=h.length,!0;if(i===h.length)return!0}else o=!1;return!1});if(r&&a)return new Array(i).fill(null).map((h,p)=>um(e.map(b=>b[p]),t,n,r));if(o)return e.flat(1);let l,f;t&&(f=e.find(h=>gR(h)),l==null&&(l={}),f&&Object.setPrototypeOf(l,Object.create(Object.getPrototypeOf(f))));for(const h of e)if(gR(h)){if(f){const p=Object.getPrototypeOf(l),b=Object.getPrototypeOf(h);if(b)for(const v of Object.getOwnPropertyNames(b)){const x=Object.getOwnPropertyDescriptor(b,v);fie(x)&&Object.defineProperty(p,v,x)}}for(const p in h)l==null&&(l={}),p in l?l[p]=um([l[p],h[p]],t,n,r):l[p]=h[p]}else Array.isArray(h)&&Array.isArray(l)?l=um([l,h],t,n,r):l=h;return l}function gR(e){return e&&typeof e=="object"&&!Array.isArray(e)}function t3(e){return e.fieldNodes[0].alias!=null?e.fieldNodes[0].alias.value:e.fieldName}function uy(e,t,n){return n==null||t==null?!1:t===n?!0:si(t)&&si(n)?Ip(e,t,n):!1}function Yie(e){const t=[],n=[];let r=!0;const i=p=>{t.length!==0?t.shift()({value:p,done:!1}):n.push({value:p,done:!1})},o=p=>{t.length!==0?t.shift()({value:{errors:[p]},done:!1}):n.push({value:{errors:[p]},done:!1})},a=()=>{t.length!==0?t.shift()({done:!0}):n.push({done:!0})},l=()=>new Promise(p=>{if(n.length!==0){const b=n.shift();p(b)}else t.push(p)}),f=e.subscribe({next(p){return i(p)},error(p){return o(p)},complete(){return a()}}),h=()=>{if(r){r=!1,f.unsubscribe();for(const p of t)p({value:void 0,done:!0});t.length=0,n.length=0}};return{next(){return r?l():this.return()},return(){return h(),Uo({value:void 0,done:!0})},throw(p){return h(),xf(p)},[Symbol.asyncIterator](){return this}}}class ly 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 Qie=new jo({name:"defer",description:"Directs the executor to defer this fragment when the `if` argument is true or undefined.",locations:[at.FRAGMENT_SPREAD,at.INLINE_FRAGMENT],args:{if:{type:new Ft(rr),description:"Deferred when true or undefined.",defaultValue:!0},label:{type:nr,description:"Unique name"}}}),Kie=new jo({name:"stream",description:"Directs the executor to stream plural fields when the `if` argument is true or undefined.",locations:[at.FIELD],args:{if:{type:new Ft(rr),description:"Stream when true or undefined.",defaultValue:!0},label:{type:nr,description:"Unique name"},initialCount:{defaultValue:0,type:Fp,description:"Number of items to return immediately"}}});function ah(e,t,n,r,i,o,a,l){for(const f of i.selections)switch(f.kind){case Q.FIELD:{if(!r3(n,f))continue;o.add(Xie(f),f);break}case Q.INLINE_FRAGMENT:{if(!r3(n,f)||!vR(e,f,r))continue;const h=yR(n,f);if(h){const p=new ly;ah(e,t,n,r,f.selectionSet,p,a,l),a.push({label:h.label,fields:p})}else ah(e,t,n,r,f.selectionSet,o,a,l);break}case Q.FRAGMENT_SPREAD:{const h=f.name.value;if(!r3(n,f))continue;const p=yR(n,f);if(l.has(h)&&!p)continue;const b=t[h];if(!b||!vR(e,b,r))continue;if(p||l.add(h),p){const v=new ly;ah(e,t,n,r,b.selectionSet,v,a,l),a.push({label:p.label,fields:v})}else ah(e,t,n,r,b.selectionSet,o,a,l);break}}}function n3(e,t,n,r,i){const o=new ly,a=[];return ah(e,t,n,r,i,o,a,new Set),{fields:o,patches:a}}function r3(e,t){const n=Ia(Wg,t,e);if((n==null?void 0:n.if)===!0)return!1;const r=Ia(Gg,t,e);return(r==null?void 0:r.if)!==!1}function vR(e,t,n){const r=t.typeCondition;if(!r)return!0;const i=Mi(e,r);return i===n?!0:cr(i)?e.getPossibleTypes(i).includes(n):!1}function Xie(e){return e.alias?e.alias.value:e.name.value}function yR(e,t){const n=Ia(Qie,t,e);if(n&&n.if!==!1)return{label:typeof n.label=="string"?n.label:void 0}}const Zie=Eie(function(t,n,r,i,o){const a=new ly,l=new Set,f=[],h={fields:a,patches:f};for(const p of o)p.selectionSet&&ah(t,n,r,i,p.selectionSet,a,f,l);return h});function Jie(e,t){const n=U2(e,t);if(!n)throw new Error(`Cannot infer operation ${t||""}`);return n}const Tf=da(function(t){return Jie(t.document,t.operationName)});function Ml(e){return(e==null?void 0:e[Symbol.asyncIterator])!=null}function uh(e,t,n){return{prev:e,key:t,typename:n}}function Vi(e){const t=[];let n=e;for(;n;)t.push(n.key),n=n.prev;return t.reverse()}function eoe(e){return e.map(t=>typeof t=="number"?"["+t.toString()+"]":"."+t).join("")}function i3(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]=i3(e[n],t[n]);else for(n in t){if(n==="__proto__"||n==="constructor"||n==="prototype")break;e[n]=i3(e[n],t[n])}return e}return t}function cy(e,t,n){t.split&&(t=t.split("."));for(var r=0,i=t.length,o=e,a,l;r<i&&(l=""+t[r++],!(l==="__proto__"||l==="constructor"||l==="prototype"));)o=o[l]=r===i?i3(o[l],n):typeof(a=o[l])==typeof t?a:t[r]*0!==0||~(""+t[r]).indexOf(".")?{}:[]}function bR({incrementalResult:e,executionResult:t}){const n=["data",...e.path??[]];if(e.items)for(const r of e.items)cy(t,n,r),n[n.length-1]++;e.data&&cy(t,n,e.data),e.errors&&(t.errors=t.errors||[],t.errors.push(...e.errors)),e.extensions&&cy(t,"extensions",e.extensions),e.incremental&&e.incremental.forEach(r=>{bR({incrementalResult:r,executionResult:t})})}const o3=da(function(t){return W_(aie(t,mn))});function s3({executionRequest:e,excludeQuery:t,printFn:n=o3}){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 Hu={get dispose(){return Symbol.dispose||Symbol.for("dispose")},get asyncDispose(){return Symbol.asyncDispose||Symbol.for("asyncDispose")}};function Ho(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function Sf(e){return Ho(e)==="object"}function toe(e){return Array.isArray(e)&&e.length>0&&e.every(t=>"message"in t)}function ER(e,t){return e.length<124?e:t}const noe="graphql-transport-ws";var Ps=(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))(Ps||{}),js=(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))(js||{});function xR(e){if(!Sf(e))throw new Error(`Message is expected to be an object, but got ${Ho(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 ${Ho(e.type)}`);switch(e.type){case"connection_init":case"connection_ack":case"ping":case"pong":{if(e.payload!=null&&!Sf(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 ${Ho(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!Sf(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${Ho(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 ${Ho(e.payload.query)}`);if(e.payload.variables!=null&&!Sf(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 ${Ho(e.payload.variables)}`);if(e.payload.operationName!=null&&Ho(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 ${Ho(e.payload.operationName)}`);if(e.payload.extensions!=null&&!Sf(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 ${Ho(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 ${Ho(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!Sf(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${Ho(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 ${Ho(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!toe(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 ${Ho(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 roe(e,t){return xR(typeof e=="string"?JSON.parse(e,t):e)}function lm(e,t){return xR(e),JSON.stringify(e,t)}function ioe(e){const{url:t,connectionParams:n,lazy:r=!0,onNonLazyError:i=console.error,lazyCloseTimeout:o=0,keepAlive:a=0,disablePong:l,connectionAckWaitTimeout:f=0,retryAttempts:h=5,retryWait:p=async function(H){const J=Math.pow(2,H);await new Promise(ue=>setTimeout(ue,J*1e3+Math.floor(Math.random()*2700+300)))},shouldRetry:b=a3,on:v,webSocketImpl:x,generateID:S=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,H=>{const J=Math.random()*16|0;return(H=="x"?J:J&3|8).toString(16)})},jsonMessageReplacer:w,jsonMessageReviver:k}=e;let _;if(x){if(!soe(x))throw new Error("Invalid WebSocket implementation provided");_=x}else typeof WebSocket<"u"?_=WebSocket:typeof global<"u"?_=global.WebSocket||global.MozWebSocket:typeof window<"u"&&(_=window.WebSocket||window.MozWebSocket);if(!_)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const N=_,O=(()=>{const ee=(()=>{const J={};return{on(ue,ne){return J[ue]=ne,()=>{delete J[ue]}},emit(ue){var ne;"id"in ue&&((ne=J[ue.id])==null||ne.call(J,ue))}}})(),H={connecting:v!=null&&v.connecting?[v.connecting]:[],opened:v!=null&&v.opened?[v.opened]:[],connected:v!=null&&v.connected?[v.connected]:[],ping:v!=null&&v.ping?[v.ping]:[],pong:v!=null&&v.pong?[v.pong]:[],message:v!=null&&v.message?[ee.emit,v.message]:[ee.emit],closed:v!=null&&v.closed?[v.closed]:[],error:v!=null&&v.error?[v.error]:[]};return{onMessage:ee.on,on(J,ue){const ne=H[J];return ne.push(ue),()=>{ne.splice(ne.indexOf(ue),1)}},emit(J,...ue){for(const ne of[...H[J]])ne(...ue)}}})();function A(ee){const H=[O.on("error",J=>{H.forEach(ue=>ue()),ee(J)}),O.on("closed",J=>{H.forEach(ue=>ue()),ee(J)})]}let L,P=0,j,F=!1,B=0,q=!1;async function W(){clearTimeout(j);const[ee,H]=await(L??(L=new Promise((ne,oe)=>(async()=>{if(F){if(await p(B),!P)return L=void 0,oe({code:1e3,reason:"All Subscriptions Gone"});B++}O.emit("connecting",F);const K=new N(typeof t=="function"?await t():t,noe);let he,se;function fe(){isFinite(a)&&a>0&&(clearTimeout(se),se=setTimeout(()=>{K.readyState===N.OPEN&&(K.send(lm({type:js.Ping})),O.emit("ping",!1,void 0))},a))}A(Ee=>{L=void 0,clearTimeout(he),clearTimeout(se),oe(Ee),Ee instanceof TR&&(K.close(4499,"Terminated"),K.onerror=null,K.onclose=null)}),K.onerror=Ee=>O.emit("error",Ee),K.onclose=Ee=>O.emit("closed",Ee),K.onopen=async()=>{try{O.emit("opened",K);const Ee=typeof n=="function"?await n():n;if(K.readyState!==N.OPEN)return;K.send(lm(Ee?{type:js.ConnectionInit,payload:Ee}:{type:js.ConnectionInit},w)),isFinite(f)&&f>0&&(he=setTimeout(()=>{K.close(Ps.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},f)),fe()}catch(Ee){O.emit("error",Ee),K.close(Ps.InternalClientError,ER(Ee instanceof Error?Ee.message:String(Ee),"Internal client error"))}};let ae=!1;K.onmessage=({data:Ee})=>{try{const ve=roe(Ee,k);if(O.emit("message",ve),ve.type==="ping"||ve.type==="pong"){O.emit(ve.type,!0,ve.payload),ve.type==="pong"?fe():l||(K.send(lm(ve.payload?{type:js.Pong,payload:ve.payload}:{type:js.Pong})),O.emit("pong",!1,ve.payload));return}if(ae)return;if(ve.type!==js.ConnectionAck)throw new Error(`First message cannot be of type ${ve.type}`);clearTimeout(he),ae=!0,O.emit("connected",K,ve.payload,F),F=!1,B=0,ne([K,new Promise((xe,ge)=>A(ge))])}catch(ve){K.onmessage=null,O.emit("error",ve),K.close(Ps.BadResponse,ER(ve instanceof Error?ve.message:String(ve),"Bad response"))}}})())));ee.readyState===N.CLOSING&&await H;let J=()=>{};const ue=new Promise(ne=>J=ne);return[ee,J,Promise.race([ue.then(()=>{if(!P){const ne=()=>ee.close(1e3,"Normal Closure");isFinite(o)&&o>0?j=setTimeout(()=>{ee.readyState===N.OPEN&&ne()},o):ne()}}),H])]}function Z(ee){if(a3(ee)&&(ooe(ee.code)||[Ps.InternalServerError,Ps.InternalClientError,Ps.BadRequest,Ps.BadResponse,Ps.Unauthorized,Ps.SubprotocolNotAcceptable,Ps.SubscriberAlreadyExists,Ps.TooManyInitialisationRequests].includes(ee.code)))throw ee;if(q)return!1;if(a3(ee)&&ee.code===1e3)return P>0;if(!h||B>=h||!b(ee))throw ee;return F=!0}r||(async()=>{for(P++;;)try{const[,,ee]=await W();await ee}catch(ee){try{if(!Z(ee))return}catch(H){return i==null?void 0:i(H)}}})();function X(ee,H){const J=S(ee);let ue=!1,ne=!1,oe=()=>{P--,ue=!0};return(async()=>{for(P++;;)try{const[K,he,se]=await W();if(ue)return he();const fe=O.onMessage(J,ae=>{switch(ae.type){case js.Next:{H.next(ae.payload);return}case js.Error:{ne=!0,ue=!0,H.error(ae.payload),oe();return}case js.Complete:{ue=!0,oe();return}}});K.send(lm({id:J,type:js.Subscribe,payload:ee},w)),oe=()=>{!ue&&K.readyState===N.OPEN&&K.send(lm({id:J,type:js.Complete},w)),P--,ue=!0,he()},await se.finally(fe);return}catch(K){if(!Z(K))return}})().then(()=>{ne||H.complete()}).catch(K=>{H.error(K)}),()=>{ue||oe()}}return{on:O.on,subscribe:X,iterate(ee){const H=[],J={done:!1,error:null,resolve:()=>{}},ue=X(ee,{next(oe){H.push(oe),J.resolve()},error(oe){J.done=!0,J.error=oe,J.resolve()},complete(){J.done=!0,J.resolve()}}),ne=async function*(){for(;;){for(H.length||await new Promise(K=>J.resolve=K);H.length;)yield H.shift();if(J.error)throw J.error;if(J.done)return}}();return ne.throw=async oe=>(J.done||(J.done=!0,J.error=oe,J.resolve()),{done:!0,value:void 0}),ne.return=async()=>(ue(),{done:!0,value:void 0}),ne},async dispose(){if(q=!0,L){const[ee]=await L;ee.close(1e3,"Normal Closure")}},terminate(){L&&O.emit("closed",new TR)}}}class TR extends Error{constructor(){super(...arguments);on(this,"name","TerminatedCloseEvent");on(this,"message","4499: Terminated");on(this,"code",4499);on(this,"reason","Terminated");on(this,"wasClean",!1)}}function a3(e){return Sf(e)&&"code"in e&&"reason"in e}function ooe(e){return[1e3,1001,1006,1005,1012,1013,1014].includes(e)?!1:e>=1e3&&e<=1999}function soe(e){return typeof e=="function"&&"constructor"in e&&"CLOSED"in e&&"CLOSING"in e&&"CONNECTING"in e&&"OPEN"in e}function aoe(e){return"subscribe"in e}function uoe(e){let t,n={},r=o3;if(aoe(e))t=e;else{e.print&&(r=e.print);const o=e.headers,a=o?class extends eu{constructor(f,h){super(f,h,{headers:o})}}:eu;t=ioe({url:e.url,webSocketImpl:a,lazy:e.lazy!==!1,lazyCloseTimeout:e.lazyCloseTimeout||0,connectionParams:()=>{const l=(typeof e.connectionParams=="function"?e.connectionParams():e.connectionParams)||{};return Object.assign(l,n)},on:e.on}),e.onClient&&e.onClient(t)}const i=function(a){const{extensions:l,operationType:f=Tf(a).operation,info:h,signal:p=h==null?void 0:h.signal}=a;l!=null&&l.connectionParams&&typeof(l==null?void 0:l.connectionParams)=="object"&&(n=Object.assign(n,l.connectionParams));const b=t.iterate(s3({executionRequest:a,printFn:r}));return b.return&&p&&p.addEventListener("abort",()=>{var v;(v=b.return)==null||v.call(b)},{once:!0}),f==="subscription"?b:b.next().then(({value:v})=>v)};return Object.defineProperty(i,Hu.asyncDispose,{value:function(){return t.dispose()}}),i}const SR=!globalThis.Bun&&((YM=(WM=globalThis.process)==null?void 0:WM.release)==null?void 0:YM.name)==="node",fy=SR?new FinalizationRegistry(e=>e()):null,wR=Symbol("CONTROLLER_IN_SIGNAL");function loe(e){if(e.length===0)return;if(e.length===1)return e[0];if(!SR)return AbortSignal.any(e);for(const a of e)if(a.aborted)return a;const t=new AbortController,n=new WeakRef(t),r=[];let i=e.length;for(const a of e){let l=function(){var h,p;(p=n.deref())==null||p.abort((h=f.deref())==null?void 0:h.reason)};const f=new WeakRef(a);a.addEventListener("abort",l),r.push([f,l]),fy.register(a,()=>!--i&&o(),a)}function o(){for(const[a,l]of r){const f=a.deref();f&&(f.removeEventListener("abort",l),fy.unregister(f));const h=n.deref();h&&(fy.unregister(h.signal),delete h.signal[wR])}}return t.signal.addEventListener("abort",o),fy.register(t.signal,o,t.signal),t.signal[wR]=t,t.signal}var br={},CR;function coe(){return CR||(CR=1,br.fetch=globalThis.fetch,br.Headers=globalThis.Headers,br.Request=globalThis.Request,br.Response=globalThis.Response,br.FormData=globalThis.FormData,br.ReadableStream=globalThis.ReadableStream,br.WritableStream=globalThis.WritableStream,br.TransformStream=globalThis.TransformStream,br.CompressionStream=globalThis.CompressionStream,br.DecompressionStream=globalThis.DecompressionStream,br.TextDecoderStream=globalThis.TextDecoderStream,br.TextEncoderStream=globalThis.TextEncoderStream,br.Blob=globalThis.Blob,br.File=globalThis.File,br.crypto=globalThis.crypto,br.btoa=globalThis.btoa,br.TextEncoder=globalThis.TextEncoder,br.TextDecoder=globalThis.TextDecoder,br.URLPattern=globalThis.URLPattern,br.URL=globalThis.URL,br.URLSearchParams=globalThis.URLSearchParams,br.createFetch=()=>globalThis),br}var wf=coe();/*! *****************************************************************************
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 u3=function(e,t){return u3=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])},u3(e,t)};function foe(e,t){u3(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function lh(e,t,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function l(p){try{h(r.next(p))}catch(b){a(b)}}function f(p){try{h(r.throw(p))}catch(b){a(b)}}function h(p){p.done?o(p.value):i(p.value).then(l,f)}h((r=r.apply(e,[])).next())})}function Ll(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(h){return function(p){return f([h,p])}}function f(h){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,i&&(o=h[0]&2?i.return:h[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,h[1])).done)return o;switch(i=0,o&&(h=[h[0]&2,o.value]),h[0]){case 0:case 1:o=h;break;case 4:return n.label++,{value:h[1],done:!1};case 5:n.label++,i=h[1],h=[0];continue;case 7:h=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(h[0]===6||h[0]===2)){n=0;continue}if(h[0]===3&&(!o||h[1]>o[0]&&h[1]<o[3])){n.label=h[1];break}if(h[0]===6&&n.label<o[1]){n.label=o[1],o=h;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(h);break}o[2]&&n.ops.pop(),n.trys.pop();continue}h=t.call(e,n)}catch(p){h=[6,p],i=0}finally{r=o=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}}function ch(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 cm(e){return this instanceof cm?(this.v=e,this):new cm(e)}function doe(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(v){r[v]&&(i[v]=function(x){return new Promise(function(S,w){o.push([v,x,S,w])>1||l(v,x)})})}function l(v,x){try{f(r[v](x))}catch(S){b(o[0][3],S)}}function f(v){v.value instanceof cm?Promise.resolve(v.value.v).then(h,p):b(o[0][2],v)}function h(v){l("next",v)}function p(v){l("throw",v)}function b(v,x){v(x),o.shift(),o.length&&l(o[0][0],o[0][1])}}var _R=function(e){foe(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 l3(e){e!=null&&typeof e.then=="function"&&e.then(py,py)}var c3=0,AR=1,Cf=2,dy=3,f3=4,hy=1024,py=function(){};function fh(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 _f(e,t){var n=e.state>=dy;return Promise.resolve(t).then(function(r){return!n&&e.state>=f3?fh(e).then(function(i){return{value:i,done:!0}}):{value:r,done:n}})}function d3(e,t){var n,r;if(!(e.state>=Cf))if(e.state=Cf,e.onnext(),e.onstop(),e.err==null&&(e.err=t),e.pushes.length===0&&(typeof e.buffer>"u"||e.buffer.empty))fm(e);else try{for(var i=ch(e.pushes),o=i.next();!o.done;o=i.next()){var a=o.value;a.resolve()}}catch(l){n={error:l}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}function fm(e){var t,n;if(!(e.state>=dy)){e.state<Cf&&d3(e),e.state=dy,e.buffer=void 0;try{for(var r=ch(e.nexts),i=r.next();!i.done;i=r.next()){var o=i.value,a=e.pending===void 0?fh(e):e.pending.then(function(){return fh(e)});o.resolve(_f(e,a))}}catch(l){t={error:l}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}e.pushes=[],e.nexts=[]}}function DR(e){e.state>=f3||(e.state<dy&&fm(e),e.state=f3)}function hoe(e,t){if(l3(t),e.pushes.length>=hy)throw new _R("No more than "+hy+" pending calls to push are allowed on a single repeater.");if(e.state>=Cf)return Promise.resolve(void 0);var n=e.pending===void 0?Promise.resolve(t):e.pending.then(function(){return t});n=n.catch(function(f){e.state<Cf&&(e.err=f),DR(e)});var r;if(e.nexts.length){var i=e.nexts.shift();i.resolve(_f(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(f){return e.onnext=f})}else typeof e.buffer<"u"&&!e.buffer.full?(e.buffer.add(n),r=Promise.resolve(void 0)):r=new Promise(function(f){return e.pushes.push({resolve:f,value:n})});var o=!0,a={},l=r.catch(function(f){if(o)throw f});return a.then=function(f,h){return o=!1,Promise.prototype.then.call(r,f,h)},a.catch=function(f){return o=!1,Promise.prototype.catch.call(r,f)},a.finally=r.finally.bind(r),e.pending=n.then(function(){return l}).catch(function(f){e.err=f,DR(e)}),a}function poe(e){var t=d3.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 moe(e){if(!(e.state>=AR)){e.state=AR;var t=hoe.bind(null,e),n=poe(e);e.execution=new Promise(function(r){return r(e.executor(t,n))}),e.execution.catch(function(){return d3(e)})}}var my=new WeakMap,dh=function(){function e(t,n){my.set(this,{executor:t,buffer:n,err:void 0,state:c3,pushes:[],nexts:[],pending:void 0,execution:void 0,onnext:py,onstop:py})}return e.prototype.next=function(t){l3(t);var n=my.get(this);if(n===void 0)throw new Error("WeakMap error");if(n.nexts.length>=hy)throw new _R("No more than "+hy+" pending calls to next are allowed on a single repeater.");if(n.state<=c3&&moe(n),n.onnext(t),typeof n.buffer<"u"&&!n.buffer.empty){var r=_f(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,_f(n,o.value)}else if(n.state>=Cf)return fm(n),_f(n,fh(n));return new Promise(function(a){return n.nexts.push({resolve:a,value:t})})},e.prototype.return=function(t){l3(t);var n=my.get(this);if(n===void 0)throw new Error("WeakMap error");return fm(n),n.execution=Promise.resolve(n.execution).then(function(){return t}),_f(n,fh(n))},e.prototype.throw=function(t){var n=my.get(this);if(n===void 0)throw new Error("WeakMap error");return n.state<=c3||n.state>=Cf||typeof n.buffer<"u"&&!n.buffer.empty?(fm(n),n.err==null&&(n.err=t),_f(n,fh(n))):this.next(Promise.reject(t))},e.prototype[Symbol.asyncIterator]=function(){return this},e.race=goe,e.merge=voe,e.zip=yoe,e.latest=boe,e}();function gy(e,t){var n,r,i=[],o=function(h){h!=null&&typeof h[Symbol.asyncIterator]=="function"?i.push(h[Symbol.asyncIterator]()):h!=null&&typeof h[Symbol.iterator]=="function"?i.push(h[Symbol.iterator]()):i.push(function(){return doe(this,arguments,function(){return Ll(this,function(v){switch(v.label){case 0:return t.yieldValues?[4,cm(h)]:[3,3];case 1:return[4,v.sent()];case 2:v.sent(),v.label=3;case 3:return t.returnValues?[4,cm(h)]:[3,5];case 4:return[2,v.sent()];case 5:return[2]}})})}())};try{for(var a=ch(e),l=a.next();!l.done;l=a.next()){var f=l.value;o(f)}}catch(h){n={error:h}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i}function goe(e){var t=this,n=gy(e,{returnValues:!0});return new dh(function(r,i){return lh(t,void 0,void 0,function(){var o,a,l,f,h,p;return Ll(this,function(b){switch(b.label){case 0:if(!n.length)return i(),[2];a=!1,i.then(function(){o(),a=!0}),b.label=1;case 1:b.trys.push([1,,5,7]),f=void 0,h=0,p=function(){var v,x,S,w,k,_;return Ll(this,function(N){switch(N.label){case 0:v=h;try{for(x=(k=void 0,ch(n)),S=x.next();!S.done;S=x.next())w=S.value,Promise.resolve(w.next()).then(function(O){O.done?(i(),l===void 0&&(l=O)):h===v&&(h++,o(O))},function(O){return i(O)})}catch(O){k={error:O}}finally{try{S&&!S.done&&(_=x.return)&&_.call(x)}finally{if(k)throw k.error}}return[4,new Promise(function(O){return o=O})];case 1:return f=N.sent(),f===void 0?[3,3]:[4,r(f.value)];case 2:N.sent(),N.label=3;case 3:return[2]}})},b.label=2;case 2:return a?[3,4]:[5,p()];case 3:return b.sent(),[3,2];case 4:return[2,l&&l.value];case 5:return i(),[4,Promise.race(n.map(function(v){return v.return&&v.return()}))];case 6:return b.sent(),[7];case 7:return[2]}})})})}function voe(e){var t=this,n=gy(e,{yieldValues:!0});return new dh(function(r,i){return lh(t,void 0,void 0,function(){var o,a,l,f=this;return Ll(this,function(h){switch(h.label){case 0:if(!n.length)return i(),[2];o=[],a=!1,i.then(function(){var p,b;a=!0;try{for(var v=ch(o),x=v.next();!x.done;x=v.next()){var S=x.value;S()}}catch(w){p={error:w}}finally{try{x&&!x.done&&(b=v.return)&&b.call(v)}finally{if(p)throw p.error}}}),h.label=1;case 1:return h.trys.push([1,,3,4]),[4,Promise.all(n.map(function(p,b){return lh(f,void 0,void 0,function(){var v,x;return Ll(this,function(S){switch(S.label){case 0:S.trys.push([0,,6,9]),S.label=1;case 1:return a?[3,5]:(Promise.resolve(p.next()).then(function(w){return o[b](w)},function(w){return i(w)}),[4,new Promise(function(w){o[b]=w})]);case 2:return v=S.sent(),v===void 0?[3,4]:v.done?(l=v,[2]):[4,r(v.value)];case 3:S.sent(),S.label=4;case 4:return[3,1];case 5:return[3,9];case 6:return x=p.return,x?[4,p.return()]:[3,8];case 7:x=S.sent(),S.label=8;case 8:return[7];case 9:return[2]}})})}))];case 2:return h.sent(),[2,l&&l.value];case 3:return i(),[7];case 4:return[2]}})})})}function yoe(e){var t=this,n=gy(e,{returnValues:!0});return new dh(function(r,i){return lh(t,void 0,void 0,function(){var o,a,l,f;return Ll(this,function(h){switch(h.label){case 0:if(!n.length)return i(),[2,[]];a=!1,i.then(function(){o(),a=!0}),h.label=1;case 1:h.trys.push([1,,6,8]),h.label=2;case 2:return a?[3,5]:(Promise.all(n.map(function(p){return p.next()})).then(function(p){return o(p)},function(p){return i(p)}),[4,new Promise(function(p){return o=p})]);case 3:return l=h.sent(),l===void 0?[2]:(f=l.map(function(p){return p.value}),l.some(function(p){return p.done})?[2,f]:[4,r(f)]);case 4:return h.sent(),[3,2];case 5:return[3,8];case 6:return i(),[4,Promise.all(n.map(function(p){return p.return&&p.return()}))];case 7:return h.sent(),[7];case 8:return[2]}})})})}function boe(e){var t=this,n=gy(e,{yieldValues:!0,returnValues:!0});return new dh(function(r,i){return lh(t,void 0,void 0,function(){var o,a,l,f,h,p=this;return Ll(this,function(b){switch(b.label){case 0:if(!n.length)return i(),[2,[]];a=[],l=!1,i.then(function(){var v,x;o();try{for(var S=ch(a),w=S.next();!w.done;w=S.next()){var k=w.value;k()}}catch(_){v={error:_}}finally{try{w&&!w.done&&(x=S.return)&&x.call(S)}finally{if(v)throw v.error}}l=!0}),b.label=1;case 1:return b.trys.push([1,,5,7]),Promise.all(n.map(function(v){return v.next()})).then(function(v){return o(v)},function(v){return i(v)}),[4,new Promise(function(v){return o=v})];case 2:return f=b.sent(),f===void 0?[2]:(h=f.map(function(v){return v.value}),f.every(function(v){return v.done})?[2,h]:[4,r(h.slice())]);case 3:return b.sent(),[4,Promise.all(n.map(function(v,x){return lh(p,void 0,void 0,function(){var S;return Ll(this,function(w){switch(w.label){case 0:if(f[x].done)return[2,f[x].value];w.label=1;case 1:return l?[3,4]:(Promise.resolve(v.next()).then(function(k){return a[x](k)},function(k){return i(k)}),[4,new Promise(function(k){return a[x]=k})]);case 2:return S=w.sent(),S===void 0?[2,f[x].value]:S.done?[2,S.value]:(h[x]=S.value,[4,r(h.slice())]);case 3:return w.sent(),[3,1];case 4:return[2]}})})}))];case 4:return[2,b.sent()];case 5:return i(),[4,Promise.all(n.map(function(v){return v.return&&v.return()}))];case 6:return b.sent(),[7];case 7:return[2]}})})})}async function Eoe(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,a=n.indexOf(";",o);i=n.slice(o,a>-1?a:void 0).trim().replace(/"/g,"")}return async function*(o,a,l){let f,h,p,b=Buffer.byteLength(a),v=Buffer.alloc(0),x=[];e:for await(let S of o){f=v.byteLength,v=Buffer.concat([v,S]);let w=S.indexOf(a);for(~w?f+=w:f=v.indexOf(a),x=[];~f;){let k=v.subarray(0,f),_=v.subarray(f+b);if(h){let N=k.indexOf(`\r
\r
`)+4,O=k.lastIndexOf(`\r
`,N),A=!1,L=k.subarray(N,O>-1?void 0:O),P=String(k.subarray(0,N)).trim().split(`\r
`),j={},F=P.length;for(;p=P[--F];p=p.split(": "),j[p.shift().toLowerCase()]=p.join(": "));if(p=j["content-type"],p&&~p.indexOf("application/json"))try{L=JSON.parse(String(L)),A=!0}catch{}if(p={headers:j,body:L,json:A},yield p,_[0]===45&&_[1]===45)break e}else a=`\r
`+a,h=b+=2;v=_,f=v.indexOf(a)}x.length&&(yield x)}x.length&&(yield x)}(e,`--${i}`)}function xoe(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 Toe(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(a,l,f){if(t(a)){const b=i.get(a);return b?b.push(l):i.set(a,[l]),null}const h=Array.isArray(a)||typeof FileList<"u"&&a instanceof FileList,p=xoe(a);if(h||p){let b=r.get(a);const v=!b;if(v&&(b=h?[]:a instanceof Object?{}:Object.create(null),r.set(a,b)),!f.has(a)){const x=l?`${l}.`:"",S=new Set(f).add(a);if(h){let w=0;for(const k of a){const _=o(k,x+w++,S);v&&b.push(_)}}else for(const w in a){const k=o(a[w],x+w,S);v&&(b[w]=k)}}return b}return a}return{clone:o(e,n,new Set),files:i}}function Soe(e){return typeof File<"u"&&e instanceof File||typeof Blob<"u"&&e instanceof Blob}function woe(e){return typeof e.createReadStream=="function"}function NR(e){const t=[],n=e[Symbol.asyncIterator]();function r(){return Wt(()=>n.next(),({value:i,done:o})=>(i!=null&&t.push(i),o?t:r()))}return r()}function Coe(e,{File:t=wf.File,FormData:n=wf.FormData}){if(!e.variables)return JSON.stringify(e);const r=Object.assign({},e.variables),{clone:i,files:o}=Toe(r,v=>Soe(v)||(v==null?void 0:v.promise)||Ml(v)||(v==null?void 0:v.then)||typeof(v==null?void 0:v.arrayBuffer)=="function","variables");if(o.size===0)return JSON.stringify(e);const a={},l=[];let f=0;for(const[v,x]of o)a[f]=x,l[f]=v,f++;const h=new n;h.append("operations",JSON.stringify({...e,variables:i})),h.append("map",JSON.stringify(a));function p(v,x){const S=x.toString();if(v!=null)return Wt(()=>(v==null?void 0:v.promise)||v,w=>{const k=w.filename||w.name||w.path||`blob-${S}`;if(_oe(w))h.append(S,w,k);else{if(Ml(w))return Wt(()=>NR(w),_=>{const N=new Uint8Array(_);h.append(S,new t([N],k),k)});if(woe(w))return Wt(()=>NR(w.createReadStream()),_=>{const N=new Uint8Array(_);h.append(S,new t([N],k,{type:w.mimetype}),k)});h.append(S,new t([w],k),k)}})}const b=[];for(const v in l){const x=l[v],S=p(x,Number(v));hr(S)&&b.push(S)}return b.length>0?Promise.all(b).then(()=>h):h}function _oe(e){return typeof e.arrayBuffer=="function"}function OR(e,t){return e instanceof Fe?e:(e==null?void 0:e.name)==="TimeoutError"?Kt(e.message,{extensions:{http:{status:504,...(t==null?void 0:t.http)||{}},code:"TIMEOUT_ERROR",...t||{}},originalError:e}):Kt(e.message,{extensions:t,originalError:e})}function vy(e,t){return{errors:[OR(e,t)]}}function Aoe(e){const n=new wf.TextEncoder().encode(e);return Wt(()=>wf.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 kR=`
`;function Doe(e){return e&&typeof e.getReader=="function"}function Noe(e,t,n){const r=e.body;if(!Doe(r))throw new Error("Response body is expected to be a readable stream but got; "+Ki(r));return new dh((i,o)=>{const a=new wf.TextDecoder,l=r.getReader();l.closed.then(o).catch(o),o.then(()=>{t==null||t.abort(),r.locked&&l.releaseLock()}).catch(p=>{l.cancel(p)});let f="";async function h(){var v,x;if(n!=null&&n.aborted)return await i(vy(n.reason)),o();if(!(r!=null&&r.locked))return o();const{done:p,value:b}=await l.read();if(p)return o();for(f+=typeof b=="string"?b:a.decode(b);;){const S=f.indexOf(kR);if(S===-1)break;const w=f.slice(0,S);f=f.slice(S+kR.length);const k=(v=w.split("data:")[1])==null?void 0:v.trim();if(k){const N=JSON.parse(k);await i(N.payload||N)}if(((x=w.split("event:")[1])==null?void 0:x.trim())==="complete")return o()}return h()}return h()})}function Ooe(e){return e!=null&&typeof e=="object"&&"pipe"in e}async function koe(e){const t=e.body,n=e.headers.get("content-type")||"";let r;if(Ooe(t)){t.headers={"content-type":n};const a=await Eoe(t);"next"in a&&(r=a)}else{const a=await nj(e);"next"in a&&(r=a)}const i={};return r==null?i:KS(r,a=>{if(a.json){const l=a.body;bR({incrementalResult:l,executionResult:i})}return i})}const RR=da(function(t){var n;return t.operation==="query"&&((n=t.directives)==null?void 0:n.some(r=>r.name.value==="live"))});function Roe({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 Moe(e){const t=(e==null?void 0:e.print)??o3;let n;const r=e==null?void 0:e.serviceName,i=(a,l)=>{var j,F,B,q,W,Z;if(n||(n=new AbortController),n.signal.aborted)return vy(n.signal.reason);const f=((j=a.extensions)==null?void 0:j.fetch)??(e==null?void 0:e.fetch)??wf.fetch;let h=((F=a.extensions)==null?void 0:F.method)||(e==null?void 0:e.method);const p=Tf(a),b=p.operation;(e!=null&&e.useGETForQueries||(B=a.extensions)!=null&&B.useGETForQueries)&&b==="query"&&(h="GET");let v="application/graphql-response+json, application/json, multipart/mixed",x;b==="subscription"||RR(p)?(h||(h="GET"),v="text/event-stream",x=new AbortController):h||(h="POST");const S=((q=a.extensions)==null?void 0:q.endpoint)||(e==null?void 0:e.endpoint)||"/graphql",w={accept:v};if(e!=null&&e.headers&&Object.assign(w,typeof(e==null?void 0:e.headers)=="function"?e.headers(a):e==null?void 0:e.headers),(W=a.extensions)!=null&&W.headers){const{headers:X,...ee}=a.extensions;Object.assign(w,X),a.extensions=ee}const k=[n.signal],_=a.signal||((Z=a.info)==null?void 0:Z.signal);if(_){if(_.aborted)return vy(_.reason);k.push(_)}e!=null&&e.timeout&&k.push(AbortSignal.timeout(e.timeout)),x&&k.push(x.signal);const N=loe(k),O={code:"DOWNSTREAM_SERVICE_ERROR",serviceName:r,request:{method:h}},A=t(a.document);let L=function(){return s3({executionRequest:a,excludeQuery:l,printFn:t})};e!=null&&e.apq&&(L=function(){return Wt(()=>Aoe(A),ee=>{const H=a.extensions||{};return H.persistedQuery={version:1,sha256Hash:ee},s3({executionRequest:{...a,extensions:H},excludeQuery:l,printFn:t})})});function P(X){return X.name==="AggregateError"?{errors:X.errors.map(ee=>MR(ee,{signal:N,endpoint:S,upstreamErrorExtensions:O}))}:{errors:[MR(X,{signal:N,endpoint:S,upstreamErrorExtensions:O})]}}return Wt(()=>L(),X=>Wt(()=>{switch(h){case"GET":{const ee=Roe({baseUrl:S,body:X}),H={method:"GET",headers:w,signal:N};return(e==null?void 0:e.credentials)!=null&&(H.credentials=e.credentials),O.request.url=ee,f(ee,H,a.context,a.info)}case"POST":return O.request.body=X,Wt(()=>Coe(X,{File:e==null?void 0:e.File,FormData:e==null?void 0:e.FormData}),ee=>{typeof ee=="string"&&!w["content-type"]&&(O.request.body=ee,w["content-type"]="application/json");const H={method:"POST",body:ee,headers:w,signal:N};return(e==null?void 0:e.credentials)!=null&&(H.credentials=e.credentials),f(S,H,a.context,a.info)},P)}},ee=>Wt(()=>{if(O.response||(O.response={}),O.response.status=ee.status,O.response.statusText=ee.statusText,Object.defineProperty(O.response,"headers",{get(){return Object.fromEntries(ee.headers.entries())}}),(e==null?void 0:e.retry)!=null&&!ee.status.toString().startsWith("2"))throw new Error(ee.statusText||`Upstream HTTP Error: ${ee.status}`);const H=ee.headers.get("content-type");return H!=null&&H.includes("text/event-stream")?Noe(ee,x,N):H!=null&&H.includes("multipart/mixed")?koe(ee):ee.text()},H=>{if(typeof H=="string")if(O.response||(O.response={}),O.response.body=H,H)try{const J=JSON.parse(H);return O.response.body=J,J.data==null&&(J.errors==null||J.errors.length===0)?{errors:[Kt('Unexpected empty "data" and "errors" fields in result: '+H,{extensions:O})]}:Array.isArray(J.errors)?{...J,errors:J.errors.map(({message:ue,...ne})=>Kt(ue,{...ne,extensions:{code:"DOWNSTREAM_SERVICE_ERROR",serviceName:r,...ne.extensions||{}}}))}:J}catch(J){return{errors:[Kt(`Unexpected response: ${JSON.stringify(H)}`,{extensions:O,originalError:J})]}}else return{errors:[Kt("No response returned",{extensions:O})]};else return H},P),P),P)};let o=i;if((e==null?void 0:e.apq)!=null&&(o=function(l){return Wt(()=>i(l,!0),f=>{var h;return(h=f.errors)!=null&&h.some(p=>p.extensions.code==="PERSISTED_QUERY_NOT_FOUND"||p.message==="PersistedQueryNotFound")?i(l,!1):f})}),(e==null?void 0:e.retry)!=null){const a=o;o=function(f){let h,p=0;function b(){return n!=null&&n.signal.aborted?vy(n.signal.reason):(p++,p>e.retry?h??{errors:[Kt("No response returned from fetch")]}:Wt(()=>a(f),v=>{var x;return h=v,(x=h==null?void 0:h.errors)!=null&&x.length?b():h}))}return b()}}return Object.defineProperties(o,{[Hu.dispose]:{get(){return function(){var l;n==null||n.abort((l=e==null?void 0:e.getDisposeReason)==null?void 0:l.call(e)),n=void 0}}},[Hu.asyncDispose]:{get(){return function(){var l;n==null||n.abort((l=e==null?void 0:e.getDisposeReason)==null?void 0:l.call(e)),n=void 0}}}}),o}function MR(e,{signal:t,endpoint:n,upstreamErrorExtensions:r}){return typeof e=="string"?Kt(e,{extensions:r}):e.name==="GraphQLError"?e:e.name==="TypeError"&&e.message==="fetch failed"?Kt(`fetch failed to ${n}`,{extensions:r,originalError:e}):e.name==="AbortError"?OR((t==null?void 0:t.reason)||e,r):e.message?Kt(e.message,{extensions:r,originalError:e}):Kt("Unknown error",{extensions:r,originalError:e})}var Vs;(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"})(Vs||(Vs={}));function Loe(e,t,n){let r={},i=null;const o=(f=h=>console.error(h))=>{(i==null||i.readyState!==eu.OPEN)&&(i=new t(e,"graphql-ws",{followRedirects:!0,headers:n==null?void 0:n.headers,rejectUnauthorized:!1,skipUTF8Validation:!0}),i.onopen=()=>{let h={};switch(typeof(n==null?void 0:n.connectionParams)){case"function":h=n==null?void 0:n.connectionParams();break;case"object":h=n==null?void 0:n.connectionParams;break}h=Object.assign(h,r),i.send(JSON.stringify({type:Vs.CONNECTION_INIT,payload:h}),p=>{p&&f(p)})},i.onerror=h=>{f(h.error)},i.onclose=()=>{i=null})},a=()=>{i!=null&&(i.send(JSON.stringify({type:Vs.CONNECTION_TERMINATE})),i.terminate(),i=null)},l=function(h){var b,v;(b=h.extensions)!=null&&b.connectionParams&&typeof((v=h.extensions)==null?void 0:v.connectionParams)=="object"&&(r=Object.assign(r,h.extensions.connectionParams));const p=Date.now().toString();return Yie({subscribe(x){function S(w){x.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 Vs.CONNECTION_ACK:{if(i==null)throw new Error("WebSocket connection is not found!");i.send(JSON.stringify({type:Vs.START,id:p,payload:{query:mn(h.document),variables:h.variables,operationName:h.operationName}}),_=>{_&&S(_)});break}case Vs.CONNECTION_ERROR:{x.error(k.payload);break}case Vs.CONNECTION_KEEP_ALIVE:break;case Vs.DATA:{x.next(k.payload);break}case Vs.COMPLETE:{i!=null&&i.send(JSON.stringify({type:Vs.CONNECTION_TERMINATE}),_=>{_&&S(_)}),x.complete(),a();break}}},{unsubscribe:()=>{(i==null?void 0:i.readyState)===eu.OPEN&&(i==null||i.send(JSON.stringify({type:Vs.STOP,id:p}))),a()}}}})};return l[Symbol.dispose]=a,l}function tu(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 Ioe(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 f;r=new Promise(p=>{f=p});const h=await t.next();return h.done?(i=!0,await o()):(n=h.value[Symbol.asyncIterator](),r=void 0,f(),await o())}const a=n,l=await n.next();return l.done?(n===a&&(n=void 0),await o()):l}catch(a){throw i=!0,a}}return{next:o,async return(){var a,l;return i=!0,await Promise.all([(a=n==null?void 0:n.return)==null?void 0:a.call(n),(l=t.return)==null?void 0:l.call(t)]),{value:void 0,done:!0}},async throw(a){var l,f;throw i=!0,await Promise.all([(l=n==null?void 0:n.throw)==null?void 0:l.call(n,a),(f=t.throw)==null?void 0:f.call(t,a)]),a},[Symbol.asyncIterator](){return this},async[Hu.asyncDispose](){var a,l;i=!0,await Promise.all([(a=n==null?void 0:n[Hu.asyncDispose])==null?void 0:a.call(n),(l=t==null?void 0:t[Hu.asyncDispose])==null?void 0:l.call(t)])}}}function LR(e,t){if(!e)throw new Error(t??"Unexpected invariant triggered.")}function IR(e,t,n){t==null||t.throwIfAborted();const r=Object.create(null),i=[];for(const a in e){const l=Wt(()=>e[a],f=>{r[a]=f});hr(l)&&i.push(l)}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 Foe(e,t,n,r){const i=[],o=r==null?void 0:r.maxErrors;try{const a=Poe(e,t,n,l=>{if(o!=null&&i.length>=o)throw Kt("Too many errors processing variables, error limit reached. Execution aborted.");i.push(l)});if(i.length===0)return{coerced:a}}catch(a){i.push(a)}return{errors:i}}function Poe(e,t,n,r){const i={};for(const o of t){const a=o.variable.name.value,l=Mi(e,o.type);if(!Gi(l)){const h=mn(o.type);r(Kt(`Variable "$${a}" expected value of type "${h}" which cannot be used as an input type.`,{nodes:o.type}));continue}if(!sR(n,a)){if(o.defaultValue)i[a]=As(o.defaultValue,l);else if(wt(l)){const h=Ki(l);r(Kt(`Variable "$${a}" of required type "${h}" was not provided.`,{nodes:o}))}continue}const f=n[a];if(f===null&&wt(l)){const h=Ki(l);r(Kt(`Variable "$${a}" of non-null type "${h}" must not be null.`,{nodes:o}));continue}i[a]=M2(f,l,(h,p,b)=>{let v=`Variable "$${a}" got invalid value `+Ki(p);h.length>0&&(v+=` at "${a}${eoe(h)}"`),r(Kt(v+"; "+b.message,{nodes:o,originalError:b}))})}return i}const joe=bie((e,t,n)=>Zie(e.schema,e.fragments,e.variableValues,t,n));function Voe(e){const t=jR(e);return"schema"in t?FR(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 FR(e){var t;return(t=e.signal)==null||t.throwIfAborted(),Wt(()=>Uoe(e),n=>{const r=PR(n,e.errors);return e.subsequentPayloads.size>0?{initialResult:{...r,hasNext:!0},subsequentResults:ise(e)}:r},n=>{var r;return(r=e.signal)==null||r.throwIfAborted(),n.errors?e.errors.push(...n.errors):e.errors.push(n),PR(null,e.errors)})}function PR(e,t){return t.length===0?{data:e}:{errors:t,data:e}}const Boe=da(function(t){const n=Object.create(null);for(const r of t.definitions)r.kind===Q.FRAGMENT_DEFINITION&&(n[r.name.value]=r);return n});function jR(e){var _;const{schema:t,document:n,rootValue:r,contextValue:i,variableValues:o,operationName:a,fieldResolver:l,typeResolver:f,subscribeFieldResolver:h,signal:p}=e;p==null||p.throwIfAborted(),Jg(t);const b=Boe(n);let v;for(const N of n.definitions)switch(N.kind){case Q.OPERATION_DEFINITION:if(a==null){if(v!==void 0)return[Kt("Must provide operation name if query contains multiple operations.",{extensions:{code:"OPERATION_RESOLUTION_FAILURE"}})];v=N}else((_=N.name)==null?void 0:_.value)===a&&(v=N);break}if(v==null)return a!=null?[Kt(`Unknown operation named "${a}".`,{extensions:{code:"OPERATION_RESOLUTION_FAILURE"}})]:[Kt("Must provide an operation.",{extensions:{code:"OPERATION_RESOLUTION_FAILURE"}})];const x=v.variableDefinitions??[],S=Foe(t,x,o??{},{maxErrors:50});if(S.errors)return S.errors;p==null||p.throwIfAborted();let w,k;if(p){const N=new Set,O=Z9();k=O.promise;const A=()=>{O.reject(p.reason),p.removeEventListener("abort",A)};p.addEventListener("abort",A,{once:!0}),k.catch(()=>{for(const L of N)L();N.clear()}),w=L=>{N.add(L)}}return{schema:t,fragments:b,rootValue:r,contextValue:i,operation:v,variableValues:S.coerced,fieldResolver:l??WR,typeResolver:f??Yoe,subscribeFieldResolver:h??WR,subsequentPayloads:new Set,errors:[],signal:p,onSignalAbort:w,signalPromise:k}}function $oe(e,t){return{...e,rootValue:t,subsequentPayloads:new Set,errors:[]}}function Uoe(e){const{operation:t,schema:n,fragments:r,variableValues:i,rootValue:o}=e,a=ry(n,t.operation,[t]);a==null&&Kt(`Schema is not configured to execute ${t.operation} operation.`,{nodes:t});const{fields:l,patches:f}=n3(n,r,i,a,t.selectionSet),h=void 0;let p;t.operation==="mutation"?p=Hoe(e,a,o,h,l):p=h3(e,a,o,h,l);for(const b of f){const{label:v,fields:x}=b;ZR(e,a,o,x,v,h)}return p}function Hoe(e,t,n,r,i){return oR(i,(o,[a,l])=>{var h;const f=uh(r,a,t.name);return(h=e.signal)==null||h.throwIfAborted(),Wt(()=>VR(e,t,n,l,f),p=>(p===void 0||(o[a]=p),o))},Object.create(null))}function h3(e,t,n,r,i,o){var f,h;const a=Object.create(null);let l=!1;try{for(const[p,b]of i){(f=e.signal)==null||f.throwIfAborted();const v=uh(r,p,t.name),x=VR(e,t,n,b,v,o);x!==void 0&&(a[p]=x,hr(x)&&(l=!0))}}catch(p){if(p!==((h=e.signal)==null?void 0:h.reason)&&l)return Wt(()=>IR(a,e.signal),()=>{throw p},()=>{throw p});throw p}return l?IR(a,e.signal,e.signalPromise):a}function VR(e,t,n,r,i,o){var b;const a=(o==null?void 0:o.errors)??e.errors,l=e7(e.schema,t,r[0]);if(!l)return;const f=l.type,h=l.resolve??e.fieldResolver,p=BR(e,l,r,t,i);try{(b=e.signal)==null||b.throwIfAborted();const v=aR(l,r[0],e.variableValues),x=e.contextValue,S=h(n,v,x,p);let w;return hr(S)?w=S.then(k=>Il(e,f,r,p,i,k,o)):w=Il(e,f,r,p,i,S,o),hr(w)?w.then(void 0,k=>{if(k instanceof AggregateError){let O;for(let A of k.errors){A=tu(A);const L=mr(A,r,Vi(i));O=Bs(L,f,a),zo(e,i,o)}return O}k=tu(k);const _=mr(k,r,Vi(i)),N=Bs(_,f,a);return zo(e,i,o),N}):w}catch(v){if(v instanceof AggregateError){let k;for(let _ of v.errors){_=tu(_);const N=mr(_,r,Vi(i));k=Bs(N,f,a),zo(e,i,o)}return k}const x=tu(v),S=mr(x,r,Vi(i)),w=Bs(S,f,a);return zo(e,i,o),w}}function BR(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 $R="CRITICAL_ERROR";function Bs(e,t,n){var r;if(wt(t)||(r=e.extensions)!=null&&r[$R])throw e;return n.push(e),null}function Il(e,t,n,r,i,o,a){if(o instanceof Error)throw o;if(wt(t)){const l=Il(e,t.ofType,n,r,i,o,a);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(vn(t))return qoe(e,t,n,r,i,o,a);if(yi(t))return Goe(t,o);if(cr(t))return Woe(e,t,n,r,i,o,a);if(_t(t))return p3(e,t,n,r,i,o,a);console.assert(!1,"Cannot complete value of unexpected output type: "+Ki(t))}function UR(e,t,n){if(typeof n.key=="number")return;const r=Ia(Kie,t[0],e.variableValues);if(r&&r.if!==!1)return LR(typeof r.initialCount=="number","initialCount must be a number"),LR(r.initialCount>=0,"initialCount must be a positive integer"),{initialCount:r.initialCount,label:typeof r.label=="string"?r.label:void 0}}async function zoe(e,t,n,r,i,o,a){var v,x;(v=e.signal)==null||v.throwIfAborted(),o.return&&((x=e.onSignalAbort)==null||x.call(e,()=>{var S;(S=o.return)==null||S.call(o)}));const l=(a==null?void 0:a.errors)??e.errors,f=UR(e,n,i);let h=!1;const p=[];let b=0;for(;;){if(f&&typeof f.initialCount=="number"&&b>=f.initialCount){nse(b,o,e,n,r,t,i,f.label,a);break}const S=uh(i,b,void 0);let w;try{if(w=await o.next(),w.done)break}catch(k){const _=tu(k),N=mr(_,n,Vi(S));p.push(Bs(N,t,l));break}HR(w.value,p,l,e,t,n,r,S,a)&&(h=!0),b+=1}return h?Promise.all(p):p}function qoe(e,t,n,r,i,o,a){const l=t.ofType,f=(a==null?void 0:a.errors)??e.errors;if(Ml(o)){const S=o[Symbol.asyncIterator]();return zoe(e,l,n,r,i,S,a)}if(!yie(o))throw Kt(`Expected Iterable, but did not find one for field "${r.parentType.name}.${r.fieldName}".`);const h=UR(e,n,i);let p=!1,b=a;const v=[];let x=0;for(const S of o){const w=uh(i,x,void 0);if(h&&typeof h.initialCount=="number"&&x>=h.initialCount){b=ese(i,w,S,e,n,r,l,h.label,b),x++;continue}HR(S,v,f,e,l,n,r,w,a)&&(p=!0),x++}return p?Promise.all(v):v}function HR(e,t,n,r,i,o,a,l,f){try{let h;if(hr(e)?h=e.then(p=>Il(r,i,o,a,l,p,f)):h=Il(r,i,o,a,l,e,f),hr(h))return t.push(h.then(void 0,p=>{p=tu(p);const b=mr(p,o,Vi(l)),v=Bs(b,i,n);return zo(r,l,f),v})),!0;t.push(h)}catch(h){const p=tu(h),b=mr(p,o,Vi(l)),v=Bs(b,i,n);zo(r,l,f),t.push(v)}return!1}function Goe(e,t){let n;try{n=e.serialize(t)}catch(r){throw r instanceof Fe?new Error(r.message):r}if(n==null)throw new Error(`Expected \`${Ki(e)}.serialize(${Ki(t)})\` to return non-nullable value, returned: ${Ki(n)}`);return n}function Woe(e,t,n,r,i,o,a){const l=t.resolveType??e.typeResolver,f=e.contextValue,h=l(o,f,r,t);return hr(h)?h.then(p=>p3(e,zR(p,e,t,n,r,o),n,r,i,o,a)):p3(e,zR(h,e,t,n,r,o),n,r,i,o,a)}function zR(e,t,n,r,i,o){if(e==null)throw Kt(`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(_t(e)){if(kg.major>=16)throw Kt("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 Kt(`Abstract type "${n.name}" must resolve to an Object type at runtime for field "${i.parentType.name}.${i.fieldName}" with value ${Ki(o)}, received "${Ki(e)}".`);const a=t.schema.getType(e);if(a==null)throw Kt(`Abstract type "${n.name}" was resolved to a type "${e}" that does not exist inside the schema.`,{nodes:r});if(!_t(a))throw Kt(`Abstract type "${n.name}" was resolved to a non-object type "${e}".`,{nodes:r});if(!t.schema.isSubType(n,a))throw Kt(`Runtime Object type "${a.name}" is not a possible type for "${n.name}".`,{nodes:r});return a}function p3(e,t,n,r,i,o,a){if(t.isTypeOf){const l=t.isTypeOf(o,e.contextValue,r);if(hr(l))return l.then(f=>{if(!f)throw qR(t,o,n);return GR(e,t,n,i,o,a)});if(!l)throw qR(t,o,n)}return GR(e,t,n,i,o,a)}function qR(e,t,n){return Kt(`Expected value of type "${e.name}" but got: ${Ki(t)}.`,{nodes:n})}function GR(e,t,n,r,i,o){const{fields:a,patches:l}=joe(e,t,n),f=h3(e,t,i,r,a,o);for(const h of l){const{label:p,fields:b}=h;ZR(e,t,i,b,p,r,o)}return f}const Yoe=function(e,t,n,r){if(iR(e)&&typeof e.__typename=="string")return e.__typename;const i=n.schema.getPossibleTypes(r),o=[];for(let a=0;a<i.length;a++){const l=i[a];if(l.isTypeOf){const f=l.isTypeOf(e,t,n);if(hr(f))o[a]=f;else if(f)return l.name}}if(o.length)return Promise.all(o).then(a=>{for(let l=0;l<a.length;l++)if(a[l])return i[l].name})},WR=function(e,t,n,r){if(iR(e)||typeof e=="function"){const i=e[r.fieldName];return typeof i=="function"?e[r.fieldName](t,n,r):i}};function Qoe(e){const t=jR(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=Zoe(t);return hr(n)?n.then(r=>QR(t,r)):QR(t,n)}function Koe(e){return e==null?void 0:e.initialResult}function YR(e){const t=e.subsequentResults;let n=!1,r=!1;return{[Symbol.asyncIterator](){return this},next(){return r?Uo({value:void 0,done:r}):n?t.next():(n=!0,Uo({value:e.initialResult,done:r}))},return(){return r=!0,t.return()},throw(i){return r=!0,t.throw(i)},[Hu.asyncDispose](){var i;return r=!0,(i=t==null?void 0:t[Hu.asyncDispose])==null?void 0:i.call(t)}}}async function*Xoe(e){"initialResult"in e?yield*YR(e):yield e}function QR(e,t){return Ml(t)?Ioe(KS(t,n=>Wt(()=>FR($oe(e,n)),Xoe),n=>{throw n instanceof AggregateError?new AggregateError(n.errors.map(r=>KR(r,e.operation)),n.message):KR(n,e.operation)})):t}function KR(e,t){return Kt(e.message,{originalError:e,nodes:[t]})}function Zoe(e){try{const t=Joe(e);return hr(t)?t.then(void 0,n=>({errors:[n]})):t}catch(t){return{errors:[t]}}}function Joe(e){const{schema:t,fragments:n,operation:r,variableValues:i,rootValue:o}=e,a=t.getSubscriptionType();if(a==null)throw Kt("Schema is not configured to execute subscription operation.",{nodes:r});const{fields:l}=n3(t,n,i,a,r.selectionSet),[f,h]=[...l.entries()][0],p=h[0].name.value,b=e7(t,a,h[0]);if(!b)throw Kt(`The subscription field "${p}" is not defined.`,{nodes:h});const v=uh(void 0,f,a.name),x=BR(e,b,h,a,v);try{const S=aR(b,h[0],i),w=e.contextValue,_=(b.subscribe??e.subscribeFieldResolver)(o,S,w,x);return hr(_)?_.then(N=>XR(N,e.signal,e.onSignalAbort)).then(void 0,N=>{throw mr(N,h,Vi(v))}):XR(_,e.signal,e.onSignalAbort)}catch(S){throw mr(S,h,Vi(v))}}function XR(e,t,n){if(t==null||t.throwIfAborted(),e instanceof Error)throw e;if(!Ml(e))throw Kt(`Subscription field must return Async Iterable. Received: ${Ki(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 ZR(e,t,n,r,i,o,a){const l=new ose({label:i,path:o,parentContext:a,exeContext:e});let f;try{f=h3(e,t,n,o,r,l),hr(f)&&(f=f.then(null,h=>(l.errors.push(h),null)))}catch(h){l.errors.push(h),f=null}l.addData(f)}function ese(e,t,n,r,i,o,a,l,f){const h=new JR({label:l,path:t,parentContext:f,exeContext:r});let p;try{try{hr(n)?p=n.then(v=>Il(r,a,i,o,t,v,h)):p=Il(r,a,i,o,t,n,h),hr(p)&&(p=p.then(void 0,v=>{v=tu(v);const x=mr(v,i,Vi(t)),S=Bs(x,a,h.errors);return zo(r,t,h),S}))}catch(v){const x=tu(v),S=mr(x,i,Vi(t));p=Bs(S,a,h.errors),zo(r,t,h)}}catch(v){return h.errors.push(v),zo(r,e,h),h.addItems(null),h}let b;return hr(p)?b=p.then(v=>[v],v=>(h.errors.push(v),zo(r,e,h),null)):b=[p],h.addItems(b),h}async function tse(e,t,n,r,i,o,a){let l;try{const{value:h,done:p}=await e.next();if(p)return o.setIsCompletedIterator(),{done:p,value:void 0};l=h}catch(h){const p=tu(h),b=mr(p,n,Vi(a));return{done:!0,value:Bs(b,i,o.errors)}}let f;try{return f=Il(t,i,n,r,a,l,o),hr(f)&&(f=f.then(void 0,h=>{const p=mr(h,n,Vi(a)),b=Bs(p,i,o.errors);return zo(t,a,o),b})),{done:!1,value:f}}catch(h){const p=mr(h,n,Vi(a)),b=Bs(p,i,o.errors);return zo(t,a,o),{done:!1,value:b}}}async function nse(e,t,n,r,i,o,a,l,f){let h=e,p=f??void 0;for(;;){const b=uh(a,h,void 0),v=new JR({label:l,path:b,parentContext:p,iterator:t,exeContext:n});let x;try{x=await tse(t,n,r,i,o,v,b)}catch(_){v.errors.push(_),zo(n,a,v),v.addItems(null),t!=null&&t.return&&t.return().catch(()=>{});return}const{done:S,value:w}=x;let k;if(hr(w)?k=w.then(_=>[_],_=>(v.errors.push(_),zo(n,a,v),null)):k=[w],v.addItems(k),S)break;p=v,h++}}function zo(e,t,n){const r=Vi(t);e.subsequentPayloads.forEach(i=>{var o;if(i!==n){for(let a=0;a<r.length;a++)if(i.path[a]!==r[a])return;m3(i)&&((o=i.iterator)!=null&&o.return)&&i.iterator.return().catch(()=>{}),e.subsequentPayloads.delete(i)}})}function rse(e){const t=[];for(const n of e.subsequentPayloads){const r={};if(n.isCompleted){if(e.subsequentPayloads.delete(n),m3(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 ise(e){let t=!1;async function n(){if(t)return{value:void 0,done:!0};const i=Array.from(e.subsequentPayloads).map(l=>l.promise);if(e.signalPromise?await Promise.race([e.signalPromise,...i]):await Promise.race(i),t)return{value:void 0,done:!0};const o=rse(e),a=e.subsequentPayloads.size>0;return!o.length&&a?n():(a||(t=!0),{value:o.length?{incremental:o,hasNext:a}:{hasNext:a},done:!1})}function r(){const i=[];return e.subsequentPayloads.forEach(o=>{var a;m3(o)&&((a=o.iterator)!=null&&a.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[Hu.asyncDispose](){await r(),t=!0}}}class ose{constructor(t){on(this,"type");on(this,"errors");on(this,"label");on(this,"path");on(this,"promise");on(this,"data");on(this,"parentContext");on(this,"isCompleted");on(this,"_exeContext");on(this,"_resolve");this.type="defer",this.label=t.label,this.path=Vi(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 JR{constructor(t){on(this,"type");on(this,"errors");on(this,"label");on(this,"path");on(this,"items");on(this,"promise");on(this,"parentContext");on(this,"iterator");on(this,"isCompletedIterator");on(this,"isCompleted");on(this,"_exeContext");on(this,"_resolve");this.type="stream",this.items=null,this.label=t.label,this.path=Vi(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 m3(e){return e.type==="stream"}function e7(e,t,n){const r=n.name.value;return r===ws.name&&e.getQueryType()===t?ws:r===Cs.name&&e.getQueryType()===t?Cs:r===_s.name?_s:t.getFields()[r]}function sse(e){const t=U2(e.document,e.operationName);if(t==null)throw new Error("Must provide an operation.");return t.operation==="subscription"?Qoe(e):Wt(()=>Voe(e),n=>Koe(n)?YR(n):n)}const ase=da(function(t){return function(r){var i;return sse({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 g3,t7;function use(){if(t7)return g3;t7=1;var e=function(){function x(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=l(k),this._batchScheduleFn=f(k),this._cacheKeyFn=h(k),this._cacheMap=p(k),this._batch=null,this.name=b(k)}var S=x.prototype;return S.load=function(k){if(k==null)throw new TypeError("The loader.load() function must be called with a value, "+("but got: "+String(k)+"."));var _=r(this),N=this._cacheMap,O;if(N){O=this._cacheKeyFn(k);var A=N.get(O);if(A){var L=_.cacheHits||(_.cacheHits=[]);return new Promise(function(j){L.push(function(){j(A)})})}}_.keys.push(k);var P=new Promise(function(j,F){_.callbacks.push({resolve:j,reject:F})});return N&&N.set(O,P),P},S.loadMany=function(k){if(!v(k))throw new TypeError("The loader.loadMany() function must be called with Array<key> "+("but got: "+k+"."));for(var _=[],N=0;N<k.length;N++)_.push(this.load(k[N]).catch(function(O){return O}));return Promise.all(_)},S.clear=function(k){var _=this._cacheMap;if(_){var N=this._cacheKeyFn(k);_.delete(N)}return this},S.clearAll=function(){var k=this._cacheMap;return k&&k.clear(),this},S.prime=function(k,_){var N=this._cacheMap;if(N){var O=this._cacheKeyFn(k);if(N.get(O)===void 0){var A;_ instanceof Error?(A=Promise.reject(_),A.catch(function(){})):A=Promise.resolve(_),N.set(O,A)}}return this},x}(),t=typeof process=="object"&&typeof process.nextTick=="function"?function(x){n||(n=Promise.resolve()),n.then(function(){process.nextTick(x)})}:typeof setImmediate=="function"?function(x){setImmediate(x)}:function(x){setTimeout(x)},n;function r(x){var S=x._batch;if(S!==null&&!S.hasDispatched&&S.keys.length<x._maxBatchSize)return S;var w={hasDispatched:!1,keys:[],callbacks:[]};return x._batch=w,x._batchScheduleFn(function(){i(x,w)}),w}function i(x,S){if(S.hasDispatched=!0,S.keys.length===0){a(S);return}var w;try{w=x._batchLoadFn(S.keys)}catch(k){return o(x,S,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(x,S,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(!v(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!==S.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(S.keys))+(`
Values:
`+String(k)));a(S);for(var _=0;_<S.callbacks.length;_++){var N=k[_];N instanceof Error?S.callbacks[_].reject(N):S.callbacks[_].resolve(N)}}).catch(function(k){o(x,S,k)})}function o(x,S,w){a(S);for(var k=0;k<S.keys.length;k++)x.clear(S.keys[k]),S.callbacks[k].reject(w)}function a(x){if(x.cacheHits)for(var S=0;S<x.cacheHits.length;S++)x.cacheHits[S]()}function l(x){var S=!x||x.batch!==!1;if(!S)return 1;var w=x&&x.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 f(x){var S=x&&x.batchScheduleFn;if(S===void 0)return t;if(typeof S!="function")throw new TypeError("batchScheduleFn must be a function: "+S);return S}function h(x){var S=x&&x.cacheKeyFn;if(S===void 0)return function(w){return w};if(typeof S!="function")throw new TypeError("cacheKeyFn must be a function: "+S);return S}function p(x){var S=!x||x.cache!==!1;if(!S)return null;var w=x&&x.cacheMap;if(w===void 0)return new Map;if(w!==null){var k=["get","set","delete","clear"],_=k.filter(function(N){return w&&typeof w[N]!="function"});if(_.length!==0)throw new TypeError("Custom cacheMap missing methods: "+_.join(", "))}return w}function b(x){return x&&x.name?x.name:null}function v(x){return typeof x=="object"&&x!==null&&typeof x.length=="number"&&(x.length===0||x.length>0&&Object.prototype.hasOwnProperty.call(x,x.length-1))}return g3=e,g3}var lse=use();const n7=Lr(lse);function cse(e){return`_v${e}_`}function r7(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 fse(e){const t=r7(e);if(!t)throw new Error(`Key ${e} is not correctly prefixed`);return t}function dse(e){let t=0,n=null;for(;!n&&t<e.length;t++){const r=e[t];typeof r=="string"&&(n=r7(r))}if(!n)throw new Error(`Path ${e.join(".")} does not contain correctly prefixed key`);return{...n,keyOffset:t}}function hse(e,t){var b,v,x;const n=Object.create(null),r=[],i=[],o=[];let a=Object.create(null);for(let S=0;S<e.length;S++){const w=e[S];if(w){const k=pse(cse(S),w);for(const _ of k.document.definitions)a7(_)&&(i.push(..._.selectionSet.selections),_.variableDefinitions&&r.push(..._.variableDefinitions)),yy(_)&&o.push(_);Object.assign(n,k.variables),a=t(a,w)}}const l=e[0];if(!l)throw new Error("At least one request is required");const f=l.operationType??Tf(l).operation,h={kind:Q.OPERATION_DEFINITION,operation:f,variableDefinitions:r,selectionSet:{kind:Q.SELECTION_SET,selections:i}},p=l.operationName??((x=(v=(b=l.info)==null?void 0:b.operation)==null?void 0:v.name)==null?void 0:x.value);return p&&(h.name={kind:Q.NAME,value:p}),{document:{kind:Q.DOCUMENT,definitions:[h,...o]},variables:n,extensions:a,context:l.context,info:l.info,operationType:f,rootValue:l.rootValue}}function pse(e,t){var h;function n(p){return s7(p,e)}let r=mse(e,t.document),i=!1;for(const p of r.definitions)if(yy(p)||a7(p)&&((h=p.variableDefinitions)!=null&&h.length)){i=!0;break}const o={};let a=!1;i&&(r=Cr(r,{[Q.VARIABLE]:n,[Q.FRAGMENT_DEFINITION](p){return a=!0,n(p)},[Q.FRAGMENT_SPREAD]:p=>(p=s7(p,e),o[p.name.value]=!0,p)}));let l;const f=t.variables;if(f){l=Object.create(null);for(const p in f)l[e+p]=f[p]}return a&&(r={...r,definitions:r.definitions.filter(p=>!yy(p)||o[p.name.value])}),{document:r,variables:l}}function mse(e,t){const n={[Q.OPERATION_DEFINITION]:r=>{const{selections:i}=r.selectionSet;return{...r,selectionSet:{...r.selectionSet,selections:i7(e,i,t)}}}};return Cr(t,n,{[Q.DOCUMENT]:["definitions"]})}function i7(e,t,n){return t.map(r=>{switch(r.kind){case Q.INLINE_FRAGMENT:return o7(e,r,n);case Q.FRAGMENT_SPREAD:{const i=gse(r,n);return o7(e,i,n)}case Q.FIELD:default:return vse(r,e)}})}function o7(e,t,n){const{selections:r}=t.selectionSet;return{...t,selectionSet:{...t.selectionSet,selections:i7(e,r,n)}}}function gse(e,t){const n=t.definitions.find(o=>yy(o)&&o.name.value===e.name.value);if(!n)throw new Error(`Fragment ${e.name.value} does not exist`);const{typeCondition:r,selectionSet:i}=n;return{kind:Q.INLINE_FRAGMENT,typeCondition:r,selectionSet:i,directives:e.directives}}function s7(e,t){return{...e,name:{...e.name,value:t+e.name.value}}}function vse(e,t){const n=e.alias?e.alias:e.name;return{...e,alias:{...n,value:t+n.value}}}function a7(e){return e.kind===Q.OPERATION_DEFINITION}function yy(e){return e.kind===Q.FRAGMENT_DEFINITION}function yse({data:e,errors:t},n){const r=[];for(let i=0;i<n;i++)r.push({});if(e)for(const i in e){const{index:o,originalKey:a}=fse(i),l=r[o];l!=null&&(l.data==null?l.data={[a]:e[i]}:l.data[a]=e[i])}if(t)for(const i of t)if(i.path){const{index:o,originalKey:a,keyOffset:l}=dse(i.path),f=XS(i,[a,...i.path.slice(l)]),h=r[o];h&&(h.errors||(h.errors=[])).push(f)}else r.forEach(o=>{(o.errors||(o.errors=[])).push(i)});return r}function bse(e,t,n=xse){const r=Ese(e,n),i=new n7(r,t),o=new n7(r,t);return function(l){var h;const f=l.operationType??((h=Tf(l))==null?void 0:h.operation);switch(f){case"query":return i.load(l);case"mutation":return o.load(l);case"subscription":return e(l);default:throw new Error(`Invalid operation type "${f}"`)}}}function Ese(e,t){return function(r){if(r.length===1&&r[0]){const o=r[0];return Uo(Wt(()=>e(o),a=>[a],a=>[a]))}const i=hse(r,t);return Uo(Wt(()=>e(i),o=>{if(Ml(o))throw new Error("Executor must not return incremental results for batching");return yse(o,r.length)},o=>r.map(()=>o)))}}function xse(e,t){const n=t.extensions;return n!=null&&Object.assign(e,n),e}const Tse=xie(function(t,n,r,i){return bse(n,r,i)}),v3=ny(function(t,n){const r=n.transforms;return r==null?t:r.reduce((i,o)=>{var a;return((a=o.transformSchema)==null?void 0:a.call(o,i,n))||i},t)});class Sse{constructor(t){on(this,"name");on(this,"schema");on(this,"executor");on(this,"batch");on(this,"batchingOptions");on(this,"createProxyingResolver");on(this,"transforms");on(this,"_transformedSchema");on(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=v3(this.schema,this)),this._transformedSchema}set transformedSchema(t){this._transformedSchema=t}}const wse=["__proto__","constructor","prototype"];function Cse(e){return wse.includes(e)}const _se=new WeakMap,u7=Symbol("PLAN_LEFT_OVER");function l7(e){if(e!=null&&typeof e=="object")return e[u7]}const us=Symbol.for("subschemaErrors"),hh=Symbol.for("initialSubschema"),pa=Symbol.for("subschemaMap");function by(e){return e[us]!==void 0}function Ase(e,t,n,r){return Object.defineProperties(e,{[hh]:{value:n,writable:!0},[pa]:{value:r,writable:!0},[us]:{value:t,writable:!0}}),e}function Ey(e,t){var n;return((n=e[pa])==null?void 0:n[t])??e[hh]}function c7(e){return e[us]}const Dse=[],xy=Object.create(null),f7=da(function(e){return[e]});function Nse(e,t,n,r,i){var l;const o=e.delegationPlanBuilder(i.schema,n,i.variableValues!=null&&Object.keys(i.variableValues).length>0?i.variableValues:xy,i.fragments!=null&&Object.keys(i.fragments).length>0?i.fragments:xy,(l=i.fieldNodes)!=null&&l.length?i.fieldNodes.length===1&&i.fieldNodes[0]?f7(i.fieldNodes[0]):i.fieldNodes:Dse,r,i),a=_se.get(o);return a&&(t[u7]=a),Wt(()=>oR(o,(f,h)=>Ose(e,h,t,r,i),void 0),()=>t)}function ph(e,t,n,r,i,o,a,l){if(e instanceof Error||e==null){const p=t.transformedSchema||o.schema,b=p.getType(r.__typename),{fields:v}=n3(p,o.fragments,o.variableValues,b,n),x={};for(const[S,w]of v){const k=[...a,S];e instanceof Fe?e.message.includes("Cannot return null for non-nullable field")?x[S]=null:x[S]=XS(e,k):e instanceof Error?x[S]=mr(e,w,k):x[S]=null}e=x}else e[us]&&l.push(...e[us]);const f=e[hh],h=e[pa];for(const p in e){if(Cse(p))continue;const b=r[p],v=e[p];p==="__typename"&&b!==v&&cr(t.transformedSchema.getType(v))||((v!=null||b==null)&&(b!=null&&typeof b=="object"&&!(b instanceof Error)&&Object.keys(b).length>0?Array.isArray(b)&&Array.isArray(v)&&b.length===v.length?r[p]=b.map((x,S)=>v instanceof Error?x:um([x,v[S]],void 0,!0,!0)):v instanceof Error||(r[p]=um([b,v],void 0,!0,!0)):r[p]=v),i[p]=(h==null?void 0:h[p])??f??t)}}function Ose(e,t,n,r,i){const o=n[us],a=Vi(i.path),l=n[pa],f=[];for(const[h,p]of t){const v=(h.transformedSchema||i.schema).getType(n.__typename),x=e.resolvers.get(h);if(x)try{const S=x(n,r,i,h,p,void 0,v);hr(S)?f.push(S.then(w=>ph(w,h,p,n,l,i,a,o),w=>ph(w,h,p,n,l,i,a,o))):ph(S,h,p,n,l,i,a,o)}catch(S){ph(S,h,p,n,l,i,a,o)}}if(f.length)return f.length===1?f[0]:Promise.all(f)}function dm(e,t,n,r,i,o=Lse(i),a){const l=pl(o);if(e instanceof Error)return e;if(e==null)return Mse(t);if(yi(l))try{return l.parseValue(e)}catch{return null}else{if(si(l))return Wt(()=>kse(l,e,t,n,r,i,a),f=>i&&cr(l)&&f.__typename!=null&&!i.schema.getType(f.__typename)?null:f);if(vn(l))return Array.isArray(e)?Rse(l,e,t,n,r,i,a):dm(e,t,n,r,i,l.ofType,a)}}function kse(e,t,n,r,i,o,a){var p,b,v,x;if(by(t)||Ase(t,n,r,Object.create(null)),a||o==null)return t;const l=(p=o.schema.extensions)==null?void 0:p.stitchingInfo;if(l==null)return t;let f;const h=[t.__typename,e.name];for(const S of h)if(S!=null&&((x=(v=(b=l.mergedTypes[S])==null?void 0:b.targetSubschemas)==null?void 0:v.get(r))!=null&&x.length)){f=l.mergedTypes[S];break}return f?Nse(f,t,r,i,o):t}function Rse(e,t,n,r,i,o,a){return t.map(l=>dm(l,n,r,i,o,e.ofType,a))}const d7=new WeakMap;function Mse(e){if(e.length){const t=[];for(const n of e)d7.has(n)||(t.push(n),d7.set(n,!0));if(t.length){const n=t[0];return t.length===1&&n?mr(n,void 0,n.path):new AggregateError(t.map(r=>mr(r,void 0,n==null?void 0:n.path)),t.map(r=>r.message).join(`,
`))}}return null}function Lse(e){if(e==null)throw new Error("Return type cannot be inferred without a source schema.");return e.returnType}function Ise(e={data:null,errors:[]},t){const{context:n,info:r,fieldName:i=Fse(r),subschema:o,returnType:a=Pse(r),skipTypeMerging:l,onLocatedError:f}=t,{data:h,unpathedErrors:p}=h7(e.data==null?void 0:e.data[i],e.errors==null?[]:e.errors,r!=null&&r.path?Li(r.path):void 0,f);return dm(h,p,o,n,r,a,l)}function h7(e,t,n,r,i=1){var l;if(e==null){if(!t.length)return{data:null,unpathedErrors:[]};if(t.length===1&&t[0]){const h=r?r(t[0]):t[0],p=n===void 0?h.path:h.path?n.concat(h.path.slice(1)):n;return{data:XS(t[0],p),unpathedErrors:[]}}return{data:new AggregateError(t.map(h=>mr(h,void 0,n)),t.map(h=>h.message).join(`,
`)),unpathedErrors:[]}}if(!t.length)return{data:e,unpathedErrors:[]};const o=[],a=new Map;for(const f of t){const h=(l=f.path)==null?void 0:l[i];if(h!=null){let p=a.get(h);p===void 0?(p=[f],a.set(h,p)):p.push(f)}else o.push(f)}for(const[f,h]of a)if(e[f]!==void 0){const{data:p,unpathedErrors:b}=h7(e[f],h,n,r,i+1);e[f]=p,o.push(...b)}else o.push(...h);return{data:e,unpathedErrors:o}}function Fse(e){if(e==null)throw new Error("Data cannot be extracted from result without an explicit key or source schema.");return t3(e)}function Pse(e){if(e==null)throw new Error("Return type cannot be inferred without a source schema.");return e.returnType}function p7(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)===Q.FRAGMENT_DEFINITION?(n.push(o),r.add(o.name.value)):(o==null?void 0:o.kind)===Q.OPERATION_DEFINITION&&t.push(o)}return{operations:t,fragments:n,fragmentNames:r}}const y3=da(function(t){return new yl(t)}),jse=ny(function(t,n){return kg.major<16?new yl(t,void 0,n):new yl(t,n)});function m7(e,t,n,r,i,o,a){if(e[r]={kind:Q.ARGUMENT,name:{kind:Q.NAME,value:r},value:{kind:Q.VARIABLE,name:{kind:Q.NAME,value:i}}},t[i]={kind:Q.VARIABLE_DEFINITION,variable:{kind:Q.VARIABLE,name:{kind:Q.NAME,value:i}},type:ZS(o)},a!==void 0){n[i]=a;return}i in n&&delete n[i]}function g7(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 Vse(e,t,n,r,i){var S,w,k;let o=[],a=[];const l=[];let f=[];const h=[],p=Object.create(null);for(const _ of t){const N=_.typeCondition.name.value,O=e.getType(N);O!=null&&(h.push(_),p[_.name.value]=O)}let b=Object.create(null);for(const _ of n){const N=ry(e,_.operation),{selectionSet:O,usedFragments:A,usedVariables:L}=y7(e,N,p,_.selectionSet,r);a=hm(a,A);const{usedVariables:P,newFragments:j,fragmentSet:F}=zse(e,b,h,p,a,r),B=hm(L,P);o=hm(o,B),f=j,b=F;const q=(_.variableDefinitions??[]).filter(W=>B.indexOf(W.variable.name.value)!==-1);_.operation==="subscription"&&(O.selections=O.selections.filter(W=>W.kind!==Q.FIELD||W.name.value!=="__typename")),!(O.selections.length===1&&O.selections[0]&&O.selections[0].kind===Q.FIELD&&O.selections[0].name.value==="__typename")&&l.push({kind:Q.OPERATION_DEFINITION,operation:_.operation,name:_.name,directives:_.directives,variableDefinitions:q,selectionSet:O})}if(!l.length)throw Kt("Failed to create a gateway request. The request must contain at least one operation.",{extensions:{[$R]:!0}});let v={kind:Q.DOCUMENT,definitions:[...l,...f]};const x=(k=(w=(S=i.info)==null?void 0:S.schema)==null?void 0:w.extensions)==null?void 0:k.stitchingInfo;if(x!=null){const _=y3(e);v=Cr(v,bl(_,{[Q.FIELD](N){var A,L,P;const O=_.getParentType();if(O){const j=O.name,F=(A=x==null?void 0:x.mergedTypes)==null?void 0:A[j];if(F){const B=(L=F==null?void 0:F.providedSelectionsByField)==null?void 0:L.get(i.subschema);if(B){const q=B[N.name.value];if(q)return{...N,selectionSet:{kind:Q.SELECTION_SET,selections:[...q.selections,...((P=N.selectionSet)==null?void 0:P.selections)??[]]}}}}}return N}}))}return{usedVariables:o,newDocument:v}}function Bse(e,t,n){let{document:r,variables:i}=e,{operations:o,fragments:a}=p7(r);const{targetSchema:l,args:f}=t;if(f){const v=Use(l,o,f);o=v.newOperations,i=Object.assign({},i??{},v.newVariables)}const{usedVariables:h,newDocument:p}=Vse(l,a,o,n,t),b={};if(i!=null)for(const v of h){const x=i[v];x!==void 0&&(b[v]=x)}return{...e,document:p,variables:b}}function $se(e){return e.kind===Q.FIELD&&!e.alias&&e.name.value==="__typename"}function v7(e){let t=!1;const n=e.filter(r=>$se(r)?(t=!0,!1):!0);return{hasTypeNameField:t,selections:n}}function Use(e,t,n){const r=Object.create(null);return{newOperations:t.map(o=>{const a=(o.variableDefinitions??[]).reduce((p,b)=>({...p,[b.variable.name.value]:b}),{}),l=ry(e,o.operation),f=[];for(const p of o.selectionSet.selections)if(p.kind===Q.FIELD){const v=(p.arguments??[]).reduce((S,w)=>({...S,[w.name.value]:w}),{}),x=l.getFields()[p.name.value];x!=null&&Hse(x,v,a,r,n),f.push({...p,arguments:Object.values(v)})}else f.push(p);const h={kind:Q.SELECTION_SET,selections:f};return{...o,variableDefinitions:Object.values(a),selectionSet:h}}),newVariables:r}}function Hse(e,t,n,r,i){const o=g7(n);for(const a of e.args){const l=a.name,f=a.type;l in i&&m7(t,n,r,l,o(l),f,oy(f,i[l]))}}function zse(e,t,n,r,i,o){let a=i.slice(),l=[];const f=[];for(;a.length!==0;){const h=a.pop(),p=n.find(b=>b.name.value===h);if(p!=null){const b=h,v=p.typeCondition.name.value,x=e.getType(v);if(x==null)throw new Error(`Fragment reference type "${v}", but the type is not contained within the target schema.`);const{selectionSet:S,usedFragments:w,usedVariables:k}=y7(e,x,r,p.selectionSet,o);a=hm(a,w),l=hm(l,k),b&&!(b in t)&&(t[b]=!0,f.push({kind:Q.FRAGMENT_DEFINITION,name:{kind:Q.NAME,value:b},typeCondition:p.typeCondition,selectionSet:S}))}}return{usedVariables:l,newFragments:f,fragmentSet:t}}const qse={SelectionSet:["selections"],Field:["selectionSet"],InlineFragment:["selectionSet"],FragmentDefinition:["selectionSet"]},Gse={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 y7(e,t,n,r,i){const o=[],a=[],l=jse(e,t),f=new WeakMap,h=new WeakMap,p=Cr(r,bl(l,{[Q.FIELD]:{enter:b=>{var x,S,w,k;const v=l.getParentType();if(_t(v)||Ot(v)){const _=l.getFieldDef();if(!_)return null;const N=_.args!=null?_.args:[],O=Object.create(null);for(const A of N)O[A.name]=A;if(b.arguments!=null){const A=[];for(const L of b.arguments)L.name.value in O&&A.push(L);if(A.length!==b.arguments.length)return{...b,arguments:A}}}if(lr(v)&&l.getType()==null){const _=[],N=b.name.value;for(const O of v.getTypes()){const L=O.getFields()[N];if(L!=null){const P=yn(L.type);if((S=(x=b.selectionSet)==null?void 0:x.selections)!=null&&S.length&&yi(P)||!((k=(w=b.selectionSet)==null?void 0:w.selections)!=null&&k.length)&&si(P))continue;_.push(O.name)}}if(_.length>0)return _.map(O=>({kind:Q.INLINE_FRAGMENT,typeCondition:{kind:Q.NAMED_TYPE,name:{kind:Q.NAME,value:O}},selectionSet:{kind:Q.SELECTION_SET,selections:[b]}}))}},leave:b=>{const v=l.getType();if(v==null)return null;const x=yn(v);if(e.getType(x.name)==null)return null;if(_t(x)||Ot(x)){const S=b.selectionSet!=null?b.selectionSet.selections:null;if(S==null||S.length===0)return null}}},[Q.FRAGMENT_SPREAD]:{enter:b=>{if(!(b.name.value in n))return null;const v=l.getParentType(),x=n[b.name.value];if(!uy(e,v,x))return null;o.push(b.name.value)}},[Q.SELECTION_SET]:{enter:(b,v,x,S)=>{const w=l.getParentType(),{hasTypeNameField:k,selections:_}=v7(b.selections);return(k||w!=null&&cr(w))&&_.unshift({kind:Q.FIELD,name:{kind:Q.NAME,value:"__typename"}}),{...b,selections:_}}},[Q.INLINE_FRAGMENT]:{enter:b=>{if(b.typeCondition!=null){const v=l.getParentType(),x=e.getType(b.typeCondition.name.value);if(lr(v)&&v.getTypes().some(S=>S.name===(x==null?void 0:x.name)))return b;if(!uy(e,v,x))return null}},leave:(b,v,x)=>{var w,k,_,N,O;if(!((k=(w=b.selectionSet)==null?void 0:w.selections)!=null&&k.length))return null;if(Array.isArray(x)){const A=(_=b.typeCondition)==null?void 0:_.name.value;if(A){const L=e.getType(A);if(L&&"getFields"in L){const P=L.getFields();let j=f.get(x);j||(j=new Set,f.set(x,j));let F=h.get(x);F||(F=new Set,h.set(x,F)),b={...b,selectionSet:{...b.selectionSet,selections:b.selectionSet.selections.map(B=>{if(B.kind===Q.FIELD){const q=B.name.value;if(!B.alias){const W=P[q];if(W){let Z;if(Lp(W.type)?(F.add(q),Z=!0):(j.add(q),Z=!1),F.has(q)&&j.has(q))return i(),{...B,alias:{kind:Q.NAME,value:Z?`_nullable_${q}`:`_nonNullable_${q}`}}}}}return B})}}}}}const{selections:S}=v7(b.selectionSet.selections);return S.length===0?null:{...b,selectionSet:{...b.selectionSet,selections:S},directives:(O=(N=b.directives)==null?void 0:N.filter)==null?void 0:O.call(N,A=>A.name.value!=="defer")}}}}),qse);return Cr(p,{[Q.VARIABLE]:b=>{a.push(b.name.value)}},Gse),{selectionSet:p,usedFragments:o,usedVariables:a}}function hm(...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 Wse(e,t,n,r){const i=Jse(n,t,e);if(r==null)return i;const o=new WeakSet,{possibleTypesMap:a,reversePossibleTypesMap:l,interfaceExtensionsMap:f,fieldNodesByType:h,fieldNodesByField:p,dynamicSelectionSetsByField:b}=Kse(r,t),{operations:v,fragments:x,fragmentNames:S}=p7(i),{expandedFragments:w,fragmentReplacements:k}=Zse(x,S,a),_=y3(t),N={kind:Q.DOCUMENT,definitions:[...v,...x,...w]},O={Document:["definitions"],OperationDefinition:["selectionSet"],SelectionSet:["selections"],Field:["selectionSet"],InlineFragment:["selectionSet"],FragmentDefinition:["selectionSet"]};return Cr(N,bl(_,{[Q.SELECTION_SET]:A=>Qse(A,k,t,_,a,l,f,h,p,b,r,o)}),O)}const Yse=ny(function(t,n){const r=new Map;return function(o){let a=r.get(o);if(!a){a=new Set;const l=n.getType(o),f=t.getType(o);if(cr(l)&&cr(f)){const h=n.getPossibleTypes(l),p=t.getPossibleTypes(f);for(const b of h){const v=t.getType(b.name);v&&(v&&p.some(x=>x.name===b.name)||a.add(b.name))}}r.set(o,a)}return a}});function Qse(e,t,n,r,i,o,a,l,f,h,p,b){var S,w,k;const v=new Set,x=r.getParentType();if(x!=null){const _=yn(x),N=_.name,O=l[N];if(O)for(const P of O)v.add(P);const A=a[_.name],L=[];for(const P of e.selections)if(P.kind===Q.INLINE_FRAGMENT)if(P.typeCondition!=null){if(!b.has(P)){b.add(P);const F=P.typeCondition.name.value,q=Yse(n,p)(F);for(const Z of q)v.add({...P,typeCondition:{kind:Q.NAMED_TYPE,name:{kind:Q.NAME,value:Z}}});const W=n.getType(F);if(_t(W)||Ot(W)){const Z=W.getFields();for(const X of P.selectionSet.selections)if(X.kind===Q.FIELD){const ee=X.name.value;Z[ee]||v.add(X)}}else if(!W)for(const Z of P.selectionSet.selections)v.add(Z)}const j=i[P.typeCondition.name.value];if(j==null){const F=(S=f[N])==null?void 0:S.__typename;if(F)for(const B of F)v.add(B);v.add(P);continue}for(const F of j){const B=n.getType(F);B!=null&&uy(n,_,B)&&v.add(E7(F,P.selectionSet))}j.length===0&&v.add(P)}else v.add(P);else if(P.kind===Q.FRAGMENT_SPREAD){const j=P.name.value;if(!t[j]){v.add(P);continue}for(const F of t[j]){const B=F.typeName;n.getType(B)!=null&&uy(n,_,x)&&v.add({kind:Q.FRAGMENT_SPREAD,name:{kind:Q.NAME,value:F.fragmentName}})}}else{const j=P.name.value;if(cr(_)){const q=(w=f[N])==null?void 0:w.__typename;if(q)for(const W of q)v.add(W)}const F=f[N];F&&b7(P,new Set,F,v);const B=(k=h[N])==null?void 0:k[j];if(B!=null)for(const q of B){const W=q(P);if(W!=null)for(const Z of W.selections)v.add(Z)}A!=null&&A[j]?L.push(P):v.add(P)}if(o[_.name]&&v.add({kind:Q.FIELD,name:{kind:Q.NAME,value:"__typename"}}),L.length){const P=i[_.name];if(P!=null)for(const j of P)v.add(E7(j,{kind:Q.SELECTION_SET,selections:L}))}return{...e,selections:Array.from(v)}}return e}function b7(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),b7(o,t,n,r)}function E7(e,t){return{kind:Q.INLINE_FRAGMENT,typeCondition:{kind:Q.NAMED_TYPE,name:{kind:Q.NAME,value:e}},selectionSet:t}}const Kse=ny((e,t)=>{var l;const n=e.getTypeMap(),r=t.getTypeMap(),i=Object.create(null),o=Object.create(null);for(const f in n){const h=n[f];if(cr(h)){const p=r[f];if(Ot(h)&&Ot(p)){const b=p.getFields(),v=h.getFields(),x=Object.create(null);let S=!0;for(const w in v)b[w]||(x[w]=!0,S=!1);S||(o[f]=x)}if(o[f]||!cr(p)){const b=e.getPossibleTypes(h);i[f]=[];for(const v of b)r[v.name]&&i[f].push(v.name)}}}const a=(l=e.extensions)==null?void 0:l.stitchingInfo;return{possibleTypesMap:i,reversePossibleTypesMap:Xse(i),interfaceExtensionsMap:o,fieldNodesByType:(a==null?void 0:a.fieldNodesByType)??{},fieldNodesByField:(a==null?void 0:a.fieldNodesByField)??{},dynamicSelectionSetsByField:(a==null?void 0:a.dynamicSelectionSetsByField)??{}}});function Xse(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 Zse(e,t,n){let r=0;function i(l){let f;do f=`_${l}_Fragment${r.toString()}`,r++;while(t.has(f));return f}const o=[],a=Object.create(null);for(const l of e){const f=n[l.typeCondition.name.value];if(f!=null){const h=l.name.value;a[h]=[];for(const p of f){const b=i(p);t.add(b),o.push({kind:Q.FRAGMENT_DEFINITION,name:{kind:Q.NAME,value:b},typeCondition:{kind:Q.NAMED_TYPE,name:{kind:Q.NAME,value:p}},selectionSet:l.selectionSet}),a[h].push({fragmentName:b,typeName:p})}}}return{expandedFragments:o,fragmentReplacements:a}}function Jse(e,t,n){const r=yn(e);if(yi(r))return n;let i=cr(r)?t.getPossibleTypes(r):[r];i.length===0&&(i=[r]);const o=Tie(t),a=y3(t),l={Document:["definitions"],OperationDefinition:["selectionSet"],SelectionSet:["selections"],InlineFragment:["selectionSet"],FragmentDefinition:["selectionSet"]};return Cr(n,bl(a,{[Q.FRAGMENT_DEFINITION]:f=>{const h=f.typeCondition.name.value;if(!o.has(h))return!1},[Q.FIELD]:f=>{const h=a.getType();if(h){const p=yn(h);if(cr(p)&&p.name!==r.name&&i.length>0)return{...f,selectionSet:{kind:Q.SELECTION_SET,selections:i.map(b=>({kind:Q.INLINE_FRAGMENT,typeCondition:{kind:Q.NAMED_TYPE,name:{kind:Q.NAME,value:b.name}},selectionSet:f.selectionSet}))}}}}}),l)}class eae{constructor(t){on(this,"transformations",[]);on(this,"delegationContext");on(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:Wse(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 Bse(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=Ty(n)),Ise(n,this.delegationContext)}}function Ty(e){if(e!=null){if(Array.isArray(e))return e.map(Ty);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]=Ty(e[n])}else t[n]=Ty(e[n]);return t}}return e}function tae(e,t){return e===t.getMutationType()?"mutation":e===t.getSubscriptionType()?"subscription":"query"}function nae({sourceSchema:e,sourceParentType:t,sourceFieldName:n,fragments:r,variableDefinitions:i,variableValues:o,targetRootValue:a,targetOperationName:l,targetOperation:f,targetFieldName:h,selectionSet:p,fieldNodes:b,context:v,info:x}){var B;let S;const w=Object.create(null);if(p!=null)S=p;else{const q=[];for(const Z of b||[])if(Z.selectionSet)for(const X of Z.selectionSet.selections)q.push(X);S=q.length?{kind:Q.SELECTION_SET,selections:q}:void 0;const W=(B=b==null?void 0:b[0])==null?void 0:B.arguments;if(W)for(const Z of W)w[Z.name.value]=Z}const k=Object.create(null),_=Object.create(null);if(e!=null&&i!=null)for(const q of i){const W=q.variable.name.value;_[W]=q;const Z=Mi(e,q.type),X=oy(Z,o==null?void 0:o[W]);X!==void 0&&(k[W]=X)}t!=null&&n!=null&&rae(t,n,w,_,k);const N=b==null?void 0:b[0],O=h??(N==null?void 0:N.name.value);if(O===void 0)throw new Error('Either "targetFieldName" or a non empty "fieldNodes" array must be provided.');const A={kind:Q.FIELD,arguments:Object.values(w),name:{kind:Q.NAME,value:O},selectionSet:S,directives:N==null?void 0:N.directives},L=l?{kind:Q.NAME,value:l}:void 0,j=[{kind:Q.OPERATION_DEFINITION,name:L,operation:f,variableDefinitions:Object.values(_),selectionSet:{kind:Q.SELECTION_SET,selections:[A]}}];if(r!=null)for(const q in r){const W=r[q];W&&j.push(W)}return{document:{kind:Q.DOCUMENT,definitions:j},variables:k,rootValue:a,operationName:l,context:v,info:x,operationType:f}}function rae(e,t,n,r,i){const o=g7(r),a=e.getFields()[t];if(!a)throw new Error(`Field "${t}" was not found in type "${e}".`);for(const l of a.args){const f=l.name,h=l.type;if(n[f]===void 0){const p=l.defaultValue;p!==void 0&&m7(n,r,i,f,o(f),h,oy(h,p))}}}function iae(e,t,n,r){var o,a,l;if(!e)return null;const i=t3(r);if(!by(e))return dv(e,t,n,r);if(!Object.prototype.hasOwnProperty.call(e,i)){const f=l7(e);if(f){let h=f.missingFieldsParentMap.get(e);h||(h=[],f.missingFieldsParentMap.set(e,h)),h.push(...r.fieldNodes.filter(w=>f.unproxiableFieldNodes.some(k=>k===w)));let p=f.missingFieldsParentDeferredMap.get(e);p||(p=new Map,f.missingFieldsParentDeferredMap.set(e,p));const b=Z9();p.set(i,b);const v=(o=r.schema.extensions)==null?void 0:o.stitchingInfo,x=(e==null?void 0:e.__typename)||r.parentType.name,S=(l=(a=v==null?void 0:v.fieldNodesByField)==null?void 0:a[x])==null?void 0:l[r.fieldName];return S!=null&&S.every(w=>{var _;const k=((_=w.alias)==null?void 0:_.value)??w.name.value;return!!Object.prototype.hasOwnProperty.call(e,k)})&&b3(e,i,n,r),b.promise}return}return b3(e,i,n,r)}function b3(e,t,n,r){const i=Ey(e,t),o=e[t],a=c7(e),l=dm(o,a,i,n,r),f=l7(e);return f?Wt(()=>l,h=>(e[t]=h,oae(e,n,r,f),h)):l}function oae(e,t,n,r){var o,a,l,f;const i=(o=n.schema.extensions)==null?void 0:o.stitchingInfo;if(i)for(const h of r.nonProxiableSubschemas){const p=n.parentType.name,b=new Set,v=(a=i.mergedTypes[p])==null?void 0:a.selectionSets.get(h);v&&b.add(v);for(const x of r.unproxiableFieldNodes){const S=x.name.value,w=(f=(l=i.mergedTypes[p])==null?void 0:l.fieldSelectionSets.get(h))==null?void 0:f[S];w&&b.add(w)}if(b.size){const x={kind:Q.SELECTION_SET,selections:Array.from(b).flatMap(S=>S.selections)};Wt(()=>Sy(e),S=>{x7(S,e,h,x,r,i,p,t,n)})}}}function x7(e,t,n,r,i,o,a,l,f){var h,p,b,v;if(mh(e,r)){const x=i.missingFieldsParentMap.get(t);if(x){const S=(h=o.mergedTypes[a])==null?void 0:h.resolvers.get(n);if(S){Object.assign(t,e);const w={kind:Q.SELECTION_SET,selections:x};Wt(()=>S(t,l,f,n,w,f.parentType,f.parentType),k=>{sae(k,n,w,t,i,l,f)},k=>aae(i,t,k))}}}else for(const x of r.selections)if(x.kind===Q.FIELD&&((b=(p=x.selectionSet)==null?void 0:p.selections)!=null&&b.length)){const S=((v=x.alias)==null?void 0:v.value)??x.name.value,w=e[S],k=x.selectionSet;if(w!=null&&!mh(w,k)){async function _(N,O){var P,j;const A=N.__typename,L=Ey(e,S);if(L&&A){const F=(P=o.mergedTypes[A])==null?void 0:P.delegationPlanBuilder(f.schema,L,f.variableValues!=null&&Object.keys(f.variableValues).length>0?f.variableValues:xy,f.fragments!=null&&Object.keys(f.fragments).length>0?f.fragments:xy,f7(O),l,f);if(F!=null&&F.length)for(const B of F)for(const[q,W]of B){const Z=(j=o.mergedTypes[A])==null?void 0:j.resolvers.get(q);if(Z){const X=await Z(N,l,f,q,W,f.parentType,f.parentType);X&&ph(X,q,W,N,N[pa]||(N[pa]=new Map),f,Li(f.path),N[us]||(N[us]=[]))}}mh(w,k)&&x7(e,t,n,r,i,o,a,l,f)}}Array.isArray(w)?w.forEach(N=>_(N,x)):_(w,x)}}}function sae(e,t,n,r,i,o,a){ph(e,t,n,r,r[pa],a,Li(a.path),r[us]);const l=i.missingFieldsParentDeferredMap.get(r);if(l){for(const[f,h]of l)Object.prototype.hasOwnProperty.call(e,f)&&h.resolve(b3(r,f,o,a));i.missingFieldsParentDeferredMap.delete(r)}}function aae(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 mh(e,t){var r;if(Array.isArray(e)){const i=new Set;for(const o of e){const a=mh(o,t);if(a===void 0)return;for(const l of a)i.add(l)}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===Q.FIELD){const o=((r=i.alias)==null?void 0:r.value)??i.name.value;if(e[o]===void 0)return;if(by(e)){const a=Ey(e,o);a&&n.add(a)}if(e[o]===null)continue;if(i.selectionSet!=null){const a=mh(e[o],i.selectionSet);if(a===void 0)return;for(const l of a)n.add(l)}}else if(i.kind===Q.INLINE_FRAGMENT){const o=mh(e,i.selectionSet);if(o===void 0)return;for(const a of o)n.add(a)}return n}function Sy(e){if(hr(e))return e.then(Sy);if(Array.isArray(e))return Promise.all(e.map(Sy));if(e!=null&&typeof e=="object"){const t=[],n={};for(const r in e){const i=Sy(e[r]);hr(i)?t.push(i.then(o=>{n[r]=o})):n[r]=i}return hh in e&&(n[hh]=e[hh]),pa in e&&(n[pa]=e[pa]),us in e&&(n[us]=e[us]),t.length?Promise.all(t).then(()=>n):n}return e}function uae(e){return!!(e!=null&&e.schema)}function lae(e){var b;const{info:t,schema:n,rootValue:r=n.rootValue??t.rootValue,operationName:i=(b=t.operation.name)==null?void 0:b.value,operation:o=tae(t.parentType,t.schema),fieldName:a=t.fieldName,selectionSet:l,fieldNodes:f=t.fieldNodes,context:h}=e,p=nae({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:a,selectionSet:l,fieldNodes:f,context:h,info:t});return cae({...e,request:p})}function T7(e,t,n){const r=ry(e,t),i=r.getFields()[n];if(!i)throw new Error(`Unable to find field '${n}' in type '${r}'.`);return i.type}function cae(e){const t=fae(e),n=new eae(t),r=n.transformRequest(e.request);return e.validateRequest&&dae(t,r.document),Wt(()=>pae(t)(r),function(o){return Ml(o)?t.operation==="query"&&vn(t.returnType)?new dh(async(a,l)=>{var p;const f=new WeakSet;let h=!1;l.finally(()=>{h=!0});try{for await(const b of o){if(h)break;if(b.incremental){const x={};for(const S of b.incremental)if((p=S.items)!=null&&p.length){for(const w of S.items)cy(x,(S.path||[]).slice(0,-1),w);await a(await n.transformResult({data:x}))}if(b.hasNext===!1)break;continue}const v=await n.transformResult(b);if(Array.isArray(v))for(const x of v){if(h)break;const S=await x;f.has(S)||(f.add(S),await a(S))}else await a(await v)}l()}catch(b){l(b)}}):KS(o,a=>n.transformResult(a)):n.transformResult(o)})}function fae({request:e,schema:t,fieldName:n,returnType:r,args:i,info:o,transforms:a=[],transformedSchema:l,skipTypeMerging:f=!1,onLocatedError:h}){var w;const p=Tf(e);let b;n==null?b=p.selectionSet.selections[0].name.value:b=n;const v=(w=o==null?void 0:o.schema.extensions)==null?void 0:w.stitchingInfo,x=(v==null?void 0:v.subschemaMap.get(t))??t,S=p.operation;if(uae(x)){const k=x.schema;return{subschema:t,subschemaConfig:x,targetSchema:k,operation:S,fieldName:b,args:i,context:e.context,info:o,returnType:r??(o==null?void 0:o.returnType)??T7(k,S,b),transforms:x.transforms!=null?x.transforms.concat(a):a,transformedSchema:l??(x instanceof Sse?x.transformedSchema:v3(k,x)),skipTypeMerging:f,onLocatedError:h}}return{subschema:t,subschemaConfig:void 0,targetSchema:x,operation:S,fieldName:b,args:i,context:e.context,info:o,returnType:r??(o==null?void 0:o.returnType)??T7(x,S,b),transforms:a,transformedSchema:l??x,skipTypeMerging:f}}function dae(e,t){const n=Gp(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 hae={};function pae(e){const{subschemaConfig:t,targetSchema:n,context:r}=e;let i=(t==null?void 0:t.executor)||ase(n);if(t!=null&&t.batch){const o=t==null?void 0:t.batchingOptions;i=Tse(r??hae,i,o==null?void 0:o.dataLoaderOptions,o==null?void 0:o.extensionsReducer)}return i}function mae(e){const t=e.schema,n=e.createProxyingResolver??yae,r=JS(t),i={};for(const[o,a]of r.entries()){const l=a.name,f=a.getFields();i[l]={};for(const h in f){const p=n({subschemaConfig:e,operation:o,fieldName:h}),b=vae(e,p);o==="subscription"?i[l][h]={subscribe:b,resolve:gae}:i[l][h]={resolve:b}}}return i}function gae(e){return e}function vae(e,t){return function(r,i,o,a){if(r!=null){const l=t3(a);if(by(r)){const f=c7(r),h=Ey(r,l);if(e===h&&r[l]!==void 0)return dm(r[l],f,h,o,a)}}return t(r,i,o,a)}}function yae({subschemaConfig:e,operation:t}){return function(r,i,o,a){return lae({schema:e,operation:t,context:o,info:a})}}const S7=da(function(t){const n=t.schema,r=mae(t),i=bae(n,r);return v3(i,t)});function bae(e,t){return jie(e,{[qt.ROOT_FIELD]:(n,r,i)=>{var o;return{...n,...(o=t[i])==null?void 0:o[r]}},[qt.OBJECT_FIELD]:n=>({...n,resolve:iae,subscribe:void 0}),[qt.OBJECT_TYPE]:n=>{const r=n.toConfig();return new bi({...r,isTypeOf:void 0})},[qt.INTERFACE_TYPE]:n=>{const r=n.toConfig();return new To({...r,resolveType:void 0})},[qt.UNION_TYPE]:n=>{const r=n.toConfig();return new gl({...r,resolveType:void 0})},[qt.ENUM_VALUE]:n=>({...n,value:void 0})})}function Eae(e,t){var n;if((n=e==null?void 0:e.data)!=null&&n.__schema)return H2(e.data,t);if(e!=null&&e.errors){const r=e.errors.map(i=>Kt(i.message,i));throw e.errors.length===1?r[0]:new AggregateError(r,"Could not obtain introspection result")}throw Kt(`Could not obtain introspection result, received the following as response;
${Ki(e)}`)}function w7(e,t,n){const r=zi(hv(n),n);return Wt(()=>Wt(()=>e({document:r,context:t}),i=>Ml(i)?i[Symbol.asyncIterator]().next().then(({value:a})=>a):i),i=>Eae(i,n))}const xae=wf.fetch;var E3,C7;function Tae(){if(C7)return E3;C7=1;const e=new TextEncoder,t=new TextDecoder;function n(...x){const S=new n.Request(...x),w=new XMLHttpRequest;w.withCredentials=S.credentials==="include",w.timeout=S[r].timeout,w.open(S.method,S.url,!1);let k=!1;try{w.responseType="arraybuffer"}catch{w.overrideMimeType("text/plain; charset=x-user-defined"),k=!0}for(const A of S.headers)w.setRequestHeader(...A);w.send(S[r].body||null);let _=w.getAllResponseHeaders();_=_&&_.split(`\r
`).filter(Boolean).map(A=>A.split(": ",2));let N=w.response;if(k){const A=new Uint8Array(N.length);for(let L=0;L<N.length;L++)A[L]=N.charCodeAt(L)&255;N=A}const O=new n.Response(N,{headers:_,status:w.status,statusText:w.statusText});return O[r].url=w.responseURL,O[r].redirected=w.responseURL!==S.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 a{constructor(S,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:b(w.body),credentials:w.credentials||"omit",timeout:w.timeout||0},typeof S=="string")this[r].url=S;else if(S instanceof a)this[r].url=S.url,w.method||(this[r].method=S.method),w.headers||(this[r].headers=S.headers),w.body||(this[r].body=S[r].body),w.credentials||(this[r].credentials=S.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 h(this),new a(this.url,this[r])}}class l{constructor(S,w={}){this[r]={body:b(S),bodyUsed:!1,headers:new n.Headers(w.headers),status:w.status,statusText:w.statusText}}get headers(){return this[r].headers}get ok(){const S=this[r].status;return S>=200&&S<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(S,w){h(this);const k=new l(this[r].body,{headers:this[r].headers,status:w||this[r].status,statusText:o[w]||this[r].statusText});return k[r].url=S||this[r].url,k[r].redirected=this[r].redirected,k}}class f{constructor(S){this[r]={body:b(S),bodyUsed:!1}}get bodyUsed(){return this[r].bodyUsed}static mixin(S){for(const w of Object.getOwnPropertyNames(f.prototype)){if(w==="constructor")continue;const k=Object.getOwnPropertyDescriptor(f.prototype,w);Object.defineProperty(S,w,{...k,enumerable:!0})}}arrayBuffer(){const S=p(this);return S.buffer.slice(S.byteOffset,S.byteOffset+S.byteLength)}blob(){const S=this.headers&&this.headers.get("content-type");return new Blob([p(this)],S&&{type:S})}text(){return t.decode(p(this))}json(){try{return JSON.parse(this.text())}catch(S){throw new TypeError(`invalid json response body at ${this.url} reason: ${S.message}`,"invalid-json")}}}function h(x){if(x.bodyUsed)throw new TypeError(`body used already for: ${x.url}`)}function p(x){return h(x),x[r].bodyUsed=!0,x[r].body||new Uint8Array}function b(x){return typeof x=="string"?e.encode(x):x||null}f.mixin(a.prototype),f.mixin(l.prototype);class v{constructor(S){if(S instanceof n.Headers)this[r]={...S[r]};else if(this[r]={},Array.isArray(S))for(const[w,k]of S)this.append(w,k);else if(typeof S=="object")for(const w in S)this.set(w,S[w])}append(S,w){S=S.toLowerCase(),this[r][S]||(this[r][S]=[]),this[r][S].push(w)}delete(S){delete this[r][S.toLowerCase()]}set(S,w){this[r][S.toLowerCase()]=[w]}entries(){const S=[];for(const w in this[r])for(const k of this[r][w])S.push([w,k]);return S}get(S){return S=S.toLowerCase(),S in this[r]?this[r][S].join(", "):null}keys(){return Object.keys(this[r])}has(S){return S.toLowerCase()in this[r]}values(){const S=[];for(const w in this[r])for(const k of this[r][w])S.push(k);return S}*[Symbol.iterator](){for(const S in this[r])for(const w of this[r][S])yield[S,w]}}return n.Headers=v,n.Request=a,n.Response=l,E3=n,E3}var Sae=Tae();const wae=Lr(Sae),Cae=(e,t)=>(typeof e=="string"?t==null||delete t.signal:delete e.signal,wae(e,t)),x3=e=>import(`${e}`),_7=e=>require(`${e}`);var Af;(function(e){e.WS="WS",e.LEGACY_WS="LEGACY_WS",e.SSE="SSE",e.GRAPHQL_SSE="GRAPHQL_SSE"})(Af||(Af={}));const _ae=["http:","https:","ws:","wss:"];function A7(e){return _ae.some(t=>e.startsWith(t))?lie(e):!1}class Aae{buildHTTPExecutor(t,n,r){const i=T3(t,{wss:"https",ws:"http"});return Moe({endpoint:i,fetch:n,...r})}buildWSExecutor(t,n,r){const o={url:T3(t,{https:"wss",http:"ws"}),webSocketImpl:n,connectionParams:r};return uoe(o)}buildWSLegacyExecutor(t,n,r){const i=T3(t,{https:"wss",http:"ws"});return Loe(i,n,r)}getFetch(t,n){if(t){if(typeof t=="string"){const[r,i]=t.split("#");return Wt(()=>n(r),o=>i?o[i]:o)}else if(typeof t=="function")return t}return n===x3?xae:Cae}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 Wt(()=>t(r),o=>i?o[i]:o)}else return(n==null?void 0:n.webSocketImpl)||eu}buildSubscriptionExecutor(t,n,r,i){return(i==null?void 0:i.subscriptionsProtocol)===Af.SSE?this.buildHTTPExecutor(t,n,i):(i==null?void 0:i.subscriptionsProtocol)===Af.GRAPHQL_SSE?(i!=null&&i.subscriptionsEndpoint||(t+="/stream"),this.buildHTTPExecutor(t,n,i)):o=>Wt(()=>Wt(()=>this.getWebSocketImpl(r,i),a=>(i==null?void 0:i.subscriptionsProtocol)===Af.LEGACY_WS?this.buildWSLegacyExecutor(t,a,i):this.buildWSExecutor(t,a,i==null?void 0:i.connectionParams)),a=>a(o))}getExecutor(t,n,r){let i;const o=()=>Wt(()=>i||(i=this.getFetch(r==null?void 0:r.customFetch,n)),f=>this.buildHTTPExecutor(t,f,r)),a=()=>l||(l=o());let l;if((r==null?void 0:r.subscriptionsEndpoint)!=null||(r==null?void 0:r.subscriptionsProtocol)!==Af.SSE){let h=function(p){var b;return p.operationType=p.operationType||((b=Tf(p))==null?void 0:b.operation),p.operationType==="subscription"&&RR(Tf(p))&&(p.operationType="subscription"),p.operationType==="subscription"?f:a()};const f=Wt(()=>i||(i=this.getFetch(r==null?void 0:r.customFetch,n)),p=>{const b=(r==null?void 0:r.subscriptionsEndpoint)||t;return this.buildSubscriptionExecutor(b,p,n,r)});return p=>Wt(()=>h(p),b=>b(p))}else return f=>Wt(a,h=>h(f))}getExecutorAsync(t,n){return this.getExecutor(t,x3,n)}getExecutorSync(t,n){return this.getExecutor(t,_7,n)}handleSDL(t,n,r){const i=this.getDefaultMethodFromOptions(r==null?void 0:r.method,"GET");return Wt(()=>n(t,{method:i,headers:typeof(r==null?void 0:r.headers)=="function"?r.headers():r==null?void 0:r.headers}),o=>Wt(()=>o.text(),a=>kie(t,a,r)))}async load(t,n){if(!A7(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,x3);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?mv(r.document,n):r.rawSDL?z2(r.rawSDL,n):void 0)}else i=this.getExecutorAsync(t,n),r.schema=await w7(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=S7({schema:r.schema,executor:i,batch:n==null?void 0:n.batch})),[r]}loadSync(t,n){if(!A7(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,_7);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?mv(r.document,n):r.rawSDL?z2(r.rawSDL,n):void 0)}else i=this.getExecutorSync(t,n),r.schema=w7(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=S7({schema:r.schema,executor:i})),[r]}}function T3(e,t){return Object.entries(t).reduce((n,[r,i])=>n.replace(`${r}://`,`${i}://`).replace(`${r}:\\`,`${i}:\\`),e)}var D7={},N7;function Dae(){if(N7)return D7;N7=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,a,l={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},f;function h(b){return i.lastIndex=0,i.test(b)?'"'+b.replace(i,function(v){var x=l[v];return typeof x=="string"?x:"\\u"+("0000"+v.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+b+'"'}function p(b,v){var x,S,w,k,_=o,N,O=v[b];switch(O&&typeof O=="object"&&typeof O.toJSON=="function"&&(O=O.toJSON(b)),typeof f=="function"&&(O=f.call(v,b,O)),typeof O){case"string":return h(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+=a,N=[],Object.prototype.toString.apply(O)==="[object Array]"){for(k=O.length,x=0;x<k;x+=1)N[x]=p(x,O)||"null";return w=N.length===0?"[]":o?`[
`+o+N.join(`,
`+o)+`
`+_+"]":"["+N.join(",")+"]",o=_,w}if(f&&typeof f=="object")for(k=f.length,x=0;x<k;x+=1)typeof f[x]=="string"&&(S=f[x],w=p(S,O),w&&N.push(h(S)+(o?": ":":")+w));else Object.keys(O).forEach(function(A){var L=p(A,O);L&&N.push(h(A)+(o?": ":":")+L)});return w=N.length===0?"{}":o?`{
`+o+N.join(`,
`+o)+`
`+_+"}":"{"+N.join(",")+"}",o=_,w}}typeof e.stringify!="function"&&(e.stringify=function(b,v,x){var S;if(o="",a="",typeof x=="number")for(S=0;S<x;S+=1)a+=" ";else typeof x=="string"&&(a=x);if(f=v,v&&typeof v!="function"&&(typeof v!="object"||typeof v.length!="number"))throw new Error("JSON.stringify");return p("",{"":b})})})();function n(i){var o,a,l={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
`,r:"\r",t:" "},f,h=function(N){throw{name:"SyntaxError",message:N,at:o,text:f}},p=function(N){return N&&N!==a&&h("Expected '"+N+"' instead of '"+a+"'"),a=f.charAt(o),o+=1,a},b=function(){var N="";for(a==="-"&&(N="-",p("-"));a>="0"&&a<="9";)N+=a,p();if(a===".")for(N+=".";p()&&a>="0"&&a<="9";)N+=a;if(a==="e"||a==="E")for(N+=a,p(),(a==="-"||a==="+")&&(N+=a,p());a>="0"&&a<="9";)N+=a,p();if(!isFinite(Number(N)))h("Bad number");else{const O=Number(N);return Number.isInteger(O)&&!Number.isSafeInteger(O)?BigInt(N):O}},v=function(){var N,O,A="",L;if(a==='"')for(;p();){if(a==='"')return p(),A;if(a==="\\")if(p(),a==="u"){for(L=0,O=0;O<4&&(N=parseInt(p(),16),!!isFinite(N));O+=1)L=L*16+N;A+=String.fromCharCode(L)}else if(typeof l[a]=="string")A+=l[a];else break;else A+=a}h("Bad string")},x=function(){for(;a&&a<=" ";)p()},S=function(){switch(a){case"t":return p("t"),p("r"),p("u"),p("e"),!0;case"f":return p("f"),p("a"),p("l"),p("s"),p("e"),!1;case"n":return p("n"),p("u"),p("l"),p("l"),null}h("Unexpected '"+a+"'")},w,k=function(){var N=[];if(a==="["){if(p("["),x(),a==="]")return p("]"),N;for(;a;){if(N.push(w()),x(),a==="]")return p("]"),N;p(","),x()}}h("Bad array")},_=function(){var N,O={};if(a==="{"){if(p("{"),x(),a==="}")return p("}"),O;for(;a;){if(N=v(),x(),p(":"),O[N]=w(),x(),a==="}")return p("}"),O;p(","),x()}}h("Bad object")};return w=function(){switch(x(),a){case"{":return _();case"[":return k();case'"':return v();case"-":return b();default:return a>="0"&&a<="9"?b():S()}},function(N,O){var A;return f=N+"",o=0,a=" ",A=w(),x(),a&&h("Syntax error"),typeof O=="function"?function L(P,j){var F,B=P[j];return B&&typeof B=="object"&&Object.keys(B).forEach(function(q){F=L(B,q),F!==void 0?B[q]=F:delete B[q]}),O.call(P,j,B)}({"":A},""):A}}let r;return typeof globalThis<"u"?r=globalThis:typeof self<"u"?r=self:typeof window<"u"?r=window:typeof Bc<"u"&&(r=Bc),r.BigInt.prototype.toJSON=function(){return this},r.JSON.parse=n(),r.JSON.stringify=t,D7}Dae();const wy=function(){},S3={popstate:[]};let Nae={URL:function(){return{searchParams:{set:wy,append:wy,delete:wy}}},location:{href:"",search:""},history:{pushState:wy},fireEvent:function(e){S3[e].forEach(t=>{t()})},addEventListener:function(e,t){S3[e].push(t)},removeEventListener:function(e,t){const n=S3[e],r=n.findIndex(i=>i===t);n.splice(r,1)}};function Fl(){return typeof window<"u"?window:Nae}const O7=[Number,String,Boolean,Date];function Oae(e){const{URL:t}=Fl(),n=new t(Fl().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 kae(e){return Array.isArray(e)&&e.length>0&&e.every(t=>typeof t=="number"||typeof t=="string"||typeof t=="boolean")}function Rae(e={}){if(!Object.values(e).every(n=>O7.includes(n)||kae(n)||typeof n=="function"))throw new Error(`Unsupported param types. Must be one of [${O7.map(n=>n.name).join(", ")}]`)}function Mae(e={},t={},n=!1){t&&Rae(t);const[,r]=R.useState(),i=Fl().location.search,o=R.useMemo(()=>new URLSearchParams(i),[i]),a=R.useMemo(()=>{let h=[];o.forEach((b,v)=>{h.push({key:v,value:b})}),h=h.reduce((b,v)=>((b[v.key]=b[v.key]||[]).push(v),b),{}),h=Object.keys(h).map(b=>{const v=h[b];return v.length===1?[b,v[0].value]:[b,v.map(({value:x})=>x)]});const p=Object.assign({},e);return h.forEach(([b,v])=>{p[b]=Iae(b,v,t,e)}),p},[o]);function l(h){const p=Oae(h);Fl().location.search!==p.search&&(n?Fl().history.replaceState({},"",p.toString()):Fl().history.pushState({},"",p.toString())),o.toString()!==p.searchParams.toString()&&r({})}R.useEffect(()=>{l(Object.assign(Object.assign({},e),a))},[a]);const f=h=>{l(h)};return R.useEffect(()=>{const h=()=>{r({})};return Fl().addEventListener("popstate",h),()=>{Fl().removeEventListener("popstate",h)}},[]),[a,f]}const Lae={true:!0,false:!1};function Iae(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?Lae[o]:i===Date?new Date(o):Array.isArray(i)?i.find(a=>a==o)||r[e]:typeof i=="function"?i(o):o}const Fae=()=>$.jsxs("svg",{viewBox:"0 0 90 90",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[$.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)"}),$.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)"}),$.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)"}),$.jsxs("mask",{id:"g",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:16,y:14,width:58,height:62,children:[$.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)"}),$.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)"}),$.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)"})]}),$.jsxs("g",{mask:"url(#g)",children:[$.jsx("g",{filter:"url(#h)",children:$.jsx("circle",{cx:73,cy:25,r:26,fill:"#ED2E7E"})}),$.jsx("g",{filter:"url(#i)",children:$.jsx("circle",{cx:26,cy:69,r:26,fill:"#1CC8EE"})})]}),$.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)"}),$.jsx("mask",{id:"k",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:30,y:28,width:30,height:30,children:$.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"})}),$.jsxs("g",{mask:"url(#k)",children:[$.jsx("g",{filter:"url(#l)",children:$.jsx("circle",{cx:38,cy:6,r:26,fill:"#ED2E7E"})}),$.jsx("g",{filter:"url(#m)",children:$.jsx("circle",{cx:63,cy:69,r:26,fill:"#1CC8EE"})})]}),$.jsxs("defs",{children:[$.jsxs("linearGradient",{id:"a",x1:16,y1:14,x2:87.213,y2:44.598,gradientUnits:"userSpaceOnUse",children:[$.jsx("stop",{stopColor:"#7433FF"}),$.jsx("stop",{offset:1,stopColor:"#FFA3FD"})]}),$.jsxs("linearGradient",{id:"b",x1:16,y1:14,x2:87.213,y2:44.598,gradientUnits:"userSpaceOnUse",children:[$.jsx("stop",{stopColor:"#7433FF"}),$.jsx("stop",{offset:1,stopColor:"#FFA3FD"})]}),$.jsxs("linearGradient",{id:"c",x1:16,y1:14,x2:87.213,y2:44.598,gradientUnits:"userSpaceOnUse",children:[$.jsx("stop",{stopColor:"#7433FF"}),$.jsx("stop",{offset:1,stopColor:"#FFA3FD"})]}),$.jsxs("linearGradient",{id:"d",x1:16,y1:14,x2:87.213,y2:44.598,gradientUnits:"userSpaceOnUse",children:[$.jsx("stop",{stopColor:"#7433FF"}),$.jsx("stop",{offset:1,stopColor:"#FFA3FD"})]}),$.jsxs("linearGradient",{id:"e",x1:16,y1:14,x2:87.213,y2:44.598,gradientUnits:"userSpaceOnUse",children:[$.jsx("stop",{stopColor:"#7433FF"}),$.jsx("stop",{offset:1,stopColor:"#FFA3FD"})]}),$.jsxs("linearGradient",{id:"f",x1:16,y1:14,x2:87.213,y2:44.598,gradientUnits:"userSpaceOnUse",children:[$.jsx("stop",{stopColor:"#7433FF"}),$.jsx("stop",{offset:1,stopColor:"#FFA3FD"})]}),$.jsxs("linearGradient",{id:"j",x1:30,y1:28,x2:66.165,y2:44.436,gradientUnits:"userSpaceOnUse",children:[$.jsx("stop",{stopColor:"#7433FF"}),$.jsx("stop",{offset:1,stopColor:"#FFA3FD"})]}),$.jsxs("filter",{id:"h",x:23,y:-25,width:100,height:100,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[$.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),$.jsx("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),$.jsx("feGaussianBlur",{stdDeviation:12,result:"effect1_foregroundBlur_1677_11483"})]}),$.jsxs("filter",{id:"i",x:-24,y:19,width:100,height:100,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[$.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),$.jsx("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),$.jsx("feGaussianBlur",{stdDeviation:12,result:"effect1_foregroundBlur_1677_11483"})]}),$.jsxs("filter",{id:"l",x:-12,y:-44,width:100,height:100,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[$.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),$.jsx("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),$.jsx("feGaussianBlur",{stdDeviation:12,result:"effect1_foregroundBlur_1677_11483"})]}),$.jsxs("filter",{id:"m",x:13,y:19,width:100,height:100,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[$.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),$.jsx("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),$.jsx("feGaussianBlur",{stdDeviation:12,result:"effect1_foregroundBlur_1677_11483"})]})]})]}),Pae=(e,t)=>{const n=e.definitions.filter(r=>{var i;return!(r.kind===Q.OPERATION_DEFINITION&&t&&((i=r.name)==null?void 0:i.value)!==t)});return{kind:Q.DOCUMENT,definitions:n}};function jae(e){var b;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=R.useMemo(()=>new Aae,[]),o=R.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 v=i.getExecutorAsync(n,{subscriptionsProtocol:Af.GRAPHQL_SSE,subscriptionsEndpoint:n,credentials:"same-origin",specifiedByUrl:!0,directiveIsRepeatable:!0,inputValueDeprecation:!0,...e,headers:e.additionalHeaders||{},fetch:(...x)=>globalThis.fetch(...x)});return function(S,w){const k=Pae(zi(S.query),S.operationName??void 0);return v({document:k,operationName:S.operationName??void 0,variables:S.variables,extensions:{headers:w==null?void 0:w.headers}})}},[i,n,e.fetcher]),[a,l]=Mae({query:e.defaultQuery||t},r,!1),[f,h]=R.useState((b=a.query)==null?void 0:b.toString()),p=PJ({showAttribution:!0});return e.query&&!e.onEditQuery&&console.warn("If you provide `query` prop, you should also provide `onEditQuery` prop to handle query changes."),$.jsx("div",{className:"graphiql-container",children:$.jsx(BA,{shouldPersistHeaders:!0,plugins:[p],schemaDescription:!0,inputValueDeprecation:!0,query:f,...e,fetcher:o,children:$.jsx(X9,{isHeadersEditorEnabled:!0,defaultEditorToolsVisibility:!0,...e,onEditQuery:(v,x)=>{var S;l({query:v}),h(v),(S=e.onEditQuery)==null||S.call(e,v,x)},children:$.jsx(oh.Logo,{children:$.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[$.jsx("div",{style:{width:40,display:"flex"},children:(e==null?void 0:e.logo)||$.jsx(Fae,{})}),$.jsx("span",{children:(e==null?void 0:e.title)||$.jsxs($.Fragment,{children:["Yoga Graph",$.jsx("em",{children:"i"}),"QL"]})})]})})})})})}function Vae(e,t){Uw.createRoot(e).render($.jsx(jae,{...t}))}globalThis.React=Mt;var Cy={exports:{}},Bae=Cy.exports,k7;function No(){return k7||(k7=1,function(e,t){(function(n,r){e.exports=r()})(Bae,function(){var n=navigator.userAgent,r=navigator.platform,i=/gecko\/\d/i.test(n),o=/MSIE \d/.test(n),a=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(n),l=/Edge\/(\d+)/.exec(n),f=o||a||l,h=f&&(o?document.documentMode||6:+(l||a)[1]),p=!l&&/WebKit\//.test(n),b=p&&/Qt\/\d+\.\d+/.test(n),v=!l&&/Chrome\/(\d+)/.exec(n),x=v&&+v[1],S=/Opera\//.test(n),w=/Apple Computer/.test(navigator.vendor),k=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(n),_=/PhantomJS/.test(n),N=w&&(/Mobile\/\w+/.test(n)||navigator.maxTouchPoints>2),O=/Android/.test(n),A=N||O||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(n),L=N||/Mac/.test(r),P=/\bCrOS\b/.test(n),j=/win/i.test(r),F=S&&n.match(/Version\/(\d*\.\d*)/);F&&(F=Number(F[1])),F&&F>=15&&(S=!1,p=!0);var B=L&&(b||S&&(F==null||F<12.11)),q=i||f&&h>=9;function W(u){return new RegExp("(^|\\s)"+u+"(?:$|\\s)\\s*")}var Z=function(u,d){var y=u.className,g=W(d).exec(y);if(g){var T=y.slice(g.index+g[0].length);u.className=y.slice(0,g.index)+(T?g[1]+T:"")}};function X(u){for(var d=u.childNodes.length;d>0;--d)u.removeChild(u.firstChild);return u}function ee(u,d){return X(u).appendChild(d)}function H(u,d,y,g){var T=document.createElement(u);if(y&&(T.className=y),g&&(T.style.cssText=g),typeof d=="string")T.appendChild(document.createTextNode(d));else if(d)for(var D=0;D<d.length;++D)T.appendChild(d[D]);return T}function J(u,d,y,g){var T=H(u,d,y,g);return T.setAttribute("role","presentation"),T}var ue;document.createRange?ue=function(u,d,y,g){var T=document.createRange();return T.setEnd(g||u,y),T.setStart(u,d),T}:ue=function(u,d,y){var g=document.body.createTextRange();try{g.moveToElementText(u.parentNode)}catch{return g}return g.collapse(!0),g.moveEnd("character",y),g.moveStart("character",d),g};function ne(u,d){if(d.nodeType==3&&(d=d.parentNode),u.contains)return u.contains(d);do if(d.nodeType==11&&(d=d.host),d==u)return!0;while(d=d.parentNode)}function oe(u){var d=u.ownerDocument||u,y;try{y=u.activeElement}catch{y=d.body||null}for(;y&&y.shadowRoot&&y.shadowRoot.activeElement;)y=y.shadowRoot.activeElement;return y}function K(u,d){var y=u.className;W(d).test(y)||(u.className+=(y?" ":"")+d)}function he(u,d){for(var y=u.split(" "),g=0;g<y.length;g++)y[g]&&!W(y[g]).test(d)&&(d+=" "+y[g]);return d}var se=function(u){u.select()};N?se=function(u){u.selectionStart=0,u.selectionEnd=u.value.length}:f&&(se=function(u){try{u.select()}catch{}});function fe(u){return u.display.wrapper.ownerDocument}function ae(u){return Ee(u.display.wrapper)}function Ee(u){return u.getRootNode?u.getRootNode():u.ownerDocument}function ve(u){return fe(u).defaultView}function xe(u){var d=Array.prototype.slice.call(arguments,1);return function(){return u.apply(null,d)}}function ge(u,d,y){d||(d={});for(var g in u)u.hasOwnProperty(g)&&(y!==!1||!d.hasOwnProperty(g))&&(d[g]=u[g]);return d}function Ve(u,d,y,g,T){d==null&&(d=u.search(/[^\s\u00a0]/),d==-1&&(d=u.length));for(var D=g||0,I=T||0;;){var V=u.indexOf(" ",D);if(V<0||V>=d)return I+(d-D);I+=V-D,I+=y-I%y,D=V+1}}var Xe=function(){this.id=null,this.f=null,this.time=0,this.handler=xe(this.onTimeout,this)};Xe.prototype.onTimeout=function(u){u.id=0,u.time<=+new Date?u.f():setTimeout(u.handler,u.time-+new Date)},Xe.prototype.set=function(u,d){this.f=d;var y=+new Date+u;(!this.id||y<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,u),this.time=y)};function et(u,d){for(var y=0;y<u.length;++y)if(u[y]==d)return y;return-1}var dt=50,we={toString:function(){return"CodeMirror.Pass"}},pe={scroll:!1},qe={origin:"*mouse"},ye={origin:"+move"};function re(u,d,y){for(var g=0,T=0;;){var D=u.indexOf(" ",g);D==-1&&(D=u.length);var I=D-g;if(D==u.length||T+I>=d)return g+Math.min(I,d-T);if(T+=D-g,T+=y-T%y,g=D+1,T>=d)return g}}var _e=[""];function ze(u){for(;_e.length<=u;)_e.push(Le(_e)+" ");return _e[u]}function Le(u){return u[u.length-1]}function Pe(u,d){for(var y=[],g=0;g<u.length;g++)y[g]=d(u[g],g);return y}function Te(u,d,y){for(var g=0,T=y(d);g<u.length&&y(u[g])<=T;)g++;u.splice(g,0,d)}function Ie(){}function Qe(u,d){var y;return Object.create?y=Object.create(u):(Ie.prototype=u,y=new Ie),d&&ge(d,y),y}var ut=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function At(u){return/\w/.test(u)||u>""&&(u.toUpperCase()!=u.toLowerCase()||ut.test(u))}function kt(u,d){return d?d.source.indexOf("\\w")>-1&&At(u)?!0:d.test(u):At(u)}function ct(u){for(var d in u)if(u.hasOwnProperty(d)&&u[d])return!1;return!0}var mt=/[\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 ft(u){return u.charCodeAt(0)>=768&&mt.test(u)}function Bt(u,d,y){for(;(y<0?d>0:d<u.length)&&ft(u.charAt(d));)d+=y;return d}function $t(u,d,y){for(var g=d>y?-1:1;;){if(d==y)return d;var T=(d+y)/2,D=g<0?Math.ceil(T):Math.floor(T);if(D==d)return u(D)?d:y;u(D)?y=D:d=D+g}}function Gt(u,d,y,g){if(!u)return g(d,y,"ltr",0);for(var T=!1,D=0;D<u.length;++D){var I=u[D];(I.from<y&&I.to>d||d==y&&I.to==d)&&(g(Math.max(I.from,d),Math.min(I.to,y),I.level==1?"rtl":"ltr",D),T=!0)}T||g(d,y,"ltr")}var fn=null;function _n(u,d,y){var g;fn=null;for(var T=0;T<u.length;++T){var D=u[T];if(D.from<d&&D.to>d)return T;D.to==d&&(D.from!=D.to&&y=="before"?g=T:fn=T),D.from==d&&(D.from!=D.to&&y!="before"?g=T:fn=T)}return g??fn}var Bn=function(){var u="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",d="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function y(z){return z<=247?u.charAt(z):1424<=z&&z<=1524?"R":1536<=z&&z<=1785?d.charAt(z-1536):1774<=z&&z<=2220?"r":8192<=z&&z<=8203?"w":z==8204?"b":"L"}var g=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,T=/[stwN]/,D=/[LRr]/,I=/[Lb1n]/,V=/[1n]/;function U(z,ie,ce){this.level=z,this.from=ie,this.to=ce}return function(z,ie){var ce=ie=="ltr"?"L":"R";if(z.length==0||ie=="ltr"&&!g.test(z))return!1;for(var Se=z.length,me=[],Re=0;Re<Se;++Re)me.push(y(z.charCodeAt(Re)));for(var $e=0,Ke=ce;$e<Se;++$e){var Ze=me[$e];Ze=="m"?me[$e]=Ke:Ke=Ze}for(var nt=0,rt=ce;nt<Se;++nt){var st=me[nt];st=="1"&&rt=="r"?me[nt]="n":D.test(st)&&(rt=st,st=="r"&&(me[nt]="R"))}for(var Tt=1,vt=me[0];Tt<Se-1;++Tt){var Ht=me[Tt];Ht=="+"&&vt=="1"&&me[Tt+1]=="1"?me[Tt]="1":Ht==","&&vt==me[Tt+1]&&(vt=="1"||vt=="n")&&(me[Tt]=vt),vt=Ht}for(var Ln=0;Ln<Se;++Ln){var zr=me[Ln];if(zr==",")me[Ln]="N";else if(zr=="%"){var Nn=void 0;for(Nn=Ln+1;Nn<Se&&me[Nn]=="%";++Nn);for(var En=Ln&&me[Ln-1]=="!"||Nn<Se&&me[Nn]=="1"?"1":"N",ki=Ln;ki<Nn;++ki)me[ki]=En;Ln=Nn-1}}for(var Sr=0,On=ce;Sr<Se;++Sr){var pi=me[Sr];On=="L"&&pi=="1"?me[Sr]="L":D.test(pi)&&(On=pi)}for(var Rr=0;Rr<Se;++Rr)if(T.test(me[Rr])){var wr=void 0;for(wr=Rr+1;wr<Se&&T.test(me[wr]);++wr);for(var jt=(Rr?me[Rr-1]:ce)=="L",Vn=(wr<Se?me[wr]:ce)=="L",xo=jt==Vn?jt?"L":"R":ce,Ra=Rr;Ra<wr;++Ra)me[Ra]=xo;Rr=wr-1}for(var mi=[],Xs,Mr=0;Mr<Se;)if(I.test(me[Mr])){var so=Mr;for(++Mr;Mr<Se&&I.test(me[Mr]);++Mr);mi.push(new U(0,so,Mr))}else{var ri=Mr,Su=mi.length,ii=ie=="rtl"?1:0;for(++Mr;Mr<Se&&me[Mr]!="L";++Mr);for(var Ri=ri;Ri<Mr;)if(V.test(me[Ri])){ri<Ri&&(mi.splice(Su,0,new U(1,ri,Ri)),Su+=ii);var Po=Ri;for(++Ri;Ri<Mr&&V.test(me[Ri]);++Ri);mi.splice(Su,0,new U(2,Po,Ri)),Su+=ii,ri=Ri}else++Ri;ri<Mr&&mi.splice(Su,0,new U(1,ri,Mr))}return ie=="ltr"&&(mi[0].level==1&&(Xs=z.match(/^\s+/))&&(mi[0].from=Xs[0].length,mi.unshift(new U(0,0,Xs[0].length))),Le(mi).level==1&&(Xs=z.match(/\s+$/))&&(Le(mi).to-=Xs[0].length,mi.push(new U(0,Se-Xs[0].length,Se)))),ie=="rtl"?mi.reverse():mi}}();function Et(u,d){var y=u.order;return y==null&&(y=u.order=Bn(u.text,d)),y}var Vr=[],lt=function(u,d,y){if(u.addEventListener)u.addEventListener(d,y,!1);else if(u.attachEvent)u.attachEvent("on"+d,y);else{var g=u._handlers||(u._handlers={});g[d]=(g[d]||Vr).concat(y)}};function Sn(u,d){return u._handlers&&u._handlers[d]||Vr}function An(u,d,y){if(u.removeEventListener)u.removeEventListener(d,y,!1);else if(u.detachEvent)u.detachEvent("on"+d,y);else{var g=u._handlers,T=g&&g[d];if(T){var D=et(T,y);D>-1&&(g[d]=T.slice(0,D).concat(T.slice(D+1)))}}}function Yt(u,d){var y=Sn(u,d);if(y.length)for(var g=Array.prototype.slice.call(arguments,2),T=0;T<y.length;++T)y[T].apply(null,g)}function bn(u,d,y){return typeof d=="string"&&(d={type:d,preventDefault:function(){this.defaultPrevented=!0}}),Yt(u,y||d.type,u,d),Dt(d)||d.codemirrorIgnore}function xt(u){var d=u._handlers&&u._handlers.cursorActivity;if(d)for(var y=u.curOp.cursorActivityHandlers||(u.curOp.cursorActivityHandlers=[]),g=0;g<d.length;++g)et(y,d[g])==-1&&y.push(d[g])}function St(u,d){return Sn(u,d).length>0}function Qt(u){u.prototype.on=function(d,y){lt(this,d,y)},u.prototype.off=function(d,y){An(this,d,y)}}function Lt(u){u.preventDefault?u.preventDefault():u.returnValue=!1}function Rn(u){u.stopPropagation?u.stopPropagation():u.cancelBubble=!0}function Dt(u){return u.defaultPrevented!=null?u.defaultPrevented:u.returnValue==!1}function Jt(u){Lt(u),Rn(u)}function It(u){return u.target||u.srcElement}function en(u){var d=u.which;return d==null&&(u.button&1?d=1:u.button&2?d=3:u.button&4&&(d=2)),L&&u.ctrlKey&&d==1&&(d=3),d}var wi=function(){if(f&&h<9)return!1;var u=H("div");return"draggable"in u||"dragDrop"in u}(),Qr;function Ci(u){if(Qr==null){var d=H("span","");ee(u,H("span",[d,document.createTextNode("x")])),u.firstChild.offsetHeight!=0&&(Qr=d.offsetWidth<=1&&d.offsetHeight>2&&!(f&&h<8))}var y=Qr?H("span",""):H("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return y.setAttribute("cm-text",""),y}var Xi;function Er(u){if(Xi!=null)return Xi;var d=ee(u,document.createTextNode("AخA")),y=ue(d,0,1).getBoundingClientRect(),g=ue(d,1,2).getBoundingClientRect();return X(u),!y||y.left==y.right?!1:Xi=g.right-y.right<3}var Dn=`
b`.split(/\n/).length!=3?function(u){for(var d=0,y=[],g=u.length;d<=g;){var T=u.indexOf(`
`,d);T==-1&&(T=u.length);var D=u.slice(d,u.charAt(T-1)=="\r"?T-1:T),I=D.indexOf("\r");I!=-1?(y.push(D.slice(0,I)),d+=I+1):(y.push(D),d=T+1)}return y}:function(u){return u.split(/\r\n?|\n/)},Kr=window.getSelection?function(u){try{return u.selectionStart!=u.selectionEnd}catch{return!1}}:function(u){var d;try{d=u.ownerDocument.selection.createRange()}catch{}return!d||d.parentElement()!=u?!1:d.compareEndPoints("StartToEnd",d)!=0},Br=function(){var u=H("div");return"oncopy"in u?!0:(u.setAttribute("oncopy","return;"),typeof u.oncopy=="function")}(),zn=null;function ma(u){if(zn!=null)return zn;var d=ee(u,H("span","x")),y=d.getBoundingClientRect(),g=ue(d,0,1).getBoundingClientRect();return zn=Math.abs(y.left-g.left)>1}var Zi={},dn={};function Xr(u,d){arguments.length>2&&(d.dependencies=Array.prototype.slice.call(arguments,2)),Zi[u]=d}function Ji(u,d){dn[u]=d}function Bi(u){if(typeof u=="string"&&dn.hasOwnProperty(u))u=dn[u];else if(u&&typeof u.name=="string"&&dn.hasOwnProperty(u.name)){var d=dn[u.name];typeof d=="string"&&(d={name:d}),u=Qe(d,u),u.name=d.name}else{if(typeof u=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(u))return Bi("application/xml");if(typeof u=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(u))return Bi("application/json")}return typeof u=="string"?{name:u}:u||{name:"null"}}function eo(u,d){d=Bi(d);var y=Zi[d.name];if(!y)return eo(u,"text/plain");var g=y(u,d);if(to.hasOwnProperty(d.name)){var T=to[d.name];for(var D in T)T.hasOwnProperty(D)&&(g.hasOwnProperty(D)&&(g["_"+D]=g[D]),g[D]=T[D])}if(g.name=d.name,d.helperType&&(g.helperType=d.helperType),d.modeProps)for(var I in d.modeProps)g[I]=d.modeProps[I];return g}var to={};function mo(u,d){var y=to.hasOwnProperty(u)?to[u]:to[u]={};ge(d,y)}function ui(u,d){if(d===!0)return d;if(u.copyState)return u.copyState(d);var y={};for(var g in d){var T=d[g];T instanceof Array&&(T=T.concat([])),y[g]=T}return y}function qo(u,d){for(var y;u.innerMode&&(y=u.innerMode(d),!(!y||y.mode==u));)d=y.state,u=y.mode;return y||{mode:u,state:d}}function Oo(u,d,y){return u.startState?u.startState(d,y):!0}var Fn=function(u,d,y){this.pos=this.start=0,this.string=u,this.tabSize=d||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=y};Fn.prototype.eol=function(){return this.pos>=this.string.length},Fn.prototype.sol=function(){return this.pos==this.lineStart},Fn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Fn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Fn.prototype.eat=function(u){var d=this.string.charAt(this.pos),y;if(typeof u=="string"?y=d==u:y=d&&(u.test?u.test(d):u(d)),y)return++this.pos,d},Fn.prototype.eatWhile=function(u){for(var d=this.pos;this.eat(u););return this.pos>d},Fn.prototype.eatSpace=function(){for(var u=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>u},Fn.prototype.skipToEnd=function(){this.pos=this.string.length},Fn.prototype.skipTo=function(u){var d=this.string.indexOf(u,this.pos);if(d>-1)return this.pos=d,!0},Fn.prototype.backUp=function(u){this.pos-=u},Fn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ve(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ve(this.string,this.lineStart,this.tabSize):0)},Fn.prototype.indentation=function(){return Ve(this.string,null,this.tabSize)-(this.lineStart?Ve(this.string,this.lineStart,this.tabSize):0)},Fn.prototype.match=function(u,d,y){if(typeof u=="string"){var g=function(I){return y?I.toLowerCase():I},T=this.string.substr(this.pos,u.length);if(g(T)==g(u))return d!==!1&&(this.pos+=u.length),!0}else{var D=this.string.slice(this.pos).match(u);return D&&D.index>0?null:(D&&d!==!1&&(this.pos+=D[0].length),D)}},Fn.prototype.current=function(){return this.string.slice(this.start,this.pos)},Fn.prototype.hideFirstChars=function(u,d){this.lineStart+=u;try{return d()}finally{this.lineStart-=u}},Fn.prototype.lookAhead=function(u){var d=this.lineOracle;return d&&d.lookAhead(u)},Fn.prototype.baseToken=function(){var u=this.lineOracle;return u&&u.baseToken(this.pos)};function ot(u,d){if(d-=u.first,d<0||d>=u.size)throw new Error("There is no line "+(d+u.first)+" in the document.");for(var y=u;!y.lines;)for(var g=0;;++g){var T=y.children[g],D=T.chunkSize();if(d<D){y=T;break}d-=D}return y.lines[d]}function li(u,d,y){var g=[],T=d.line;return u.iter(d.line,y.line+1,function(D){var I=D.text;T==y.line&&(I=I.slice(0,y.ch)),T==d.line&&(I=I.slice(d.ch)),g.push(I),++T}),g}function ko(u,d,y){var g=[];return u.iter(d,y,function(T){g.push(T.text)}),g}function Jn(u,d){var y=d-u.height;if(y)for(var g=u;g;g=g.parent)g.height+=y}function Y(u){if(u.parent==null)return null;for(var d=u.parent,y=et(d.lines,u),g=d.parent;g;d=g,g=g.parent)for(var T=0;g.children[T]!=d;++T)y+=g.children[T].chunkSize();return y+d.first}function le(u,d){var y=u.first;e:do{for(var g=0;g<u.children.length;++g){var T=u.children[g],D=T.height;if(d<D){u=T;continue e}d-=D,y+=T.chunkSize()}return y}while(!u.lines);for(var I=0;I<u.lines.length;++I){var V=u.lines[I],U=V.height;if(d<U)break;d-=U}return y+I}function je(u,d){return d>=u.first&&d<u.first+u.size}function Ye(u,d){return String(u.lineNumberFormatter(d+u.firstLineNumber))}function Ae(u,d,y){if(y===void 0&&(y=null),!(this instanceof Ae))return new Ae(u,d,y);this.line=u,this.ch=d,this.sticky=y}function tt(u,d){return u.line-d.line||u.ch-d.ch}function tn(u,d){return u.sticky==d.sticky&&tt(u,d)==0}function qn(u){return Ae(u.line,u.ch)}function Ar(u,d){return tt(u,d)<0?d:u}function $i(u,d){return tt(u,d)<0?u:d}function ga(u,d){return Math.max(u.first,Math.min(d,u.first+u.size-1))}function gt(u,d){if(d.line<u.first)return Ae(u.first,0);var y=u.first+u.size-1;return d.line>y?Ae(y,ot(u,y).text.length):ru(d,ot(u,d.line).text.length)}function ru(u,d){var y=u.ch;return y==null||y>d?Ae(u.line,d):y<0?Ae(u.line,0):u}function $s(u,d){for(var y=[],g=0;g<d.length;g++)y[g]=gt(u,d[g]);return y}var Ro=function(u,d){this.state=u,this.lookAhead=d},$r=function(u,d,y,g){this.state=d,this.doc=u,this.line=y,this.maxLookAhead=g||0,this.baseTokens=null,this.baseTokenPos=1};$r.prototype.lookAhead=function(u){var d=this.doc.getLine(this.line+u);return d!=null&&u>this.maxLookAhead&&(this.maxLookAhead=u),d},$r.prototype.baseToken=function(u){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=u;)this.baseTokenPos+=2;var d=this.baseTokens[this.baseTokenPos+1];return{type:d&&d.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-u}},$r.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},$r.fromSaved=function(u,d,y){return d instanceof Ro?new $r(u,ui(u.mode,d.state),y,d.lookAhead):new $r(u,ui(u.mode,d),y)},$r.prototype.save=function(u){var d=u!==!1?ui(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Ro(d,this.maxLookAhead):d};function zu(u,d,y,g){var T=[u.state.modeGen],D={};Ai(u,d.text,u.doc.mode,y,function(z,ie){return T.push(z,ie)},D,g);for(var I=y.state,V=function(z){y.baseTokens=T;var ie=u.state.overlays[z],ce=1,Se=0;y.state=!0,Ai(u,d.text,ie.mode,y,function(me,Re){for(var $e=ce;Se<me;){var Ke=T[ce];Ke>me&&T.splice(ce,1,me,T[ce+1],Ke),ce+=2,Se=Math.min(me,Ke)}if(Re)if(ie.opaque)T.splice($e,ce-$e,me,"overlay "+Re),ce=$e+2;else for(;$e<ce;$e+=2){var Ze=T[$e+1];T[$e+1]=(Ze?Ze+" ":"")+"overlay "+Re}},D),y.state=I,y.baseTokens=null,y.baseTokenPos=1},U=0;U<u.state.overlays.length;++U)V(U);return{styles:T,classes:D.bgClass||D.textClass?D:null}}function qu(u,d,y){if(!d.styles||d.styles[0]!=u.state.modeGen){var g=_i(u,Y(d)),T=d.text.length>u.options.maxHighlightLength&&ui(u.doc.mode,g.state),D=zu(u,d,g);T&&(g.state=T),d.stateAfter=g.save(!T),d.styles=D.styles,D.classes?d.styleClasses=D.classes:d.styleClasses&&(d.styleClasses=null),y===u.doc.highlightFrontier&&(u.doc.modeFrontier=Math.max(u.doc.modeFrontier,++u.doc.highlightFrontier))}return d.styles}function _i(u,d,y){var g=u.doc,T=u.display;if(!g.mode.startState)return new $r(g,!0,d);var D=Go(u,d,y),I=D>g.first&&ot(g,D-1).stateAfter,V=I?$r.fromSaved(g,I,D):new $r(g,Oo(g.mode),D);return g.iter(D,d,function(U){Us(u,U.text,V);var z=V.line;U.stateAfter=z==d-1||z%5==0||z>=T.viewFrom&&z<T.viewTo?V.save():null,V.nextLine()}),y&&(g.modeFrontier=V.line),V}function Us(u,d,y,g){var T=u.doc.mode,D=new Fn(d,u.options.tabSize,y);for(D.start=D.pos=g||0,d==""&&Hs(T,y.state);!D.eol();)va(T,D,y.state),D.start=D.pos}function Hs(u,d){if(u.blankLine)return u.blankLine(d);if(u.innerMode){var y=qo(u,d);if(y.mode.blankLine)return y.mode.blankLine(y.state)}}function va(u,d,y,g){for(var T=0;T<10;T++){g&&(g[0]=qo(u,y).mode);var D=u.token(d,y);if(d.pos>d.start)return D}throw new Error("Mode "+u.name+" failed to advance stream.")}var nn=function(u,d,y){this.start=u.start,this.end=u.pos,this.string=u.current(),this.type=d||null,this.state=y};function er(u,d,y,g){var T=u.doc,D=T.mode,I;d=gt(T,d);var V=ot(T,d.line),U=_i(u,d.line,y),z=new Fn(V.text,u.options.tabSize,U),ie;for(g&&(ie=[]);(g||z.pos<d.ch)&&!z.eol();)z.start=z.pos,I=va(D,z,U.state),g&&ie.push(new nn(z,I,ui(T.mode,U.state)));return g?ie:new nn(z,I,U.state)}function Zr(u,d){if(u)for(;;){var y=u.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!y)break;u=u.slice(0,y.index)+u.slice(y.index+y[0].length);var g=y[1]?"bgClass":"textClass";d[g]==null?d[g]=y[2]:new RegExp("(?:^|\\s)"+y[2]+"(?:$|\\s)").test(d[g])||(d[g]+=" "+y[2])}return u}function Ai(u,d,y,g,T,D,I){var V=y.flattenSpans;V==null&&(V=u.options.flattenSpans);var U=0,z=null,ie=new Fn(d,u.options.tabSize,g),ce,Se=u.options.addModeClass&&[null];for(d==""&&Zr(Hs(y,g.state),D);!ie.eol();){if(ie.pos>u.options.maxHighlightLength?(V=!1,I&&Us(u,d,g,ie.pos),ie.pos=d.length,ce=null):ce=Zr(va(y,ie,g.state,Se),D),Se){var me=Se[0].name;me&&(ce="m-"+(ce?me+" "+ce:me))}if(!V||z!=ce){for(;U<ie.start;)U=Math.min(ie.start,U+5e3),T(U,z);z=ce}ie.start=ie.pos}for(;U<ie.pos;){var Re=Math.min(ie.pos,U+5e3);T(Re,z),U=Re}}function Go(u,d,y){for(var g,T,D=u.doc,I=y?-1:d-(u.doc.mode.innerMode?1e3:100),V=d;V>I;--V){if(V<=D.first)return D.first;var U=ot(D,V-1),z=U.stateAfter;if(z&&(!y||V+(z instanceof Ro?z.lookAhead:0)<=D.modeFrontier))return V;var ie=Ve(U.text,null,u.options.tabSize);(T==null||g>ie)&&(T=V-1,g=ie)}return T}function Df(u,d){if(u.modeFrontier=Math.min(u.modeFrontier,d),!(u.highlightFrontier<d-10)){for(var y=u.first,g=d-1;g>y;g--){var T=ot(u,g).stateAfter;if(T&&(!(T instanceof Ro)||g+T.lookAhead<d)){y=g+1;break}}u.highlightFrontier=Math.min(u.highlightFrontier,y)}}var Gu=!1,go=!1;function Oy(){Gu=!0}function vm(){go=!0}function Nf(u,d,y){this.marker=u,this.from=d,this.to=y}function ya(u,d){if(u)for(var y=0;y<u.length;++y){var g=u[y];if(g.marker==d)return g}}function ba(u,d){for(var y,g=0;g<u.length;++g)u[g]!=d&&(y||(y=[])).push(u[g]);return y}function ym(u,d,y){var g=y&&window.WeakSet&&(y.markedSpans||(y.markedSpans=new WeakSet));g&&u.markedSpans&&g.has(u.markedSpans)?u.markedSpans.push(d):(u.markedSpans=u.markedSpans?u.markedSpans.concat([d]):[d],g&&g.add(u.markedSpans)),d.marker.attachLine(u)}function Of(u,d,y){var g;if(u)for(var T=0;T<u.length;++T){var D=u[T],I=D.marker,V=D.from==null||(I.inclusiveLeft?D.from<=d:D.from<d);if(V||D.from==d&&I.type=="bookmark"&&(!y||!D.marker.insertLeft)){var U=D.to==null||(I.inclusiveRight?D.to>=d:D.to>d);(g||(g=[])).push(new Nf(I,D.from,U?null:D.to))}}return g}function iu(u,d,y){var g;if(u)for(var T=0;T<u.length;++T){var D=u[T],I=D.marker,V=D.to==null||(I.inclusiveRight?D.to>=d:D.to>d);if(V||D.from==d&&I.type=="bookmark"&&(!y||D.marker.insertLeft)){var U=D.from==null||(I.inclusiveLeft?D.from<=d:D.from<d);(g||(g=[])).push(new Nf(I,U?null:D.from-d,D.to==null?null:D.to-d))}}return g}function kf(u,d){if(d.full)return null;var y=je(u,d.from.line)&&ot(u,d.from.line).markedSpans,g=je(u,d.to.line)&&ot(u,d.to.line).markedSpans;if(!y&&!g)return null;var T=d.from.ch,D=d.to.ch,I=tt(d.from,d.to)==0,V=Of(y,T,I),U=iu(g,D,I),z=d.text.length==1,ie=Le(d.text).length+(z?T:0);if(V)for(var ce=0;ce<V.length;++ce){var Se=V[ce];if(Se.to==null){var me=ya(U,Se.marker);me?z&&(Se.to=me.to==null?null:me.to+ie):Se.to=T}}if(U)for(var Re=0;Re<U.length;++Re){var $e=U[Re];if($e.to!=null&&($e.to+=ie),$e.from==null){var Ke=ya(V,$e.marker);Ke||($e.from=ie,z&&(V||(V=[])).push($e))}else $e.from+=ie,z&&(V||(V=[])).push($e)}V&&(V=Rf(V)),U&&U!=V&&(U=Rf(U));var Ze=[V];if(!z){var nt=d.text.length-2,rt;if(nt>0&&V)for(var st=0;st<V.length;++st)V[st].to==null&&(rt||(rt=[])).push(new Nf(V[st].marker,null,null));for(var Tt=0;Tt<nt;++Tt)Ze.push(rt);Ze.push(U)}return Ze}function Rf(u){for(var d=0;d<u.length;++d){var y=u[d];y.from!=null&&y.from==y.to&&y.marker.clearWhenEmpty!==!1&&u.splice(d--,1)}return u.length?u:null}function ky(u,d,y){var g=null;if(u.iter(d.line,y.line+1,function(me){if(me.markedSpans)for(var Re=0;Re<me.markedSpans.length;++Re){var $e=me.markedSpans[Re].marker;$e.readOnly&&(!g||et(g,$e)==-1)&&(g||(g=[])).push($e)}}),!g)return null;for(var T=[{from:d,to:y}],D=0;D<g.length;++D)for(var I=g[D],V=I.find(0),U=0;U<T.length;++U){var z=T[U];if(!(tt(z.to,V.from)<0||tt(z.from,V.to)>0)){var ie=[U,1],ce=tt(z.from,V.from),Se=tt(z.to,V.to);(ce<0||!I.inclusiveLeft&&!ce)&&ie.push({from:z.from,to:V.from}),(Se>0||!I.inclusiveRight&&!Se)&&ie.push({from:V.to,to:z.to}),T.splice.apply(T,ie),U+=ie.length-3}}return T}function Mf(u){var d=u.markedSpans;if(d){for(var y=0;y<d.length;++y)d[y].marker.detachLine(u);u.markedSpans=null}}function Lf(u,d){if(d){for(var y=0;y<d.length;++y)d[y].marker.attachLine(u);u.markedSpans=d}}function If(u){return u.inclusiveLeft?-1:0}function Di(u){return u.inclusiveRight?1:0}function Ea(u,d){var y=u.lines.length-d.lines.length;if(y!=0)return y;var g=u.find(),T=d.find(),D=tt(g.from,T.from)||If(u)-If(d);if(D)return-D;var I=tt(g.to,T.to)||Di(u)-Di(d);return I||d.id-u.id}function Ff(u,d){var y=go&&u.markedSpans,g;if(y)for(var T=void 0,D=0;D<y.length;++D)T=y[D],T.marker.collapsed&&(d?T.from:T.to)==null&&(!g||Ea(g,T.marker)<0)&&(g=T.marker);return g}function jl(u){return Ff(u,!0)}function bh(u){return Ff(u,!1)}function bm(u,d){var y=go&&u.markedSpans,g;if(y)for(var T=0;T<y.length;++T){var D=y[T];D.marker.collapsed&&(D.from==null||D.from<d)&&(D.to==null||D.to>d)&&(!g||Ea(g,D.marker)<0)&&(g=D.marker)}return g}function Eh(u,d,y,g,T){var D=ot(u,d),I=go&&D.markedSpans;if(I)for(var V=0;V<I.length;++V){var U=I[V];if(U.marker.collapsed){var z=U.marker.find(0),ie=tt(z.from,y)||If(U.marker)-If(T),ce=tt(z.to,g)||Di(U.marker)-Di(T);if(!(ie>=0&&ce<=0||ie<=0&&ce>=0)&&(ie<=0&&(U.marker.inclusiveRight&&T.inclusiveLeft?tt(z.to,y)>=0:tt(z.to,y)>0)||ie>=0&&(U.marker.inclusiveRight&&T.inclusiveLeft?tt(z.from,g)<=0:tt(z.from,g)<0)))return!0}}}function no(u){for(var d;d=jl(u);)u=d.find(-1,!0).line;return u}function xh(u){for(var d;d=bh(u);)u=d.find(1,!0).line;return u}function Ry(u){for(var d,y;d=bh(u);)u=d.find(1,!0).line,(y||(y=[])).push(u);return y}function Em(u,d){var y=ot(u,d),g=no(y);return y==g?d:Y(g)}function My(u,d){if(d>u.lastLine())return d;var y=ot(u,d),g;if(!ou(u,y))return d;for(;g=bh(y);)y=g.find(1,!0).line;return Y(y)+1}function ou(u,d){var y=go&&d.markedSpans;if(y){for(var g=void 0,T=0;T<y.length;++T)if(g=y[T],!!g.marker.collapsed){if(g.from==null)return!0;if(!g.marker.widgetNode&&g.from==0&&g.marker.inclusiveLeft&&Pf(u,d,g))return!0}}}function Pf(u,d,y){if(y.to==null){var g=y.marker.find(1,!0);return Pf(u,g.line,ya(g.line.markedSpans,y.marker))}if(y.marker.inclusiveRight&&y.to==d.text.length)return!0;for(var T=void 0,D=0;D<d.markedSpans.length;++D)if(T=d.markedSpans[D],T.marker.collapsed&&!T.marker.widgetNode&&T.from==y.to&&(T.to==null||T.to!=y.from)&&(T.marker.inclusiveLeft||y.marker.inclusiveRight)&&Pf(u,d,T))return!0}function xa(u){u=no(u);for(var d=0,y=u.parent,g=0;g<y.lines.length;++g){var T=y.lines[g];if(T==u)break;d+=T.height}for(var D=y.parent;D;y=D,D=y.parent)for(var I=0;I<D.children.length;++I){var V=D.children[I];if(V==y)break;d+=V.height}return d}function Th(u){if(u.height==0)return 0;for(var d=u.text.length,y,g=u;y=jl(g);){var T=y.find(0,!0);g=T.from.line,d+=T.from.ch-T.to.ch}for(g=u;y=bh(g);){var D=y.find(0,!0);d-=g.text.length-D.from.ch,g=D.to.line,d+=g.text.length-D.to.ch}return d}function xm(u){var d=u.display,y=u.doc;d.maxLine=ot(y,y.first),d.maxLineLength=Th(d.maxLine),d.maxLineChanged=!0,y.iter(function(g){var T=Th(g);T>d.maxLineLength&&(d.maxLineLength=T,d.maxLine=g)})}var Vl=function(u,d,y){this.text=u,Lf(this,d),this.height=y?y(this):1};Vl.prototype.lineNo=function(){return Y(this)},Qt(Vl);function k3(u,d,y,g){u.text=d,u.stateAfter&&(u.stateAfter=null),u.styles&&(u.styles=null),u.order!=null&&(u.order=null),Mf(u),Lf(u,y);var T=g?g(u):1;T!=u.height&&Jn(u,T)}function Ly(u){u.parent=null,Mf(u)}var R3={},M3={};function Iy(u,d){if(!u||/^\s*$/.test(u))return null;var y=d.addModeClass?M3:R3;return y[u]||(y[u]=u.replace(/\S+/g,"cm-$&"))}function Fy(u,d){var y=J("span",null,null,p?"padding-right: .1px":null),g={pre:J("pre",[y],"CodeMirror-line"),content:y,col:0,pos:0,cm:u,trailingSpace:!1,splitSpaces:u.getOption("lineWrapping")};d.measure={};for(var T=0;T<=(d.rest?d.rest.length:0);T++){var D=T?d.rest[T-1]:d.line,I=void 0;g.pos=0,g.addToken=L3,Er(u.display.measure)&&(I=Et(D,u.doc.direction))&&(g.addToken=F3(g.addToken,I)),g.map=[];var V=d!=u.display.externalMeasured&&Y(D);P3(D,g,qu(u,D,V)),D.styleClasses&&(D.styleClasses.bgClass&&(g.bgClass=he(D.styleClasses.bgClass,g.bgClass||"")),D.styleClasses.textClass&&(g.textClass=he(D.styleClasses.textClass,g.textClass||""))),g.map.length==0&&g.map.push(0,0,g.content.appendChild(Ci(u.display.measure))),T==0?(d.measure.map=g.map,d.measure.cache={}):((d.measure.maps||(d.measure.maps=[])).push(g.map),(d.measure.caches||(d.measure.caches=[])).push({}))}if(p){var U=g.content.lastChild;(/\bcm-tab\b/.test(U.className)||U.querySelector&&U.querySelector(".cm-tab"))&&(g.content.className="cm-tab-wrap-hack")}return Yt(u,"renderLine",u,d.line,g.pre),g.pre.className&&(g.textClass=he(g.pre.className,g.textClass||"")),g}function Tm(u){var d=H("span","•","cm-invalidchar");return d.title="\\u"+u.charCodeAt(0).toString(16),d.setAttribute("aria-label",d.title),d}function L3(u,d,y,g,T,D,I){if(d){var V=u.splitSpaces?I3(d,u.trailingSpace):d,U=u.cm.state.specialChars,z=!1,ie;if(!U.test(d))u.col+=d.length,ie=document.createTextNode(V),u.map.push(u.pos,u.pos+d.length,ie),f&&h<9&&(z=!0),u.pos+=d.length;else{ie=document.createDocumentFragment();for(var ce=0;;){U.lastIndex=ce;var Se=U.exec(d),me=Se?Se.index-ce:d.length-ce;if(me){var Re=document.createTextNode(V.slice(ce,ce+me));f&&h<9?ie.appendChild(H("span",[Re])):ie.appendChild(Re),u.map.push(u.pos,u.pos+me,Re),u.col+=me,u.pos+=me}if(!Se)break;ce+=me+1;var $e=void 0;if(Se[0]==" "){var Ke=u.cm.options.tabSize,Ze=Ke-u.col%Ke;$e=ie.appendChild(H("span",ze(Ze),"cm-tab")),$e.setAttribute("role","presentation"),$e.setAttribute("cm-text"," "),u.col+=Ze}else Se[0]=="\r"||Se[0]==`
`?($e=ie.appendChild(H("span",Se[0]=="\r"?"␍":"","cm-invalidchar")),$e.setAttribute("cm-text",Se[0]),u.col+=1):($e=u.cm.options.specialCharPlaceholder(Se[0]),$e.setAttribute("cm-text",Se[0]),f&&h<9?ie.appendChild(H("span",[$e])):ie.appendChild($e),u.col+=1);u.map.push(u.pos,u.pos+1,$e),u.pos++}}if(u.trailingSpace=V.charCodeAt(d.length-1)==32,y||g||T||z||D||I){var nt=y||"";g&&(nt+=g),T&&(nt+=T);var rt=H("span",[ie],nt,D);if(I)for(var st in I)I.hasOwnProperty(st)&&st!="style"&&st!="class"&&rt.setAttribute(st,I[st]);return u.content.appendChild(rt)}u.content.appendChild(ie)}}function I3(u,d){if(u.length>1&&!/ /.test(u))return u;for(var y=d,g="",T=0;T<u.length;T++){var D=u.charAt(T);D==" "&&y&&(T==u.length-1||u.charCodeAt(T+1)==32)&&(D=" "),g+=D,y=D==" "}return g}function F3(u,d){return function(y,g,T,D,I,V,U){T=T?T+" cm-force-border":"cm-force-border";for(var z=y.pos,ie=z+g.length;;){for(var ce=void 0,Se=0;Se<d.length&&(ce=d[Se],!(ce.to>z&&ce.from<=z));Se++);if(ce.to>=ie)return u(y,g,T,D,I,V,U);u(y,g.slice(0,ce.to-z),T,D,null,V,U),D=null,g=g.slice(ce.to-z),z=ce.to}}}function Sm(u,d,y,g){var T=!g&&y.widgetNode;T&&u.map.push(u.pos,u.pos+d,T),!g&&u.cm.display.input.needsContentAttribute&&(T||(T=u.content.appendChild(document.createElement("span"))),T.setAttribute("cm-marker",y.id)),T&&(u.cm.display.input.setUneditable(T),u.content.appendChild(T)),u.pos+=d,u.trailingSpace=!1}function P3(u,d,y){var g=u.markedSpans,T=u.text,D=0;if(!g){for(var I=1;I<y.length;I+=2)d.addToken(d,T.slice(D,D=y[I]),Iy(y[I+1],d.cm.options));return}for(var V=T.length,U=0,z=1,ie="",ce,Se,me=0,Re,$e,Ke,Ze,nt;;){if(me==U){Re=$e=Ke=Se="",nt=null,Ze=null,me=1/0;for(var rt=[],st=void 0,Tt=0;Tt<g.length;++Tt){var vt=g[Tt],Ht=vt.marker;if(Ht.type=="bookmark"&&vt.from==U&&Ht.widgetNode)rt.push(Ht);else if(vt.from<=U&&(vt.to==null||vt.to>U||Ht.collapsed&&vt.to==U&&vt.from==U)){if(vt.to!=null&&vt.to!=U&&me>vt.to&&(me=vt.to,$e=""),Ht.className&&(Re+=" "+Ht.className),Ht.css&&(Se=(Se?Se+";":"")+Ht.css),Ht.startStyle&&vt.from==U&&(Ke+=" "+Ht.startStyle),Ht.endStyle&&vt.to==me&&(st||(st=[])).push(Ht.endStyle,vt.to),Ht.title&&((nt||(nt={})).title=Ht.title),Ht.attributes)for(var Ln in Ht.attributes)(nt||(nt={}))[Ln]=Ht.attributes[Ln];Ht.collapsed&&(!Ze||Ea(Ze.marker,Ht)<0)&&(Ze=vt)}else vt.from>U&&me>vt.from&&(me=vt.from)}if(st)for(var zr=0;zr<st.length;zr+=2)st[zr+1]==me&&($e+=" "+st[zr]);if(!Ze||Ze.from==U)for(var Nn=0;Nn<rt.length;++Nn)Sm(d,0,rt[Nn]);if(Ze&&(Ze.from||0)==U){if(Sm(d,(Ze.to==null?V+1:Ze.to)-U,Ze.marker,Ze.from==null),Ze.to==null)return;Ze.to==U&&(Ze=!1)}}if(U>=V)break;for(var En=Math.min(V,me);;){if(ie){var ki=U+ie.length;if(!Ze){var Sr=ki>En?ie.slice(0,En-U):ie;d.addToken(d,Sr,ce?ce+Re:Re,Ke,U+Sr.length==me?$e:"",Se,nt)}if(ki>=En){ie=ie.slice(En-U),U=En;break}U=ki,Ke=""}ie=T.slice(D,D=y[z++]),ce=Iy(y[z++],d.cm.options)}}}function Py(u,d,y){this.line=d,this.rest=Ry(d),this.size=this.rest?Y(Le(this.rest))-y+1:1,this.node=this.text=null,this.hidden=ou(u,d)}function Sh(u,d,y){for(var g=[],T,D=d;D<y;D=T){var I=new Py(u.doc,ot(u.doc,D),D);T=D+I.size,g.push(I)}return g}var Bl=null;function j3(u){Bl?Bl.ops.push(u):u.ownsGroup=Bl={ops:[u],delayedCallbacks:[]}}function V3(u){var d=u.delayedCallbacks,y=0;do{for(;y<d.length;y++)d[y].call(null);for(var g=0;g<u.ops.length;g++){var T=u.ops[g];if(T.cursorActivityHandlers)for(;T.cursorActivityCalled<T.cursorActivityHandlers.length;)T.cursorActivityHandlers[T.cursorActivityCalled++].call(null,T.cm)}}while(y<d.length)}function B3(u,d){var y=u.ownsGroup;if(y)try{V3(y)}finally{Bl=null,d(y)}}var jf=null;function Jr(u,d){var y=Sn(u,d);if(y.length){var g=Array.prototype.slice.call(arguments,2),T;Bl?T=Bl.delayedCallbacks:jf?T=jf:(T=jf=[],setTimeout(wm,0));for(var D=function(V){T.push(function(){return y[V].apply(null,g)})},I=0;I<y.length;++I)D(I)}}function wm(){var u=jf;jf=null;for(var d=0;d<u.length;++d)u[d]()}function $l(u,d,y,g){for(var T=0;T<d.changes.length;T++){var D=d.changes[T];D=="text"?Vy(u,d):D=="gutter"?_m(u,d,y,g):D=="class"?wh(u,d):D=="widget"&&Ul(u,d,g)}d.changes=null}function Vf(u){return u.node==u.text&&(u.node=H("div",null,null,"position: relative"),u.text.parentNode&&u.text.parentNode.replaceChild(u.node,u.text),u.node.appendChild(u.text),f&&h<8&&(u.node.style.zIndex=2)),u.node}function jy(u,d){var y=d.bgClass?d.bgClass+" "+(d.line.bgClass||""):d.line.bgClass;if(y&&(y+=" CodeMirror-linebackground"),d.background)y?d.background.className=y:(d.background.parentNode.removeChild(d.background),d.background=null);else if(y){var g=Vf(d);d.background=g.insertBefore(H("div",null,y),g.firstChild),u.display.input.setUneditable(d.background)}}function Cm(u,d){var y=u.display.externalMeasured;return y&&y.line==d.line?(u.display.externalMeasured=null,d.measure=y.measure,y.built):Fy(u,d)}function Vy(u,d){var y=d.text.className,g=Cm(u,d);d.text==d.node&&(d.node=g.pre),d.text.parentNode.replaceChild(g.pre,d.text),d.text=g.pre,g.bgClass!=d.bgClass||g.textClass!=d.textClass?(d.bgClass=g.bgClass,d.textClass=g.textClass,wh(u,d)):y&&(d.text.className=y)}function wh(u,d){jy(u,d),d.line.wrapClass?Vf(d).className=d.line.wrapClass:d.node!=d.text&&(d.node.className="");var y=d.textClass?d.textClass+" "+(d.line.textClass||""):d.line.textClass;d.text.className=y||""}function _m(u,d,y,g){if(d.gutter&&(d.node.removeChild(d.gutter),d.gutter=null),d.gutterBackground&&(d.node.removeChild(d.gutterBackground),d.gutterBackground=null),d.line.gutterClass){var T=Vf(d);d.gutterBackground=H("div",null,"CodeMirror-gutter-background "+d.line.gutterClass,"left: "+(u.options.fixedGutter?g.fixedPos:-g.gutterTotalWidth)+"px; width: "+g.gutterTotalWidth+"px"),u.display.input.setUneditable(d.gutterBackground),T.insertBefore(d.gutterBackground,d.text)}var D=d.line.gutterMarkers;if(u.options.lineNumbers||D){var I=Vf(d),V=d.gutter=H("div",null,"CodeMirror-gutter-wrapper","left: "+(u.options.fixedGutter?g.fixedPos:-g.gutterTotalWidth)+"px");if(V.setAttribute("aria-hidden","true"),u.display.input.setUneditable(V),I.insertBefore(V,d.text),d.line.gutterClass&&(V.className+=" "+d.line.gutterClass),u.options.lineNumbers&&(!D||!D["CodeMirror-linenumbers"])&&(d.lineNumber=V.appendChild(H("div",Ye(u.options,y),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+g.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+u.display.lineNumInnerWidth+"px"))),D)for(var U=0;U<u.display.gutterSpecs.length;++U){var z=u.display.gutterSpecs[U].className,ie=D.hasOwnProperty(z)&&D[z];ie&&V.appendChild(H("div",[ie],"CodeMirror-gutter-elt","left: "+g.gutterLeft[z]+"px; width: "+g.gutterWidth[z]+"px"))}}}function Ul(u,d,y){d.alignable&&(d.alignable=null);for(var g=W("CodeMirror-linewidget"),T=d.node.firstChild,D=void 0;T;T=D)D=T.nextSibling,g.test(T.className)&&d.node.removeChild(T);By(u,d,y)}function $3(u,d,y,g){var T=Cm(u,d);return d.text=d.node=T.pre,T.bgClass&&(d.bgClass=T.bgClass),T.textClass&&(d.textClass=T.textClass),wh(u,d),_m(u,d,y,g),By(u,d,g),d.node}function By(u,d,y){if($y(u,d.line,d,y,!0),d.rest)for(var g=0;g<d.rest.length;g++)$y(u,d.rest[g],d,y,!1)}function $y(u,d,y,g,T){if(d.widgets)for(var D=Vf(y),I=0,V=d.widgets;I<V.length;++I){var U=V[I],z=H("div",[U.node],"CodeMirror-linewidget"+(U.className?" "+U.className:""));U.handleMouseEvents||z.setAttribute("cm-ignore-events","true"),Uy(U,z,y,g),u.display.input.setUneditable(z),T&&U.above?D.insertBefore(z,y.gutter||y.text):D.appendChild(z),Jr(U,"redraw")}}function Uy(u,d,y,g){if(u.noHScroll){(y.alignable||(y.alignable=[])).push(d);var T=g.wrapperWidth;d.style.left=g.fixedPos+"px",u.coverGutter||(T-=g.gutterTotalWidth,d.style.paddingLeft=g.gutterTotalWidth+"px"),d.style.width=T+"px"}u.coverGutter&&(d.style.zIndex=5,d.style.position="relative",u.noHScroll||(d.style.marginLeft=-g.gutterTotalWidth+"px"))}function Hl(u){if(u.height!=null)return u.height;var d=u.doc.cm;if(!d)return 0;if(!ne(document.body,u.node)){var y="position: relative;";u.coverGutter&&(y+="margin-left: -"+d.display.gutters.offsetWidth+"px;"),u.noHScroll&&(y+="width: "+d.display.wrapper.clientWidth+"px;"),ee(d.display.measure,H("div",[u.node],null,y))}return u.height=u.node.parentNode.offsetHeight}function Mo(u,d){for(var y=It(d);y!=u.wrapper;y=y.parentNode)if(!y||y.nodeType==1&&y.getAttribute("cm-ignore-events")=="true"||y.parentNode==u.sizer&&y!=u.mover)return!0}function su(u){return u.lineSpace.offsetTop}function Am(u){return u.mover.offsetHeight-u.lineSpace.offsetHeight}function Bf(u){if(u.cachedPaddingH)return u.cachedPaddingH;var d=ee(u.measure,H("pre","x","CodeMirror-line-like")),y=window.getComputedStyle?window.getComputedStyle(d):d.currentStyle,g={left:parseInt(y.paddingLeft),right:parseInt(y.paddingRight)};return!isNaN(g.left)&&!isNaN(g.right)&&(u.cachedPaddingH=g),g}function fs(u){return dt-u.display.nativeBarWidth}function au(u){return u.display.scroller.clientWidth-fs(u)-u.display.barWidth}function $f(u){return u.display.scroller.clientHeight-fs(u)-u.display.barHeight}function Dm(u,d,y){var g=u.options.lineWrapping,T=g&&au(u);if(!d.measure.heights||g&&d.measure.width!=T){var D=d.measure.heights=[];if(g){d.measure.width=T;for(var I=d.text.firstChild.getClientRects(),V=0;V<I.length-1;V++){var U=I[V],z=I[V+1];Math.abs(U.bottom-z.bottom)>2&&D.push((U.bottom+z.top)/2-y.top)}}D.push(y.bottom-y.top)}}function Nm(u,d,y){if(u.line==d)return{map:u.measure.map,cache:u.measure.cache};if(u.rest){for(var g=0;g<u.rest.length;g++)if(u.rest[g]==d)return{map:u.measure.maps[g],cache:u.measure.caches[g]};for(var T=0;T<u.rest.length;T++)if(Y(u.rest[T])>y)return{map:u.measure.maps[T],cache:u.measure.caches[T],before:!0}}}function Hy(u,d){d=no(d);var y=Y(d),g=u.display.externalMeasured=new Py(u.doc,d,y);g.lineN=y;var T=g.built=Fy(u,g);return g.text=T.pre,ee(u.display.lineMeasure,T.pre),g}function Om(u,d,y,g){return zs(u,zl(u,d),y,g)}function km(u,d){if(d>=u.display.viewFrom&&d<u.display.viewTo)return u.display.view[fi(u,d)];var y=u.display.externalMeasured;if(y&&d>=y.lineN&&d<y.lineN+y.size)return y}function zl(u,d){var y=Y(d),g=km(u,y);g&&!g.text?g=null:g&&g.changes&&($l(u,g,y,Ah(u)),u.curOp.forceUpdate=!0),g||(g=Hy(u,d));var T=Nm(g,d,y);return{line:d,view:g,rect:null,map:T.map,cache:T.cache,before:T.before,hasHeights:!1}}function zs(u,d,y,g,T){d.before&&(y=-1);var D=y+(g||""),I;return d.cache.hasOwnProperty(D)?I=d.cache[D]:(d.rect||(d.rect=d.view.text.getBoundingClientRect()),d.hasHeights||(Dm(u,d.view,d.rect),d.hasHeights=!0),I=Uf(u,d,y,g),I.bogus||(d.cache[D]=I)),{left:I.left,right:I.right,top:T?I.rtop:I.top,bottom:T?I.rbottom:I.bottom}}var zy={left:0,right:0,top:0,bottom:0};function qy(u,d,y){for(var g,T,D,I,V,U,z=0;z<u.length;z+=3)if(V=u[z],U=u[z+1],d<V?(T=0,D=1,I="left"):d<U?(T=d-V,D=T+1):(z==u.length-3||d==U&&u[z+3]>d)&&(D=U-V,T=D-1,d>=U&&(I="right")),T!=null){if(g=u[z+2],V==U&&y==(g.insertLeft?"left":"right")&&(I=y),y=="left"&&T==0)for(;z&&u[z-2]==u[z-3]&&u[z-1].insertLeft;)g=u[(z-=3)+2],I="left";if(y=="right"&&T==U-V)for(;z<u.length-3&&u[z+3]==u[z+4]&&!u[z+5].insertLeft;)g=u[(z+=3)+2],I="right";break}return{node:g,start:T,end:D,collapse:I,coverStart:V,coverEnd:U}}function Lo(u,d){var y=zy;if(d=="left")for(var g=0;g<u.length&&(y=u[g]).left==y.right;g++);else for(var T=u.length-1;T>=0&&(y=u[T]).left==y.right;T--);return y}function Uf(u,d,y,g){var T=qy(d.map,y,g),D=T.node,I=T.start,V=T.end,U=T.collapse,z;if(D.nodeType==3){for(var ie=0;ie<4;ie++){for(;I&&ft(d.line.text.charAt(T.coverStart+I));)--I;for(;T.coverStart+V<T.coverEnd&&ft(d.line.text.charAt(T.coverStart+V));)++V;if(f&&h<9&&I==0&&V==T.coverEnd-T.coverStart?z=D.parentNode.getBoundingClientRect():z=Lo(ue(D,I,V).getClientRects(),g),z.left||z.right||I==0)break;V=I,I=I-1,U="right"}f&&h<11&&(z=Gy(u.display.measure,z))}else{I>0&&(U=g="right");var ce;u.options.lineWrapping&&(ce=D.getClientRects()).length>1?z=ce[g=="right"?ce.length-1:0]:z=D.getBoundingClientRect()}if(f&&h<9&&!I&&(!z||!z.left&&!z.right)){var Se=D.parentNode.getClientRects()[0];Se?z={left:Se.left,right:Se.left+Yu(u.display),top:Se.top,bottom:Se.bottom}:z=zy}for(var me=z.top-d.rect.top,Re=z.bottom-d.rect.top,$e=(me+Re)/2,Ke=d.view.measure.heights,Ze=0;Ze<Ke.length-1&&!($e<Ke[Ze]);Ze++);var nt=Ze?Ke[Ze-1]:0,rt=Ke[Ze],st={left:(U=="right"?z.right:z.left)-d.rect.left,right:(U=="left"?z.left:z.right)-d.rect.left,top:nt,bottom:rt};return!z.left&&!z.right&&(st.bogus=!0),u.options.singleCursorHeightPerLine||(st.rtop=me,st.rbottom=Re),st}function Gy(u,d){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!ma(u))return d;var y=screen.logicalXDPI/screen.deviceXDPI,g=screen.logicalYDPI/screen.deviceYDPI;return{left:d.left*y,right:d.right*y,top:d.top*g,bottom:d.bottom*g}}function Rm(u){if(u.measure&&(u.measure.cache={},u.measure.heights=null,u.rest))for(var d=0;d<u.rest.length;d++)u.measure.caches[d]={}}function Mm(u){u.display.externalMeasure=null,X(u.display.lineMeasure);for(var d=0;d<u.display.view.length;d++)Rm(u.display.view[d])}function ql(u){Mm(u),u.display.cachedCharWidth=u.display.cachedTextHeight=u.display.cachedPaddingH=null,u.options.lineWrapping||(u.display.maxLineChanged=!0),u.display.lineNumChars=null}function Ch(u){return v&&O?-(u.body.getBoundingClientRect().left-parseInt(getComputedStyle(u.body).marginLeft)):u.defaultView.pageXOffset||(u.documentElement||u.body).scrollLeft}function Wy(u){return v&&O?-(u.body.getBoundingClientRect().top-parseInt(getComputedStyle(u.body).marginTop)):u.defaultView.pageYOffset||(u.documentElement||u.body).scrollTop}function uu(u){var d=no(u),y=d.widgets,g=0;if(y)for(var T=0;T<y.length;++T)y[T].above&&(g+=Hl(y[T]));return g}function Gl(u,d,y,g,T){if(!T){var D=uu(d);y.top+=D,y.bottom+=D}if(g=="line")return y;g||(g="local");var I=xa(d);if(g=="local"?I+=su(u.display):I-=u.display.viewOffset,g=="page"||g=="window"){var V=u.display.lineSpace.getBoundingClientRect();I+=V.top+(g=="window"?0:Wy(fe(u)));var U=V.left+(g=="window"?0:Ch(fe(u)));y.left+=U,y.right+=U}return y.top+=I,y.bottom+=I,y}function Wl(u,d,y){if(y=="div")return d;var g=d.left,T=d.top;if(y=="page")g-=Ch(fe(u)),T-=Wy(fe(u));else if(y=="local"||!y){var D=u.display.sizer.getBoundingClientRect();g+=D.left,T+=D.top}var I=u.display.lineSpace.getBoundingClientRect();return{left:g-I.left,top:T-I.top}}function Yl(u,d,y,g,T){return g||(g=ot(u.doc,d.line)),Gl(u,g,Om(u,g,d.ch,T),y)}function Wo(u,d,y,g,T,D){g=g||ot(u.doc,d.line),T||(T=zl(u,g));function I(Re,$e){var Ke=zs(u,T,Re,$e?"right":"left",D);return $e?Ke.left=Ke.right:Ke.right=Ke.left,Gl(u,g,Ke,y)}var V=Et(g,u.doc.direction),U=d.ch,z=d.sticky;if(U>=g.text.length?(U=g.text.length,z="before"):U<=0&&(U=0,z="after"),!V)return I(z=="before"?U-1:U,z=="before");function ie(Re,$e,Ke){var Ze=V[$e],nt=Ze.level==1;return I(Ke?Re-1:Re,nt!=Ke)}var ce=_n(V,U,z),Se=fn,me=ie(U,ce,z=="before");return Se!=null&&(me.other=ie(U,Se,z!="before")),me}function lu(u,d){var y=0;d=gt(u.doc,d),u.options.lineWrapping||(y=Yu(u.display)*d.ch);var g=ot(u.doc,d.line),T=xa(g)+su(u.display);return{left:y,right:y,top:T,bottom:T+g.height}}function cu(u,d,y,g,T){var D=Ae(u,d,y);return D.xRel=T,g&&(D.outside=g),D}function Hf(u,d,y){var g=u.doc;if(y+=u.display.viewOffset,y<0)return cu(g.first,0,null,-1,-1);var T=le(g,y),D=g.first+g.size-1;if(T>D)return cu(g.first+g.size-1,ot(g,D).text.length,null,1,1);d<0&&(d=0);for(var I=ot(g,T);;){var V=Yy(u,I,T,d,y),U=bm(I,V.ch+(V.xRel>0||V.outside>0?1:0));if(!U)return V;var z=U.find(1);if(z.line==T)return z;I=ot(g,T=z.line)}}function Lm(u,d,y,g){g-=uu(d);var T=d.text.length,D=$t(function(I){return zs(u,y,I-1).bottom<=g},T,0);return T=$t(function(I){return zs(u,y,I).top>g},D,T),{begin:D,end:T}}function fu(u,d,y,g){y||(y=zl(u,d));var T=Gl(u,d,zs(u,y,g),"line").top;return Lm(u,d,y,T)}function _h(u,d,y,g){return u.bottom<=y?!1:u.top>y?!0:(g?u.left:u.right)>d}function Yy(u,d,y,g,T){T-=xa(d);var D=zl(u,d),I=uu(d),V=0,U=d.text.length,z=!0,ie=Et(d,u.doc.direction);if(ie){var ce=(u.options.lineWrapping?U3:Qy)(u,d,y,D,ie,g,T);z=ce.level!=1,V=z?ce.from:ce.to-1,U=z?ce.to:ce.from-1}var Se=null,me=null,Re=$t(function(Tt){var vt=zs(u,D,Tt);return vt.top+=I,vt.bottom+=I,_h(vt,g,T,!1)?(vt.top<=T&&vt.left<=g&&(Se=Tt,me=vt),!0):!1},V,U),$e,Ke,Ze=!1;if(me){var nt=g-me.left<me.right-g,rt=nt==z;Re=Se+(rt?0:1),Ke=rt?"after":"before",$e=nt?me.left:me.right}else{!z&&(Re==U||Re==V)&&Re++,Ke=Re==0?"after":Re==d.text.length?"before":zs(u,D,Re-(z?1:0)).bottom+I<=T==z?"after":"before";var st=Wo(u,Ae(y,Re,Ke),"line",d,D);$e=st.left,Ze=T<st.top?-1:T>=st.bottom?1:0}return Re=Bt(d.text,Re,1),cu(y,Re,Ke,Ze,g-$e)}function Qy(u,d,y,g,T,D,I){var V=$t(function(ce){var Se=T[ce],me=Se.level!=1;return _h(Wo(u,Ae(y,me?Se.to:Se.from,me?"before":"after"),"line",d,g),D,I,!0)},0,T.length-1),U=T[V];if(V>0){var z=U.level!=1,ie=Wo(u,Ae(y,z?U.from:U.to,z?"after":"before"),"line",d,g);_h(ie,D,I,!0)&&ie.top>I&&(U=T[V-1])}return U}function U3(u,d,y,g,T,D,I){var V=Lm(u,d,g,I),U=V.begin,z=V.end;/\s/.test(d.text.charAt(z-1))&&z--;for(var ie=null,ce=null,Se=0;Se<T.length;Se++){var me=T[Se];if(!(me.from>=z||me.to<=U)){var Re=me.level!=1,$e=zs(u,g,Re?Math.min(z,me.to)-1:Math.max(U,me.from)).right,Ke=$e<D?D-$e+1e9:$e-D;(!ie||ce>Ke)&&(ie=me,ce=Ke)}}return ie||(ie=T[T.length-1]),ie.from<U&&(ie={from:U,to:ie.to,level:ie.level}),ie.to>z&&(ie={from:ie.from,to:z,level:ie.level}),ie}var Wu;function Ql(u){if(u.cachedTextHeight!=null)return u.cachedTextHeight;if(Wu==null){Wu=H("pre",null,"CodeMirror-line-like");for(var d=0;d<49;++d)Wu.appendChild(document.createTextNode("x")),Wu.appendChild(H("br"));Wu.appendChild(document.createTextNode("x"))}ee(u.measure,Wu);var y=Wu.offsetHeight/50;return y>3&&(u.cachedTextHeight=y),X(u.measure),y||1}function Yu(u){if(u.cachedCharWidth!=null)return u.cachedCharWidth;var d=H("span","xxxxxxxxxx"),y=H("pre",[d],"CodeMirror-line-like");ee(u.measure,y);var g=d.getBoundingClientRect(),T=(g.right-g.left)/10;return T>2&&(u.cachedCharWidth=T),T||10}function Ah(u){for(var d=u.display,y={},g={},T=d.gutters.clientLeft,D=d.gutters.firstChild,I=0;D;D=D.nextSibling,++I){var V=u.display.gutterSpecs[I].className;y[V]=D.offsetLeft+D.clientLeft+T,g[V]=D.clientWidth}return{fixedPos:zf(d),gutterTotalWidth:d.gutters.offsetWidth,gutterLeft:y,gutterWidth:g,wrapperWidth:d.wrapper.clientWidth}}function zf(u){return u.scroller.getBoundingClientRect().left-u.sizer.getBoundingClientRect().left}function Yo(u){var d=Ql(u.display),y=u.options.lineWrapping,g=y&&Math.max(5,u.display.scroller.clientWidth/Yu(u.display)-3);return function(T){if(ou(u.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 y?D+(Math.ceil(T.text.length/g)||1)*d:D+d}}function Dh(u){var d=u.doc,y=Yo(u);d.iter(function(g){var T=y(g);T!=g.height&&Jn(g,T)})}function ci(u,d,y,g){var T=u.display;if(!y&&It(d).getAttribute("cm-not-content")=="true")return null;var D,I,V=T.lineSpace.getBoundingClientRect();try{D=d.clientX-V.left,I=d.clientY-V.top}catch{return null}var U=Hf(u,D,I),z;if(g&&U.xRel>0&&(z=ot(u.doc,U.line).text).length==U.ch){var ie=Ve(z,z.length,u.options.tabSize)-z.length;U=Ae(U.line,Math.max(0,Math.round((D-Bf(u.display).left)/Yu(u.display))-ie))}return U}function fi(u,d){if(d>=u.display.viewTo||(d-=u.display.viewFrom,d<0))return null;for(var y=u.display.view,g=0;g<y.length;g++)if(d-=y[g].size,d<0)return g}function Ur(u,d,y,g){d==null&&(d=u.doc.first),y==null&&(y=u.doc.first+u.doc.size),g||(g=0);var T=u.display;if(g&&y<T.viewTo&&(T.updateLineNumbers==null||T.updateLineNumbers>d)&&(T.updateLineNumbers=d),u.curOp.viewChanged=!0,d>=T.viewTo)go&&Em(u.doc,d)<T.viewTo&&ds(u);else if(y<=T.viewFrom)go&&My(u.doc,y+g)>T.viewFrom?ds(u):(T.viewFrom+=g,T.viewTo+=g);else if(d<=T.viewFrom&&y>=T.viewTo)ds(u);else if(d<=T.viewFrom){var D=Qu(u,y,y+g,1);D?(T.view=T.view.slice(D.index),T.viewFrom=D.lineN,T.viewTo+=g):ds(u)}else if(y>=T.viewTo){var I=Qu(u,d,d,-1);I?(T.view=T.view.slice(0,I.index),T.viewTo=I.lineN):ds(u)}else{var V=Qu(u,d,d,-1),U=Qu(u,y,y+g,1);V&&U?(T.view=T.view.slice(0,V.index).concat(Sh(u,V.lineN,U.lineN)).concat(T.view.slice(U.index)),T.viewTo+=g):ds(u)}var z=T.externalMeasured;z&&(y<z.lineN?z.lineN+=g:d<z.lineN+z.size&&(T.externalMeasured=null))}function qs(u,d,y){u.curOp.viewChanged=!0;var g=u.display,T=u.display.externalMeasured;if(T&&d>=T.lineN&&d<T.lineN+T.size&&(g.externalMeasured=null),!(d<g.viewFrom||d>=g.viewTo)){var D=g.view[fi(u,d)];if(D.node!=null){var I=D.changes||(D.changes=[]);et(I,y)==-1&&I.push(y)}}}function ds(u){u.display.viewFrom=u.display.viewTo=u.doc.first,u.display.view=[],u.display.viewOffset=0}function Qu(u,d,y,g){var T=fi(u,d),D,I=u.display.view;if(!go||y==u.doc.first+u.doc.size)return{index:T,lineN:y};for(var V=u.display.viewFrom,U=0;U<T;U++)V+=I[U].size;if(V!=d){if(g>0){if(T==I.length-1)return null;D=V+I[T].size-d,T++}else D=V-d;d+=D,y+=D}for(;Em(u.doc,y)!=y;){if(T==(g<0?0:I.length-1))return null;y+=g*I[T-(g<0?1:0)].size,T+=g}return{index:T,lineN:y}}function Im(u,d,y){var g=u.display,T=g.view;T.length==0||d>=g.viewTo||y<=g.viewFrom?(g.view=Sh(u,d,y),g.viewFrom=d):(g.viewFrom>d?g.view=Sh(u,d,g.viewFrom).concat(g.view):g.viewFrom<d&&(g.view=g.view.slice(fi(u,d))),g.viewFrom=d,g.viewTo<y?g.view=g.view.concat(Sh(u,g.viewTo,y)):g.viewTo>y&&(g.view=g.view.slice(0,fi(u,y)))),g.viewTo=y}function Ku(u){for(var d=u.display.view,y=0,g=0;g<d.length;g++){var T=d[g];!T.hidden&&(!T.node||T.changes)&&++y}return y}function Kl(u){u.display.input.showSelection(u.display.input.prepareSelection())}function qf(u,d){d===void 0&&(d=!0);var y=u.doc,g={},T=g.cursors=document.createDocumentFragment(),D=g.selection=document.createDocumentFragment(),I=u.options.$customCursor;I&&(d=!0);for(var V=0;V<y.sel.ranges.length;V++)if(!(!d&&V==y.sel.primIndex)){var U=y.sel.ranges[V];if(!(U.from().line>=u.display.viewTo||U.to().line<u.display.viewFrom)){var z=U.empty();if(I){var ie=I(u,U);ie&&du(u,ie,T)}else(z||u.options.showCursorWhenSelecting)&&du(u,U.head,T);z||Io(u,U,D)}}return g}function du(u,d,y){var g=Wo(u,d,"div",null,null,!u.options.singleCursorHeightPerLine),T=y.appendChild(H("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)*u.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(u.getWrapperElement().className)){var D=Yl(u,d,"div",null,null),I=D.right-D.left;T.style.width=(I>0?I:u.defaultCharWidth())+"px"}if(g.other){var V=y.appendChild(H("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));V.style.display="",V.style.left=g.other.left+"px",V.style.top=g.other.top+"px",V.style.height=(g.other.bottom-g.other.top)*.85+"px"}}function Nh(u,d){return u.top-d.top||u.left-d.left}function Io(u,d,y){var g=u.display,T=u.doc,D=document.createDocumentFragment(),I=Bf(u.display),V=I.left,U=Math.max(g.sizerWidth,au(u)-g.sizer.offsetLeft)-I.right,z=T.direction=="ltr";function ie(rt,st,Tt,vt){st<0&&(st=0),st=Math.round(st),vt=Math.round(vt),D.appendChild(H("div",null,"CodeMirror-selected","position: absolute; left: "+rt+`px;
top: `+st+"px; width: "+(Tt??U-rt)+`px;
height: `+(vt-st)+"px"))}function ce(rt,st,Tt){var vt=ot(T,rt),Ht=vt.text.length,Ln,zr;function Nn(Sr,On){return Yl(u,Ae(rt,Sr),"div",vt,On)}function En(Sr,On,pi){var Rr=fu(u,vt,null,Sr),wr=On=="ltr"==(pi=="after")?"left":"right",jt=pi=="after"?Rr.begin:Rr.end-(/\s/.test(vt.text.charAt(Rr.end-1))?2:1);return Nn(jt,wr)[wr]}var ki=Et(vt,T.direction);return Gt(ki,st||0,Tt??Ht,function(Sr,On,pi,Rr){var wr=pi=="ltr",jt=Nn(Sr,wr?"left":"right"),Vn=Nn(On-1,wr?"right":"left"),xo=st==null&&Sr==0,Ra=Tt==null&&On==Ht,mi=Rr==0,Xs=!ki||Rr==ki.length-1;if(Vn.top-jt.top<=3){var Mr=(z?xo:Ra)&&mi,so=(z?Ra:xo)&&Xs,ri=Mr?V:(wr?jt:Vn).left,Su=so?U:(wr?Vn:jt).right;ie(ri,jt.top,Su-ri,jt.bottom)}else{var ii,Ri,Po,Ma;wr?(ii=z&&xo&&mi?V:jt.left,Ri=z?U:En(Sr,pi,"before"),Po=z?V:En(On,pi,"after"),Ma=z&&Ra&&Xs?U:Vn.right):(ii=z?En(Sr,pi,"before"):V,Ri=!z&&xo&&mi?U:jt.right,Po=!z&&Ra&&Xs?V:Vn.left,Ma=z?En(On,pi,"after"):U),ie(ii,jt.top,Ri-ii,jt.bottom),jt.bottom<Vn.top&&ie(V,jt.bottom,null,Vn.top),ie(Po,Vn.top,Ma-Po,Vn.bottom)}(!Ln||Nh(jt,Ln)<0)&&(Ln=jt),Nh(Vn,Ln)<0&&(Ln=Vn),(!zr||Nh(jt,zr)<0)&&(zr=jt),Nh(Vn,zr)<0&&(zr=Vn)}),{start:Ln,end:zr}}var Se=d.from(),me=d.to();if(Se.line==me.line)ce(Se.line,Se.ch,me.ch);else{var Re=ot(T,Se.line),$e=ot(T,me.line),Ke=no(Re)==no($e),Ze=ce(Se.line,Se.ch,Ke?Re.text.length+1:null).end,nt=ce(me.line,Ke?0:null,me.ch).start;Ke&&(Ze.top<nt.top-2?(ie(Ze.right,Ze.top,null,Ze.bottom),ie(V,nt.top,nt.left,nt.bottom)):ie(Ze.right,Ze.top,nt.left-Ze.right,Ze.bottom)),Ze.bottom<nt.top&&ie(V,Ze.bottom,null,nt.top)}y.appendChild(D)}function Gf(u){if(u.state.focused){var d=u.display;clearInterval(d.blinker);var y=!0;d.cursorDiv.style.visibility="",u.options.cursorBlinkRate>0?d.blinker=setInterval(function(){u.hasFocus()||Qo(u),d.cursorDiv.style.visibility=(y=!y)?"":"hidden"},u.options.cursorBlinkRate):u.options.cursorBlinkRate<0&&(d.cursorDiv.style.visibility="hidden")}}function Gs(u){u.hasFocus()||(u.display.input.focus(),u.state.focused||Xl(u))}function Oh(u){u.state.delayingBlurEvent=!0,setTimeout(function(){u.state.delayingBlurEvent&&(u.state.delayingBlurEvent=!1,u.state.focused&&Qo(u))},100)}function Xl(u,d){u.state.delayingBlurEvent&&!u.state.draggingText&&(u.state.delayingBlurEvent=!1),u.options.readOnly!="nocursor"&&(u.state.focused||(Yt(u,"focus",u,d),u.state.focused=!0,K(u.display.wrapper,"CodeMirror-focused"),!u.curOp&&u.display.selForContextMenu!=u.doc.sel&&(u.display.input.reset(),p&&setTimeout(function(){return u.display.input.reset(!0)},20)),u.display.input.receivedFocus()),Gf(u))}function Qo(u,d){u.state.delayingBlurEvent||(u.state.focused&&(Yt(u,"blur",u,d),u.state.focused=!1,Z(u.display.wrapper,"CodeMirror-focused")),clearInterval(u.display.blinker),setTimeout(function(){u.state.focused||(u.display.shift=!1)},150))}function Zl(u){for(var d=u.display,y=d.lineDiv.offsetTop,g=Math.max(0,d.scroller.getBoundingClientRect().top),T=d.lineDiv.getBoundingClientRect().top,D=0,I=0;I<d.view.length;I++){var V=d.view[I],U=u.options.lineWrapping,z=void 0,ie=0;if(!V.hidden){if(T+=V.line.height,f&&h<8){var ce=V.node.offsetTop+V.node.offsetHeight;z=ce-y,y=ce}else{var Se=V.node.getBoundingClientRect();z=Se.bottom-Se.top,!U&&V.text.firstChild&&(ie=V.text.firstChild.getBoundingClientRect().right-Se.left-1)}var me=V.line.height-z;if((me>.005||me<-.005)&&(T<g&&(D-=me),Jn(V.line,z),kh(V.line),V.rest))for(var Re=0;Re<V.rest.length;Re++)kh(V.rest[Re]);if(ie>u.display.sizerWidth){var $e=Math.ceil(ie/Yu(u.display));$e>u.display.maxLineLength&&(u.display.maxLineLength=$e,u.display.maxLine=V.line,u.display.maxLineChanged=!0)}}}Math.abs(D)>2&&(d.scroller.scrollTop+=D)}function kh(u){if(u.widgets)for(var d=0;d<u.widgets.length;++d){var y=u.widgets[d],g=y.node.parentNode;g&&(y.height=g.offsetHeight)}}function Ta(u,d,y){var g=y&&y.top!=null?Math.max(0,y.top):u.scroller.scrollTop;g=Math.floor(g-su(u));var T=y&&y.bottom!=null?y.bottom:g+u.wrapper.clientHeight,D=le(d,g),I=le(d,T);if(y&&y.ensure){var V=y.ensure.from.line,U=y.ensure.to.line;V<D?(D=V,I=le(d,xa(ot(d,V))+u.wrapper.clientHeight)):Math.min(U,d.lastLine())>=I&&(D=le(d,xa(ot(d,U))-u.wrapper.clientHeight),I=U)}return{from:D,to:Math.max(I,D+1)}}function Jl(u,d){if(!bn(u,"scrollCursorIntoView")){var y=u.display,g=y.sizer.getBoundingClientRect(),T=null,D=y.wrapper.ownerDocument;if(d.top+g.top<0?T=!0:d.bottom+g.top>(D.defaultView.innerHeight||D.documentElement.clientHeight)&&(T=!1),T!=null&&!_){var I=H("div","",null,`position: absolute;
top: `+(d.top-y.viewOffset-su(u.display))+`px;
height: `+(d.bottom-d.top+fs(u)+y.barHeight)+`px;
left: `+d.left+"px; width: "+Math.max(2,d.right-d.left)+"px;");u.display.lineSpace.appendChild(I),I.scrollIntoView(T),u.display.lineSpace.removeChild(I)}}}function Rh(u,d,y,g){g==null&&(g=0);var T;!u.options.lineWrapping&&d==y&&(y=d.sticky=="before"?Ae(d.line,d.ch+1,"before"):d,d=d.ch?Ae(d.line,d.sticky=="before"?d.ch-1:d.ch,"after"):d);for(var D=0;D<5;D++){var I=!1,V=Wo(u,d),U=!y||y==d?V:Wo(u,y);T={left:Math.min(V.left,U.left),top:Math.min(V.top,U.top)-g,right:Math.max(V.left,U.left),bottom:Math.max(V.bottom,U.bottom)+g};var z=vo(u,T),ie=u.doc.scrollTop,ce=u.doc.scrollLeft;if(z.scrollTop!=null&&(Xu(u,z.scrollTop),Math.abs(u.doc.scrollTop-ie)>1&&(I=!0)),z.scrollLeft!=null&&(Dr(u,z.scrollLeft),Math.abs(u.doc.scrollLeft-ce)>1&&(I=!0)),!I)break}return T}function Mh(u,d){var y=vo(u,d);y.scrollTop!=null&&Xu(u,y.scrollTop),y.scrollLeft!=null&&Dr(u,y.scrollLeft)}function vo(u,d){var y=u.display,g=Ql(u.display);d.top<0&&(d.top=0);var T=u.curOp&&u.curOp.scrollTop!=null?u.curOp.scrollTop:y.scroller.scrollTop,D=$f(u),I={};d.bottom-d.top>D&&(d.bottom=d.top+D);var V=u.doc.height+Am(y),U=d.top<g,z=d.bottom>V-g;if(d.top<T)I.scrollTop=U?0:d.top;else if(d.bottom>T+D){var ie=Math.min(d.top,(z?V:d.bottom)-D);ie!=T&&(I.scrollTop=ie)}var ce=u.options.fixedGutter?0:y.gutters.offsetWidth,Se=u.curOp&&u.curOp.scrollLeft!=null?u.curOp.scrollLeft:y.scroller.scrollLeft-ce,me=au(u)-y.gutters.offsetWidth,Re=d.right-d.left>me;return Re&&(d.right=d.left+me),d.left<10?I.scrollLeft=0:d.left<Se?I.scrollLeft=Math.max(0,d.left+ce-(Re?0:10)):d.right>me+Se-3&&(I.scrollLeft=d.right+(Re?0:10)-me),I}function yo(u,d){d!=null&&(Ws(u),u.curOp.scrollTop=(u.curOp.scrollTop==null?u.doc.scrollTop:u.curOp.scrollTop)+d)}function Ko(u){Ws(u);var d=u.getCursor();u.curOp.scrollToPos={from:d,to:d,margin:u.options.cursorScrollMargin}}function Fo(u,d,y){(d!=null||y!=null)&&Ws(u),d!=null&&(u.curOp.scrollLeft=d),y!=null&&(u.curOp.scrollTop=y)}function Sa(u,d){Ws(u),u.curOp.scrollToPos=d}function Ws(u){var d=u.curOp.scrollToPos;if(d){u.curOp.scrollToPos=null;var y=lu(u,d.from),g=lu(u,d.to);Fm(u,y,g,d.margin)}}function Fm(u,d,y,g){var T=vo(u,{left:Math.min(d.left,y.left),top:Math.min(d.top,y.top)-g,right:Math.max(d.right,y.right),bottom:Math.max(d.bottom,y.bottom)+g});Fo(u,T.scrollLeft,T.scrollTop)}function Xu(u,d){Math.abs(u.doc.scrollTop-d)<2||(i||Or(u,{top:d}),Lh(u,d,!0),i&&Or(u),mu(u,100))}function Lh(u,d,y){d=Math.max(0,Math.min(u.display.scroller.scrollHeight-u.display.scroller.clientHeight,d)),!(u.display.scroller.scrollTop==d&&!y)&&(u.doc.scrollTop=d,u.display.scrollbars.setScrollTop(d),u.display.scroller.scrollTop!=d&&(u.display.scroller.scrollTop=d))}function Dr(u,d,y,g){d=Math.max(0,Math.min(d,u.display.scroller.scrollWidth-u.display.scroller.clientWidth)),!((y?d==u.doc.scrollLeft:Math.abs(u.doc.scrollLeft-d)<2)&&!g)&&(u.doc.scrollLeft=d,Ph(u),u.display.scroller.scrollLeft!=d&&(u.display.scroller.scrollLeft=d),u.display.scrollbars.setScrollLeft(d))}function Gn(u){var d=u.display,y=d.gutters.offsetWidth,g=Math.round(u.doc.height+Am(u.display));return{clientHeight:d.scroller.clientHeight,viewHeight:d.wrapper.clientHeight,scrollWidth:d.scroller.scrollWidth,clientWidth:d.scroller.clientWidth,viewWidth:d.wrapper.clientWidth,barLeft:u.options.fixedGutter?y:0,docHeight:g,scrollHeight:g+fs(u)+d.barHeight,nativeBarWidth:d.nativeBarWidth,gutterWidth:y}}var un=function(u,d,y){this.cm=y;var g=this.vert=H("div",[H("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),T=this.horiz=H("div",[H("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");g.tabIndex=T.tabIndex=-1,u(g),u(T),lt(g,"scroll",function(){g.clientHeight&&d(g.scrollTop,"vertical")}),lt(T,"scroll",function(){T.clientWidth&&d(T.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,f&&h<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};un.prototype.update=function(u){var d=u.scrollWidth>u.clientWidth+1,y=u.scrollHeight>u.clientHeight+1,g=u.nativeBarWidth;if(y){this.vert.style.display="block",this.vert.style.bottom=d?g+"px":"0";var T=u.viewHeight-(d?g:0);this.vert.firstChild.style.height=Math.max(0,u.scrollHeight-u.clientHeight+T)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(d){this.horiz.style.display="block",this.horiz.style.right=y?g+"px":"0",this.horiz.style.left=u.barLeft+"px";var D=u.viewWidth-u.barLeft-(y?g:0);this.horiz.firstChild.style.width=Math.max(0,u.scrollWidth-u.clientWidth+D)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&u.clientHeight>0&&(g==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:y?g:0,bottom:d?g:0}},un.prototype.setScrollLeft=function(u){this.horiz.scrollLeft!=u&&(this.horiz.scrollLeft=u),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},un.prototype.setScrollTop=function(u){this.vert.scrollTop!=u&&(this.vert.scrollTop=u),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},un.prototype.zeroWidthHack=function(){var u=L&&!k?"12px":"18px";this.horiz.style.height=this.vert.style.width=u,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new Xe,this.disableVert=new Xe},un.prototype.enableZeroWidthBar=function(u,d,y){u.style.visibility="";function g(){var T=u.getBoundingClientRect(),D=y=="vert"?document.elementFromPoint(T.right-1,(T.top+T.bottom)/2):document.elementFromPoint((T.right+T.left)/2,T.bottom-1);D!=u?u.style.visibility="hidden":d.set(1e3,g)}d.set(1e3,g)},un.prototype.clear=function(){var u=this.horiz.parentNode;u.removeChild(this.horiz),u.removeChild(this.vert)};var hs=function(){};hs.prototype.update=function(){return{bottom:0,right:0}},hs.prototype.setScrollLeft=function(){},hs.prototype.setScrollTop=function(){},hs.prototype.clear=function(){};function ro(u,d){d||(d=Gn(u));var y=u.display.barWidth,g=u.display.barHeight;Ih(u,d);for(var T=0;T<4&&y!=u.display.barWidth||g!=u.display.barHeight;T++)y!=u.display.barWidth&&u.options.lineWrapping&&Zl(u),Ih(u,Gn(u)),y=u.display.barWidth,g=u.display.barHeight}function Ih(u,d){var y=u.display,g=y.scrollbars.update(d);y.sizer.style.paddingRight=(y.barWidth=g.right)+"px",y.sizer.style.paddingBottom=(y.barHeight=g.bottom)+"px",y.heightForcer.style.borderBottom=g.bottom+"px solid transparent",g.right&&g.bottom?(y.scrollbarFiller.style.display="block",y.scrollbarFiller.style.height=g.bottom+"px",y.scrollbarFiller.style.width=g.right+"px"):y.scrollbarFiller.style.display="",g.bottom&&u.options.coverGutterNextToScrollbar&&u.options.fixedGutter?(y.gutterFiller.style.display="block",y.gutterFiller.style.height=g.bottom+"px",y.gutterFiller.style.width=d.gutterWidth+"px"):y.gutterFiller.style.display=""}var hu={native:un,null:hs};function Pm(u){u.display.scrollbars&&(u.display.scrollbars.clear(),u.display.scrollbars.addClass&&Z(u.display.wrapper,u.display.scrollbars.addClass)),u.display.scrollbars=new hu[u.options.scrollbarStyle](function(d){u.display.wrapper.insertBefore(d,u.display.scrollbarFiller),lt(d,"mousedown",function(){u.state.focused&&setTimeout(function(){return u.display.input.focus()},0)}),d.setAttribute("cm-not-content","true")},function(d,y){y=="horizontal"?Dr(u,d):Xu(u,d)},u),u.display.scrollbars.addClass&&K(u.display.wrapper,u.display.scrollbars.addClass)}var Ky=0;function ps(u){u.curOp={cm:u,viewChanged:!1,startHeight:u.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:++Ky,markArrays:null},j3(u.curOp)}function ms(u){var d=u.curOp;d&&B3(d,function(y){for(var g=0;g<y.ops.length;g++)y.ops[g].cm.curOp=null;Xy(y)})}function Xy(u){for(var d=u.ops,y=0;y<d.length;y++)Wf(d[y]);for(var g=0;g<d.length;g++)jm(d[g]);for(var T=0;T<d.length;T++)Zu(d[T]);for(var D=0;D<d.length;D++)wa(d[D]);for(var I=0;I<d.length;I++)pu(d[I])}function Wf(u){var d=u.cm,y=d.display;Fh(d),u.updateMaxLine&&xm(d),u.mustUpdate=u.viewChanged||u.forceUpdate||u.scrollTop!=null||u.scrollToPos&&(u.scrollToPos.from.line<y.viewFrom||u.scrollToPos.to.line>=y.viewTo)||y.maxLineChanged&&d.options.lineWrapping,u.update=u.mustUpdate&&new ei(d,u.mustUpdate&&{top:u.scrollTop,ensure:u.scrollToPos},u.forceUpdate)}function jm(u){u.updatedDisplay=u.mustUpdate&&Vm(u.cm,u.update)}function Zu(u){var d=u.cm,y=d.display;u.updatedDisplay&&Zl(d),u.barMeasure=Gn(d),y.maxLineChanged&&!d.options.lineWrapping&&(u.adjustWidthTo=Om(d,y.maxLine,y.maxLine.text.length).left+3,d.display.sizerWidth=u.adjustWidthTo,u.barMeasure.scrollWidth=Math.max(y.scroller.clientWidth,y.sizer.offsetLeft+u.adjustWidthTo+fs(d)+d.display.barWidth),u.maxScrollLeft=Math.max(0,y.sizer.offsetLeft+u.adjustWidthTo-au(d))),(u.updatedDisplay||u.selectionChanged)&&(u.preparedSelection=y.input.prepareSelection())}function wa(u){var d=u.cm;u.adjustWidthTo!=null&&(d.display.sizer.style.minWidth=u.adjustWidthTo+"px",u.maxScrollLeft<d.doc.scrollLeft&&Dr(d,Math.min(d.display.scroller.scrollLeft,u.maxScrollLeft),!0),d.display.maxLineChanged=!1);var y=u.focus&&u.focus==oe(ae(d));u.preparedSelection&&d.display.input.showSelection(u.preparedSelection,y),(u.updatedDisplay||u.startHeight!=d.doc.height)&&ro(d,u.barMeasure),u.updatedDisplay&&tl(d,u.barMeasure),u.selectionChanged&&Gf(d),d.state.focused&&u.updateInput&&d.display.input.reset(u.typing),y&&Gs(u.cm)}function pu(u){var d=u.cm,y=d.display,g=d.doc;if(u.updatedDisplay&&Jy(d,u.update),y.wheelStartX!=null&&(u.scrollTop!=null||u.scrollLeft!=null||u.scrollToPos)&&(y.wheelStartX=y.wheelStartY=null),u.scrollTop!=null&&Lh(d,u.scrollTop,u.forceScroll),u.scrollLeft!=null&&Dr(d,u.scrollLeft,!0,!0),u.scrollToPos){var T=Rh(d,gt(g,u.scrollToPos.from),gt(g,u.scrollToPos.to),u.scrollToPos.margin);Jl(d,T)}var D=u.maybeHiddenMarkers,I=u.maybeUnhiddenMarkers;if(D)for(var V=0;V<D.length;++V)D[V].lines.length||Yt(D[V],"hide");if(I)for(var U=0;U<I.length;++U)I[U].lines.length&&Yt(I[U],"unhide");y.wrapper.offsetHeight&&(g.scrollTop=d.display.scroller.scrollTop),u.changeObjs&&Yt(d,"changes",d,u.changeObjs),u.update&&u.update.finish()}function xr(u,d){if(u.curOp)return d();ps(u);try{return d()}finally{ms(u)}}function Nr(u,d){return function(){if(u.curOp)return d.apply(u,arguments);ps(u);try{return d.apply(u,arguments)}finally{ms(u)}}}function di(u){return function(){if(this.curOp)return u.apply(this,arguments);ps(this);try{return u.apply(this,arguments)}finally{ms(this)}}}function pr(u){return function(){var d=this.cm;if(!d||d.curOp)return u.apply(this,arguments);ps(d);try{return u.apply(this,arguments)}finally{ms(d)}}}function mu(u,d){u.doc.highlightFrontier<u.display.viewTo&&u.state.highlight.set(d,xe(Ju,u))}function Ju(u){var d=u.doc;if(!(d.highlightFrontier>=u.display.viewTo)){var y=+new Date+u.options.workTime,g=_i(u,d.highlightFrontier),T=[];d.iter(g.line,Math.min(d.first+d.size,u.display.viewTo+500),function(D){if(g.line>=u.display.viewFrom){var I=D.styles,V=D.text.length>u.options.maxHighlightLength?ui(d.mode,g.state):null,U=zu(u,D,g,!0);V&&(g.state=V),D.styles=U.styles;var z=D.styleClasses,ie=U.classes;ie?D.styleClasses=ie:z&&(D.styleClasses=null);for(var ce=!I||I.length!=D.styles.length||z!=ie&&(!z||!ie||z.bgClass!=ie.bgClass||z.textClass!=ie.textClass),Se=0;!ce&&Se<I.length;++Se)ce=I[Se]!=D.styles[Se];ce&&T.push(g.line),D.stateAfter=g.save(),g.nextLine()}else D.text.length<=u.options.maxHighlightLength&&Us(u,D.text,g),D.stateAfter=g.line%5==0?g.save():null,g.nextLine();if(+new Date>y)return mu(u,u.options.workDelay),!0}),d.highlightFrontier=g.line,d.modeFrontier=Math.max(d.modeFrontier,g.line),T.length&&xr(u,function(){for(var D=0;D<T.length;D++)qs(u,T[D],"text")})}}var ei=function(u,d,y){var g=u.display;this.viewport=d,this.visible=Ta(g,u.doc,d),this.editorIsHidden=!g.wrapper.offsetWidth,this.wrapperHeight=g.wrapper.clientHeight,this.wrapperWidth=g.wrapper.clientWidth,this.oldDisplayWidth=au(u),this.force=y,this.dims=Ah(u),this.events=[]};ei.prototype.signal=function(u,d){St(u,d)&&this.events.push(arguments)},ei.prototype.finish=function(){for(var u=0;u<this.events.length;u++)Yt.apply(null,this.events[u])};function Fh(u){var d=u.display;!d.scrollbarsClipped&&d.scroller.offsetWidth&&(d.nativeBarWidth=d.scroller.offsetWidth-d.scroller.clientWidth,d.heightForcer.style.height=fs(u)+"px",d.sizer.style.marginBottom=-d.nativeBarWidth+"px",d.sizer.style.borderRightWidth=fs(u)+"px",d.scrollbarsClipped=!0)}function Zy(u){if(u.hasFocus())return null;var d=oe(ae(u));if(!d||!ne(u.display.lineDiv,d))return null;var y={activeElt:d};if(window.getSelection){var g=ve(u).getSelection();g.anchorNode&&g.extend&&ne(u.display.lineDiv,g.anchorNode)&&(y.anchorNode=g.anchorNode,y.anchorOffset=g.anchorOffset,y.focusNode=g.focusNode,y.focusOffset=g.focusOffset)}return y}function H3(u){if(!(!u||!u.activeElt||u.activeElt==oe(Ee(u.activeElt)))&&(u.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(u.activeElt.nodeName)&&u.anchorNode&&ne(document.body,u.anchorNode)&&ne(document.body,u.focusNode))){var d=u.activeElt.ownerDocument,y=d.defaultView.getSelection(),g=d.createRange();g.setEnd(u.anchorNode,u.anchorOffset),g.collapse(!1),y.removeAllRanges(),y.addRange(g),y.extend(u.focusNode,u.focusOffset)}}function Vm(u,d){var y=u.display,g=u.doc;if(d.editorIsHidden)return ds(u),!1;if(!d.force&&d.visible.from>=y.viewFrom&&d.visible.to<=y.viewTo&&(y.updateLineNumbers==null||y.updateLineNumbers>=y.viewTo)&&y.renderedView==y.view&&Ku(u)==0)return!1;nl(u)&&(ds(u),d.dims=Ah(u));var T=g.first+g.size,D=Math.max(d.visible.from-u.options.viewportMargin,g.first),I=Math.min(T,d.visible.to+u.options.viewportMargin);y.viewFrom<D&&D-y.viewFrom<20&&(D=Math.max(g.first,y.viewFrom)),y.viewTo>I&&y.viewTo-I<20&&(I=Math.min(T,y.viewTo)),go&&(D=Em(u.doc,D),I=My(u.doc,I));var V=D!=y.viewFrom||I!=y.viewTo||y.lastWrapHeight!=d.wrapperHeight||y.lastWrapWidth!=d.wrapperWidth;Im(u,D,I),y.viewOffset=xa(ot(u.doc,y.viewFrom)),u.display.mover.style.top=y.viewOffset+"px";var U=Ku(u);if(!V&&U==0&&!d.force&&y.renderedView==y.view&&(y.updateLineNumbers==null||y.updateLineNumbers>=y.viewTo))return!1;var z=Zy(u);return U>4&&(y.lineDiv.style.display="none"),Bm(u,y.updateLineNumbers,d.dims),U>4&&(y.lineDiv.style.display=""),y.renderedView=y.view,H3(z),X(y.cursorDiv),X(y.selectionDiv),y.gutters.style.height=y.sizer.style.minHeight=0,V&&(y.lastWrapHeight=d.wrapperHeight,y.lastWrapWidth=d.wrapperWidth,mu(u,400)),y.updateLineNumbers=null,!0}function Jy(u,d){for(var y=d.viewport,g=!0;;g=!1){if(!g||!u.options.lineWrapping||d.oldDisplayWidth==au(u)){if(y&&y.top!=null&&(y={top:Math.min(u.doc.height+Am(u.display)-$f(u),y.top)}),d.visible=Ta(u.display,u.doc,y),d.visible.from>=u.display.viewFrom&&d.visible.to<=u.display.viewTo)break}else g&&(d.visible=Ta(u.display,u.doc,y));if(!Vm(u,d))break;Zl(u);var T=Gn(u);Kl(u),ro(u,T),tl(u,T),d.force=!1}d.signal(u,"update",u),(u.display.viewFrom!=u.display.reportedViewFrom||u.display.viewTo!=u.display.reportedViewTo)&&(d.signal(u,"viewportChange",u,u.display.viewFrom,u.display.viewTo),u.display.reportedViewFrom=u.display.viewFrom,u.display.reportedViewTo=u.display.viewTo)}function Or(u,d){var y=new ei(u,d);if(Vm(u,y)){Zl(u),Jy(u,y);var g=Gn(u);Kl(u),ro(u,g),tl(u,g),y.finish()}}function Bm(u,d,y){var g=u.display,T=u.options.lineNumbers,D=g.lineDiv,I=D.firstChild;function V(Re){var $e=Re.nextSibling;return p&&L&&u.display.currentWheelTarget==Re?Re.style.display="none":Re.parentNode.removeChild(Re),$e}for(var U=g.view,z=g.viewFrom,ie=0;ie<U.length;ie++){var ce=U[ie];if(!ce.hidden)if(!ce.node||ce.node.parentNode!=D){var Se=$3(u,ce,z,y);D.insertBefore(Se,I)}else{for(;I!=ce.node;)I=V(I);var me=T&&d!=null&&d<=z&&ce.lineNumber;ce.changes&&(et(ce.changes,"gutter")>-1&&(me=!1),$l(u,ce,z,y)),me&&(X(ce.lineNumber),ce.lineNumber.appendChild(document.createTextNode(Ye(u.options,z)))),I=ce.node.nextSibling}z+=ce.size}for(;I;)I=V(I)}function el(u){var d=u.gutters.offsetWidth;u.sizer.style.marginLeft=d+"px",Jr(u,"gutterChanged",u)}function tl(u,d){u.display.sizer.style.minHeight=d.docHeight+"px",u.display.heightForcer.style.top=d.docHeight+"px",u.display.gutters.style.height=d.docHeight+u.display.barHeight+fs(u)+"px"}function Ph(u){var d=u.display,y=d.view;if(!(!d.alignWidgets&&(!d.gutters.firstChild||!u.options.fixedGutter))){for(var g=zf(d)-d.scroller.scrollLeft+u.doc.scrollLeft,T=d.gutters.offsetWidth,D=g+"px",I=0;I<y.length;I++)if(!y[I].hidden){u.options.fixedGutter&&(y[I].gutter&&(y[I].gutter.style.left=D),y[I].gutterBackground&&(y[I].gutterBackground.style.left=D));var V=y[I].alignable;if(V)for(var U=0;U<V.length;U++)V[U].style.left=D}u.options.fixedGutter&&(d.gutters.style.left=g+T+"px")}}function nl(u){if(!u.options.lineNumbers)return!1;var d=u.doc,y=Ye(u.options,d.first+d.size-1),g=u.display;if(y.length!=g.lineNumChars){var T=g.measure.appendChild(H("div",[H("div",y)],"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?y.length:-1,g.lineGutter.style.width=g.lineNumWidth+"px",el(u.display),!0}return!1}function gu(u,d){for(var y=[],g=!1,T=0;T<u.length;T++){var D=u[T],I=null;if(typeof D!="string"&&(I=D.style,D=D.className),D=="CodeMirror-linenumbers")if(d)g=!0;else continue;y.push({className:D,style:I})}return d&&!g&&y.push({className:"CodeMirror-linenumbers",style:null}),y}function eb(u){var d=u.gutters,y=u.gutterSpecs;X(d),u.lineGutter=null;for(var g=0;g<y.length;++g){var T=y[g],D=T.className,I=T.style,V=d.appendChild(H("div",null,"CodeMirror-gutter "+D));I&&(V.style.cssText=I),D=="CodeMirror-linenumbers"&&(u.lineGutter=V,V.style.width=(u.lineNumWidth||1)+"px")}d.style.display=y.length?"":"none",el(u)}function ec(u){eb(u.display),Ur(u),Ph(u)}function z3(u,d,y,g){var T=this;this.input=y,T.scrollbarFiller=H("div",null,"CodeMirror-scrollbar-filler"),T.scrollbarFiller.setAttribute("cm-not-content","true"),T.gutterFiller=H("div",null,"CodeMirror-gutter-filler"),T.gutterFiller.setAttribute("cm-not-content","true"),T.lineDiv=J("div",null,"CodeMirror-code"),T.selectionDiv=H("div",null,null,"position: relative; z-index: 1"),T.cursorDiv=H("div",null,"CodeMirror-cursors"),T.measure=H("div",null,"CodeMirror-measure"),T.lineMeasure=H("div",null,"CodeMirror-measure"),T.lineSpace=J("div",[T.measure,T.lineMeasure,T.selectionDiv,T.cursorDiv,T.lineDiv],null,"position: relative; outline: none");var D=J("div",[T.lineSpace],"CodeMirror-lines");T.mover=H("div",[D],null,"position: relative"),T.sizer=H("div",[T.mover],"CodeMirror-sizer"),T.sizerWidth=null,T.heightForcer=H("div",null,null,"position: absolute; height: "+dt+"px; width: 1px;"),T.gutters=H("div",null,"CodeMirror-gutters"),T.lineGutter=null,T.scroller=H("div",[T.sizer,T.heightForcer,T.gutters],"CodeMirror-scroll"),T.scroller.setAttribute("tabIndex","-1"),T.wrapper=H("div",[T.scrollbarFiller,T.gutterFiller,T.scroller],"CodeMirror"),v&&x>=105&&(T.wrapper.style.clipPath="inset(0px)"),T.wrapper.setAttribute("translate","no"),f&&h<8&&(T.gutters.style.zIndex=-1,T.scroller.style.paddingRight=0),!p&&!(i&&A)&&(T.scroller.draggable=!0),u&&(u.appendChild?u.appendChild(T.wrapper):u(T.wrapper)),T.viewFrom=T.viewTo=d.first,T.reportedViewFrom=T.reportedViewTo=d.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=gu(g.gutters,g.lineNumbers),eb(T),y.init(T)}var Yf=0,io=null;f?io=-.53:i?io=15:v?io=-.7:w&&(io=-1/3);function jh(u){var d=u.wheelDeltaX,y=u.wheelDeltaY;return d==null&&u.detail&&u.axis==u.HORIZONTAL_AXIS&&(d=u.detail),y==null&&u.detail&&u.axis==u.VERTICAL_AXIS?y=u.detail:y==null&&(y=u.wheelDelta),{x:d,y}}function Vh(u){var d=jh(u);return d.x*=io,d.y*=io,d}function $m(u,d){v&&x==102&&(u.display.chromeScrollHack==null?u.display.sizer.style.pointerEvents="none":clearTimeout(u.display.chromeScrollHack),u.display.chromeScrollHack=setTimeout(function(){u.display.chromeScrollHack=null,u.display.sizer.style.pointerEvents=""},100));var y=jh(d),g=y.x,T=y.y,D=io;d.deltaMode===0&&(g=d.deltaX,T=d.deltaY,D=1);var I=u.display,V=I.scroller,U=V.scrollWidth>V.clientWidth,z=V.scrollHeight>V.clientHeight;if(g&&U||T&&z){if(T&&L&&p){e:for(var ie=d.target,ce=I.view;ie!=V;ie=ie.parentNode)for(var Se=0;Se<ce.length;Se++)if(ce[Se].node==ie){u.display.currentWheelTarget=ie;break e}}if(g&&!i&&!S&&D!=null){T&&z&&Xu(u,Math.max(0,V.scrollTop+T*D)),Dr(u,Math.max(0,V.scrollLeft+g*D)),(!T||T&&z)&&Lt(d),I.wheelStartX=null;return}if(T&&D!=null){var me=T*D,Re=u.doc.scrollTop,$e=Re+I.wrapper.clientHeight;me<0?Re=Math.max(0,Re+me-50):$e=Math.min(u.doc.height,$e+me+50),Or(u,{top:Re,bottom:$e})}Yf<20&&d.deltaMode!==0&&(I.wheelStartX==null?(I.wheelStartX=V.scrollLeft,I.wheelStartY=V.scrollTop,I.wheelDX=g,I.wheelDY=T,setTimeout(function(){if(I.wheelStartX!=null){var Ke=V.scrollLeft-I.wheelStartX,Ze=V.scrollTop-I.wheelStartY,nt=Ze&&I.wheelDY&&Ze/I.wheelDY||Ke&&I.wheelDX&&Ke/I.wheelDX;I.wheelStartX=I.wheelStartY=null,nt&&(io=(io*Yf+nt)/(Yf+1),++Yf)}},200)):(I.wheelDX+=g,I.wheelDY+=T))}}var Ni=function(u,d){this.ranges=u,this.primIndex=d};Ni.prototype.primary=function(){return this.ranges[this.primIndex]},Ni.prototype.equals=function(u){if(u==this)return!0;if(u.primIndex!=this.primIndex||u.ranges.length!=this.ranges.length)return!1;for(var d=0;d<this.ranges.length;d++){var y=this.ranges[d],g=u.ranges[d];if(!tn(y.anchor,g.anchor)||!tn(y.head,g.head))return!1}return!0},Ni.prototype.deepCopy=function(){for(var u=[],d=0;d<this.ranges.length;d++)u[d]=new wn(qn(this.ranges[d].anchor),qn(this.ranges[d].head));return new Ni(u,this.primIndex)},Ni.prototype.somethingSelected=function(){for(var u=0;u<this.ranges.length;u++)if(!this.ranges[u].empty())return!0;return!1},Ni.prototype.contains=function(u,d){d||(d=u);for(var y=0;y<this.ranges.length;y++){var g=this.ranges[y];if(tt(d,g.from())>=0&&tt(u,g.to())<=0)return y}return-1};var wn=function(u,d){this.anchor=u,this.head=d};wn.prototype.from=function(){return $i(this.anchor,this.head)},wn.prototype.to=function(){return Ar(this.anchor,this.head)},wn.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function bo(u,d,y){var g=u&&u.options.selectionsMayTouch,T=d[y];d.sort(function(Se,me){return tt(Se.from(),me.from())}),y=et(d,T);for(var D=1;D<d.length;D++){var I=d[D],V=d[D-1],U=tt(V.to(),I.from());if(g&&!I.empty()?U>0:U>=0){var z=$i(V.from(),I.from()),ie=Ar(V.to(),I.to()),ce=V.empty()?I.from()==I.head:V.from()==V.head;D<=y&&--y,d.splice(--D,2,new wn(ce?ie:z,ce?z:ie))}}return new Ni(d,y)}function Ys(u,d){return new Ni([new wn(u,d||u)],0)}function Ca(u){return u.text?Ae(u.from.line+u.text.length-1,Le(u.text).length+(u.text.length==1?u.from.ch:0)):u.to}function Qf(u,d){if(tt(u,d.from)<0)return u;if(tt(u,d.to)<=0)return Ca(d);var y=u.line+d.text.length-(d.to.line-d.from.line)-1,g=u.ch;return u.line==d.to.line&&(g+=Ca(d).ch-d.to.ch),Ae(y,g)}function Bh(u,d){for(var y=[],g=0;g<u.sel.ranges.length;g++){var T=u.sel.ranges[g];y.push(new wn(Qf(T.anchor,d),Qf(T.head,d)))}return bo(u.cm,y,u.sel.primIndex)}function tc(u,d,y){return u.line==d.line?Ae(y.line,u.ch-d.ch+y.ch):Ae(y.line+(u.line-d.line),u.ch)}function tb(u,d,y){for(var g=[],T=Ae(u.first,0),D=T,I=0;I<d.length;I++){var V=d[I],U=tc(V.from,T,D),z=tc(Ca(V),T,D);if(T=V.to,D=z,y=="around"){var ie=u.sel.ranges[I],ce=tt(ie.head,ie.anchor)<0;g[I]=new wn(ce?z:U,ce?U:z)}else g[I]=new wn(U,U)}return new Ni(g,u.sel.primIndex)}function $h(u){u.doc.mode=eo(u.options,u.doc.modeOption),Xo(u)}function Xo(u){u.doc.iter(function(d){d.stateAfter&&(d.stateAfter=null),d.styles&&(d.styles=null)}),u.doc.modeFrontier=u.doc.highlightFrontier=u.doc.first,mu(u,100),u.state.modeGen++,u.curOp&&Ur(u)}function Uh(u,d){return d.from.ch==0&&d.to.ch==0&&Le(d.text)==""&&(!u.cm||u.cm.options.wholeLineUpdateBefore)}function Kf(u,d,y,g){function T(nt){return y?y[nt]:null}function D(nt,rt,st){k3(nt,rt,st,g),Jr(nt,"change",nt,d)}function I(nt,rt){for(var st=[],Tt=nt;Tt<rt;++Tt)st.push(new Vl(z[Tt],T(Tt),g));return st}var V=d.from,U=d.to,z=d.text,ie=ot(u,V.line),ce=ot(u,U.line),Se=Le(z),me=T(z.length-1),Re=U.line-V.line;if(d.full)u.insert(0,I(0,z.length)),u.remove(z.length,u.size-z.length);else if(Uh(u,d)){var $e=I(0,z.length-1);D(ce,ce.text,me),Re&&u.remove(V.line,Re),$e.length&&u.insert(V.line,$e)}else if(ie==ce)if(z.length==1)D(ie,ie.text.slice(0,V.ch)+Se+ie.text.slice(U.ch),me);else{var Ke=I(1,z.length-1);Ke.push(new Vl(Se+ie.text.slice(U.ch),me,g)),D(ie,ie.text.slice(0,V.ch)+z[0],T(0)),u.insert(V.line+1,Ke)}else if(z.length==1)D(ie,ie.text.slice(0,V.ch)+z[0]+ce.text.slice(U.ch),T(0)),u.remove(V.line+1,Re);else{D(ie,ie.text.slice(0,V.ch)+z[0],T(0)),D(ce,Se+ce.text.slice(U.ch),me);var Ze=I(1,z.length-1);Re>1&&u.remove(V.line+1,Re-1),u.insert(V.line+1,Ze)}Jr(u,"change",u,d)}function oo(u,d,y){function g(T,D,I){if(T.linked)for(var V=0;V<T.linked.length;++V){var U=T.linked[V];if(U.doc!=D){var z=I&&U.sharedHist;y&&!z||(d(U.doc,z),g(U.doc,T,z))}}}g(u,null,!0)}function _a(u,d){if(d.cm)throw new Error("This document is already in use.");u.doc=d,d.cm=u,Dh(u),$h(u),nc(u),u.options.direction=d.direction,u.options.lineWrapping||xm(u),u.options.mode=d.modeOption,Ur(u)}function nc(u){(u.doc.direction=="rtl"?K:Z)(u.display.lineDiv,"CodeMirror-rtl")}function Um(u){xr(u,function(){nc(u),Ur(u)})}function rc(u){this.done=[],this.undone=[],this.undoDepth=u?u.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=u?u.maxGeneration:1}function rl(u,d){var y={from:qn(d.from),to:Ca(d),text:li(u,d.from,d.to)};return zh(u,y,d.from.line,d.to.line+1),oo(u,function(g){return zh(g,y,d.from.line,d.to.line+1)},!0),y}function ic(u){for(;u.length;){var d=Le(u);if(d.ranges)u.pop();else break}}function nb(u,d){if(d)return ic(u.done),Le(u.done);if(u.done.length&&!Le(u.done).ranges)return Le(u.done);if(u.done.length>1&&!u.done[u.done.length-2].ranges)return u.done.pop(),Le(u.done)}function Hm(u,d,y,g){var T=u.history;T.undone.length=0;var D=+new Date,I,V;if((T.lastOp==g||T.lastOrigin==d.origin&&d.origin&&(d.origin.charAt(0)=="+"&&T.lastModTime>D-(u.cm?u.cm.options.historyEventDelay:500)||d.origin.charAt(0)=="*"))&&(I=nb(T,T.lastOp==g)))V=Le(I.changes),tt(d.from,d.to)==0&&tt(d.from,V.to)==0?V.to=Ca(d):I.changes.push(rl(u,d));else{var U=Le(T.done);for((!U||!U.ranges)&&Xf(u.sel,T.done),I={changes:[rl(u,d)],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(y),T.generation=++T.maxGeneration,T.lastModTime=T.lastSelTime=D,T.lastOp=T.lastSelOp=g,T.lastOrigin=T.lastSelOrigin=d.origin,V||Yt(u,"historyAdded")}function oc(u,d,y,g){var T=d.charAt(0);return T=="*"||T=="+"&&y.ranges.length==g.ranges.length&&y.somethingSelected()==g.somethingSelected()&&new Date-u.history.lastSelTime<=(u.cm?u.cm.options.historyEventDelay:500)}function Hh(u,d,y,g){var T=u.history,D=g&&g.origin;y==T.lastSelOp||D&&T.lastSelOrigin==D&&(T.lastModTime==T.lastSelTime&&T.lastOrigin==D||oc(u,D,Le(T.done),d))?T.done[T.done.length-1]=d:Xf(d,T.done),T.lastSelTime=+new Date,T.lastSelOrigin=D,T.lastSelOp=y,g&&g.clearRedo!==!1&&ic(T.undone)}function Xf(u,d){var y=Le(d);y&&y.ranges&&y.equals(u)||d.push(u)}function zh(u,d,y,g){var T=d["spans_"+u.id],D=0;u.iter(Math.max(u.first,y),Math.min(u.first+u.size,g),function(I){I.markedSpans&&((T||(T=d["spans_"+u.id]={}))[D]=I.markedSpans),++D})}function zm(u){if(!u)return null;for(var d,y=0;y<u.length;++y)u[y].marker.explicitlyCleared?d||(d=u.slice(0,y)):d&&d.push(u[y]);return d?d.length?d:null:u}function vu(u,d){var y=d["spans_"+u.id];if(!y)return null;for(var g=[],T=0;T<d.text.length;++T)g.push(zm(y[T]));return g}function Xt(u,d){var y=vu(u,d),g=kf(u,d);if(!y)return g;if(!g)return y;for(var T=0;T<y.length;++T){var D=y[T],I=g[T];if(D&&I)e:for(var V=0;V<I.length;++V){for(var U=I[V],z=0;z<D.length;++z)if(D[z].marker==U.marker)continue e;D.push(U)}else I&&(y[T]=I)}return y}function Cn(u,d,y){for(var g=[],T=0;T<u.length;++T){var D=u[T];if(D.ranges){g.push(y?Ni.prototype.deepCopy.call(D):D);continue}var I=D.changes,V=[];g.push({changes:V});for(var U=0;U<I.length;++U){var z=I[U],ie=void 0;if(V.push({from:z.from,to:z.to,text:z.text}),d)for(var ce in z)(ie=ce.match(/^spans_(\d+)$/))&&et(d,Number(ie[1]))>-1&&(Le(V)[ce]=z[ce],delete z[ce])}}return g}function Tr(u,d,y,g){if(g){var T=u.anchor;if(y){var D=tt(d,T)<0;D!=tt(y,T)<0?(T=d,d=y):D!=tt(d,y)<0&&(d=y)}return new wn(T,d)}else return new wn(y||d,d)}function il(u,d,y,g,T){T==null&&(T=u.cm&&(u.cm.display.shift||u.extend)),Oi(u,new Ni([Tr(u.sel.primary(),d,y,T)],0),g)}function ol(u,d,y){for(var g=[],T=u.cm&&(u.cm.display.shift||u.extend),D=0;D<u.sel.ranges.length;D++)g[D]=Tr(u.sel.ranges[D],d[D],null,T);var I=bo(u.cm,g,u.sel.primIndex);Oi(u,I,y)}function Aa(u,d,y,g){var T=u.sel.ranges.slice(0);T[d]=y,Oi(u,bo(u.cm,T,u.sel.primIndex),g)}function Zf(u,d,y,g){Oi(u,Ys(d,y),g)}function Jf(u,d,y){var g={ranges:d.ranges,update:function(T){this.ranges=[];for(var D=0;D<T.length;D++)this.ranges[D]=new wn(gt(u,T[D].anchor),gt(u,T[D].head))},origin:y&&y.origin};return Yt(u,"beforeSelectionChange",u,g),u.cm&&Yt(u.cm,"beforeSelectionChange",u.cm,g),g.ranges!=d.ranges?bo(u.cm,g.ranges,g.ranges.length-1):d}function sl(u,d,y){var g=u.history.done,T=Le(g);T&&T.ranges?(g[g.length-1]=d,sr(u,d,y)):Oi(u,d,y)}function Oi(u,d,y){sr(u,d,y),Hh(u,u.sel,u.cm?u.cm.curOp.id:NaN,y)}function sr(u,d,y){(St(u,"beforeSelectionChange")||u.cm&&St(u.cm,"beforeSelectionChange"))&&(d=Jf(u,d,y));var g=y&&y.bias||(tt(d.primary().head,u.sel.primary().head)<0?-1:1);qh(u,qm(u,d,g,!0)),!(y&&y.scroll===!1)&&u.cm&&u.cm.getOption("readOnly")!="nocursor"&&Ko(u.cm)}function qh(u,d){d.equals(u.sel)||(u.sel=d,u.cm&&(u.cm.curOp.updateInput=1,u.cm.curOp.selectionChanged=!0,xt(u.cm)),Jr(u,"cursorActivity",u))}function Gh(u){qh(u,qm(u,u.sel,null,!1))}function qm(u,d,y,g){for(var T,D=0;D<d.ranges.length;D++){var I=d.ranges[D],V=d.ranges.length==u.sel.ranges.length&&u.sel.ranges[D],U=Wh(u,I.anchor,V&&V.anchor,y,g),z=I.head==I.anchor?U:Wh(u,I.head,V&&V.head,y,g);(T||U!=I.anchor||z!=I.head)&&(T||(T=d.ranges.slice(0,D)),T[D]=new wn(U,z))}return T?bo(u.cm,T,d.primIndex):d}function al(u,d,y,g,T){var D=ot(u,d.line);if(D.markedSpans)for(var I=0;I<D.markedSpans.length;++I){var V=D.markedSpans[I],U=V.marker,z="selectLeft"in U?!U.selectLeft:U.inclusiveLeft,ie="selectRight"in U?!U.selectRight:U.inclusiveRight;if((V.from==null||(z?V.from<=d.ch:V.from<d.ch))&&(V.to==null||(ie?V.to>=d.ch:V.to>d.ch))){if(T&&(Yt(U,"beforeCursorEnter"),U.explicitlyCleared))if(D.markedSpans){--I;continue}else break;if(!U.atomic)continue;if(y){var ce=U.find(g<0?1:-1),Se=void 0;if((g<0?ie:z)&&(ce=Yh(u,ce,-g,ce&&ce.line==d.line?D:null)),ce&&ce.line==d.line&&(Se=tt(ce,y))&&(g<0?Se<0:Se>0))return al(u,ce,d,g,T)}var me=U.find(g<0?-1:1);return(g<0?z:ie)&&(me=Yh(u,me,g,me.line==d.line?D:null)),me?al(u,me,d,g,T):null}}return d}function Wh(u,d,y,g,T){var D=g||1,I=al(u,d,y,D,T)||!T&&al(u,d,y,D,!0)||al(u,d,y,-D,T)||!T&&al(u,d,y,-D,!0);return I||(u.cantEdit=!0,Ae(u.first,0))}function Yh(u,d,y,g){return y<0&&d.ch==0?d.line>u.first?gt(u,Ae(d.line-1)):null:y>0&&d.ch==(g||ot(u,d.line)).text.length?d.line<u.first+u.size-1?Ae(d.line+1,0):null:new Ae(d.line,d.ch+y)}function Qh(u){u.setSelection(Ae(u.firstLine(),0),Ae(u.lastLine()),pe)}function Kh(u,d,y){var g={canceled:!1,from:d.from,to:d.to,text:d.text,origin:d.origin,cancel:function(){return g.canceled=!0}};return y&&(g.update=function(T,D,I,V){T&&(g.from=gt(u,T)),D&&(g.to=gt(u,D)),I&&(g.text=I),V!==void 0&&(g.origin=V)}),Yt(u,"beforeChange",u,g),u.cm&&Yt(u.cm,"beforeChange",u.cm,g),g.canceled?(u.cm&&(u.cm.curOp.updateInput=2),null):{from:g.from,to:g.to,text:g.text,origin:g.origin}}function ti(u,d,y){if(u.cm){if(!u.cm.curOp)return Nr(u.cm,ti)(u,d,y);if(u.cm.state.suppressEdits)return}if(!((St(u,"beforeChange")||u.cm&&St(u.cm,"beforeChange"))&&(d=Kh(u,d,!0),!d))){var g=Gu&&!y&&ky(u,d.from,d.to);if(g)for(var T=g.length-1;T>=0;--T)kr(u,{from:g[T].from,to:g[T].to,text:T?[""]:d.text,origin:d.origin});else kr(u,d)}}function kr(u,d){if(!(d.text.length==1&&d.text[0]==""&&tt(d.from,d.to)==0)){var y=Bh(u,d);Hm(u,d,y,u.cm?u.cm.curOp.id:NaN),yu(u,d,y,kf(u,d));var g=[];oo(u,function(T,D){!D&&et(g,T.history)==-1&&(Zh(T.history,d),g.push(T.history)),yu(T,d,null,kf(T,d))})}}function sc(u,d,y){var g=u.cm&&u.cm.state.suppressEdits;if(!(g&&!y)){for(var T=u.history,D,I=u.sel,V=d=="undo"?T.done:T.undone,U=d=="undo"?T.undone:T.done,z=0;z<V.length&&(D=V[z],!(y?D.ranges&&!D.equals(u.sel):!D.ranges));z++);if(z!=V.length){for(T.lastOrigin=T.lastSelOrigin=null;;)if(D=V.pop(),D.ranges){if(Xf(D,U),y&&!D.equals(u.sel)){Oi(u,D,{clearRedo:!1});return}I=D}else if(g){V.push(D);return}else break;var ie=[];Xf(I,U),U.push({changes:ie,generation:T.generation}),T.generation=D.generation||++T.maxGeneration;for(var ce=St(u,"beforeChange")||u.cm&&St(u.cm,"beforeChange"),Se=function($e){var Ke=D.changes[$e];if(Ke.origin=d,ce&&!Kh(u,Ke,!1))return V.length=0,{};ie.push(rl(u,Ke));var Ze=$e?Bh(u,Ke):Le(V);yu(u,Ke,Ze,Xt(u,Ke)),!$e&&u.cm&&u.cm.scrollIntoView({from:Ke.from,to:Ca(Ke)});var nt=[];oo(u,function(rt,st){!st&&et(nt,rt.history)==-1&&(Zh(rt.history,Ke),nt.push(rt.history)),yu(rt,Ke,null,Xt(rt,Ke))})},me=D.changes.length-1;me>=0;--me){var Re=Se(me);if(Re)return Re.v}}}}function ac(u,d){if(d!=0&&(u.first+=d,u.sel=new Ni(Pe(u.sel.ranges,function(T){return new wn(Ae(T.anchor.line+d,T.anchor.ch),Ae(T.head.line+d,T.head.ch))}),u.sel.primIndex),u.cm)){Ur(u.cm,u.first,u.first-d,d);for(var y=u.cm.display,g=y.viewFrom;g<y.viewTo;g++)qs(u.cm,g,"gutter")}}function yu(u,d,y,g){if(u.cm&&!u.cm.curOp)return Nr(u.cm,yu)(u,d,y,g);if(d.to.line<u.first){ac(u,d.text.length-1-(d.to.line-d.from.line));return}if(!(d.from.line>u.lastLine())){if(d.from.line<u.first){var T=d.text.length-1-(u.first-d.from.line);ac(u,T),d={from:Ae(u.first,0),to:Ae(d.to.line+T,d.to.ch),text:[Le(d.text)],origin:d.origin}}var D=u.lastLine();d.to.line>D&&(d={from:d.from,to:Ae(D,ot(u,D).text.length),text:[d.text[0]],origin:d.origin}),d.removed=li(u,d.from,d.to),y||(y=Bh(u,d)),u.cm?Gm(u.cm,d,g):Kf(u,d,g),sr(u,y,pe),u.cantEdit&&Wh(u,Ae(u.firstLine(),0))&&(u.cantEdit=!1)}}function Gm(u,d,y){var g=u.doc,T=u.display,D=d.from,I=d.to,V=!1,U=D.line;u.options.lineWrapping||(U=Y(no(ot(g,D.line))),g.iter(U,I.line+1,function(me){if(me==T.maxLine)return V=!0,!0})),g.sel.contains(d.from,d.to)>-1&&xt(u),Kf(g,d,y,Yo(u)),u.options.lineWrapping||(g.iter(U,D.line+d.text.length,function(me){var Re=Th(me);Re>T.maxLineLength&&(T.maxLine=me,T.maxLineLength=Re,T.maxLineChanged=!0,V=!1)}),V&&(u.curOp.updateMaxLine=!0)),Df(g,D.line),mu(u,400);var z=d.text.length-(I.line-D.line)-1;d.full?Ur(u):D.line==I.line&&d.text.length==1&&!Uh(u.doc,d)?qs(u,D.line,"text"):Ur(u,D.line,I.line+1,z);var ie=St(u,"changes"),ce=St(u,"change");if(ce||ie){var Se={from:D,to:I,text:d.text,removed:d.removed,origin:d.origin};ce&&Jr(u,"change",u,Se),ie&&(u.curOp.changeObjs||(u.curOp.changeObjs=[])).push(Se)}u.display.selForContextMenu=null}function Eo(u,d,y,g,T){var D;g||(g=y),tt(g,y)<0&&(D=[g,y],y=D[0],g=D[1]),typeof d=="string"&&(d=u.splitLines(d)),ti(u,{from:y,to:g,text:d,origin:T})}function ed(u,d,y,g){y<u.line?u.line+=g:d<u.line&&(u.line=d,u.ch=0)}function Xh(u,d,y,g){for(var T=0;T<u.length;++T){var D=u[T],I=!0;if(D.ranges){D.copied||(D=u[T]=D.deepCopy(),D.copied=!0);for(var V=0;V<D.ranges.length;V++)ed(D.ranges[V].anchor,d,y,g),ed(D.ranges[V].head,d,y,g);continue}for(var U=0;U<D.changes.length;++U){var z=D.changes[U];if(y<z.from.line)z.from=Ae(z.from.line+g,z.from.ch),z.to=Ae(z.to.line+g,z.to.ch);else if(d<=z.to.line){I=!1;break}}I||(u.splice(0,T+1),T=0)}}function Zh(u,d){var y=d.from.line,g=d.to.line,T=d.text.length-(g-y)-1;Xh(u.done,y,g,T),Xh(u.undone,y,g,T)}function uc(u,d,y,g){var T=d,D=d;return typeof d=="number"?D=ot(u,ga(u,d)):T=Y(d),T==null?null:(g(D,T)&&u.cm&&qs(u.cm,T,y),D)}function lc(u){this.lines=u,this.parent=null;for(var d=0,y=0;y<u.length;++y)u[y].parent=this,d+=u[y].height;this.height=d}lc.prototype={chunkSize:function(){return this.lines.length},removeInner:function(u,d){for(var y=u,g=u+d;y<g;++y){var T=this.lines[y];this.height-=T.height,Ly(T),Jr(T,"delete")}this.lines.splice(u,d)},collapse:function(u){u.push.apply(u,this.lines)},insertInner:function(u,d,y){this.height+=y,this.lines=this.lines.slice(0,u).concat(d).concat(this.lines.slice(u));for(var g=0;g<d.length;++g)d[g].parent=this},iterN:function(u,d,y){for(var g=u+d;u<g;++u)if(y(this.lines[u]))return!0}};function cc(u){this.children=u;for(var d=0,y=0,g=0;g<u.length;++g){var T=u[g];d+=T.chunkSize(),y+=T.height,T.parent=this}this.size=d,this.height=y,this.parent=null}cc.prototype={chunkSize:function(){return this.size},removeInner:function(u,d){this.size-=d;for(var y=0;y<this.children.length;++y){var g=this.children[y],T=g.chunkSize();if(u<T){var D=Math.min(d,T-u),I=g.height;if(g.removeInner(u,D),this.height-=I-g.height,T==D&&(this.children.splice(y--,1),g.parent=null),(d-=D)==0)break;u=0}else u-=T}if(this.size-d<25&&(this.children.length>1||!(this.children[0]instanceof lc))){var V=[];this.collapse(V),this.children=[new lc(V)],this.children[0].parent=this}},collapse:function(u){for(var d=0;d<this.children.length;++d)this.children[d].collapse(u)},insertInner:function(u,d,y){this.size+=d.length,this.height+=y;for(var g=0;g<this.children.length;++g){var T=this.children[g],D=T.chunkSize();if(u<=D){if(T.insertInner(u,d,y),T.lines&&T.lines.length>50){for(var I=T.lines.length%25+25,V=I;V<T.lines.length;){var U=new lc(T.lines.slice(V,V+=25));T.height-=U.height,this.children.splice(++g,0,U),U.parent=this}T.lines=T.lines.slice(0,I),this.maybeSpill()}break}u-=D}},maybeSpill:function(){if(!(this.children.length<=10)){var u=this;do{var d=u.children.splice(u.children.length-5,5),y=new cc(d);if(u.parent){u.size-=y.size,u.height-=y.height;var T=et(u.parent.children,u);u.parent.children.splice(T+1,0,y)}else{var g=new cc(u.children);g.parent=u,u.children=[g,y],u=g}y.parent=u.parent}while(u.children.length>10);u.parent.maybeSpill()}},iterN:function(u,d,y){for(var g=0;g<this.children.length;++g){var T=this.children[g],D=T.chunkSize();if(u<D){var I=Math.min(d,D-u);if(T.iterN(u,I,y))return!0;if((d-=I)==0)break;u=0}else u-=D}}};var fc=function(u,d,y){if(y)for(var g in y)y.hasOwnProperty(g)&&(this[g]=y[g]);this.doc=u,this.node=d};fc.prototype.clear=function(){var u=this.doc.cm,d=this.line.widgets,y=this.line,g=Y(y);if(!(g==null||!d)){for(var T=0;T<d.length;++T)d[T]==this&&d.splice(T--,1);d.length||(y.widgets=null);var D=Hl(this);Jn(y,Math.max(0,y.height-D)),u&&(xr(u,function(){Wm(u,y,-D),qs(u,g,"widget")}),Jr(u,"lineWidgetCleared",u,this,g))}},fc.prototype.changed=function(){var u=this,d=this.height,y=this.doc.cm,g=this.line;this.height=null;var T=Hl(this)-d;T&&(ou(this.doc,g)||Jn(g,g.height+T),y&&xr(y,function(){y.curOp.forceUpdate=!0,Wm(y,g,T),Jr(y,"lineWidgetChanged",y,u,Y(g))}))},Qt(fc);function Wm(u,d,y){xa(d)<(u.curOp&&u.curOp.scrollTop||u.doc.scrollTop)&&yo(u,y)}function rb(u,d,y,g){var T=new fc(u,y,g),D=u.cm;return D&&T.noHScroll&&(D.display.alignWidgets=!0),uc(u,d,"widget",function(I){var V=I.widgets||(I.widgets=[]);if(T.insertAt==null?V.push(T):V.splice(Math.min(V.length,Math.max(0,T.insertAt)),0,T),T.line=I,D&&!ou(u,I)){var U=xa(I)<u.scrollTop;Jn(I,I.height+Hl(T)),U&&yo(D,T.height),D.curOp.forceUpdate=!0}return!0}),D&&Jr(D,"lineWidgetAdded",D,T,typeof d=="number"?d:Y(d)),T}var Jh=0,Da=function(u,d){this.lines=[],this.type=d,this.doc=u,this.id=++Jh};Da.prototype.clear=function(){if(!this.explicitlyCleared){var u=this.doc.cm,d=u&&!u.curOp;if(d&&ps(u),St(this,"clear")){var y=this.find();y&&Jr(this,"clear",y.from,y.to)}for(var g=null,T=null,D=0;D<this.lines.length;++D){var I=this.lines[D],V=ya(I.markedSpans,this);u&&!this.collapsed?qs(u,Y(I),"text"):u&&(V.to!=null&&(T=Y(I)),V.from!=null&&(g=Y(I))),I.markedSpans=ba(I.markedSpans,V),V.from==null&&this.collapsed&&!ou(this.doc,I)&&u&&Jn(I,Ql(u.display))}if(u&&this.collapsed&&!u.options.lineWrapping)for(var U=0;U<this.lines.length;++U){var z=no(this.lines[U]),ie=Th(z);ie>u.display.maxLineLength&&(u.display.maxLine=z,u.display.maxLineLength=ie,u.display.maxLineChanged=!0)}g!=null&&u&&this.collapsed&&Ur(u,g,T+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,u&&Gh(u.doc)),u&&Jr(u,"markerCleared",u,this,g,T),d&&ms(u),this.parent&&this.parent.clear()}},Da.prototype.find=function(u,d){u==null&&this.type=="bookmark"&&(u=1);for(var y,g,T=0;T<this.lines.length;++T){var D=this.lines[T],I=ya(D.markedSpans,this);if(I.from!=null&&(y=Ae(d?D:Y(D),I.from),u==-1))return y;if(I.to!=null&&(g=Ae(d?D:Y(D),I.to),u==1))return g}return y&&{from:y,to:g}},Da.prototype.changed=function(){var u=this,d=this.find(-1,!0),y=this,g=this.doc.cm;!d||!g||xr(g,function(){var T=d.line,D=Y(d.line),I=km(g,D);if(I&&(Rm(I),g.curOp.selectionChanged=g.curOp.forceUpdate=!0),g.curOp.updateMaxLine=!0,!ou(y.doc,T)&&y.height!=null){var V=y.height;y.height=null;var U=Hl(y)-V;U&&Jn(T,T.height+U)}Jr(g,"markerChanged",g,u)})},Da.prototype.attachLine=function(u){if(!this.lines.length&&this.doc.cm){var d=this.doc.cm.curOp;(!d.maybeHiddenMarkers||et(d.maybeHiddenMarkers,this)==-1)&&(d.maybeUnhiddenMarkers||(d.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(u)},Da.prototype.detachLine=function(u){if(this.lines.splice(et(this.lines,u),1),!this.lines.length&&this.doc.cm){var d=this.doc.cm.curOp;(d.maybeHiddenMarkers||(d.maybeHiddenMarkers=[])).push(this)}},Qt(Da);function dc(u,d,y,g,T){if(g&&g.shared)return ib(u,d,y,g,T);if(u.cm&&!u.cm.curOp)return Nr(u.cm,dc)(u,d,y,g,T);var D=new Da(u,T),I=tt(d,y);if(g&&ge(g,D,!1),I>0||I==0&&D.clearWhenEmpty!==!1)return D;if(D.replacedWith&&(D.collapsed=!0,D.widgetNode=J("span",[D.replacedWith],"CodeMirror-widget"),g.handleMouseEvents||D.widgetNode.setAttribute("cm-ignore-events","true"),g.insertLeft&&(D.widgetNode.insertLeft=!0)),D.collapsed){if(Eh(u,d.line,d,y,D)||d.line!=y.line&&Eh(u,y.line,d,y,D))throw new Error("Inserting collapsed marker partially overlapping an existing one");vm()}D.addToHistory&&Hm(u,{from:d,to:y,origin:"markText"},u.sel,NaN);var V=d.line,U=u.cm,z;if(u.iter(V,y.line+1,function(ce){U&&D.collapsed&&!U.options.lineWrapping&&no(ce)==U.display.maxLine&&(z=!0),D.collapsed&&V!=d.line&&Jn(ce,0),ym(ce,new Nf(D,V==d.line?d.ch:null,V==y.line?y.ch:null),u.cm&&u.cm.curOp),++V}),D.collapsed&&u.iter(d.line,y.line+1,function(ce){ou(u,ce)&&Jn(ce,0)}),D.clearOnEnter&<(D,"beforeCursorEnter",function(){return D.clear()}),D.readOnly&&(Oy(),(u.history.done.length||u.history.undone.length)&&u.clearHistory()),D.collapsed&&(D.id=++Jh,D.atomic=!0),U){if(z&&(U.curOp.updateMaxLine=!0),D.collapsed)Ur(U,d.line,y.line+1);else if(D.className||D.startStyle||D.endStyle||D.css||D.attributes||D.title)for(var ie=d.line;ie<=y.line;ie++)qs(U,ie,"text");D.atomic&&Gh(U.doc),Jr(U,"markerAdded",U,D)}return D}var hc=function(u,d){this.markers=u,this.primary=d;for(var y=0;y<u.length;++y)u[y].parent=this};hc.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var u=0;u<this.markers.length;++u)this.markers[u].clear();Jr(this,"clear")}},hc.prototype.find=function(u,d){return this.primary.find(u,d)},Qt(hc);function ib(u,d,y,g,T){g=ge(g),g.shared=!1;var D=[dc(u,d,y,g,T)],I=D[0],V=g.widgetNode;return oo(u,function(U){V&&(g.widgetNode=V.cloneNode(!0)),D.push(dc(U,gt(U,d),gt(U,y),g,T));for(var z=0;z<U.linked.length;++z)if(U.linked[z].isParent)return;I=Le(D)}),new hc(D,I)}function Ym(u){return u.findMarks(Ae(u.first,0),u.clipPos(Ae(u.lastLine())),function(d){return d.parent})}function Qm(u,d){for(var y=0;y<d.length;y++){var g=d[y],T=g.find(),D=u.clipPos(T.from),I=u.clipPos(T.to);if(tt(D,I)){var V=dc(u,D,I,g.primary,g.primary.type);g.markers.push(V),V.parent=g}}}function ob(u){for(var d=function(g){var T=u[g],D=[T.primary.doc];oo(T.primary.doc,function(U){return D.push(U)});for(var I=0;I<T.markers.length;I++){var V=T.markers[I];et(D,V.doc)==-1&&(V.parent=null,T.markers.splice(I--,1))}},y=0;y<u.length;y++)d(y)}var sb=0,Ui=function(u,d,y,g,T){if(!(this instanceof Ui))return new Ui(u,d,y,g,T);y==null&&(y=0),cc.call(this,[new lc([new Vl("",null)])]),this.first=y,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=y;var D=Ae(y,0);this.sel=Ys(D),this.history=new rc(null),this.id=++sb,this.modeOption=d,this.lineSep=g,this.direction=T=="rtl"?"rtl":"ltr",this.extend=!1,typeof u=="string"&&(u=this.splitLines(u)),Kf(this,{from:D,to:D,text:u}),Oi(this,Ys(D),pe)};Ui.prototype=Qe(cc.prototype,{constructor:Ui,iter:function(u,d,y){y?this.iterN(u-this.first,d-u,y):this.iterN(this.first,this.first+this.size,u)},insert:function(u,d){for(var y=0,g=0;g<d.length;++g)y+=d[g].height;this.insertInner(u-this.first,d,y)},remove:function(u,d){this.removeInner(u-this.first,d)},getValue:function(u){var d=ko(this,this.first,this.first+this.size);return u===!1?d:d.join(u||this.lineSeparator())},setValue:pr(function(u){var d=Ae(this.first,0),y=this.first+this.size-1;ti(this,{from:d,to:Ae(y,ot(this,y).text.length),text:this.splitLines(u),origin:"setValue",full:!0},!0),this.cm&&Fo(this.cm,0,0),Oi(this,Ys(d),pe)}),replaceRange:function(u,d,y,g){d=gt(this,d),y=y?gt(this,y):d,Eo(this,u,d,y,g)},getRange:function(u,d,y){var g=li(this,gt(this,u),gt(this,d));return y===!1?g:y===""?g.join(""):g.join(y||this.lineSeparator())},getLine:function(u){var d=this.getLineHandle(u);return d&&d.text},getLineHandle:function(u){if(je(this,u))return ot(this,u)},getLineNumber:function(u){return Y(u)},getLineHandleVisualStart:function(u){return typeof u=="number"&&(u=ot(this,u)),no(u)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(u){return gt(this,u)},getCursor:function(u){var d=this.sel.primary(),y;return u==null||u=="head"?y=d.head:u=="anchor"?y=d.anchor:u=="end"||u=="to"||u===!1?y=d.to():y=d.from(),y},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:pr(function(u,d,y){Zf(this,gt(this,typeof u=="number"?Ae(u,d||0):u),null,y)}),setSelection:pr(function(u,d,y){Zf(this,gt(this,u),gt(this,d||u),y)}),extendSelection:pr(function(u,d,y){il(this,gt(this,u),d&>(this,d),y)}),extendSelections:pr(function(u,d){ol(this,$s(this,u),d)}),extendSelectionsBy:pr(function(u,d){var y=Pe(this.sel.ranges,u);ol(this,$s(this,y),d)}),setSelections:pr(function(u,d,y){if(u.length){for(var g=[],T=0;T<u.length;T++)g[T]=new wn(gt(this,u[T].anchor),gt(this,u[T].head||u[T].anchor));d==null&&(d=Math.min(u.length-1,this.sel.primIndex)),Oi(this,bo(this.cm,g,d),y)}}),addSelection:pr(function(u,d,y){var g=this.sel.ranges.slice(0);g.push(new wn(gt(this,u),gt(this,d||u))),Oi(this,bo(this.cm,g,g.length-1),y)}),getSelection:function(u){for(var d=this.sel.ranges,y,g=0;g<d.length;g++){var T=li(this,d[g].from(),d[g].to());y=y?y.concat(T):T}return u===!1?y:y.join(u||this.lineSeparator())},getSelections:function(u){for(var d=[],y=this.sel.ranges,g=0;g<y.length;g++){var T=li(this,y[g].from(),y[g].to());u!==!1&&(T=T.join(u||this.lineSeparator())),d[g]=T}return d},replaceSelection:function(u,d,y){for(var g=[],T=0;T<this.sel.ranges.length;T++)g[T]=u;this.replaceSelections(g,d,y||"+input")},replaceSelections:pr(function(u,d,y){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(u[D]),origin:y}}for(var V=d&&d!="end"&&tb(this,g,d),U=g.length-1;U>=0;U--)ti(this,g[U]);V?sl(this,V):this.cm&&Ko(this.cm)}),undo:pr(function(){sc(this,"undo")}),redo:pr(function(){sc(this,"redo")}),undoSelection:pr(function(){sc(this,"undo",!0)}),redoSelection:pr(function(){sc(this,"redo",!0)}),setExtending:function(u){this.extend=u},getExtending:function(){return this.extend},historySize:function(){for(var u=this.history,d=0,y=0,g=0;g<u.done.length;g++)u.done[g].ranges||++d;for(var T=0;T<u.undone.length;T++)u.undone[T].ranges||++y;return{undo:d,redo:y}},clearHistory:function(){var u=this;this.history=new rc(this.history),oo(this,function(d){return d.history=u.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(u){return u&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(u){return this.history.generation==(u||this.cleanGeneration)},getHistory:function(){return{done:Cn(this.history.done),undone:Cn(this.history.undone)}},setHistory:function(u){var d=this.history=new rc(this.history);d.done=Cn(u.done.slice(0),null,!0),d.undone=Cn(u.undone.slice(0),null,!0)},setGutterMarker:pr(function(u,d,y){return uc(this,u,"gutter",function(g){var T=g.gutterMarkers||(g.gutterMarkers={});return T[d]=y,!y&&ct(T)&&(g.gutterMarkers=null),!0})}),clearGutter:pr(function(u){var d=this;this.iter(function(y){y.gutterMarkers&&y.gutterMarkers[u]&&uc(d,y,"gutter",function(){return y.gutterMarkers[u]=null,ct(y.gutterMarkers)&&(y.gutterMarkers=null),!0})})}),lineInfo:function(u){var d;if(typeof u=="number"){if(!je(this,u)||(d=u,u=ot(this,u),!u))return null}else if(d=Y(u),d==null)return null;return{line:d,handle:u,text:u.text,gutterMarkers:u.gutterMarkers,textClass:u.textClass,bgClass:u.bgClass,wrapClass:u.wrapClass,widgets:u.widgets}},addLineClass:pr(function(u,d,y){return uc(this,u,d=="gutter"?"gutter":"class",function(g){var T=d=="text"?"textClass":d=="background"?"bgClass":d=="gutter"?"gutterClass":"wrapClass";if(!g[T])g[T]=y;else{if(W(y).test(g[T]))return!1;g[T]+=" "+y}return!0})}),removeLineClass:pr(function(u,d,y){return uc(this,u,d=="gutter"?"gutter":"class",function(g){var T=d=="text"?"textClass":d=="background"?"bgClass":d=="gutter"?"gutterClass":"wrapClass",D=g[T];if(D)if(y==null)g[T]=null;else{var I=D.match(W(y));if(!I)return!1;var V=I.index+I[0].length;g[T]=D.slice(0,I.index)+(!I.index||V==D.length?"":" ")+D.slice(V)||null}else return!1;return!0})}),addLineWidget:pr(function(u,d,y){return rb(this,u,d,y)}),removeLineWidget:function(u){u.clear()},markText:function(u,d,y){return dc(this,gt(this,u),gt(this,d),y,y&&y.type||"range")},setBookmark:function(u,d){var y={replacedWith:d&&(d.nodeType==null?d.widget:d),insertLeft:d&&d.insertLeft,clearWhenEmpty:!1,shared:d&&d.shared,handleMouseEvents:d&&d.handleMouseEvents};return u=gt(this,u),dc(this,u,u,y,"bookmark")},findMarksAt:function(u){u=gt(this,u);var d=[],y=ot(this,u.line).markedSpans;if(y)for(var g=0;g<y.length;++g){var T=y[g];(T.from==null||T.from<=u.ch)&&(T.to==null||T.to>=u.ch)&&d.push(T.marker.parent||T.marker)}return d},findMarks:function(u,d,y){u=gt(this,u),d=gt(this,d);var g=[],T=u.line;return this.iter(u.line,d.line+1,function(D){var I=D.markedSpans;if(I)for(var V=0;V<I.length;V++){var U=I[V];!(U.to!=null&&T==u.line&&u.ch>=U.to||U.from==null&&T!=u.line||U.from!=null&&T==d.line&&U.from>=d.ch)&&(!y||y(U.marker))&&g.push(U.marker.parent||U.marker)}++T}),g},getAllMarks:function(){var u=[];return this.iter(function(d){var y=d.markedSpans;if(y)for(var g=0;g<y.length;++g)y[g].from!=null&&u.push(y[g].marker)}),u},posFromIndex:function(u){var d,y=this.first,g=this.lineSeparator().length;return this.iter(function(T){var D=T.text.length+g;if(D>u)return d=u,!0;u-=D,++y}),gt(this,Ae(y,d))},indexFromPos:function(u){u=gt(this,u);var d=u.ch;if(u.line<this.first||u.ch<0)return 0;var y=this.lineSeparator().length;return this.iter(this.first,u.line,function(g){d+=g.text.length+y}),d},copy:function(u){var d=new Ui(ko(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return d.scrollTop=this.scrollTop,d.scrollLeft=this.scrollLeft,d.sel=this.sel,d.extend=!1,u&&(d.history.undoDepth=this.history.undoDepth,d.setHistory(this.getHistory())),d},linkedDoc:function(u){u||(u={});var d=this.first,y=this.first+this.size;u.from!=null&&u.from>d&&(d=u.from),u.to!=null&&u.to<y&&(y=u.to);var g=new Ui(ko(this,d,y),u.mode||this.modeOption,d,this.lineSep,this.direction);return u.sharedHist&&(g.history=this.history),(this.linked||(this.linked=[])).push({doc:g,sharedHist:u.sharedHist}),g.linked=[{doc:this,isParent:!0,sharedHist:u.sharedHist}],Qm(g,Ym(this)),g},unlinkDoc:function(u){if(u instanceof Wn&&(u=u.doc),this.linked)for(var d=0;d<this.linked.length;++d){var y=this.linked[d];if(y.doc==u){this.linked.splice(d,1),u.unlinkDoc(this),ob(Ym(this));break}}if(u.history==this.history){var g=[u.id];oo(u,function(T){return g.push(T.id)},!0),u.history=new rc(null),u.history.done=Cn(this.history.done,g),u.history.undone=Cn(this.history.undone,g)}},iterLinkedDocs:function(u){oo(this,u)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(u){return this.lineSep?u.split(this.lineSep):Dn(u)},lineSeparator:function(){return this.lineSep||`
`},setDirection:pr(function(u){u!="rtl"&&(u="ltr"),u!=this.direction&&(this.direction=u,this.iter(function(d){return d.order=null}),this.cm&&Um(this.cm))})}),Ui.prototype.eachLine=Ui.prototype.iter;var Km=0;function ab(u){var d=this;if(ul(d),!(bn(d,u)||Mo(d.display,u))){Lt(u),f&&(Km=+new Date);var y=ci(d,u,!0),g=u.dataTransfer.files;if(!(!y||d.isReadOnly()))if(g&&g.length&&window.FileReader&&window.File)for(var T=g.length,D=Array(T),I=0,V=function(){++I==T&&Nr(d,function(){y=gt(d.doc,y);var me={from:y,to:y,text:d.doc.splitLines(D.filter(function(Re){return Re!=null}).join(d.doc.lineSeparator())),origin:"paste"};ti(d.doc,me),sl(d.doc,Ys(gt(d.doc,y),gt(d.doc,Ca(me))))})()},U=function(me,Re){if(d.options.allowDropFileTypes&&et(d.options.allowDropFileTypes,me.type)==-1){V();return}var $e=new FileReader;$e.onerror=function(){return V()},$e.onload=function(){var Ke=$e.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Ke)){V();return}D[Re]=Ke,V()},$e.readAsText(me)},z=0;z<g.length;z++)U(g[z],z);else{if(d.state.draggingText&&d.doc.sel.contains(y)>-1){d.state.draggingText(u),setTimeout(function(){return d.display.input.focus()},20);return}try{var ie=u.dataTransfer.getData("Text");if(ie){var ce;if(d.state.draggingText&&!d.state.draggingText.copy&&(ce=d.listSelections()),sr(d.doc,Ys(y,y)),ce)for(var Se=0;Se<ce.length;++Se)Eo(d.doc,"",ce[Se].anchor,ce[Se].head,"drag");d.replaceSelection(ie,"around","paste"),d.display.input.focus()}}catch{}}}}function q3(u,d){if(f&&(!u.state.draggingText||+new Date-Km<100)){Jt(d);return}if(!(bn(u,d)||Mo(u.display,d))&&(d.dataTransfer.setData("Text",u.getSelection()),d.dataTransfer.effectAllowed="copyMove",d.dataTransfer.setDragImage&&!w)){var y=H("img",null,null,"position: fixed; left: 0; top: 0;");y.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",S&&(y.width=y.height=1,u.display.wrapper.appendChild(y),y._top=y.offsetTop),d.dataTransfer.setDragImage(y,0,0),S&&y.parentNode.removeChild(y)}}function ub(u,d){var y=ci(u,d);if(y){var g=document.createDocumentFragment();du(u,y,g),u.display.dragCursor||(u.display.dragCursor=H("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),u.display.lineSpace.insertBefore(u.display.dragCursor,u.display.cursorDiv)),ee(u.display.dragCursor,g)}}function ul(u){u.display.dragCursor&&(u.display.lineSpace.removeChild(u.display.dragCursor),u.display.dragCursor=null)}function td(u){if(document.getElementsByClassName){for(var d=document.getElementsByClassName("CodeMirror"),y=[],g=0;g<d.length;g++){var T=d[g].CodeMirror;T&&y.push(T)}y.length&&y[0].operation(function(){for(var D=0;D<y.length;D++)u(y[D])})}}var Xm=!1;function ep(){Xm||(nd(),Xm=!0)}function nd(){var u;lt(window,"resize",function(){u==null&&(u=setTimeout(function(){u=null,td(lb)},100))}),lt(window,"blur",function(){return td(Qo)})}function lb(u){var d=u.display;d.cachedCharWidth=d.cachedTextHeight=d.cachedPaddingH=null,d.scrollbarsClipped=!1,u.setSize()}for(var Na={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"},pc=0;pc<10;pc++)Na[pc+48]=Na[pc+96]=String(pc);for(var rd=65;rd<=90;rd++)Na[rd]=String.fromCharCode(rd);for(var mc=1;mc<=12;mc++)Na[mc+111]=Na[mc+63235]="F"+mc;var Qs={};Qs.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"},Qs.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"},Qs.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"},Qs.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"]},Qs.default=L?Qs.macDefault:Qs.pcDefault;function Zm(u){var d=u.split(/-(?!$)/);u=d[d.length-1];for(var y,g,T,D,I=0;I<d.length-1;I++){var V=d[I];if(/^(cmd|meta|m)$/i.test(V))D=!0;else if(/^a(lt)?$/i.test(V))y=!0;else if(/^(c|ctrl|control)$/i.test(V))g=!0;else if(/^s(hift)?$/i.test(V))T=!0;else throw new Error("Unrecognized modifier name: "+V)}return y&&(u="Alt-"+u),g&&(u="Ctrl-"+u),D&&(u="Cmd-"+u),T&&(u="Shift-"+u),u}function cb(u){var d={};for(var y in u)if(u.hasOwnProperty(y)){var g=u[y];if(/^(name|fallthrough|(de|at)tach)$/.test(y))continue;if(g=="..."){delete u[y];continue}for(var T=Pe(y.split(" "),Zm),D=0;D<T.length;D++){var I=void 0,V=void 0;D==T.length-1?(V=T.join(" "),I=g):(V=T.slice(0,D+1).join(" "),I="...");var U=d[V];if(!U)d[V]=I;else if(U!=I)throw new Error("Inconsistent bindings for "+V)}delete u[y]}for(var z in d)u[z]=d[z];return u}function ll(u,d,y,g){d=np(d);var T=d.call?d.call(u,g):d[u];if(T===!1)return"nothing";if(T==="...")return"multi";if(T!=null&&y(T))return"handled";if(d.fallthrough){if(Object.prototype.toString.call(d.fallthrough)!="[object Array]")return ll(u,d.fallthrough,y,g);for(var D=0;D<d.fallthrough.length;D++){var I=ll(u,d.fallthrough[D],y,g);if(I)return I}}}function tp(u){var d=typeof u=="string"?u:Na[u.keyCode];return d=="Ctrl"||d=="Alt"||d=="Shift"||d=="Mod"}function Jm(u,d,y){var g=u;return d.altKey&&g!="Alt"&&(u="Alt-"+u),(B?d.metaKey:d.ctrlKey)&&g!="Ctrl"&&(u="Ctrl-"+u),(B?d.ctrlKey:d.metaKey)&&g!="Mod"&&(u="Cmd-"+u),!y&&d.shiftKey&&g!="Shift"&&(u="Shift-"+u),u}function eg(u,d){if(S&&u.keyCode==34&&u.char)return!1;var y=Na[u.keyCode];return y==null||u.altGraphKey?!1:(u.keyCode==3&&u.code&&(y=u.code),Jm(y,u,d))}function np(u){return typeof u=="string"?Qs[u]:u}function bu(u,d){for(var y=u.doc.sel.ranges,g=[],T=0;T<y.length;T++){for(var D=d(y[T]);g.length&&tt(D.from,Le(g).to)<=0;){var I=g.pop();if(tt(I.from,D.from)<0){D.from=I.from;break}}g.push(D)}xr(u,function(){for(var V=g.length-1;V>=0;V--)Eo(u.doc,"",g[V].from,g[V].to,"+delete");Ko(u)})}function rp(u,d,y){var g=Bt(u.text,d+y,y);return g<0||g>u.text.length?null:g}function ip(u,d,y){var g=rp(u,d.ch,y);return g==null?null:new Ae(d.line,g,y<0?"after":"before")}function id(u,d,y,g,T){if(u){d.doc.direction=="rtl"&&(T=-T);var D=Et(y,d.doc.direction);if(D){var I=T<0?Le(D):D[0],V=T<0==(I.level==1),U=V?"after":"before",z;if(I.level>0||d.doc.direction=="rtl"){var ie=zl(d,y);z=T<0?y.text.length-1:0;var ce=zs(d,ie,z).top;z=$t(function(Se){return zs(d,ie,Se).top==ce},T<0==(I.level==1)?I.from:I.to-1,z),U=="before"&&(z=rp(y,z,1))}else z=T<0?I.to:I.from;return new Ae(g,z,U)}}return new Ae(g,T<0?y.text.length:0,T<0?"before":"after")}function fb(u,d,y,g){var T=Et(d,u.doc.direction);if(!T)return ip(d,y,g);y.ch>=d.text.length?(y.ch=d.text.length,y.sticky="before"):y.ch<=0&&(y.ch=0,y.sticky="after");var D=_n(T,y.ch,y.sticky),I=T[D];if(u.doc.direction=="ltr"&&I.level%2==0&&(g>0?I.to>y.ch:I.from<y.ch))return ip(d,y,g);var V=function(Ze,nt){return rp(d,Ze instanceof Ae?Ze.ch:Ze,nt)},U,z=function(Ze){return u.options.lineWrapping?(U=U||zl(u,d),fu(u,d,U,Ze)):{begin:0,end:d.text.length}},ie=z(y.sticky=="before"?V(y,-1):y.ch);if(u.doc.direction=="rtl"||I.level==1){var ce=I.level==1==g<0,Se=V(y,ce?1:-1);if(Se!=null&&(ce?Se<=I.to&&Se<=ie.end:Se>=I.from&&Se>=ie.begin)){var me=ce?"before":"after";return new Ae(y.line,Se,me)}}var Re=function(Ze,nt,rt){for(var st=function(Ln,zr){return zr?new Ae(y.line,V(Ln,1),"before"):new Ae(y.line,Ln,"after")};Ze>=0&&Ze<T.length;Ze+=nt){var Tt=T[Ze],vt=nt>0==(Tt.level!=1),Ht=vt?rt.begin:V(rt.end,-1);if(Tt.from<=Ht&&Ht<Tt.to||(Ht=vt?Tt.from:V(Tt.to,-1),rt.begin<=Ht&&Ht<rt.end))return st(Ht,vt)}},$e=Re(D+g,g,ie);if($e)return $e;var Ke=g>0?ie.end:V(ie.begin,-1);return Ke!=null&&!(g>0&&Ke==d.text.length)&&($e=Re(g>0?0:T.length-1,g,z(Ke)),$e)?$e:null}var gc={selectAll:Qh,singleSelection:function(u){return u.setSelection(u.getCursor("anchor"),u.getCursor("head"),pe)},killLine:function(u){return bu(u,function(d){if(d.empty()){var y=ot(u.doc,d.head.line).text.length;return d.head.ch==y&&d.head.line<u.lastLine()?{from:d.head,to:Ae(d.head.line+1,0)}:{from:d.head,to:Ae(d.head.line,y)}}else return{from:d.from(),to:d.to()}})},deleteLine:function(u){return bu(u,function(d){return{from:Ae(d.from().line,0),to:gt(u.doc,Ae(d.to().line+1,0))}})},delLineLeft:function(u){return bu(u,function(d){return{from:Ae(d.from().line,0),to:d.from()}})},delWrappedLineLeft:function(u){return bu(u,function(d){var y=u.charCoords(d.head,"div").top+5,g=u.coordsChar({left:0,top:y},"div");return{from:g,to:d.from()}})},delWrappedLineRight:function(u){return bu(u,function(d){var y=u.charCoords(d.head,"div").top+5,g=u.coordsChar({left:u.display.lineDiv.offsetWidth+100,top:y},"div");return{from:d.from(),to:g}})},undo:function(u){return u.undo()},redo:function(u){return u.redo()},undoSelection:function(u){return u.undoSelection()},redoSelection:function(u){return u.redoSelection()},goDocStart:function(u){return u.extendSelection(Ae(u.firstLine(),0))},goDocEnd:function(u){return u.extendSelection(Ae(u.lastLine()))},goLineStart:function(u){return u.extendSelectionsBy(function(d){return db(u,d.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(u){return u.extendSelectionsBy(function(d){return tg(u,d.head)},{origin:"+move",bias:1})},goLineEnd:function(u){return u.extendSelectionsBy(function(d){return G3(u,d.head.line)},{origin:"+move",bias:-1})},goLineRight:function(u){return u.extendSelectionsBy(function(d){var y=u.cursorCoords(d.head,"div").top+5;return u.coordsChar({left:u.display.lineDiv.offsetWidth+100,top:y},"div")},ye)},goLineLeft:function(u){return u.extendSelectionsBy(function(d){var y=u.cursorCoords(d.head,"div").top+5;return u.coordsChar({left:0,top:y},"div")},ye)},goLineLeftSmart:function(u){return u.extendSelectionsBy(function(d){var y=u.cursorCoords(d.head,"div").top+5,g=u.coordsChar({left:0,top:y},"div");return g.ch<u.getLine(g.line).search(/\S/)?tg(u,d.head):g},ye)},goLineUp:function(u){return u.moveV(-1,"line")},goLineDown:function(u){return u.moveV(1,"line")},goPageUp:function(u){return u.moveV(-1,"page")},goPageDown:function(u){return u.moveV(1,"page")},goCharLeft:function(u){return u.moveH(-1,"char")},goCharRight:function(u){return u.moveH(1,"char")},goColumnLeft:function(u){return u.moveH(-1,"column")},goColumnRight:function(u){return u.moveH(1,"column")},goWordLeft:function(u){return u.moveH(-1,"word")},goGroupRight:function(u){return u.moveH(1,"group")},goGroupLeft:function(u){return u.moveH(-1,"group")},goWordRight:function(u){return u.moveH(1,"word")},delCharBefore:function(u){return u.deleteH(-1,"codepoint")},delCharAfter:function(u){return u.deleteH(1,"char")},delWordBefore:function(u){return u.deleteH(-1,"word")},delWordAfter:function(u){return u.deleteH(1,"word")},delGroupBefore:function(u){return u.deleteH(-1,"group")},delGroupAfter:function(u){return u.deleteH(1,"group")},indentAuto:function(u){return u.indentSelection("smart")},indentMore:function(u){return u.indentSelection("add")},indentLess:function(u){return u.indentSelection("subtract")},insertTab:function(u){return u.replaceSelection(" ")},insertSoftTab:function(u){for(var d=[],y=u.listSelections(),g=u.options.tabSize,T=0;T<y.length;T++){var D=y[T].from(),I=Ve(u.getLine(D.line),D.ch,g);d.push(ze(g-I%g))}u.replaceSelections(d)},defaultTab:function(u){u.somethingSelected()?u.indentSelection("add"):u.execCommand("insertTab")},transposeChars:function(u){return xr(u,function(){for(var d=u.listSelections(),y=[],g=0;g<d.length;g++)if(d[g].empty()){var T=d[g].head,D=ot(u.doc,T.line).text;if(D){if(T.ch==D.length&&(T=new Ae(T.line,T.ch-1)),T.ch>0)T=new Ae(T.line,T.ch+1),u.replaceRange(D.charAt(T.ch-1)+D.charAt(T.ch-2),Ae(T.line,T.ch-2),T,"+transpose");else if(T.line>u.doc.first){var I=ot(u.doc,T.line-1).text;I&&(T=new Ae(T.line,1),u.replaceRange(D.charAt(0)+u.doc.lineSeparator()+I.charAt(I.length-1),Ae(T.line-1,I.length-1),T,"+transpose"))}}y.push(new wn(T,T))}u.setSelections(y)})},newlineAndIndent:function(u){return xr(u,function(){for(var d=u.listSelections(),y=d.length-1;y>=0;y--)u.replaceRange(u.doc.lineSeparator(),d[y].anchor,d[y].head,"+input");d=u.listSelections();for(var g=0;g<d.length;g++)u.indentLine(d[g].from().line,null,!0);Ko(u)})},openLine:function(u){return u.replaceSelection(`
`,"start")},toggleOverwrite:function(u){return u.toggleOverwrite()}};function db(u,d){var y=ot(u.doc,d),g=no(y);return g!=y&&(d=Y(g)),id(!0,u,g,d,1)}function G3(u,d){var y=ot(u.doc,d),g=xh(y);return g!=y&&(d=Y(g)),id(!0,u,y,d,-1)}function tg(u,d){var y=db(u,d.line),g=ot(u.doc,y.line),T=Et(g,u.doc.direction);if(!T||T[0].level==0){var D=Math.max(y.ch,g.text.search(/\S/)),I=d.line==y.line&&d.ch<=D&&d.ch;return Ae(y.line,I?0:D,y.sticky)}return y}function Eu(u,d,y){if(typeof d=="string"&&(d=gc[d],!d))return!1;u.display.input.ensurePolled();var g=u.display.shift,T=!1;try{u.isReadOnly()&&(u.state.suppressEdits=!0),y&&(u.display.shift=!1),T=d(u)!=we}finally{u.display.shift=g,u.state.suppressEdits=!1}return T}function ng(u,d,y){for(var g=0;g<u.state.keyMaps.length;g++){var T=ll(d,u.state.keyMaps[g],y,u);if(T)return T}return u.options.extraKeys&&ll(d,u.options.extraKeys,y,u)||ll(d,u.options.keyMap,y,u)}var op=new Xe;function vc(u,d,y,g){var T=u.state.keySeq;if(T){if(tp(d))return"handled";if(/\'$/.test(d)?u.state.keySeq=null:op.set(50,function(){u.state.keySeq==T&&(u.state.keySeq=null,u.display.input.reset())}),rg(u,T+" "+d,y,g))return!0}return rg(u,d,y,g)}function rg(u,d,y,g){var T=ng(u,d,g);return T=="multi"&&(u.state.keySeq=d),T=="handled"&&Jr(u,"keyHandled",u,d,y),(T=="handled"||T=="multi")&&(Lt(y),Gf(u)),!!T}function od(u,d){var y=eg(d,!0);return y?d.shiftKey&&!u.state.keySeq?vc(u,"Shift-"+y,d,function(g){return Eu(u,g,!0)})||vc(u,y,d,function(g){if(typeof g=="string"?/^go[A-Z]/.test(g):g.motion)return Eu(u,g)}):vc(u,y,d,function(g){return Eu(u,g)}):!1}function hb(u,d,y){return vc(u,"'"+y+"'",d,function(g){return Eu(u,g,!0)})}var sp=null;function pb(u){var d=this;if(!(u.target&&u.target!=d.display.input.getField())&&(d.curOp.focus=oe(ae(d)),!bn(d,u))){f&&h<11&&u.keyCode==27&&(u.returnValue=!1);var y=u.keyCode;d.display.shift=y==16||u.shiftKey;var g=od(d,u);S&&(sp=g?y:null,!g&&y==88&&!Br&&(L?u.metaKey:u.ctrlKey)&&d.replaceSelection("",null,"cut")),i&&!L&&!g&&y==46&&u.shiftKey&&!u.ctrlKey&&document.execCommand&&document.execCommand("cut"),y==18&&!/\bCodeMirror-crosshair\b/.test(d.display.lineDiv.className)&&yc(d)}}function yc(u){var d=u.display.lineDiv;K(d,"CodeMirror-crosshair");function y(g){(g.keyCode==18||!g.altKey)&&(Z(d,"CodeMirror-crosshair"),An(document,"keyup",y),An(document,"mouseover",y))}lt(document,"keyup",y),lt(document,"mouseover",y)}function bc(u){u.keyCode==16&&(this.doc.sel.shift=!1),bn(this,u)}function sd(u){var d=this;if(!(u.target&&u.target!=d.display.input.getField())&&!(Mo(d.display,u)||bn(d,u)||u.ctrlKey&&!u.altKey||L&&u.metaKey)){var y=u.keyCode,g=u.charCode;if(S&&y==sp){sp=null,Lt(u);return}if(!(S&&(!u.which||u.which<10)&&od(d,u))){var T=String.fromCharCode(g??y);T!="\b"&&(hb(d,u,T)||d.display.input.onKeyPress(u))}}}var ad=400,Ec=function(u,d,y){this.time=u,this.pos=d,this.button=y};Ec.prototype.compare=function(u,d,y){return this.time+ad>u&&tt(d,this.pos)==0&&y==this.button};var xc,Tc;function Sc(u,d){var y=+new Date;return Tc&&Tc.compare(y,u,d)?(xc=Tc=null,"triple"):xc&&xc.compare(y,u,d)?(Tc=new Ec(y,u,d),xc=null,"double"):(xc=new Ec(y,u,d),Tc=null,"single")}function ig(u){var d=this,y=d.display;if(!(bn(d,u)||y.activeTouch&&y.input.supportsTouch())){if(y.input.ensurePolled(),y.shift=u.shiftKey,Mo(y,u)){p||(y.scroller.draggable=!1,setTimeout(function(){return y.scroller.draggable=!0},100));return}if(!ld(d,u)){var g=ci(d,u),T=en(u),D=g?Sc(g,T):"single";ve(d).focus(),T==1&&d.state.selectingText&&d.state.selectingText(u),!(g&&Zo(d,T,g,D,u))&&(T==1?g?xu(d,g,D,u):It(u)==y.scroller&&Lt(u):T==2?(g&&il(d.doc,g),setTimeout(function(){return y.input.focus()},20)):T==3&&(q?d.display.input.onContextMenu(u):Oh(d)))}}}function Zo(u,d,y,g,T){var D="Click";return g=="double"?D="Double"+D:g=="triple"&&(D="Triple"+D),D=(d==1?"Left":d==2?"Middle":"Right")+D,vc(u,Jm(D,T),T,function(I){if(typeof I=="string"&&(I=gc[I]),!I)return!1;var V=!1;try{u.isReadOnly()&&(u.state.suppressEdits=!0),V=I(u,y)!=we}finally{u.state.suppressEdits=!1}return V})}function Ks(u,d,y){var g=u.getOption("configureMouse"),T=g?g(u,d,y):{};if(T.unit==null){var D=P?y.shiftKey&&y.metaKey:y.altKey;T.unit=D?"rectangle":d=="single"?"char":d=="double"?"word":"line"}return(T.extend==null||u.doc.extend)&&(T.extend=u.doc.extend||y.shiftKey),T.addNew==null&&(T.addNew=L?y.metaKey:y.ctrlKey),T.moveOnDrag==null&&(T.moveOnDrag=!(L?y.altKey:y.ctrlKey)),T}function xu(u,d,y,g){f?setTimeout(xe(Gs,u),0):u.curOp.focus=oe(ae(u));var T=Ks(u,y,g),D=u.doc.sel,I;u.options.dragDrop&&wi&&!u.isReadOnly()&&y=="single"&&(I=D.contains(d))>-1&&(tt((I=D.ranges[I]).from(),d)<0||d.xRel>0)&&(tt(I.to(),d)>0||d.xRel<0)?mb(u,g,d,T):ka(u,g,d,T)}function mb(u,d,y,g){var T=u.display,D=!1,I=Nr(u,function(z){p&&(T.scroller.draggable=!1),u.state.draggingText=!1,u.state.delayingBlurEvent&&(u.hasFocus()?u.state.delayingBlurEvent=!1:Oh(u)),An(T.wrapper.ownerDocument,"mouseup",I),An(T.wrapper.ownerDocument,"mousemove",V),An(T.scroller,"dragstart",U),An(T.scroller,"drop",I),D||(Lt(z),g.addNew||il(u.doc,y,null,null,g.extend),p&&!w||f&&h==9?setTimeout(function(){T.wrapper.ownerDocument.body.focus({preventScroll:!0}),T.input.focus()},20):T.input.focus())}),V=function(z){D=D||Math.abs(d.clientX-z.clientX)+Math.abs(d.clientY-z.clientY)>=10},U=function(){return D=!0};p&&(T.scroller.draggable=!0),u.state.draggingText=I,I.copy=!g.moveOnDrag,lt(T.wrapper.ownerDocument,"mouseup",I),lt(T.wrapper.ownerDocument,"mousemove",V),lt(T.scroller,"dragstart",U),lt(T.scroller,"drop",I),u.state.delayingBlurEvent=!0,setTimeout(function(){return T.input.focus()},20),T.scroller.dragDrop&&T.scroller.dragDrop()}function Oa(u,d,y){if(y=="char")return new wn(d,d);if(y=="word")return u.findWordAt(d);if(y=="line")return new wn(Ae(d.line,0),gt(u.doc,Ae(d.line+1,0)));var g=y(u,d);return new wn(g.from,g.to)}function ka(u,d,y,g){f&&Oh(u);var T=u.display,D=u.doc;Lt(d);var I,V,U=D.sel,z=U.ranges;if(g.addNew&&!g.extend?(V=D.sel.contains(y),V>-1?I=z[V]:I=new wn(y,y)):(I=D.sel.primary(),V=D.sel.primIndex),g.unit=="rectangle")g.addNew||(I=new wn(y,y)),y=ci(u,d,!0,!0),V=-1;else{var ie=Oa(u,y,g.unit);g.extend?I=Tr(I,ie.anchor,ie.head,g.extend):I=ie}g.addNew?V==-1?(V=z.length,Oi(D,bo(u,z.concat([I]),V),{scroll:!1,origin:"*mouse"})):z.length>1&&z[V].empty()&&g.unit=="char"&&!g.extend?(Oi(D,bo(u,z.slice(0,V).concat(z.slice(V+1)),0),{scroll:!1,origin:"*mouse"}),U=D.sel):Aa(D,V,I,qe):(V=0,Oi(D,new Ni([I],0),qe),U=D.sel);var ce=y;function Se(rt){if(tt(ce,rt)!=0)if(ce=rt,g.unit=="rectangle"){for(var st=[],Tt=u.options.tabSize,vt=Ve(ot(D,y.line).text,y.ch,Tt),Ht=Ve(ot(D,rt.line).text,rt.ch,Tt),Ln=Math.min(vt,Ht),zr=Math.max(vt,Ht),Nn=Math.min(y.line,rt.line),En=Math.min(u.lastLine(),Math.max(y.line,rt.line));Nn<=En;Nn++){var ki=ot(D,Nn).text,Sr=re(ki,Ln,Tt);Ln==zr?st.push(new wn(Ae(Nn,Sr),Ae(Nn,Sr))):ki.length>Sr&&st.push(new wn(Ae(Nn,Sr),Ae(Nn,re(ki,zr,Tt))))}st.length||st.push(new wn(y,y)),Oi(D,bo(u,U.ranges.slice(0,V).concat(st),V),{origin:"*mouse",scroll:!1}),u.scrollIntoView(rt)}else{var On=I,pi=Oa(u,rt,g.unit),Rr=On.anchor,wr;tt(pi.anchor,Rr)>0?(wr=pi.head,Rr=$i(On.from(),pi.anchor)):(wr=pi.anchor,Rr=Ar(On.to(),pi.head));var jt=U.ranges.slice(0);jt[V]=ni(u,new wn(gt(D,Rr),wr)),Oi(D,bo(u,jt,V),qe)}}var me=T.wrapper.getBoundingClientRect(),Re=0;function $e(rt){var st=++Re,Tt=ci(u,rt,!0,g.unit=="rectangle");if(Tt)if(tt(Tt,ce)!=0){u.curOp.focus=oe(ae(u)),Se(Tt);var vt=Ta(T,D);(Tt.line>=vt.to||Tt.line<vt.from)&&setTimeout(Nr(u,function(){Re==st&&$e(rt)}),150)}else{var Ht=rt.clientY<me.top?-20:rt.clientY>me.bottom?20:0;Ht&&setTimeout(Nr(u,function(){Re==st&&(T.scroller.scrollTop+=Ht,$e(rt))}),50)}}function Ke(rt){u.state.selectingText=!1,Re=1/0,rt&&(Lt(rt),T.input.focus()),An(T.wrapper.ownerDocument,"mousemove",Ze),An(T.wrapper.ownerDocument,"mouseup",nt),D.history.lastSelOrigin=null}var Ze=Nr(u,function(rt){rt.buttons===0||!en(rt)?Ke(rt):$e(rt)}),nt=Nr(u,Ke);u.state.selectingText=nt,lt(T.wrapper.ownerDocument,"mousemove",Ze),lt(T.wrapper.ownerDocument,"mouseup",nt)}function ni(u,d){var y=d.anchor,g=d.head,T=ot(u.doc,y.line);if(tt(y,g)==0&&y.sticky==g.sticky)return d;var D=Et(T);if(!D)return d;var I=_n(D,y.ch,y.sticky),V=D[I];if(V.from!=y.ch&&V.to!=y.ch)return d;var U=I+(V.from==y.ch==(V.level!=1)?0:1);if(U==0||U==D.length)return d;var z;if(g.line!=y.line)z=(g.line-y.line)*(u.doc.direction=="ltr"?1:-1)>0;else{var ie=_n(D,g.ch,g.sticky),ce=ie-I||(g.ch-y.ch)*(V.level==1?-1:1);ie==U-1||ie==U?z=ce<0:z=ce>0}var Se=D[U+(z?-1:0)],me=z==(Se.level==1),Re=me?Se.from:Se.to,$e=me?"after":"before";return y.ch==Re&&y.sticky==$e?d:new wn(new Ae(y.line,Re,$e),g)}function ud(u,d,y,g){var T,D;if(d.touches)T=d.touches[0].clientX,D=d.touches[0].clientY;else try{T=d.clientX,D=d.clientY}catch{return!1}if(T>=Math.floor(u.display.gutters.getBoundingClientRect().right))return!1;g&&Lt(d);var I=u.display,V=I.lineDiv.getBoundingClientRect();if(D>V.bottom||!St(u,y))return Dt(d);D-=V.top-I.viewOffset;for(var U=0;U<u.display.gutterSpecs.length;++U){var z=I.gutters.childNodes[U];if(z&&z.getBoundingClientRect().right>=T){var ie=le(u.doc,D),ce=u.display.gutterSpecs[U];return Yt(u,y,u,ie,ce.className,d),Dt(d)}}}function ld(u,d){return ud(u,d,"gutterClick",!0)}function ap(u,d){Mo(u.display,d)||gb(u,d)||bn(u,d,"contextmenu")||q||u.display.input.onContextMenu(d)}function gb(u,d){return St(u,"gutterContextMenu")?ud(u,d,"gutterContextMenu",!1):!1}function og(u){u.display.wrapper.className=u.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+u.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ql(u)}var Jo={toString:function(){return"CodeMirror.Init"}},cd={},fd={};function vb(u){var d=u.optionHandlers;function y(g,T,D,I){u.defaults[g]=T,D&&(d[g]=I?function(V,U,z){z!=Jo&&D(V,U,z)}:D)}u.defineOption=y,u.Init=Jo,y("value","",function(g,T){return g.setValue(T)},!0),y("mode",null,function(g,T){g.doc.modeOption=T,$h(g)},!0),y("indentUnit",2,$h,!0),y("indentWithTabs",!1),y("smartIndent",!0),y("tabSize",4,function(g){Xo(g),ql(g),Ur(g)},!0),y("lineSeparator",null,function(g,T){if(g.doc.lineSep=T,!!T){var D=[],I=g.doc.first;g.doc.iter(function(U){for(var z=0;;){var ie=U.text.indexOf(T,z);if(ie==-1)break;z=ie+T.length,D.push(Ae(I,ie))}I++});for(var V=D.length-1;V>=0;V--)Eo(g.doc,T,D[V],Ae(D[V].line,D[V].ch+T.length))}}),y("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(g,T,D){g.state.specialChars=new RegExp(T.source+(T.test(" ")?"":"| "),"g"),D!=Jo&&g.refresh()}),y("specialCharPlaceholder",Tm,function(g){return g.refresh()},!0),y("electricChars",!0),y("inputStyle",A?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),y("spellcheck",!1,function(g,T){return g.getInputField().spellcheck=T},!0),y("autocorrect",!1,function(g,T){return g.getInputField().autocorrect=T},!0),y("autocapitalize",!1,function(g,T){return g.getInputField().autocapitalize=T},!0),y("rtlMoveVisually",!j),y("wholeLineUpdateBefore",!0),y("theme","default",function(g){og(g),ec(g)},!0),y("keyMap","default",function(g,T,D){var I=np(T),V=D!=Jo&&np(D);V&&V.detach&&V.detach(g,I),I.attach&&I.attach(g,V||null)}),y("extraKeys",null),y("configureMouse",null),y("lineWrapping",!1,up,!0),y("gutters",[],function(g,T){g.display.gutterSpecs=gu(T,g.options.lineNumbers),ec(g)},!0),y("fixedGutter",!0,function(g,T){g.display.gutters.style.left=T?zf(g.display)+"px":"0",g.refresh()},!0),y("coverGutterNextToScrollbar",!1,function(g){return ro(g)},!0),y("scrollbarStyle","native",function(g){Pm(g),ro(g),g.display.scrollbars.setScrollTop(g.doc.scrollTop),g.display.scrollbars.setScrollLeft(g.doc.scrollLeft)},!0),y("lineNumbers",!1,function(g,T){g.display.gutterSpecs=gu(g.options.gutters,T),ec(g)},!0),y("firstLineNumber",1,ec,!0),y("lineNumberFormatter",function(g){return g},ec,!0),y("showCursorWhenSelecting",!1,Kl,!0),y("resetSelectionOnContextMenu",!0),y("lineWiseCopyCut",!0),y("pasteLinesPerSelection",!0),y("selectionsMayTouch",!1),y("readOnly",!1,function(g,T){T=="nocursor"&&(Qo(g),g.display.input.blur()),g.display.input.readOnlyChanged(T)}),y("screenReaderLabel",null,function(g,T){T=T===""?null:T,g.display.input.screenReaderLabelChanged(T)}),y("disableInput",!1,function(g,T){T||g.display.input.reset()},!0),y("dragDrop",!0,yb),y("allowDropFileTypes",null),y("cursorBlinkRate",530),y("cursorScrollMargin",0),y("cursorHeight",1,Kl,!0),y("singleCursorHeightPerLine",!0,Kl,!0),y("workTime",100),y("workDelay",100),y("flattenSpans",!0,Xo,!0),y("addModeClass",!1,Xo,!0),y("pollInterval",100),y("undoDepth",200,function(g,T){return g.doc.history.undoDepth=T}),y("historyEventDelay",1250),y("viewportMargin",10,function(g){return g.refresh()},!0),y("maxHighlightLength",1e4,Xo,!0),y("moveInputWithCursor",!0,function(g,T){T||g.display.input.resetPosition()}),y("tabindex",null,function(g,T){return g.display.input.getField().tabIndex=T||""}),y("autofocus",null),y("direction","ltr",function(g,T){return g.doc.setDirection(T)},!0),y("phrases",null)}function yb(u,d,y){var g=y&&y!=Jo;if(!d!=!g){var T=u.display.dragFunctions,D=d?lt:An;D(u.display.scroller,"dragstart",T.start),D(u.display.scroller,"dragenter",T.enter),D(u.display.scroller,"dragover",T.over),D(u.display.scroller,"dragleave",T.leave),D(u.display.scroller,"drop",T.drop)}}function up(u){u.options.lineWrapping?(K(u.display.wrapper,"CodeMirror-wrap"),u.display.sizer.style.minWidth="",u.display.sizerWidth=null):(Z(u.display.wrapper,"CodeMirror-wrap"),xm(u)),Dh(u),Ur(u),ql(u),setTimeout(function(){return ro(u)},100)}function Wn(u,d){var y=this;if(!(this instanceof Wn))return new Wn(u,d);this.options=d=d?ge(d):{},ge(cd,d,!1);var g=d.value;typeof g=="string"?g=new Ui(g,d.mode,null,d.lineSeparator,d.direction):d.mode&&(g.modeOption=d.mode),this.doc=g;var T=new Wn.inputStyles[d.inputStyle](this),D=this.display=new z3(u,g,T,d);D.wrapper.CodeMirror=this,og(this),d.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Pm(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 Xe,keySeq:null,specialChars:null},d.autofocus&&!A&&D.input.focus(),f&&h<11&&setTimeout(function(){return y.display.input.reset(!0)},20),sg(this),ep(),ps(this),this.curOp.forceUpdate=!0,_a(this,g),d.autofocus&&!A||this.hasFocus()?setTimeout(function(){y.hasFocus()&&!y.state.focused&&Xl(y)},20):Qo(this);for(var I in fd)fd.hasOwnProperty(I)&&fd[I](this,d[I],Jo);nl(this),d.finishInit&&d.finishInit(this);for(var V=0;V<lp.length;++V)lp[V](this);ms(this),p&&d.lineWrapping&&getComputedStyle(D.lineDiv).textRendering=="optimizelegibility"&&(D.lineDiv.style.textRendering="auto")}Wn.defaults=cd,Wn.optionHandlers=fd;function sg(u){var d=u.display;lt(d.scroller,"mousedown",Nr(u,ig)),f&&h<11?lt(d.scroller,"dblclick",Nr(u,function(U){if(!bn(u,U)){var z=ci(u,U);if(!(!z||ld(u,U)||Mo(u.display,U))){Lt(U);var ie=u.findWordAt(z);il(u.doc,ie.anchor,ie.head)}}})):lt(d.scroller,"dblclick",function(U){return bn(u,U)||Lt(U)}),lt(d.scroller,"contextmenu",function(U){return ap(u,U)}),lt(d.input.getField(),"contextmenu",function(U){d.scroller.contains(U.target)||ap(u,U)});var y,g={end:0};function T(){d.activeTouch&&(y=setTimeout(function(){return d.activeTouch=null},1e3),g=d.activeTouch,g.end=+new Date)}function D(U){if(U.touches.length!=1)return!1;var z=U.touches[0];return z.radiusX<=1&&z.radiusY<=1}function I(U,z){if(z.left==null)return!0;var ie=z.left-U.left,ce=z.top-U.top;return ie*ie+ce*ce>20*20}lt(d.scroller,"touchstart",function(U){if(!bn(u,U)&&!D(U)&&!ld(u,U)){d.input.ensurePolled(),clearTimeout(y);var z=+new Date;d.activeTouch={start:z,moved:!1,prev:z-g.end<=300?g:null},U.touches.length==1&&(d.activeTouch.left=U.touches[0].pageX,d.activeTouch.top=U.touches[0].pageY)}}),lt(d.scroller,"touchmove",function(){d.activeTouch&&(d.activeTouch.moved=!0)}),lt(d.scroller,"touchend",function(U){var z=d.activeTouch;if(z&&!Mo(d,U)&&z.left!=null&&!z.moved&&new Date-z.start<300){var ie=u.coordsChar(d.activeTouch,"page"),ce;!z.prev||I(z,z.prev)?ce=new wn(ie,ie):!z.prev.prev||I(z,z.prev.prev)?ce=u.findWordAt(ie):ce=new wn(Ae(ie.line,0),gt(u.doc,Ae(ie.line+1,0))),u.setSelection(ce.anchor,ce.head),u.focus(),Lt(U)}T()}),lt(d.scroller,"touchcancel",T),lt(d.scroller,"scroll",function(){d.scroller.clientHeight&&(Xu(u,d.scroller.scrollTop),Dr(u,d.scroller.scrollLeft,!0),Yt(u,"scroll",u))}),lt(d.scroller,"mousewheel",function(U){return $m(u,U)}),lt(d.scroller,"DOMMouseScroll",function(U){return $m(u,U)}),lt(d.wrapper,"scroll",function(){return d.wrapper.scrollTop=d.wrapper.scrollLeft=0}),d.dragFunctions={enter:function(U){bn(u,U)||Jt(U)},over:function(U){bn(u,U)||(ub(u,U),Jt(U))},start:function(U){return q3(u,U)},drop:Nr(u,ab),leave:function(U){bn(u,U)||ul(u)}};var V=d.input.getField();lt(V,"keyup",function(U){return bc.call(u,U)}),lt(V,"keydown",Nr(u,pb)),lt(V,"keypress",Nr(u,sd)),lt(V,"focus",function(U){return Xl(u,U)}),lt(V,"blur",function(U){return Qo(u,U)})}var lp=[];Wn.defineInitHook=function(u){return lp.push(u)};function wc(u,d,y,g){var T=u.doc,D;y==null&&(y="add"),y=="smart"&&(T.mode.indent?D=_i(u,d).state:y="prev");var I=u.options.tabSize,V=ot(T,d),U=Ve(V.text,null,I);V.stateAfter&&(V.stateAfter=null);var z=V.text.match(/^\s*/)[0],ie;if(!g&&!/\S/.test(V.text))ie=0,y="not";else if(y=="smart"&&(ie=T.mode.indent(D,V.text.slice(z.length),V.text),ie==we||ie>150)){if(!g)return;y="prev"}y=="prev"?d>T.first?ie=Ve(ot(T,d-1).text,null,I):ie=0:y=="add"?ie=U+u.options.indentUnit:y=="subtract"?ie=U-u.options.indentUnit:typeof y=="number"&&(ie=U+y),ie=Math.max(0,ie);var ce="",Se=0;if(u.options.indentWithTabs)for(var me=Math.floor(ie/I);me;--me)Se+=I,ce+=" ";if(Se<ie&&(ce+=ze(ie-Se)),ce!=z)return Eo(T,ce,Ae(d,0),Ae(d,z.length),"+input"),V.stateAfter=null,!0;for(var Re=0;Re<T.sel.ranges.length;Re++){var $e=T.sel.ranges[Re];if($e.head.line==d&&$e.head.ch<z.length){var Ke=Ae(d,z.length);Aa(T,Re,new wn(Ke,Ke));break}}}var gs=null;function dd(u){gs=u}function Hr(u,d,y,g,T){var D=u.doc;u.display.shift=!1,g||(g=D.sel);var I=+new Date-200,V=T=="paste"||u.state.pasteIncoming>I,U=Dn(d),z=null;if(V&&g.ranges.length>1)if(gs&&gs.text.join(`
`)==d){if(g.ranges.length%gs.text.length==0){z=[];for(var ie=0;ie<gs.text.length;ie++)z.push(D.splitLines(gs.text[ie]))}}else U.length==g.ranges.length&&u.options.pasteLinesPerSelection&&(z=Pe(U,function(Ze){return[Ze]}));for(var ce=u.curOp.updateInput,Se=g.ranges.length-1;Se>=0;Se--){var me=g.ranges[Se],Re=me.from(),$e=me.to();me.empty()&&(y&&y>0?Re=Ae(Re.line,Re.ch-y):u.state.overwrite&&!V?$e=Ae($e.line,Math.min(ot(D,$e.line).text.length,$e.ch+Le(U).length)):V&&gs&&gs.lineWise&&gs.text.join(`
`)==U.join(`
`)&&(Re=$e=Ae(Re.line,0)));var Ke={from:Re,to:$e,text:z?z[Se%z.length]:U,origin:T||(V?"paste":u.state.cutIncoming>I?"cut":"+input")};ti(u.doc,Ke),Jr(u,"inputRead",u,Ke)}d&&!V&&ag(u,d),Ko(u),u.curOp.updateInput<2&&(u.curOp.updateInput=ce),u.curOp.typing=!0,u.state.pasteIncoming=u.state.cutIncoming=-1}function hi(u,d){var y=u.clipboardData&&u.clipboardData.getData("Text");if(y)return u.preventDefault(),!d.isReadOnly()&&!d.options.disableInput&&d.hasFocus()&&xr(d,function(){return Hr(d,y,0,null,"paste")}),!0}function ag(u,d){if(!(!u.options.electricChars||!u.options.smartIndent))for(var y=u.doc.sel,g=y.ranges.length-1;g>=0;g--){var T=y.ranges[g];if(!(T.head.ch>100||g&&y.ranges[g-1].head.line==T.head.line)){var D=u.getModeAt(T.head),I=!1;if(D.electricChars){for(var V=0;V<D.electricChars.length;V++)if(d.indexOf(D.electricChars.charAt(V))>-1){I=wc(u,T.head.line,"smart");break}}else D.electricInput&&D.electricInput.test(ot(u.doc,T.head.line).text.slice(0,T.head.ch))&&(I=wc(u,T.head.line,"smart"));I&&Jr(u,"electricInput",u,T.head.line)}}}function ug(u){for(var d=[],y=[],g=0;g<u.doc.sel.ranges.length;g++){var T=u.doc.sel.ranges[g].head.line,D={anchor:Ae(T,0),head:Ae(T+1,0)};y.push(D),d.push(u.getRange(D.anchor,D.head))}return{text:d,ranges:y}}function cp(u,d,y,g){u.setAttribute("autocorrect",y?"on":"off"),u.setAttribute("autocapitalize",g?"on":"off"),u.setAttribute("spellcheck",!!d)}function lg(){var u=H("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),d=H("div",[u],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return p?u.style.width="1000px":u.setAttribute("wrap","off"),N&&(u.style.border="1px solid black"),d}function bb(u){var d=u.optionHandlers,y=u.helpers={};u.prototype={constructor:u,focus:function(){ve(this).focus(),this.display.input.focus()},setOption:function(g,T){var D=this.options,I=D[g];D[g]==T&&g!="mode"||(D[g]=T,d.hasOwnProperty(g)&&Nr(this,d[g])(this,T,I),Yt(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"](np(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:di(function(g,T){var D=g.token?g:u.getMode(this.options,g);if(D.startState)throw new Error("Overlays may not be stateful.");Te(this.state.overlays,{mode:D,modeSpec:g,opaque:T&&T.opaque,priority:T&&T.priority||0},function(I){return I.priority}),this.state.modeGen++,Ur(this)}),removeOverlay:di(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++,Ur(this);return}}}),indentLine:di(function(g,T,D){typeof T!="string"&&typeof T!="number"&&(T==null?T=this.options.smartIndent?"smart":"prev":T=T?"add":"subtract"),je(this.doc,g)&&wc(this,g,T,D)}),indentSelection:di(function(g){for(var T=this.doc.sel.ranges,D=-1,I=0;I<T.length;I++){var V=T[I];if(V.empty())V.head.line>D&&(wc(this,V.head.line,g,!0),D=V.head.line,I==this.doc.sel.primIndex&&Ko(this));else{var U=V.from(),z=V.to(),ie=Math.max(D,U.line);D=Math.min(this.lastLine(),z.line-(z.ch?0:1))+1;for(var ce=ie;ce<D;++ce)wc(this,ce,g);var Se=this.doc.sel.ranges;U.ch==0&&T.length==Se.length&&Se[I].from().ch>0&&Aa(this.doc,I,new wn(U,Se[I].to()),pe)}}}),getTokenAt:function(g,T){return er(this,g,T)},getLineTokens:function(g,T){return er(this,Ae(g),T,!0)},getTokenTypeAt:function(g){g=gt(this.doc,g);var T=qu(this,ot(this.doc,g.line)),D=0,I=(T.length-1)/2,V=g.ch,U;if(V==0)U=T[2];else for(;;){var z=D+I>>1;if((z?T[z*2-1]:0)>=V)I=z;else if(T[z*2+1]<V)D=z+1;else{U=T[z*2+2];break}}var ie=U?U.indexOf("overlay "):-1;return ie<0?U:ie==0?null:U.slice(0,ie-1)},getModeAt:function(g){var T=this.doc.mode;return T.innerMode?u.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(!y.hasOwnProperty(T))return D;var I=y[T],V=this.getModeAt(g);if(typeof V[T]=="string")I[V[T]]&&D.push(I[V[T]]);else if(V[T])for(var U=0;U<V[T].length;U++){var z=I[V[T][U]];z&&D.push(z)}else V.helperType&&I[V.helperType]?D.push(I[V.helperType]):I[V.name]&&D.push(I[V.name]);for(var ie=0;ie<I._global.length;ie++){var ce=I._global[ie];ce.pred(V,this)&&et(D,ce.val)==-1&&D.push(ce.val)}return D},getStateAfter:function(g,T){var D=this.doc;return g=ga(D,g??D.first+D.size-1),_i(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=gt(this.doc,g):D=g?I.from():I.to(),Wo(this,D,T||"page")},charCoords:function(g,T){return Yl(this,gt(this.doc,g),T||"page")},coordsChar:function(g,T){return g=Wl(this,g,T||"page"),Hf(this,g.left,g.top)},lineAtHeight:function(g,T){return g=Wl(this,{top:g,left:0},T||"page").top,le(this.doc,g+this.display.viewOffset)},heightAtLine:function(g,T,D){var I=!1,V;if(typeof g=="number"){var U=this.doc.first+this.doc.size-1;g<this.doc.first?g=this.doc.first:g>U&&(g=U,I=!0),V=ot(this.doc,g)}else V=g;return Gl(this,V,{top:0,left:0},T||"page",D||I).top+(I?this.doc.height-xa(V):0)},defaultTextHeight:function(){return Ql(this.display)},defaultCharWidth:function(){return Yu(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(g,T,D,I,V){var U=this.display;g=Wo(this,gt(this.doc,g));var z=g.bottom,ie=g.left;if(T.style.position="absolute",T.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(T),U.sizer.appendChild(T),I=="over")z=g.top;else if(I=="above"||I=="near"){var ce=Math.max(U.wrapper.clientHeight,this.doc.height),Se=Math.max(U.sizer.clientWidth,U.lineSpace.clientWidth);(I=="above"||g.bottom+T.offsetHeight>ce)&&g.top>T.offsetHeight?z=g.top-T.offsetHeight:g.bottom+T.offsetHeight<=ce&&(z=g.bottom),ie+T.offsetWidth>Se&&(ie=Se-T.offsetWidth)}T.style.top=z+"px",T.style.left=T.style.right="",V=="right"?(ie=U.sizer.clientWidth-T.offsetWidth,T.style.right="0px"):(V=="left"?ie=0:V=="middle"&&(ie=(U.sizer.clientWidth-T.offsetWidth)/2),T.style.left=ie+"px"),D&&Mh(this,{left:ie,top:z,right:ie+T.offsetWidth,bottom:z+T.offsetHeight})},triggerOnKeyDown:di(pb),triggerOnKeyPress:di(sd),triggerOnKeyUp:bc,triggerOnMouseDown:di(ig),execCommand:function(g){if(gc.hasOwnProperty(g))return gc[g].call(null,this)},triggerElectric:di(function(g){ag(this,g)}),findPosH:function(g,T,D,I){var V=1;T<0&&(V=-1,T=-T);for(var U=gt(this.doc,g),z=0;z<T&&(U=Cc(this.doc,U,V,D,I),!U.hitSide);++z);return U},moveH:di(function(g,T){var D=this;this.extendSelectionsBy(function(I){return D.display.shift||D.doc.extend||I.empty()?Cc(D.doc,I.head,g,T,D.options.rtlMoveVisually):g<0?I.from():I.to()},ye)}),deleteH:di(function(g,T){var D=this.doc.sel,I=this.doc;D.somethingSelected()?I.replaceSelection("",null,"+delete"):bu(this,function(V){var U=Cc(I,V.head,g,T,!1);return g<0?{from:U,to:V.head}:{from:V.head,to:U}})}),findPosV:function(g,T,D,I){var V=1,U=I;T<0&&(V=-1,T=-T);for(var z=gt(this.doc,g),ie=0;ie<T;++ie){var ce=Wo(this,z,"div");if(U==null?U=ce.left:ce.left=U,z=fp(this,ce,V,D),z.hitSide)break}return z},moveV:di(function(g,T){var D=this,I=this.doc,V=[],U=!this.display.shift&&!I.extend&&I.sel.somethingSelected();if(I.extendSelectionsBy(function(ie){if(U)return g<0?ie.from():ie.to();var ce=Wo(D,ie.head,"div");ie.goalColumn!=null&&(ce.left=ie.goalColumn),V.push(ce.left);var Se=fp(D,ce,g,T);return T=="page"&&ie==I.sel.primary()&&yo(D,Yl(D,Se,"div").top-ce.top),Se},ye),V.length)for(var z=0;z<I.sel.ranges.length;z++)I.sel.ranges[z].goalColumn=V[z]}),findWordAt:function(g){var T=this.doc,D=ot(T,g.line).text,I=g.ch,V=g.ch;if(D){var U=this.getHelper(g,"wordChars");(g.sticky=="before"||V==D.length)&&I?--I:++V;for(var z=D.charAt(I),ie=kt(z,U)?function(ce){return kt(ce,U)}:/\s/.test(z)?function(ce){return/\s/.test(ce)}:function(ce){return!/\s/.test(ce)&&!kt(ce)};I>0&&ie(D.charAt(I-1));)--I;for(;V<D.length&&ie(D.charAt(V));)++V}return new wn(Ae(g.line,I),Ae(g.line,V))},toggleOverwrite:function(g){g!=null&&g==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?K(this.display.cursorDiv,"CodeMirror-overwrite"):Z(this.display.cursorDiv,"CodeMirror-overwrite"),Yt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==oe(ae(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:di(function(g,T){Fo(this,g,T)}),getScrollInfo:function(){var g=this.display.scroller;return{left:g.scrollLeft,top:g.scrollTop,height:g.scrollHeight-fs(this)-this.display.barHeight,width:g.scrollWidth-fs(this)-this.display.barWidth,clientHeight:$f(this),clientWidth:au(this)}},scrollIntoView:di(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:Ae(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?Sa(this,g):Fm(this,g.from,g.to,g.margin)}),setSize:di(function(g,T){var D=this,I=function(U){return typeof U=="number"||/^\d+$/.test(String(U))?U+"px":U};g!=null&&(this.display.wrapper.style.width=I(g)),T!=null&&(this.display.wrapper.style.height=I(T)),this.options.lineWrapping&&Mm(this);var V=this.display.viewFrom;this.doc.iter(V,this.display.viewTo,function(U){if(U.widgets){for(var z=0;z<U.widgets.length;z++)if(U.widgets[z].noHScroll){qs(D,V,"widget");break}}++V}),this.curOp.forceUpdate=!0,Yt(this,"refresh",this)}),operation:function(g){return xr(this,g)},startOperation:function(){return ps(this)},endOperation:function(){return ms(this)},refresh:di(function(){var g=this.display.cachedTextHeight;Ur(this),this.curOp.forceUpdate=!0,ql(this),Fo(this,this.doc.scrollLeft,this.doc.scrollTop),el(this.display),(g==null||Math.abs(g-Ql(this.display))>.5||this.options.lineWrapping)&&Dh(this),Yt(this,"refresh",this)}),swapDoc:di(function(g){var T=this.doc;return T.cm=null,this.state.selectingText&&this.state.selectingText(),_a(this,g),ql(this),this.display.input.reset(),Fo(this,g.scrollLeft,g.scrollTop),this.curOp.forceScroll=!0,Jr(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}},Qt(u),u.registerHelper=function(g,T,D){y.hasOwnProperty(g)||(y[g]=u[g]={_global:[]}),y[g][T]=D},u.registerGlobalHelper=function(g,T,D,I){u.registerHelper(g,T,I),y[g]._global.push({pred:D,val:I})}}function Cc(u,d,y,g,T){var D=d,I=y,V=ot(u,d.line),U=T&&u.direction=="rtl"?-y:y;function z(){var nt=d.line+U;return nt<u.first||nt>=u.first+u.size?!1:(d=new Ae(nt,d.ch,d.sticky),V=ot(u,nt))}function ie(nt){var rt;if(g=="codepoint"){var st=V.text.charCodeAt(d.ch+(y>0?0:-1));if(isNaN(st))rt=null;else{var Tt=y>0?st>=55296&&st<56320:st>=56320&&st<57343;rt=new Ae(d.line,Math.max(0,Math.min(V.text.length,d.ch+y*(Tt?2:1))),-y)}}else T?rt=fb(u.cm,V,d,y):rt=ip(V,d,y);if(rt==null)if(!nt&&z())d=id(T,u.cm,V,d.line,U);else return!1;else d=rt;return!0}if(g=="char"||g=="codepoint")ie();else if(g=="column")ie(!0);else if(g=="word"||g=="group")for(var ce=null,Se=g=="group",me=u.cm&&u.cm.getHelper(d,"wordChars"),Re=!0;!(y<0&&!ie(!Re));Re=!1){var $e=V.text.charAt(d.ch)||`
`,Ke=kt($e,me)?"w":Se&&$e==`
`?"n":!Se||/\s/.test($e)?null:"p";if(Se&&!Re&&!Ke&&(Ke="s"),ce&&ce!=Ke){y<0&&(y=1,ie(),d.sticky="after");break}if(Ke&&(ce=Ke),y>0&&!ie(!Re))break}var Ze=Wh(u,d,D,I,!0);return tn(D,Ze)&&(Ze.hitSide=!0),Ze}function fp(u,d,y,g){var T=u.doc,D=d.left,I;if(g=="page"){var V=Math.min(u.display.wrapper.clientHeight,ve(u).innerHeight||T(u).documentElement.clientHeight),U=Math.max(V-.5*Ql(u.display),3);I=(y>0?d.bottom:d.top)+y*U}else g=="line"&&(I=y>0?d.bottom+3:d.top-3);for(var z;z=Hf(u,D,I),!!z.outside;){if(y<0?I<=0:I>=T.height){z.hitSide=!0;break}I+=y*5}return z}var Mn=function(u){this.cm=u,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Xe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Mn.prototype.init=function(u){var d=this,y=this,g=y.cm,T=y.div=u.lineDiv;T.contentEditable=!0,cp(T,g.options.spellcheck,g.options.autocorrect,g.options.autocapitalize);function D(V){for(var U=V.target;U;U=U.parentNode){if(U==T)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(U.className))break}return!1}lt(T,"paste",function(V){!D(V)||bn(g,V)||hi(V,g)||h<=11&&setTimeout(Nr(g,function(){return d.updateFromDOM()}),20)}),lt(T,"compositionstart",function(V){d.composing={data:V.data,done:!1}}),lt(T,"compositionupdate",function(V){d.composing||(d.composing={data:V.data,done:!1})}),lt(T,"compositionend",function(V){d.composing&&(V.data!=d.composing.data&&d.readFromDOMSoon(),d.composing.done=!0)}),lt(T,"touchstart",function(){return y.forceCompositionEnd()}),lt(T,"input",function(){d.composing||d.readFromDOMSoon()});function I(V){if(!(!D(V)||bn(g,V))){if(g.somethingSelected())dd({lineWise:!1,text:g.getSelections()}),V.type=="cut"&&g.replaceSelection("",null,"cut");else if(g.options.lineWiseCopyCut){var U=ug(g);dd({lineWise:!0,text:U.text}),V.type=="cut"&&g.operation(function(){g.setSelections(U.ranges,0,pe),g.replaceSelection("",null,"cut")})}else return;if(V.clipboardData){V.clipboardData.clearData();var z=gs.text.join(`
`);if(V.clipboardData.setData("Text",z),V.clipboardData.getData("Text")==z){V.preventDefault();return}}var ie=lg(),ce=ie.firstChild;cp(ce),g.display.lineSpace.insertBefore(ie,g.display.lineSpace.firstChild),ce.value=gs.text.join(`
`);var Se=oe(Ee(T));se(ce),setTimeout(function(){g.display.lineSpace.removeChild(ie),Se.focus(),Se==T&&y.showPrimarySelection()},50)}}lt(T,"copy",I),lt(T,"cut",I)},Mn.prototype.screenReaderLabelChanged=function(u){u?this.div.setAttribute("aria-label",u):this.div.removeAttribute("aria-label")},Mn.prototype.prepareSelection=function(){var u=qf(this.cm,!1);return u.focus=oe(Ee(this.div))==this.div,u},Mn.prototype.showSelection=function(u,d){!u||!this.cm.display.view.length||((u.focus||d)&&this.showPrimarySelection(),this.showMultipleSelections(u))},Mn.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Mn.prototype.showPrimarySelection=function(){var u=this.getSelection(),d=this.cm,y=d.doc.sel.primary(),g=y.from(),T=y.to();if(d.display.viewTo==d.display.viewFrom||g.line>=d.display.viewTo||T.line<d.display.viewFrom){u.removeAllRanges();return}var D=_c(d,u.anchorNode,u.anchorOffset),I=_c(d,u.focusNode,u.focusOffset);if(!(D&&!D.bad&&I&&!I.bad&&tt($i(D,I),g)==0&&tt(Ar(D,I),T)==0)){var V=d.display.view,U=g.line>=d.display.viewFrom&&cg(d,g)||{node:V[0].measure.map[2],offset:0},z=T.line<d.display.viewTo&&cg(d,T);if(!z){var ie=V[V.length-1].measure,ce=ie.maps?ie.maps[ie.maps.length-1]:ie.map;z={node:ce[ce.length-1],offset:ce[ce.length-2]-ce[ce.length-3]}}if(!U||!z){u.removeAllRanges();return}var Se=u.rangeCount&&u.getRangeAt(0),me;try{me=ue(U.node,U.offset,z.offset,z.node)}catch{}me&&(!i&&d.state.focused?(u.collapse(U.node,U.offset),me.collapsed||(u.removeAllRanges(),u.addRange(me))):(u.removeAllRanges(),u.addRange(me)),Se&&u.anchorNode==null?u.addRange(Se):i&&this.startGracePeriod()),this.rememberSelection()}},Mn.prototype.startGracePeriod=function(){var u=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){u.gracePeriod=!1,u.selectionChanged()&&u.cm.operation(function(){return u.cm.curOp.selectionChanged=!0})},20)},Mn.prototype.showMultipleSelections=function(u){ee(this.cm.display.cursorDiv,u.cursors),ee(this.cm.display.selectionDiv,u.selection)},Mn.prototype.rememberSelection=function(){var u=this.getSelection();this.lastAnchorNode=u.anchorNode,this.lastAnchorOffset=u.anchorOffset,this.lastFocusNode=u.focusNode,this.lastFocusOffset=u.focusOffset},Mn.prototype.selectionInEditor=function(){var u=this.getSelection();if(!u.rangeCount)return!1;var d=u.getRangeAt(0).commonAncestorContainer;return ne(this.div,d)},Mn.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||oe(Ee(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Mn.prototype.blur=function(){this.div.blur()},Mn.prototype.getField=function(){return this.div},Mn.prototype.supportsTouch=function(){return!0},Mn.prototype.receivedFocus=function(){var u=this,d=this;this.selectionInEditor()?setTimeout(function(){return u.pollSelection()},20):xr(this.cm,function(){return d.cm.curOp.selectionChanged=!0});function y(){d.cm.state.focused&&(d.pollSelection(),d.polling.set(d.cm.options.pollInterval,y))}this.polling.set(this.cm.options.pollInterval,y)},Mn.prototype.selectionChanged=function(){var u=this.getSelection();return u.anchorNode!=this.lastAnchorNode||u.anchorOffset!=this.lastAnchorOffset||u.focusNode!=this.lastFocusNode||u.focusOffset!=this.lastFocusOffset},Mn.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var u=this.getSelection(),d=this.cm;if(O&&v&&this.cm.display.gutterSpecs.length&&Eb(u.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var y=_c(d,u.anchorNode,u.anchorOffset),g=_c(d,u.focusNode,u.focusOffset);y&&g&&xr(d,function(){Oi(d.doc,Ys(y,g),pe),(y.bad||g.bad)&&(d.curOp.selectionChanged=!0)})}}},Mn.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var u=this.cm,d=u.display,y=u.doc.sel.primary(),g=y.from(),T=y.to();if(g.ch==0&&g.line>u.firstLine()&&(g=Ae(g.line-1,ot(u.doc,g.line-1).length)),T.ch==ot(u.doc,T.line).text.length&&T.line<u.lastLine()&&(T=Ae(T.line+1,0)),g.line<d.viewFrom||T.line>d.viewTo-1)return!1;var D,I,V;g.line==d.viewFrom||(D=fi(u,g.line))==0?(I=Y(d.view[0].line),V=d.view[0].node):(I=Y(d.view[D].line),V=d.view[D-1].node.nextSibling);var U=fi(u,T.line),z,ie;if(U==d.view.length-1?(z=d.viewTo-1,ie=d.lineDiv.lastChild):(z=Y(d.view[U+1].line)-1,ie=d.view[U+1].node.previousSibling),!V)return!1;for(var ce=u.doc.splitLines(fg(u,V,ie,I,z)),Se=li(u.doc,Ae(I,0),Ae(z,ot(u.doc,z).text.length));ce.length>1&&Se.length>1;)if(Le(ce)==Le(Se))ce.pop(),Se.pop(),z--;else if(ce[0]==Se[0])ce.shift(),Se.shift(),I++;else break;for(var me=0,Re=0,$e=ce[0],Ke=Se[0],Ze=Math.min($e.length,Ke.length);me<Ze&&$e.charCodeAt(me)==Ke.charCodeAt(me);)++me;for(var nt=Le(ce),rt=Le(Se),st=Math.min(nt.length-(ce.length==1?me:0),rt.length-(Se.length==1?me:0));Re<st&&nt.charCodeAt(nt.length-Re-1)==rt.charCodeAt(rt.length-Re-1);)++Re;if(ce.length==1&&Se.length==1&&I==g.line)for(;me&&me>g.ch&&nt.charCodeAt(nt.length-Re-1)==rt.charCodeAt(rt.length-Re-1);)me--,Re++;ce[ce.length-1]=nt.slice(0,nt.length-Re).replace(/^\u200b+/,""),ce[0]=ce[0].slice(me).replace(/\u200b+$/,"");var Tt=Ae(I,me),vt=Ae(z,Se.length?Le(Se).length-Re:0);if(ce.length>1||ce[0]||tt(Tt,vt))return Eo(u.doc,ce,Tt,vt,"+input"),!0},Mn.prototype.ensurePolled=function(){this.forceCompositionEnd()},Mn.prototype.reset=function(){this.forceCompositionEnd()},Mn.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Mn.prototype.readFromDOMSoon=function(){var u=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(u.readDOMTimeout=null,u.composing)if(u.composing.done)u.composing=null;else return;u.updateFromDOM()},80))},Mn.prototype.updateFromDOM=function(){var u=this;(this.cm.isReadOnly()||!this.pollContent())&&xr(this.cm,function(){return Ur(u.cm)})},Mn.prototype.setUneditable=function(u){u.contentEditable="false"},Mn.prototype.onKeyPress=function(u){u.charCode==0||this.composing||(u.preventDefault(),this.cm.isReadOnly()||Nr(this.cm,Hr)(this.cm,String.fromCharCode(u.charCode==null?u.keyCode:u.charCode),0))},Mn.prototype.readOnlyChanged=function(u){this.div.contentEditable=String(u!="nocursor")},Mn.prototype.onContextMenu=function(){},Mn.prototype.resetPosition=function(){},Mn.prototype.needsContentAttribute=!0;function cg(u,d){var y=km(u,d.line);if(!y||y.hidden)return null;var g=ot(u.doc,d.line),T=Nm(y,g,d.line),D=Et(g,u.doc.direction),I="left";if(D){var V=_n(D,d.ch);I=V%2?"right":"left"}var U=qy(T.map,d.ch,I);return U.offset=U.collapse=="right"?U.end:U.start,U}function Eb(u){for(var d=u;d;d=d.parentNode)if(/CodeMirror-gutter-wrapper/.test(d.className))return!0;return!1}function Tu(u,d){return d&&(u.bad=!0),u}function fg(u,d,y,g,T){var D="",I=!1,V=u.doc.lineSeparator(),U=!1;function z(me){return function(Re){return Re.id==me}}function ie(){I&&(D+=V,U&&(D+=V),I=U=!1)}function ce(me){me&&(ie(),D+=me)}function Se(me){if(me.nodeType==1){var Re=me.getAttribute("cm-text");if(Re){ce(Re);return}var $e=me.getAttribute("cm-marker"),Ke;if($e){var Ze=u.findMarks(Ae(g,0),Ae(T+1,0),z(+$e));Ze.length&&(Ke=Ze[0].find(0))&&ce(li(u.doc,Ke.from,Ke.to).join(V));return}if(me.getAttribute("contenteditable")=="false")return;var nt=/^(pre|div|p|li|table|br)$/i.test(me.nodeName);if(!/^br$/i.test(me.nodeName)&&me.textContent.length==0)return;nt&&ie();for(var rt=0;rt<me.childNodes.length;rt++)Se(me.childNodes[rt]);/^(pre|p)$/i.test(me.nodeName)&&(U=!0),nt&&(I=!0)}else me.nodeType==3&&ce(me.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Se(d),d!=y;)d=d.nextSibling,U=!1;return D}function _c(u,d,y){var g;if(d==u.display.lineDiv){if(g=u.display.lineDiv.childNodes[y],!g)return Tu(u.clipPos(Ae(u.display.viewTo-1)),!0);d=null,y=0}else for(g=d;;g=g.parentNode){if(!g||g==u.display.lineDiv)return null;if(g.parentNode&&g.parentNode==u.display.lineDiv)break}for(var T=0;T<u.display.view.length;T++){var D=u.display.view[T];if(D.node==g)return xb(D,d,y)}}function xb(u,d,y){var g=u.text.firstChild,T=!1;if(!d||!ne(g,d))return Tu(Ae(Y(u.line),0),!0);if(d==g&&(T=!0,d=g.childNodes[y],y=0,!d)){var D=u.rest?Le(u.rest):u.line;return Tu(Ae(Y(D),D.text.length),T)}var I=d.nodeType==3?d:null,V=d;for(!I&&d.childNodes.length==1&&d.firstChild.nodeType==3&&(I=d.firstChild,y&&(y=I.nodeValue.length));V.parentNode!=g;)V=V.parentNode;var U=u.measure,z=U.maps;function ie(Ke,Ze,nt){for(var rt=-1;rt<(z?z.length:0);rt++)for(var st=rt<0?U.map:z[rt],Tt=0;Tt<st.length;Tt+=3){var vt=st[Tt+2];if(vt==Ke||vt==Ze){var Ht=Y(rt<0?u.line:u.rest[rt]),Ln=st[Tt]+nt;return(nt<0||vt!=Ke)&&(Ln=st[Tt+(nt?1:0)]),Ae(Ht,Ln)}}}var ce=ie(I,V,y);if(ce)return Tu(ce,T);for(var Se=V.nextSibling,me=I?I.nodeValue.length-y:0;Se;Se=Se.nextSibling){if(ce=ie(Se,Se.firstChild,0),ce)return Tu(Ae(ce.line,ce.ch-me),T);me+=Se.textContent.length}for(var Re=V.previousSibling,$e=y;Re;Re=Re.previousSibling){if(ce=ie(Re,Re.firstChild,-1),ce)return Tu(Ae(ce.line,ce.ch+$e),T);$e+=Re.textContent.length}}var ar=function(u){this.cm=u,this.prevInput="",this.pollingFast=!1,this.polling=new Xe,this.hasSelection=!1,this.composing=null,this.resetting=!1};ar.prototype.init=function(u){var d=this,y=this,g=this.cm;this.createField(u);var T=this.textarea;u.wrapper.insertBefore(this.wrapper,u.wrapper.firstChild),N&&(T.style.width="0px"),lt(T,"input",function(){f&&h>=9&&d.hasSelection&&(d.hasSelection=null),y.poll()}),lt(T,"paste",function(I){bn(g,I)||hi(I,g)||(g.state.pasteIncoming=+new Date,y.fastPoll())});function D(I){if(!bn(g,I)){if(g.somethingSelected())dd({lineWise:!1,text:g.getSelections()});else if(g.options.lineWiseCopyCut){var V=ug(g);dd({lineWise:!0,text:V.text}),I.type=="cut"?g.setSelections(V.ranges,null,pe):(y.prevInput="",T.value=V.text.join(`
`),se(T))}else return;I.type=="cut"&&(g.state.cutIncoming=+new Date)}}lt(T,"cut",D),lt(T,"copy",D),lt(u.scroller,"paste",function(I){if(!(Mo(u,I)||bn(g,I))){if(!T.dispatchEvent){g.state.pasteIncoming=+new Date,y.focus();return}var V=new Event("paste");V.clipboardData=I.clipboardData,T.dispatchEvent(V)}}),lt(u.lineSpace,"selectstart",function(I){Mo(u,I)||Lt(I)}),lt(T,"compositionstart",function(){var I=g.getCursor("from");y.composing&&y.composing.range.clear(),y.composing={start:I,range:g.markText(I,g.getCursor("to"),{className:"CodeMirror-composing"})}}),lt(T,"compositionend",function(){y.composing&&(y.poll(),y.composing.range.clear(),y.composing=null)})},ar.prototype.createField=function(u){this.wrapper=lg(),this.textarea=this.wrapper.firstChild;var d=this.cm.options;cp(this.textarea,d.spellcheck,d.autocorrect,d.autocapitalize)},ar.prototype.screenReaderLabelChanged=function(u){u?this.textarea.setAttribute("aria-label",u):this.textarea.removeAttribute("aria-label")},ar.prototype.prepareSelection=function(){var u=this.cm,d=u.display,y=u.doc,g=qf(u);if(u.options.moveInputWithCursor){var T=Wo(u,y.sel.primary().head,"div"),D=d.wrapper.getBoundingClientRect(),I=d.lineDiv.getBoundingClientRect();g.teTop=Math.max(0,Math.min(d.wrapper.clientHeight-10,T.top+I.top-D.top)),g.teLeft=Math.max(0,Math.min(d.wrapper.clientWidth-10,T.left+I.left-D.left))}return g},ar.prototype.showSelection=function(u){var d=this.cm,y=d.display;ee(y.cursorDiv,u.cursors),ee(y.selectionDiv,u.selection),u.teTop!=null&&(this.wrapper.style.top=u.teTop+"px",this.wrapper.style.left=u.teLeft+"px")},ar.prototype.reset=function(u){if(!(this.contextMenuPending||this.composing&&u)){var d=this.cm;if(this.resetting=!0,d.somethingSelected()){this.prevInput="";var y=d.getSelection();this.textarea.value=y,d.state.focused&&se(this.textarea),f&&h>=9&&(this.hasSelection=y)}else u||(this.prevInput=this.textarea.value="",f&&h>=9&&(this.hasSelection=null));this.resetting=!1}},ar.prototype.getField=function(){return this.textarea},ar.prototype.supportsTouch=function(){return!1},ar.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!A||oe(Ee(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},ar.prototype.blur=function(){this.textarea.blur()},ar.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ar.prototype.receivedFocus=function(){this.slowPoll()},ar.prototype.slowPoll=function(){var u=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){u.poll(),u.cm.state.focused&&u.slowPoll()})},ar.prototype.fastPoll=function(){var u=!1,d=this;d.pollingFast=!0;function y(){var g=d.poll();!g&&!u?(u=!0,d.polling.set(60,y)):(d.pollingFast=!1,d.slowPoll())}d.polling.set(20,y)},ar.prototype.poll=function(){var u=this,d=this.cm,y=this.textarea,g=this.prevInput;if(this.contextMenuPending||this.resetting||!d.state.focused||Kr(y)&&!g&&!this.composing||d.isReadOnly()||d.options.disableInput||d.state.keySeq)return!1;var T=y.value;if(T==g&&!d.somethingSelected())return!1;if(f&&h>=9&&this.hasSelection===T||L&&/[\uf700-\uf7ff]/.test(T))return d.display.input.reset(),!1;if(d.doc.sel==d.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,V=Math.min(g.length,T.length);I<V&&g.charCodeAt(I)==T.charCodeAt(I);)++I;return xr(d,function(){Hr(d,T.slice(I),g.length-I,null,u.composing?"*compose":null),T.length>1e3||T.indexOf(`
`)>-1?y.value=u.prevInput="":u.prevInput=T,u.composing&&(u.composing.range.clear(),u.composing.range=d.markText(u.composing.start,d.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ar.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ar.prototype.onKeyPress=function(){f&&h>=9&&(this.hasSelection=null),this.fastPoll()},ar.prototype.onContextMenu=function(u){var d=this,y=d.cm,g=y.display,T=d.textarea;d.contextMenuPending&&d.contextMenuPending();var D=ci(y,u),I=g.scroller.scrollTop;if(!D||S)return;var V=y.options.resetSelectionOnContextMenu;V&&y.doc.sel.contains(D)==-1&&Nr(y,Oi)(y.doc,Ys(D),pe);var U=T.style.cssText,z=d.wrapper.style.cssText,ie=d.wrapper.offsetParent.getBoundingClientRect();d.wrapper.style.cssText="position: static",T.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(u.clientY-ie.top-5)+"px; left: "+(u.clientX-ie.left-5)+`px;
z-index: 1000; background: `+(f?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var ce;p&&(ce=T.ownerDocument.defaultView.scrollY),g.input.focus(),p&&T.ownerDocument.defaultView.scrollTo(null,ce),g.input.reset(),y.somethingSelected()||(T.value=d.prevInput=" "),d.contextMenuPending=me,g.selForContextMenu=y.doc.sel,clearTimeout(g.detectingSelectAll);function Se(){if(T.selectionStart!=null){var $e=y.somethingSelected(),Ke=""+($e?T.value:"");T.value="⇚",T.value=Ke,d.prevInput=$e?"":"",T.selectionStart=1,T.selectionEnd=Ke.length,g.selForContextMenu=y.doc.sel}}function me(){if(d.contextMenuPending==me&&(d.contextMenuPending=!1,d.wrapper.style.cssText=z,T.style.cssText=U,f&&h<9&&g.scrollbars.setScrollTop(g.scroller.scrollTop=I),T.selectionStart!=null)){(!f||f&&h<9)&&Se();var $e=0,Ke=function(){g.selForContextMenu==y.doc.sel&&T.selectionStart==0&&T.selectionEnd>0&&d.prevInput==""?Nr(y,Qh)(y):$e++<10?g.detectingSelectAll=setTimeout(Ke,500):(g.selForContextMenu=null,g.input.reset())};g.detectingSelectAll=setTimeout(Ke,200)}}if(f&&h>=9&&Se(),q){Jt(u);var Re=function(){An(window,"mouseup",Re),setTimeout(me,20)};lt(window,"mouseup",Re)}else setTimeout(me,50)},ar.prototype.readOnlyChanged=function(u){u||this.reset(),this.textarea.disabled=u=="nocursor",this.textarea.readOnly=!!u},ar.prototype.setUneditable=function(){},ar.prototype.needsContentAttribute=!1;function dp(u,d){if(d=d?ge(d):{},d.value=u.value,!d.tabindex&&u.tabIndex&&(d.tabindex=u.tabIndex),!d.placeholder&&u.placeholder&&(d.placeholder=u.placeholder),d.autofocus==null){var y=oe(Ee(u));d.autofocus=y==u||u.getAttribute("autofocus")!=null&&y==document.body}function g(){u.value=V.getValue()}var T;if(u.form&&(lt(u.form,"submit",g),!d.leaveSubmitMethodAlone)){var D=u.form;T=D.submit;try{var I=D.submit=function(){g(),D.submit=T,D.submit(),D.submit=I}}catch{}}d.finishInit=function(U){U.save=g,U.getTextArea=function(){return u},U.toTextArea=function(){U.toTextArea=isNaN,g(),u.parentNode.removeChild(U.getWrapperElement()),u.style.display="",u.form&&(An(u.form,"submit",g),!d.leaveSubmitMethodAlone&&typeof u.form.submit=="function"&&(u.form.submit=T))}},u.style.display="none";var V=Wn(function(U){return u.parentNode.insertBefore(U,u.nextSibling)},d);return V}function dg(u){u.off=An,u.on=lt,u.wheelEventPixels=Vh,u.Doc=Ui,u.splitLines=Dn,u.countColumn=Ve,u.findColumn=re,u.isWordChar=At,u.Pass=we,u.signal=Yt,u.Line=Vl,u.changeEnd=Ca,u.scrollbarModel=hu,u.Pos=Ae,u.cmpPos=tt,u.modes=Zi,u.mimeModes=dn,u.resolveMode=Bi,u.getMode=eo,u.modeExtensions=to,u.extendMode=mo,u.copyState=ui,u.startState=Oo,u.innerMode=qo,u.commands=gc,u.keyMap=Qs,u.keyName=eg,u.isModifierKey=tp,u.lookupKey=ll,u.normalizeKeyMap=cb,u.StringStream=Fn,u.SharedTextMarker=hc,u.TextMarker=Da,u.LineWidget=fc,u.e_preventDefault=Lt,u.e_stopPropagation=Rn,u.e_stop=Jt,u.addClass=K,u.contains=ne,u.rmClass=Z,u.keyNames=Na}vb(Wn),bb(Wn);var Tb="iter insert remove copy getEditor constructor".split(" ");for(var Ac in Ui.prototype)Ui.prototype.hasOwnProperty(Ac)&&et(Tb,Ac)<0&&(Wn.prototype[Ac]=function(u){return function(){return u.apply(this.doc,arguments)}}(Ui.prototype[Ac]));return Qt(Ui),Wn.inputStyles={textarea:ar,contenteditable:Mn},Wn.defineMode=function(u){!Wn.defaults.mode&&u!="null"&&(Wn.defaults.mode=u),Xr.apply(this,arguments)},Wn.defineMIME=Ji,Wn.defineMode("null",function(){return{token:function(u){return u.skipToEnd()}}}),Wn.defineMIME("text/plain","null"),Wn.defineExtension=function(u,d){Wn.prototype[u]=d},Wn.defineDocExtension=function(u,d){Ui.prototype[u]=d},Wn.fromTextArea=dp,dg(Wn),Wn.version="5.65.19",Wn})}(Cy)),Cy.exports}var R7=No();const Ut=Lr(R7),$ae=Kn({__proto__:null,default:Ut},[R7]);var M7={exports:{}},L7;function Uae(){return L7||(L7=1,function(e,t){(function(n){n(No())})(function(n){var r="CodeMirror-hint",i="CodeMirror-hint-active";n.showHint=function(_,N,O){if(!N)return _.showHint(O);O&&O.async&&(N.async=!0);var A={hint:N};if(O)for(var L in O)A[L]=O[L];return _.showHint(A)},n.defineExtension("showHint",function(_){_=f(this,this.getCursor("start"),_);var N=this.listSelections();if(!(N.length>1)){if(this.somethingSelected()){if(!_.hint.supportsSelection)return;for(var O=0;O<N.length;O++)if(N[O].head.line!=N[O].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var A=this.state.completionActive=new o(this,_);A.options.hint&&(n.signal(this,"startCompletion",this),A.update(!0))}}),n.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function o(_,N){if(this.cm=_,this.options=N,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;_.on("cursorActivity",this.activityFunc=function(){O.cursorActivity()})}}var a=window.requestAnimationFrame||function(_){return setTimeout(_,1e3/60)},l=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){var O=_.list[N],A=this;this.cm.operation(function(){O.hint?O.hint(A.cm,_,O):A.cm.replaceRange(h(O),O.from||_.from,O.to||_.to,"complete"),n.signal(_,"pick",O),A.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(l(this.debounce),this.debounce=0);var _=this.startPos;this.data&&(_=this.data.from);var N=this.cm.getCursor(),O=this.cm.getLine(N.line);if(N.line!=this.startPos.line||O.length-N.ch!=this.startLen-this.startPos.ch||N.ch<_.ch||this.cm.somethingSelected()||!N.ch||this.options.closeCharacters.test(O.charAt(N.ch-1)))this.close();else{var A=this;this.debounce=a(function(){A.update()}),this.widget&&this.widget.disable()}},update:function(_){if(this.tick!=null){var N=this,O=++this.tick;S(this.options.hint,this.cm,this.options,function(A){N.tick==O&&N.finishUpdate(A,_)})}},finishUpdate:function(_,N){this.data&&n.signal(this.data,"update");var O=this.widget&&this.widget.picked||N&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=_,_&&_.list.length&&(O&&_.list.length==1?this.pick(_,0):(this.widget=new v(this,_),n.signal(_,"shown")))}};function f(_,N,O){var A=_.options.hintOptions,L={};for(var P in k)L[P]=k[P];if(A)for(var P in A)A[P]!==void 0&&(L[P]=A[P]);if(O)for(var P in O)O[P]!==void 0&&(L[P]=O[P]);return L.hint.resolve&&(L.hint=L.hint.resolve(_,N)),L}function h(_){return typeof _=="string"?_:_.text}function p(_,N){var O={Up:function(){N.moveFocus(-1)},Down:function(){N.moveFocus(1)},PageUp:function(){N.moveFocus(-N.menuSize()+1,!0)},PageDown:function(){N.moveFocus(N.menuSize()-1,!0)},Home:function(){N.setFocus(0)},End:function(){N.setFocus(N.length-1)},Enter:N.pick,Tab:N.pick,Esc:N.close},A=/Mac/.test(navigator.platform);A&&(O["Ctrl-P"]=function(){N.moveFocus(-1)},O["Ctrl-N"]=function(){N.moveFocus(1)});var L=_.options.customKeys,P=L?{}:O;function j(q,W){var Z;typeof W!="string"?Z=function(X){return W(X,N)}:O.hasOwnProperty(W)?Z=O[W]:Z=W,P[q]=Z}if(L)for(var F in L)L.hasOwnProperty(F)&&j(F,L[F]);var B=_.options.extraKeys;if(B)for(var F in B)B.hasOwnProperty(F)&&j(F,B[F]);return P}function b(_,N){for(;N&&N!=_;){if(N.nodeName.toUpperCase()==="LI"&&N.parentNode==_)return N;N=N.parentNode}}function v(_,N){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=_,this.data=N,this.picked=!1;var O=this,A=_.cm,L=A.getInputField().ownerDocument,P=L.defaultView||L.parentWindow,j=this.hints=L.createElement("ul");j.setAttribute("role","listbox"),j.setAttribute("aria-expanded","true"),j.id=this.id;var F=_.cm.options.theme;j.className="CodeMirror-hints "+F,this.selectedHint=N.selectedHint||0;for(var B=N.list,q=0;q<B.length;++q){var W=j.appendChild(L.createElement("li")),Z=B[q],X=r+(q!=this.selectedHint?"":" "+i);Z.className!=null&&(X=Z.className+" "+X),W.className=X,q==this.selectedHint&&W.setAttribute("aria-selected","true"),W.id=this.id+"-"+q,W.setAttribute("role","option"),Z.render?Z.render(W,N,Z):W.appendChild(L.createTextNode(Z.displayText||h(Z))),W.hintId=q}var ee=_.options.container||L.body,H=A.cursorCoords(_.options.alignWithWord?N.from:null),J=H.left,ue=H.bottom,ne=!0,oe=0,K=0;if(ee!==L.body){var he=["absolute","relative","fixed"].indexOf(P.getComputedStyle(ee).position)!==-1,se=he?ee:ee.offsetParent,fe=se.getBoundingClientRect(),ae=L.body.getBoundingClientRect();oe=fe.left-ae.left-se.scrollLeft,K=fe.top-ae.top-se.scrollTop}j.style.left=J-oe+"px",j.style.top=ue-K+"px";var Ee=P.innerWidth||Math.max(L.body.offsetWidth,L.documentElement.offsetWidth),ve=P.innerHeight||Math.max(L.body.offsetHeight,L.documentElement.offsetHeight);ee.appendChild(j),A.getInputField().setAttribute("aria-autocomplete","list"),A.getInputField().setAttribute("aria-owns",this.id),A.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var xe=_.options.moveOnOverlap?j.getBoundingClientRect():new DOMRect,ge=_.options.paddingForScrollbar?j.scrollHeight>j.clientHeight+1:!1,Ve;setTimeout(function(){Ve=A.getScrollInfo()});var Xe=xe.bottom-ve;if(Xe>0){var et=xe.bottom-xe.top,dt=xe.top-(H.bottom-H.top)-2;ve-xe.top<dt?(et>dt&&(j.style.height=(et=dt)+"px"),j.style.top=(ue=H.top-et)+K+"px",ne=!1):j.style.height=ve-xe.top-2+"px"}var we=xe.right-Ee;if(ge&&(we+=A.display.nativeBarWidth),we>0&&(xe.right-xe.left>Ee&&(j.style.width=Ee-5+"px",we-=xe.right-xe.left-Ee),j.style.left=(J=Math.max(H.left-we-oe,0))+"px"),ge)for(var pe=j.firstChild;pe;pe=pe.nextSibling)pe.style.paddingRight=A.display.nativeBarWidth+"px";if(A.addKeyMap(this.keyMap=p(_,{moveFocus:function(re,_e){O.changeActive(O.selectedHint+re,_e)},setFocus:function(re){O.changeActive(re)},menuSize:function(){return O.screenAmount()},length:B.length,close:function(){_.close()},pick:function(){O.pick()},data:N})),_.options.closeOnUnfocus){var qe;A.on("blur",this.onBlur=function(){qe=setTimeout(function(){_.close()},100)}),A.on("focus",this.onFocus=function(){clearTimeout(qe)})}A.on("scroll",this.onScroll=function(){var re=A.getScrollInfo(),_e=A.getWrapperElement().getBoundingClientRect();Ve||(Ve=A.getScrollInfo());var ze=ue+Ve.top-re.top,Le=ze-(P.pageYOffset||(L.documentElement||L.body).scrollTop);if(ne||(Le+=j.offsetHeight),Le<=_e.top||Le>=_e.bottom)return _.close();j.style.top=ze+"px",j.style.left=J+Ve.left-re.left+"px"}),n.on(j,"dblclick",function(re){var _e=b(j,re.target||re.srcElement);_e&&_e.hintId!=null&&(O.changeActive(_e.hintId),O.pick())}),n.on(j,"click",function(re){var _e=b(j,re.target||re.srcElement);_e&&_e.hintId!=null&&(O.changeActive(_e.hintId),_.options.completeOnSingleClick&&O.pick())}),n.on(j,"mousedown",function(){setTimeout(function(){A.focus()},20)});var ye=this.getSelectedHintRange();return(ye.from!==0||ye.to!==0)&&this.scrollToActive(),n.signal(N,"select",B[this.selectedHint],j.childNodes[this.selectedHint]),!0}v.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var _=this.completion.cm.getInputField();_.removeAttribute("aria-activedescendant"),_.removeAttribute("aria-owns");var N=this.completion.cm;this.completion.options.closeOnUnfocus&&(N.off("blur",this.onBlur),N.off("focus",this.onFocus)),N.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var _=this;this.keyMap={Enter:function(){_.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(_,N){if(_>=this.data.list.length?_=N?this.data.list.length-1:0:_<0&&(_=N?0:this.data.list.length-1),this.selectedHint!=_){var O=this.hints.childNodes[this.selectedHint];O&&(O.className=O.className.replace(" "+i,""),O.removeAttribute("aria-selected")),O=this.hints.childNodes[this.selectedHint=_],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 _=this.getSelectedHintRange(),N=this.hints.childNodes[_.from],O=this.hints.childNodes[_.to],A=this.hints.firstChild;N.offsetTop<this.hints.scrollTop?this.hints.scrollTop=N.offsetTop-A.offsetTop:O.offsetTop+O.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=O.offsetTop+O.offsetHeight-this.hints.clientHeight+A.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var _=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-_),to:Math.min(this.data.list.length-1,this.selectedHint+_)}}};function x(_,N){if(!_.somethingSelected())return N;for(var O=[],A=0;A<N.length;A++)N[A].supportsSelection&&O.push(N[A]);return O}function S(_,N,O,A){if(_.async)_(N,A,O);else{var L=_(N,O);L&&L.then?L.then(A):A(L)}}function w(_,N){var O=_.getHelpers(N,"hint"),A;if(O.length){var L=function(P,j,F){var B=x(P,O);function q(W){if(W==B.length)return j(null);S(B[W],P,F,function(Z){Z&&Z.list.length>0?j(Z):q(W+1)})}q(0)};return L.async=!0,L.supportsSelection=!0,L}else return(A=_.getHelper(_.getCursor(),"hintWords"))?function(P){return n.hint.fromList(P,{words:A})}:n.hint.anyword?function(P,j){return n.hint.anyword(P,j)}:function(){}}n.registerHelper("hint","auto",{resolve:w}),n.registerHelper("hint","fromList",function(_,N){var O=_.getCursor(),A=_.getTokenAt(O),L,P=n.Pos(O.line,A.start),j=O;A.start<O.ch&&/\w/.test(A.string.charAt(O.ch-A.start-1))?L=A.string.substr(0,O.ch-A.start):(L="",P=O);for(var F=[],B=0;B<N.words.length;B++){var q=N.words[B];q.slice(0,L.length)==L&&F.push(q)}if(F.length)return{list:F,from:P,to:j}}),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)})}()),M7.exports}var I7=Uae();const Hae=Kn({__proto__:null,default:Lr(I7)},[I7]);var F7={exports:{}},P7;function j7(){return P7||(P7=1,function(e,t){(function(n){n(No())})(function(n){var r=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),i=n.Pos,o={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function a(v){return v&&v.bracketRegex||/[(){}[\]]/}function l(v,x,S){var w=v.getLineHandle(x.line),k=x.ch-1,_=S&&S.afterCursor;_==null&&(_=/(^| )cm-fat-cursor($| )/.test(v.getWrapperElement().className));var N=a(S),O=!_&&k>=0&&N.test(w.text.charAt(k))&&o[w.text.charAt(k)]||N.test(w.text.charAt(k+1))&&o[w.text.charAt(++k)];if(!O)return null;var A=O.charAt(1)==">"?1:-1;if(S&&S.strict&&A>0!=(k==x.ch))return null;var L=v.getTokenTypeAt(i(x.line,k+1)),P=f(v,i(x.line,k+(A>0?1:0)),A,L,S);return P==null?null:{from:i(x.line,k),to:P&&P.pos,match:P&&P.ch==O.charAt(0),forward:A>0}}function f(v,x,S,w,k){for(var _=k&&k.maxScanLineLength||1e4,N=k&&k.maxScanLines||1e3,O=[],A=a(k),L=S>0?Math.min(x.line+N,v.lastLine()+1):Math.max(v.firstLine()-1,x.line-N),P=x.line;P!=L;P+=S){var j=v.getLine(P);if(j){var F=S>0?0:j.length-1,B=S>0?j.length:-1;if(!(j.length>_))for(P==x.line&&(F=x.ch-(S<0?1:0));F!=B;F+=S){var q=j.charAt(F);if(A.test(q)&&(w===void 0||(v.getTokenTypeAt(i(P,F+1))||"")==(w||""))){var W=o[q];if(W&&W.charAt(1)==">"==S>0)O.push(q);else if(O.length)O.pop();else return{pos:i(P,F),ch:q}}}}}return P-S==(S>0?v.lastLine():v.firstLine())?!1:null}function h(v,x,S){for(var w=v.state.matchBrackets.maxHighlightLineLength||1e3,k=S&&S.highlightNonMatching,_=[],N=v.listSelections(),O=0;O<N.length;O++){var A=N[O].empty()&&l(v,N[O].head,S);if(A&&(A.match||k!==!1)&&v.getLine(A.from.line).length<=w){var L=A.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";_.push(v.markText(A.from,i(A.from.line,A.from.ch+1),{className:L})),A.to&&v.getLine(A.to.line).length<=w&&_.push(v.markText(A.to,i(A.to.line,A.to.ch+1),{className:L}))}}if(_.length){r&&v.state.focused&&v.focus();var P=function(){v.operation(function(){for(var j=0;j<_.length;j++)_[j].clear()})};if(x)setTimeout(P,800);else return P}}function p(v){v.operation(function(){v.state.matchBrackets.currentlyHighlighted&&(v.state.matchBrackets.currentlyHighlighted(),v.state.matchBrackets.currentlyHighlighted=null),v.state.matchBrackets.currentlyHighlighted=h(v,!1,v.state.matchBrackets)})}function b(v){v.state.matchBrackets&&v.state.matchBrackets.currentlyHighlighted&&(v.state.matchBrackets.currentlyHighlighted(),v.state.matchBrackets.currentlyHighlighted=null)}n.defineOption("matchBrackets",!1,function(v,x,S){S&&S!=n.Init&&(v.off("cursorActivity",p),v.off("focus",p),v.off("blur",b),b(v)),x&&(v.state.matchBrackets=typeof x=="object"?x:{},v.on("cursorActivity",p),v.on("focus",p),v.on("blur",b))}),n.defineExtension("matchBrackets",function(){h(this,!0)}),n.defineExtension("findMatchingBracket",function(v,x,S){return(S||typeof x=="boolean")&&(S?(S.strict=x,x=S):x=x?{strict:!0}:null),l(this,v,x)}),n.defineExtension("scanForBracket",function(v,x,S,w){return f(this,v,x,S,w)})})}()),F7.exports}var V7=j7();const zae=Kn({__proto__:null,default:Lr(V7)},[V7]);var B7={exports:{}},$7;function qae(){return $7||($7=1,function(e,t){(function(n){n(No())})(function(n){var r={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},i=n.Pos;n.defineOption("autoCloseBrackets",!1,function(_,N,O){O&&O!=n.Init&&(_.removeKeyMap(a),_.state.closeBrackets=null),N&&(l(o(N,"pairs")),_.state.closeBrackets=N,_.addKeyMap(a))});function o(_,N){return N=="pairs"&&typeof _=="string"?_:typeof _=="object"&&_[N]!=null?_[N]:r[N]}var a={Backspace:p,Enter:b};function l(_){for(var N=0;N<_.length;N++){var O=_.charAt(N),A="'"+O+"'";a[A]||(a[A]=f(O))}}l(r.pairs+"`");function f(_){return function(N){return S(N,_)}}function h(_){var N=_.state.closeBrackets;if(!N||N.override)return N;var O=_.getModeAt(_.getCursor());return O.closeBrackets||N}function p(_){var N=h(_);if(!N||_.getOption("disableInput"))return n.Pass;for(var O=o(N,"pairs"),A=_.listSelections(),L=0;L<A.length;L++){if(!A[L].empty())return n.Pass;var P=w(_,A[L].head);if(!P||O.indexOf(P)%2!=0)return n.Pass}for(var L=A.length-1;L>=0;L--){var j=A[L].head;_.replaceRange("",i(j.line,j.ch-1),i(j.line,j.ch+1),"+delete")}}function b(_){var N=h(_),O=N&&o(N,"explode");if(!O||_.getOption("disableInput"))return n.Pass;for(var A=_.listSelections(),L=0;L<A.length;L++){if(!A[L].empty())return n.Pass;var P=w(_,A[L].head);if(!P||O.indexOf(P)%2!=0)return n.Pass}_.operation(function(){var j=_.lineSeparator()||`
`;_.replaceSelection(j+j,null),v(_,-1),A=_.listSelections();for(var F=0;F<A.length;F++){var B=A[F].head.line;_.indentLine(B,null,!0),_.indentLine(B+1,null,!0)}})}function v(_,N){for(var O=[],A=_.listSelections(),L=0,P=0;P<A.length;P++){var j=A[P];j.head==_.getCursor()&&(L=P);var F=j.head.ch||N>0?{line:j.head.line,ch:j.head.ch+N}:{line:j.head.line-1};O.push({anchor:F,head:F})}_.setSelections(O,L)}function x(_){var N=n.cmpPos(_.anchor,_.head)>0;return{anchor:new i(_.anchor.line,_.anchor.ch+(N?-1:1)),head:new i(_.head.line,_.head.ch+(N?1:-1))}}function S(_,N){var O=h(_);if(!O||_.getOption("disableInput"))return n.Pass;var A=o(O,"pairs"),L=A.indexOf(N);if(L==-1)return n.Pass;for(var P=o(O,"closeBefore"),j=o(O,"triples"),F=A.charAt(L+1)==N,B=_.listSelections(),q=L%2==0,W,Z=0;Z<B.length;Z++){var X=B[Z],ee=X.head,H,J=_.getRange(ee,i(ee.line,ee.ch+1));if(q&&!X.empty())H="surround";else if((F||!q)&&J==N)F&&k(_,ee)?H="both":j.indexOf(N)>=0&&_.getRange(ee,i(ee.line,ee.ch+3))==N+N+N?H="skipThree":H="skip";else if(F&&ee.ch>1&&j.indexOf(N)>=0&&_.getRange(i(ee.line,ee.ch-2),ee)==N+N){if(ee.ch>2&&/\bstring/.test(_.getTokenTypeAt(i(ee.line,ee.ch-2))))return n.Pass;H="addFour"}else if(F){var ue=ee.ch==0?" ":_.getRange(i(ee.line,ee.ch-1),ee);if(!n.isWordChar(J)&&ue!=N&&!n.isWordChar(ue))H="both";else return n.Pass}else if(q&&(J.length===0||/\s/.test(J)||P.indexOf(J)>-1))H="both";else return n.Pass;if(!W)W=H;else if(W!=H)return n.Pass}var ne=L%2?A.charAt(L-1):N,oe=L%2?N:A.charAt(L+1);_.operation(function(){if(W=="skip")v(_,1);else if(W=="skipThree")v(_,3);else if(W=="surround"){for(var K=_.getSelections(),he=0;he<K.length;he++)K[he]=ne+K[he]+oe;_.replaceSelections(K,"around"),K=_.listSelections().slice();for(var he=0;he<K.length;he++)K[he]=x(K[he]);_.setSelections(K)}else W=="both"?(_.replaceSelection(ne+oe,null),_.triggerElectric(ne+oe),v(_,-1)):W=="addFour"&&(_.replaceSelection(ne+ne+ne+ne,"before"),v(_,1))})}function w(_,N){var O=_.getRange(i(N.line,N.ch-1),i(N.line,N.ch+1));return O.length==2?O:null}function k(_,N){var O=_.getTokenAt(i(N.line,N.ch+1));return/\bstring/.test(O.type)&&O.start==N.ch&&(N.ch==0||!/\bstring/.test(_.getTokenTypeAt(N)))}})}()),B7.exports}var U7=qae();const Gae=Kn({__proto__:null,default:Lr(U7)},[U7]);var H7={exports:{}},z7;function Wae(){return z7||(z7=1,function(e,t){(function(n){n(No())})(function(n){function r(i){return function(o,a){var l=a.line,f=o.getLine(l);function h(w){for(var k,_=a.ch,N=0;;){var O=_<=0?-1:f.lastIndexOf(w[0],_-1);if(O==-1){if(N==1)break;N=1,_=f.length;continue}if(N==1&&O<a.ch)break;if(k=o.getTokenTypeAt(n.Pos(l,O+1)),!/^(comment|string)/.test(k))return{ch:O+1,tokenType:k,pair:w};_=O-1}}function p(w){var k=1,_=o.lastLine(),N,O=w.ch,A;e:for(var L=l;L<=_;++L)for(var P=o.getLine(L),j=L==l?O:0;;){var F=P.indexOf(w.pair[0],j),B=P.indexOf(w.pair[1],j);if(F<0&&(F=P.length),B<0&&(B=P.length),j=Math.min(F,B),j==P.length)break;if(o.getTokenTypeAt(n.Pos(L,j+1))==w.tokenType){if(j==F)++k;else if(!--k){N=L,A=j;break e}}++j}return N==null||l==N?null:{from:n.Pos(l,O),to:n.Pos(N,A)}}for(var b=[],v=0;v<i.length;v++){var x=h(i[v]);x&&b.push(x)}b.sort(function(w,k){return w.ch-k.ch});for(var v=0;v<b.length;v++){var S=p(b[v]);if(S)return S}return null}}n.registerHelper("fold","brace",r([["{","}"],["[","]"]])),n.registerHelper("fold","brace-paren",r([["{","}"],["[","]"],["(",")"]])),n.registerHelper("fold","import",function(i,o){function a(v){if(v<i.firstLine()||v>i.lastLine())return null;var x=i.getTokenAt(n.Pos(v,1));if(/\S/.test(x.string)||(x=i.getTokenAt(n.Pos(v,x.end+1))),x.type!="keyword"||x.string!="import")return null;for(var S=v,w=Math.min(i.lastLine(),v+10);S<=w;++S){var k=i.getLine(S),_=k.indexOf(";");if(_!=-1)return{startCh:x.end,end:n.Pos(S,_)}}}var l=o.line,f=a(l),h;if(!f||a(l-1)||(h=a(l-2))&&h.end.line==l-1)return null;for(var p=f.end;;){var b=a(p.line+1);if(b==null)break;p=b.end}return{from:i.clipPos(n.Pos(l,f.startCh+1)),to:p}}),n.registerHelper("fold","include",function(i,o){function a(b){if(b<i.firstLine()||b>i.lastLine())return null;var v=i.getTokenAt(n.Pos(b,1));if(/\S/.test(v.string)||(v=i.getTokenAt(n.Pos(b,v.end+1))),v.type=="meta"&&v.string.slice(0,8)=="#include")return v.start+8}var l=o.line,f=a(l);if(f==null||a(l-1)!=null)return null;for(var h=l;;){var p=a(h+1);if(p==null)break;++h}return{from:n.Pos(l,f+1),to:i.clipPos(n.Pos(h))}})})}()),H7.exports}var q7=Wae();const G7=Kn({__proto__:null,default:Lr(q7)},[q7]);var W7={exports:{}},Y7={exports:{}},Q7;function Yae(){return Q7||(Q7=1,function(e,t){(function(n){n(No())})(function(n){function r(l,f,h,p){if(h&&h.call){var b=h;h=null}else var b=a(l,h,"rangeFinder");typeof f=="number"&&(f=n.Pos(f,0));var v=a(l,h,"minFoldSize");function x(_){var N=b(l,f);if(!N||N.to.line-N.from.line<v)return null;if(p==="fold")return N;for(var O=l.findMarksAt(N.from),A=0;A<O.length;++A)if(O[A].__isFold){if(!_)return null;N.cleared=!0,O[A].clear()}return N}var S=x(!0);if(a(l,h,"scanUp"))for(;!S&&f.line>l.firstLine();)f=n.Pos(f.line-1,0),S=x(!1);if(!(!S||S.cleared||p==="unfold")){var w=i(l,h,S);n.on(w,"mousedown",function(_){k.clear(),n.e_preventDefault(_)});var k=l.markText(S.from,S.to,{replacedWith:w,clearOnEnter:a(l,h,"clearOnEnter"),__isFold:!0});k.on("clear",function(_,N){n.signal(l,"unfold",l,_,N)}),n.signal(l,"fold",l,S.from,S.to)}}function i(l,f,h){var p=a(l,f,"widget");if(typeof p=="function"&&(p=p(h.from,h.to)),typeof p=="string"){var b=document.createTextNode(p);p=document.createElement("span"),p.appendChild(b),p.className="CodeMirror-foldmarker"}else p&&(p=p.cloneNode(!0));return p}n.newFoldFunction=function(l,f){return function(h,p){r(h,p,{rangeFinder:l,widget:f})}},n.defineExtension("foldCode",function(l,f,h){r(this,l,f,h)}),n.defineExtension("isFolded",function(l){for(var f=this.findMarksAt(l),h=0;h<f.length;++h)if(f[h].__isFold)return!0}),n.commands.toggleFold=function(l){l.foldCode(l.getCursor())},n.commands.fold=function(l){l.foldCode(l.getCursor(),null,"fold")},n.commands.unfold=function(l){l.foldCode(l.getCursor(),{scanUp:!1},"unfold")},n.commands.foldAll=function(l){l.operation(function(){for(var f=l.firstLine(),h=l.lastLine();f<=h;f++)l.foldCode(n.Pos(f,0),{scanUp:!1},"fold")})},n.commands.unfoldAll=function(l){l.operation(function(){for(var f=l.firstLine(),h=l.lastLine();f<=h;f++)l.foldCode(n.Pos(f,0),{scanUp:!1},"unfold")})},n.registerHelper("fold","combine",function(){var l=Array.prototype.slice.call(arguments,0);return function(f,h){for(var p=0;p<l.length;++p){var b=l[p](f,h);if(b)return b}}}),n.registerHelper("fold","auto",function(l,f){for(var h=l.getHelpers(f,"fold"),p=0;p<h.length;p++){var b=h[p](l,f);if(b)return b}});var o={rangeFinder:n.fold.auto,widget:"↔",minFoldSize:0,scanUp:!1,clearOnEnter:!0};n.defineOption("foldOptions",null);function a(l,f,h){if(f&&f[h]!==void 0)return f[h];var p=l.options.foldOptions;return p&&p[h]!==void 0?p[h]:o[h]}n.defineExtension("foldOption",function(l,f){return a(this,l,f)})})}()),Y7.exports}var K7;function Qae(){return K7||(K7=1,function(e,t){(function(n){n(No(),Yae())})(function(n){n.defineOption("foldGutter",!1,function(k,_,N){N&&N!=n.Init&&(k.clearGutter(k.state.foldGutter.options.gutter),k.state.foldGutter=null,k.off("gutterClick",b),k.off("changes",x),k.off("viewportChange",S),k.off("fold",w),k.off("unfold",w),k.off("swapDoc",x),k.off("optionChange",v)),_&&(k.state.foldGutter=new i(o(_)),p(k),k.on("gutterClick",b),k.on("changes",x),k.on("viewportChange",S),k.on("fold",w),k.on("unfold",w),k.on("swapDoc",x),k.on("optionChange",v))});var r=n.Pos;function i(k){this.options=k,this.from=this.to=0}function o(k){return k===!0&&(k={}),k.gutter==null&&(k.gutter="CodeMirror-foldgutter"),k.indicatorOpen==null&&(k.indicatorOpen="CodeMirror-foldgutter-open"),k.indicatorFolded==null&&(k.indicatorFolded="CodeMirror-foldgutter-folded"),k}function a(k,_){for(var N=k.findMarks(r(_,0),r(_+1,0)),O=0;O<N.length;++O)if(N[O].__isFold){var A=N[O].find(-1);if(A&&A.line===_)return N[O]}}function l(k){if(typeof k=="string"){var _=document.createElement("div");return _.className=k+" CodeMirror-guttermarker-subtle",_}else return k.cloneNode(!0)}function f(k,_,N){var O=k.state.foldGutter.options,A=_-1,L=k.foldOption(O,"minFoldSize"),P=k.foldOption(O,"rangeFinder"),j=typeof O.indicatorFolded=="string"&&h(O.indicatorFolded),F=typeof O.indicatorOpen=="string"&&h(O.indicatorOpen);k.eachLine(_,N,function(B){++A;var q=null,W=B.gutterMarkers;if(W&&(W=W[O.gutter]),a(k,A)){if(j&&W&&j.test(W.className))return;q=l(O.indicatorFolded)}else{var Z=r(A,0),X=P&&P(k,Z);if(X&&X.to.line-X.from.line>=L){if(F&&W&&F.test(W.className))return;q=l(O.indicatorOpen)}}!q&&!W||k.setGutterMarker(B,O.gutter,q)})}function h(k){return new RegExp("(^|\\s)"+k+"(?:$|\\s)\\s*")}function p(k){var _=k.getViewport(),N=k.state.foldGutter;N&&(k.operation(function(){f(k,_.from,_.to)}),N.from=_.from,N.to=_.to)}function b(k,_,N){var O=k.state.foldGutter;if(O){var A=O.options;if(N==A.gutter){var L=a(k,_);L?L.clear():k.foldCode(r(_,0),A)}}}function v(k,_){_=="mode"&&x(k)}function x(k){var _=k.state.foldGutter;if(_){var N=_.options;_.from=_.to=0,clearTimeout(_.changeUpdate),_.changeUpdate=setTimeout(function(){p(k)},N.foldOnChangeTimeSpan||600)}}function S(k){var _=k.state.foldGutter;if(_){var N=_.options;clearTimeout(_.changeUpdate),_.changeUpdate=setTimeout(function(){var O=k.getViewport();_.from==_.to||O.from-_.to>20||_.from-O.to>20?p(k):k.operation(function(){O.from<_.from&&(f(k,O.from,_.from),_.from=O.from),O.to>_.to&&(f(k,_.to,O.to),_.to=O.to)})},N.updateViewportTimeSpan||400)}}function w(k,_){var N=k.state.foldGutter;if(N){var O=_.line;O>=N.from&&O<N.to&&f(k,O,O+1)}}})}()),W7.exports}var X7=Qae();const Z7=Kn({__proto__:null,default:Lr(X7)},[X7]);var J7={exports:{}},eM;function Kae(){return eM||(eM=1,function(e,t){(function(n){n(No())})(function(n){var r="CodeMirror-lint-markers",i="CodeMirror-lint-line-";function o(j,F,B){var q=document.createElement("div");q.className="CodeMirror-lint-tooltip cm-s-"+j.options.theme,q.appendChild(B.cloneNode(!0)),j.state.lint.options.selfContain?j.getWrapperElement().appendChild(q):document.body.appendChild(q);function W(Z){if(!q.parentNode)return n.off(document,"mousemove",W);var X=Math.max(0,Z.clientY-q.offsetHeight-5),ee=Math.max(0,Math.min(Z.clientX+5,q.ownerDocument.defaultView.innerWidth-q.offsetWidth));q.style.top=X+"px",q.style.left=ee+"px"}return n.on(document,"mousemove",W),W(F),q.style.opacity!=null&&(q.style.opacity=1),q}function a(j){j.parentNode&&j.parentNode.removeChild(j)}function l(j){j.parentNode&&(j.style.opacity==null&&a(j),j.style.opacity=0,setTimeout(function(){a(j)},600))}function f(j,F,B,q){var W=o(j,F,B);function Z(){n.off(q,"mouseout",Z),W&&(l(W),W=null)}var X=setInterval(function(){if(W)for(var ee=q;;ee=ee.parentNode){if(ee&&ee.nodeType==11&&(ee=ee.host),ee==document.body)return;if(!ee){Z();break}}if(!W)return clearInterval(X)},400);n.on(q,"mouseout",Z)}function h(j,F,B){this.marked=[],F instanceof Function&&(F={getAnnotations:F}),(!F||F===!0)&&(F={}),this.options={},this.linterOptions=F.options||{};for(var q in p)this.options[q]=p[q];for(var q in F)p.hasOwnProperty(q)?F[q]!=null&&(this.options[q]=F[q]):F.options||(this.linterOptions[q]=F[q]);this.timeout=null,this.hasGutter=B,this.onMouseOver=function(W){P(j,W)},this.waitingFor=0}var p={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function b(j){var F=j.state.lint;F.hasGutter&&j.clearGutter(r),F.options.highlightLines&&v(j);for(var B=0;B<F.marked.length;++B)F.marked[B].clear();F.marked.length=0}function v(j){j.eachLine(function(F){var B=F.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(F.wrapClass);B&&j.removeLineClass(F,"wrap",B[0])})}function x(j,F,B,q,W){var Z=document.createElement("div"),X=Z;return Z.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+B,q&&(X=Z.appendChild(document.createElement("div")),X.className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),W!=!1&&n.on(X,"mouseover",function(ee){f(j,ee,F,X)}),Z}function S(j,F){return j=="error"?j:F}function w(j){for(var F=[],B=0;B<j.length;++B){var q=j[B],W=q.from.line;(F[W]||(F[W]=[])).push(q)}return F}function k(j){var F=j.severity;F||(F="error");var B=document.createElement("div");return B.className="CodeMirror-lint-message CodeMirror-lint-message-"+F,typeof j.messageHTML<"u"?B.innerHTML=j.messageHTML:B.appendChild(document.createTextNode(j.message)),B}function _(j,F){var B=j.state.lint,q=++B.waitingFor;function W(){q=-1,j.off("change",W)}j.on("change",W),F(j.getValue(),function(Z,X){j.off("change",W),B.waitingFor==q&&(X&&Z instanceof n&&(Z=X),j.operation(function(){O(j,Z)}))},B.linterOptions,j)}function N(j){var F=j.state.lint;if(F){var B=F.options,q=B.getAnnotations||j.getHelper(n.Pos(0,0),"lint");if(q)if(B.async||q.async)_(j,q);else{var W=q(j.getValue(),F.linterOptions,j);if(!W)return;W.then?W.then(function(Z){j.operation(function(){O(j,Z)})}):j.operation(function(){O(j,W)})}}}function O(j,F){var B=j.state.lint;if(B){var q=B.options;b(j);for(var W=w(F),Z=0;Z<W.length;++Z){var X=W[Z];if(X){for(var ee=null,H=B.hasGutter&&document.createDocumentFragment(),J=0;J<X.length;++J){var ue=X[J],ne=ue.severity;ne||(ne="error"),ee=S(ee,ne),q.formatAnnotation&&(ue=q.formatAnnotation(ue)),B.hasGutter&&H.appendChild(k(ue)),ue.to&&B.marked.push(j.markText(ue.from,ue.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+ne,__annotation:ue}))}B.hasGutter&&j.setGutterMarker(Z,r,x(j,H,ee,X.length>1,q.tooltips)),q.highlightLines&&j.addLineClass(Z,"wrap",i+ee)}}q.onUpdateLinting&&q.onUpdateLinting(F,W,j)}}function A(j){var F=j.state.lint;F&&(clearTimeout(F.timeout),F.timeout=setTimeout(function(){N(j)},F.options.delay))}function L(j,F,B){for(var q=B.target||B.srcElement,W=document.createDocumentFragment(),Z=0;Z<F.length;Z++){var X=F[Z];W.appendChild(k(X))}f(j,B,W,q)}function P(j,F){var B=F.target||F.srcElement;if(/\bCodeMirror-lint-mark-/.test(B.className)){for(var q=B.getBoundingClientRect(),W=(q.left+q.right)/2,Z=(q.top+q.bottom)/2,X=j.findMarksAt(j.coordsChar({left:W,top:Z},"client")),ee=[],H=0;H<X.length;++H){var J=X[H].__annotation;J&&ee.push(J)}ee.length&&L(j,ee,F)}}n.defineOption("lint",!1,function(j,F,B){if(B&&B!=n.Init&&(b(j),j.state.lint.options.lintOnChange!==!1&&j.off("change",A),n.off(j.getWrapperElement(),"mouseover",j.state.lint.onMouseOver),clearTimeout(j.state.lint.timeout),delete j.state.lint),F){for(var q=j.getOption("gutters"),W=!1,Z=0;Z<q.length;++Z)q[Z]==r&&(W=!0);var X=j.state.lint=new h(j,F,W);X.options.lintOnChange&&j.on("change",A),X.options.tooltips!=!1&&X.options.tooltips!="gutter"&&n.on(j.getWrapperElement(),"mouseover",X.onMouseOver),N(j)}}),n.defineExtension("performLint",function(){N(this)})})}()),J7.exports}var tM=Kae();const Xae=Kn({__proto__:null,default:Lr(tM)},[tM]);var nM={exports:{}},rM;function w3(){return rM||(rM=1,function(e,t){(function(n){n(No())})(function(n){var r=n.Pos;function i(N){var O=N.flags;return O??(N.ignoreCase?"i":"")+(N.global?"g":"")+(N.multiline?"m":"")}function o(N,O){for(var A=i(N),L=A,P=0;P<O.length;P++)L.indexOf(O.charAt(P))==-1&&(L+=O.charAt(P));return A==L?N:new RegExp(N.source,L)}function a(N){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(N.source)}function l(N,O,A){O=o(O,"g");for(var L=A.line,P=A.ch,j=N.lastLine();L<=j;L++,P=0){O.lastIndex=P;var F=N.getLine(L),B=O.exec(F);if(B)return{from:r(L,B.index),to:r(L,B.index+B[0].length),match:B}}}function f(N,O,A){if(!a(O))return l(N,O,A);O=o(O,"gm");for(var L,P=1,j=A.line,F=N.lastLine();j<=F;){for(var B=0;B<P&&!(j>F);B++){var q=N.getLine(j++);L=L==null?q:L+`
`+q}P=P*2,O.lastIndex=A.ch;var W=O.exec(L);if(W){var Z=L.slice(0,W.index).split(`
`),X=W[0].split(`
`),ee=A.line+Z.length-1,H=Z[Z.length-1].length;return{from:r(ee,H),to:r(ee+X.length-1,X.length==1?H+X[0].length:X[X.length-1].length),match:W}}}}function h(N,O,A){for(var L,P=0;P<=N.length;){O.lastIndex=P;var j=O.exec(N);if(!j)break;var F=j.index+j[0].length;if(F>N.length-A)break;(!L||F>L.index+L[0].length)&&(L=j),P=j.index+1}return L}function p(N,O,A){O=o(O,"g");for(var L=A.line,P=A.ch,j=N.firstLine();L>=j;L--,P=-1){var F=N.getLine(L),B=h(F,O,P<0?0:F.length-P);if(B)return{from:r(L,B.index),to:r(L,B.index+B[0].length),match:B}}}function b(N,O,A){if(!a(O))return p(N,O,A);O=o(O,"gm");for(var L,P=1,j=N.getLine(A.line).length-A.ch,F=A.line,B=N.firstLine();F>=B;){for(var q=0;q<P&&F>=B;q++){var W=N.getLine(F--);L=L==null?W:W+`
`+L}P*=2;var Z=h(L,O,j);if(Z){var X=L.slice(0,Z.index).split(`
`),ee=Z[0].split(`
`),H=F+X.length,J=X[X.length-1].length;return{from:r(H,J),to:r(H+ee.length-1,ee.length==1?J+ee[0].length:ee[ee.length-1].length),match:Z}}}}var v,x;String.prototype.normalize?(v=function(N){return N.normalize("NFD").toLowerCase()},x=function(N){return N.normalize("NFD")}):(v=function(N){return N.toLowerCase()},x=function(N){return N});function S(N,O,A,L){if(N.length==O.length)return A;for(var P=0,j=A+Math.max(0,N.length-O.length);;){if(P==j)return P;var F=P+j>>1,B=L(N.slice(0,F)).length;if(B==A)return F;B>A?j=F:P=F+1}}function w(N,O,A,L){if(!O.length)return null;var P=L?v:x,j=P(O).split(/\r|\n\r?/);e:for(var F=A.line,B=A.ch,q=N.lastLine()+1-j.length;F<=q;F++,B=0){var W=N.getLine(F).slice(B),Z=P(W);if(j.length==1){var X=Z.indexOf(j[0]);if(X==-1)continue e;var A=S(W,Z,X,P)+B;return{from:r(F,S(W,Z,X,P)+B),to:r(F,S(W,Z,X+j[0].length,P)+B)}}else{var ee=Z.length-j[0].length;if(Z.slice(ee)!=j[0])continue e;for(var H=1;H<j.length-1;H++)if(P(N.getLine(F+H))!=j[H])continue e;var J=N.getLine(F+j.length-1),ue=P(J),ne=j[j.length-1];if(ue.slice(0,ne.length)!=ne)continue e;return{from:r(F,S(W,Z,ee,P)+B),to:r(F+j.length-1,S(J,ue,ne.length,P))}}}}function k(N,O,A,L){if(!O.length)return null;var P=L?v:x,j=P(O).split(/\r|\n\r?/);e:for(var F=A.line,B=A.ch,q=N.firstLine()-1+j.length;F>=q;F--,B=-1){var W=N.getLine(F);B>-1&&(W=W.slice(0,B));var Z=P(W);if(j.length==1){var X=Z.lastIndexOf(j[0]);if(X==-1)continue e;return{from:r(F,S(W,Z,X,P)),to:r(F,S(W,Z,X+j[0].length,P))}}else{var ee=j[j.length-1];if(Z.slice(0,ee.length)!=ee)continue e;for(var H=1,A=F-j.length+1;H<j.length-1;H++)if(P(N.getLine(A+H))!=j[H])continue e;var J=N.getLine(F+1-j.length),ue=P(J);if(ue.slice(ue.length-j[0].length)!=j[0])continue e;return{from:r(F+1-j.length,S(J,ue,J.length-j[0].length,P)),to:r(F,S(W,Z,ee.length,P))}}}}function _(N,O,A,L){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=N,A=A?N.clipPos(A):r(0,0),this.pos={from:A,to:A};var P;typeof L=="object"?P=L.caseFold:(P=L,L=null),typeof O=="string"?(P==null&&(P=!1),this.matches=function(j,F){return(j?k:w)(N,O,F,P)}):(O=o(O,"gm"),!L||L.multiline!==!1?this.matches=function(j,F){return(j?b:f)(N,O,F)}:this.matches=function(j,F){return(j?p:l)(N,O,F)})}_.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(N){var O=this.doc.clipPos(N?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(O=r(O.line,O.ch),N?(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 A=this.matches(N,O);if(this.afterEmptyMatch=A&&n.cmpPos(A.from,A.to)==0,A)return this.pos=A,this.atOccurrence=!0,this.pos.match||!0;var L=r(N?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:L,to:L},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(N,O){if(this.atOccurrence){var A=n.splitLines(N);this.doc.replaceRange(A,this.pos.from,this.pos.to,O),this.pos.to=r(this.pos.from.line+A.length-1,A[A.length-1].length+(A.length==1?this.pos.from.ch:0))}}},n.defineExtension("getSearchCursor",function(N,O,A){return new _(this.doc,N,O,A)}),n.defineDocExtension("getSearchCursor",function(N,O,A){return new _(this,N,O,A)}),n.defineExtension("selectMatches",function(N,O){for(var A=[],L=this.getSearchCursor(N,this.getCursor("from"),O);L.findNext()&&!(n.cmpPos(L.to(),this.getCursor("to"))>0);)A.push({anchor:L.from(),head:L.to()});A.length&&this.setSelections(A,0)})})}()),nM.exports}var iM=w3();const oM=Kn({__proto__:null,default:Lr(iM)},[iM]);var sM={exports:{}},aM={exports:{}},uM;function C3(){return uM||(uM=1,function(e,t){(function(n){n(No())})(function(n){function r(o,a,l){var f=o.getWrapperElement(),h;return h=f.appendChild(document.createElement("div")),l?h.className="CodeMirror-dialog CodeMirror-dialog-bottom":h.className="CodeMirror-dialog CodeMirror-dialog-top",typeof a=="string"?h.innerHTML=a:h.appendChild(a),n.addClass(f,"dialog-opened"),h}function i(o,a){o.state.currentNotificationClose&&o.state.currentNotificationClose(),o.state.currentNotificationClose=a}n.defineExtension("openDialog",function(o,a,l){l||(l={}),i(this,null);var f=r(this,o,l.bottom),h=!1,p=this;function b(S){if(typeof S=="string")v.value=S;else{if(h)return;h=!0,n.rmClass(f.parentNode,"dialog-opened"),f.parentNode.removeChild(f),p.focus(),l.onClose&&l.onClose(f)}}var v=f.getElementsByTagName("input")[0],x;return v?(v.focus(),l.value&&(v.value=l.value,l.selectValueOnOpen!==!1&&v.select()),l.onInput&&n.on(v,"input",function(S){l.onInput(S,v.value,b)}),l.onKeyUp&&n.on(v,"keyup",function(S){l.onKeyUp(S,v.value,b)}),n.on(v,"keydown",function(S){l&&l.onKeyDown&&l.onKeyDown(S,v.value,b)||((S.keyCode==27||l.closeOnEnter!==!1&&S.keyCode==13)&&(v.blur(),n.e_stop(S),b()),S.keyCode==13&&a(v.value,S))}),l.closeOnBlur!==!1&&n.on(f,"focusout",function(S){S.relatedTarget!==null&&b()})):(x=f.getElementsByTagName("button")[0])&&(n.on(x,"click",function(){b(),p.focus()}),l.closeOnBlur!==!1&&n.on(x,"blur",b),x.focus()),b}),n.defineExtension("openConfirm",function(o,a,l){i(this,null);var f=r(this,o,l&&l.bottom),h=f.getElementsByTagName("button"),p=!1,b=this,v=1;function x(){p||(p=!0,n.rmClass(f.parentNode,"dialog-opened"),f.parentNode.removeChild(f),b.focus())}h[0].focus();for(var S=0;S<h.length;++S){var w=h[S];(function(k){n.on(w,"click",function(_){n.e_preventDefault(_),x(),k&&k(b)})})(a[S]),n.on(w,"blur",function(){--v,setTimeout(function(){v<=0&&x()},200)}),n.on(w,"focus",function(){++v})}}),n.defineExtension("openNotification",function(o,a){i(this,b);var l=r(this,o,a&&a.bottom),f=!1,h,p=a&&typeof a.duration<"u"?a.duration:5e3;function b(){f||(f=!0,clearTimeout(h),n.rmClass(l.parentNode,"dialog-opened"),l.parentNode.removeChild(l))}return n.on(l,"click",function(v){n.e_preventDefault(v),b()}),p&&(h=setTimeout(b,p)),b})})}()),aM.exports}var lM;function Zae(){return lM||(lM=1,function(e,t){(function(n){n(No(),C3())})(function(n){n.defineOption("search",{bottom:!1});function r(a,l,f,h,p){a.openDialog?a.openDialog(l,p,{value:h,selectValueOnOpen:!0,bottom:a.options.search.bottom}):p(prompt(f,h))}function i(a){return a.phrase("Jump to line:")+' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+a.phrase("(Use line:column or scroll% syntax)")+"</span>"}function o(a,l){var f=Number(l);return/^[-+]/.test(l)?a.getCursor().line+f:f-1}n.commands.jumpToLine=function(a){var l=a.getCursor();r(a,i(a),a.phrase("Jump to line:"),l.line+1+":"+l.ch,function(f){if(f){var h;if(h=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(f))a.setCursor(o(a,h[1]),Number(h[2]));else if(h=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(f)){var p=Math.round(a.lineCount()*Number(h[1])/100);/^[-+]/.test(h[1])&&(p=l.line+p+1),a.setCursor(p-1,l.ch)}else(h=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(f))&&a.setCursor(o(a,h[1]),l.ch)}})},n.keyMap.default["Alt-G"]="jumpToLine"})}()),sM.exports}var cM=Zae();const fM=Kn({__proto__:null,default:Lr(cM)},[cM]);var dM=C3();const hM=Kn({__proto__:null,default:Lr(dM)},[dM]);var pM={exports:{}},mM;function Jae(){return mM||(mM=1,function(e,t){(function(n){n(No(),w3(),j7())})(function(n){var r=n.commands,i=n.Pos;function o(A,L,P){if(P<0&&L.ch==0)return A.clipPos(i(L.line-1));var j=A.getLine(L.line);if(P>0&&L.ch>=j.length)return A.clipPos(i(L.line+1,0));for(var F="start",B,q=L.ch,W=q,Z=P<0?0:j.length,X=0;W!=Z;W+=P,X++){var ee=j.charAt(P<0?W-1:W),H=ee!="_"&&n.isWordChar(ee)?"w":"o";if(H=="w"&&ee.toUpperCase()==ee&&(H="W"),F=="start")H!="o"?(F="in",B=H):q=W+P;else if(F=="in"&&B!=H){if(B=="w"&&H=="W"&&P<0&&W--,B=="W"&&H=="w"&&P>0)if(W==q+1){B="w";continue}else W--;break}}return i(L.line,W)}function a(A,L){A.extendSelectionsBy(function(P){return A.display.shift||A.doc.extend||P.empty()?o(A.doc,P.head,L):L<0?P.from():P.to()})}r.goSubwordLeft=function(A){a(A,-1)},r.goSubwordRight=function(A){a(A,1)},r.scrollLineUp=function(A){var L=A.getScrollInfo();if(!A.somethingSelected()){var P=A.lineAtHeight(L.top+L.clientHeight,"local");A.getCursor().line>=P&&A.execCommand("goLineUp")}A.scrollTo(null,L.top-A.defaultTextHeight())},r.scrollLineDown=function(A){var L=A.getScrollInfo();if(!A.somethingSelected()){var P=A.lineAtHeight(L.top,"local")+1;A.getCursor().line<=P&&A.execCommand("goLineDown")}A.scrollTo(null,L.top+A.defaultTextHeight())},r.splitSelectionByLine=function(A){for(var L=A.listSelections(),P=[],j=0;j<L.length;j++)for(var F=L[j].from(),B=L[j].to(),q=F.line;q<=B.line;++q)B.line>F.line&&q==B.line&&B.ch==0||P.push({anchor:q==F.line?F:i(q,0),head:q==B.line?B:i(q)});A.setSelections(P,0)},r.singleSelectionTop=function(A){var L=A.listSelections()[0];A.setSelection(L.anchor,L.head,{scroll:!1})},r.selectLine=function(A){for(var L=A.listSelections(),P=[],j=0;j<L.length;j++){var F=L[j];P.push({anchor:i(F.from().line,0),head:i(F.to().line+1,0)})}A.setSelections(P)};function l(A,L){if(A.isReadOnly())return n.Pass;A.operation(function(){for(var P=A.listSelections().length,j=[],F=-1,B=0;B<P;B++){var q=A.listSelections()[B].head;if(!(q.line<=F)){var W=i(q.line+(L?0:1),0);A.replaceRange(`
`,W,null,"+insertLine"),A.indentLine(W.line,null,!0),j.push({head:W,anchor:W}),F=q.line+1}}A.setSelections(j)}),A.execCommand("indentAuto")}r.insertLineAfter=function(A){return l(A,!1)},r.insertLineBefore=function(A){return l(A,!0)};function f(A,L){for(var P=L.ch,j=P,F=A.getLine(L.line);P&&n.isWordChar(F.charAt(P-1));)--P;for(;j<F.length&&n.isWordChar(F.charAt(j));)++j;return{from:i(L.line,P),to:i(L.line,j),word:F.slice(P,j)}}r.selectNextOccurrence=function(A){var L=A.getCursor("from"),P=A.getCursor("to"),j=A.state.sublimeFindFullWord==A.doc.sel;if(n.cmpPos(L,P)==0){var F=f(A,L);if(!F.word)return;A.setSelection(F.from,F.to),j=!0}else{var B=A.getRange(L,P),q=j?new RegExp("\\b"+B+"\\b"):B,W=A.getSearchCursor(q,P),Z=W.findNext();if(Z||(W=A.getSearchCursor(q,i(A.firstLine(),0)),Z=W.findNext()),!Z||p(A.listSelections(),W.from(),W.to()))return;A.addSelection(W.from(),W.to())}j&&(A.state.sublimeFindFullWord=A.doc.sel)},r.skipAndSelectNextOccurrence=function(A){var L=A.getCursor("anchor"),P=A.getCursor("head");r.selectNextOccurrence(A),n.cmpPos(L,P)!=0&&A.doc.setSelections(A.doc.listSelections().filter(function(j){return j.anchor!=L||j.head!=P}))};function h(A,L){for(var P=A.listSelections(),j=[],F=0;F<P.length;F++){var B=P[F],q=A.findPosV(B.anchor,L,"line",B.anchor.goalColumn),W=A.findPosV(B.head,L,"line",B.head.goalColumn);q.goalColumn=B.anchor.goalColumn!=null?B.anchor.goalColumn:A.cursorCoords(B.anchor,"div").left,W.goalColumn=B.head.goalColumn!=null?B.head.goalColumn:A.cursorCoords(B.head,"div").left;var Z={anchor:q,head:W};j.push(B),j.push(Z)}A.setSelections(j)}r.addCursorToPrevLine=function(A){h(A,-1)},r.addCursorToNextLine=function(A){h(A,1)};function p(A,L,P){for(var j=0;j<A.length;j++)if(n.cmpPos(A[j].from(),L)==0&&n.cmpPos(A[j].to(),P)==0)return!0;return!1}var b="(){}[]";function v(A){for(var L=A.listSelections(),P=[],j=0;j<L.length;j++){var F=L[j],B=F.head,q=A.scanForBracket(B,-1);if(!q)return!1;for(;;){var W=A.scanForBracket(B,1);if(!W)return!1;if(W.ch==b.charAt(b.indexOf(q.ch)+1)){var Z=i(q.pos.line,q.pos.ch+1);if(n.cmpPos(Z,F.from())==0&&n.cmpPos(W.pos,F.to())==0){if(q=A.scanForBracket(q.pos,-1),!q)return!1}else{P.push({anchor:Z,head:W.pos});break}}B=i(W.pos.line,W.pos.ch+1)}}return A.setSelections(P),!0}r.selectScope=function(A){v(A)||A.execCommand("selectAll")},r.selectBetweenBrackets=function(A){if(!v(A))return n.Pass};function x(A){return A?/\bpunctuation\b/.test(A)?A:void 0:null}r.goToBracket=function(A){A.extendSelectionsBy(function(L){var P=A.scanForBracket(L.head,1,x(A.getTokenTypeAt(L.head)));if(P&&n.cmpPos(P.pos,L.head)!=0)return P.pos;var j=A.scanForBracket(L.head,-1,x(A.getTokenTypeAt(i(L.head.line,L.head.ch+1))));return j&&i(j.pos.line,j.pos.ch+1)||L.head})},r.swapLineUp=function(A){if(A.isReadOnly())return n.Pass;for(var L=A.listSelections(),P=[],j=A.firstLine()-1,F=[],B=0;B<L.length;B++){var q=L[B],W=q.from().line-1,Z=q.to().line;F.push({anchor:i(q.anchor.line-1,q.anchor.ch),head:i(q.head.line-1,q.head.ch)}),q.to().ch==0&&!q.empty()&&--Z,W>j?P.push(W,Z):P.length&&(P[P.length-1]=Z),j=Z}A.operation(function(){for(var X=0;X<P.length;X+=2){var ee=P[X],H=P[X+1],J=A.getLine(ee);A.replaceRange("",i(ee,0),i(ee+1,0),"+swapLine"),H>A.lastLine()?A.replaceRange(`
`+J,i(A.lastLine()),null,"+swapLine"):A.replaceRange(J+`
`,i(H,0),null,"+swapLine")}A.setSelections(F),A.scrollIntoView()})},r.swapLineDown=function(A){if(A.isReadOnly())return n.Pass;for(var L=A.listSelections(),P=[],j=A.lastLine()+1,F=L.length-1;F>=0;F--){var B=L[F],q=B.to().line+1,W=B.from().line;B.to().ch==0&&!B.empty()&&q--,q<j?P.push(q,W):P.length&&(P[P.length-1]=W),j=W}A.operation(function(){for(var Z=P.length-2;Z>=0;Z-=2){var X=P[Z],ee=P[Z+1],H=A.getLine(X);X==A.lastLine()?A.replaceRange("",i(X-1),i(X),"+swapLine"):A.replaceRange("",i(X,0),i(X+1,0),"+swapLine"),A.replaceRange(H+`
`,i(ee,0),null,"+swapLine")}A.scrollIntoView()})},r.toggleCommentIndented=function(A){A.toggleComment({indent:!0})},r.joinLines=function(A){for(var L=A.listSelections(),P=[],j=0;j<L.length;j++){for(var F=L[j],B=F.from(),q=B.line,W=F.to().line;j<L.length-1&&L[j+1].from().line==W;)W=L[++j].to().line;P.push({start:q,end:W,anchor:!F.empty()&&B})}A.operation(function(){for(var Z=0,X=[],ee=0;ee<P.length;ee++){for(var H=P[ee],J=H.anchor&&i(H.anchor.line-Z,H.anchor.ch),ue,ne=H.start;ne<=H.end;ne++){var oe=ne-Z;ne==H.end&&(ue=i(oe,A.getLine(oe).length+1)),oe<A.lastLine()&&(A.replaceRange(" ",i(oe),i(oe+1,/^\s*/.exec(A.getLine(oe+1))[0].length)),++Z)}X.push({anchor:J||ue,head:ue})}A.setSelections(X,0)})},r.duplicateLine=function(A){A.operation(function(){for(var L=A.listSelections().length,P=0;P<L;P++){var j=A.listSelections()[P];j.empty()?A.replaceRange(A.getLine(j.head.line)+`
`,i(j.head.line,0)):A.replaceRange(A.getRange(j.from(),j.to()),j.from())}A.scrollIntoView()})};function S(A,L,P){if(A.isReadOnly())return n.Pass;for(var j=A.listSelections(),F=[],B,q=0;q<j.length;q++){var W=j[q];if(!W.empty()){for(var Z=W.from().line,X=W.to().line;q<j.length-1&&j[q+1].from().line==X;)X=j[++q].to().line;j[q].to().ch||X--,F.push(Z,X)}}F.length?B=!0:F.push(A.firstLine(),A.lastLine()),A.operation(function(){for(var ee=[],H=0;H<F.length;H+=2){var J=F[H],ue=F[H+1],ne=i(J,0),oe=i(ue),K=A.getRange(ne,oe,!1);L?K.sort(function(he,se){return he<se?-P:he==se?0:P}):K.sort(function(he,se){var fe=he.toUpperCase(),ae=se.toUpperCase();return fe!=ae&&(he=fe,se=ae),he<se?-P:he==se?0:P}),A.replaceRange(K,ne,oe),B&&ee.push({anchor:ne,head:i(ue+1,0)})}B&&A.setSelections(ee,0)})}r.sortLines=function(A){S(A,!0,1)},r.reverseSortLines=function(A){S(A,!0,-1)},r.sortLinesInsensitive=function(A){S(A,!1,1)},r.reverseSortLinesInsensitive=function(A){S(A,!1,-1)},r.nextBookmark=function(A){var L=A.state.sublimeBookmarks;if(L)for(;L.length;){var P=L.shift(),j=P.find();if(j)return L.push(P),A.setSelection(j.from,j.to)}},r.prevBookmark=function(A){var L=A.state.sublimeBookmarks;if(L)for(;L.length;){L.unshift(L.pop());var P=L[L.length-1].find();if(!P)L.pop();else return A.setSelection(P.from,P.to)}},r.toggleBookmark=function(A){for(var L=A.listSelections(),P=A.state.sublimeBookmarks||(A.state.sublimeBookmarks=[]),j=0;j<L.length;j++){for(var F=L[j].from(),B=L[j].to(),q=L[j].empty()?A.findMarksAt(F):A.findMarks(F,B),W=0;W<q.length;W++)if(q[W].sublimeBookmark){q[W].clear();for(var Z=0;Z<P.length;Z++)P[Z]==q[W]&&P.splice(Z--,1);break}W==q.length&&P.push(A.markText(F,B,{sublimeBookmark:!0,clearWhenEmpty:!1}))}},r.clearBookmarks=function(A){var L=A.state.sublimeBookmarks;if(L)for(var P=0;P<L.length;P++)L[P].clear();L.length=0},r.selectBookmarks=function(A){var L=A.state.sublimeBookmarks,P=[];if(L)for(var j=0;j<L.length;j++){var F=L[j].find();F?P.push({anchor:F.from,head:F.to}):L.splice(j--,0)}P.length&&A.setSelections(P,0)};function w(A,L){A.operation(function(){for(var P=A.listSelections(),j=[],F=[],B=0;B<P.length;B++){var q=P[B];q.empty()?(j.push(B),F.push("")):F.push(L(A.getRange(q.from(),q.to())))}A.replaceSelections(F,"around","case");for(var B=j.length-1,W;B>=0;B--){var q=P[j[B]];if(!(W&&n.cmpPos(q.head,W)>0)){var Z=f(A,q.head);W=Z.from,A.replaceRange(L(Z.word),Z.from,Z.to)}}})}r.smartBackspace=function(A){if(A.somethingSelected())return n.Pass;A.operation(function(){for(var L=A.listSelections(),P=A.getOption("indentUnit"),j=L.length-1;j>=0;j--){var F=L[j].head,B=A.getRange({line:F.line,ch:0},F),q=n.countColumn(B,null,A.getOption("tabSize")),W=A.findPosH(F,-1,"char",!1);if(B&&!/\S/.test(B)&&q%P==0){var Z=new i(F.line,n.findColumn(B,q-P,P));Z.ch!=F.ch&&(W=Z)}A.replaceRange("",W,F,"+delete")}})},r.delLineRight=function(A){A.operation(function(){for(var L=A.listSelections(),P=L.length-1;P>=0;P--)A.replaceRange("",L[P].anchor,i(L[P].to().line),"+delete");A.scrollIntoView()})},r.upcaseAtCursor=function(A){w(A,function(L){return L.toUpperCase()})},r.downcaseAtCursor=function(A){w(A,function(L){return L.toLowerCase()})},r.setSublimeMark=function(A){A.state.sublimeMark&&A.state.sublimeMark.clear(),A.state.sublimeMark=A.setBookmark(A.getCursor())},r.selectToSublimeMark=function(A){var L=A.state.sublimeMark&&A.state.sublimeMark.find();L&&A.setSelection(A.getCursor(),L)},r.deleteToSublimeMark=function(A){var L=A.state.sublimeMark&&A.state.sublimeMark.find();if(L){var P=A.getCursor(),j=L;if(n.cmpPos(P,j)>0){var F=j;j=P,P=F}A.state.sublimeKilled=A.getRange(P,j),A.replaceRange("",P,j)}},r.swapWithSublimeMark=function(A){var L=A.state.sublimeMark&&A.state.sublimeMark.find();L&&(A.state.sublimeMark.clear(),A.state.sublimeMark=A.setBookmark(A.getCursor()),A.setCursor(L))},r.sublimeYank=function(A){A.state.sublimeKilled!=null&&A.replaceSelection(A.state.sublimeKilled,null,"paste")},r.showInCenter=function(A){var L=A.cursorCoords(null,"local");A.scrollTo(null,(L.top+L.bottom)/2-A.getScrollInfo().clientHeight/2)};function k(A){var L=A.getCursor("from"),P=A.getCursor("to");if(n.cmpPos(L,P)==0){var j=f(A,L);if(!j.word)return;L=j.from,P=j.to}return{from:L,to:P,query:A.getRange(L,P),word:j}}function _(A,L){var P=k(A);if(P){var j=P.query,F=A.getSearchCursor(j,L?P.to:P.from);(L?F.findNext():F.findPrevious())?A.setSelection(F.from(),F.to()):(F=A.getSearchCursor(j,L?i(A.firstLine(),0):A.clipPos(i(A.lastLine()))),(L?F.findNext():F.findPrevious())?A.setSelection(F.from(),F.to()):P.word&&A.setSelection(P.from,P.to))}}r.findUnder=function(A){_(A,!0)},r.findUnderPrevious=function(A){_(A,!1)},r.findAllUnder=function(A){var L=k(A);if(L){for(var P=A.getSearchCursor(L.query),j=[],F=-1;P.findNext();)j.push({anchor:P.from(),head:P.to()}),P.from().line<=L.from.line&&P.from().ch<=L.from.ch&&F++;A.setSelections(j,F)}};var N=n.keyMap;N.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(N.macSublime),N.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(N.pcSublime);var O=N.default==N.macDefault;N.sublime=O?N.macSublime:N.pcSublime})}()),pM.exports}var gM=Jae();const vM=Kn({__proto__:null,default:Lr(gM)},[gM]);var yM={exports:{}},bM;function eue(){return bM||(bM=1,function(e,t){(function(n){n(No())})(function(n){n.defineMode("javascript",function(r,i){var o=r.indentUnit,a=i.statementIndent,l=i.jsonld,f=i.json||l,h=i.trackScope!==!1,p=i.typescript,b=i.wordCharacters||/[\w$\xa1-\uffff]/,v=function(){function Y(qn){return{type:qn,style:"keyword"}}var le=Y("keyword a"),je=Y("keyword b"),Ye=Y("keyword c"),Ae=Y("keyword d"),tt=Y("operator"),tn={type:"atom",style:"atom"};return{if:Y("if"),while:le,with:le,else:je,do:je,try:je,finally:je,return:Ae,break:Ae,continue:Ae,new:Y("new"),delete:Ye,void:Ye,throw:Ye,debugger:Y("debugger"),var:Y("var"),const:Y("var"),let:Y("var"),function:Y("function"),catch:Y("catch"),for:Y("for"),switch:Y("switch"),case:Y("case"),default:Y("default"),in:tt,typeof:tt,instanceof:tt,true:tn,false:tn,null:tn,undefined:tn,NaN:tn,Infinity:tn,this:Y("this"),class:Y("class"),super:Y("atom"),yield:Ye,export:Y("export"),import:Y("import"),extends:Ye,await:Ye}}(),x=/[+\-*&%=<>!?|~^@]/,S=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function w(Y){for(var le=!1,je,Ye=!1;(je=Y.next())!=null;){if(!le){if(je=="/"&&!Ye)return;je=="["?Ye=!0:Ye&&je=="]"&&(Ye=!1)}le=!le&&je=="\\"}}var k,_;function N(Y,le,je){return k=Y,_=je,le}function O(Y,le){var je=Y.next();if(je=='"'||je=="'")return le.tokenize=A(je),le.tokenize(Y,le);if(je=="."&&Y.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return N("number","number");if(je=="."&&Y.match(".."))return N("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(je))return N(je);if(je=="="&&Y.eat(">"))return N("=>","operator");if(je=="0"&&Y.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return N("number","number");if(/\d/.test(je))return Y.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),N("number","number");if(je=="/")return Y.eat("*")?(le.tokenize=L,L(Y,le)):Y.eat("/")?(Y.skipToEnd(),N("comment","comment")):Jn(Y,le,1)?(w(Y),Y.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),N("regexp","string-2")):(Y.eat("="),N("operator","operator",Y.current()));if(je=="`")return le.tokenize=P,P(Y,le);if(je=="#"&&Y.peek()=="!")return Y.skipToEnd(),N("meta","meta");if(je=="#"&&Y.eatWhile(b))return N("variable","property");if(je=="<"&&Y.match("!--")||je=="-"&&Y.match("->")&&!/\S/.test(Y.string.slice(0,Y.start)))return Y.skipToEnd(),N("comment","comment");if(x.test(je))return(je!=">"||!le.lexical||le.lexical.type!=">")&&(Y.eat("=")?(je=="!"||je=="=")&&Y.eat("="):/[<>*+\-|&?]/.test(je)&&(Y.eat(je),je==">"&&Y.eat(je))),je=="?"&&Y.eat(".")?N("."):N("operator","operator",Y.current());if(b.test(je)){Y.eatWhile(b);var Ye=Y.current();if(le.lastType!="."){if(v.propertyIsEnumerable(Ye)){var Ae=v[Ye];return N(Ae.type,Ae.style,Ye)}if(Ye=="async"&&Y.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return N("async","keyword",Ye)}return N("variable","variable",Ye)}}function A(Y){return function(le,je){var Ye=!1,Ae;if(l&&le.peek()=="@"&&le.match(S))return je.tokenize=O,N("jsonld-keyword","meta");for(;(Ae=le.next())!=null&&!(Ae==Y&&!Ye);)Ye=!Ye&&Ae=="\\";return Ye||(je.tokenize=O),N("string","string")}}function L(Y,le){for(var je=!1,Ye;Ye=Y.next();){if(Ye=="/"&&je){le.tokenize=O;break}je=Ye=="*"}return N("comment","comment")}function P(Y,le){for(var je=!1,Ye;(Ye=Y.next())!=null;){if(!je&&(Ye=="`"||Ye=="$"&&Y.eat("{"))){le.tokenize=O;break}je=!je&&Ye=="\\"}return N("quasi","string-2",Y.current())}var j="([{}])";function F(Y,le){le.fatArrowAt&&(le.fatArrowAt=null);var je=Y.string.indexOf("=>",Y.start);if(!(je<0)){if(p){var Ye=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(Y.string.slice(Y.start,je));Ye&&(je=Ye.index)}for(var Ae=0,tt=!1,tn=je-1;tn>=0;--tn){var qn=Y.string.charAt(tn),Ar=j.indexOf(qn);if(Ar>=0&&Ar<3){if(!Ae){++tn;break}if(--Ae==0){qn=="("&&(tt=!0);break}}else if(Ar>=3&&Ar<6)++Ae;else if(b.test(qn))tt=!0;else if(/["'\/`]/.test(qn))for(;;--tn){if(tn==0)return;var $i=Y.string.charAt(tn-1);if($i==qn&&Y.string.charAt(tn-2)!="\\"){tn--;break}}else if(tt&&!Ae){++tn;break}}tt&&!Ae&&(le.fatArrowAt=tn)}}var B={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function q(Y,le,je,Ye,Ae,tt){this.indented=Y,this.column=le,this.type=je,this.prev=Ae,this.info=tt,Ye!=null&&(this.align=Ye)}function W(Y,le){if(!h)return!1;for(var je=Y.localVars;je;je=je.next)if(je.name==le)return!0;for(var Ye=Y.context;Ye;Ye=Ye.prev)for(var je=Ye.vars;je;je=je.next)if(je.name==le)return!0}function Z(Y,le,je,Ye,Ae){var tt=Y.cc;for(X.state=Y,X.stream=Ae,X.marked=null,X.cc=tt,X.style=le,Y.lexical.hasOwnProperty("align")||(Y.lexical.align=!0);;){var tn=tt.length?tt.pop():f?et:Ve;if(tn(je,Ye)){for(;tt.length&&tt[tt.length-1].lex;)tt.pop()();return X.marked?X.marked:je=="variable"&&W(Y,Ye)?"variable-2":le}}}var X={state:null,marked:null,cc:null};function ee(){for(var Y=arguments.length-1;Y>=0;Y--)X.cc.push(arguments[Y])}function H(){return ee.apply(null,arguments),!0}function J(Y,le){for(var je=le;je;je=je.next)if(je.name==Y)return!0;return!1}function ue(Y){var le=X.state;if(X.marked="def",!!h){if(le.context){if(le.lexical.info=="var"&&le.context&&le.context.block){var je=ne(Y,le.context);if(je!=null){le.context=je;return}}else if(!J(Y,le.localVars)){le.localVars=new he(Y,le.localVars);return}}i.globalVars&&!J(Y,le.globalVars)&&(le.globalVars=new he(Y,le.globalVars))}}function ne(Y,le){if(le)if(le.block){var je=ne(Y,le.prev);return je?je==le.prev?le:new K(je,le.vars,!0):null}else return J(Y,le.vars)?le:new K(le.prev,new he(Y,le.vars),!1);else return null}function oe(Y){return Y=="public"||Y=="private"||Y=="protected"||Y=="abstract"||Y=="readonly"}function K(Y,le,je){this.prev=Y,this.vars=le,this.block=je}function he(Y,le){this.name=Y,this.next=le}var se=new he("this",new he("arguments",null));function fe(){X.state.context=new K(X.state.context,X.state.localVars,!1),X.state.localVars=se}function ae(){X.state.context=new K(X.state.context,X.state.localVars,!0),X.state.localVars=null}fe.lex=ae.lex=!0;function Ee(){X.state.localVars=X.state.context.vars,X.state.context=X.state.context.prev}Ee.lex=!0;function ve(Y,le){var je=function(){var Ye=X.state,Ae=Ye.indented;if(Ye.lexical.type=="stat")Ae=Ye.lexical.indented;else for(var tt=Ye.lexical;tt&&tt.type==")"&&tt.align;tt=tt.prev)Ae=tt.indented;Ye.lexical=new q(Ae,X.stream.column(),Y,null,Ye.lexical,le)};return je.lex=!0,je}function xe(){var Y=X.state;Y.lexical.prev&&(Y.lexical.type==")"&&(Y.indented=Y.lexical.indented),Y.lexical=Y.lexical.prev)}xe.lex=!0;function ge(Y){function le(je){return je==Y?H():Y==";"||je=="}"||je==")"||je=="]"?ee():H(le)}return le}function Ve(Y,le){return Y=="var"?H(ve("vardef",le),Rn,ge(";"),xe):Y=="keyword a"?H(ve("form"),we,Ve,xe):Y=="keyword b"?H(ve("form"),Ve,xe):Y=="keyword d"?X.stream.match(/^\s*$/,!1)?H():H(ve("stat"),qe,ge(";"),xe):Y=="debugger"?H(ge(";")):Y=="{"?H(ve("}"),ae,$t,xe,Ee):Y==";"?H():Y=="if"?(X.state.lexical.info=="else"&&X.state.cc[X.state.cc.length-1]==xe&&X.state.cc.pop()(),H(ve("form"),we,Ve,xe,Qr)):Y=="function"?H(Dn):Y=="for"?H(ve("form"),ae,Ci,Ve,Ee,xe):Y=="class"||p&&le=="interface"?(X.marked="keyword",H(ve("form",Y=="class"?Y:le),Zi,xe)):Y=="variable"?p&&le=="declare"?(X.marked="keyword",H(Ve)):p&&(le=="module"||le=="enum"||le=="type")&&X.stream.match(/^\s*\w/,!1)?(X.marked="keyword",le=="enum"?H(ot):le=="type"?H(Br,ge("operator"),Et,ge(";")):H(ve("form"),Dt,ge("{"),ve("}"),$t,xe,xe)):p&&le=="namespace"?(X.marked="keyword",H(ve("form"),et,Ve,xe)):p&&le=="abstract"?(X.marked="keyword",H(Ve)):H(ve("stat"),ut):Y=="switch"?H(ve("form"),we,ge("{"),ve("}","switch"),ae,$t,xe,xe,Ee):Y=="case"?H(et,ge(":")):Y=="default"?H(ge(":")):Y=="catch"?H(ve("form"),fe,Xe,Ve,xe,Ee):Y=="export"?H(ve("stat"),Bi,xe):Y=="import"?H(ve("stat"),to,xe):Y=="async"?H(Ve):le=="@"?H(et,Ve):ee(ve("stat"),et,ge(";"),xe)}function Xe(Y){if(Y=="(")return H(zn,ge(")"))}function et(Y,le){return pe(Y,le,!1)}function dt(Y,le){return pe(Y,le,!0)}function we(Y){return Y!="("?ee():H(ve(")"),qe,ge(")"),xe)}function pe(Y,le,je){if(X.state.fatArrowAt==X.stream.start){var Ye=je?Pe:Le;if(Y=="(")return H(fe,ve(")"),ft(zn,")"),xe,ge("=>"),Ye,Ee);if(Y=="variable")return ee(fe,Dt,ge("=>"),Ye,Ee)}var Ae=je?re:ye;return B.hasOwnProperty(Y)?H(Ae):Y=="function"?H(Dn,Ae):Y=="class"||p&&le=="interface"?(X.marked="keyword",H(ve("form"),ma,xe)):Y=="keyword c"||Y=="async"?H(je?dt:et):Y=="("?H(ve(")"),qe,ge(")"),xe,Ae):Y=="operator"||Y=="spread"?H(je?dt:et):Y=="["?H(ve("]"),Fn,xe,Ae):Y=="{"?Bt(kt,"}",null,Ae):Y=="quasi"?ee(_e,Ae):Y=="new"?H(Te(je)):H()}function qe(Y){return Y.match(/[;\}\)\],]/)?ee():ee(et)}function ye(Y,le){return Y==","?H(qe):re(Y,le,!1)}function re(Y,le,je){var Ye=je==!1?ye:re,Ae=je==!1?et:dt;if(Y=="=>")return H(fe,je?Pe:Le,Ee);if(Y=="operator")return/\+\+|--/.test(le)||p&&le=="!"?H(Ye):p&&le=="<"&&X.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?H(ve(">"),ft(Et,">"),xe,Ye):le=="?"?H(et,ge(":"),Ae):H(Ae);if(Y=="quasi")return ee(_e,Ye);if(Y!=";"){if(Y=="(")return Bt(dt,")","call",Ye);if(Y==".")return H(At,Ye);if(Y=="[")return H(ve("]"),qe,ge("]"),xe,Ye);if(p&&le=="as")return X.marked="keyword",H(Et,Ye);if(Y=="regexp")return X.state.lastType=X.marked="operator",X.stream.backUp(X.stream.pos-X.stream.start-1),H(Ae)}}function _e(Y,le){return Y!="quasi"?ee():le.slice(le.length-2)!="${"?H(_e):H(qe,ze)}function ze(Y){if(Y=="}")return X.marked="string-2",X.state.tokenize=P,H(_e)}function Le(Y){return F(X.stream,X.state),ee(Y=="{"?Ve:et)}function Pe(Y){return F(X.stream,X.state),ee(Y=="{"?Ve:dt)}function Te(Y){return function(le){return le=="."?H(Y?Qe:Ie):le=="variable"&&p?H(St,Y?re:ye):ee(Y?dt:et)}}function Ie(Y,le){if(le=="target")return X.marked="keyword",H(ye)}function Qe(Y,le){if(le=="target")return X.marked="keyword",H(re)}function ut(Y){return Y==":"?H(xe,Ve):ee(ye,ge(";"),xe)}function At(Y){if(Y=="variable")return X.marked="property",H()}function kt(Y,le){if(Y=="async")return X.marked="property",H(kt);if(Y=="variable"||X.style=="keyword"){if(X.marked="property",le=="get"||le=="set")return H(ct);var je;return p&&X.state.fatArrowAt==X.stream.start&&(je=X.stream.match(/^\s*:\s*/,!1))&&(X.state.fatArrowAt=X.stream.pos+je[0].length),H(mt)}else{if(Y=="number"||Y=="string")return X.marked=l?"property":X.style+" property",H(mt);if(Y=="jsonld-keyword")return H(mt);if(p&&oe(le))return X.marked="keyword",H(kt);if(Y=="[")return H(et,Gt,ge("]"),mt);if(Y=="spread")return H(dt,mt);if(le=="*")return X.marked="keyword",H(kt);if(Y==":")return ee(mt)}}function ct(Y){return Y!="variable"?ee(mt):(X.marked="property",H(Dn))}function mt(Y){if(Y==":")return H(dt);if(Y=="(")return ee(Dn)}function ft(Y,le,je){function Ye(Ae,tt){if(je?je.indexOf(Ae)>-1:Ae==","){var tn=X.state.lexical;return tn.info=="call"&&(tn.pos=(tn.pos||0)+1),H(function(qn,Ar){return qn==le||Ar==le?ee():ee(Y)},Ye)}return Ae==le||tt==le?H():je&&je.indexOf(";")>-1?ee(Y):H(ge(le))}return function(Ae,tt){return Ae==le||tt==le?H():ee(Y,Ye)}}function Bt(Y,le,je){for(var Ye=3;Ye<arguments.length;Ye++)X.cc.push(arguments[Ye]);return H(ve(le,je),ft(Y,le),xe)}function $t(Y){return Y=="}"?H():ee(Ve,$t)}function Gt(Y,le){if(p){if(Y==":")return H(Et);if(le=="?")return H(Gt)}}function fn(Y,le){if(p&&(Y==":"||le=="in"))return H(Et)}function _n(Y){if(p&&Y==":")return X.stream.match(/^\s*\w+\s+is\b/,!1)?H(et,Bn,Et):H(Et)}function Bn(Y,le){if(le=="is")return X.marked="keyword",H()}function Et(Y,le){if(le=="keyof"||le=="typeof"||le=="infer"||le=="readonly")return X.marked="keyword",H(le=="typeof"?dt:Et);if(Y=="variable"||le=="void")return X.marked="type",H(xt);if(le=="|"||le=="&")return H(Et);if(Y=="string"||Y=="number"||Y=="atom")return H(xt);if(Y=="[")return H(ve("]"),ft(Et,"]",","),xe,xt);if(Y=="{")return H(ve("}"),lt,xe,xt);if(Y=="(")return H(ft(bn,")"),Vr,xt);if(Y=="<")return H(ft(Et,">"),Et);if(Y=="quasi")return ee(An,xt)}function Vr(Y){if(Y=="=>")return H(Et)}function lt(Y){return Y.match(/[\}\)\]]/)?H():Y==","||Y==";"?H(lt):ee(Sn,lt)}function Sn(Y,le){if(Y=="variable"||X.style=="keyword")return X.marked="property",H(Sn);if(le=="?"||Y=="number"||Y=="string")return H(Sn);if(Y==":")return H(Et);if(Y=="[")return H(ge("variable"),fn,ge("]"),Sn);if(Y=="(")return ee(Kr,Sn);if(!Y.match(/[;\}\)\],]/))return H()}function An(Y,le){return Y!="quasi"?ee():le.slice(le.length-2)!="${"?H(An):H(Et,Yt)}function Yt(Y){if(Y=="}")return X.marked="string-2",X.state.tokenize=P,H(An)}function bn(Y,le){return Y=="variable"&&X.stream.match(/^\s*[?:]/,!1)||le=="?"?H(bn):Y==":"?H(Et):Y=="spread"?H(bn):ee(Et)}function xt(Y,le){if(le=="<")return H(ve(">"),ft(Et,">"),xe,xt);if(le=="|"||Y=="."||le=="&")return H(Et);if(Y=="[")return H(Et,ge("]"),xt);if(le=="extends"||le=="implements")return X.marked="keyword",H(Et);if(le=="?")return H(Et,ge(":"),Et)}function St(Y,le){if(le=="<")return H(ve(">"),ft(Et,">"),xe,xt)}function Qt(){return ee(Et,Lt)}function Lt(Y,le){if(le=="=")return H(Et)}function Rn(Y,le){return le=="enum"?(X.marked="keyword",H(ot)):ee(Dt,Gt,en,wi)}function Dt(Y,le){if(p&&oe(le))return X.marked="keyword",H(Dt);if(Y=="variable")return ue(le),H();if(Y=="spread")return H(Dt);if(Y=="[")return Bt(It,"]");if(Y=="{")return Bt(Jt,"}")}function Jt(Y,le){return Y=="variable"&&!X.stream.match(/^\s*:/,!1)?(ue(le),H(en)):(Y=="variable"&&(X.marked="property"),Y=="spread"?H(Dt):Y=="}"?ee():Y=="["?H(et,ge("]"),ge(":"),Jt):H(ge(":"),Dt,en))}function It(){return ee(Dt,en)}function en(Y,le){if(le=="=")return H(dt)}function wi(Y){if(Y==",")return H(Rn)}function Qr(Y,le){if(Y=="keyword b"&&le=="else")return H(ve("form","else"),Ve,xe)}function Ci(Y,le){if(le=="await")return H(Ci);if(Y=="(")return H(ve(")"),Xi,xe)}function Xi(Y){return Y=="var"?H(Rn,Er):Y=="variable"?H(Er):ee(Er)}function Er(Y,le){return Y==")"?H():Y==";"?H(Er):le=="in"||le=="of"?(X.marked="keyword",H(et,Er)):ee(et,Er)}function Dn(Y,le){if(le=="*")return X.marked="keyword",H(Dn);if(Y=="variable")return ue(le),H(Dn);if(Y=="(")return H(fe,ve(")"),ft(zn,")"),xe,_n,Ve,Ee);if(p&&le=="<")return H(ve(">"),ft(Qt,">"),xe,Dn)}function Kr(Y,le){if(le=="*")return X.marked="keyword",H(Kr);if(Y=="variable")return ue(le),H(Kr);if(Y=="(")return H(fe,ve(")"),ft(zn,")"),xe,_n,Ee);if(p&&le=="<")return H(ve(">"),ft(Qt,">"),xe,Kr)}function Br(Y,le){if(Y=="keyword"||Y=="variable")return X.marked="type",H(Br);if(le=="<")return H(ve(">"),ft(Qt,">"),xe)}function zn(Y,le){return le=="@"&&H(et,zn),Y=="spread"?H(zn):p&&oe(le)?(X.marked="keyword",H(zn)):p&&Y=="this"?H(Gt,en):ee(Dt,Gt,en)}function ma(Y,le){return Y=="variable"?Zi(Y,le):dn(Y,le)}function Zi(Y,le){if(Y=="variable")return ue(le),H(dn)}function dn(Y,le){if(le=="<")return H(ve(">"),ft(Qt,">"),xe,dn);if(le=="extends"||le=="implements"||p&&Y==",")return le=="implements"&&(X.marked="keyword"),H(p?Et:et,dn);if(Y=="{")return H(ve("}"),Xr,xe)}function Xr(Y,le){if(Y=="async"||Y=="variable"&&(le=="static"||le=="get"||le=="set"||p&&oe(le))&&X.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return X.marked="keyword",H(Xr);if(Y=="variable"||X.style=="keyword")return X.marked="property",H(Ji,Xr);if(Y=="number"||Y=="string")return H(Ji,Xr);if(Y=="[")return H(et,Gt,ge("]"),Ji,Xr);if(le=="*")return X.marked="keyword",H(Xr);if(p&&Y=="(")return ee(Kr,Xr);if(Y==";"||Y==",")return H(Xr);if(Y=="}")return H();if(le=="@")return H(et,Xr)}function Ji(Y,le){if(le=="!"||le=="?")return H(Ji);if(Y==":")return H(Et,en);if(le=="=")return H(dt);var je=X.state.lexical.prev,Ye=je&&je.info=="interface";return ee(Ye?Kr:Dn)}function Bi(Y,le){return le=="*"?(X.marked="keyword",H(Oo,ge(";"))):le=="default"?(X.marked="keyword",H(et,ge(";"))):Y=="{"?H(ft(eo,"}"),Oo,ge(";")):ee(Ve)}function eo(Y,le){if(le=="as")return X.marked="keyword",H(ge("variable"));if(Y=="variable")return ee(dt,eo)}function to(Y){return Y=="string"?H():Y=="("?ee(et):Y=="."?ee(ye):ee(mo,ui,Oo)}function mo(Y,le){return Y=="{"?Bt(mo,"}"):(Y=="variable"&&ue(le),le=="*"&&(X.marked="keyword"),H(qo))}function ui(Y){if(Y==",")return H(mo,ui)}function qo(Y,le){if(le=="as")return X.marked="keyword",H(mo)}function Oo(Y,le){if(le=="from")return X.marked="keyword",H(et)}function Fn(Y){return Y=="]"?H():ee(ft(dt,"]"))}function ot(){return ee(ve("form"),Dt,ge("{"),ve("}"),ft(li,"}"),xe,xe)}function li(){return ee(Dt,en)}function ko(Y,le){return Y.lastType=="operator"||Y.lastType==","||x.test(le.charAt(0))||/[,.]/.test(le.charAt(0))}function Jn(Y,le,je){return le.tokenize==O&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(le.lastType)||le.lastType=="quasi"&&/\{\s*$/.test(Y.string.slice(0,Y.pos-(je||0)))}return{startState:function(Y){var le={tokenize:O,lastType:"sof",cc:[],lexical:new q((Y||0)-o,0,"block",!1),localVars:i.localVars,context:i.localVars&&new K(null,null,!1),indented:Y||0};return i.globalVars&&typeof i.globalVars=="object"&&(le.globalVars=i.globalVars),le},token:function(Y,le){if(Y.sol()&&(le.lexical.hasOwnProperty("align")||(le.lexical.align=!1),le.indented=Y.indentation(),F(Y,le)),le.tokenize!=L&&Y.eatSpace())return null;var je=le.tokenize(Y,le);return k=="comment"?je:(le.lastType=k=="operator"&&(_=="++"||_=="--")?"incdec":k,Z(le,je,k,_,Y))},indent:function(Y,le){if(Y.tokenize==L||Y.tokenize==P)return n.Pass;if(Y.tokenize!=O)return 0;var je=le&&le.charAt(0),Ye=Y.lexical,Ae;if(!/^\s*else\b/.test(le))for(var tt=Y.cc.length-1;tt>=0;--tt){var tn=Y.cc[tt];if(tn==xe)Ye=Ye.prev;else if(tn!=Qr&&tn!=Ee)break}for(;(Ye.type=="stat"||Ye.type=="form")&&(je=="}"||(Ae=Y.cc[Y.cc.length-1])&&(Ae==ye||Ae==re)&&!/^[,\.=+\-*:?[\(]/.test(le));)Ye=Ye.prev;a&&Ye.type==")"&&Ye.prev.type=="stat"&&(Ye=Ye.prev);var qn=Ye.type,Ar=je==qn;return qn=="vardef"?Ye.indented+(Y.lastType=="operator"||Y.lastType==","?Ye.info.length+1:0):qn=="form"&&je=="{"?Ye.indented:qn=="form"?Ye.indented+o:qn=="stat"?Ye.indented+(ko(Y,le)?a||o:0):Ye.info=="switch"&&!Ar&&i.doubleIndentSwitch!=!1?Ye.indented+(/^(?:case|default)\b/.test(le)?o:2*o):Ye.align?Ye.column+(Ar?0:1):Ye.indented+(Ar?0:o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:f?null:"/*",blockCommentEnd:f?null:"*/",blockCommentContinue:f?null:" * ",lineComment:f?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:f?"json":"javascript",jsonldMode:l,jsonMode:f,expressionAllowed:Jn,skipExpression:function(Y){Z(Y,"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})})}()),yM.exports}var EM=eue();const tue=Kn({__proto__:null,default:Lr(EM)},[EM]);var xM={exports:{}},TM;function nue(){return TM||(TM=1,function(e,t){(function(n){n(No())})(function(n){var r={},i=/[^\s\u00a0]/,o=n.Pos,a=n.cmpPos;function l(p){var b=p.search(i);return b==-1?0:b}n.commands.toggleComment=function(p){p.toggleComment()},n.defineExtension("toggleComment",function(p){p||(p=r);for(var b=this,v=1/0,x=this.listSelections(),S=null,w=x.length-1;w>=0;w--){var k=x[w].from(),_=x[w].to();k.line>=v||(_.line>=v&&(_=o(v,0)),v=k.line,S==null?b.uncomment(k,_,p)?S="un":(b.lineComment(k,_,p),S="line"):S=="un"?b.uncomment(k,_,p):b.lineComment(k,_,p))}});function f(p,b,v){return/\bstring\b/.test(p.getTokenTypeAt(o(b.line,0)))&&!/^[\'\"\`]/.test(v)}function h(p,b){var v=p.getMode();return v.useInnerComments===!1||!v.innerMode?v:p.getModeAt(b)}n.defineExtension("lineComment",function(p,b,v){v||(v=r);var x=this,S=h(x,p),w=x.getLine(p.line);if(!(w==null||f(x,p,w))){var k=v.lineComment||S.lineComment;if(!k){(v.blockCommentStart||S.blockCommentStart)&&(v.fullLines=!0,x.blockComment(p,b,v));return}var _=Math.min(b.ch!=0||b.line==p.line?b.line+1:b.line,x.lastLine()+1),N=v.padding==null?" ":v.padding,O=v.commentBlankLines||p.line==b.line;x.operation(function(){if(v.indent){for(var A=null,L=p.line;L<_;++L){var P=x.getLine(L),j=P.search(i)===-1?P:P.slice(0,l(P));(A==null||A.length>j.length)&&(A=j)}for(var L=p.line;L<_;++L){var P=x.getLine(L),F=A.length;!O&&!i.test(P)||(P.slice(0,F)!=A&&(F=l(P)),x.replaceRange(A+k+N,o(L,0),o(L,F)))}}else for(var L=p.line;L<_;++L)(O||i.test(x.getLine(L)))&&x.replaceRange(k+N,o(L,0))})}}),n.defineExtension("blockComment",function(p,b,v){v||(v=r);var x=this,S=h(x,p),w=v.blockCommentStart||S.blockCommentStart,k=v.blockCommentEnd||S.blockCommentEnd;if(!w||!k){(v.lineComment||S.lineComment)&&v.fullLines!=!1&&x.lineComment(p,b,v);return}if(!/\bcomment\b/.test(x.getTokenTypeAt(o(p.line,0)))){var _=Math.min(b.line,x.lastLine());_!=p.line&&b.ch==0&&i.test(x.getLine(_))&&--_;var N=v.padding==null?" ":v.padding;p.line>_||x.operation(function(){if(v.fullLines!=!1){var O=i.test(x.getLine(_));x.replaceRange(N+k,o(_)),x.replaceRange(w+N,o(p.line,0));var A=v.blockCommentLead||S.blockCommentLead;if(A!=null)for(var L=p.line+1;L<=_;++L)(L!=_||O)&&x.replaceRange(A+N,o(L,0))}else{var P=a(x.getCursor("to"),b)==0,j=!x.somethingSelected();x.replaceRange(k,b),P&&x.setSelection(j?b:x.getCursor("from"),b),x.replaceRange(w,p)}})}}),n.defineExtension("uncomment",function(p,b,v){v||(v=r);var x=this,S=h(x,p),w=Math.min(b.ch!=0||b.line==p.line?b.line:b.line-1,x.lastLine()),k=Math.min(p.line,w),_=v.lineComment||S.lineComment,N=[],O=v.padding==null?" ":v.padding,A;e:{if(!_)break e;for(var L=k;L<=w;++L){var P=x.getLine(L),j=P.indexOf(_);if(j>-1&&!/comment/.test(x.getTokenTypeAt(o(L,j+1)))&&(j=-1),j==-1&&i.test(P)||j>-1&&i.test(P.slice(0,j)))break e;N.push(P)}if(x.operation(function(){for(var K=k;K<=w;++K){var he=N[K-k],se=he.indexOf(_),fe=se+_.length;se<0||(he.slice(fe,fe+O.length)==O&&(fe+=O.length),A=!0,x.replaceRange("",o(K,se),o(K,fe)))}}),A)return!0}var F=v.blockCommentStart||S.blockCommentStart,B=v.blockCommentEnd||S.blockCommentEnd;if(!F||!B)return!1;var q=v.blockCommentLead||S.blockCommentLead,W=x.getLine(k),Z=W.indexOf(F);if(Z==-1)return!1;var X=w==k?W:x.getLine(w),ee=X.indexOf(B,w==k?Z+F.length:0),H=o(k,Z+1),J=o(w,ee+1);if(ee==-1||!/comment/.test(x.getTokenTypeAt(H))||!/comment/.test(x.getTokenTypeAt(J))||x.getRange(H,J,`
`).indexOf(B)>-1)return!1;var ue=W.lastIndexOf(F,p.ch),ne=ue==-1?-1:W.slice(0,p.ch).indexOf(B,ue+F.length);if(ue!=-1&&ne!=-1&&ne+B.length!=p.ch)return!1;ne=X.indexOf(B,b.ch);var oe=X.slice(b.ch).lastIndexOf(F,ne-b.ch);return ue=ne==-1||oe==-1?-1:b.ch+oe,ne!=-1&&ue!=-1&&ue!=b.ch?!1:(x.operation(function(){x.replaceRange("",o(w,ee-(O&&X.slice(ee-O.length,ee)==O?O.length:0)),o(w,ee+B.length));var K=Z+F.length;if(O&&W.slice(K,K+O.length)==O&&(K+=O.length),x.replaceRange("",o(k,Z),o(k,K)),q)for(var he=k+1;he<=w;++he){var se=x.getLine(he),fe=se.indexOf(q);if(!(fe==-1||i.test(se.slice(0,fe)))){var ae=fe+q.length;O&&se.slice(ae,ae+O.length)==O&&(ae+=O.length),x.replaceRange("",o(he,fe),o(he,ae))}}}),!0)})})}()),xM.exports}var SM=nue();const rue=Kn({__proto__:null,default:Lr(SM)},[SM]);var wM={exports:{}},CM;function iue(){return CM||(CM=1,function(e,t){(function(n){n(No(),w3(),C3())})(function(n){n.defineOption("search",{bottom:!1});function r(F,B){return typeof F=="string"?F=new RegExp(F.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),B?"gi":"g"):F.global||(F=new RegExp(F.source,F.ignoreCase?"gi":"g")),{token:function(q){F.lastIndex=q.pos;var W=F.exec(q.string);if(W&&W.index==q.pos)return q.pos+=W[0].length||1,"searching";W?q.pos=W.index:q.skipToEnd()}}}function i(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function o(F){return F.state.search||(F.state.search=new i)}function a(F){return typeof F=="string"&&F==F.toLowerCase()}function l(F,B,q){return F.getSearchCursor(B,q,{caseFold:a(B),multiline:!0})}function f(F,B,q,W,Z){F.openDialog(B,W,{value:q,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){k(F)},onKeyDown:Z,bottom:F.options.search.bottom})}function h(F,B,q,W,Z){F.openDialog?F.openDialog(B,Z,{value:W,selectValueOnOpen:!0,bottom:F.options.search.bottom}):Z(prompt(q,W))}function p(F,B,q,W){F.openConfirm?F.openConfirm(B,W):confirm(q)&&W[0]()}function b(F){return F.replace(/\\([nrt\\])/g,function(B,q){return q=="n"?`
`:q=="r"?"\r":q=="t"?" ":q=="\\"?"\\":B})}function v(F){var B=F.match(/^\/(.*)\/([a-z]*)$/);if(B)try{F=new RegExp(B[1],B[2].indexOf("i")==-1?"":"i")}catch{}else F=b(F);return(typeof F=="string"?F=="":F.test(""))&&(F=/x^/),F}function x(F,B,q){B.queryText=q,B.query=v(q),F.removeOverlay(B.overlay,a(B.query)),B.overlay=r(B.query,a(B.query)),F.addOverlay(B.overlay),F.showMatchesOnScrollbar&&(B.annotate&&(B.annotate.clear(),B.annotate=null),B.annotate=F.showMatchesOnScrollbar(B.query,a(B.query)))}function S(F,B,q,W){var Z=o(F);if(Z.query)return w(F,B);var X=F.getSelection()||Z.lastQuery;if(X instanceof RegExp&&X.source=="x^"&&(X=null),q&&F.openDialog){var ee=null,H=function(J,ue){n.e_stop(ue),J&&(J!=Z.queryText&&(x(F,Z,J),Z.posFrom=Z.posTo=F.getCursor()),ee&&(ee.style.opacity=1),w(F,ue.shiftKey,function(ne,oe){var K;oe.line<3&&document.querySelector&&(K=F.display.wrapper.querySelector(".CodeMirror-dialog"))&&K.getBoundingClientRect().bottom-4>F.cursorCoords(oe,"window").top&&((ee=K).style.opacity=.4)}))};f(F,N(F),X,H,function(J,ue){var ne=n.keyName(J),oe=F.getOption("extraKeys"),K=oe&&oe[ne]||n.keyMap[F.getOption("keyMap")][ne];K=="findNext"||K=="findPrev"||K=="findPersistentNext"||K=="findPersistentPrev"?(n.e_stop(J),x(F,o(F),ue),F.execCommand(K)):(K=="find"||K=="findPersistent")&&(n.e_stop(J),H(ue,J))}),W&&X&&(x(F,Z,X),w(F,B))}else h(F,N(F),"Search for:",X,function(J){J&&!Z.query&&F.operation(function(){x(F,Z,J),Z.posFrom=Z.posTo=F.getCursor(),w(F,B)})})}function w(F,B,q){F.operation(function(){var W=o(F),Z=l(F,W.query,B?W.posFrom:W.posTo);!Z.find(B)&&(Z=l(F,W.query,B?n.Pos(F.lastLine()):n.Pos(F.firstLine(),0)),!Z.find(B))||(F.setSelection(Z.from(),Z.to()),F.scrollIntoView({from:Z.from(),to:Z.to()},20),W.posFrom=Z.from(),W.posTo=Z.to(),q&&q(Z.from(),Z.to()))})}function k(F){F.operation(function(){var B=o(F);B.lastQuery=B.query,B.query&&(B.query=B.queryText=null,F.removeOverlay(B.overlay),B.annotate&&(B.annotate.clear(),B.annotate=null))})}function _(F,B){var q=F?document.createElement(F):document.createDocumentFragment();for(var W in B)q[W]=B[W];for(var Z=2;Z<arguments.length;Z++){var X=arguments[Z];q.appendChild(typeof X=="string"?document.createTextNode(X):X)}return q}function N(F){var B=_("label",{className:"CodeMirror-search-label"},F.phrase("Search:"),_("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field",id:"CodeMirror-search-field"}));return B.setAttribute("for","CodeMirror-search-field"),_("",null,B," ",_("span",{style:"color: #666",className:"CodeMirror-search-hint"},F.phrase("(Use /re/ syntax for regexp search)")))}function O(F){return _("",null," ",_("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"})," ",_("span",{style:"color: #666",className:"CodeMirror-search-hint"},F.phrase("(Use /re/ syntax for regexp search)")))}function A(F){return _("",null,_("span",{className:"CodeMirror-search-label"},F.phrase("With:"))," ",_("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"}))}function L(F){return _("",null,_("span",{className:"CodeMirror-search-label"},F.phrase("Replace?"))," ",_("button",{},F.phrase("Yes"))," ",_("button",{},F.phrase("No"))," ",_("button",{},F.phrase("All"))," ",_("button",{},F.phrase("Stop")))}function P(F,B,q){F.operation(function(){for(var W=l(F,B);W.findNext();)if(typeof B!="string"){var Z=F.getRange(W.from(),W.to()).match(B);W.replace(q.replace(/\$(\d)/g,function(X,ee){return Z[ee]}))}else W.replace(q)})}function j(F,B){if(!F.getOption("readOnly")){var q=F.getSelection()||o(F).lastQuery,W=B?F.phrase("Replace all:"):F.phrase("Replace:"),Z=_("",null,_("span",{className:"CodeMirror-search-label"},W),O(F));h(F,Z,W,q,function(X){X&&(X=v(X),h(F,A(F),F.phrase("Replace with:"),"",function(ee){if(ee=b(ee),B)P(F,X,ee);else{k(F);var H=l(F,X,F.getCursor("from")),J=function(){var ne=H.from(),oe;!(oe=H.findNext())&&(H=l(F,X),!(oe=H.findNext())||ne&&H.from().line==ne.line&&H.from().ch==ne.ch)||(F.setSelection(H.from(),H.to()),F.scrollIntoView({from:H.from(),to:H.to()}),p(F,L(F),F.phrase("Replace?"),[function(){ue(oe)},J,function(){P(F,X,ee)}]))},ue=function(ne){H.replace(typeof X=="string"?ee:ee.replace(/\$(\d)/g,function(oe,K){return ne[K]})),J()};J()}}))})}}n.commands.find=function(F){k(F),S(F)},n.commands.findPersistent=function(F){k(F),S(F,!1,!0)},n.commands.findPersistentNext=function(F){S(F,!1,!0,!0)},n.commands.findPersistentPrev=function(F){S(F,!0,!0,!0)},n.commands.findNext=S,n.commands.findPrev=function(F){S(F,!0)},n.commands.clearSearch=k,n.commands.replace=j,n.commands.replaceAll=function(F){j(F,!0)}})}()),wM.exports}var _M=iue();const AM=Kn({__proto__:null,default:Lr(_M)},[_M]);Ut.registerHelper("hint","graphql",(e,t)=>{const{schema:n,externalFragments:r,autocompleteOptions:i}=t;if(!n)return;const o=e.getCursor(),a=e.getTokenAt(o),l=a.type!==null&&/"|\w/.test(a.string[0])?a.start:a.end,f=new Kc(o.line,l),p={list:Fj(n,e.getValue(),f,a,r,i).map(b=>{var v;return{text:(v=b==null?void 0:b.rawInsert)!==null&&v!==void 0?v:b.label,type:b.type,description:b.documentation,isDeprecated:b.isDeprecated,deprecationReason:b.deprecationReason}}),from:{line:o.line,ch:l},to:{line:o.line,ch:a.end}};return p!=null&&p.list&&p.list.length>0&&(p.from=Ut.Pos(p.from.line,p.from.ch),p.to=Ut.Pos(p.to.line,p.to.ch),Ut.signal(e,"hasCompletion",e,p,a)),p});const oue=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),DM=["error","warning","information","hint"],sue={"GraphQL: Validation":"validation","GraphQL: Deprecation":"deprecation","GraphQL: Syntax":"syntax"};Ut.registerHelper("lint","graphql",(e,t)=>{const{schema:n,validationRules:r,externalFragments:i}=t;return oV(e,n,r,void 0,i).map(l=>({message:l.message,severity:l.severity?DM[l.severity-1]:DM[0],type:l.source?sue[l.source]:void 0,from:Ut.Pos(l.range.start.line,l.range.start.character),to:Ut.Pos(l.range.end.line,l.range.end.character)}))});const aue=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));function NM(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 OM(e,t){const n={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return NM(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?kM(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?yn(n.type):null;break;case"Directive":n.directiveDef=r.name?e.getDirective(r.name):null;break;case"Arguments":const a=r.prevState?r.prevState.kind==="Field"?n.fieldDef:r.prevState.kind==="Directive"?n.directiveDef:r.prevState.kind==="AliasedField"?r.prevState.name&&kM(e,n.parentType,r.prevState.name):null:null;n.argDefs=a?a.args:null;break;case"Argument":if(n.argDef=null,n.argDefs){for(let b=0;b<n.argDefs.length;b++)if(n.argDefs[b].name===r.name){n.argDef=n.argDefs[b];break}}n.inputType=(o=n.argDef)===null||o===void 0?void 0:o.type;break;case"EnumValue":const l=n.inputType?yn(n.inputType):null;n.enumValue=l instanceof co?uue(l.getValues(),b=>b.value===r.name):null;break;case"ListValue":const f=n.inputType?pl(n.inputType):null;n.inputType=f instanceof fr?f.ofType:null;break;case"ObjectValue":const h=n.inputType?yn(n.inputType):null;n.objectFieldDefs=h instanceof So?h.getFields():null;break;case"ObjectField":const p=r.name&&n.objectFieldDefs?n.objectFieldDefs[r.name]:null;n.inputType=p==null?void 0:p.type,n.fieldDef=p;break;case"NamedType":n.type=r.name?e.getType(r.name):null;break}}),n}function kM(e,t,n){if(n===ws.name&&e.getQueryType()===t)return ws;if(n===Cs.name&&e.getQueryType()===t)return Cs;if(n===_s.name&&si(t))return _s;if(t&&t.getFields)return t.getFields()[n]}function uue(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return e[n]}function RM(e){return{kind:"Field",schema:e.schema,field:e.fieldDef,type:FM(e.fieldDef)?null:e.parentType}}function MM(e){return{kind:"Directive",schema:e.schema,directive:e.directiveDef}}function LM(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:FM(e.fieldDef)?null:e.parentType}}function IM(e){return{kind:"EnumValue",value:e.enumValue||void 0,type:e.inputType?yn(e.inputType):void 0}}function _3(e,t){return{kind:"Type",schema:e.schema,type:t||e.type}}function FM(e){return e.name.slice(0,2)==="__"}Ut.defineOption("info",!1,(e,t,n)=>{if(n&&n!==Ut.Init){const r=e.state.info.onMouseOver;Ut.off(e.getWrapperElement(),"mouseover",r),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){const r=e.state.info=lue(t);r.onMouseOver=fue.bind(null,e),Ut.on(e.getWrapperElement(),"mouseover",r.onMouseOver)}});function lue(e){return{options:e instanceof Function?{render:e}:e===!0?{}:e}}function cue(e){const{options:t}=e.state.info;return(t==null?void 0:t.hoverTime)||500}function fue(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=function(){clearTimeout(n.hoverTimeout),n.hoverTimeout=setTimeout(l,f)},a=function(){Ut.off(document,"mousemove",o),Ut.off(e.getWrapperElement(),"mouseout",a),clearTimeout(n.hoverTimeout),n.hoverTimeout=void 0},l=function(){Ut.off(document,"mousemove",o),Ut.off(e.getWrapperElement(),"mouseout",a),n.hoverTimeout=void 0,due(e,i)},f=cue(e);n.hoverTimeout=setTimeout(l,f),Ut.on(document,"mousemove",o),Ut.on(e.getWrapperElement(),"mouseout",a)}function due(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 a=e.getTokenAt(n,!0);if(a){const l=o(a,i,e,n);l&&hue(e,t,l)}}}function hue(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),a=i.right-i.left+parseFloat(o.marginLeft)+parseFloat(o.marginRight),l=i.bottom-i.top+parseFloat(o.marginTop)+parseFloat(o.marginBottom);let f=t.bottom;l>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(f=t.top-l),f<0&&(f=t.bottom);let h=Math.max(0,window.innerWidth-a-15);h>t.left&&(h=t.left),r.style.opacity="1",r.style.top=f+"px",r.style.left=h+"px";let p;const b=function(){clearTimeout(p)},v=function(){clearTimeout(p),p=setTimeout(x,200)},x=function(){Ut.off(r,"mouseover",b),Ut.off(r,"mouseout",v),Ut.off(e.getWrapperElement(),"mouseout",v),r.style.opacity?(r.style.opacity="0",setTimeout(()=>{r.parentNode&&r.remove()},600)):r.parentNode&&r.remove()};Ut.on(r,"mouseover",b),Ut.on(r,"mouseout",v),Ut.on(e.getWrapperElement(),"mouseout",v)}const pue=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));Ut.registerHelper("info","graphql",(e,t)=>{var n;if(!t.schema||!e.state)return;const{kind:r,step:i}=e.state,o=OM(t.schema,e.state);if(r==="Field"&&i===0&&o.fieldDef||r==="AliasedField"&&i===2&&o.fieldDef||r==="ObjectField"&&i===0&&o.fieldDef){const a=document.createElement("div");a.className="CodeMirror-info-header",mue(a,o,t);const l=document.createElement("div");return l.append(a),pm(l,t,o.fieldDef),l}if(r==="Directive"&&i===1&&o.directiveDef){const a=document.createElement("div");a.className="CodeMirror-info-header",vue(a,o,t);const l=document.createElement("div");return l.append(a),pm(l,t,o.directiveDef),l}if(r==="Argument"&&i===0&&o.argDef){const a=document.createElement("div");a.className="CodeMirror-info-header",yue(a,o,t);const l=document.createElement("div");return l.append(a),pm(l,t,o.argDef),l}if(r==="EnumValue"&&(!((n=o.enumValue)===null||n===void 0)&&n.description)){const a=document.createElement("div");a.className="CodeMirror-info-header",bue(a,o,t);const l=document.createElement("div");return l.append(a),pm(l,t,o.enumValue),l}if(r==="NamedType"&&o.type&&o.type.description){const a=document.createElement("div");a.className="CodeMirror-info-header",gh(a,o,t,o.type);const l=document.createElement("div");return l.append(a),pm(l,t,o.type),l}});function mue(e,t,n){gue(e,t,n),PM(e,t,n,t.type)}function gue(e,t,n){var r;const i=((r=t.fieldDef)===null||r===void 0?void 0:r.name)||"";ls(e,i,"field-name",n,RM(t))}function vue(e,t,n){var r;const i="@"+(((r=t.directiveDef)===null||r===void 0?void 0:r.name)||"");ls(e,i,"directive-name",n,MM(t))}function yue(e,t,n){var r;const i=((r=t.argDef)===null||r===void 0?void 0:r.name)||"";ls(e,i,"arg-name",n,LM(t)),PM(e,t,n,t.inputType)}function bue(e,t,n){var r;const i=((r=t.enumValue)===null||r===void 0?void 0:r.name)||"";gh(e,t,n,t.inputType),ls(e,"."),ls(e,i,"enum-value",n,IM(t))}function PM(e,t,n,r){const i=document.createElement("span");i.className="type-name-pill",r instanceof Ft?(gh(i,t,n,r.ofType),ls(i,"!")):r instanceof fr?(ls(i,"["),gh(i,t,n,r.ofType),ls(i,"]")):ls(i,(r==null?void 0:r.name)||"","type-name",n,_3(t,r)),e.append(i)}function gh(e,t,n,r){r instanceof Ft?(gh(e,t,n,r.ofType),ls(e,"!")):r instanceof fr?(ls(e,"["),gh(e,t,n,r.ofType),ls(e,"]")):ls(e,(r==null?void 0:r.name)||"","type-name",n,_3(t,r))}function pm(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)}Eue(e,t,n)}function Eue(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 a=document.createElement("div");a.className="info-deprecation-reason",t.renderDescription?a.innerHTML=t.renderDescription(r):a.append(document.createTextNode(r)),i.append(a)}}function ls(e,t,n="",r={onClick:null},i=null){if(n){const{onClick:o}=r;let a;o?(a=document.createElement("a"),a.href="javascript:void 0",a.addEventListener("click",l=>{l.preventDefault(),o(i,l)})):a=document.createElement("span"),a.className=n,a.append(document.createTextNode(t)),e.append(a)}else e.append(document.createTextNode(t))}const xue=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));Ut.defineOption("jump",!1,(e,t,n)=>{if(n&&n!==Ut.Init){const r=e.state.jump.onMouseOver;Ut.off(e.getWrapperElement(),"mouseover",r);const i=e.state.jump.onMouseOut;Ut.off(e.getWrapperElement(),"mouseout",i),Ut.off(document,"keydown",e.state.jump.onKeyDown),delete e.state.jump}if(t){const r=e.state.jump={options:t,onMouseOver:Tue.bind(null,e),onMouseOut:Sue.bind(null,e),onKeyDown:wue.bind(null,e)};Ut.on(e.getWrapperElement(),"mouseover",r.onMouseOver),Ut.on(e.getWrapperElement(),"mouseout",r.onMouseOut),Ut.on(document,"keydown",r.onKeyDown)}});function Tue(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&&jM(e)}function Sue(e){if(!e.state.jump.isHoldingModifier&&e.state.jump.cursor){e.state.jump.cursor=null;return}e.state.jump.isHoldingModifier&&e.state.jump.marker&&VM(e)}function wue(e,t){if(e.state.jump.isHoldingModifier||!_ue(t.key))return;e.state.jump.isHoldingModifier=!0,e.state.jump.cursor&&jM(e);const n=o=>{o.code===t.code&&(e.state.jump.isHoldingModifier=!1,e.state.jump.marker&&VM(e),Ut.off(document,"keyup",n),Ut.off(document,"click",r),e.off("mousedown",i))},r=o=>{const{destination:a,options:l}=e.state.jump;a&&l.onClick(a,o)},i=(o,a)=>{e.state.jump.destination&&(a.codemirrorIgnore=!0)};Ut.on(document,"keyup",n),Ut.on(document,"click",r),e.on("mousedown",i)}const Cue=typeof navigator<"u"&&navigator.userAgent.includes("Mac");function _ue(e){return e===(Cue?"Meta":"Control")}function jM(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 a=o(i,n,e);if(a){const l=e.markText({line:r.line,ch:i.start},{line:r.line,ch:i.end},{className:"CodeMirror-jump-token"});e.state.jump.marker=l,e.state.jump.destination=a}}}function VM(e){const{marker:t}=e.state.jump;e.state.jump.marker=null,e.state.jump.destination=null,t.clear()}Ut.registerHelper("jump","graphql",(e,t)=>{if(!t.schema||!t.onClick||!e.state)return;const{state:n}=e,{kind:r,step:i}=n,o=OM(t.schema,n);if(r==="Field"&&i===0&&o.fieldDef||r==="AliasedField"&&i===2&&o.fieldDef)return RM(o);if(r==="Directive"&&i===1&&o.directiveDef)return MM(o);if(r==="Argument"&&i===0&&o.argDef)return LM(o);if(r==="EnumValue"&&o.enumValue)return IM(o);if(r==="NamedType"&&o.type)return _3(o)});const Aue=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));function A3(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)}const Due=e=>{const t=Zp({eatWhitespace:n=>n.eatWhile(o4),lexRules:s4,parseRules:a4,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:A3,electricInput:/^\s*[})\]]/,fold:"brace",lineComment:"#",closeBrackets:{pairs:'()[]{}""',explode:"()[]{}"}}};Ut.defineMode("graphql",Due);const Nue=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));function vh(e,t,n){const r=Oue(n,BM(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}}}function Oue(e,t){if(!t)return D3(e,o=>!o.isDeprecated);const n=e.map(o=>({proximity:kue(BM(o.text),t),entry:o}));return D3(D3(n,o=>o.proximity<=2),o=>!o.entry.isDeprecated).sort((o,a)=>(o.entry.isDeprecated?1:0)-(a.entry.isDeprecated?1:0)||o.proximity-a.proximity||o.entry.text.length-a.entry.text.length).map(o=>o.entry)}function D3(e,t){const n=e.filter(t);return n.length===0?e:n}function BM(e){return e.toLowerCase().replaceAll(/\W/g,"")}function kue(e,t){let n=Rue(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=e.indexOf(t)===0?0:.5),n}function Rue(e,t){let n,r;const i=[],o=e.length,a=t.length;for(n=0;n<=o;n++)i[n]=[n];for(r=1;r<=a;r++)i[0][r]=r;for(n=1;n<=o;n++)for(r=1;r<=a;r++){const l=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]+l),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]+l))}return i[o][a]}Ut.registerHelper("hint","graphql-variables",(e,t)=>{const n=e.getCursor(),r=e.getTokenAt(n),i=Mue(n,r,t);return i!=null&&i.list&&i.list.length>0&&(i.from=Ut.Pos(i.from.line,i.from.ch),i.to=Ut.Pos(i.to.line,i.to.ch),Ut.signal(e,"hasCompletion",e,i,r)),i});function Mue(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 vh(e,t,[{text:"{"}]);const{variableToType:a}=n;if(!a)return;const l=Lue(a,t.state);if(i==="Document"||i==="Variable"&&o===0){const f=Object.keys(a);return vh(e,t,f.map(h=>({text:`"${h}": `,type:a[h]})))}if((i==="ObjectValue"||i==="ObjectField"&&o===0)&&l.fields){const f=Object.keys(l.fields).map(h=>l.fields[h]);return vh(e,t,f.map(h=>({text:`"${h.name}": `,type:h.type,description:h.description})))}if(i==="StringValue"||i==="NumberValue"||i==="BooleanValue"||i==="NullValue"||i==="ListValue"&&o===1||i==="ObjectField"&&o===2||i==="Variable"&&o===2){const f=l.type?yn(l.type):void 0;if(f instanceof So)return vh(e,t,[{text:"{"}]);if(f instanceof co){const h=f.getValues();return vh(e,t,h.map(p=>({text:`"${p.name}"`,type:f,description:p.description})))}if(f===rr)return vh(e,t,[{text:"true",type:rr,description:"Not false."},{text:"false",type:rr,description:"Not true."}])}}function Lue(e,t){const n={type:null,fields:null};return NM(t,r=>{switch(r.kind){case"Variable":{n.type=e[r.name];break}case"ListValue":{const i=n.type?pl(n.type):void 0;n.type=i instanceof fr?i.ofType:null;break}case"ObjectValue":{const i=n.type?yn(n.type):void 0;n.fields=i instanceof So?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}const Iue=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));function Fue(e){nu=e,_y=e.length,Ti=po=mm=-1,Si(),Dy();const t=$M();return Pl("EOF"),t}let nu,_y,Ti,po,mm,In,cs;function $M(){const e=Ti,t=[];if(Pl("{"),!Ay("}")){do t.push(Pue());while(Ay(","));Pl("}")}return{kind:"Object",start:e,end:mm,members:t}}function Pue(){const e=Ti,t=cs==="String"?HM():null;Pl("String"),Pl(":");const n=UM();return{kind:"Member",start:e,end:mm,key:t,value:n}}function jue(){const e=Ti,t=[];if(Pl("["),!Ay("]")){do t.push(UM());while(Ay(","));Pl("]")}return{kind:"Array",start:e,end:mm,values:t}}function UM(){switch(cs){case"[":return jue();case"{":return $M();case"String":case"Number":case"Boolean":case"Null":const e=HM();return Dy(),e}Pl("Value")}function HM(){return{kind:cs,start:Ti,end:po,value:JSON.parse(nu.slice(Ti,po))}}function Pl(e){if(cs===e){Dy();return}let t;if(cs==="EOF")t="[end of file]";else if(po-Ti>1)t="`"+nu.slice(Ti,po)+"`";else{const n=nu.slice(Ti).match(/^.+?\b/);t="`"+(n?n[0]:nu[Ti])+"`"}throw yh(`Expected ${e} but found ${t}.`)}class zM extends Error{constructor(t,n){super(t),this.position=n}}function yh(e){return new zM(e,{start:Ti,end:po})}function Ay(e){if(cs===e)return Dy(),!0}function Si(){return po<_y&&(po++,In=po===_y?0:nu.charCodeAt(po)),In}function Dy(){for(mm=po;In===9||In===10||In===13||In===32;)Si();if(In===0){cs="EOF";return}switch(Ti=po,In){case 34:return cs="String",Vue();case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return cs="Number",Bue();case 102:if(nu.slice(Ti,Ti+5)!=="false")break;po+=4,Si(),cs="Boolean";return;case 110:if(nu.slice(Ti,Ti+4)!=="null")break;po+=3,Si(),cs="Null";return;case 116:if(nu.slice(Ti,Ti+4)!=="true")break;po+=3,Si(),cs="Boolean";return}cs=nu[Ti],Si()}function Vue(){for(Si();In!==34&&In>31;)if(In===92)switch(In=Si(),In){case 34:case 47:case 92:case 98:case 102:case 110:case 114:case 116:Si();break;case 117:Si(),Ny(),Ny(),Ny(),Ny();break;default:throw yh("Bad character escape sequence.")}else{if(po===_y)throw yh("Unterminated string.");Si()}if(In===34){Si();return}throw yh("Unterminated string.")}function Ny(){if(In>=48&&In<=57||In>=65&&In<=70||In>=97&&In<=102)return Si();throw yh("Expected hexadecimal digit.")}function Bue(){In===45&&Si(),In===48?Si():N3(),In===46&&(Si(),N3()),(In===69||In===101)&&(In=Si(),(In===43||In===45)&&Si(),N3())}function N3(){if(In<48||In>57)throw yh("Expected decimal digit.");do Si();while(In>=48&&In<=57)}Ut.registerHelper("lint","graphql-variables",(e,t,n)=>{if(!e)return[];let r;try{r=Fue(e)}catch(o){if(o instanceof zM)return[O3(n,o.position,o.message)];throw o}const{variableToType:i}=t;return i?$ue(n,i,r):[]});function $ue(e,t,n){var r;const i=[];for(const o of n.members)if(o){const a=(r=o.key)===null||r===void 0?void 0:r.value,l=t[a];if(l)for(const[f,h]of gm(l,o.value))i.push(O3(e,f,h));else i.push(O3(e,o.key,`Variable "$${a}" does not appear in any GraphQL query.`))}return i}function gm(e,t){if(!e||!t)return[];if(e instanceof Ft)return t.kind==="Null"?[[t,`Type "${e}" is non-nullable and cannot be null.`]]:gm(e.ofType,t);if(t.kind==="Null")return[];if(e instanceof fr){const n=e.ofType;if(t.kind==="Array"){const r=t.values||[];return qM(r,i=>gm(n,i))}return gm(n,t)}if(e instanceof So){if(t.kind!=="Object")return[[t,`Type "${e}" must be an Object.`]];const n=Object.create(null),r=qM(t.members,i=>{var o;const a=(o=i==null?void 0:i.key)===null||o===void 0?void 0:o.value;n[a]=!0;const l=e.getFields()[a];if(!l)return[[i.key,`Type "${e}" does not have a field "${a}".`]];const f=l?l.type:void 0;return gm(f,i.value)});for(const i of Object.keys(e.getFields())){const o=e.getFields()[i];!n[i]&&o.type instanceof Ft&&!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 co||e instanceof Ts)&&(t.kind!=="String"&&t.kind!=="Number"&&t.kind!=="Boolean"&&t.kind!=="Null"||Uue(e.parseValue(t.value)))?[[t,`Expected value of type "${e}".`]]:[]}function O3(e,t,n){return{message:n,severity:"error",type:"validation",from:e.posFromIndex(t.start),to:e.posFromIndex(t.end)}}function Uue(e){return e==null||e!==e}function qM(e,t){return Array.prototype.concat.apply([],e.map(t))}const Hue=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));Ut.defineMode("graphql-variables",e=>{const t=Zp({eatWhitespace:n=>n.eatSpace(),lexRules:zue,parseRules:que,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:A3,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}});const zue={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/},que={Document:[ht("{"),an("Variable",gr(ht(","))),ht("}")],Variable:[GM("variable"),ht(":"),"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:[is("Number","number")],StringValue:[is("String","string")],BooleanValue:[is("Keyword","builtin")],NullValue:[is("Keyword","keyword")],ListValue:[ht("["),an("Value",gr(ht(","))),ht("]")],ObjectValue:[ht("{"),an("ObjectField",gr(ht(","))),ht("}")],ObjectField:[GM("attribute"),ht(":"),"Value"]};function GM(e){return{style:e,match:t=>t.kind==="String",update(t,n){t.name=n.value.slice(1,-1)}}}const Gue=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));Ut.defineMode("graphql-results",e=>{const t=Zp({eatWhitespace:n=>n.eatSpace(),lexRules:Wue,parseRules:Yue,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:A3,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}});const Wue={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/},Yue={Document:[ht("{"),an("Entry",ht(",")),ht("}")],Entry:[is("String","def"),ht(":"),"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:[is("Number","number")],StringValue:[is("String","string")],BooleanValue:[is("Keyword","builtin")],NullValue:[is("Keyword","keyword")],ListValue:[ht("["),an("Value",ht(",")),ht("]")],ObjectValue:[ht("{"),an("ObjectField",ht(",")),ht("}")],ObjectField:[is("String","property"),ht(":"),"Value"]},Que=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));Es.renderYogaGraphiQL=Vae,Object.defineProperty(Es,Symbol.toStringTag,{value:"Module"})});