Files
graphiql-vite/dist/graphiql.js
2026-04-07 01:32:48 +03:30

1 line
1.2 MiB
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,a=(e,t)=>()=>(e&&(t=e(e=0)),t),s=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),l=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:"Module"}),r},u=(e,i,a,s)=>{if(i&&"object"==typeof i||"function"==typeof i)for(var l,u=r(i),c=0,d=u.length;c<d;c++)l=u[c],o.call(e,l)||l===a||t(e,l,{get:(e=>i[e]).bind(null,l),enumerable:!(s=n(i,l))||s.enumerable});return e},c=(n,r,o)=>(o=null!=n?e(i(n)):{},u(!r&&n&&n.__esModule?o:t(o,"default",{value:n,enumerable:!0}),n));!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver(e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)}).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();var d=s(e=>{var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),p=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var w=b.prototype=new y;w.constructor=b,m(w,v.prototype),w.isPureReactComponent=!0;var x=Array.isArray;function E(){}var k={H:null,A:null,T:null,S:null},C=Object.prototype.hasOwnProperty;function S(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:void 0!==i?i:null,props:r}}function T(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}var _=/\/+/g;function N(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var n,r}function A(e,r,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l,u,c=!1;if(null===e)c=!0;else switch(s){case"bigint":case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case t:case n:c=!0;break;case d:return A((c=e._init)(e._payload),r,i,o,a)}}if(c)return a=a(e),c=""===o?"."+N(e,0):o,x(a)?(i="",null!=c&&(i=c.replace(_,"$&/")+"/"),A(a,r,i,"",function(e){return e})):null!=a&&(T(a)&&(l=a,u=i+(null==a.key||e&&e.key===a.key?"":(""+a.key).replace(_,"$&/")+"/")+c,a=S(l.type,u,l.props)),r.push(a)),1;c=0;var f,h=""===o?".":o+":";if(x(e))for(var m=0;m<e.length;m++)c+=A(o=e[m],r,i,s=h+N(o,m),a);else if("function"==typeof(m=null===(f=e)||"object"!=typeof f?null:"function"==typeof(f=p&&f[p]||f["@@iterator"])?f:null))for(e=m.call(e),m=0;!(o=e.next()).done;)c+=A(o=o.value,r,i,s=h+N(o,m++),a);else if("object"===s){if("function"==typeof e.then)return A(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(E,E):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(e),r,i,o,a);throw r=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(e).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.")}return c}function D(e,t,n){if(null==e)return e;var r=[],i=0;return A(e,r,"","",function(e){return t.call(n,e,i++)}),r}function O(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var L="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e)},I={map:D,forEach:function(e,t,n){D(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return D(e,function(){t++}),t},toArray:function(e){return D(e,function(e){return e})||[]},only:function(e){if(!T(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};e.Activity=f,e.Children=I,e.Component=v,e.Fragment=r,e.Profiler=o,e.PureComponent=b,e.StrictMode=i,e.Suspense=u,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return k.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=m({},e.props),i=e.key;if(null!=t)for(o in void 0!==t.key&&(i=""+t.key),t)!C.call(t,o)||"key"===o||"__self"===o||"__source"===o||"ref"===o&&void 0===t.ref||(r[o]=t[o]);var o=arguments.length-2;if(1===o)r.children=n;else if(1<o){for(var a=Array(o),s=0;s<o;s++)a[s]=arguments[s+2];r.children=a}return S(e.type,i,r)},e.createContext=function(e){return(e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:a,_context:e},e},e.createElement=function(e,t,n){var r,i={},o=null;if(null!=t)for(r in void 0!==t.key&&(o=""+t.key),t)C.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(i[r]=t[r]);var a=arguments.length-2;if(1===a)i.children=n;else if(1<a){for(var s=Array(a),l=0;l<a;l++)s[l]=arguments[l+2];i.children=s}if(e&&e.defaultProps)for(r in a=e.defaultProps)void 0===i[r]&&(i[r]=a[r]);return S(e,o,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:l,render:e}},e.isValidElement=T,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:O}},e.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},e.startTransition=function(e){var t=k.T,n={};k.T=n;try{var r=e(),i=k.S;null!==i&&i(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(E,L)}catch(tp){L(tp)}finally{null!==t&&null!==n.types&&(t.types=n.types),k.T=t}},e.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},e.use=function(e){return k.H.use(e)},e.useActionState=function(e,t,n){return k.H.useActionState(e,t,n)},e.useCallback=function(e,t){return k.H.useCallback(e,t)},e.useContext=function(e){return k.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return k.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return k.H.useEffect(e,t)},e.useEffectEvent=function(e){return k.H.useEffectEvent(e)},e.useId=function(){return k.H.useId()},e.useImperativeHandle=function(e,t,n){return k.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return k.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return k.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return k.H.useMemo(e,t)},e.useOptimistic=function(e,t){return k.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return k.H.useReducer(e,t,n)},e.useRef=function(e){return k.H.useRef(e)},e.useState=function(e){return k.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return k.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return k.H.useTransition()},e.version="19.2.4"}),f=s((e,t)=>{t.exports=d()}),p=s(e=>{function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>i(l,n))u<o&&0>i(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<o&&0>i(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(e.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,d=null,f=3,p=!1,h=!1,m=!1,g=!1,v="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var i=n(u);null!==i;){if(null===i.callback)r(u);else{if(!(i.startTime<=e))break;r(u),i.sortIndex=i.expirationTime,t(l,i)}i=n(u)}}function x(e){if(m=!1,w(e),!h)if(null!==n(l))h=!0,k||(k=!0,E());else{var t=n(u);null!==t&&O(x,t.startTime-e)}}var E,k=!1,C=-1,S=5,T=-1;function _(){return!(!g&&e.unstable_now()-T<S)}function N(){if(g=!1,k){var t=e.unstable_now();T=t;var i=!0;try{e:{h=!1,m&&(m=!1,y(C),C=-1),p=!0;var o=f;try{t:{for(w(t),d=n(l);null!==d&&!(d.expirationTime>t&&_());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var s=a(d.expirationTime<=t);if(t=e.unstable_now(),"function"==typeof s){d.callback=s,w(t),i=!0;break t}d===n(l)&&r(l),w(t)}else r(l);d=n(l)}if(null!==d)i=!0;else{var c=n(u);null!==c&&O(x,c.startTime-t),i=!1}}break e}finally{d=null,f=o,p=!1}i=void 0}}finally{i?E():k=!1}}}if("function"==typeof b)E=function(){b(N)};else if("undefined"!=typeof MessageChannel){var A=new MessageChannel,D=A.port2;A.port1.onmessage=N,E=function(){D.postMessage(null)}}else E=function(){v(N,0)};function O(t,n){C=v(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e||(S=0<e?Math.floor(1e3/e):5)},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,o){var a=e.unstable_now();switch(o="object"==typeof o&&null!==o&&"number"==typeof(o=o.delay)&&0<o?a+o:a,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return r={id:c++,callback:i,priorityLevel:r,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(r.sortIndex=o,t(u,r),null===n(l)&&r===n(u)&&(m?(y(C),C=-1):m=!0,O(x,o-a))):(r.sortIndex=s,t(l,r),h||p||(h=!0,k||(k=!0,E()))),r},e.unstable_shouldYield=_,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}}),h=s((e,t)=>{t.exports=p()}),m=s(e=>{var t=f();function n(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal"),a=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function s(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(n(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:o,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,r)},e.flushSync=function(e){var t=a.T,n=i.p;try{if(a.T=null,i.p=2,e)return e()}finally{a.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){"string"==typeof e&&(t=t?"string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:null,i.d.C(e,t))},e.prefetchDNS=function(e){"string"==typeof e&&i.d.D(e)},e.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,r=s(n,t.crossOrigin),o="string"==typeof t.integrity?t.integrity:void 0,a="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?i.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:r,integrity:o,fetchPriority:a}):"script"===n&&i.d.X(e,{crossOrigin:r,integrity:o,fetchPriority:a,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},e.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=s(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&i.d.M(e)},e.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var n=t.as,r=s(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},e.preloadModule=function(e,t){if("string"==typeof e)if(t){var n=s(t.as,t.crossOrigin);i.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return a.H.useFormState(e,t,n)},e.useFormStatus=function(){return a.H.useHostTransitionStatus()},e.version="19.2.4"}),g=s((e,t)=>{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){}}(),t.exports=m()}),v=s(e=>{var t=h(),n=f(),r=g();function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function a(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function s(e){if(31===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=u(e)))return t;e=e.sibling}return null}var c=Object.assign,d=Symbol.for("react.element"),p=Symbol.for("react.transitional.element"),m=Symbol.for("react.portal"),v=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),w=Symbol.for("react.consumer"),x=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),_=Symbol.for("react.activity"),N=Symbol.for("react.memo_cache_sentinel"),A=Symbol.iterator;function D(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=A&&e[A]||e["@@iterator"])?e:null}var O=Symbol.for("react.client.reference");function L(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===O?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case v:return"Fragment";case b:return"Profiler";case y:return"StrictMode";case k:return"Suspense";case C:return"SuspenseList";case _:return"Activity"}if("object"==typeof e)switch(e.$$typeof){case m:return"Portal";case x:return e.displayName||"Context";case w:return(e._context.displayName||"Context")+".Consumer";case E:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case S:return null!==(t=e.displayName||null)?t:L(e.type)||"Memo";case T:t=e._payload,e=e._init;try{return L(e(t))}catch(n){}}return null}var I=Array.isArray,M=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P={pending:!1,data:null,method:null,action:null},R=[],j=-1;function V(e){return{current:e}}function B(e){0>j||(e.current=R[j],R[j]=null,j--)}function z(e,t){j++,R[j]=e.current,e.current=t}var $,U,H=V(null),W=V(null),q=V(null),G=V(null);function K(e,t){switch(z(q,t),z(W,e),z(H,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=yd(t=vd(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}B(H),z(H,e)}function Y(){B(H),B(W),B(q)}function Q(e){null!==e.memoizedState&&z(G,e);var t=H.current,n=yd(t,e.type);t!==n&&(z(W,e),z(H,n))}function X(e){W.current===e&&(B(H),B(W)),G.current===e&&(B(G),df._currentValue=P)}function Z(e){if(void 0===$)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);$=t&&t[1]||"",U=-1<n.stack.indexOf("\n at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+$+e+U}var J=!1;function ee(e,t){if(!e||J)return"";J=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(i){var r=i}Reflect.construct(e,[],n)}else{try{n.call()}catch(rR){r=rR}e.call(n.prototype)}}else{try{throw Error()}catch(CP){r=CP}(n=e())&&"function"==typeof n.catch&&n.catch(function(){})}}catch(o){if(o&&r&&"string"==typeof o.stack)return[o.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=r.DetermineComponentFrameRoot(),a=o[0],s=o[1];if(a&&s){var l=a.split("\n"),u=s.split("\n");for(i=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;i<u.length&&!u[i].includes("DetermineComponentFrameRoot");)i++;if(r===l.length||i===u.length)for(r=l.length-1,i=u.length-1;1<=r&&0<=i&&l[r]!==u[i];)i--;for(;1<=r&&0<=i;r--,i--)if(l[r]!==u[i]){if(1!==r||1!==i)do{if(r--,0>--i||l[r]!==u[i]){var c="\n"+l[r].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}}while(1<=r&&0<=i);break}}}finally{J=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Z(n):""}function te(e,t){switch(e.tag){case 26:case 27:case 5:return Z(e.type);case 16:return Z("Lazy");case 13:return e.child!==t&&null!==t?Z("Suspense Fallback"):Z("Suspense");case 19:return Z("SuspenseList");case 0:case 15:return ee(e.type,!1);case 11:return ee(e.type.render,!1);case 1:return ee(e.type,!0);case 31:return Z("Activity");default:return""}}function ne(e){try{var t="",n=null;do{t+=te(e,n),n=e,e=e.return}while(e);return t}catch(r){return"\nError generating stack: "+r.message+"\n"+r.stack}}var re=Object.prototype.hasOwnProperty,ie=t.unstable_scheduleCallback,oe=t.unstable_cancelCallback,ae=t.unstable_shouldYield,se=t.unstable_requestPaint,le=t.unstable_now,ue=t.unstable_getCurrentPriorityLevel,ce=t.unstable_ImmediatePriority,de=t.unstable_UserBlockingPriority,fe=t.unstable_NormalPriority,pe=t.unstable_LowPriority,he=t.unstable_IdlePriority,me=t.log,ge=t.unstable_setDisableYieldValue,ve=null,ye=null;function be(e){if("function"==typeof me&&ge(e),ye&&"function"==typeof ye.setStrictMode)try{ye.setStrictMode(ve,e)}catch(t){}}var we=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(xe(e)/Ee|0)|0},xe=Math.log,Ee=Math.LN2,ke=256,Ce=262144,Se=4194304;function Te(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return 261888&e;case 262144:case 524288:case 1048576:case 2097152:return 3932160&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function _e(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var i=0,o=e.suspendedLanes,a=e.pingedLanes;e=e.warmLanes;var s=134217727&r;return 0!==s?0!==(r=s&~o)?i=Te(r):0!==(a&=s)?i=Te(a):n||0!==(n=s&~e)&&(i=Te(n)):0!==(s=r&~o)?i=Te(s):0!==a?i=Te(a):n||0!==(n=r&~e)&&(i=Te(n)),0===i?0:0!==t&&t!==i&&0===(t&o)&&((o=i&-i)>=(n=t&-t)||32===o&&4194048&n)?t:i}function Ne(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Ae(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function De(){var e=Se;return!(62914560&(Se<<=1))&&(Se=4194304),e}function Oe(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Le(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ie(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-we(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|261930&n}function Me(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-we(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function Fe(e,t){var n=t&-t;return 0!==((n=42&n?1:Pe(n))&(e.suspendedLanes|t))?0:n}function Pe(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Re(e){return 2<(e&=-e)?8<e?134217727&e?32:268435456:8:2}function je(){var e=F.p;return 0!==e?e:void 0===(e=window.event)?32:Sf(e.type)}function Ve(e,t){var n=F.p;try{return F.p=e,t()}finally{F.p=n}}var Be=Math.random().toString(36).slice(2),ze="__reactFiber$"+Be,$e="__reactProps$"+Be,Ue="__reactContainer$"+Be,He="__reactEvents$"+Be,We="__reactListeners$"+Be,qe="__reactHandles$"+Be,Ge="__reactResources$"+Be,Ke="__reactMarker$"+Be;function Ye(e){delete e[ze],delete e[$e],delete e[He],delete e[We],delete e[qe]}function Qe(e){var t=e[ze];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ue]||n[ze]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Pd(e);null!==e;){if(n=e[ze])return n;e=Pd(e)}return t}n=(e=n).parentNode}return null}function Xe(e){if(e=e[ze]||e[Ue]){var t=e.tag;if(5===t||6===t||13===t||31===t||26===t||27===t||3===t)return e}return null}function Ze(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(i(33))}function Je(e){var t=e[Ge];return t||(t=e[Ge]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function et(e){e[Ke]=!0}var tt=new Set,nt={};function rt(e,t){it(e,t),it(e+"Capture",t)}function it(e,t){for(nt[e]=t,e=0;e<t.length;e++)tt.add(t[e])}var ot=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]*$"),at={},st={};function lt(e,t,n){if(i=t,re.call(st,i)||!re.call(at,i)&&(ot.test(i)?st[i]=!0:(at[i]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var i}function ut(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function ct(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function dt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ft(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function pt(e){if(!e._valueTracker){var t=ft(e)?"checked":"value";e._valueTracker=function(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var i=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e,t,""+e[t])}}function ht(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ft(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function mt(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(RR){return e.body}}var gt=/[\n"\\]/g;function vt(e){return e.replace(gt,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function yt(e,t,n,r,i,o,a,s){e.name="",null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a?e.type=a:e.removeAttribute("type"),null!=t?"number"===a?(0===t&&""===e.value||e.value!=t)&&(e.value=""+dt(t)):e.value!==""+dt(t)&&(e.value=""+dt(t)):"submit"!==a&&"reset"!==a||e.removeAttribute("value"),null!=t?wt(e,a,dt(t)):null!=n?wt(e,a,dt(n)):null!=r&&e.removeAttribute("value"),null==i&&null!=o&&(e.defaultChecked=!!o),null!=i&&(e.checked=i&&"function"!=typeof i&&"symbol"!=typeof i),null!=s&&"function"!=typeof s&&"symbol"!=typeof s&&"boolean"!=typeof s?e.name=""+dt(s):e.removeAttribute("name")}function bt(e,t,n,r,i,o,a,s){if(null!=o&&"function"!=typeof o&&"symbol"!=typeof o&&"boolean"!=typeof o&&(e.type=o),null!=t||null!=n){if(("submit"===o||"reset"===o)&&null==t)return void pt(e);n=null!=n?""+dt(n):"",t=null!=t?""+dt(t):n,s||t===e.value||(e.value=t),e.defaultValue=t}r="function"!=typeof(r=null!=r?r:i)&&"symbol"!=typeof r&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,null!=a&&"function"!=typeof a&&"symbol"!=typeof a&&"boolean"!=typeof a&&(e.name=a),pt(e)}function wt(e,t,n){"number"===t&&mt(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function xt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+dt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function Et(e,t,n){null==t||((t=""+dt(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+dt(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function kt(e,t,n,r){if(null==t){if(null!=r){if(null!=n)throw Error(i(92));if(I(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}null==n&&(n=""),t=n}n=dt(t),e.defaultValue=n,(r=e.textContent)===n&&""!==r&&null!==r&&(e.value=r),pt(e)}function Ct(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var St=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 Tt(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"==typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!=typeof n||0===n||St.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function _t(e,t,n){if(null!=t&&"object"!=typeof t)throw Error(i(62));if(e=e.style,null!=n){for(var r in n)!n.hasOwnProperty(r)||null!=t&&t.hasOwnProperty(r)||(0===r.indexOf("--")?e.setProperty(r,""):"float"===r?e.cssFloat="":e[r]="");for(var o in t)r=t[o],t.hasOwnProperty(o)&&n[o]!==r&&Tt(e,o,r)}else for(var a in t)t.hasOwnProperty(a)&&Tt(e,a,t[a])}function Nt(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var At=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"]]),Dt=/^[\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 Ot(e){return Dt.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Lt(){}var It=null;function Mt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ft=null,Pt=null;function Rt(e){var t=Xe(e);if(t&&(e=t.stateNode)){var n=e[$e]||null;e:switch(e=t.stateNode,t.type){case"input":if(yt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+vt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=r[$e]||null;if(!o)throw Error(i(90));yt(r,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)(r=n[t]).form===e.form&&ht(r)}break e;case"textarea":Et(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&xt(e,!!n.multiple,t,!1)}}}var jt=!1;function Vt(e,t,n){if(jt)return e(t,n);jt=!0;try{return e(t)}finally{if(jt=!1,(null!==Ft||null!==Pt)&&(Ju(),Ft&&(t=Ft,e=Pt,Pt=Ft=null,Rt(t),e)))for(t=0;t<e.length;t++)Rt(e[t])}}function Bt(e,t){var n=e.stateNode;if(null===n)return null;var r=n[$e]||null;if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var zt=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),$t=!1;if(zt)try{var Ut={};Object.defineProperty(Ut,"passive",{get:function(){$t=!0}}),window.addEventListener("test",Ut,Ut),window.removeEventListener("test",Ut,Ut)}catch(RR){$t=!1}var Ht=null,Wt=null,qt=null;function Gt(){if(qt)return qt;var e,t,n=Wt,r=n.length,i="value"in Ht?Ht.value:Ht.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return qt=i.slice(e,1<t?1-t:void 0)}function Kt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Yt(){return!0}function Qt(){return!1}function Xt(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?Yt:Qt,this.isPropagationStopped=Qt,this}return c(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Yt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Yt)},persist:function(){},isPersistent:Yt}),t}var Zt,Jt,en,tn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},nn=Xt(tn),rn=c({},tn,{view:0,detail:0}),on=Xt(rn),an=c({},rn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==en&&(en&&"mousemove"===e.type?(Zt=e.screenX-en.screenX,Jt=e.screenY-en.screenY):Jt=Zt=0,en=e),Zt)},movementY:function(e){return"movementY"in e?e.movementY:Jt}}),sn=Xt(an),ln=Xt(c({},an,{dataTransfer:0})),un=Xt(c({},rn,{relatedTarget:0})),cn=Xt(c({},tn,{animationName:0,elapsedTime:0,pseudoElement:0})),dn=Xt(c({},tn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),fn=Xt(c({},tn,{data:0})),pn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hn={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"},mn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=mn[e])&&!!t[e]}function vn(){return gn}var yn=Xt(c({},rn,{key:function(e){if(e.key){var t=pn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Kt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?hn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vn,charCode:function(e){return"keypress"===e.type?Kt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Kt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),bn=Xt(c({},an,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),wn=Xt(c({},rn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vn})),xn=Xt(c({},tn,{propertyName:0,elapsedTime:0,pseudoElement:0})),En=Xt(c({},an,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),kn=Xt(c({},tn,{newState:0,oldState:0})),Cn=[9,13,27,32],Sn=zt&&"CompositionEvent"in window,Tn=null;zt&&"documentMode"in document&&(Tn=document.documentMode);var _n=zt&&"TextEvent"in window&&!Tn,Nn=zt&&(!Sn||Tn&&8<Tn&&11>=Tn),An=String.fromCharCode(32),Dn=!1;function On(e,t){switch(e){case"keyup":return-1!==Cn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ln(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var In=!1,Mn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Fn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Mn[e.type]:"textarea"===t}function Pn(e,t,n,r){Ft?Pt?Pt.push(r):Pt=[r]:Ft=r,0<(t=rd(t,"onChange")).length&&(n=new nn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Rn=null,jn=null;function Vn(e){Yc(e,0)}function Bn(e){if(ht(Ze(e)))return e}function zn(e,t){if("change"===e)return t}var $n=!1;if(zt){var Un;if(zt){var Hn="oninput"in document;if(!Hn){var Wn=document.createElement("div");Wn.setAttribute("oninput","return;"),Hn="function"==typeof Wn.oninput}Un=Hn}else Un=!1;$n=Un&&(!document.documentMode||9<document.documentMode)}function qn(){Rn&&(Rn.detachEvent("onpropertychange",Gn),jn=Rn=null)}function Gn(e){if("value"===e.propertyName&&Bn(jn)){var t=[];Pn(t,jn,e,Mt(e)),Vt(Vn,t)}}function Kn(e,t,n){"focusin"===e?(qn(),jn=n,(Rn=t).attachEvent("onpropertychange",Gn)):"focusout"===e&&qn()}function Yn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Bn(jn)}function Qn(e,t){if("click"===e)return Bn(t)}function Xn(e,t){if("input"===e||"change"===e)return Bn(t)}var Zn="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function Jn(e,t){if(Zn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!re.call(t,i)||!Zn(e[i],t[i]))return!1}return!0}function er(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function tr(e,t){var n,r=er(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=er(r)}}function nr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?nr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function rr(e){for(var t=mt((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=mt((e=t.contentWindow).document)}return t}function ir(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var or=zt&&"documentMode"in document&&11>=document.documentMode,ar=null,sr=null,lr=null,ur=!1;function cr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;ur||null==ar||ar!==mt(r)||(r="selectionStart"in(r=ar)&&ir(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},lr&&Jn(lr,r)||(lr=r,0<(r=rd(sr,"onSelect")).length&&(t=new nn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=ar)))}function dr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var fr={animationend:dr("Animation","AnimationEnd"),animationiteration:dr("Animation","AnimationIteration"),animationstart:dr("Animation","AnimationStart"),transitionrun:dr("Transition","TransitionRun"),transitionstart:dr("Transition","TransitionStart"),transitioncancel:dr("Transition","TransitionCancel"),transitionend:dr("Transition","TransitionEnd")},pr={},hr={};function mr(e){if(pr[e])return pr[e];if(!fr[e])return e;var t,n=fr[e];for(t in n)if(n.hasOwnProperty(t)&&t in hr)return pr[e]=n[t];return e}zt&&(hr=document.createElement("div").style,"AnimationEvent"in window||(delete fr.animationend.animation,delete fr.animationiteration.animation,delete fr.animationstart.animation),"TransitionEvent"in window||delete fr.transitionend.transition);var gr=mr("animationend"),vr=mr("animationiteration"),yr=mr("animationstart"),br=mr("transitionrun"),wr=mr("transitionstart"),xr=mr("transitioncancel"),Er=mr("transitionend"),kr=new Map,Cr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Sr(e,t){kr.set(e,t),rt(t,[e])}Cr.push("scrollEnd");var Tr="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e)},_r=[],Nr=0,Ar=0;function Dr(){for(var e=Nr,t=Ar=Nr=0;t<e;){var n=_r[t];_r[t++]=null;var r=_r[t];_r[t++]=null;var i=_r[t];_r[t++]=null;var o=_r[t];if(_r[t++]=null,null!==r&&null!==i){var a=r.pending;null===a?i.next=i:(i.next=a.next,a.next=i),r.pending=i}0!==o&&Mr(n,i,o)}}function Or(e,t,n,r){_r[Nr++]=e,_r[Nr++]=t,_r[Nr++]=n,_r[Nr++]=r,Ar|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function Lr(e,t,n,r){return Or(e,t,n,r),Fr(e)}function Ir(e,t){return Or(e,null,null,t),Fr(e)}function Mr(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var i=!1,o=e.return;null!==o;)o.childLanes|=n,null!==(r=o.alternate)&&(r.childLanes|=n),22===o.tag&&(null===(e=o.stateNode)||1&e._visibility||(i=!0)),e=o,o=o.return;return 3===e.tag?(o=e.stateNode,i&&null!==t&&(i=31-we(n),null===(r=(e=o.hiddenUpdates)[i])?e[i]=[t]:r.push(t),t.lane=536870912|n),o):null}function Fr(e){if(50<Hu)throw Hu=0,Wu=null,Error(i(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Pr={};function Rr(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function jr(e,t,n,r){return new Rr(e,t,n,r)}function Vr(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Br(e,t){var n=e.alternate;return null===n?((n=jr(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=65011712&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function zr(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function $r(e,t,n,r,o,a){var s=0;if(r=e,"function"==typeof e)Vr(e)&&(s=1);else if("string"==typeof e)s=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!=typeof t.precedence||"string"!=typeof t.href||""===t.href)break;return!0;case"link":if("string"!=typeof t.rel||"string"!=typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"==typeof t.precedence&&null==e);case"script":if(t.async&&"function"!=typeof t.async&&"symbol"!=typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"==typeof t.src)return!0}return!1}(e,n,H.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case _:return(e=jr(31,n,t,o)).elementType=_,e.lanes=a,e;case v:return Ur(n.children,o,a,t);case y:s=8,o|=24;break;case b:return(e=jr(12,n,t,2|o)).elementType=b,e.lanes=a,e;case k:return(e=jr(13,n,t,o)).elementType=k,e.lanes=a,e;case C:return(e=jr(19,n,t,o)).elementType=C,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case x:s=10;break e;case w:s=9;break e;case E:s=11;break e;case S:s=14;break e;case T:s=16,r=null;break e}s=29,n=Error(i(130,null===e?"null":typeof e,"")),r=null}return(t=jr(s,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Ur(e,t,n,r){return(e=jr(7,e,r,t)).lanes=n,e}function Hr(e,t,n){return(e=jr(6,e,null,t)).lanes=n,e}function Wr(e){var t=jr(18,null,null,0);return t.stateNode=e,t}function qr(e,t,n){return(t=jr(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Gr=new WeakMap;function Kr(e,t){if("object"==typeof e&&null!==e){var n=Gr.get(e);return void 0!==n?n:(t={value:e,source:t,stack:ne(t)},Gr.set(e,t),t)}return{value:e,source:t,stack:ne(t)}}var Yr=[],Qr=0,Xr=null,Zr=0,Jr=[],ei=0,ti=null,ni=1,ri="";function ii(e,t){Yr[Qr++]=Zr,Yr[Qr++]=Xr,Xr=e,Zr=t}function oi(e,t,n){Jr[ei++]=ni,Jr[ei++]=ri,Jr[ei++]=ti,ti=e;var r=ni;e=ri;var i=32-we(r)-1;r&=~(1<<i),n+=1;var o=32-we(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,ni=1<<32-we(t)+i|n<<i|r,ri=o+e}else ni=1<<o|n<<i|r,ri=e}function ai(e){null!==e.return&&(ii(e,1),oi(e,1,0))}function si(e){for(;e===Xr;)Xr=Yr[--Qr],Yr[Qr]=null,Zr=Yr[--Qr],Yr[Qr]=null;for(;e===ti;)ti=Jr[--ei],Jr[ei]=null,ri=Jr[--ei],Jr[ei]=null,ni=Jr[--ei],Jr[ei]=null}function li(e,t){Jr[ei++]=ni,Jr[ei++]=ri,Jr[ei++]=ti,ni=t.id,ri=t.overflow,ti=e}var ui=null,ci=null,di=!1,fi=null,pi=!1,hi=Error(i(519));function mi(e){throw xi(Kr(Error(i(418,1<arguments.length&&void 0!==arguments[1]&&arguments[1]?"text":"HTML","")),e)),hi}function gi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[ze]=e,t[$e]=r,n){case"dialog":Qc("cancel",t),Qc("close",t);break;case"iframe":case"object":case"embed":Qc("load",t);break;case"video":case"audio":for(n=0;n<Gc.length;n++)Qc(Gc[n],t);break;case"source":Qc("error",t);break;case"img":case"image":case"link":Qc("error",t),Qc("load",t);break;case"details":Qc("toggle",t);break;case"input":Qc("invalid",t),bt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Qc("invalid",t);break;case"textarea":Qc("invalid",t),kt(t,r.value,r.defaultValue,r.children)}"string"!=typeof(n=r.children)&&"number"!=typeof n&&"bigint"!=typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||ud(t.textContent,n)?(null!=r.popover&&(Qc("beforetoggle",t),Qc("toggle",t)),null!=r.onScroll&&Qc("scroll",t),null!=r.onScrollEnd&&Qc("scrollend",t),null!=r.onClick&&(t.onclick=Lt),t=!0):t=!1,t||mi(e,!0)}function vi(e){for(ui=e.return;ui;)switch(ui.tag){case 5:case 31:case 13:return void(pi=!1);case 27:case 3:return void(pi=!0);default:ui=ui.return}}function yi(e){if(e!==ui)return!1;if(!di)return vi(e),di=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||bd(e.type,e.memoizedProps)),t=!t),t&&ci&&mi(e),vi(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));ci=Fd(e)}else if(31===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));ci=Fd(e)}else 27===n?(n=ci,Td(e.type)?(e=Md,Md=null,ci=e):ci=n):ci=ui?Id(e.stateNode.nextSibling):null;return!0}function bi(){ci=ui=null,di=!1}function wi(){var e=fi;return null!==e&&(null===Du?Du=e:Du.push.apply(Du,e),fi=null),e}function xi(e){null===fi?fi=[e]:fi.push(e)}var Ei=V(null),ki=null,Ci=null;function Si(e,t,n){z(Ei,t._currentValue),t._currentValue=n}function Ti(e){e._currentValue=Ei.current,B(Ei)}function _i(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ni(e,t,n,r){var o=e.child;for(null!==o&&(o.return=e);null!==o;){var a=o.dependencies;if(null!==a){var s=o.child;a=a.firstContext;e:for(;null!==a;){var l=a;a=o;for(var u=0;u<t.length;u++)if(l.context===t[u]){a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),_i(a.return,n,e),r||(s=null);break e}a=l.next}}else if(18===o.tag){if(null===(s=o.return))throw Error(i(341));s.lanes|=n,null!==(a=s.alternate)&&(a.lanes|=n),_i(s,n,e),s=null}else s=o.child;if(null!==s)s.return=o;else for(s=o;null!==s;){if(s===e){s=null;break}if(null!==(o=s.sibling)){o.return=s.return,s=o;break}s=s.return}o=s}}function Ai(e,t,n,r){e=null;for(var o=t,a=!1;null!==o;){if(!a)if(524288&o.flags)a=!0;else if(262144&o.flags)break;if(10===o.tag){var s=o.alternate;if(null===s)throw Error(i(387));if(null!==(s=s.memoizedProps)){var l=o.type;Zn(o.pendingProps.value,s.value)||(null!==e?e.push(l):e=[l])}}else if(o===G.current){if(null===(s=o.alternate))throw Error(i(387));s.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(null!==e?e.push(df):e=[df])}o=o.return}null!==e&&Ni(t,e,n,r),t.flags|=262144}function Di(e){for(e=e.firstContext;null!==e;){if(!Zn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Oi(e){ki=e,Ci=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Li(e){return Mi(ki,e)}function Ii(e,t){return null===ki&&Oi(e),Mi(e,t)}function Mi(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===Ci){if(null===e)throw Error(i(308));Ci=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ci=Ci.next=t;return n}var Fi="undefined"!=typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Pi=t.unstable_scheduleCallback,Ri=t.unstable_NormalPriority,ji={$$typeof:x,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Vi(){return{controller:new Fi,data:new Map,refCount:0}}function Bi(e){e.refCount--,0===e.refCount&&Pi(Ri,function(){e.controller.abort()})}var zi=null,$i=0,Ui=0,Hi=null;function Wi(){if(0===--$i&&null!==zi){null!==Hi&&(Hi.status="fulfilled");var e=zi;zi=null,Ui=0,Hi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var qi=M.S;M.S=function(e,t){Iu=le(),"object"==typeof t&&null!==t&&"function"==typeof t.then&&function(e,t){if(null===zi){var n=zi=[];$i=0,Ui=$c(),Hi={status:"pending",value:void 0,then:function(e){n.push(e)}}}$i++,t.then(Wi,Wi)}(0,t),null!==qi&&qi(e,t)};var Gi=V(null);function Ki(){var e=Gi.current;return null!==e?e:hu.pooledCache}function Yi(e,t){z(Gi,null===t?Gi.current:t.pool)}function Qi(){var e=Ki();return null===e?null:{parent:ji._currentValue,pool:e}}var Xi=Error(i(460)),Zi=Error(i(474)),Ji=Error(i(542)),eo={then:function(){}};function to(e){return"fulfilled"===(e=e.status)||"rejected"===e}function no(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(Lt,Lt),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw ao(e=t.reason),e;default:if("string"==typeof t.status)t.then(Lt,Lt);else{if(null!==(e=hu)&&100<e.shellSuspendCounter)throw Error(i(482));(e=t).status="pending",e.then(function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}},function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw ao(e=t.reason),e}throw io=t,Xi}}function ro(e){try{return(0,e._init)(e._payload)}catch(t){if(null!==t&&"object"==typeof t&&"function"==typeof t.then)throw io=t,Xi;throw t}}var io=null;function oo(){if(null===io)throw Error(i(459));var e=io;return io=null,e}function ao(e){if(e===Xi||e===Ji)throw Error(i(483))}var so=null,lo=0;function uo(e){var t=lo;return lo+=1,null===so&&(so=[]),no(so,e,t)}function co(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function fo(e,t){if(t.$$typeof===d)throw Error(i(525));throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function po(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function o(e,t){return(e=Br(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Hr(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){var i=n.type;return i===v?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===T&&ro(i)===t.type)?(co(t=o(t,n.props),n),t.return=e,t):(co(t=$r(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=qr(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Ur(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t||"bigint"==typeof t)return(t=Hr(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case p:return co(n=$r(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case m:return(t=qr(t,e.mode,n)).return=e,t;case T:return f(e,t=ro(t),n)}if(I(t)||D(t))return(t=Ur(t,e.mode,n,null)).return=e,t;if("function"==typeof t.then)return f(e,uo(t),n);if(t.$$typeof===x)return f(e,Ii(e,t),n);fo(e,t)}return null}function h(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n||"bigint"==typeof n)return null!==i?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case p:return n.key===i?u(e,t,n,r):null;case m:return n.key===i?c(e,t,n,r):null;case T:return h(e,t,n=ro(n),r)}if(I(n)||D(n))return null!==i?null:d(e,t,n,r,null);if("function"==typeof n.then)return h(e,t,uo(n),r);if(n.$$typeof===x)return h(e,t,Ii(e,n),r);fo(e,n)}return null}function g(e,t,n,r,i){if("string"==typeof r&&""!==r||"number"==typeof r||"bigint"==typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case p:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case m:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case T:return g(e,t,n,r=ro(r),i)}if(I(r)||D(r))return d(t,e=e.get(n)||null,r,i,null);if("function"==typeof r.then)return g(e,t,n,uo(r),i);if(r.$$typeof===x)return g(e,t,n,Ii(t,r),i);fo(t,r)}return null}function y(l,u,c,d){if("object"==typeof c&&null!==c&&c.type===v&&null===c.key&&(c=c.props.children),"object"==typeof c&&null!==c){switch(c.$$typeof){case p:e:{for(var b=c.key;null!==u;){if(u.key===b){if((b=c.type)===v){if(7===u.tag){n(l,u.sibling),(d=o(u,c.props.children)).return=l,l=d;break e}}else if(u.elementType===b||"object"==typeof b&&null!==b&&b.$$typeof===T&&ro(b)===u.type){n(l,u.sibling),co(d=o(u,c.props),c),d.return=l,l=d;break e}n(l,u);break}t(l,u),u=u.sibling}c.type===v?((d=Ur(c.props.children,l.mode,d,c.key)).return=l,l=d):(co(d=$r(c.type,c.key,c.props,null,l.mode,d),c),d.return=l,l=d)}return s(l);case m:e:{for(b=c.key;null!==u;){if(u.key===b){if(4===u.tag&&u.stateNode.containerInfo===c.containerInfo&&u.stateNode.implementation===c.implementation){n(l,u.sibling),(d=o(u,c.children||[])).return=l,l=d;break e}n(l,u);break}t(l,u),u=u.sibling}(d=qr(c,l.mode,d)).return=l,l=d}return s(l);case T:return y(l,u,c=ro(c),d)}if(I(c))return function(i,o,s,l){for(var u=null,c=null,d=o,p=o=0,m=null;null!==d&&p<s.length;p++){d.index>p?(m=d,d=null):m=d.sibling;var v=h(i,d,s[p],l);if(null===v){null===d&&(d=m);break}e&&d&&null===v.alternate&&t(i,d),o=a(v,o,p),null===c?u=v:c.sibling=v,c=v,d=m}if(p===s.length)return n(i,d),di&&ii(i,p),u;if(null===d){for(;p<s.length;p++)null!==(d=f(i,s[p],l))&&(o=a(d,o,p),null===c?u=d:c.sibling=d,c=d);return di&&ii(i,p),u}for(d=r(d);p<s.length;p++)null!==(m=g(d,i,p,s[p],l))&&(e&&null!==m.alternate&&d.delete(null===m.key?p:m.key),o=a(m,o,p),null===c?u=m:c.sibling=m,c=m);return e&&d.forEach(function(e){return t(i,e)}),di&&ii(i,p),u}(l,u,c,d);if(D(c)){if("function"!=typeof(b=D(c)))throw Error(i(150));return function(o,s,l,u){if(null==l)throw Error(i(151));for(var c=null,d=null,p=s,m=s=0,v=null,y=l.next();null!==p&&!y.done;m++,y=l.next()){p.index>m?(v=p,p=null):v=p.sibling;var b=h(o,p,y.value,u);if(null===b){null===p&&(p=v);break}e&&p&&null===b.alternate&&t(o,p),s=a(b,s,m),null===d?c=b:d.sibling=b,d=b,p=v}if(y.done)return n(o,p),di&&ii(o,m),c;if(null===p){for(;!y.done;m++,y=l.next())null!==(y=f(o,y.value,u))&&(s=a(y,s,m),null===d?c=y:d.sibling=y,d=y);return di&&ii(o,m),c}for(p=r(p);!y.done;m++,y=l.next())null!==(y=g(p,o,m,y.value,u))&&(e&&null!==y.alternate&&p.delete(null===y.key?m:y.key),s=a(y,s,m),null===d?c=y:d.sibling=y,d=y);return e&&p.forEach(function(e){return t(o,e)}),di&&ii(o,m),c}(l,u,c=b.call(c),d)}if("function"==typeof c.then)return y(l,u,uo(c),d);if(c.$$typeof===x)return y(l,u,Ii(l,c),d);fo(l,c)}return"string"==typeof c&&""!==c||"number"==typeof c||"bigint"==typeof c?(c=""+c,null!==u&&6===u.tag?(n(l,u.sibling),(d=o(u,c)).return=l,l=d):(n(l,u),(d=Hr(c,l.mode,d)).return=l,l=d),s(l)):n(l,u)}return function(e,t,n,r){try{lo=0;var i=y(e,t,n,r);return so=null,i}catch(a){if(a===Xi||a===Ji)throw a;var o=jr(29,a,null,e.mode);return o.lanes=r,o.return=e,o}}}var ho=po(!0),mo=po(!1),go=!1;function vo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function yo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function bo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function wo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&pu){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Fr(e),Mr(e,null,n),t}return Or(e,r,t,n),Fr(e)}function xo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Me(e,n)}}function Eo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var ko=!1;function Co(){if(ko&&null!==Hi)throw Hi}function So(e,t,n,r){ko=!1;var i=e.updateQueue;go=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?o=u:a.next=u,a=l;var d=e.alternate;null!==d&&(s=(d=d.updateQueue).lastBaseUpdate)!==a&&(null===s?d.firstBaseUpdate=u:s.next=u,d.lastBaseUpdate=l)}if(null!==o){var f=i.baseState;for(a=0,d=u=l=null,s=o;;){var p=-536870913&s.lane,h=p!==s.lane;if(h?(gu&p)===p:(r&p)===p){0!==p&&p===Ui&&(ko=!0),null!==d&&(d=d.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var m=e,g=s;p=t;var v=n;switch(g.tag){case 1:if("function"==typeof(m=g.payload)){f=m.call(v,f,p);break e}f=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(p="function"==typeof(m=g.payload)?m.call(v,f,p):m))break e;f=c({},f,p);break e;case 2:go=!0}}null!==(p=s.callback)&&(e.flags|=64,h&&(e.flags|=8192),null===(h=i.callbacks)?i.callbacks=[p]:h.push(p))}else h={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===d?(u=d=h,l=f):d=d.next=h,a|=p;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(h=s).next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}null===d&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=d,null===o&&(i.shared.lanes=0),Cu|=a,e.lanes=a,e.memoizedState=f}}function To(e,t){if("function"!=typeof e)throw Error(i(191,e));e.call(t)}function _o(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)To(n[e],t)}var No=V(null),Ao=V(0);function Do(e,t){z(Ao,e=Eu),z(No,t),Eu=e|t.baseLanes}function Oo(){z(Ao,Eu),z(No,No.current)}function Lo(){Eu=Ao.current,B(No),B(Ao)}var Io=V(null),Mo=null;function Fo(e){var t=e.alternate;z(Bo,1&Bo.current),z(Io,e),null===Mo&&(null===t||null!==No.current||null!==t.memoizedState)&&(Mo=e)}function Po(e){z(Bo,Bo.current),z(Io,e),null===Mo&&(Mo=e)}function Ro(e){22===e.tag?(z(Bo,Bo.current),z(Io,e),null===Mo&&(Mo=e)):jo()}function jo(){z(Bo,Bo.current),z(Io,Io.current)}function Vo(e){B(Io),Mo===e&&(Mo=null),B(Bo)}var Bo=V(0);function zo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||Od(n)||Ld(n)))return t}else if(19!==t.tag||"forwards"!==t.memoizedProps.revealOrder&&"backwards"!==t.memoizedProps.revealOrder&&"unstable_legacy-backwards"!==t.memoizedProps.revealOrder&&"together"!==t.memoizedProps.revealOrder){if(null!==t.child){t.child.return=t,t=t.child;continue}}else if(128&t.flags)return t;if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var $o=0,Uo=null,Ho=null,Wo=null,qo=!1,Go=!1,Ko=!1,Yo=0,Qo=0,Xo=null,Zo=0;function Jo(){throw Error(i(321))}function ea(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Zn(e[n],t[n]))return!1;return!0}function ta(e,t,n,r,i,o){return $o=o,Uo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=null===e||null===e.memoizedState?gs:vs,Ko=!1,o=n(r,i),Ko=!1,Go&&(o=ra(t,n,r,i)),na(e),o}function na(e){M.H=ms;var t=null!==Ho&&null!==Ho.next;if($o=0,Wo=Ho=Uo=null,qo=!1,Qo=0,Xo=null,t)throw Error(i(300));null===e||Is||null!==(e=e.dependencies)&&Di(e)&&(Is=!0)}function ra(e,t,n,r){Uo=e;var o=0;do{if(Go&&(Xo=null),Qo=0,Go=!1,25<=o)throw Error(i(301));if(o+=1,Wo=Ho=null,null!=e.updateQueue){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,null!=a.memoCache&&(a.memoCache.index=0)}M.H=ys,a=t(n,r)}while(Go);return a}function ia(){var e=M.H,t=e.useState()[0];return t="function"==typeof t.then?ca(t):t,e=e.useState()[0],(null!==Ho?Ho.memoizedState:null)!==e&&(Uo.flags|=1024),t}function oa(){var e=0!==Yo;return Yo=0,e}function aa(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function sa(e){if(qo){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}qo=!1}$o=0,Wo=Ho=Uo=null,Go=!1,Qo=Yo=0,Xo=null}function la(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Wo?Uo.memoizedState=Wo=e:Wo=Wo.next=e,Wo}function ua(){if(null===Ho){var e=Uo.alternate;e=null!==e?e.memoizedState:null}else e=Ho.next;var t=null===Wo?Uo.memoizedState:Wo.next;if(null!==t)Wo=t,Ho=e;else{if(null===e){if(null===Uo.alternate)throw Error(i(467));throw Error(i(310))}e={memoizedState:(Ho=e).memoizedState,baseState:Ho.baseState,baseQueue:Ho.baseQueue,queue:Ho.queue,next:null},null===Wo?Uo.memoizedState=Wo=e:Wo=Wo.next=e}return Wo}function ca(e){var t=Qo;return Qo+=1,null===Xo&&(Xo=[]),e=no(Xo,e,t),t=Uo,null===(null===Wo?t.memoizedState:Wo.next)&&(t=t.alternate,M.H=null===t||null===t.memoizedState?gs:vs),e}function da(e){if(null!==e&&"object"==typeof e){if("function"==typeof e.then)return ca(e);if(e.$$typeof===x)return Li(e)}throw Error(i(438,String(e)))}function fa(e){var t=null,n=Uo.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=Uo.alternate;null!==r&&null!==(r=r.updateQueue)&&null!=(r=r.memoCache)&&(t={data:r.data.map(function(e){return e.slice()}),index:0})}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},Uo.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=N;return t.index++,n}function pa(e,t){return"function"==typeof t?t(e):t}function ha(e){return ma(ua(),Ho,e)}function ma(e,t,n){var r=e.queue;if(null===r)throw Error(i(311));r.lastRenderedReducer=n;var o=e.baseQueue,a=r.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}t.baseQueue=o=a,r.pending=null}if(a=e.baseState,null===o)e.memoizedState=a;else{var l=s=null,u=null,c=t=o.next,d=!1;do{var f=-536870913&c.lane;if(f!==c.lane?(gu&f)===f:($o&f)===f){var p=c.revertLane;if(0===p)null!==u&&(u=u.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),f===Ui&&(d=!0);else{if(($o&p)===p){c=c.next,p===Ui&&(d=!0);continue}f={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(l=u=f,s=a):u=u.next=f,Uo.lanes|=p,Cu|=p}f=c.action,Ko&&n(a,f),a=c.hasEagerState?c.eagerState:n(a,f)}else p={lane:f,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(l=u=p,s=a):u=u.next=p,Uo.lanes|=f,Cu|=f;c=c.next}while(null!==c&&c!==t);if(null===u?s=a:u.next=l,!Zn(a,e.memoizedState)&&(Is=!0,d&&null!==(n=Hi)))throw n;e.memoizedState=a,e.baseState=s,e.baseQueue=u,r.lastRenderedState=a}return null===o&&(r.lanes=0),[e.memoizedState,r.dispatch]}function ga(e){var t=ua(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);Zn(a,t.memoizedState)||(Is=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function va(e,t,n){var r=Uo,o=ua(),a=di;if(a){if(void 0===n)throw Error(i(407));n=n()}else n=t();var s=!Zn((Ho||o).memoizedState,n);if(s&&(o.memoizedState=n,Is=!0),o=o.queue,$a(wa.bind(null,r,o,e),[e]),o.getSnapshot!==t||s||null!==Wo&&1&Wo.memoizedState.tag){if(r.flags|=2048,Ra(9,{destroy:void 0},ba.bind(null,r,o,n,t),null),null===hu)throw Error(i(349));a||127&$o||ya(r,t,n)}return n}function ya(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Uo.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},Uo.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function ba(e,t,n,r){t.value=n,t.getSnapshot=r,xa(t)&&Ea(e)}function wa(e,t,n){return n(function(){xa(t)&&Ea(e)})}function xa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Zn(e,n)}catch(tp){return!0}}function Ea(e){var t=Ir(e,2);null!==t&&Ku(t,0,2)}function ka(e){var t=la();if("function"==typeof e){var n=e;if(e=n(),Ko){be(!0);try{n()}finally{be(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:e},t}function Ca(e,t,n,r){return e.baseState=n,ma(e,Ho,"function"==typeof r?r:pa)}function Sa(e,t,n,r,o){if(fs(e))throw Error(i(485));if(null!==(e=t.action)){var a={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};null!==M.T?n(!0):a.isTransition=!1,r(a),null===(n=t.pending)?(a.next=t.pending=a,Ta(t,a)):(a.next=n.next,t.pending=n.next=a)}}function Ta(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var o=M.T,a={};M.T=a;try{var s=n(i,r),l=M.S;null!==l&&l(a,s),_a(e,t,s)}catch(tp){Aa(e,t,tp)}finally{null!==o&&null!==a.types&&(o.types=a.types),M.T=o}}else try{_a(e,t,o=n(i,r))}catch(u){Aa(e,t,u)}}function _a(e,t,n){null!==n&&"object"==typeof n&&"function"==typeof n.then?n.then(function(n){Na(e,t,n)},function(n){return Aa(e,t,n)}):Na(e,t,n)}function Na(e,t,n){t.status="fulfilled",t.value=n,Da(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,Ta(e,n)))}function Aa(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,Da(t),t=t.next}while(t!==r)}e.action=null}function Da(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Oa(e,t){return t}function La(e,t){if(di){var n=hu.formState;if(null!==n){e:{var r=Uo;if(di){if(ci){t:{for(var i=ci,o=pi;8!==i.nodeType;){if(!o){i=null;break t}if(null===(i=Id(i.nextSibling))){i=null;break t}}i="F!"===(o=i.data)||"F"===o?i:null}if(i){ci=Id(i.nextSibling),r="F!"===i.data;break e}}mi(r)}r=!1}r&&(t=n[0])}}return(n=la()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Oa,lastRenderedState:t},n.queue=r,n=us.bind(null,Uo,r),r.dispatch=n,r=ka(!1),o=ds.bind(null,Uo,!1,r.queue),i={state:t,dispatch:null,action:e,pending:null},(r=la()).queue=i,n=Sa.bind(null,Uo,i,o,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Ia(e){return Ma(ua(),Ho,e)}function Ma(e,t,n){if(t=ma(e,t,Oa)[0],e=ha(pa)[0],"object"==typeof t&&null!==t&&"function"==typeof t.then)try{var r=ca(t)}catch(a){if(a===Xi)throw Ji;throw a}else r=t;var i=(t=ua()).queue,o=i.dispatch;return n!==t.memoizedState&&(Uo.flags|=2048,Ra(9,{destroy:void 0},Fa.bind(null,i,n),null)),[r,o,e]}function Fa(e,t){e.action=t}function Pa(e){var t=ua(),n=Ho;if(null!==n)return Ma(t,n,e);ua(),t=t.memoizedState;var r=(n=ua()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Ra(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=Uo.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},Uo.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ja(){return ua().memoizedState}function Va(e,t,n,r){var i=la();Uo.flags|=e,i.memoizedState=Ra(1|t,{destroy:void 0},n,void 0===r?null:r)}function Ba(e,t,n,r){var i=ua();r=void 0===r?null:r;var o=i.memoizedState.inst;null!==Ho&&null!==r&&ea(r,Ho.memoizedState.deps)?i.memoizedState=Ra(t,o,n,r):(Uo.flags|=e,i.memoizedState=Ra(1|t,o,n,r))}function za(e,t){Va(8390656,8,e,t)}function $a(e,t){Ba(2048,8,e,t)}function Ua(e){var t=ua().memoizedState;return function(e){Uo.flags|=4;var t=Uo.updateQueue;if(null===t)t={lastEffect:null,events:null,stores:null,memoCache:null},Uo.updateQueue=t,t.events=[e];else{var n=t.events;null===n?t.events=[e]:n.push(e)}}({ref:t,nextImpl:e}),function(){if(2&pu)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Ha(e,t){return Ba(4,2,e,t)}function Wa(e,t){return Ba(4,4,e,t)}function qa(e,t){if("function"==typeof t){e=e();var n=t(e);return function(){"function"==typeof n?n():t(null)}}if(null!=t)return e=e(),t.current=e,function(){t.current=null}}function Ga(e,t,n){n=null!=n?n.concat([e]):null,Ba(4,4,qa.bind(null,t,e),n)}function Ka(){}function Ya(e,t){var n=ua();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&ea(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Qa(e,t){var n=ua();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&ea(t,r[1]))return r[0];if(r=e(),Ko){be(!0);try{e()}finally{be(!1)}}return n.memoizedState=[r,t],r}function Xa(e,t,n){return void 0===n||1073741824&$o&&!(261930&gu)?e.memoizedState=t:(e.memoizedState=n,e=Gu(),Uo.lanes|=e,Cu|=e,n)}function Za(e,t,n,r){return Zn(n,t)?n:null!==No.current?(e=Xa(e,n,r),Zn(e,t)||(Is=!0),e):42&$o&&(!(1073741824&$o)||261930&gu)?(e=Gu(),Uo.lanes|=e,Cu|=e,t):(Is=!0,e.memoizedState=n)}function Ja(e,t,n,r,i){var o=F.p;F.p=0!==o&&8>o?o:8;var a,s,l,u=M.T,c={};M.T=c,ds(e,!1,t,n);try{var d=i(),f=M.S;null!==f&&f(c,d),null!==d&&"object"==typeof d&&"function"==typeof d.then?cs(e,t,(a=r,s=[],l={status:"pending",value:null,reason:null,then:function(e){s.push(e)}},d.then(function(){l.status="fulfilled",l.value=a;for(var e=0;e<s.length;e++)(0,s[e])(a)},function(e){for(l.status="rejected",l.reason=e,e=0;e<s.length;e++)(0,s[e])(void 0)}),l),qu()):cs(e,t,r,qu())}catch(tp){cs(e,t,{then:function(){},status:"rejected",reason:tp},qu())}finally{F.p=o,null!==u&&null!==c.types&&(u.types=c.types),M.T=u}}function es(){}function ts(e,t,n,r){if(5!==e.tag)throw Error(i(476));var o=ns(e).queue;Ja(e,o,t,P,null===n?es:function(){return rs(e),n(r)})}function ns(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:P,baseState:P,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:P},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function rs(e){var t=ns(e);null===t.next&&(t=e.alternate.memoizedState),cs(e,t.next.queue,{},qu())}function is(){return Li(df)}function os(){return ua().memoizedState}function as(){return ua().memoizedState}function ss(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=qu(),r=wo(t,e=bo(n),n);return null!==r&&(Ku(r,0,n),xo(r,t,n)),t={cache:Vi()},void(e.payload=t)}t=t.return}}function ls(e,t,n){var r=qu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},fs(e)?ps(t,n):null!==(n=Lr(e,t,n,r))&&(Ku(n,0,r),hs(n,t,r))}function us(e,t,n){cs(e,t,n,qu())}function cs(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(fs(e))ps(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,Zn(s,a))return Or(e,t,i,0),null===hu&&Dr(),!1}catch(tp){}if(null!==(n=Lr(e,t,i,r)))return Ku(n,0,r),hs(n,t,r),!0}return!1}function ds(e,t,n,r){if(r={lane:2,revertLane:$c(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},fs(e)){if(t)throw Error(i(479))}else null!==(t=Lr(e,n,r,2))&&Ku(t,0,2)}function fs(e){var t=e.alternate;return e===Uo||null!==t&&t===Uo}function ps(e,t){Go=qo=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function hs(e,t,n){if(4194048&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Me(e,n)}}var ms={readContext:Li,use:da,useCallback:Jo,useContext:Jo,useEffect:Jo,useImperativeHandle:Jo,useLayoutEffect:Jo,useInsertionEffect:Jo,useMemo:Jo,useReducer:Jo,useRef:Jo,useState:Jo,useDebugValue:Jo,useDeferredValue:Jo,useTransition:Jo,useSyncExternalStore:Jo,useId:Jo,useHostTransitionStatus:Jo,useFormState:Jo,useActionState:Jo,useOptimistic:Jo,useMemoCache:Jo,useCacheRefresh:Jo};ms.useEffectEvent=Jo;var gs={readContext:Li,use:da,useCallback:function(e,t){return la().memoizedState=[e,void 0===t?null:t],e},useContext:Li,useEffect:za,useImperativeHandle:function(e,t,n){n=null!=n?n.concat([e]):null,Va(4194308,4,qa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Va(4194308,4,e,t)},useInsertionEffect:function(e,t){Va(4,2,e,t)},useMemo:function(e,t){var n=la();t=void 0===t?null:t;var r=e();if(Ko){be(!0);try{e()}finally{be(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=la();if(void 0!==n){var i=n(t);if(Ko){be(!0);try{n(t)}finally{be(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=ls.bind(null,Uo,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},la().memoizedState=e},useState:function(e){var t=(e=ka(e)).queue,n=us.bind(null,Uo,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ka,useDeferredValue:function(e,t){return Xa(la(),e,t)},useTransition:function(){var e=ka(!1);return e=Ja.bind(null,Uo,e.queue,!0,!1),la().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Uo,o=la();if(di){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===hu)throw Error(i(349));127&gu||ya(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,za(wa.bind(null,r,a,e),[e]),r.flags|=2048,Ra(9,{destroy:void 0},ba.bind(null,r,a,n,t),null),n},useId:function(){var e=la(),t=hu.identifierPrefix;if(di){var n=ri;t="_"+t+"R_"+(n=(ni&~(1<<32-we(ni)-1)).toString(32)+n),0<(n=Yo++)&&(t+="H"+n.toString(32)),t+="_"}else t="_"+t+"r_"+(n=Zo++).toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:is,useFormState:La,useActionState:La,useOptimistic:function(e){var t=la();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=ds.bind(null,Uo,!0,n),n.dispatch=t,[e,t]},useMemoCache:fa,useCacheRefresh:function(){return la().memoizedState=ss.bind(null,Uo)},useEffectEvent:function(e){var t=la(),n={impl:e};return t.memoizedState=n,function(){if(2&pu)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},vs={readContext:Li,use:da,useCallback:Ya,useContext:Li,useEffect:$a,useImperativeHandle:Ga,useInsertionEffect:Ha,useLayoutEffect:Wa,useMemo:Qa,useReducer:ha,useRef:ja,useState:function(){return ha(pa)},useDebugValue:Ka,useDeferredValue:function(e,t){return Za(ua(),Ho.memoizedState,e,t)},useTransition:function(){var e=ha(pa)[0],t=ua().memoizedState;return["boolean"==typeof e?e:ca(e),t]},useSyncExternalStore:va,useId:os,useHostTransitionStatus:is,useFormState:Ia,useActionState:Ia,useOptimistic:function(e,t){return Ca(ua(),0,e,t)},useMemoCache:fa,useCacheRefresh:as};vs.useEffectEvent=Ua;var ys={readContext:Li,use:da,useCallback:Ya,useContext:Li,useEffect:$a,useImperativeHandle:Ga,useInsertionEffect:Ha,useLayoutEffect:Wa,useMemo:Qa,useReducer:ga,useRef:ja,useState:function(){return ga(pa)},useDebugValue:Ka,useDeferredValue:function(e,t){var n=ua();return null===Ho?Xa(n,e,t):Za(n,Ho.memoizedState,e,t)},useTransition:function(){var e=ga(pa)[0],t=ua().memoizedState;return["boolean"==typeof e?e:ca(e),t]},useSyncExternalStore:va,useId:os,useHostTransitionStatus:is,useFormState:Pa,useActionState:Pa,useOptimistic:function(e,t){var n=ua();return null!==Ho?Ca(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:fa,useCacheRefresh:as};function bs(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:c({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}ys.useEffectEvent=Ua;var ws={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=qu(),i=bo(r);i.payload=t,null!=n&&(i.callback=n),null!==(t=wo(e,i,r))&&(Ku(t,0,r),xo(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=qu(),i=bo(r);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=wo(e,i,r))&&(Ku(t,0,r),xo(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=qu(),r=bo(n);r.tag=2,null!=t&&(r.callback=t),null!==(t=wo(e,r,n))&&(Ku(t,0,n),xo(t,e,n))}};function xs(e,t,n,r,i,o,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!(t.prototype&&t.prototype.isPureReactComponent&&Jn(n,r)&&Jn(i,o))}function Es(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ws.enqueueReplaceState(t,t.state,null)}function ks(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=c({},n)),e)void 0===n[i]&&(n[i]=e[i]);return n}function Cs(e){Tr(e)}function Ss(e){}function Ts(e){Tr(e)}function _s(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Ns(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function As(e,t,n){return(n=bo(n)).tag=3,n.payload={element:null},n.callback=function(){_s(e,t)},n}function Ds(e){return(e=bo(e)).tag=3,e}function Os(e,t,n,r){var i=n.type.getDerivedStateFromError;if("function"==typeof i){var o=r.value;e.payload=function(){return i(o)},e.callback=function(){Ns(t,n,r)}}var a=n.stateNode;null!==a&&"function"==typeof a.componentDidCatch&&(e.callback=function(){Ns(t,n,r),"function"!=typeof i&&(null===Pu?Pu=new Set([this]):Pu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var Ls=Error(i(461)),Is=!1;function Ms(e,t,n,r){t.child=null===e?mo(t,null,n,r):ho(t,e.child,n,r)}function Fs(e,t,n,r,i){n=n.render;var o=t.ref;if("ref"in r){var a={};for(var s in r)"ref"!==s&&(a[s]=r[s])}else a=r;return Oi(t),r=ta(e,t,n,a,o,i),s=oa(),null===e||Is?(di&&s&&ai(t),t.flags|=1,Ms(e,t,r,i),t.child):(aa(e,t,i),il(e,t,i))}function Ps(e,t,n,r,i){if(null===e){var o=n.type;return"function"!=typeof o||Vr(o)||void 0!==o.defaultProps||null!==n.compare?((e=$r(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Rs(e,t,o,r,i))}if(o=e.child,!ol(e,i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:Jn)(a,r)&&e.ref===t.ref)return il(e,t,i)}return t.flags|=1,(e=Br(o,r)).ref=t.ref,e.return=t,t.child=e}function Rs(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(Jn(o,r)&&e.ref===t.ref){if(Is=!1,t.pendingProps=r=o,!ol(e,i))return t.lanes=e.lanes,il(e,t,i);131072&e.flags&&(Is=!0)}}return Hs(e,t,n,r,i)}function js(e,t,n,r){var i=r.children,o=null!==e?e.memoizedState:null;if(null===e&&null===t.stateNode&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),"hidden"===r.mode){if(128&t.flags){if(o=null!==o?o.baseLanes|n:n,null!==e){for(r=t.child=e.child,i=0;null!==r;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~o}else r=0,t.child=null;return Bs(e,t,o,n,r)}if(!(536870912&n))return r=t.lanes=536870912,Bs(e,t,null!==o?o.baseLanes|n:n,n,r);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Yi(0,null!==o?o.cachePool:null),null!==o?Do(t,o):Oo(),Ro(t)}else null!==o?(Yi(0,o.cachePool),Do(t,o),jo(),t.memoizedState=null):(null!==e&&Yi(0,null),Oo(),jo());return Ms(e,t,i,n),t.child}function Vs(e,t){return null!==e&&22===e.tag||null!==t.stateNode||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Bs(e,t,n,r,i){var o=Ki();return o=null===o?null:{parent:ji._currentValue,pool:o},t.memoizedState={baseLanes:n,cachePool:o},null!==e&&Yi(0,null),Oo(),Ro(t),null!==e&&Ai(e,t,r,!0),t.childLanes=i,null}function zs(e,t){return(t=Js({mode:t.mode,children:t.children},e.mode)).ref=e.ref,e.child=t,t.return=e,t}function $s(e,t,n){return ho(t,e.child,null,n),(e=zs(t,t.pendingProps)).flags|=2,Vo(t),t.memoizedState=null,e}function Us(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!=typeof n&&"object"!=typeof n)throw Error(i(284));null!==e&&e.ref===n||(t.flags|=4194816)}}function Hs(e,t,n,r,i){return Oi(t),n=ta(e,t,n,r,void 0,i),r=oa(),null===e||Is?(di&&r&&ai(t),t.flags|=1,Ms(e,t,n,i),t.child):(aa(e,t,i),il(e,t,i))}function Ws(e,t,n,r,i,o){return Oi(t),t.updateQueue=null,n=ra(t,r,n,i),na(e),r=oa(),null===e||Is?(di&&r&&ai(t),t.flags|=1,Ms(e,t,n,o),t.child):(aa(e,t,o),il(e,t,o))}function qs(e,t,n,r,i){if(Oi(t),null===t.stateNode){var o=Pr,a=n.contextType;"object"==typeof a&&null!==a&&(o=Li(a)),o=new n(r,o),t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,o.updater=ws,t.stateNode=o,o._reactInternals=t,(o=t.stateNode).props=r,o.state=t.memoizedState,o.refs={},vo(t),a=n.contextType,o.context="object"==typeof a&&null!==a?Li(a):Pr,o.state=t.memoizedState,"function"==typeof(a=n.getDerivedStateFromProps)&&(bs(t,n,a,r),o.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(a=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),a!==o.state&&ws.enqueueReplaceState(o,o.state,null),So(t,r,o,i),Co(),o.state=t.memoizedState),"function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){o=t.stateNode;var s=t.memoizedProps,l=ks(n,s);o.props=l;var u=o.context,c=n.contextType;a=Pr,"object"==typeof c&&null!==c&&(a=Li(c));var d=n.getDerivedStateFromProps;c="function"==typeof d||"function"==typeof o.getSnapshotBeforeUpdate,s=t.pendingProps!==s,c||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s||u!==a)&&Es(t,o,r,a),go=!1;var f=t.memoizedState;o.state=f,So(t,r,o,i),Co(),u=t.memoizedState,s||f!==u||go?("function"==typeof d&&(bs(t,n,d,r),u=t.memoizedState),(l=go||xs(t,n,l,r,f,u,a))?(c||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4194308)):("function"==typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=a,r=l):("function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,yo(e,t),c=ks(n,a=t.memoizedProps),o.props=c,d=t.pendingProps,f=o.context,u=n.contextType,l=Pr,"object"==typeof u&&null!==u&&(l=Li(u)),(u="function"==typeof(s=n.getDerivedStateFromProps)||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(a!==d||f!==l)&&Es(t,o,r,l),go=!1,f=t.memoizedState,o.state=f,So(t,r,o,i),Co();var p=t.memoizedState;a!==d||f!==p||go||null!==e&&null!==e.dependencies&&Di(e.dependencies)?("function"==typeof s&&(bs(t,n,s,r),p=t.memoizedState),(c=go||xs(t,n,c,r,f,p,l)||null!==e&&null!==e.dependencies&&Di(e.dependencies))?(u||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,p,l),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),o.props=r,o.state=p,o.context=l,r=c):("function"!=typeof o.componentDidUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||a===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return o=r,Us(e,t),r=!!(128&t.flags),o||r?(o=t.stateNode,n=r&&"function"!=typeof n.getDerivedStateFromError?null:o.render(),t.flags|=1,null!==e&&r?(t.child=ho(t,e.child,null,i),t.child=ho(t,null,n,i)):Ms(e,t,n,i),t.memoizedState=o.state,e=t.child):e=il(e,t,i),e}function Gs(e,t,n,r){return bi(),t.flags|=256,Ms(e,t,n,r),t.child}var Ks={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ys(e){return{baseLanes:e,cachePool:Qi()}}function Qs(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=_u),e}function Xs(e,t,n){var r,o=t.pendingProps,a=!1,s=!!(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&!!(2&Bo.current)),r&&(a=!0,t.flags&=-129),r=!!(32&t.flags),t.flags&=-33,null===e){if(di){if(a?Fo(t):jo(),(e=ci)?null!==(e=null!==(e=Dd(e,pi))&&"&"!==e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==ti?{id:ni,overflow:ri}:null,retryLane:536870912,hydrationErrors:null},(n=Wr(e)).return=t,t.child=n,ui=t,ci=null):e=null,null===e)throw mi(t);return Ld(e)?t.lanes=32:t.lanes=536870912,null}var l=o.children;return o=o.fallback,a?(jo(),l=Js({mode:"hidden",children:l},a=t.mode),o=Ur(o,a,n,null),l.return=t,o.return=t,l.sibling=o,t.child=l,(o=t.child).memoizedState=Ys(n),o.childLanes=Qs(e,r,n),t.memoizedState=Ks,Vs(null,o)):(Fo(t),Zs(t,l))}var u=e.memoizedState;if(null!==u&&null!==(l=u.dehydrated)){if(s)256&t.flags?(Fo(t),t.flags&=-257,t=el(e,t,n)):null!==t.memoizedState?(jo(),t.child=e.child,t.flags|=128,t=null):(jo(),l=o.fallback,a=t.mode,o=Js({mode:"visible",children:o.children},a),(l=Ur(l,a,n,null)).flags|=2,o.return=t,l.return=t,o.sibling=l,t.child=o,ho(t,e.child,null,n),(o=t.child).memoizedState=Ys(n),o.childLanes=Qs(e,r,n),t.memoizedState=Ks,t=Vs(null,o));else if(Fo(t),Ld(l)){if(r=l.nextSibling&&l.nextSibling.dataset)var c=r.dgst;r=c,(o=Error(i(419))).stack="",o.digest=r,xi({value:o,source:null,stack:null}),t=el(e,t,n)}else if(Is||Ai(e,t,n,!1),r=0!==(n&e.childLanes),Is||r){if(null!==(r=hu)&&0!==(o=Fe(r,n))&&o!==u.retryLane)throw u.retryLane=o,Ir(e,o),Ku(r,0,o),Ls;Od(l)||ac(),t=el(e,t,n)}else Od(l)?(t.flags|=192,t.child=e.child,t=null):(e=u.treeContext,ci=Id(l.nextSibling),ui=t,di=!0,fi=null,pi=!1,null!==e&&li(t,e),(t=Zs(t,o.children)).flags|=4096);return t}return a?(jo(),l=o.fallback,a=t.mode,c=(u=e.child).sibling,(o=Br(u,{mode:"hidden",children:o.children})).subtreeFlags=65011712&u.subtreeFlags,null!==c?l=Br(c,l):(l=Ur(l,a,n,null)).flags|=2,l.return=t,o.return=t,o.sibling=l,t.child=o,Vs(null,o),o=t.child,null===(l=e.child.memoizedState)?l=Ys(n):(null!==(a=l.cachePool)?(u=ji._currentValue,a=a.parent!==u?{parent:u,pool:u}:a):a=Qi(),l={baseLanes:l.baseLanes|n,cachePool:a}),o.memoizedState=l,o.childLanes=Qs(e,r,n),t.memoizedState=Ks,Vs(e.child,o)):(Fo(t),e=(n=e.child).sibling,(n=Br(n,{mode:"visible",children:o.children})).return=t,n.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function Zs(e,t){return(t=Js({mode:"visible",children:t},e.mode)).return=e,e.child=t}function Js(e,t){return(e=jr(22,e,null,t)).lanes=0,e}function el(e,t,n){return ho(t,e.child,null,n),(e=Zs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function tl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),_i(e.return,t,n)}function nl(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.treeForkCount=o)}function rl(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;r=r.children;var a=Bo.current,s=!!(2&a);if(s?(a=1&a|2,t.flags|=128):a&=1,z(Bo,a),Ms(e,t,r,n),r=di?Zr:0,!s&&null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&tl(e,n,t);else if(19===e.tag)tl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===zo(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),nl(t,!1,i,n,o,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===zo(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}nl(t,!0,n,null,o,r);break;case"together":nl(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function il(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Cu|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(Ai(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Br(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Br(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function ol(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!Di(e))}function al(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Is=!0;else{if(!(ol(e,n)||128&t.flags))return Is=!1,function(e,t,n){switch(t.tag){case 3:K(t,t.stateNode.containerInfo),Si(0,ji,e.memoizedState.cache),bi();break;case 27:case 5:Q(t);break;case 4:K(t,t.stateNode.containerInfo);break;case 10:Si(0,t.type,t.memoizedProps.value);break;case 31:if(null!==t.memoizedState)return t.flags|=128,Po(t),null;break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(Fo(t),t.flags|=128,null):0!==(n&t.child.childLanes)?Xs(e,t,n):(Fo(t),null!==(e=il(e,t,n))?e.sibling:null);Fo(t);break;case 19:var i=!!(128&e.flags);if((r=0!==(n&t.childLanes))||(Ai(e,t,n,!1),r=0!==(n&t.childLanes)),i){if(r)return rl(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),z(Bo,Bo.current),r)break;return null;case 22:return t.lanes=0,js(e,t,n,t.pendingProps);case 24:Si(0,ji,e.memoizedState.cache)}return il(e,t,n)}(e,t,n);Is=!!(131072&e.flags)}else Is=!1,di&&1048576&t.flags&&oi(t,Zr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=ro(t.elementType),t.type=e,"function"!=typeof e){if(null!=e){var o=e.$$typeof;if(o===E){t.tag=11,t=Fs(null,t,e,r,n);break e}if(o===S){t.tag=14,t=Ps(null,t,e,r,n);break e}}throw t=L(e)||e,Error(i(306,t,""))}Vr(e)?(r=ks(e,r),t.tag=1,t=qs(null,t,e,r,n)):(t.tag=0,t=Hs(null,t,e,r,n))}return t;case 0:return Hs(e,t,t.type,t.pendingProps,n);case 1:return qs(e,t,r=t.type,o=ks(r,t.pendingProps),n);case 3:e:{if(K(t,t.stateNode.containerInfo),null===e)throw Error(i(387));r=t.pendingProps;var a=t.memoizedState;o=a.element,yo(e,t),So(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Si(0,ji,r),r!==a.cache&&Ni(t,[ji],n,!0),Co(),r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Gs(e,t,r,n);break e}if(r!==o){xi(o=Kr(Error(i(424)),t)),t=Gs(e,t,r,n);break e}for(e=9===(e=t.stateNode.containerInfo).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,ci=Id(e.firstChild),ui=t,di=!0,fi=null,pi=!0,n=mo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(bi(),r===o){t=il(e,t,n);break e}Ms(e,t,r,n)}t=t.child}return t;case 26:return Us(e,t),null===e?(n=Wd(t.type,null,t.pendingProps,null))?t.memoizedState=n:di||(n=t.type,e=t.pendingProps,(r=gd(q.current).createElement(n))[ze]=t,r[$e]=e,fd(r,n,e),et(r),t.stateNode=r):t.memoizedState=Wd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Q(t),null===e&&di&&(r=t.stateNode=Rd(t.type,t.pendingProps,q.current),ui=t,pi=!0,o=ci,Td(t.type)?(Md=o,ci=Id(r.firstChild)):ci=o),Ms(e,t,t.pendingProps.children,n),Us(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&di&&((o=r=ci)&&(r=function(e,t,n,r){for(;1===e.nodeType;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[Ke])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(o=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(o!==i.rel||e.getAttribute("href")!==(null==i.href||""===i.href?null:i.href)||e.getAttribute("crossorigin")!==(null==i.crossOrigin?null:i.crossOrigin)||e.getAttribute("title")!==(null==i.title?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((o=e.getAttribute("src"))!==(null==i.src?null:i.src)||e.getAttribute("type")!==(null==i.type?null:i.type)||e.getAttribute("crossorigin")!==(null==i.crossOrigin?null:i.crossOrigin))&&o&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var o=null==i.name?null:""+i.name;if("hidden"===i.type&&e.getAttribute("name")===o)return e}if(null===(e=Id(e.nextSibling)))break}return null}(r,t.type,t.pendingProps,pi),null!==r?(t.stateNode=r,ui=t,ci=Id(r.firstChild),pi=!1,o=!0):o=!1),o||mi(t)),Q(t),o=t.type,a=t.pendingProps,s=null!==e?e.memoizedProps:null,r=a.children,bd(o,a)?r=null:null!==s&&bd(o,s)&&(t.flags|=32),null!==t.memoizedState&&(o=ta(e,t,ia,null,null,n),df._currentValue=o),Us(e,t),Ms(e,t,r,n),t.child;case 6:return null===e&&di&&((e=n=ci)&&(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=Id(e.nextSibling)))return null}return e}(n,t.pendingProps,pi),null!==n?(t.stateNode=n,ui=t,ci=null,e=!0):e=!1),e||mi(t)),null;case 13:return Xs(e,t,n);case 4:return K(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ho(t,null,r,n):Ms(e,t,r,n),t.child;case 11:return Fs(e,t,t.type,t.pendingProps,n);case 7:return Ms(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ms(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Si(0,t.type,r.value),Ms(e,t,r.children,n),t.child;case 9:return o=t.type._context,r=t.pendingProps.children,Oi(t),r=r(o=Li(o)),t.flags|=1,Ms(e,t,r,n),t.child;case 14:return Ps(e,t,t.type,t.pendingProps,n);case 15:return Rs(e,t,t.type,t.pendingProps,n);case 19:return rl(e,t,n);case 31:return function(e,t,n){var r=t.pendingProps,o=!!(128&t.flags);if(t.flags&=-129,null===e){if(di){if("hidden"===r.mode)return e=zs(t,r),t.lanes=536870912,Vs(null,e);if(Po(t),(e=ci)?null!==(e=null!==(e=Dd(e,pi))&&"&"===e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==ti?{id:ni,overflow:ri}:null,retryLane:536870912,hydrationErrors:null},(n=Wr(e)).return=t,t.child=n,ui=t,ci=null):e=null,null===e)throw mi(t);return t.lanes=536870912,null}return zs(t,r)}var a=e.memoizedState;if(null!==a){var s=a.dehydrated;if(Po(t),o)if(256&t.flags)t.flags&=-257,t=$s(e,t,n);else{if(null===t.memoizedState)throw Error(i(558));t.child=e.child,t.flags|=128,t=null}else if(Is||Ai(e,t,n,!1),o=0!==(n&e.childLanes),Is||o){if(null!==(r=hu)&&0!==(s=Fe(r,n))&&s!==a.retryLane)throw a.retryLane=s,Ir(e,s),Ku(r,0,s),Ls;ac(),t=$s(e,t,n)}else e=a.treeContext,ci=Id(s.nextSibling),ui=t,di=!0,fi=null,pi=!1,null!==e&&li(t,e),(t=zs(t,r)).flags|=4096;return t}return(e=Br(e.child,{mode:r.mode,children:r.children})).ref=t.ref,t.child=e,e.return=t,e}(e,t,n);case 22:return js(e,t,n,t.pendingProps);case 24:return Oi(t),r=Li(ji),null===e?(null===(o=Ki())&&(o=hu,a=Vi(),o.pooledCache=a,a.refCount++,null!==a&&(o.pooledCacheLanes|=n),o=a),t.memoizedState={parent:r,cache:o},vo(t),Si(0,ji,o)):(0!==(e.lanes&n)&&(yo(e,t),So(t,null,null,n),Co()),o=e.memoizedState,a=t.memoizedState,o.parent!==r?(o={parent:r,cache:r},t.memoizedState=o,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=o),Si(0,ji,r)):(r=a.cache,Si(0,ji,r),r!==o.cache&&Ni(t,[ji],n,!0))),Ms(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function sl(e){e.flags|=4}function ll(e,t,n,r,i){if((t=!!(32&e.mode))&&(t=!1),t){if(e.flags|=16777216,(335544128&i)===i)if(e.stateNode.complete)e.flags|=8192;else{if(!rc())throw io=eo,Zi;e.flags|=8192}}else e.flags&=-16777217}function ul(e,t){if("stylesheet"!==t.type||4&t.state.loading)e.flags&=-16777217;else if(e.flags|=16777216,!of(t)){if(!rc())throw io=eo,Zi;e.flags|=8192}}function cl(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?De():536870912,e.lanes|=t,Nu|=t)}function dl(e,t){if(!di)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function fl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=65011712&i.subtreeFlags,r|=65011712&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function pl(e,t,n){var r=t.pendingProps;switch(si(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return fl(t),null;case 3:return n=t.stateNode,r=null,null!==e&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Ti(ji),Y(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(yi(t)?sl(t):null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,wi())),fl(t),null;case 26:var o=t.type,a=t.memoizedState;return null===e?(sl(t),null!==a?(fl(t),ul(t,a)):(fl(t),ll(t,o,0,0,n))):a?a!==e.memoizedState?(sl(t),fl(t),ul(t,a)):(fl(t),t.flags&=-16777217):((e=e.memoizedProps)!==r&&sl(t),fl(t),ll(t,o,0,0,n)),null;case 27:if(X(t),n=q.current,o=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&sl(t);else{if(!r){if(null===t.stateNode)throw Error(i(166));return fl(t),null}e=H.current,yi(t)?gi(t):(e=Rd(o,r,n),t.stateNode=e,sl(t))}return fl(t),null;case 5:if(X(t),o=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&sl(t);else{if(!r){if(null===t.stateNode)throw Error(i(166));return fl(t),null}if(a=H.current,yi(t))gi(t);else{var s=gd(q.current);switch(a){case 1:a=s.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:a=s.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":a=s.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":a=s.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":(a=s.createElement("div")).innerHTML="<script><\/script>",a=a.removeChild(a.firstChild);break;case"select":a="string"==typeof r.is?s.createElement("select",{is:r.is}):s.createElement("select"),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a="string"==typeof r.is?s.createElement(o,{is:r.is}):s.createElement(o)}}a[ze]=t,a[$e]=r;e:for(s=t.child;null!==s;){if(5===s.tag||6===s.tag)a.appendChild(s.stateNode);else if(4!==s.tag&&27!==s.tag&&null!==s.child){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;null===s.sibling;){if(null===s.return||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=a;e:switch(fd(a,o,r),o){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&sl(t)}}return fl(t),ll(t,t.type,null===e||e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&sl(t);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(e=q.current,yi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(o=ui))switch(o.tag){case 27:case 5:r=o.memoizedProps}e[ze]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||ud(e.nodeValue,n)))||mi(t,!0)}else(e=gd(e).createTextNode(r))[ze]=t,t.stateNode=e}return fl(t),null;case 31:if(n=t.memoizedState,null===e||null!==e.memoizedState){if(r=yi(t),null!==n){if(null===e){if(!r)throw Error(i(318));if(!(e=null!==(e=t.memoizedState)?e.dehydrated:null))throw Error(i(557));e[ze]=t}else bi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;fl(t),e=!1}else n=wi(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return 256&t.flags?(Vo(t),t):(Vo(t),null);if(128&t.flags)throw Error(i(558))}return fl(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(o=yi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(i(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(i(317));o[ze]=t}else bi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;fl(t),o=!1}else o=wi(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return 256&t.flags?(Vo(t),t):(Vo(t),null)}return Vo(t),128&t.flags?(t.lanes=n,t):(n=null!==r,e=null!==e&&null!==e.memoizedState,n&&(o=null,null!==(r=t.child).alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(o=r.alternate.memoizedState.cachePool.pool),a=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(a=r.memoizedState.cachePool.pool),a!==o&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),cl(t,t.updateQueue),fl(t),null);case 4:return Y(),null===e&&Jc(t.stateNode.containerInfo),fl(t),null;case 10:return Ti(t.type),fl(t),null;case 19:if(B(Bo),null===(r=t.memoizedState))return fl(t),null;if(o=!!(128&t.flags),null===(a=r.rendering))if(o)dl(r,!1);else{if(0!==ku||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(a=zo(e))){for(t.flags|=128,dl(r,!1),e=a.updateQueue,t.updateQueue=e,cl(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)zr(n,e),n=n.sibling;return z(Bo,1&Bo.current|2),di&&ii(t,r.treeForkCount),t.child}e=e.sibling}null!==r.tail&&le()>Mu&&(t.flags|=128,o=!0,dl(r,!1),t.lanes=4194304)}else{if(!o)if(null!==(e=zo(a))){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,cl(t,e),dl(r,!0),null===r.tail&&"hidden"===r.tailMode&&!a.alternate&&!di)return fl(t),null}else 2*le()-r.renderingStartTime>Mu&&536870912!==n&&(t.flags|=128,o=!0,dl(r,!1),t.lanes=4194304);r.isBackwards?(a.sibling=t.child,t.child=a):(null!==(e=r.last)?e.sibling=a:t.child=a,r.last=a)}return null!==r.tail?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=le(),e.sibling=null,n=Bo.current,z(Bo,o?1&n|2:1&n),di&&ii(t,r.treeForkCount),e):(fl(t),null);case 22:case 23:return Vo(t),Lo(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?!!(536870912&n)&&!(128&t.flags)&&(fl(t),6&t.subtreeFlags&&(t.flags|=8192)):fl(t),null!==(n=t.updateQueue)&&cl(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&B(Gi),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ti(ji),fl(t),null;case 25:case 30:return null}throw Error(i(156,t.tag))}function hl(e,t){switch(si(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Ti(ji),Y(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return X(t),null;case 31:if(null!==t.memoizedState){if(Vo(t),null===t.alternate)throw Error(i(340));bi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 13:if(Vo(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));bi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return B(Bo),null;case 4:return Y(),null;case 10:return Ti(t.type),null;case 22:case 23:return Vo(t),Lo(),null!==e&&B(Gi),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return Ti(ji),null;default:return null}}function ml(e,t){switch(si(t),t.tag){case 3:Ti(ji),Y();break;case 26:case 27:case 5:X(t);break;case 4:Y();break;case 31:null!==t.memoizedState&&Vo(t);break;case 13:Vo(t);break;case 19:B(Bo);break;case 10:Ti(t.type);break;case 22:case 23:Vo(t),Lo(),null!==e&&B(Gi);break;case 24:Ti(ji)}}function gl(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var o=n.create,a=n.inst;r=o(),a.destroy=r}n=n.next}while(n!==i)}}catch(tp){kc(t,t.return,tp)}}function vl(e,t,n){try{var r=t.updateQueue,i=null!==r?r.lastEffect:null;if(null!==i){var o=i.next;r=o;do{if((r.tag&e)===e){var a=r.inst,s=a.destroy;if(void 0!==s){a.destroy=void 0,i=t;var l=n,u=s;try{u()}catch(tp){kc(i,l,tp)}}}r=r.next}while(r!==o)}}catch(tp){kc(t,t.return,tp)}}function yl(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{_o(t,n)}catch(tp){kc(e,e.return,tp)}}}function bl(e,t,n){n.props=ks(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(tp){kc(e,t,tp)}}function wl(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"==typeof n?e.refCleanup=n(r):n.current=r}}catch(tp){kc(e,t,tp)}}function xl(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"==typeof r)try{r()}catch(tp){kc(e,t,tp)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof n)try{n(null)}catch(i){kc(e,t,i)}else n.current=null}function El(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(tp){kc(e,e.return,tp)}}function kl(e,t,n){try{var r=e.stateNode;!function(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,a=null,s=null,l=null,u=null,c=null,d=null;for(h in n){var f=n[h];if(n.hasOwnProperty(h)&&null!=f)switch(h){case"checked":case"value":break;case"defaultValue":u=f;default:r.hasOwnProperty(h)||cd(e,t,h,null,r,f)}}for(var p in r){var h=r[p];if(f=n[p],r.hasOwnProperty(p)&&(null!=h||null!=f))switch(p){case"type":a=h;break;case"name":o=h;break;case"checked":c=h;break;case"defaultChecked":d=h;break;case"value":s=h;break;case"defaultValue":l=h;break;case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(i(137,t));break;default:h!==f&&cd(e,t,p,h,r,f)}}return void yt(e,s,l,u,c,d,a,o);case"select":for(a in h=s=l=p=null,n)if(u=n[a],n.hasOwnProperty(a)&&null!=u)switch(a){case"value":break;case"multiple":h=u;default:r.hasOwnProperty(a)||cd(e,t,a,null,r,u)}for(o in r)if(a=r[o],u=n[o],r.hasOwnProperty(o)&&(null!=a||null!=u))switch(o){case"value":p=a;break;case"defaultValue":l=a;break;case"multiple":s=a;default:a!==u&&cd(e,t,o,a,r,u)}return t=l,n=s,r=h,void(null!=p?xt(e,!!n,p,!1):!!r!=!!n&&(null!=t?xt(e,!!n,t,!0):xt(e,!!n,n?[]:"",!1)));case"textarea":for(l in h=p=null,n)if(o=n[l],n.hasOwnProperty(l)&&null!=o&&!r.hasOwnProperty(l))switch(l){case"value":case"children":break;default:cd(e,t,l,null,r,o)}for(s in r)if(o=r[s],a=n[s],r.hasOwnProperty(s)&&(null!=o||null!=a))switch(s){case"value":p=o;break;case"defaultValue":h=o;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=o)throw Error(i(91));break;default:o!==a&&cd(e,t,s,o,r,a)}return void Et(e,p,h);case"option":for(var m in n)p=n[m],n.hasOwnProperty(m)&&null!=p&&!r.hasOwnProperty(m)&&("selected"===m?e.selected=!1:cd(e,t,m,null,r,p));for(u in r)p=r[u],h=n[u],!r.hasOwnProperty(u)||p===h||null==p&&null==h||("selected"===u?e.selected=p&&"function"!=typeof p&&"symbol"!=typeof p:cd(e,t,u,p,r,h));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var g in n)p=n[g],n.hasOwnProperty(g)&&null!=p&&!r.hasOwnProperty(g)&&cd(e,t,g,null,r,p);for(c in r)if(p=r[c],h=n[c],r.hasOwnProperty(c)&&p!==h&&(null!=p||null!=h))switch(c){case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(i(137,t));break;default:cd(e,t,c,p,r,h)}return;default:if(Nt(t)){for(var v in n)p=n[v],n.hasOwnProperty(v)&&void 0!==p&&!r.hasOwnProperty(v)&&dd(e,t,v,void 0,r,p);for(d in r)p=r[d],h=n[d],!r.hasOwnProperty(d)||p===h||void 0===p&&void 0===h||dd(e,t,d,p,r,h);return}}for(var y in n)p=n[y],n.hasOwnProperty(y)&&null!=p&&!r.hasOwnProperty(y)&&cd(e,t,y,null,r,p);for(f in r)p=r[f],h=n[f],!r.hasOwnProperty(f)||p===h||null==p&&null==h||cd(e,t,f,p,r,h)}(r,e.type,n,t),r[$e]=t}catch(tp){kc(e,e.return,tp)}}function Cl(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&Td(e.type)||4===e.tag}function Sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Cl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&Td(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Tl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Lt));else if(4!==r&&(27===r&&Td(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(Tl(e,t,n),e=e.sibling;null!==e;)Tl(e,t,n),e=e.sibling}function _l(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&Td(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(_l(e,t,n),e=e.sibling;null!==e;)_l(e,t,n),e=e.sibling}function Nl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);fd(t,r,n),t[ze]=e,t[$e]=n}catch(tp){kc(e,e.return,tp)}}var Al=!1,Dl=!1,Ol=!1,Ll="function"==typeof WeakSet?WeakSet:Set,Il=null;function Ml(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Kl(e,n),4&r&&gl(5,n);break;case 1:if(Kl(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(tp){kc(n,n.return,tp)}else{var i=ks(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(a){kc(n,n.return,a)}}64&r&&yl(n),512&r&&wl(n,n.return);break;case 3:if(Kl(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{_o(e,t)}catch(tp){kc(n,n.return,tp)}}break;case 27:null===t&&4&r&&Nl(n);case 26:case 5:Kl(e,n),null===t&&4&r&&El(n),512&r&&wl(n,n.return);break;case 12:Kl(e,n);break;case 31:Kl(e,n),4&r&&Bl(e,n);break;case 13:Kl(e,n),4&r&&zl(e,n),64&r&&null!==(e=n.memoizedState)&&null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$~"===e.data)e._reactRetry=t;else if("$?"!==e.data||"loading"!==n.readyState)t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=_c.bind(null,n));break;case 22:if(!(r=null!==n.memoizedState||Al)){t=null!==t&&null!==t.memoizedState||Dl,i=Al;var o=Dl;Al=r,(Dl=t)&&!o?Ql(e,n,!!(8772&n.subtreeFlags)):Kl(e,n),Al=i,Dl=o}break;case 30:break;default:Kl(e,n)}}function Fl(e){var t=e.alternate;null!==t&&(e.alternate=null,Fl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&Ye(t),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Pl=null,Rl=!1;function jl(e,t,n){for(n=n.child;null!==n;)Vl(e,t,n),n=n.sibling}function Vl(e,t,n){if(ye&&"function"==typeof ye.onCommitFiberUnmount)try{ye.onCommitFiberUnmount(ve,n)}catch(o){}switch(n.tag){case 26:Dl||xl(n,t),jl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Dl||xl(n,t);var r=Pl,i=Rl;Td(n.type)&&(Pl=n.stateNode,Rl=!1),jl(e,t,n),jd(n.stateNode),Pl=r,Rl=i;break;case 5:Dl||xl(n,t);case 6:if(r=Pl,i=Rl,Pl=null,jl(e,t,n),Rl=i,null!==(Pl=r))if(Rl)try{(9===Pl.nodeType?Pl.body:"HTML"===Pl.nodeName?Pl.ownerDocument.body:Pl).removeChild(n.stateNode)}catch(tp){kc(n,t,tp)}else try{Pl.removeChild(n.stateNode)}catch(tp){kc(n,t,tp)}break;case 18:null!==Pl&&(Rl?(_d(9===(e=Pl).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),Uf(e)):_d(Pl,n.stateNode));break;case 4:r=Pl,i=Rl,Pl=n.stateNode.containerInfo,Rl=!0,jl(e,t,n),Pl=r,Rl=i;break;case 0:case 11:case 14:case 15:vl(2,n,t),Dl||vl(4,n,t),jl(e,t,n);break;case 1:Dl||(xl(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount&&bl(n,t,r)),jl(e,t,n);break;case 21:jl(e,t,n);break;case 22:Dl=(r=Dl)||null!==n.memoizedState,jl(e,t,n),Dl=r;break;default:jl(e,t,n)}}function Bl(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)){e=e.dehydrated;try{Uf(e)}catch(tp){kc(t,t.return,tp)}}}function zl(e,t){if(null===t.memoizedState&&null!==(e=t.alternate)&&null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))try{Uf(e)}catch(tp){kc(t,t.return,tp)}}function $l(e,t){var n=function(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new Ll),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new Ll),t;default:throw Error(i(435,e.tag))}}(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Nc.bind(null,e,t);t.then(r,r)}})}function Ul(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r],a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 27:if(Td(l.type)){Pl=l.stateNode,Rl=!1;break e}break;case 5:Pl=l.stateNode,Rl=!1;break e;case 3:case 4:Pl=l.stateNode.containerInfo,Rl=!0;break e}l=l.return}if(null===Pl)throw Error(i(160));Vl(a,s,o),Pl=null,Rl=!1,null!==(a=o.alternate)&&(a.return=null),o.return=null}if(13886&t.subtreeFlags)for(t=t.child;null!==t;)Wl(t,e),t=t.sibling}var Hl=null;function Wl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ul(t,e),ql(e),4&r&&(vl(3,e,e.return),gl(3,e),vl(5,e,e.return));break;case 1:Ul(t,e),ql(e),512&r&&(Dl||null===n||xl(n,n.return)),64&r&&Al&&null!==(e=e.updateQueue)&&null!==(r=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?r:n.concat(r));break;case 26:var o=Hl;if(Ul(t,e),ql(e),512&r&&(Dl||null===n||xl(n,n.return)),4&r){var a=null!==n?n.memoizedState:null;if(r=e.memoizedState,null===n)if(null===r)if(null===e.stateNode){e:{r=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(r){case"title":(!(a=o.getElementsByTagName("title")[0])||a[Ke]||a[ze]||"http://www.w3.org/2000/svg"===a.namespaceURI||a.hasAttribute("itemprop"))&&(a=o.createElement(r),o.head.insertBefore(a,o.querySelector("head > title"))),fd(a,r,n),a[ze]=e,et(a),r=a;break e;case"link":var s=nf("link","href",o).get(r+(n.href||""));if(s)for(var l=0;l<s.length;l++)if((a=s[l]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&a.getAttribute("rel")===(null==n.rel?null:n.rel)&&a.getAttribute("title")===(null==n.title?null:n.title)&&a.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){s.splice(l,1);break t}fd(a=o.createElement(r),r,n),o.head.appendChild(a);break;case"meta":if(s=nf("meta","content",o).get(r+(n.content||"")))for(l=0;l<s.length;l++)if((a=s[l]).getAttribute("content")===(null==n.content?null:""+n.content)&&a.getAttribute("name")===(null==n.name?null:n.name)&&a.getAttribute("property")===(null==n.property?null:n.property)&&a.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&a.getAttribute("charset")===(null==n.charSet?null:n.charSet)){s.splice(l,1);break t}fd(a=o.createElement(r),r,n),o.head.appendChild(a);break;default:throw Error(i(468,r))}a[ze]=e,et(a),r=a}e.stateNode=r}else rf(o,e.type,e.stateNode);else e.stateNode=Xd(o,r,e.memoizedProps);else a!==r?(null===a?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):a.count--,null===r?rf(o,e.type,e.stateNode):Xd(o,r,e.memoizedProps)):null===r&&null!==e.stateNode&&kl(e,e.memoizedProps,n.memoizedProps)}break;case 27:Ul(t,e),ql(e),512&r&&(Dl||null===n||xl(n,n.return)),null!==n&&4&r&&kl(e,e.memoizedProps,n.memoizedProps);break;case 5:if(Ul(t,e),ql(e),512&r&&(Dl||null===n||xl(n,n.return)),32&e.flags){o=e.stateNode;try{Ct(o,"")}catch(tp){kc(e,e.return,tp)}}4&r&&null!=e.stateNode&&kl(e,o=e.memoizedProps,null!==n?n.memoizedProps:o),1024&r&&(Ol=!0);break;case 6:if(Ul(t,e),ql(e),4&r){if(null===e.stateNode)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(tp){kc(e,e.return,tp)}}break;case 3:if(tf=null,o=Hl,Hl=zd(t.containerInfo),Ul(t,e),Hl=o,ql(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Uf(t.containerInfo)}catch(tp){kc(e,e.return,tp)}Ol&&(Ol=!1,Gl(e));break;case 4:r=Hl,Hl=zd(e.stateNode.containerInfo),Ul(t,e),ql(e),Hl=r;break;case 12:default:Ul(t,e),ql(e);break;case 31:case 19:Ul(t,e),ql(e),4&r&&null!==(r=e.updateQueue)&&(e.updateQueue=null,$l(e,r));break;case 13:Ul(t,e),ql(e),8192&e.child.flags&&null!==e.memoizedState!=(null!==n&&null!==n.memoizedState)&&(Lu=le()),4&r&&null!==(r=e.updateQueue)&&(e.updateQueue=null,$l(e,r));break;case 22:o=null!==e.memoizedState;var u=null!==n&&null!==n.memoizedState,c=Al,d=Dl;if(Al=c||o,Dl=d||u,Ul(t,e),Dl=d,Al=c,ql(e),8192&r)e:for(t=e.stateNode,t._visibility=o?-2&t._visibility:1|t._visibility,o&&(null===n||u||Al||Dl||Yl(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){u=n=t;try{if(a=u.stateNode,o)"function"==typeof(s=a.style).setProperty?s.setProperty("display","none","important"):s.display="none";else{l=u.stateNode;var f=u.memoizedProps.style,p=null!=f&&f.hasOwnProperty("display")?f.display:null;l.style.display=null==p||"boolean"==typeof p?"":(""+p).trim()}}catch(tp){kc(u,u.return,tp)}}}else if(6===t.tag){if(null===n){u=t;try{u.stateNode.nodeValue=o?"":u.memoizedProps}catch(tp){kc(u,u.return,tp)}}}else if(18===t.tag){if(null===n){u=t;try{var h=u.stateNode;o?Nd(h,!0):Nd(u.stateNode,!1)}catch(tp){kc(u,u.return,tp)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&r&&null!==(r=e.updateQueue)&&null!==(n=r.retryQueue)&&(r.retryQueue=null,$l(e,n));case 30:case 21:}}function ql(e){var t=e.flags;if(2&t){try{for(var n,r=e.return;null!==r;){if(Cl(r)){n=r;break}r=r.return}if(null==n)throw Error(i(160));switch(n.tag){case 27:var o=n.stateNode;_l(e,Sl(e),o);break;case 5:var a=n.stateNode;32&n.flags&&(Ct(a,""),n.flags&=-33),_l(e,Sl(e),a);break;case 3:case 4:var s=n.stateNode.containerInfo;Tl(e,Sl(e),s);break;default:throw Error(i(161))}}catch(tp){kc(e,e.return,tp)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Gl(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;Gl(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function Kl(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)Ml(e,t.alternate,t),t=t.sibling}function Yl(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:vl(4,t,t.return),Yl(t);break;case 1:xl(t,t.return);var n=t.stateNode;"function"==typeof n.componentWillUnmount&&bl(t,t.return,n),Yl(t);break;case 27:jd(t.stateNode);case 26:case 5:xl(t,t.return),Yl(t);break;case 22:null===t.memoizedState&&Yl(t);break;default:Yl(t)}e=e.sibling}}function Ql(e,t,n){for(n=n&&!!(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,i=e,o=t,a=o.flags;switch(o.tag){case 0:case 11:case 15:Ql(i,o,n),gl(4,o);break;case 1:if(Ql(i,o,n),"function"==typeof(i=(r=o).stateNode).componentDidMount)try{i.componentDidMount()}catch(tp){kc(r,r.return,tp)}if(null!==(i=(r=o).updateQueue)){var s=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(null!==l)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)To(l[i],s)}catch(tp){kc(r,r.return,tp)}}n&&64&a&&yl(o),wl(o,o.return);break;case 27:Nl(o);case 26:case 5:Ql(i,o,n),n&&null===r&&4&a&&El(o),wl(o,o.return);break;case 12:Ql(i,o,n);break;case 31:Ql(i,o,n),n&&4&a&&Bl(i,o);break;case 13:Ql(i,o,n),n&&4&a&&zl(i,o);break;case 22:null===o.memoizedState&&Ql(i,o,n),wl(o,o.return);break;case 30:break;default:Ql(i,o,n)}t=t.sibling}}function Xl(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&Bi(n))}function Zl(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Bi(e))}function Jl(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)eu(e,t,n,r),t=t.sibling}function eu(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Jl(e,t,n,r),2048&i&&gl(9,t);break;case 1:case 31:case 13:default:Jl(e,t,n,r);break;case 3:Jl(e,t,n,r),2048&i&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Bi(e)));break;case 12:if(2048&i){Jl(e,t,n,r),e=t.stateNode;try{var o=t.memoizedProps,a=o.id,s=o.onPostCommit;"function"==typeof s&&s(a,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(tp){kc(t,t.return,tp)}}else Jl(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,a=t.alternate,null!==t.memoizedState?2&o._visibility?Jl(e,t,n,r):nu(e,t):2&o._visibility?Jl(e,t,n,r):(o._visibility|=2,tu(e,t,n,r,!!(10256&t.subtreeFlags)||!1)),2048&i&&Xl(a,t);break;case 24:Jl(e,t,n,r),2048&i&&Zl(t.alternate,t)}}function tu(e,t,n,r,i){for(i=i&&(!!(10256&t.subtreeFlags)||!1),t=t.child;null!==t;){var o=e,a=t,s=n,l=r,u=a.flags;switch(a.tag){case 0:case 11:case 15:tu(o,a,s,l,i),gl(8,a);break;case 23:break;case 22:var c=a.stateNode;null!==a.memoizedState?2&c._visibility?tu(o,a,s,l,i):nu(o,a):(c._visibility|=2,tu(o,a,s,l,i)),i&&2048&u&&Xl(a.alternate,a);break;case 24:tu(o,a,s,l,i),i&&2048&u&&Zl(a.alternate,a);break;default:tu(o,a,s,l,i)}t=t.sibling}}function nu(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:nu(n,r),2048&i&&Xl(r.alternate,r);break;case 24:nu(n,r),2048&i&&Zl(r.alternate,r);break;default:nu(n,r)}t=t.sibling}}var ru=8192;function iu(e,t,n){if(e.subtreeFlags&ru)for(e=e.child;null!==e;)ou(e,t,n),e=e.sibling}function ou(e,t,n){switch(e.tag){case 26:iu(e,t,n),e.flags&ru&&null!==e.memoizedState&&function(e,t,n,r){if(!("stylesheet"!==n.type||"string"==typeof r.media&&!1===matchMedia(r.media).matches||4&n.state.loading)){if(null===n.instance){var i=qd(r.href),o=t.querySelector(Gd(i));if(o)return null!==(t=o._p)&&"object"==typeof t&&"function"==typeof t.then&&(e.count++,e=sf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=o,void et(o);o=t.ownerDocument||t,r=Kd(r),(i=Vd.get(i))&&Jd(r,i),et(o=o.createElement("link"));var a=o;a._p=new Promise(function(e,t){a.onload=e,a.onerror=t}),fd(o,"link",r),n.instance=o}null===e.stylesheets&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(3&n.state.loading)&&(e.count++,n=sf.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}(n,Hl,e.memoizedState,e.memoizedProps);break;case 5:default:iu(e,t,n);break;case 3:case 4:var r=Hl;Hl=zd(e.stateNode.containerInfo),iu(e,t,n),Hl=r;break;case 22:null===e.memoizedState&&(null!==(r=e.alternate)&&null!==r.memoizedState?(r=ru,ru=16777216,iu(e,t,n),ru=r):iu(e,t,n))}}function au(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function su(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Il=r,cu(r,e)}au(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)lu(e),e=e.sibling}function lu(e){switch(e.tag){case 0:case 11:case 15:su(e),2048&e.flags&&vl(9,e,e.return);break;case 3:case 12:default:su(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,uu(e)):su(e)}}function uu(e){var t=e.deletions;if(16&e.flags){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Il=r,cu(r,e)}au(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:vl(8,t,t.return),uu(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,uu(t));break;default:uu(t)}e=e.sibling}}function cu(e,t){for(;null!==Il;){var n=Il;switch(n.tag){case 0:case 11:case 15:vl(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:Bi(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,Il=r;else e:for(n=e;null!==Il;){var i=(r=Il).sibling,o=r.return;if(Fl(r),r===n){Il=null;break e}if(null!==i){i.return=o,Il=i;break e}Il=o}}}var du={getCacheForType:function(e){var t=Li(ji),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Li(ji).controller.signal}},fu="function"==typeof WeakMap?WeakMap:Map,pu=0,hu=null,mu=null,gu=0,vu=0,yu=null,bu=!1,wu=!1,xu=!1,Eu=0,ku=0,Cu=0,Su=0,Tu=0,_u=0,Nu=0,Au=null,Du=null,Ou=!1,Lu=0,Iu=0,Mu=1/0,Fu=null,Pu=null,Ru=0,ju=null,Vu=null,Bu=0,zu=0,$u=null,Uu=null,Hu=0,Wu=null;function qu(){return 2&pu&&0!==gu?gu&-gu:null!==M.T?$c():je()}function Gu(){if(0===_u)if(536870912&gu&&!di)_u=536870912;else{var e=Ce;!(3932160&(Ce<<=1))&&(Ce=262144),_u=e}return null!==(e=Io.current)&&(e.flags|=32),_u}function Ku(e,t,n){(e!==hu||2!==vu&&9!==vu)&&null===e.cancelPendingCommit||(tc(e,0),Zu(e,gu,_u,!1)),Le(e,n),2&pu&&e===hu||(e===hu&&(!(2&pu)&&(Su|=n),4===ku&&Zu(e,gu,_u,!1)),Fc(e))}function Yu(e,t,n){if(6&pu)throw Error(i(327));for(var r=!n&&!(127&t)&&0===(t&e.expiredLanes)||Ne(e,t),o=r?function(e,t){var n=pu;pu|=2;var r=ic(),o=oc();hu!==e||gu!==t?(Fu=null,Mu=le()+500,tc(e,t)):wu=Ne(e,t);e:for(;;)try{if(0!==vu&&null!==mu){t=mu;var a=yu;t:switch(vu){case 1:vu=0,yu=null,fc(e,t,a,1);break;case 2:case 9:if(to(a)){vu=0,yu=null,dc(t);break}t=function(){2!==vu&&9!==vu||hu!==e||(vu=7),Fc(e)},a.then(t,t);break e;case 3:vu=7;break e;case 4:vu=5;break e;case 7:to(a)?(vu=0,yu=null,dc(t)):(vu=0,yu=null,fc(e,t,a,7));break;case 5:var s=null;switch(mu.tag){case 26:s=mu.memoizedState;case 5:case 27:var l=mu;if(s?of(s):l.stateNode.complete){vu=0,yu=null;var u=l.sibling;if(null!==u)mu=u;else{var c=l.return;null!==c?(mu=c,pc(c)):mu=null}break t}}vu=0,yu=null,fc(e,t,a,5);break;case 6:vu=0,yu=null,fc(e,t,a,6);break;case 8:ec(),ku=6;break e;default:throw Error(i(462))}}uc();break}catch(d){nc(e,d)}return Ci=ki=null,M.H=r,M.A=o,pu=n,null!==mu?0:(hu=null,gu=0,Dr(),ku)}(e,t):sc(e,t,!0),a=r;;){if(0===o){wu&&!r&&Zu(e,t,0,!1);break}if(n=e.current.alternate,!a||Xu(n)){if(2===o){if(a=t,e.errorRecoveryDisabledLanes&a)var s=0;else s=0!=(s=-536870913&e.pendingLanes)?s:536870912&s?536870912:0;if(0!==s){t=s;e:{var l=e;o=Au;var u=l.current.memoizedState.isDehydrated;if(u&&(tc(l,s).flags|=256),2!==(s=sc(l,s,!1))){if(xu&&!u){l.errorRecoveryDisabledLanes|=a,Su|=a,o=4;break e}a=Du,Du=o,null!==a&&(null===Du?Du=a:Du.push.apply(Du,a))}o=s}if(a=!1,2!==o)continue}}if(1===o){tc(e,0),Zu(e,t,0,!0);break}e:{switch(r=e,a=o){case 0:case 1:throw Error(i(345));case 4:if((4194048&t)!==t)break;case 6:Zu(r,t,_u,!bu);break e;case 2:Du=null;break;case 3:case 5:break;default:throw Error(i(329))}if((62914560&t)===t&&10<(o=Lu+300-le())){if(Zu(r,t,_u,!bu),0!==_e(r,0,!0))break e;Bu=t,r.timeoutHandle=xd(Qu.bind(null,r,n,Du,Fu,Ou,t,_u,Su,Nu,bu,a,"Throttled",-0,0),o)}else Qu(r,n,Du,Fu,Ou,t,_u,Su,Nu,bu,a,null,-0,0)}break}o=sc(e,t,!1),a=!1}Fc(e)}function Qu(e,t,n,r,i,o,a,s,l,u,c,d,f,p){if(e.timeoutHandle=-1,8192&(d=t.subtreeFlags)||!(16785408&~d)){ou(t,o,d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Lt});var h=(62914560&o)===o?Lu-le():(4194048&o)===o?Iu-le():0;if(h=function(e,t){return e.stylesheets&&0===e.count&&uf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&uf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&0===af&&(af=62500*function(){if("function"==typeof performance.getEntriesByType){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var i=n[r],o=i.transferSize,a=i.initiatorType,s=i.duration;if(o&&s&&pd(a)){for(a=0,s=i.responseEnd,r+=1;r<n.length;r++){var l=n[r],u=l.startTime;if(u>s)break;var c=l.transferSize,d=l.initiatorType;c&&pd(d)&&(a+=c*((l=l.responseEnd)<s?1:(s-u)/(l-u)))}if(--r,t+=8*(o+a)/(i.duration/1e3),10<++e)break}}if(0<e)return t/e/1e6}return navigator.connection&&"number"==typeof(e=navigator.connection.downlink)?e:5}());var i=setTimeout(function(){if(e.waitingForImages=!1,0===e.count&&(e.stylesheets&&uf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>af?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}(d,h),null!==h)return Bu=o,e.cancelPendingCommit=h(mc.bind(null,e,t,o,n,r,i,a,s,l,c,d,null,f,p)),void Zu(e,o,a,!u)}mc(e,t,o,n,r,i,a,s,l)}function Xu(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&null!==(n=t.updateQueue)&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Zn(o(),i))return!1}catch(tp){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Zu(e,t,n,r){t&=~Tu,t&=~Su,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var o=31-we(i),a=1<<o;r[o]=-1,i&=~a}0!==n&&Ie(e,n,t)}function Ju(){return!!(6&pu)||(Pc(0,!1),!1)}function ec(){if(null!==mu){if(0===vu)var e=mu.return;else Ci=ki=null,sa(e=mu),so=null,lo=0,e=mu;for(;null!==e;)ml(e.alternate,e),e=e.return;mu=null}}function tc(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,Ed(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),Bu=0,ec(),hu=e,mu=n=Br(e.current,null),gu=t,vu=0,yu=null,bu=!1,wu=Ne(e,t),xu=!1,Nu=_u=Tu=Su=Cu=ku=0,Du=Au=null,Ou=!1,8&t&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var i=31-we(r),o=1<<i;t|=e[i],r&=~o}return Eu=t,Dr(),n}function nc(e,t){Uo=null,M.H=ms,t===Xi||t===Ji?(t=oo(),vu=3):t===Zi?(t=oo(),vu=4):vu=t===Ls?8:null!==t&&"object"==typeof t&&"function"==typeof t.then?6:1,yu=t,null===mu&&(ku=1,_s(e,Kr(t,e.current)))}function rc(){var e=Io.current;return null===e||((4194048&gu)===gu?null===Mo:!!((62914560&gu)===gu||536870912&gu)&&e===Mo)}function ic(){var e=M.H;return M.H=ms,null===e?ms:e}function oc(){var e=M.A;return M.A=du,e}function ac(){ku=4,bu||(4194048&gu)!==gu&&null!==Io.current||(wu=!0),!(134217727&Cu)&&!(134217727&Su)||null===hu||Zu(hu,gu,_u,!1)}function sc(e,t,n){var r=pu;pu|=2;var i=ic(),o=oc();hu===e&&gu===t||(Fu=null,tc(e,t)),t=!1;var a=ku;e:for(;;)try{if(0!==vu&&null!==mu){var s=mu,l=yu;switch(vu){case 8:ec(),a=6;break e;case 3:case 2:case 9:case 6:null===Io.current&&(t=!0);var u=vu;if(vu=0,yu=null,fc(e,s,l,u),n&&wu){a=0;break e}break;default:u=vu,vu=0,yu=null,fc(e,s,l,u)}}lc(),a=ku;break}catch(c){nc(e,c)}return t&&e.shellSuspendCounter++,Ci=ki=null,pu=r,M.H=i,M.A=o,null===mu&&(hu=null,gu=0,Dr()),a}function lc(){for(;null!==mu;)cc(mu)}function uc(){for(;null!==mu&&!ae();)cc(mu)}function cc(e){var t=al(e.alternate,e,Eu);e.memoizedProps=e.pendingProps,null===t?pc(e):mu=t}function dc(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Ws(n,t,t.pendingProps,t.type,void 0,gu);break;case 11:t=Ws(n,t,t.pendingProps,t.type.render,t.ref,gu);break;case 5:sa(t);default:ml(n,t),t=al(n,t=mu=zr(t,Eu),Eu)}e.memoizedProps=e.pendingProps,null===t?pc(e):mu=t}function fc(e,t,n,r){Ci=ki=null,sa(t),so=null,lo=0;var o=t.return;try{if(function(e,t,n,r,o){if(n.flags|=32768,null!==r&&"object"==typeof r&&"function"==typeof r.then){if(null!==(t=n.alternate)&&Ai(t,n,o,!0),null!==(n=Io.current)){switch(n.tag){case 31:case 13:return null===Mo?ac():null===n.alternate&&0===ku&&(ku=3),n.flags&=-257,n.flags|=65536,n.lanes=o,r===eo?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([r]):t.add(r),Cc(e,r,o)),!1;case 22:return n.flags|=65536,r===eo?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([r]):n.add(r),Cc(e,r,o)),!1}throw Error(i(435,n.tag))}return Cc(e,r,o),ac(),!1}if(di)return null!==(t=Io.current)?(!(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=o,r!==hi&&xi(Kr(e=Error(i(422),{cause:r}),n))):(r!==hi&&xi(Kr(t=Error(i(423),{cause:r}),n)),(e=e.current.alternate).flags|=65536,o&=-o,e.lanes|=o,r=Kr(r,n),Eo(e,o=As(e.stateNode,r,o)),4!==ku&&(ku=2)),!1;var a=Error(i(520),{cause:r});if(a=Kr(a,n),null===Au?Au=[a]:Au.push(a),4!==ku&&(ku=2),null===t)return!0;r=Kr(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,Eo(n,e=As(n.stateNode,r,e)),!1;case 1:if(t=n.type,a=n.stateNode,!(128&n.flags||"function"!=typeof t.getDerivedStateFromError&&(null===a||"function"!=typeof a.componentDidCatch||null!==Pu&&Pu.has(a))))return n.flags|=65536,o&=-o,n.lanes|=o,Os(o=Ds(o),e,n,r),Eo(n,o),!1}n=n.return}while(null!==n);return!1}(e,o,t,n,gu))return ku=1,_s(e,Kr(n,e.current)),void(mu=null)}catch(tp){if(null!==o)throw mu=o,tp;return ku=1,_s(e,Kr(n,e.current)),void(mu=null)}32768&t.flags?(di||1===r?e=!0:wu||536870912&gu?e=!1:(bu=e=!0,(2===r||9===r||3===r||6===r)&&null!==(r=Io.current)&&13===r.tag&&(r.flags|=16384)),hc(t,e)):pc(t)}function pc(e){var t=e;do{if(32768&t.flags)return void hc(t,bu);e=t.return;var n=pl(t.alternate,t,Eu);if(null!==n)return void(mu=n);if(null!==(t=t.sibling))return void(mu=t);mu=t=e}while(null!==t);0===ku&&(ku=5)}function hc(e,t){do{var n=hl(e.alternate,e);if(null!==n)return n.flags&=32767,void(mu=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(mu=e);mu=e=n}while(null!==e);ku=6,mu=null}function mc(e,t,n,r,o,a,s,l,u){e.cancelPendingCommit=null;do{wc()}while(0!==Ru);if(6&pu)throw Error(i(327));if(null!==t){if(t===e.current)throw Error(i(177));if(a=t.lanes|t.childLanes,function(e,t,n,r,i,o){var a=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,l=e.expirationTimes,u=e.hiddenUpdates;for(n=a&~n;0<n;){var c=31-we(n),d=1<<c;s[c]=0,l[c]=-1;var f=u[c];if(null!==f)for(u[c]=null,c=0;c<f.length;c++){var p=f[c];null!==p&&(p.lane&=-536870913)}n&=~d}0!==r&&Ie(e,r,0),0!==o&&0===i&&0!==e.tag&&(e.suspendedLanes|=o&~(a&~t))}(e,n,a|=Ar,s,l,u),e===hu&&(mu=hu=null,gu=0),Vu=t,ju=e,Bu=n,zu=a,$u=o,Uu=r,10256&t.subtreeFlags||10256&t.flags?(e.callbackNode=null,e.callbackPriority=0,ie(fe,function(){return xc(),null})):(e.callbackNode=null,e.callbackPriority=0),r=!!(13878&t.flags),13878&t.subtreeFlags||r){r=M.T,M.T=null,o=F.p,F.p=2,s=pu,pu|=4;try{!function(e,t){if(e=e.containerInfo,hd=yf,ir(e=rr(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(g){n=null;break e}var s=0,l=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==o&&3!==f.nodeType||(l=s+o),f!==a||0!==r&&3!==f.nodeType||(u=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++c===o&&(l=s),p===a&&++d===r&&(u=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(md={focusedElem:e,selectionRange:n},yf=!1,Il=t;null!==Il;)if(e=(t=Il).child,1028&t.subtreeFlags&&null!==e)e.return=t,Il=e;else for(;null!==Il;){switch(a=(t=Il).alternate,e=t.flags,t.tag){case 0:if(4&e&&null!==(e=null!==(e=t.updateQueue)?e.events:null))for(n=0;n<e.length;n++)(o=e[n]).ref.impl=o.nextImpl;break;case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&e&&null!==a){e=void 0,n=t,o=a.memoizedProps,a=a.memoizedState,r=n.stateNode;try{var m=ks(n.type,o);e=r.getSnapshotBeforeUpdate(m,a),r.__reactInternalSnapshotBeforeUpdate=e}catch(tp){kc(n,n.return,tp)}}break;case 3:if(1024&e)if(9===(n=(e=t.stateNode.containerInfo).nodeType))Ad(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ad(e);break;default:e.textContent=""}break;default:if(1024&e)throw Error(i(163))}if(null!==(e=t.sibling)){e.return=t.return,Il=e;break}Il=t.return}}(e,t)}finally{pu=s,F.p=o,M.T=r}}Ru=1,gc(),vc(),yc()}}function gc(){if(1===Ru){Ru=0;var e=ju,t=Vu,n=!!(13878&t.flags);if(13878&t.subtreeFlags||n){n=M.T,M.T=null;var r=F.p;F.p=2;var i=pu;pu|=4;try{Wl(t,e);var o=md,a=rr(e.containerInfo),s=o.focusedElem,l=o.selectionRange;if(a!==s&&s&&s.ownerDocument&&nr(s.ownerDocument.documentElement,s)){if(null!==l&&ir(s)){var u=l.start,c=l.end;if(void 0===c&&(c=u),"selectionStart"in s)s.selectionStart=u,s.selectionEnd=Math.min(c,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),h=s.textContent.length,m=Math.min(l.start,h),g=void 0===l.end?m:Math.min(l.end,h);!p.extend&&m>g&&(a=g,g=m,m=a);var v=tr(s,m),y=tr(s,g);if(v&&y&&(1!==p.rangeCount||p.anchorNode!==v.node||p.anchorOffset!==v.offset||p.focusNode!==y.node||p.focusOffset!==y.offset)){var b=d.createRange();b.setStart(v.node,v.offset),p.removeAllRanges(),m>g?(p.addRange(b),p.extend(y.node,y.offset)):(b.setEnd(y.node,y.offset),p.addRange(b))}}}}for(d=[],p=s;p=p.parentNode;)1===p.nodeType&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"==typeof s.focus&&s.focus(),s=0;s<d.length;s++){var w=d[s];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}yf=!!hd,md=hd=null}finally{pu=i,F.p=r,M.T=n}}e.current=t,Ru=2}}function vc(){if(2===Ru){Ru=0;var e=ju,t=Vu,n=!!(8772&t.flags);if(8772&t.subtreeFlags||n){n=M.T,M.T=null;var r=F.p;F.p=2;var i=pu;pu|=4;try{Ml(e,t.alternate,t)}finally{pu=i,F.p=r,M.T=n}}Ru=3}}function yc(){if(4===Ru||3===Ru){Ru=0,se();var e=ju,t=Vu,n=Bu,r=Uu;10256&t.subtreeFlags||10256&t.flags?Ru=5:(Ru=0,Vu=ju=null,bc(e,e.pendingLanes));var i=e.pendingLanes;if(0===i&&(Pu=null),Re(n),t=t.stateNode,ye&&"function"==typeof ye.onCommitFiberRoot)try{ye.onCommitFiberRoot(ve,t,void 0,!(128&~t.current.flags))}catch(l){}if(null!==r){t=M.T,i=F.p,F.p=2,M.T=null;try{for(var o=e.onRecoverableError,a=0;a<r.length;a++){var s=r[a];o(s.value,{componentStack:s.stack})}}finally{M.T=t,F.p=i}}3&Bu&&wc(),Fc(e),i=e.pendingLanes,261930&n&&42&i?e===Wu?Hu++:(Hu=0,Wu=e):Hu=0,Pc(0,!1)}}function bc(e,t){0===(e.pooledCacheLanes&=t)&&null!=(t=e.pooledCache)&&(e.pooledCache=null,Bi(t))}function wc(){return gc(),vc(),yc(),xc()}function xc(){if(5!==Ru)return!1;var e=ju,t=zu;zu=0;var n=Re(Bu),r=M.T,o=F.p;try{F.p=32>n?32:n,M.T=null,n=$u,$u=null;var a=ju,s=Bu;if(Ru=0,Vu=ju=null,Bu=0,6&pu)throw Error(i(331));var l=pu;if(pu|=4,lu(a.current),eu(a,a.current,s,n),pu=l,Pc(0,!1),ye&&"function"==typeof ye.onPostCommitFiberRoot)try{ye.onPostCommitFiberRoot(ve,a)}catch(u){}return!0}finally{F.p=o,M.T=r,bc(e,t)}}function Ec(e,t,n){t=Kr(n,t),null!==(e=wo(e,t=As(e.stateNode,t,2),2))&&(Le(e,2),Fc(e))}function kc(e,t,n){if(3===e.tag)Ec(e,e,n);else for(;null!==t;){if(3===t.tag){Ec(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Pu||!Pu.has(r))){e=Kr(n,e),null!==(r=wo(t,n=Ds(2),2))&&(Os(n,r,t,e),Le(r,2),Fc(r));break}}t=t.return}}function Cc(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fu;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(xu=!0,i.add(n),e=Sc.bind(null,e,t,n),t.then(e,e))}function Sc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,hu===e&&(gu&n)===n&&(4===ku||3===ku&&(62914560&gu)===gu&&300>le()-Lu?!(2&pu)&&tc(e,0):Tu|=n,Nu===gu&&(Nu=0)),Fc(e)}function Tc(e,t){0===t&&(t=De()),null!==(e=Ir(e,t))&&(Le(e,t),Fc(e))}function _c(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Tc(e,n)}function Nc(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}null!==r&&r.delete(t),Tc(e,n)}var Ac=null,Dc=null,Oc=!1,Lc=!1,Ic=!1,Mc=0;function Fc(e){e!==Dc&&null===e.next&&(null===Dc?Ac=Dc=e:Dc=Dc.next=e),Lc=!0,Oc||(Oc=!0,Cd(function(){6&pu?ie(ce,Rc):jc()}))}function Pc(e,t){if(!Ic&&Lc){Ic=!0;do{for(var n=!1,r=Ac;null!==r;){if(!t)if(0!==e){var i=r.pendingLanes;if(0===i)var o=0;else{var a=r.suspendedLanes,s=r.pingedLanes;o=(1<<31-we(42|e)+1)-1,o=201326741&(o&=i&~(a&~s))?201326741&o|1:o?2|o:0}0!==o&&(n=!0,zc(r,o))}else o=gu,!(3&(o=_e(r,r===hu?o:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||Ne(r,o)||(n=!0,zc(r,o));r=r.next}}while(n);Ic=!1}}function Rc(){jc()}function jc(){Lc=Oc=!1;var e,t=0;0!==Mc&&((e=window.event)&&"popstate"===e.type?e!==wd&&(wd=e,1):(wd=null,0))&&(t=Mc);for(var n=le(),r=null,i=Ac;null!==i;){var o=i.next,a=Vc(i,n);0===a?(i.next=null,null===r?Ac=o:r.next=o,null===o&&(Dc=r)):(r=i,(0!==t||3&a)&&(Lc=!0)),i=o}0!==Ru&&5!==Ru||Pc(t,!1),0!==Mc&&(Mc=0)}function Vc(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=-62914561&e.pendingLanes;0<o;){var a=31-we(o),s=1<<a,l=i[a];-1===l?0!==(s&n)&&0===(s&r)||(i[a]=Ae(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}if(n=gu,n=_e(e,e===(t=hu)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===vu||9===vu)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&oe(r),e.callbackNode=null,e.callbackPriority=0;if(!(3&n)||Ne(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&oe(r),Re(n)){case 2:case 8:n=de;break;case 32:default:n=fe;break;case 268435456:n=he}return r=Bc.bind(null,e),n=ie(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&oe(r),e.callbackPriority=2,e.callbackNode=null,2}function Bc(e,t){if(0!==Ru&&5!==Ru)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(wc()&&e.callbackNode!==n)return null;var r=gu;return 0===(r=_e(e,e===hu?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(Yu(e,r,t),Vc(e,le()),null!=e.callbackNode&&e.callbackNode===n?Bc.bind(null,e):null)}function zc(e,t){if(wc())return null;Yu(e,t,!0)}function $c(){if(0===Mc){var e=Ui;0===e&&(e=ke,!(261888&(ke<<=1))&&(ke=256)),Mc=e}return Mc}function Uc(e){return null==e||"symbol"==typeof e||"boolean"==typeof e?null:"function"==typeof e?e:Ot(""+e)}function Hc(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}for(var Wc=0;Wc<Cr.length;Wc++){var qc=Cr[Wc];Sr(qc.toLowerCase(),"on"+(qc[0].toUpperCase()+qc.slice(1)))}Sr(gr,"onAnimationEnd"),Sr(vr,"onAnimationIteration"),Sr(yr,"onAnimationStart"),Sr("dblclick","onDoubleClick"),Sr("focusin","onFocus"),Sr("focusout","onBlur"),Sr(br,"onTransitionRun"),Sr(wr,"onTransitionStart"),Sr(xr,"onTransitionCancel"),Sr(Er,"onTransitionEnd"),it("onMouseEnter",["mouseout","mouseover"]),it("onMouseLeave",["mouseout","mouseover"]),it("onPointerEnter",["pointerout","pointerover"]),it("onPointerLeave",["pointerout","pointerover"]),rt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),rt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),rt("onBeforeInput",["compositionend","keypress","textInput","paste"]),rt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),rt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),rt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Gc="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(" "),Kc=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Gc));function Yc(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==o&&i.isPropagationStopped())break e;o=s,i.currentTarget=u;try{o(i)}catch(tp){Tr(tp)}i.currentTarget=null,o=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==o&&i.isPropagationStopped())break e;o=s,i.currentTarget=u;try{o(i)}catch(tp){Tr(tp)}i.currentTarget=null,o=l}}}}function Qc(e,t){var n=t[He];void 0===n&&(n=t[He]=new Set);var r=e+"__bubble";n.has(r)||(ed(t,e,2,!1),n.add(r))}function Xc(e,t,n){var r=0;t&&(r|=4),ed(n,e,r,t)}var Zc="_reactListening"+Math.random().toString(36).slice(2);function Jc(e){if(!e[Zc]){e[Zc]=!0,tt.forEach(function(t){"selectionchange"!==t&&(Kc.has(t)||Xc(t,!1,e),Xc(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Zc]||(t[Zc]=!0,Xc("selectionchange",!1,t))}}function ed(e,t,n,r){switch(Sf(t)){case 2:var i=bf;break;case 8:i=wf;break;default:i=xf}n=i.bind(null,t,n,e),i=void 0,!$t||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function td(e,t,n,r,i){var a=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var s=r.tag;if(3===s||4===s){var l=r.stateNode.containerInfo;if(l===i)break;if(4===s)for(s=r.return;null!==s;){var u=s.tag;if((3===u||4===u)&&s.stateNode.containerInfo===i)return;s=s.return}for(;null!==l;){if(null===(s=Qe(l)))return;if(5===(u=s.tag)||6===u||26===u||27===u){r=a=s;continue e}l=l.parentNode}}r=r.return}Vt(function(){var r=a,i=Mt(n),s=[];e:{var l=kr.get(e);if(void 0!==l){var u=nn,c=e;switch(e){case"keypress":if(0===Kt(n))break e;case"keydown":case"keyup":u=yn;break;case"focusin":c="focus",u=un;break;case"focusout":c="blur",u=un;break;case"beforeblur":case"afterblur":u=un;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=sn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=ln;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=wn;break;case gr:case vr:case yr:u=cn;break;case Er:u=xn;break;case"scroll":case"scrollend":u=on;break;case"wheel":u=En;break;case"copy":case"cut":case"paste":u=dn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=bn;break;case"toggle":case"beforetoggle":u=kn}var d=!!(4&t),f=!d&&("scroll"===e||"scrollend"===e),p=d?null!==l?l+"Capture":null:l;d=[];for(var h,m=r;null!==m;){var g=m;if(h=g.stateNode,5!==(g=g.tag)&&26!==g&&27!==g||null===h||null===p||null!=(g=Bt(m,p))&&d.push(nd(m,g,h)),f)break;m=m.return}0<d.length&&(l=new u(l,c,null,n,i),s.push({event:l,listeners:d}))}}if(!(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===It||!(c=n.relatedTarget||n.fromElement)||!Qe(c)&&!c[Ue])&&(u||l)&&(l=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,u?(u=r,null!==(c=(c=n.relatedTarget||n.toElement)?Qe(c):null)&&(f=o(c),d=c.tag,c!==f||5!==d&&27!==d&&6!==d)&&(c=null)):(u=null,c=r),u!==c)){if(d=sn,g="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(d=bn,g="onPointerLeave",p="onPointerEnter",m="pointer"),f=null==u?l:Ze(u),h=null==c?l:Ze(c),(l=new d(g,m+"leave",u,n,i)).target=f,l.relatedTarget=h,g=null,Qe(i)===r&&((d=new d(p,m+"enter",c,n,i)).target=h,d.relatedTarget=f,g=d),f=g,u&&c)e:{for(d=id,m=c,h=0,g=p=u;g;g=d(g))h++;g=0;for(var v=m;v;v=d(v))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||null!==m&&p===m.alternate){d=p;break e}p=d(p),m=d(m)}d=null}else d=null;null!==u&&od(s,l,u,d,!1),null!==c&&null!==f&&od(s,f,c,d,!0)}if("select"===(u=(l=r?Ze(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===u&&"file"===l.type)var y=zn;else if(Fn(l))if($n)y=Xn;else{y=Yn;var b=Kn}else!(u=l.nodeName)||"input"!==u.toLowerCase()||"checkbox"!==l.type&&"radio"!==l.type?r&&Nt(r.elementType)&&(y=zn):y=Qn;switch(y&&(y=y(e,r))?Pn(s,y,n,i):(b&&b(e,l,r),"focusout"===e&&r&&"number"===l.type&&null!=r.memoizedProps.value&&wt(l,"number",l.value)),b=r?Ze(r):window,e){case"focusin":(Fn(b)||"true"===b.contentEditable)&&(ar=b,sr=r,lr=null);break;case"focusout":lr=sr=ar=null;break;case"mousedown":ur=!0;break;case"contextmenu":case"mouseup":case"dragend":ur=!1,cr(s,n,i);break;case"selectionchange":if(or)break;case"keydown":case"keyup":cr(s,n,i)}var w;if(Sn)e:{switch(e){case"compositionstart":var x="onCompositionStart";break e;case"compositionend":x="onCompositionEnd";break e;case"compositionupdate":x="onCompositionUpdate";break e}x=void 0}else In?On(e,n)&&(x="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(x="onCompositionStart");x&&(Nn&&"ko"!==n.locale&&(In||"onCompositionStart"!==x?"onCompositionEnd"===x&&In&&(w=Gt()):(Wt="value"in(Ht=i)?Ht.value:Ht.textContent,In=!0)),0<(b=rd(r,x)).length&&(x=new fn(x,e,null,n,i),s.push({event:x,listeners:b}),(w||null!==(w=Ln(n)))&&(x.data=w))),(w=_n?function(e,t){switch(e){case"compositionend":return Ln(t);case"keypress":return 32!==t.which?null:(Dn=!0,An);case"textInput":return(e=t.data)===An&&Dn?null:e;default:return null}}(e,n):function(e,t){if(In)return"compositionend"===e||!Sn&&On(e,t)?(e=Gt(),qt=Wt=Ht=null,In=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Nn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(x=rd(r,"onBeforeInput")).length&&(b=new fn("onBeforeInput","beforeinput",null,n,i),s.push({event:b,listeners:x}),b.data=w),function(e,t,n,r,i){if("submit"===t&&n&&n.stateNode===i){var o=Uc((i[$e]||null).action),a=r.submitter;a&&null!==(t=(t=a[$e]||null)?Uc(t.formAction):a.getAttribute("formAction"))&&(o=t,a=null);var s=new nn("action","action",null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==Mc){var e=a?Hc(i,a):new FormData(i);ts(n,{pending:!0,data:e,method:i.method,action:o},null,e)}}else"function"==typeof o&&(s.preventDefault(),e=a?Hc(i,a):new FormData(i),ts(n,{pending:!0,data:e,method:i.method,action:o},o,e))},currentTarget:i}]})}}(s,e,r,n,i)}Yc(s,t)})}function nd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function rd(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;if(5!==(i=i.tag)&&26!==i&&27!==i||null===o||(null!=(i=Bt(e,n))&&r.unshift(nd(e,i,o)),null!=(i=Bt(e,t))&&r.push(nd(e,i,o))),3===e.tag)return r;e=e.return}return[]}function id(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function od(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(s=s.tag,null!==l&&l===r)break;5!==s&&26!==s&&27!==s||null===u||(l=u,i?null!=(u=Bt(n,o))&&a.unshift(nd(n,u,l)):i||null!=(u=Bt(n,o))&&a.push(nd(n,u,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var ad=/\r\n?/g,sd=/\u0000|\uFFFD/g;function ld(e){return("string"==typeof e?e:""+e).replace(ad,"\n").replace(sd,"")}function ud(e,t){return t=ld(t),ld(e)===t}function cd(e,t,n,r,o,a){switch(n){case"children":"string"==typeof r?"body"===t||"textarea"===t&&""===r||Ct(e,r):("number"==typeof r||"bigint"==typeof r)&&"body"!==t&&Ct(e,""+r);break;case"className":ut(e,"class",r);break;case"tabIndex":ut(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":ut(e,n,r);break;case"style":_t(e,r,a);break;case"data":if("object"!==t){ut(e,"data",r);break}case"src":case"href":if(""===r&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==r||"function"==typeof r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}r=Ot(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if("function"==typeof r){e.setAttribute(n,"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}if("function"==typeof a&&("formAction"===n?("input"!==t&&cd(e,t,"name",o.name,o,null),cd(e,t,"formEncType",o.formEncType,o,null),cd(e,t,"formMethod",o.formMethod,o,null),cd(e,t,"formTarget",o.formTarget,o,null)):(cd(e,t,"encType",o.encType,o,null),cd(e,t,"method",o.method,o,null),cd(e,t,"target",o.target,o,null))),null==r||"symbol"==typeof r||"boolean"==typeof r){e.removeAttribute(n);break}r=Ot(""+r),e.setAttribute(n,r);break;case"onClick":null!=r&&(e.onclick=Lt);break;case"onScroll":null!=r&&Qc("scroll",e);break;case"onScrollEnd":null!=r&&Qc("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error(i(61));if(null!=(n=r.__html)){if(null!=o.children)throw Error(i(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"muted":e.muted=r&&"function"!=typeof r&&"symbol"!=typeof r;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==r||"function"==typeof r||"boolean"==typeof r||"symbol"==typeof r){e.removeAttribute("xlink:href");break}n=Ot(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,""+r):e.removeAttribute(n);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":r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===r?e.setAttribute(n,""):!1!==r&&null!=r&&"function"!=typeof r&&"symbol"!=typeof r?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=r&&"function"!=typeof r&&"symbol"!=typeof r&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":null==r||"function"==typeof r||"symbol"==typeof r||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":Qc("beforetoggle",e),Qc("toggle",e),lt(e,"popover",r);break;case"xlinkActuate":ct(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":ct(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":ct(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":ct(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":ct(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":ct(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":ct(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":ct(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":ct(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":lt(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&lt(e,n=At.get(n)||n,r)}}function dd(e,t,n,r,o,a){switch(n){case"style":_t(e,r,a);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!=typeof r||!("__html"in r))throw Error(i(61));if(null!=(n=r.__html)){if(null!=o.children)throw Error(i(60));e.innerHTML=n}}break;case"children":"string"==typeof r?Ct(e,r):("number"==typeof r||"bigint"==typeof r)&&Ct(e,""+r);break;case"onScroll":null!=r&&Qc("scroll",e);break;case"onScrollEnd":null!=r&&Qc("scrollend",e);break;case"onClick":null!=r&&(e.onclick=Lt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:nt.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),"function"==typeof(a=null!=(a=e[$e]||null)?a[n]:null)&&e.removeEventListener(t,a,o),"function"!=typeof r)?n in e?e[n]=r:!0===r?e.setAttribute(n,""):lt(e,n,r):("function"!=typeof a&&null!==a&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,o)))}}function fd(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Qc("error",e),Qc("load",e);var r,o=!1,a=!1;for(r in n)if(n.hasOwnProperty(r)){var s=n[r];if(null!=s)switch(r){case"src":o=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:cd(e,t,r,s,n,null)}}return a&&cd(e,t,"srcSet",n.srcSet,n,null),void(o&&cd(e,t,"src",n.src,n,null));case"input":Qc("invalid",e);var l=r=s=a=null,u=null,c=null;for(o in n)if(n.hasOwnProperty(o)){var d=n[o];if(null!=d)switch(o){case"name":a=d;break;case"type":s=d;break;case"checked":u=d;break;case"defaultChecked":c=d;break;case"value":r=d;break;case"defaultValue":l=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(i(137,t));break;default:cd(e,t,o,d,n,null)}}return void bt(e,r,l,u,c,s,a,!1);case"select":for(a in Qc("invalid",e),o=s=r=null,n)if(n.hasOwnProperty(a)&&null!=(l=n[a]))switch(a){case"value":r=l;break;case"defaultValue":s=l;break;case"multiple":o=l;default:cd(e,t,a,l,n,null)}return t=r,n=s,e.multiple=!!o,void(null!=t?xt(e,!!o,t,!1):null!=n&&xt(e,!!o,n,!0));case"textarea":for(s in Qc("invalid",e),r=a=o=null,n)if(n.hasOwnProperty(s)&&null!=(l=n[s]))switch(s){case"value":o=l;break;case"defaultValue":a=l;break;case"children":r=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(i(91));break;default:cd(e,t,s,l,n,null)}return void kt(e,o,a,r);case"option":for(u in n)n.hasOwnProperty(u)&&null!=(o=n[u])&&("selected"===u?e.selected=o&&"function"!=typeof o&&"symbol"!=typeof o:cd(e,t,u,o,n,null));return;case"dialog":Qc("beforetoggle",e),Qc("toggle",e),Qc("cancel",e),Qc("close",e);break;case"iframe":case"object":Qc("load",e);break;case"video":case"audio":for(o=0;o<Gc.length;o++)Qc(Gc[o],e);break;case"image":Qc("error",e),Qc("load",e);break;case"details":Qc("toggle",e);break;case"embed":case"source":case"link":Qc("error",e),Qc("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&null!=(o=n[c]))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:cd(e,t,c,o,n,null)}return;default:if(Nt(t)){for(d in n)n.hasOwnProperty(d)&&void 0!==(o=n[d])&&dd(e,t,d,o,n,void 0);return}}for(l in n)n.hasOwnProperty(l)&&null!=(o=n[l])&&cd(e,t,l,o,n,null)}function pd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}var hd=null,md=null;function gd(e){return 9===e.nodeType?e:e.ownerDocument}function vd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function yd(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function bd(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"bigint"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var wd=null,xd="function"==typeof setTimeout?setTimeout:void 0,Ed="function"==typeof clearTimeout?clearTimeout:void 0,kd="function"==typeof Promise?Promise:void 0,Cd="function"==typeof queueMicrotask?queueMicrotask:void 0!==kd?function(e){return kd.resolve(null).then(e).catch(Sd)}:xd;function Sd(e){setTimeout(function(){throw e})}function Td(e){return"head"===e}function _d(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)||"/&"===n){if(0===r)return e.removeChild(i),void Uf(t);r--}else if("$"===n||"$?"===n||"$~"===n||"$!"===n||"&"===n)r++;else if("html"===n)jd(e.ownerDocument.documentElement);else if("head"===n){jd(n=e.ownerDocument.head);for(var o=n.firstChild;o;){var a=o.nextSibling,s=o.nodeName;o[Ke]||"SCRIPT"===s||"STYLE"===s||"LINK"===s&&"stylesheet"===o.rel.toLowerCase()||n.removeChild(o),o=a}}else"body"===n&&jd(e.ownerDocument.body);n=i}while(n);Uf(t)}function Nd(e,t){var n=e;e=0;do{var r=n.nextSibling;if(1===n.nodeType?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",""===n.getAttribute("style")&&n.removeAttribute("style")):3===n.nodeType&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&8===r.nodeType)if("/$"===(n=r.data)){if(0===e)break;e--}else"$"!==n&&"$?"!==n&&"$~"!==n&&"$!"!==n||e++;n=r}while(n)}function Ad(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Ad(n),Ye(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function Dd(e,t){for(;8!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t)return null;if(null===(e=Id(e.nextSibling)))return null}return e}function Od(e){return"$?"===e.data||"$~"===e.data}function Ld(e){return"$!"===e.data||"$?"===e.data&&"loading"!==e.ownerDocument.readyState}function Id(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"$~"===t||"&"===t||"F!"===t||"F"===t)break;if("/$"===t||"/&"===t)return null}}return e}var Md=null;function Fd(e){e=e.nextSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n||"/&"===n){if(0===t)return Id(e.nextSibling);t--}else"$"!==n&&"$!"!==n&&"$?"!==n&&"$~"!==n&&"&"!==n||t++}e=e.nextSibling}return null}function Pd(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n||"$~"===n||"&"===n){if(0===t)return e;t--}else"/$"!==n&&"/&"!==n||t++}e=e.previousSibling}return null}function Rd(e,t,n){switch(t=gd(n),e){case"html":if(!(e=t.documentElement))throw Error(i(452));return e;case"head":if(!(e=t.head))throw Error(i(453));return e;case"body":if(!(e=t.body))throw Error(i(454));return e;default:throw Error(i(451))}}function jd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ye(e)}var Vd=new Map,Bd=new Set;function zd(e){return"function"==typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var $d=F.d;F.d={f:function(){var e=$d.f(),t=Ju();return e||t},r:function(e){var t=Xe(e);null!==t&&5===t.tag&&"form"===t.type?rs(t):$d.r(e)},D:function(e){$d.D(e),Hd("dns-prefetch",e,null)},C:function(e,t){$d.C(e,t),Hd("preconnect",e,t)},L:function(e,t,n){$d.L(e,t,n);var r=Ud;if(r&&e&&t){var i='link[rel="preload"][as="'+vt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(i+='[imagesrcset="'+vt(n.imageSrcSet)+'"]',"string"==typeof n.imageSizes&&(i+='[imagesizes="'+vt(n.imageSizes)+'"]')):i+='[href="'+vt(e)+'"]';var o=i;switch(t){case"style":o=qd(e);break;case"script":o=Yd(e)}Vd.has(o)||(e=c({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),Vd.set(o,e),null!==r.querySelector(i)||"style"===t&&r.querySelector(Gd(o))||"script"===t&&r.querySelector(Qd(o))||(fd(t=r.createElement("link"),"link",e),et(t),r.head.appendChild(t)))}},m:function(e,t){$d.m(e,t);var n=Ud;if(n&&e){var r=t&&"string"==typeof t.as?t.as:"script",i='link[rel="modulepreload"][as="'+vt(r)+'"][href="'+vt(e)+'"]',o=i;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=Yd(e)}if(!Vd.has(o)&&(e=c({rel:"modulepreload",href:e},t),Vd.set(o,e),null===n.querySelector(i))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Qd(o)))return}fd(r=n.createElement("link"),"link",e),et(r),n.head.appendChild(r)}}},X:function(e,t){$d.X(e,t);var n=Ud;if(n&&e){var r=Je(n).hoistableScripts,i=Yd(e),o=r.get(i);o||((o=n.querySelector(Qd(i)))||(e=c({src:e,async:!0},t),(t=Vd.get(i))&&ef(e,t),et(o=n.createElement("script")),fd(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(i,o))}},S:function(e,t,n){$d.S(e,t,n);var r=Ud;if(r&&e){var i=Je(r).hoistableStyles,o=qd(e);t=t||"default";var a=i.get(o);if(!a){var s={loading:0,preload:null};if(a=r.querySelector(Gd(o)))s.loading=5;else{e=c({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Vd.get(o))&&Jd(e,n);var l=a=r.createElement("link");et(l),fd(l,"link",e),l._p=new Promise(function(e,t){l.onload=e,l.onerror=t}),l.addEventListener("load",function(){s.loading|=1}),l.addEventListener("error",function(){s.loading|=2}),s.loading|=4,Zd(a,t,r)}a={type:"stylesheet",instance:a,count:1,state:s},i.set(o,a)}}},M:function(e,t){$d.M(e,t);var n=Ud;if(n&&e){var r=Je(n).hoistableScripts,i=Yd(e),o=r.get(i);o||((o=n.querySelector(Qd(i)))||(e=c({src:e,async:!0,type:"module"},t),(t=Vd.get(i))&&ef(e,t),et(o=n.createElement("script")),fd(o,"link",e),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(i,o))}}};var Ud="undefined"==typeof document?null:document;function Hd(e,t,n){var r=Ud;if(r&&"string"==typeof t&&t){var i=vt(t);i='link[rel="'+e+'"][href="'+i+'"]',"string"==typeof n&&(i+='[crossorigin="'+n+'"]'),Bd.has(i)||(Bd.add(i),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(i)&&(fd(t=r.createElement("link"),"link",e),et(t),r.head.appendChild(t)))}}function Wd(e,t,n,r){var o,a,s,l,u=(u=q.current)?zd(u):null;if(!u)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return"string"==typeof n.precedence&&"string"==typeof n.href?(t=qd(n.href),(r=(n=Je(u).hoistableStyles).get(t))||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"==typeof n.href&&"string"==typeof n.precedence){e=qd(n.href);var c=Je(u).hoistableStyles,d=c.get(e);if(d||(u=u.ownerDocument||u,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,d),(c=u.querySelector(Gd(e)))&&!c._p&&(d.instance=c,d.state.loading=5),Vd.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Vd.set(e,n),c||(o=u,a=e,s=n,l=d.state,o.querySelector('link[rel="preload"][as="style"]['+a+"]")?l.loading=1:(a=o.createElement("link"),l.preload=a,a.addEventListener("load",function(){return l.loading|=1}),a.addEventListener("error",function(){return l.loading|=2}),fd(a,"link",s),et(a),o.head.appendChild(a))))),t&&null===r)throw Error(i(528,""));return d}if(t&&null!==r)throw Error(i(529,""));return null;case"script":return t=n.async,"string"==typeof(n=n.src)&&t&&"function"!=typeof t&&"symbol"!=typeof t?(t=Yd(n),(r=(n=Je(u).hoistableScripts).get(t))||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function qd(e){return'href="'+vt(e)+'"'}function Gd(e){return'link[rel="stylesheet"]['+e+"]"}function Kd(e){return c({},e,{"data-precedence":e.precedence,precedence:null})}function Yd(e){return'[src="'+vt(e)+'"]'}function Qd(e){return"script[async]"+e}function Xd(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+vt(n.href)+'"]');if(r)return t.instance=r,et(r),r;var o=c({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return et(r=(e.ownerDocument||e).createElement("style")),fd(r,"style",o),Zd(r,n.precedence,e),t.instance=r;case"stylesheet":o=qd(n.href);var a=e.querySelector(Gd(o));if(a)return t.state.loading|=4,t.instance=a,et(a),a;r=Kd(n),(o=Vd.get(o))&&Jd(r,o),et(a=(e.ownerDocument||e).createElement("link"));var s=a;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),fd(a,"link",r),t.state.loading|=4,Zd(a,n.precedence,e),t.instance=a;case"script":return a=Yd(n.src),(o=e.querySelector(Qd(a)))?(t.instance=o,et(o),o):(r=n,(o=Vd.get(a))&&ef(r=c({},n),o),et(o=(e=e.ownerDocument||e).createElement("script")),fd(o,"link",r),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(i(443,t.type))}else"stylesheet"===t.type&&!(4&t.state.loading)&&(r=t.instance,t.state.loading|=4,Zd(r,n.precedence,e));return t.instance}function Zd(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=r.length?r[r.length-1]:null,o=i,a=0;a<r.length;a++){var s=r[a];if(s.dataset.precedence===t)o=s;else if(o!==i)break}o?o.parentNode.insertBefore(e,o.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function Jd(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function ef(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var tf=null;function nf(e,t,n){if(null===tf){var r=new Map,i=tf=new Map;i.set(n,r)}else(r=(i=tf).get(n))||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var o=n[i];if(!(o[Ke]||o[ze]||"link"===e&&"stylesheet"===o.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==o.namespaceURI){var a=o.getAttribute(t)||"";a=e+a;var s=r.get(a);s?s.push(o):r.set(a,[o])}}return r}function rf(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function of(e){return!!("stylesheet"!==e.type||3&e.state.loading)}var af=0;function sf(){if(this.count--,0===this.count&&(0===this.imgCount||!this.waitingForImages))if(this.stylesheets)uf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var lf=null;function uf(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,lf=new Map,t.forEach(cf,e),lf=null,sf.call(e))}function cf(e,t){if(!(4&t.state.loading)){var n=lf.get(e);if(n)var r=n.get(null);else{n=new Map,lf.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<i.length;o++){var a=i[o];"LINK"!==a.nodeName&&"not all"===a.getAttribute("media")||(n.set(a.dataset.precedence,a),r=a)}r&&n.set(null,r)}a=(i=t.instance).getAttribute("data-precedence"),(o=n.get(a)||r)===r&&n.set(null,i),n.set(a,i),this.count++,r=sf.bind(this),i.addEventListener("load",r),i.addEventListener("error",r),o?o.parentNode.insertBefore(i,o.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(i,e.firstChild),t.state.loading|=4}}var df={$$typeof:x,Provider:null,Consumer:null,_currentValue:P,_currentValue2:P,_threadCount:0};function ff(e,t,n,r,i,o,a,s,l){this.tag=1,this.containerInfo=e,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=Oe(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Oe(0),this.hiddenUpdates=Oe(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=o,this.onRecoverableError=a,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map}function pf(e,t,n,r,i,o){i=function(e){return e?e=Pr:Pr}(i),null===r.context?r.context=i:r.pendingContext=i,(r=bo(t)).payload={element:n},null!==(o=void 0===o?null:o)&&(r.callback=o),null!==(n=wo(e,r,t))&&(Ku(n,0,t),xo(n,e,t))}function hf(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function mf(e,t){hf(e,t),(e=e.alternate)&&hf(e,t)}function gf(e){if(13===e.tag||31===e.tag){var t=Ir(e,67108864);null!==t&&Ku(t,0,67108864),mf(e,67108864)}}function vf(e){if(13===e.tag||31===e.tag){var t=qu(),n=Ir(e,t=Pe(t));null!==n&&Ku(n,0,t),mf(e,t)}}var yf=!0;function bf(e,t,n,r){var i=M.T;M.T=null;var o=F.p;try{F.p=2,xf(e,t,n,r)}finally{F.p=o,M.T=i}}function wf(e,t,n,r){var i=M.T;M.T=null;var o=F.p;try{F.p=8,xf(e,t,n,r)}finally{F.p=o,M.T=i}}function xf(e,t,n,r){if(yf){var i=Ef(r);if(null===i)td(e,t,r,kf,n),Mf(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return _f=Ff(_f,e,t,n,r,i),!0;case"dragenter":return Nf=Ff(Nf,e,t,n,r,i),!0;case"mouseover":return Af=Ff(Af,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Df.set(o,Ff(Df.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Of.set(o,Ff(Of.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Mf(e,r),4&t&&-1<If.indexOf(e)){for(;null!==i;){var o=Xe(i);if(null!==o)switch(o.tag){case 3:if((o=o.stateNode).current.memoizedState.isDehydrated){var a=Te(o.pendingLanes);if(0!==a){var s=o;for(s.pendingLanes|=2,s.entangledLanes|=2;a;){var l=1<<31-we(a);s.entanglements[1]|=l,a&=~l}Fc(o),!(6&pu)&&(Mu=le()+500,Pc(0,!1))}}break;case 31:case 13:null!==(s=Ir(o,2))&&Ku(s,0,2),Ju(),mf(o,2)}if(null===(o=Ef(r))&&td(e,t,r,kf,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else td(e,t,r,null,n)}}function Ef(e){return Cf(e=Mt(e))}var kf=null;function Cf(e){if(kf=null,null!==(e=Qe(e))){var t=o(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=a(t)))return e;e=null}else if(31===n){if(null!==(e=s(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return kf=e,null}function Sf(e){switch(e){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(ue()){case ce:return 2;case de:return 8;case fe:case pe:return 32;case he:return 268435456;default:return 32}default:return 32}}var Tf=!1,_f=null,Nf=null,Af=null,Df=new Map,Of=new Map,Lf=[],If="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 Mf(e,t){switch(e){case"focusin":case"focusout":_f=null;break;case"dragenter":case"dragleave":Nf=null;break;case"mouseover":case"mouseout":Af=null;break;case"pointerover":case"pointerout":Df.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Of.delete(t.pointerId)}}function Ff(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&null!==(t=Xe(t))&&gf(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Pf(e){var t=Qe(e.target);if(null!==t){var n=o(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=a(n)))return e.blockedOn=t,void Ve(e.priority,function(){vf(n)})}else if(31===t){if(null!==(t=s(n)))return e.blockedOn=t,void Ve(e.priority,function(){vf(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Rf(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Ef(e.nativeEvent);if(null!==n)return null!==(t=Xe(n))&&gf(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);It=r,n.target.dispatchEvent(r),It=null,t.shift()}return!0}function jf(e,t,n){Rf(e)&&n.delete(t)}function Vf(){Tf=!1,null!==_f&&Rf(_f)&&(_f=null),null!==Nf&&Rf(Nf)&&(Nf=null),null!==Af&&Rf(Af)&&(Af=null),Df.forEach(jf),Of.forEach(jf)}function Bf(e,n){e.blockedOn===n&&(e.blockedOn=null,Tf||(Tf=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Vf)))}var zf=null;function $f(e){zf!==e&&(zf=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){zf===e&&(zf=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if("function"!=typeof r){if(null===Cf(r||n))continue;break}var o=Xe(n);null!==o&&(e.splice(t,3),t-=3,ts(o,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Uf(e){function t(t){return Bf(t,e)}null!==_f&&Bf(_f,e),null!==Nf&&Bf(Nf,e),null!==Af&&Bf(Af,e),Df.forEach(t),Of.forEach(t);for(var n=0;n<Lf.length;n++){var r=Lf[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Lf.length&&null===(n=Lf[0]).blockedOn;)Pf(n),null===n.blockedOn&&Lf.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var i=n[r],o=n[r+1],a=i[$e]||null;if("function"==typeof o)a||$f(n);else if(a){var s=null;if(o&&o.hasAttribute("formAction")){if(i=o,a=o[$e]||null)s=a.formAction;else if(null!==Cf(i))continue}else s=a.action;"function"==typeof s?n[r+1]=s:(n.splice(r,3),r-=3),$f(n)}}}function Hf(){function e(e){e.canIntercept&&"react-transition"===e.info&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:"manual",scroll:"manual"})}function t(){null!==i&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&null!=e.url&&navigation.navigate(e.url,{state:e.getState(),info:"react-transition",history:"replace"})}}if("object"==typeof navigation){var r=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),null!==i&&(i(),i=null)}}}function Wf(e){this._internalRoot=e}function qf(e){this._internalRoot=e}qf.prototype.render=Wf.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));pf(t.current,qu(),e,t,null,null)},qf.prototype.unmount=Wf.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;pf(e.current,2,null,e,null,null),Ju(),t[Ue]=null}},qf.prototype.unstable_scheduleHydration=function(e){if(e){var t=je();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Lf.length&&0!==t&&t<Lf[n].priority;n++);Lf.splice(n,0,e),0===n&&Pf(e)}};var Gf=n.version;if("19.2.4"!==Gf)throw Error(i(527,Gf,"19.2.4"));F.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=o(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var s=a.alternate;if(null===s){if(null!==(r=a.return)){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var u=!1,c=a.child;c;){if(c===n){u=!0,n=a,r=s;break}if(c===r){u=!0,r=a,n=s;break}c=c.sibling}if(!u){for(c=s.child;c;){if(c===n){u=!0,n=s,r=a;break}if(c===r){u=!0,r=s,n=a;break}c=c.sibling}if(!u)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(t),null===(e=null!==e?u(e):null)?null:e.stateNode};var Kf={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.4"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Yf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yf.isDisabled&&Yf.supportsFiber)try{ve=Yf.inject(Kf),ye=Yf}catch(Qf){}}e.createRoot=function(e,t){if(!(n=e)||1!==n.nodeType&&9!==n.nodeType&&11!==n.nodeType)throw Error(i(299));var n,r=!1,o="",a=Cs,s=Ss,l=Ts;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(o=t.identifierPrefix),void 0!==t.onUncaughtError&&(a=t.onUncaughtError),void 0!==t.onCaughtError&&(s=t.onCaughtError),void 0!==t.onRecoverableError&&(l=t.onRecoverableError)),t=function(e,t,n,r,i,o,a,s,l,u,c,d){return e=new ff(e,t,n,a,l,u,c,d,null),t=1,!0===o&&(t|=24),o=jr(3,null,null,t),e.current=o,o.stateNode=e,(t=Vi()).refCount++,e.pooledCache=t,t.refCount++,o.memoizedState={element:null,isDehydrated:n,cache:t},vo(o),e}(e,1,!1,0,0,r,o,0,a,s,l,Hf),e[Ue]=t.current,Jc(e),new Wf(t)}}),y=s((e,t)=>{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){}}(),t.exports=v()}),b=s(e=>{var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(e,n,r){var i=null;if(void 0!==r&&(i=""+r),void 0!==n.key&&(i=""+n.key),"key"in n)for(var o in r={},n)"key"!==o&&(r[o]=n[o]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:void 0!==n?n:null,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r}),w=s((e,t)=>{t.exports=b()}),x=s((e,t)=>{var n,r=Object.create,i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,u=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let s of a(t))l.call(e,s)||s===n||i(e,s,{get:()=>t[s],enumerable:!(r=o(t,s))||r.enumerable});return e},c={};((e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})})(c,{$dispatcherGuard:()=>S,$makeReadOnly:()=>_,$reset:()=>T,$structuralCheck:()=>L,c:()=>w,clearRenderCounterRegistry:()=>A,renderCounterRegistry:()=>N,useRenderCounter:()=>D}),t.exports=(n=c,u(i({},"__esModule",{value:!0}),n));var d,p,h=((e,t,n)=>(n=null!=e?r(s(e)):{},u(e&&e.__esModule?n:i(n,"default",{value:e,enumerable:!0}),e)))(f()),{useRef:m,useEffect:g,isValidElement:v}=h,y=null!=(d=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)?d:h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,b=Symbol.for("react.memo_cache_sentinel"),w="function"==typeof(null==(p=h.__COMPILER_RUNTIME)?void 0:p.c)?h.__COMPILER_RUNTIME.c:function(e){return h.useMemo(()=>{const t=new Array(e);for(let n=0;n<e;n++)t[n]=b;return t[b]=!0,t},[])},x={};["readContext","useCallback","useContext","useEffect","useImperativeHandle","useInsertionEffect","useLayoutEffect","useMemo","useReducer","useRef","useState","useDebugValue","useDeferredValue","useTransition","useMutableSource","useSyncExternalStore","useId","unstable_isNewReconciler","getCacheSignal","getCacheForType","useCacheRefresh"].forEach(e=>{x[e]=()=>{throw new Error(`[React] Unexpected React hook call (${e}) from a React compiled function. Check that all hooks are called directly and named according to convention ('use[A-Z]') `)}});var E=null;function k(e){return y.ReactCurrentDispatcher.current=e,y.ReactCurrentDispatcher.current}x.useMemoCache=e=>{if(null==E)throw new Error("React Compiler internal invariant violation: unexpected null dispatcher");return E.useMemoCache(e)};var C=[];function S(e){const t=y.ReactCurrentDispatcher.current;if(0===e){if(C.push(t),1===C.length&&(E=t),t===x)throw new Error("[React] Unexpected call to custom hook or component from a React compiled function. Check that (1) all hooks are called directly and named according to convention ('use[A-Z]') and (2) components are returned as JSX instead of being directly invoked.");k(x)}else if(1===e){const e=C.pop();if(null==e)throw new Error("React Compiler internal error: unexpected null in guard stack");0===C.length&&(E=null),k(e)}else if(2===e)C.push(t),k(E);else{if(3!==e)throw new Error("React Compiler internal error: unreachable block"+e);{const e=C.pop();if(null==e)throw new Error("React Compiler internal error: unexpected null in guard stack");k(e)}}}function T(e){for(let t=0;t<e.length;t++)e[t]=b}function _(){throw new Error("TODO: implement $makeReadOnly in react-compiler-runtime")}var N=new Map;function A(){for(const e of N.values())e.forEach(e=>{e.count=0})}function D(e){const t=m(null);null!=t.current&&(t.current.count+=1),g(()=>{if(null==t.current){const n={count:0};!function(e,t){let n=N.get(e);null==n&&(n=new Set,N.set(e,n)),n.add(t)}(e,n),t.current=n}return()=>{null!==t.current&&function(e,t){const n=N.get(e);null!=n&&n.delete(t)}(e,t.current)}})}var O=new Set;function L(e,t,n,r,i,o){function a(e,t,a,s){const l=`${r}:${o} [${i}] ${n}${a} changed from ${e} to ${t} at depth ${s}`;O.has(l)||O.add(l)}!function e(t,n,r,i){if(!(i>2)&&t!==n)if(typeof t!=typeof n)a("type "+typeof t,"type "+typeof n,r,i);else if("object"==typeof t){const o=Array.isArray(t),s=Array.isArray(n);if(null===t&&null!==n)a("null","type "+typeof n,r,i);else if(null===n)a("type "+typeof t,"null",r,i);else if(t instanceof Map)if(n instanceof Map)if(t.size!==n.size)a(`Map instance with size ${t.size}`,`Map instance with size ${n.size}`,r,i);else for(const[l,u]of t)n.has(l)?e(u,n.get(l),`${r}.get(${l})`,i+1):a(`Map instance with key ${l}`,`Map instance without key ${l}`,r,i);else a("Map instance","other value",r,i);else if(n instanceof Map)a("other value","Map instance",r,i);else if(t instanceof Set)if(n instanceof Set)if(t.size!==n.size)a(`Set instance with size ${t.size}`,`Set instance with size ${n.size}`,r,i);else for(const e of n)t.has(e)||a(`Set instance without element ${e}`,`Set instance with element ${e}`,r,i);else a("Set instance","other value",r,i);else if(n instanceof Set)a("other value","Set instance",r,i);else if(o||s)if(o!==s)a("type "+(o?"array":"object"),"type "+(s?"array":"object"),r,i);else if(t.length!==n.length)a(`array with length ${t.length}`,`array with length ${n.length}`,r,i);else for(let a=0;a<t.length;a++)e(t[a],n[a],`${r}[${a}]`,i+1);else if(v(t)||v(n))v(t)!==v(n)?a("type "+(v(t)?"React element":"object"),"type "+(v(n)?"React element":"object"),r,i):t.type!==n.type?a(`React element of type ${t.type}`,`React element of type ${n.type}`,r,i):e(t.props,n.props,`[props of ${r}]`,i+1);else{for(const e in n)e in t||a(`object without key ${e}`,`object with key ${e}`,r,i);for(const o in t)o in n?e(t[o],n[o],`${r}.${o}`,i+1):a(`object with key ${o}`,`object without key ${o}`,r,i)}}else{if("function"==typeof t)return;isNaN(t)||isNaN(n)?isNaN(t)!==isNaN(n)&&a(isNaN(t)?"NaN":"non-NaN value",isNaN(n)?"NaN":"non-NaN value",r,i):t!==n&&a(t,n,r,i)}}(e,t,"",0)}}),E=Object.defineProperty,k=Object.defineProperties,C=Object.getOwnPropertyDescriptors,S=Object.getOwnPropertySymbols,T=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable,N=(e,t,n)=>t in e?E(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,A=(e,t)=>{for(var n in t||(t={}))T.call(t,n)&&N(e,n,t[n]);if(S)for(var n of S(t))_.call(t,n)&&N(e,n,t[n]);return e},D=(e,t)=>k(e,C(t));function O(e){return"object"==typeof e&&null!==e&&"function"==typeof e.then}function L(e){return"object"==typeof e&&null!==e&&"subscribe"in e&&"function"==typeof e.subscribe}function I(e){return"object"==typeof e&&null!==e&&("AsyncGenerator"===e[Symbol.toStringTag]||Symbol.asyncIterator in e)}async function M(e){const t=await e;return I(t)?async function(e){var t;const n=null==(t=("return"in e?e:e[Symbol.asyncIterator]()).return)?void 0:t.bind(e),r=await("next"in e?e:e[Symbol.asyncIterator]()).next.bind(e)();return null==n||n(),r.value}(t):L(t)?(n=t,new Promise((e,t)=>{const r=n.subscribe({next(t){e(t),r.unsubscribe()},error:t,complete(){t(new Error("no value resolved"))}})})):t;var n}function F(e,t){if(!Boolean(e))throw new Error(t)}var P=a(()=>{});function R(e){return"object"==typeof e&&null!==e}var j=a(()=>{});function V(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}var B,z=a(()=>{});function $(e,t){let n=0,r=1;for(const i of e.body.matchAll(B)){if("number"==typeof i.index||V(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}var U=a(()=>{z(),B=/\r\n|[\n\r]/g});function H(e){return W(e.source,$(e.source,e.start))}function W(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?n:0,l=t.column+s,u=`${e.name}:${a}:${l}\n`,c=r.split(/\r\n|[\n\r]/g),d=c[i];if(d.length>120){const e=Math.floor(l/80),t=l%80,n=[];for(let r=0;r<d.length;r+=80)n.push(d.slice(r,r+80));return u+q([[`${a} |`,n[0]],...n.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(t)],["|",n[e+1]]])}return u+q([[a-1+" |",c[i-1]],[`${a} |`,d],["|","^".padStart(l)],[`${a+1} |`,c[i+1]]])}function q(e){const t=e.filter(([e,t])=>void 0!==t),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?" "+t:"")).join("\n")}var G,K=a(()=>{U()});function Y(e){return void 0===e||0===e.length?void 0:e}var Q=a(()=>{j(),U(),K(),G=class e extends Error{constructor(t,...n){var r,i,o;const{nodes:a,source:s,positions:l,path:u,originalError:c,extensions:d}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(n);super(t),this.name="GraphQLError",this.path=null!=u?u:void 0,this.originalError=null!=c?c:void 0,this.nodes=Y(Array.isArray(a)?a:a?[a]:void 0);const f=Y(null===(r=this.nodes)||void 0===r?void 0:r.map(e=>e.loc).filter(e=>null!=e));this.source=null!=s?s:null==f||null===(i=f[0])||void 0===i?void 0:i.source,this.positions=null!=l?l:null==f?void 0:f.map(e=>e.start),this.locations=l&&s?l.map(e=>$(s,e)):null==f?void 0:f.map(e=>$(e.source,e.start));const p=R(null==c?void 0:c.extensions)?null==c?void 0:c.extensions:void 0;this.extensions=null!==(o=null!=d?d:p)&&void 0!==o?o:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=c&&c.stack?Object.defineProperty(this,"stack",{value:c.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const t of this.nodes)t.loc&&(e+="\n\n"+H(t.loc));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+W(this.source,t);return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}});function X(e,t,n){return new G(`Syntax Error: ${n}`,{source:e,positions:[t]})}var Z,J,ee,te,ne,re=a(()=>{Q()});function ie(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&te.has(t)}var oe,ae,se=a(()=>{Z=class{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},J=class{constructor(e,t,n,r,i,o){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},ee={Name:[],Document:["definitions"],OperationDefinition:["description","name","variableDefinitions","directives","selectionSet"],VariableDefinition:["description","variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["description","name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"],TypeCoordinate:["name"],MemberCoordinate:["name","memberName"],ArgumentCoordinate:["name","fieldName","argumentName"],DirectiveCoordinate:["name"],DirectiveArgumentCoordinate:["name","argumentName"]},te=new Set(Object.keys(ee)),function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(ne||(ne={}))}),le=a(()=>{!function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(oe||(oe={}))}),ue=a(()=>{!function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension",e.TYPE_COORDINATE="TypeCoordinate",e.MEMBER_COORDINATE="MemberCoordinate",e.ARGUMENT_COORDINATE="ArgumentCoordinate",e.DIRECTIVE_COORDINATE="DirectiveCoordinate",e.DIRECTIVE_ARGUMENT_COORDINATE="DirectiveArgumentCoordinate"}(ae||(ae={}))});function ce(e){return 9===e||32===e}function de(e){return e>=48&&e<=57}function fe(e){return e>=97&&e<=122||e>=65&&e<=90}function pe(e){return fe(e)||95===e}function he(e){return fe(e)||de(e)||95===e}var me=a(()=>{});function ge(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let a=0;a<e.length;++a){var o;const t=e[a],s=ve(t);s!==t.length&&(r=null!==(o=r)&&void 0!==o?o:a,i=a,0!==a&&s<n&&(n=s))}return e.map((e,t)=>0===t?e:e.slice(n)).slice(null!==(t=r)&&void 0!==t?t:0,i+1)}function ve(e){let t=0;for(;t<e.length&&ce(e.charCodeAt(t));)++t;return t}var ye,be,we=a(()=>{me()}),xe=a(()=>{!function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.DOT=".",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(ye||(ye={}))});function Ee(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function ke(e,t){return Ce(e.charCodeAt(t))&&Se(e.charCodeAt(t+1))}function Ce(e){return e>=55296&&e<=56319}function Se(e){return e>=56320&&e<=57343}function Te(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return ye.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function _e(e,t,n,r,i){const o=e.line;return new J(t,n,r,o,1+n-e.lineStart,i)}function Ne(e,t){const n=e.source.body,r=n.length;let i=t;for(;i<r;){const t=n.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===n.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return Ae(e,i);case 33:return _e(e,ye.BANG,i,i+1);case 36:return _e(e,ye.DOLLAR,i,i+1);case 38:return _e(e,ye.AMP,i,i+1);case 40:return _e(e,ye.PAREN_L,i,i+1);case 41:return _e(e,ye.PAREN_R,i,i+1);case 46:if(46===n.charCodeAt(i+1)&&46===n.charCodeAt(i+2))return _e(e,ye.SPREAD,i,i+3);break;case 58:return _e(e,ye.COLON,i,i+1);case 61:return _e(e,ye.EQUALS,i,i+1);case 64:return _e(e,ye.AT,i,i+1);case 91:return _e(e,ye.BRACKET_L,i,i+1);case 93:return _e(e,ye.BRACKET_R,i,i+1);case 123:return _e(e,ye.BRACE_L,i,i+1);case 124:return _e(e,ye.PIPE,i,i+1);case 125:return _e(e,ye.BRACE_R,i,i+1);case 34:return 34===n.charCodeAt(i+1)&&34===n.charCodeAt(i+2)?je(e,i):Le(e,i)}if(de(t)||45===t)return De(e,i,t);if(pe(t))return Ve(e,i);throw X(e.source,i,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":Ee(t)||ke(n,i)?`Unexpected character: ${Te(e,i)}.`:`Invalid character: ${Te(e,i)}.`)}return _e(e,ye.EOF,r,r)}function Ae(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r;){const e=n.charCodeAt(i);if(10===e||13===e)break;if(Ee(e))++i;else{if(!ke(n,i))break;i+=2}}return _e(e,ye.COMMENT,t,i,n.slice(t+1,i))}function De(e,t,n){const r=e.source.body;let i=t,o=n,a=!1;if(45===o&&(o=r.charCodeAt(++i)),48===o){if(o=r.charCodeAt(++i),de(o))throw X(e.source,i,`Invalid number, unexpected digit after 0: ${Te(e,i)}.`)}else i=Oe(e,i,o),o=r.charCodeAt(i);if(46===o&&(a=!0,o=r.charCodeAt(++i),i=Oe(e,i,o),o=r.charCodeAt(i)),69!==o&&101!==o||(a=!0,o=r.charCodeAt(++i),43!==o&&45!==o||(o=r.charCodeAt(++i)),i=Oe(e,i,o),o=r.charCodeAt(i)),46===o||pe(o))throw X(e.source,i,`Invalid number, expected digit but got: ${Te(e,i)}.`);return _e(e,a?ye.FLOAT:ye.INT,t,i,r.slice(t,i))}function Oe(e,t,n){if(!de(n))throw X(e.source,t,`Invalid number, expected digit but got: ${Te(e,t)}.`);const r=e.source.body;let i=t+1;for(;de(r.charCodeAt(i));)++i;return i}function Le(e,t){const n=e.source.body,r=n.length;let i=t+1,o=i,a="";for(;i<r;){const r=n.charCodeAt(i);if(34===r)return a+=n.slice(o,i),_e(e,ye.STRING,t,i+1,a);if(92===r){a+=n.slice(o,i);const t=117===n.charCodeAt(i+1)?123===n.charCodeAt(i+2)?Ie(e,i):Me(e,i):Re(e,i);a+=t.value,i+=t.size,o=i;continue}if(10===r||13===r)break;if(Ee(r))++i;else{if(!ke(n,i))throw X(e.source,i,`Invalid character within String: ${Te(e,i)}.`);i+=2}}throw X(e.source,i,"Unterminated string.")}function Ie(e,t){const n=e.source.body;let r=0,i=3;for(;i<12;){const e=n.charCodeAt(t+i++);if(125===e){if(i<5||!Ee(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|Pe(e),r<0)break}throw X(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}function Me(e,t){const n=e.source.body,r=Fe(n,t+2);if(Ee(r))return{value:String.fromCodePoint(r),size:6};if(Ce(r)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){const e=Fe(n,t+8);if(Se(e))return{value:String.fromCodePoint(r,e),size:12}}throw X(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function Fe(e,t){return Pe(e.charCodeAt(t))<<12|Pe(e.charCodeAt(t+1))<<8|Pe(e.charCodeAt(t+2))<<4|Pe(e.charCodeAt(t+3))}function Pe(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Re(e,t){const n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw X(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function je(e,t){const n=e.source.body,r=n.length;let i=e.lineStart,o=t+3,a=o,s="";const l=[];for(;o<r;){const r=n.charCodeAt(o);if(34===r&&34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)){s+=n.slice(a,o),l.push(s);const r=_e(e,ye.BLOCK_STRING,t,o+3,ge(l).join("\n"));return e.line+=l.length-1,e.lineStart=i,r}if(92!==r||34!==n.charCodeAt(o+1)||34!==n.charCodeAt(o+2)||34!==n.charCodeAt(o+3))if(10!==r&&13!==r)if(Ee(r))++o;else{if(!ke(n,o))throw X(e.source,o,`Invalid character within String: ${Te(e,o)}.`);o+=2}else s+=n.slice(a,o),l.push(s),13===r&&10===n.charCodeAt(o+1)?o+=2:++o,s="",a=o,i=o;else s+=n.slice(a,o),a=o+1,o+=4}throw X(e.source,o,"Unterminated string.")}function Ve(e,t){const n=e.source.body,r=n.length;let i=t+1;for(;i<r&&he(n.charCodeAt(i));)++i;return _e(e,ye.NAME,t,i,n.slice(t,i))}var Be,ze,$e=a(()=>{re(),se(),we(),me(),xe(),be=class{constructor(e){const t=new J(ye.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==ye.EOF)do{if(e.next)e=e.next;else{const t=Ne(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===ye.COMMENT);return e}}});function Ue(e){return He(e,[])}function He(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:He(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>ze)return"[Array]";const n=Math.min(Be,e.length),r=e.length-n,i=[];for(let o=0;o<n;++o)i.push(He(e[o],t));return 1===r?i.push("... 1 more item"):r>1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}(e,n);return function(e,t){const n=Object.entries(e);return 0===n.length?"{}":t.length>ze?"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]":"{ "+n.map(([e,n])=>e+": "+He(n,t)).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}var We,qe,Ge,Ke,Ye=a(()=>{Be=10,ze=2}),Qe=a(()=>{Ye(),We=globalThis.process&&!0,qe=We?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var n;const r=t.prototype[Symbol.toStringTag];if(r===(Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name)){const t=Ue(e);throw new Error(`Cannot use ${r} "${t}" from another module or realm.\n\nEnsure that there is only one instance of "graphql" in the node_modules\ndirectory. If different versions of "graphql" are the dependencies of other\nrelied on modules, use "resolutions" to ensure only one version is installed.\n\nhttps://yarnpkg.com/en/docs/selective-version-resolutions\n\nDuplicate "graphql" modules cannot be used at the same time since different\nversions may have different capabilities and behavior. The data from one\nversion used in the function from another could produce confusing and\nspurious results.`)}}return!1}}),Xe=a(()=>{P(),Ye(),Qe(),Ge=class{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||F(!1,`Body must be a string. Received: ${Ue(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||F(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||F(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}});function Ze(e,t){const n=new Ke(e,t),r=n.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:n.tokenCount}),r}function Je(e){const t=e.value;return et(e.kind)+(null!=t?` "${t}"`:"")}function et(e){return function(e){return e===ye.BANG||e===ye.DOLLAR||e===ye.AMP||e===ye.PAREN_L||e===ye.PAREN_R||e===ye.DOT||e===ye.SPREAD||e===ye.COLON||e===ye.EQUALS||e===ye.AT||e===ye.BRACKET_L||e===ye.BRACKET_R||e===ye.BRACE_L||e===ye.PIPE||e===ye.BRACE_R}(e)?`"${e}"`:e}var tt,nt=a(()=>{re(),se(),le(),ue(),$e(),Xe(),xe(),Ke=class{constructor(e,t={}){const{lexer:n,...r}=t;this._lexer=n||new be(function(e){return qe(e,Ge)}(e)?e:new Ge(e)),this._options=r,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const e=this.expectToken(ye.NAME);return this.node(e,{kind:ae.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:ae.DOCUMENT,definitions:this.many(ye.SOF,this.parseDefinition,ye.EOF)})}parseDefinition(){if(this.peek(ye.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(e&&t.kind===ye.BRACE_L)throw X(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(t.kind===ye.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(e)throw X(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if("extend"===t.value)return this.parseTypeSystemExtension()}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(ye.BRACE_L))return this.node(e,{kind:ae.OPERATION_DEFINITION,operation:ne.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseDescription(),n=this.parseOperationType();let r;return this.peek(ye.NAME)&&(r=this.parseName()),this.node(e,{kind:ae.OPERATION_DEFINITION,operation:n,description:t,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(ye.NAME);switch(e.value){case"query":return ne.QUERY;case"mutation":return ne.MUTATION;case"subscription":return ne.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(ye.PAREN_L,this.parseVariableDefinition,ye.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:ae.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(ye.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(ye.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(ye.DOLLAR),this.node(e,{kind:ae.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:ae.SELECTION_SET,selections:this.many(ye.BRACE_L,this.parseSelection,ye.BRACE_R)})}parseSelection(){return this.peek(ye.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let n,r;return this.expectOptionalToken(ye.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:ae.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(ye.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(ye.PAREN_L,t,ye.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,n=this.parseName();return this.expectToken(ye.COLON),this.node(t,{kind:ae.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(ye.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(ye.NAME)?this.node(e,{kind:ae.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:ae.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token,t=this.parseDescription();return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:ae.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:ae.FRAGMENT_DEFINITION,description:t,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case ye.BRACKET_L:return this.parseList(e);case ye.BRACE_L:return this.parseObject(e);case ye.INT:return this.advanceLexer(),this.node(t,{kind:ae.INT,value:t.value});case ye.FLOAT:return this.advanceLexer(),this.node(t,{kind:ae.FLOAT,value:t.value});case ye.STRING:case ye.BLOCK_STRING:return this.parseStringLiteral();case ye.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:ae.BOOLEAN,value:!0});case"false":return this.node(t,{kind:ae.BOOLEAN,value:!1});case"null":return this.node(t,{kind:ae.NULL});default:return this.node(t,{kind:ae.ENUM,value:t.value})}case ye.DOLLAR:if(e){if(this.expectToken(ye.DOLLAR),this._lexer.token.kind===ye.NAME){const e=this._lexer.token.value;throw X(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:ae.STRING,value:e.value,block:e.kind===ye.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:ae.LIST,values:this.any(ye.BRACKET_L,()=>this.parseValueLiteral(e),ye.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:ae.OBJECT,fields:this.any(ye.BRACE_L,()=>this.parseObjectField(e),ye.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,n=this.parseName();return this.expectToken(ye.COLON),this.node(t,{kind:ae.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(ye.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(ye.AT),this.node(t,{kind:ae.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(ye.BRACKET_L)){const n=this.parseTypeReference();this.expectToken(ye.BRACKET_R),t=this.node(e,{kind:ae.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(ye.BANG)?this.node(e,{kind:ae.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:ae.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(ye.STRING)||this.peek(ye.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const n=this.parseConstDirectives(),r=this.many(ye.BRACE_L,this.parseOperationTypeDefinition,ye.BRACE_R);return this.node(e,{kind:ae.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(ye.COLON);const n=this.parseNamedType();return this.node(e,{kind:ae.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:ae.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:ae.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(ye.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(ye.BRACE_L,this.parseFieldDefinition,ye.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(ye.COLON);const i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:ae.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(ye.PAREN_L,this.parseInputValueDef,ye.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(ye.COLON);const r=this.parseTypeReference();let i;this.expectOptionalToken(ye.EQUALS)&&(i=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(e,{kind:ae.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:ae.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:ae.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(ye.EQUALS)?this.delimitedMany(ye.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:ae.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(ye.BRACE_L,this.parseEnumValueDefinition,ye.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:ae.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw X(this._lexer.source,this._lexer.token.start,`${Je(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:ae.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(ye.BRACE_L,this.parseInputValueDef,ye.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===ye.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),n=this.optionalMany(ye.BRACE_L,this.parseOperationTypeDefinition,ye.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:ae.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:ae.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:ae.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:ae.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:ae.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:ae.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:ae.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(ye.AT);const n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:ae.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(ye.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(oe,t.value))return t;throw this.unexpected(e)}parseSchemaCoordinate(){const e=this._lexer.token,t=this.expectOptionalToken(ye.AT),n=this.parseName();let r,i;return!t&&this.expectOptionalToken(ye.DOT)&&(r=this.parseName()),(t||r)&&this.expectOptionalToken(ye.PAREN_L)&&(i=this.parseName(),this.expectToken(ye.COLON),this.expectToken(ye.PAREN_R)),t?i?this.node(e,{kind:ae.DIRECTIVE_ARGUMENT_COORDINATE,name:n,argumentName:i}):this.node(e,{kind:ae.DIRECTIVE_COORDINATE,name:n}):r?i?this.node(e,{kind:ae.ARGUMENT_COORDINATE,name:n,fieldName:r,argumentName:i}):this.node(e,{kind:ae.MEMBER_COORDINATE,name:n,memberName:r}):this.node(e,{kind:ae.TYPE_COORDINATE,name:n})}node(e,t){return!0!==this._options.noLocation&&(t.loc=new Z(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw X(this._lexer.source,t.start,`Expected ${et(e)}, found ${Je(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==ye.NAME||t.value!==e)throw X(this._lexer.source,t.start,`Expected "${e}", found ${Je(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===ye.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!=e?e:this._lexer.token;return X(this._lexer.source,t.start,`Unexpected ${Je(t)}.`)}any(e,t,n){this.expectToken(e);const r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);const r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);const n=[];do{n.push(t.call(this))}while(this.expectOptionalToken(e));return n}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==ye.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw X(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}});function rt(e,t){const[n,r]=t?[e,t]:[void 0,e];let i=" Did you mean ";n&&(i+=n+" ");const o=r.map(e=>`"${e}"`);switch(o.length){case 0:return"";case 1:return i+o[0]+"?";case 2:return i+o[0]+" or "+o[1]+"?"}const a=o.slice(0,tt),s=a.pop();return i+a.join(", ")+", or "+s+"?"}var it=a(()=>{tt=5});function ot(e){return e}var at=a(()=>{});function st(e,t){const n=Object.create(null);for(const r of e)n[t(r)]=r;return n}var lt=a(()=>{});function ut(e,t,n){const r=Object.create(null);for(const i of e)r[t(i)]=n(i);return r}var ct=a(()=>{});function dt(e,t){const n=Object.create(null);for(const r of Object.keys(e))n[r]=t(e[r],r);return n}var ft,pt,ht=a(()=>{});function mt(e,t){let n=0,r=0;for(;n<e.length&&r<t.length;){let i=e.charCodeAt(n),o=t.charCodeAt(r);if(gt(i)&&gt(o)){let a=0;do{++n,a=10*a+i-ft,i=e.charCodeAt(n)}while(gt(i)&&a>0);let s=0;do{++r,s=10*s+o-ft,o=t.charCodeAt(r)}while(gt(o)&&s>0);if(a<s)return-1;if(a>s)return 1}else{if(i<o)return-1;if(i>o)return 1;++n,++r}}return e.length-t.length}function gt(e){return!isNaN(e)&&ft<=e&&e<=pt}var vt,yt=a(()=>{ft=48,pt=57});function bt(e,t){const n=Object.create(null),r=new vt(e),i=Math.floor(.4*e.length)+1;for(const o of t){const e=r.measure(o,i);void 0!==e&&(n[o]=e)}return Object.keys(n).sort((e,t)=>{const r=n[e]-n[t];return 0!==r?r:mt(e,t)})}function wt(e){const t=e.length,n=new Array(t);for(let r=0;r<t;++r)n[r]=e.charCodeAt(r);return n}var xt=a(()=>{yt(),vt=class{constructor(e){this._input=e,this._inputLowerCase=e.toLowerCase(),this._inputArray=wt(this._inputLowerCase),this._rows=[new Array(e.length+1).fill(0),new Array(e.length+1).fill(0),new Array(e.length+1).fill(0)]}measure(e,t){if(this._input===e)return 0;const n=e.toLowerCase();if(this._inputLowerCase===n)return 1;let r=wt(n),i=this._inputArray;if(r.length<i.length){const e=r;r=i,i=e}const o=r.length,a=i.length;if(o-a>t)return;const s=this._rows;for(let u=0;u<=a;u++)s[0][u]=u;for(let u=1;u<=o;u++){const e=s[(u-1)%3],n=s[u%3];let o=n[0]=u;for(let t=1;t<=a;t++){const a=r[u-1]===i[t-1]?0:1;let l=Math.min(e[t]+1,n[t-1]+1,e[t-1]+a);if(u>1&&t>1&&r[u-1]===i[t-2]&&r[u-2]===i[t-1]){const e=s[(u-2)%3][t-2];l=Math.min(l,e+1)}l<o&&(o=l),n[t]=l}if(o>t)return}const l=s[o%3][a];return l<=t?l:void 0}}});function Et(e){if(null==e)return Object.create(null);if(null===Object.getPrototypeOf(e))return e;const t=Object.create(null);for(const[n,r]of Object.entries(e))t[n]=r;return t}var kt,Ct,St=a(()=>{});function Tt(e){return Ct[e.charCodeAt(0)]}var _t,Nt=a(()=>{kt=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g,Ct=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"]});function At(e,t,n=ee){const r=new Map;for(const v of Object.values(ae))r.set(v,Dt(t,v));let i,o,a,s=Array.isArray(e),l=[e],u=-1,c=[],d=e;const f=[],p=[];do{u++;const e=u===l.length,v=e&&0!==c.length;if(e){if(o=0===p.length?void 0:f[f.length-1],d=a,a=p.pop(),v)if(s){d=d.slice();let e=0;for(const[t,n]of c){const r=t-e;null===n?(d.splice(r,1),e++):d[r]=n}}else{d={...d};for(const[e,t]of c)d[e]=t}u=i.index,l=i.keys,c=i.edits,s=i.inArray,i=i.prev}else if(a){if(o=s?u:l[u],d=a[o],null==d)continue;f.push(o)}let y;if(!Array.isArray(d)){var h,m;ie(d)||F(!1,`Invalid AST Node: ${Ue(d)}.`);const n=e?null===(h=r.get(d.kind))||void 0===h?void 0:h.leave:null===(m=r.get(d.kind))||void 0===m?void 0:m.enter;if(y=null==n?void 0:n.call(t,d,o,a,f,p),y===_t)break;if(!1===y){if(!e){f.pop();continue}}else if(void 0!==y&&(c.push([o,y]),!e)){if(!ie(y)){f.pop();continue}d=y}}var g;void 0===y&&v&&c.push([o,d]),e?f.pop():(i={inArray:s,index:u,keys:l,edits:c,prev:i},s=Array.isArray(d),l=s?d:null!==(g=n[d.kind])&&void 0!==g?g:[],u=-1,c=[],a&&p.push(a),a=d)}while(void 0!==i);return 0!==c.length?c[c.length-1][1]:e}function Dt(e,t){const n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}var Ot,Lt=a(()=>{P(),Ye(),se(),ue(),_t=Object.freeze({})});function It(e){return At(e,Ot)}function Mt(e,t=""){var n;return null!==(n=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==n?n:""}function Ft(e){return Pt("{\n",Rt(Mt(e,"\n")),"\n}")}function Pt(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function Rt(e){return Pt(" ",e.replace(/\n/g,"\n "))}function jt(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}var Vt=a(()=>{we(),Nt(),Lt(),Ot={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>Mt(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=jt(e.variableDefinitions)?Pt("(\n",Mt(e.variableDefinitions,"\n"),"\n)"):Pt("(",Mt(e.variableDefinitions,", "),")"),n=Pt("",e.description,"\n")+Mt([e.operation,Mt([e.name,t]),Mt(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r,description:i})=>Pt("",i,"\n")+e+": "+t+Pt(" = ",n)+Pt(" ",Mt(r," "))},SelectionSet:{leave:({selections:e})=>Ft(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){const o=Pt("",e,": ")+t;let a=o+Pt("(",Mt(n,", "),")");return a.length>80&&(a=o+Pt("(\n",Rt(Mt(n,"\n")),"\n)")),Mt([a,Mt(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Pt(" ",Mt(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>Mt(["...",Pt("on ",e),Mt(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i,description:o})=>Pt("",o,"\n")+`fragment ${e}${Pt("(",Mt(n,", "),")")} on ${t} ${Pt("",Mt(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?function(e){const t=e.replace(/"""/g,'\\"""'),n=t.split(/\r\n|[\n\r]/g),r=1===n.length,i=n.length>1&&n.slice(1).every(e=>0===e.length||ce(e.charCodeAt(0))),o=t.endsWith('\\"""'),a=e.endsWith('"')&&!o,s=e.endsWith("\\"),l=a||s,u=!r||e.length>70||l||i||o;let c="";const d=r&&ce(e.charCodeAt(0));return(u&&!d||i)&&(c+="\n"),c+=t,(u||l)&&(c+="\n"),'"""'+c+'"""'}(e):`"${e.replace(kt,Tt)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+Mt(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+Mt(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Pt("(",Mt(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>Pt("",e,"\n")+Mt(["schema",Mt(t," "),Ft(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>Pt("",e,"\n")+Mt(["scalar",t,Mt(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Pt("",e,"\n")+Mt(["type",t,Pt("implements ",Mt(n," & ")),Mt(r," "),Ft(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>Pt("",e,"\n")+t+(jt(n)?Pt("(\n",Rt(Mt(n,"\n")),"\n)"):Pt("(",Mt(n,", "),")"))+": "+r+Pt(" ",Mt(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>Pt("",e,"\n")+Mt([t+": "+n,Pt("= ",r),Mt(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>Pt("",e,"\n")+Mt(["interface",t,Pt("implements ",Mt(n," & ")),Mt(r," "),Ft(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>Pt("",e,"\n")+Mt(["union",t,Mt(n," "),Pt("= ",Mt(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>Pt("",e,"\n")+Mt(["enum",t,Mt(n," "),Ft(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>Pt("",e,"\n")+Mt([t,Mt(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>Pt("",e,"\n")+Mt(["input",t,Mt(n," "),Ft(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>Pt("",e,"\n")+"directive @"+t+(jt(n)?Pt("(\n",Rt(Mt(n,"\n")),"\n)"):Pt("(",Mt(n,", "),")"))+(r?" repeatable":"")+" on "+Mt(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>Mt(["extend schema",Mt(e," "),Ft(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>Mt(["extend scalar",e,Mt(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Mt(["extend type",e,Pt("implements ",Mt(t," & ")),Mt(n," "),Ft(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>Mt(["extend interface",e,Pt("implements ",Mt(t," & ")),Mt(n," "),Ft(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>Mt(["extend union",e,Mt(t," "),Pt("= ",Mt(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>Mt(["extend enum",e,Mt(t," "),Ft(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>Mt(["extend input",e,Mt(t," "),Ft(n)]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>Mt([e,Pt(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:n})=>Mt([e,Pt(".",t),Pt("(",n,":)")])},DirectiveCoordinate:{leave:({name:e})=>Mt(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>Mt(["@",e,Pt("(",t,":)")])}}});function Bt(e,t){switch(e.kind){case ae.NULL:return null;case ae.INT:return parseInt(e.value,10);case ae.FLOAT:return parseFloat(e.value);case ae.STRING:case ae.ENUM:case ae.BOOLEAN:return e.value;case ae.LIST:return e.values.map(e=>Bt(e,t));case ae.OBJECT:return ut(e.fields,e=>e.name.value,e=>Bt(e.value,t));case ae.VARIABLE:return null==t?void 0:t[e.name.value]}}var zt=a(()=>{ct(),ue()});function $t(e){if(null!=e||F(!1,"Must provide name."),"string"==typeof e||F(!1,"Expected name to be a string."),0===e.length)throw new G("Expected name to be a non-empty string.");for(let t=1;t<e.length;++t)if(!he(e.charCodeAt(t)))throw new G(`Names must only contain [_a-zA-Z0-9] but "${e}" does not.`);if(!pe(e.charCodeAt(0)))throw new G(`Names must start with [_a-zA-Z] but "${e}" does not.`);return e}function Ut(e){if("true"===e||"false"===e||"null"===e)throw new G(`Enum values cannot be named: ${e}`);return $t(e)}var Ht,Wt,qt,Gt,Kt,Yt,Qt,Xt,Zt=a(()=>{P(),Q(),me()});function Jt(e){return en(e)||tn(e)||nn(e)||rn(e)||on(e)||an(e)||sn(e)||ln(e)}function en(e){return qe(e,qt)}function tn(e){return qe(e,Gt)}function nn(e){return qe(e,Kt)}function rn(e){return qe(e,Yt)}function on(e){return qe(e,Qt)}function an(e){return qe(e,Xt)}function sn(e){return qe(e,Ht)}function ln(e){return qe(e,Wt)}function un(e){return en(e)||on(e)||an(e)||hn(e)&&un(e.ofType)}function cn(e){return en(e)||tn(e)||nn(e)||rn(e)||on(e)||hn(e)&&cn(e.ofType)}function dn(e){return en(e)||on(e)}function fn(e){return tn(e)||nn(e)||rn(e)}function pn(e){return nn(e)||rn(e)}function hn(e){return sn(e)||ln(e)}function mn(e){return Jt(e)&&!ln(e)}function gn(e){if(e)return ln(e)?e.ofType:e}function vn(e){return en(e)||tn(e)||nn(e)||rn(e)||on(e)||an(e)}function yn(e){if(e){let t=e;for(;hn(t);)t=t.ofType;return t}}function bn(e){return"function"==typeof e?e():e}function wn(e){return"function"==typeof e?e():e}function xn(e){var t;const n=bn(null!==(t=e.interfaces)&&void 0!==t?t:[]);return Array.isArray(n)||F(!1,`${e.name} interfaces must be an Array or a function which returns an Array.`),n}function En(e){const t=wn(e.fields);return Cn(t)||F(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),dt(t,(t,n)=>{var r;Cn(t)||F(!1,`${e.name}.${n} field config must be an object.`),null==t.resolve||"function"==typeof t.resolve||F(!1,`${e.name}.${n} field resolver must be a function if provided, but got: ${Ue(t.resolve)}.`);const i=null!==(r=t.args)&&void 0!==r?r:{};return Cn(i)||F(!1,`${e.name}.${n} args must be an object with argument names as keys.`),{name:$t(n),description:t.description,type:t.type,args:kn(i),resolve:t.resolve,subscribe:t.subscribe,deprecationReason:t.deprecationReason,extensions:Et(t.extensions),astNode:t.astNode}})}function kn(e){return Object.entries(e).map(([e,t])=>({name:$t(e),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:Et(t.extensions),astNode:t.astNode}))}function Cn(e){return R(e)&&!Array.isArray(e)}function Sn(e){return dt(e,e=>({description:e.description,type:e.type,args:Tn(e.args),resolve:e.resolve,subscribe:e.subscribe,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function Tn(e){return ut(e,e=>e.name,e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}))}function _n(e){return ln(e.type)&&void 0===e.defaultValue}function Nn(e){const t=bn(e.types);return Array.isArray(t)||F(!1,`Must provide Array of types or a function which returns such an array for Union ${e.name}.`),t}function An(e,t){return rt("the enum value",bt(t,e.getValues().map(e=>e.name)))}function Dn(e,t){return Cn(t)||F(!1,`${e} values must be an object with value names as keys.`),Object.entries(t).map(([t,n])=>(Cn(n)||F(!1,`${e}.${t} must refer to an object with a "value" key representing an internal value but got: ${Ue(n)}.`),{name:Ut(t),description:n.description,value:void 0!==n.value?n.value:t,deprecationReason:n.deprecationReason,extensions:Et(n.extensions),astNode:n.astNode}))}function On(e){const t=wn(e.fields);return Cn(t)||F(!1,`${e.name} fields must be an object with field names as keys or a function which returns such an object.`),dt(t,(t,n)=>(!("resolve"in t)||F(!1,`${e.name}.${n} field has a resolve property, but Input Types cannot define resolvers.`),{name:$t(n),description:t.description,type:t.type,defaultValue:t.defaultValue,deprecationReason:t.deprecationReason,extensions:Et(t.extensions),astNode:t.astNode}))}function Ln(e){return ln(e.type)&&void 0===e.defaultValue}var In=a(()=>{P(),it(),at(),Ye(),Qe(),j(),lt(),ct(),ht(),xt(),St(),Q(),ue(),Vt(),zt(),Zt(),Ht=class{constructor(e){Jt(e)||F(!1,`Expected ${Ue(e)} to be a GraphQL type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLList"}toString(){return"["+String(this.ofType)+"]"}toJSON(){return this.toString()}},Wt=class{constructor(e){mn(e)||F(!1,`Expected ${Ue(e)} to be a GraphQL nullable type.`),this.ofType=e}get[Symbol.toStringTag](){return"GraphQLNonNull"}toString(){return String(this.ofType)+"!"}toJSON(){return this.toString()}},qt=class{constructor(e){var t,n,r,i;const o=null!==(t=e.parseValue)&&void 0!==t?t:ot;this.name=$t(e.name),this.description=e.description,this.specifiedByURL=e.specifiedByURL,this.serialize=null!==(n=e.serialize)&&void 0!==n?n:ot,this.parseValue=o,this.parseLiteral=null!==(r=e.parseLiteral)&&void 0!==r?r:(e,t)=>o(Bt(e,t)),this.extensions=Et(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(i=e.extensionASTNodes)&&void 0!==i?i:[],null==e.specifiedByURL||"string"==typeof e.specifiedByURL||F(!1,`${this.name} must provide "specifiedByURL" as a string, but got: ${Ue(e.specifiedByURL)}.`),null==e.serialize||"function"==typeof e.serialize||F(!1,`${this.name} must provide "serialize" function. If this custom Scalar is also used as an input type, ensure "parseValue" and "parseLiteral" functions are also provided.`),e.parseLiteral&&("function"==typeof e.parseValue&&"function"==typeof e.parseLiteral||F(!1,`${this.name} must provide both "parseValue" and "parseLiteral" functions.`))}get[Symbol.toStringTag](){return"GraphQLScalarType"}toConfig(){return{name:this.name,description:this.description,specifiedByURL:this.specifiedByURL,serialize:this.serialize,parseValue:this.parseValue,parseLiteral:this.parseLiteral,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}},Gt=class{constructor(e){var t;this.name=$t(e.name),this.description=e.description,this.isTypeOf=e.isTypeOf,this.extensions=Et(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=()=>En(e),this._interfaces=()=>xn(e),null==e.isTypeOf||"function"==typeof e.isTypeOf||F(!1,`${this.name} must provide "isTypeOf" as a function, but got: ${Ue(e.isTypeOf)}.`)}get[Symbol.toStringTag](){return"GraphQLObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Sn(this.getFields()),isTypeOf:this.isTypeOf,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}},Kt=class{constructor(e){var t;this.name=$t(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=Et(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._fields=En.bind(void 0,e),this._interfaces=xn.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||F(!1,`${this.name} must provide "resolveType" as a function, but got: ${Ue(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLInterfaceType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}getInterfaces(){return"function"==typeof this._interfaces&&(this._interfaces=this._interfaces()),this._interfaces}toConfig(){return{name:this.name,description:this.description,interfaces:this.getInterfaces(),fields:Sn(this.getFields()),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}},Yt=class{constructor(e){var t;this.name=$t(e.name),this.description=e.description,this.resolveType=e.resolveType,this.extensions=Et(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._types=Nn.bind(void 0,e),null==e.resolveType||"function"==typeof e.resolveType||F(!1,`${this.name} must provide "resolveType" as a function, but got: ${Ue(e.resolveType)}.`)}get[Symbol.toStringTag](){return"GraphQLUnionType"}getTypes(){return"function"==typeof this._types&&(this._types=this._types()),this._types}toConfig(){return{name:this.name,description:this.description,types:this.getTypes(),resolveType:this.resolveType,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}},Qt=class{constructor(e){var t;this.name=$t(e.name),this.description=e.description,this.extensions=Et(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._values="function"==typeof e.values?e.values:Dn(this.name,e.values),this._valueLookup=null,this._nameLookup=null}get[Symbol.toStringTag](){return"GraphQLEnumType"}getValues(){return"function"==typeof this._values&&(this._values=Dn(this.name,this._values())),this._values}getValue(e){return null===this._nameLookup&&(this._nameLookup=st(this.getValues(),e=>e.name)),this._nameLookup[e]}serialize(e){null===this._valueLookup&&(this._valueLookup=new Map(this.getValues().map(e=>[e.value,e])));const t=this._valueLookup.get(e);if(void 0===t)throw new G(`Enum "${this.name}" cannot represent value: ${Ue(e)}`);return t.name}parseValue(e){if("string"!=typeof e){const t=Ue(e);throw new G(`Enum "${this.name}" cannot represent non-string value: ${t}.`+An(this,t))}const t=this.getValue(e);if(null==t)throw new G(`Value "${e}" does not exist in "${this.name}" enum.`+An(this,e));return t.value}parseLiteral(e,t){if(e.kind!==ae.ENUM){const t=It(e);throw new G(`Enum "${this.name}" cannot represent non-enum value: ${t}.`+An(this,t),{nodes:e})}const n=this.getValue(e.value);if(null==n){const t=It(e);throw new G(`Value "${t}" does not exist in "${this.name}" enum.`+An(this,t),{nodes:e})}return n.value}toConfig(){const e=ut(this.getValues(),e=>e.name,e=>({description:e.description,value:e.value,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,values:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes}}toString(){return this.name}toJSON(){return this.toString()}},Xt=class{constructor(e){var t,n;this.name=$t(e.name),this.description=e.description,this.extensions=Et(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this.isOneOf=null!==(n=e.isOneOf)&&void 0!==n&&n,this._fields=On.bind(void 0,e)}get[Symbol.toStringTag](){return"GraphQLInputObjectType"}getFields(){return"function"==typeof this._fields&&(this._fields=this._fields()),this._fields}toConfig(){const e=dt(this.getFields(),e=>({description:e.description,type:e.type,defaultValue:e.defaultValue,deprecationReason:e.deprecationReason,extensions:e.extensions,astNode:e.astNode}));return{name:this.name,description:this.description,fields:e,extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,isOneOf:this.isOneOf}}toString(){return this.name}toJSON(){return this.toString()}}});function Mn(e,t){return e===t||(ln(e)&&ln(t)||!(!sn(e)||!sn(t)))&&Mn(e.ofType,t.ofType)}function Fn(e,t,n){return t===n||(ln(n)?!!ln(t)&&Fn(e,t.ofType,n.ofType):ln(t)?Fn(e,t.ofType,n):sn(n)?!!sn(t)&&Fn(e,t.ofType,n.ofType):!sn(t)&&pn(n)&&(nn(t)||tn(t))&&e.isSubType(n,t))}function Pn(e,t,n){return t===n||(pn(t)?pn(n)?e.getPossibleTypes(t).some(t=>e.isSubType(n,t)):e.isSubType(t,n):!!pn(n)&&e.isSubType(n,t))}var Rn,jn,Vn,Bn,zn,$n,Un=a(()=>{In()});function Hn(e){if(R(e)){if("function"==typeof e.valueOf){const t=e.valueOf();if(!R(t))return t}if("function"==typeof e.toJSON)return e.toJSON()}return e}var Wn,qn,Gn,Kn,Yn,Qn,Xn,Zn=a(()=>{Ye(),j(),Q(),ue(),Vt(),In(),Rn=new qt({name:"Int",description:"The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",serialize(e){const t=Hn(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isInteger(n))throw new G(`Int cannot represent non-integer value: ${Ue(t)}`);if(n>2147483647||n<-2147483648)throw new G("Int cannot represent non 32-bit signed integer value: "+Ue(t));return n},parseValue(e){if("number"!=typeof e||!Number.isInteger(e))throw new G(`Int cannot represent non-integer value: ${Ue(e)}`);if(e>2147483647||e<-2147483648)throw new G(`Int cannot represent non 32-bit signed integer value: ${e}`);return e},parseLiteral(e){if(e.kind!==ae.INT)throw new G(`Int cannot represent non-integer value: ${It(e)}`,{nodes:e});const t=parseInt(e.value,10);if(t>2147483647||t<-2147483648)throw new G(`Int cannot represent non 32-bit signed integer value: ${e.value}`,{nodes:e});return t}}),jn=new qt({name:"Float",description:"The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",serialize(e){const t=Hn(e);if("boolean"==typeof t)return t?1:0;let n=t;if("string"==typeof t&&""!==t&&(n=Number(t)),"number"!=typeof n||!Number.isFinite(n))throw new G(`Float cannot represent non numeric value: ${Ue(t)}`);return n},parseValue(e){if("number"!=typeof e||!Number.isFinite(e))throw new G(`Float cannot represent non numeric value: ${Ue(e)}`);return e},parseLiteral(e){if(e.kind!==ae.FLOAT&&e.kind!==ae.INT)throw new G(`Float cannot represent non numeric value: ${It(e)}`,e);return parseFloat(e.value)}}),Vn=new qt({name:"String",description:"The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",serialize(e){const t=Hn(e);if("string"==typeof t)return t;if("boolean"==typeof t)return t?"true":"false";if("number"==typeof t&&Number.isFinite(t))return t.toString();throw new G(`String cannot represent value: ${Ue(e)}`)},parseValue(e){if("string"!=typeof e)throw new G(`String cannot represent a non string value: ${Ue(e)}`);return e},parseLiteral(e){if(e.kind!==ae.STRING)throw new G(`String cannot represent a non string value: ${It(e)}`,{nodes:e});return e.value}}),Bn=new qt({name:"Boolean",description:"The `Boolean` scalar type represents `true` or `false`.",serialize(e){const t=Hn(e);if("boolean"==typeof t)return t;if(Number.isFinite(t))return 0!==t;throw new G(`Boolean cannot represent a non boolean value: ${Ue(t)}`)},parseValue(e){if("boolean"!=typeof e)throw new G(`Boolean cannot represent a non boolean value: ${Ue(e)}`);return e},parseLiteral(e){if(e.kind!==ae.BOOLEAN)throw new G(`Boolean cannot represent a non boolean value: ${It(e)}`,{nodes:e});return e.value}}),zn=new qt({name:"ID",description:'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',serialize(e){const t=Hn(e);if("string"==typeof t)return t;if(Number.isInteger(t))return String(t);throw new G(`ID cannot represent value: ${Ue(e)}`)},parseValue(e){if("string"==typeof e)return e;if("number"==typeof e&&Number.isInteger(e))return e.toString();throw new G(`ID cannot represent value: ${Ue(e)}`)},parseLiteral(e){if(e.kind!==ae.STRING&&e.kind!==ae.INT)throw new G("ID cannot represent a non-string and non-integer value: "+It(e),{nodes:e});return e.value}}),$n=Object.freeze([Vn,Rn,jn,Bn,zn])});function Jn(e){return qe(e,Wn)}var er,tr=a(()=>{P(),Qe(),j(),St(),le(),Zt(),In(),Zn(),Wn=class{constructor(e){var t,n;this.name=$t(e.name),this.description=e.description,this.locations=e.locations,this.isRepeatable=null!==(t=e.isRepeatable)&&void 0!==t&&t,this.extensions=Et(e.extensions),this.astNode=e.astNode,Array.isArray(e.locations)||F(!1,`@${e.name} locations must be an Array.`);const r=null!==(n=e.args)&&void 0!==n?n:{};R(r)&&!Array.isArray(r)||F(!1,`@${e.name} args must be an object with argument names as keys.`),this.args=kn(r)}get[Symbol.toStringTag](){return"GraphQLDirective"}toConfig(){return{name:this.name,description:this.description,locations:this.locations,args:Tn(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}}toString(){return"@"+this.name}toJSON(){return this.toString()}},qn=new Wn({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[oe.FIELD,oe.FRAGMENT_SPREAD,oe.INLINE_FRAGMENT],args:{if:{type:new Wt(Bn),description:"Included when true."}}}),Gn=new Wn({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[oe.FIELD,oe.FRAGMENT_SPREAD,oe.INLINE_FRAGMENT],args:{if:{type:new Wt(Bn),description:"Skipped when true."}}}),Kn=new Wn({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[oe.FIELD_DEFINITION,oe.ARGUMENT_DEFINITION,oe.INPUT_FIELD_DEFINITION,oe.ENUM_VALUE],args:{reason:{type:Vn,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",defaultValue:"No longer supported"}}}),Yn=new Wn({name:"specifiedBy",description:"Exposes a URL that specifies the behavior of this scalar.",locations:[oe.SCALAR],args:{url:{type:new Wt(Vn),description:"The URL that specifies the behavior of this scalar."}}}),Qn=new Wn({name:"oneOf",description:"Indicates exactly one field must be supplied and this field must not be `null`.",locations:[oe.INPUT_OBJECT],args:{}}),Xn=Object.freeze([qn,Gn,Kn,Yn,Qn])}),nr=a(()=>{});function rr(e,t){if(ln(t)){const n=rr(e,t.ofType);return(null==n?void 0:n.kind)===ae.NULL?null:n}if(null===e)return{kind:ae.NULL};if(void 0===e)return null;if(sn(t)){const r=t.ofType;if("object"==typeof(n=e)&&"function"==typeof(null==n?void 0:n[Symbol.iterator])){const t=[];for(const n of e){const e=rr(n,r);null!=e&&t.push(e)}return{kind:ae.LIST,values:t}}return rr(e,r)}var n;if(an(t)){if(!R(e))return null;const n=[];for(const r of Object.values(t.getFields())){const t=rr(e[r.name],r.type);t&&n.push({kind:ae.OBJECT_FIELD,name:{kind:ae.NAME,value:r.name},value:t})}return{kind:ae.OBJECT,fields:n}}if(dn(t)){const n=t.serialize(e);if(null==n)return null;if("boolean"==typeof n)return{kind:ae.BOOLEAN,value:n};if("number"==typeof n&&Number.isFinite(n)){const e=String(n);return er.test(e)?{kind:ae.INT,value:e}:{kind:ae.FLOAT,value:e}}if("string"==typeof n)return on(t)?{kind:ae.ENUM,value:n}:t===zn&&er.test(n)?{kind:ae.INT,value:n}:{kind:ae.STRING,value:n};throw new TypeError(`Cannot convert value to AST: ${Ue(n)}.`)}V(!1,"Unexpected input type: "+Ue(t))}var ir,or,ar,sr,lr,ur,cr,dr,fr,pr,hr,mr,gr,vr=a(()=>{Ye(),z(),nr(),j(),ue(),In(),Zn(),er=/^-?(?:0|[1-9][0-9]*)$/});function yr(e){return gr.some(({name:t})=>e.name===t)}var br,wr=a(()=>{Ye(),z(),le(),Vt(),vr(),In(),Zn(),ir=new Gt({name:"__Schema",description:"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",fields:()=>({description:{type:Vn,resolve:e=>e.description},types:{description:"A list of all types supported by this server.",type:new Wt(new Ht(new Wt(sr))),resolve:e=>Object.values(e.getTypeMap())},queryType:{description:"The type that query operations will be rooted at.",type:new Wt(sr),resolve:e=>e.getQueryType()},mutationType:{description:"If this server supports mutation, the type that mutation operations will be rooted at.",type:sr,resolve:e=>e.getMutationType()},subscriptionType:{description:"If this server support subscription, the type that subscription operations will be rooted at.",type:sr,resolve:e=>e.getSubscriptionType()},directives:{description:"A list of all directives supported by this server.",type:new Wt(new Ht(new Wt(or))),resolve:e=>e.getDirectives()}})}),or=new Gt({name:"__Directive",description:"A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",fields:()=>({name:{type:new Wt(Vn),resolve:e=>e.name},description:{type:Vn,resolve:e=>e.description},isRepeatable:{type:new Wt(Bn),resolve:e=>e.isRepeatable},locations:{type:new Wt(new Ht(new Wt(ar))),resolve:e=>e.locations},args:{type:new Wt(new Ht(new Wt(ur))),args:{includeDeprecated:{type:Bn,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)}})}),ar=new Qt({name:"__DirectiveLocation",description:"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",values:{QUERY:{value:oe.QUERY,description:"Location adjacent to a query operation."},MUTATION:{value:oe.MUTATION,description:"Location adjacent to a mutation operation."},SUBSCRIPTION:{value:oe.SUBSCRIPTION,description:"Location adjacent to a subscription operation."},FIELD:{value:oe.FIELD,description:"Location adjacent to a field."},FRAGMENT_DEFINITION:{value:oe.FRAGMENT_DEFINITION,description:"Location adjacent to a fragment definition."},FRAGMENT_SPREAD:{value:oe.FRAGMENT_SPREAD,description:"Location adjacent to a fragment spread."},INLINE_FRAGMENT:{value:oe.INLINE_FRAGMENT,description:"Location adjacent to an inline fragment."},VARIABLE_DEFINITION:{value:oe.VARIABLE_DEFINITION,description:"Location adjacent to a variable definition."},SCHEMA:{value:oe.SCHEMA,description:"Location adjacent to a schema definition."},SCALAR:{value:oe.SCALAR,description:"Location adjacent to a scalar definition."},OBJECT:{value:oe.OBJECT,description:"Location adjacent to an object type definition."},FIELD_DEFINITION:{value:oe.FIELD_DEFINITION,description:"Location adjacent to a field definition."},ARGUMENT_DEFINITION:{value:oe.ARGUMENT_DEFINITION,description:"Location adjacent to an argument definition."},INTERFACE:{value:oe.INTERFACE,description:"Location adjacent to an interface definition."},UNION:{value:oe.UNION,description:"Location adjacent to a union definition."},ENUM:{value:oe.ENUM,description:"Location adjacent to an enum definition."},ENUM_VALUE:{value:oe.ENUM_VALUE,description:"Location adjacent to an enum value definition."},INPUT_OBJECT:{value:oe.INPUT_OBJECT,description:"Location adjacent to an input object type definition."},INPUT_FIELD_DEFINITION:{value:oe.INPUT_FIELD_DEFINITION,description:"Location adjacent to an input object field definition."}}}),sr=new Gt({name:"__Type",description:"The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",fields:()=>({kind:{type:new Wt(fr),resolve:e=>en(e)?dr.SCALAR:tn(e)?dr.OBJECT:nn(e)?dr.INTERFACE:rn(e)?dr.UNION:on(e)?dr.ENUM:an(e)?dr.INPUT_OBJECT:sn(e)?dr.LIST:ln(e)?dr.NON_NULL:void V(!1,`Unexpected type: "${Ue(e)}".`)},name:{type:Vn,resolve:e=>"name"in e?e.name:void 0},description:{type:Vn,resolve:e=>"description"in e?e.description:void 0},specifiedByURL:{type:Vn,resolve:e=>"specifiedByURL"in e?e.specifiedByURL:void 0},fields:{type:new Ht(new Wt(lr)),args:{includeDeprecated:{type:Bn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(tn(e)||nn(e)){const n=Object.values(e.getFields());return t?n:n.filter(e=>null==e.deprecationReason)}}},interfaces:{type:new Ht(new Wt(sr)),resolve(e){if(tn(e)||nn(e))return e.getInterfaces()}},possibleTypes:{type:new Ht(new Wt(sr)),resolve(e,t,n,{schema:r}){if(pn(e))return r.getPossibleTypes(e)}},enumValues:{type:new Ht(new Wt(cr)),args:{includeDeprecated:{type:Bn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(on(e)){const n=e.getValues();return t?n:n.filter(e=>null==e.deprecationReason)}}},inputFields:{type:new Ht(new Wt(ur)),args:{includeDeprecated:{type:Bn,defaultValue:!1}},resolve(e,{includeDeprecated:t}){if(an(e)){const n=Object.values(e.getFields());return t?n:n.filter(e=>null==e.deprecationReason)}}},ofType:{type:sr,resolve:e=>"ofType"in e?e.ofType:void 0},isOneOf:{type:Bn,resolve:e=>{if(an(e))return e.isOneOf}}})}),lr=new Gt({name:"__Field",description:"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",fields:()=>({name:{type:new Wt(Vn),resolve:e=>e.name},description:{type:Vn,resolve:e=>e.description},args:{type:new Wt(new Ht(new Wt(ur))),args:{includeDeprecated:{type:Bn,defaultValue:!1}},resolve:(e,{includeDeprecated:t})=>t?e.args:e.args.filter(e=>null==e.deprecationReason)},type:{type:new Wt(sr),resolve:e=>e.type},isDeprecated:{type:new Wt(Bn),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:Vn,resolve:e=>e.deprecationReason}})}),ur=new Gt({name:"__InputValue",description:"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",fields:()=>({name:{type:new Wt(Vn),resolve:e=>e.name},description:{type:Vn,resolve:e=>e.description},type:{type:new Wt(sr),resolve:e=>e.type},defaultValue:{type:Vn,description:"A GraphQL-formatted string representing the default value for this input value.",resolve(e){const{type:t,defaultValue:n}=e,r=rr(n,t);return r?It(r):null}},isDeprecated:{type:new Wt(Bn),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:Vn,resolve:e=>e.deprecationReason}})}),cr=new Gt({name:"__EnumValue",description:"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",fields:()=>({name:{type:new Wt(Vn),resolve:e=>e.name},description:{type:Vn,resolve:e=>e.description},isDeprecated:{type:new Wt(Bn),resolve:e=>null!=e.deprecationReason},deprecationReason:{type:Vn,resolve:e=>e.deprecationReason}})}),function(e){e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.INPUT_OBJECT="INPUT_OBJECT",e.LIST="LIST",e.NON_NULL="NON_NULL"}(dr||(dr={})),fr=new Qt({name:"__TypeKind",description:"An enum describing what kind of type a given `__Type` is.",values:{SCALAR:{value:dr.SCALAR,description:"Indicates this type is a scalar."},OBJECT:{value:dr.OBJECT,description:"Indicates this type is an object. `fields` and `interfaces` are valid fields."},INTERFACE:{value:dr.INTERFACE,description:"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."},UNION:{value:dr.UNION,description:"Indicates this type is a union. `possibleTypes` is a valid field."},ENUM:{value:dr.ENUM,description:"Indicates this type is an enum. `enumValues` is a valid field."},INPUT_OBJECT:{value:dr.INPUT_OBJECT,description:"Indicates this type is an input object. `inputFields` is a valid field."},LIST:{value:dr.LIST,description:"Indicates this type is a list. `ofType` is a valid field."},NON_NULL:{value:dr.NON_NULL,description:"Indicates this type is a non-null. `ofType` is a valid field."}}}),pr={name:"__schema",type:new Wt(ir),description:"Access the current type schema of this server.",args:[],resolve:(e,t,n,{schema:r})=>r,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},hr={name:"__type",type:sr,description:"Request the type information of a single type.",args:[{name:"name",description:void 0,type:new Wt(Vn),defaultValue:void 0,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0}],resolve:(e,{name:t},n,{schema:r})=>r.getType(t),deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},mr={name:"__typename",type:new Wt(Vn),description:"The name of the current Object type at runtime.",args:[],resolve:(e,t,n,{parentType:r})=>r.name,deprecationReason:void 0,extensions:Object.create(null),astNode:void 0},gr=Object.freeze([ir,or,ar,sr,lr,ur,cr,fr])});function xr(e){return qe(e,br)}function Er(e,t){const n=yn(e);if(!t.has(n))if(t.add(n),rn(n))for(const r of n.getTypes())Er(r,t);else if(tn(n)||nn(n)){for(const e of n.getInterfaces())Er(e,t);for(const e of Object.values(n.getFields())){Er(e.type,t);for(const n of e.args)Er(n.type,t)}}else if(an(n))for(const r of Object.values(n.getFields()))Er(r.type,t);return t}var kr,Cr=a(()=>{P(),Ye(),Qe(),j(),St(),se(),In(),tr(),wr(),br=class{constructor(e){var t,n;this.__validationErrors=!0===e.assumeValid?[]:void 0,R(e)||F(!1,"Must provide configuration object."),!e.types||Array.isArray(e.types)||F(!1,`"types" must be Array if provided but got: ${Ue(e.types)}.`),!e.directives||Array.isArray(e.directives)||F(!1,`"directives" must be Array if provided but got: ${Ue(e.directives)}.`),this.description=e.description,this.extensions=Et(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=null!==(t=e.extensionASTNodes)&&void 0!==t?t:[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=null!==(n=e.directives)&&void 0!==n?n:Xn;const r=new Set(e.types);if(null!=e.types)for(const i of e.types)r.delete(i),Er(i,r);null!=this._queryType&&Er(this._queryType,r),null!=this._mutationType&&Er(this._mutationType,r),null!=this._subscriptionType&&Er(this._subscriptionType,r);for(const i of this._directives)if(Jn(i))for(const e of i.args)Er(e.type,r);Er(ir,r),this._typeMap=Object.create(null),this._subTypeMap=Object.create(null),this._implementationsMap=Object.create(null);for(const i of r){if(null==i)continue;const e=i.name;if(e||F(!1,"One of the provided types for building the Schema is missing a name."),void 0!==this._typeMap[e])throw new Error(`Schema must contain uniquely named types but contains multiple types named "${e}".`);if(this._typeMap[e]=i,nn(i)){for(const t of i.getInterfaces())if(nn(t)){let e=this._implementationsMap[t.name];void 0===e&&(e=this._implementationsMap[t.name]={objects:[],interfaces:[]}),e.interfaces.push(i)}}else if(tn(i))for(const t of i.getInterfaces())if(nn(t)){let e=this._implementationsMap[t.name];void 0===e&&(e=this._implementationsMap[t.name]={objects:[],interfaces:[]}),e.objects.push(i)}}}get[Symbol.toStringTag](){return"GraphQLSchema"}getQueryType(){return this._queryType}getMutationType(){return this._mutationType}getSubscriptionType(){return this._subscriptionType}getRootType(e){switch(e){case ne.QUERY:return this.getQueryType();case ne.MUTATION:return this.getMutationType();case ne.SUBSCRIPTION:return this.getSubscriptionType()}}getTypeMap(){return this._typeMap}getType(e){return this.getTypeMap()[e]}getPossibleTypes(e){return rn(e)?e.getTypes():this.getImplementations(e).objects}getImplementations(e){const t=this._implementationsMap[e.name];return null!=t?t:{objects:[],interfaces:[]}}isSubType(e,t){let n=this._subTypeMap[e.name];if(void 0===n){if(n=Object.create(null),rn(e))for(const t of e.getTypes())n[t.name]=!0;else{const t=this.getImplementations(e);for(const e of t.objects)n[e.name]=!0;for(const e of t.interfaces)n[e.name]=!0}this._subTypeMap[e.name]=n}return void 0!==n[t.name]}getDirectives(){return this._directives}getDirective(e){return this.getDirectives().find(t=>t.name===e)}toConfig(){return{description:this.description,query:this.getQueryType(),mutation:this.getMutationType(),subscription:this.getSubscriptionType(),types:Object.values(this.getTypeMap()),directives:this.getDirectives(),extensions:this.extensions,astNode:this.astNode,extensionASTNodes:this.extensionASTNodes,assumeValid:void 0!==this.__validationErrors}}}});function Sr(e){if(function(e){if(!xr(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL schema.`)}(e),e.__validationErrors)return e.__validationErrors;const t=new kr(e);!function(e){const t=e.schema,n=t.getQueryType();if(n){if(!tn(n)){var r;e.reportError(`Query root type must be Object type, it cannot be ${Ue(n)}.`,null!==(r=Tr(t,ne.QUERY))&&void 0!==r?r:n.astNode)}}else e.reportError("Query root type must be provided.",t.astNode);const i=t.getMutationType();var o;i&&!tn(i)&&e.reportError(`Mutation root type must be Object type if provided, it cannot be ${Ue(i)}.`,null!==(o=Tr(t,ne.MUTATION))&&void 0!==o?o:i.astNode);const a=t.getSubscriptionType();var s;a&&!tn(a)&&e.reportError(`Subscription root type must be Object type if provided, it cannot be ${Ue(a)}.`,null!==(s=Tr(t,ne.SUBSCRIPTION))&&void 0!==s?s:a.astNode)}(t),function(e){for(const n of e.schema.getDirectives())if(Jn(n)){_r(e,n),0===n.locations.length&&e.reportError(`Directive @${n.name} must include 1 or more locations.`,n.astNode);for(const r of n.args){var t;_r(e,r),un(r.type)||e.reportError(`The type of @${n.name}(${r.name}:) must be Input Type but got: ${Ue(r.type)}.`,r.astNode),_n(r)&&null!=r.deprecationReason&&e.reportError(`Required argument @${n.name}(${r.name}:) cannot be deprecated.`,[jr(r.astNode),null===(t=r.astNode)||void 0===t?void 0:t.type])}}else e.reportError(`Expected directive but got: ${Ue(n)}.`,null==n?void 0:n.astNode)}(t),function(e){const t=function(e){const t=Object.create(null),n=[],r=Object.create(null);return function i(o){if(t[o.name])return;t[o.name]=!0,r[o.name]=n.length;const a=Object.values(o.getFields());for(const t of a)if(ln(t.type)&&an(t.type.ofType)){const o=t.type.ofType,a=r[o.name];if(n.push(t),void 0===a)i(o);else{const t=n.slice(a),r=t.map(e=>e.name).join(".");e.reportError(`Cannot reference Input Object "${o.name}" within itself through a series of non-null fields: "${r}".`,t.map(e=>e.astNode))}n.pop()}r[o.name]=void 0}}(e),n=e.schema.getTypeMap();for(const r of Object.values(n))vn(r)?(yr(r)||_r(e,r),tn(r)||nn(r)?(Nr(e,r),Ar(e,r)):rn(r)?Lr(e,r):on(r)?Ir(e,r):an(r)&&(Mr(e,r),t(r))):e.reportError(`Expected GraphQL named type but got: ${Ue(r)}.`,r.astNode)}(t);const n=t.getErrors();return e.__validationErrors=n,n}function Tr(e,t){var n;return null===(n=[e.astNode,...e.extensionASTNodes].flatMap(e=>{var t;return null!==(t=null==e?void 0:e.operationTypes)&&void 0!==t?t:[]}).find(e=>e.operation===t))||void 0===n?void 0:n.type}function _r(e,t){t.name.startsWith("__")&&e.reportError(`Name "${t.name}" must not begin with "__", which is reserved by GraphQL introspection.`,t.astNode)}function Nr(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const a of n){var r;_r(e,a),cn(a.type)||e.reportError(`The type of ${t.name}.${a.name} must be Output Type but got: ${Ue(a.type)}.`,null===(r=a.astNode)||void 0===r?void 0:r.type);for(const n of a.args){const r=n.name;var i,o;_r(e,n),un(n.type)||e.reportError(`The type of ${t.name}.${a.name}(${r}:) must be Input Type but got: ${Ue(n.type)}.`,null===(i=n.astNode)||void 0===i?void 0:i.type),_n(n)&&null!=n.deprecationReason&&e.reportError(`Required argument ${t.name}.${a.name}(${r}:) cannot be deprecated.`,[jr(n.astNode),null===(o=n.astNode)||void 0===o?void 0:o.type])}}}function Ar(e,t){const n=Object.create(null);for(const r of t.getInterfaces())nn(r)?t!==r?n[r.name]?e.reportError(`Type ${t.name} can only implement ${r.name} once.`,Pr(t,r)):(n[r.name]=!0,Or(e,t,r),Dr(e,t,r)):e.reportError(`Type ${t.name} cannot implement itself because it would create a circular reference.`,Pr(t,r)):e.reportError(`Type ${Ue(t)} must only implement Interface types, it cannot implement ${Ue(r)}.`,Pr(t,r))}function Dr(e,t,n){const r=t.getFields();for(const l of Object.values(n.getFields())){const u=l.name,c=r[u];if(c){var i,o;Fn(e.schema,c.type,l.type)||e.reportError(`Interface field ${n.name}.${u} expects type ${Ue(l.type)} but ${t.name}.${u} is type ${Ue(c.type)}.`,[null===(i=l.astNode)||void 0===i?void 0:i.type,null===(o=c.astNode)||void 0===o?void 0:o.type]);for(const r of l.args){const i=r.name,o=c.args.find(e=>e.name===i);var a,s;o?Mn(r.type,o.type)||e.reportError(`Interface field argument ${n.name}.${u}(${i}:) expects type ${Ue(r.type)} but ${t.name}.${u}(${i}:) is type ${Ue(o.type)}.`,[null===(a=r.astNode)||void 0===a?void 0:a.type,null===(s=o.astNode)||void 0===s?void 0:s.type]):e.reportError(`Interface field argument ${n.name}.${u}(${i}:) expected but ${t.name}.${u} does not provide it.`,[r.astNode,c.astNode])}for(const r of c.args){const i=r.name;!l.args.find(e=>e.name===i)&&_n(r)&&e.reportError(`Object field ${t.name}.${u} includes required argument ${i} that is missing from the Interface field ${n.name}.${u}.`,[r.astNode,l.astNode])}}else e.reportError(`Interface field ${n.name}.${u} expected but ${t.name} does not provide it.`,[l.astNode,t.astNode,...t.extensionASTNodes])}}function Or(e,t,n){const r=t.getInterfaces();for(const i of n.getInterfaces())r.includes(i)||e.reportError(i===t?`Type ${t.name} cannot implement ${n.name} because it would create a circular reference.`:`Type ${t.name} must implement ${i.name} because it is implemented by ${n.name}.`,[...Pr(n,i),...Pr(t,n)])}function Lr(e,t){const n=t.getTypes();0===n.length&&e.reportError(`Union type ${t.name} must define one or more member types.`,[t.astNode,...t.extensionASTNodes]);const r=Object.create(null);for(const i of n)r[i.name]?e.reportError(`Union type ${t.name} can only include type ${i.name} once.`,Rr(t,i.name)):(r[i.name]=!0,tn(i)||e.reportError(`Union type ${t.name} can only include Object types, it cannot include ${Ue(i)}.`,Rr(t,String(i))))}function Ir(e,t){const n=t.getValues();0===n.length&&e.reportError(`Enum type ${t.name} must define one or more values.`,[t.astNode,...t.extensionASTNodes]);for(const r of n)_r(e,r)}function Mr(e,t){const n=Object.values(t.getFields());0===n.length&&e.reportError(`Input Object type ${t.name} must define one or more fields.`,[t.astNode,...t.extensionASTNodes]);for(const o of n){var r,i;_r(e,o),un(o.type)||e.reportError(`The type of ${t.name}.${o.name} must be Input Type but got: ${Ue(o.type)}.`,null===(r=o.astNode)||void 0===r?void 0:r.type),Ln(o)&&null!=o.deprecationReason&&e.reportError(`Required input field ${t.name}.${o.name} cannot be deprecated.`,[jr(o.astNode),null===(i=o.astNode)||void 0===i?void 0:i.type]),t.isOneOf&&Fr(t,o,e)}}function Fr(e,t,n){var r;ln(t.type)&&n.reportError(`OneOf input field ${e.name}.${t.name} must be nullable.`,null===(r=t.astNode)||void 0===r?void 0:r.type),void 0!==t.defaultValue&&n.reportError(`OneOf input field ${e.name}.${t.name} cannot have a default value.`,t.astNode)}function Pr(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap(e=>{var t;return null!==(t=e.interfaces)&&void 0!==t?t:[]}).filter(e=>e.name.value===t.name)}function Rr(e,t){const{astNode:n,extensionASTNodes:r}=e;return(null!=n?[n,...r]:r).flatMap(e=>{var t;return null!==(t=e.types)&&void 0!==t?t:[]}).filter(e=>e.name.value===t)}function jr(e){var t;return null==e||null===(t=e.directives)||void 0===t?void 0:t.find(e=>e.name.value===Kn.name)}var Vr=a(()=>{Ye(),Q(),se(),Un(),In(),tr(),wr(),Cr(),kr=class{constructor(e){this._errors=[],this.schema=e}reportError(e,t){const n=Array.isArray(t)?t.filter(Boolean):t;this._errors.push(new G(e,{nodes:n}))}getErrors(){return this._errors}}});function Br(e,t){switch(t.kind){case ae.LIST_TYPE:{const n=Br(e,t.type);return n&&new Ht(n)}case ae.NON_NULL_TYPE:{const n=Br(e,t.type);return n&&new Wt(n)}case ae.NAMED_TYPE:return e.getType(t.name.value)}}var zr,$r=a(()=>{ue(),In()});function Ur(e,t,n){const r=n.name.value;return r===pr.name&&e.getQueryType()===t?pr:r===hr.name&&e.getQueryType()===t?hr:r===mr.name&&fn(t)?mr:tn(t)||nn(t)?t.getFields()[r]:void 0}function Hr(e,t){return{enter(...n){const r=n[0];e.enter(r);const i=Dt(t,r.kind).enter;if(i){const o=i.apply(t,n);return void 0!==o&&(e.leave(r),ie(o)&&e.enter(o)),o}},leave(...n){const r=n[0],i=Dt(t,r.kind).leave;let o;return i&&(o=i.apply(t,n)),e.leave(r),o}}}var Wr=a(()=>{se(),ue(),Lt(),In(),wr(),$r(),zr=class{constructor(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=null!=n?n:Ur,t&&(un(t)&&this._inputTypeStack.push(t),fn(t)&&this._parentTypeStack.push(t),cn(t)&&this._typeStack.push(t))}get[Symbol.toStringTag](){return"TypeInfo"}getType(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]}getParentType(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]}getInputType(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]}getParentInputType(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]}getFieldDef(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]}getDefaultValue(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]}getDirective(){return this._directive}getArgument(){return this._argument}getEnumValue(){return this._enumValue}enter(e){const t=this._schema;switch(e.kind){case ae.SELECTION_SET:{const e=yn(this.getType());this._parentTypeStack.push(fn(e)?e:void 0);break}case ae.FIELD:{const n=this.getParentType();let r,i;n&&(r=this._getFieldDef(t,n,e),r&&(i=r.type)),this._fieldDefStack.push(r),this._typeStack.push(cn(i)?i:void 0);break}case ae.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case ae.OPERATION_DEFINITION:{const n=t.getRootType(e.operation);this._typeStack.push(tn(n)?n:void 0);break}case ae.INLINE_FRAGMENT:case ae.FRAGMENT_DEFINITION:{const n=e.typeCondition,r=n?Br(t,n):yn(this.getType());this._typeStack.push(cn(r)?r:void 0);break}case ae.VARIABLE_DEFINITION:{const n=Br(t,e.type);this._inputTypeStack.push(un(n)?n:void 0);break}case ae.ARGUMENT:{var n;let t,r;const i=null!==(n=this.getDirective())&&void 0!==n?n:this.getFieldDef();i&&(t=i.args.find(t=>t.name===e.name.value),t&&(r=t.type)),this._argument=t,this._defaultValueStack.push(t?t.defaultValue:void 0),this._inputTypeStack.push(un(r)?r:void 0);break}case ae.LIST:{const e=gn(this.getInputType()),t=sn(e)?e.ofType:e;this._defaultValueStack.push(void 0),this._inputTypeStack.push(un(t)?t:void 0);break}case ae.OBJECT_FIELD:{const t=yn(this.getInputType());let n,r;an(t)&&(r=t.getFields()[e.name.value],r&&(n=r.type)),this._defaultValueStack.push(r?r.defaultValue:void 0),this._inputTypeStack.push(un(n)?n:void 0);break}case ae.ENUM:{const t=yn(this.getInputType());let n;on(t)&&(n=t.getValue(e.value)),this._enumValue=n;break}}}leave(e){switch(e.kind){case ae.SELECTION_SET:this._parentTypeStack.pop();break;case ae.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case ae.DIRECTIVE:this._directive=null;break;case ae.OPERATION_DEFINITION:case ae.INLINE_FRAGMENT:case ae.FRAGMENT_DEFINITION:this._typeStack.pop();break;case ae.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case ae.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case ae.LIST:case ae.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case ae.ENUM:this._enumValue=null}}}});function qr(e){return e.kind===ae.OPERATION_DEFINITION||e.kind===ae.FRAGMENT_DEFINITION}function Gr(e){return e.kind===ae.SCALAR_TYPE_DEFINITION||e.kind===ae.OBJECT_TYPE_DEFINITION||e.kind===ae.INTERFACE_TYPE_DEFINITION||e.kind===ae.UNION_TYPE_DEFINITION||e.kind===ae.ENUM_TYPE_DEFINITION||e.kind===ae.INPUT_OBJECT_TYPE_DEFINITION}function Kr(e){return e.kind===ae.SCALAR_TYPE_EXTENSION||e.kind===ae.OBJECT_TYPE_EXTENSION||e.kind===ae.INTERFACE_TYPE_EXTENSION||e.kind===ae.UNION_TYPE_EXTENSION||e.kind===ae.ENUM_TYPE_EXTENSION||e.kind===ae.INPUT_OBJECT_TYPE_EXTENSION}var Yr=a(()=>{ue()});function Qr(e){return{Document(t){for(const n of t.definitions)if(!qr(n)){const t=n.kind===ae.SCHEMA_DEFINITION||n.kind===ae.SCHEMA_EXTENSION?"schema":'"'+n.name.value+'"';e.reportError(new G(`The ${t} definition is not executable.`,{nodes:n}))}return!1}}}var Xr=a(()=>{Q(),ue(),Yr()});function Zr(e){return{Field(t){const n=e.getParentType();if(n&&!e.getFieldDef()){const r=e.getSchema(),i=t.name.value;let o=rt("to use an inline fragment on",function(e,t,n){if(!pn(t))return[];const r=new Set,i=Object.create(null);for(const a of e.getPossibleTypes(t))if(a.getFields()[n]){r.add(a),i[a.name]=1;for(const e of a.getInterfaces()){var o;e.getFields()[n]&&(r.add(e),i[e.name]=(null!==(o=i[e.name])&&void 0!==o?o:0)+1)}}return[...r].sort((t,n)=>{const r=i[n.name]-i[t.name];return 0!==r?r:nn(t)&&e.isSubType(t,n)?-1:nn(n)&&e.isSubType(n,t)?1:mt(t.name,n.name)}).map(e=>e.name)}(r,n,i));""===o&&(o=rt(function(e,t){return tn(e)||nn(e)?bt(t,Object.keys(e.getFields())):[]}(n,i))),e.reportError(new G(`Cannot query field "${i}" on type "${n.name}".`+o,{nodes:t}))}}}}var Jr=a(()=>{it(),yt(),xt(),Q(),In()});function ei(e){return{InlineFragment(t){const n=t.typeCondition;if(n){const t=Br(e.getSchema(),n);if(t&&!fn(t)){const t=It(n);e.reportError(new G(`Fragment cannot condition on non composite type "${t}".`,{nodes:n}))}}},FragmentDefinition(t){const n=Br(e.getSchema(),t.typeCondition);if(n&&!fn(n)){const n=It(t.typeCondition);e.reportError(new G(`Fragment "${t.name.value}" cannot condition on non composite type "${n}".`,{nodes:t.typeCondition}))}}}}var ti=a(()=>{Q(),Vt(),In(),$r()});function ni(e){return{...ri(e),Argument(t){const n=e.getArgument(),r=e.getFieldDef(),i=e.getParentType();if(!n&&r&&i){const n=t.name.value,o=bt(n,r.args.map(e=>e.name));e.reportError(new G(`Unknown argument "${n}" on field "${i.name}.${r.name}".`+rt(o),{nodes:t}))}}}}function ri(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Xn;for(const a of r)t[a.name]=a.args.map(e=>e.name);const i=e.getDocument().definitions;for(const a of i)if(a.kind===ae.DIRECTIVE_DEFINITION){var o;const e=null!==(o=a.arguments)&&void 0!==o?o:[];t[a.name.value]=e.map(e=>e.name.value)}return{Directive(n){const r=n.name.value,i=t[r];if(n.arguments&&i)for(const t of n.arguments){const n=t.name.value;if(!i.includes(n)){const o=bt(n,i);e.reportError(new G(`Unknown argument "${n}" on directive "@${r}".`+rt(o),{nodes:t}))}}return!1}}}var ii=a(()=>{it(),xt(),Q(),ue(),tr()});function oi(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Xn;for(const o of r)t[o.name]=o.locations;const i=e.getDocument().definitions;for(const o of i)o.kind===ae.DIRECTIVE_DEFINITION&&(t[o.name.value]=o.locations.map(e=>e.value));return{Directive(n,r,i,o,a){const s=n.name.value,l=t[s];if(!l)return void e.reportError(new G(`Unknown directive "@${s}".`,{nodes:n}));const u=function(e){const t=e[e.length-1];switch("kind"in t||V(!1),t.kind){case ae.OPERATION_DEFINITION:return function(e){switch(e){case ne.QUERY:return oe.QUERY;case ne.MUTATION:return oe.MUTATION;case ne.SUBSCRIPTION:return oe.SUBSCRIPTION}}(t.operation);case ae.FIELD:return oe.FIELD;case ae.FRAGMENT_SPREAD:return oe.FRAGMENT_SPREAD;case ae.INLINE_FRAGMENT:return oe.INLINE_FRAGMENT;case ae.FRAGMENT_DEFINITION:return oe.FRAGMENT_DEFINITION;case ae.VARIABLE_DEFINITION:return oe.VARIABLE_DEFINITION;case ae.SCHEMA_DEFINITION:case ae.SCHEMA_EXTENSION:return oe.SCHEMA;case ae.SCALAR_TYPE_DEFINITION:case ae.SCALAR_TYPE_EXTENSION:return oe.SCALAR;case ae.OBJECT_TYPE_DEFINITION:case ae.OBJECT_TYPE_EXTENSION:return oe.OBJECT;case ae.FIELD_DEFINITION:return oe.FIELD_DEFINITION;case ae.INTERFACE_TYPE_DEFINITION:case ae.INTERFACE_TYPE_EXTENSION:return oe.INTERFACE;case ae.UNION_TYPE_DEFINITION:case ae.UNION_TYPE_EXTENSION:return oe.UNION;case ae.ENUM_TYPE_DEFINITION:case ae.ENUM_TYPE_EXTENSION:return oe.ENUM;case ae.ENUM_VALUE_DEFINITION:return oe.ENUM_VALUE;case ae.INPUT_OBJECT_TYPE_DEFINITION:case ae.INPUT_OBJECT_TYPE_EXTENSION:return oe.INPUT_OBJECT;case ae.INPUT_VALUE_DEFINITION:{const t=e[e.length-3];return"kind"in t||V(!1),t.kind===ae.INPUT_OBJECT_TYPE_DEFINITION?oe.INPUT_FIELD_DEFINITION:oe.ARGUMENT_DEFINITION}default:V(!1,"Unexpected kind: "+Ue(t.kind))}}(a);u&&!l.includes(u)&&e.reportError(new G(`Directive "@${s}" may not be used on ${u}.`,{nodes:n}))}}}var ai=a(()=>{Ye(),z(),Q(),se(),le(),ue(),tr()});function si(e){return{FragmentSpread(t){const n=t.name.value;e.getFragment(n)||e.reportError(new G(`Unknown fragment "${n}".`,{nodes:t.name}))}}}var li,ui=a(()=>{Q()});function ci(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);for(const o of e.getDocument().definitions)Gr(o)&&(r[o.name.value]=!0);const i=[...Object.keys(n),...Object.keys(r)];return{NamedType(t,o,a,s,l){const u=t.name.value;if(!n[u]&&!r[u]){var c;const n=null!==(c=l[2])&&void 0!==c?c:a,r=null!=n&&"kind"in(d=n)&&(function(e){return e.kind===ae.SCHEMA_DEFINITION||Gr(e)||e.kind===ae.DIRECTIVE_DEFINITION}(d)||function(e){return e.kind===ae.SCHEMA_EXTENSION||Kr(e)}(d));if(r&&li.includes(u))return;const o=bt(u,r?li.concat(i):i);e.reportError(new G(`Unknown type "${u}".`+rt(o),{nodes:t}))}var d}}}var di=a(()=>{it(),xt(),Q(),Yr(),wr(),Zn(),li=[...$n,...gr].map(e=>e.name)});function fi(e){let t=0;return{Document(e){t=e.definitions.filter(e=>e.kind===ae.OPERATION_DEFINITION).length},OperationDefinition(n){!n.name&&t>1&&e.reportError(new G("This anonymous operation must be the only defined operation.",{nodes:n}))}}}var pi=a(()=>{Q(),ue()});function hi(e){var t,n,r;const i=e.getSchema(),o=null!==(t=null!==(n=null!==(r=null==i?void 0:i.astNode)&&void 0!==r?r:null==i?void 0:i.getQueryType())&&void 0!==n?n:null==i?void 0:i.getMutationType())&&void 0!==t?t:null==i?void 0:i.getSubscriptionType();let a=0;return{SchemaDefinition(t){o?e.reportError(new G("Cannot define a new schema within a schema extension.",{nodes:t})):(a>0&&e.reportError(new G("Must provide only one schema definition.",{nodes:t})),++a)}}}var mi,gi=a(()=>{Q()});function vi(e){function t(n,r=Object.create(null),i=0){if(n.kind===ae.FRAGMENT_SPREAD){const o=n.name.value;if(!0===r[o])return!1;const a=e.getFragment(o);if(!a)return!1;try{return r[o]=!0,t(a,r,i)}finally{r[o]=void 0}}if(n.kind===ae.FIELD&&("fields"===n.name.value||"interfaces"===n.name.value||"possibleTypes"===n.name.value||"inputFields"===n.name.value)&&++i>=mi)return!0;if("selectionSet"in n&&n.selectionSet)for(const e of n.selectionSet.selections)if(t(e,r,i))return!0;return!1}return{Field(n){if(("__schema"===n.name.value||"__type"===n.name.value)&&t(n))return e.reportError(new G("Maximum introspection depth exceeded",{nodes:[n]})),!1}}}var yi=a(()=>{Q(),ue(),mi=3});function bi(e){const t=Object.create(null),n=[],r=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition:e=>(i(e),!1)};function i(o){if(t[o.name.value])return;const a=o.name.value;t[a]=!0;const s=e.getFragmentSpreads(o.selectionSet);if(0!==s.length){r[a]=n.length;for(const t of s){const o=t.name.value,a=r[o];if(n.push(t),void 0===a){const t=e.getFragment(o);t&&i(t)}else{const t=n.slice(a),r=t.slice(0,-1).map(e=>'"'+e.name.value+'"').join(", ");e.reportError(new G(`Cannot spread fragment "${o}" within itself`+(""!==r?` via ${r}.`:"."),{nodes:t}))}n.pop()}r[a]=void 0}}}var wi=a(()=>{Q()});function xi(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const r=e.getRecursiveVariableUsages(n);for(const{node:i}of r){const r=i.name.value;!0!==t[r]&&e.reportError(new G(n.name?`Variable "$${r}" is not defined by operation "${n.name.value}".`:`Variable "$${r}" is not defined.`,{nodes:[i,n]}))}}},VariableDefinition(e){t[e.variable.name.value]=!0}}}var Ei=a(()=>{Q()});function ki(e){const t=[],n=[];return{OperationDefinition:e=>(t.push(e),!1),FragmentDefinition:e=>(n.push(e),!1),Document:{leave(){const r=Object.create(null);for(const n of t)for(const t of e.getRecursivelyReferencedFragments(n))r[t.name.value]=!0;for(const t of n){const n=t.name.value;!0!==r[n]&&e.reportError(new G(`Fragment "${n}" is never used.`,{nodes:t}))}}}}}var Ci=a(()=>{Q()});function Si(e){let t=[];return{OperationDefinition:{enter(){t=[]},leave(n){const r=Object.create(null),i=e.getRecursiveVariableUsages(n);for(const{node:e}of i)r[e.name.value]=!0;for(const o of t){const t=o.variable.name.value;!0!==r[t]&&e.reportError(new G(n.name?`Variable "$${t}" is never used in operation "${n.name.value}".`:`Variable "$${t}" is never used.`,{nodes:o}))}}},VariableDefinition(e){t.push(e)}}}var Ti=a(()=>{Q()});function _i(e){switch(e.kind){case ae.OBJECT:return{...e,fields:(t=e.fields,t.map(e=>({...e,value:_i(e.value)})).sort((e,t)=>mt(e.name.value,t.name.value)))};case ae.LIST:return{...e,values:e.values.map(_i)};case ae.INT:case ae.FLOAT:case ae.STRING:case ae.BOOLEAN:case ae.NULL:case ae.ENUM:case ae.VARIABLE:return e}var t}var Ni,Ai,Di=a(()=>{yt(),ue()});function Oi(e){return Array.isArray(e)?e.map(([e,t])=>`subfields "${e}" conflict because `+Oi(t)).join(" and "):e}function Li(e){const t=new Ni,n=new Ai,r=new Map;return{SelectionSet(i){const o=function(e,t,n,r,i,o){const a=[],[s,l]=Vi(e,t,i,o);if(function(e,t,n,r,i,o){for(const[a,s]of Object.entries(o))if(s.length>1)for(let o=0;o<s.length;o++)for(let l=o+1;l<s.length;l++){const u=Pi(e,n,r,i,!1,a,s[o],s[l]);u&&t.push(u)}}(e,a,t,n,r,s),0!==l.length)for(let u=0;u<l.length;u++){Ii(e,a,t,n,r,!1,s,l[u]);for(let i=u+1;i<l.length;i++)Mi(e,a,t,n,r,!1,l[u],l[i])}return a}(e,r,t,n,e.getParentType(),i);for(const[[t,n],r,a]of o){const i=Oi(n);e.reportError(new G(`Fields "${t}" conflict because ${i}. Use different aliases on the fields to fetch both if this was intentional.`,{nodes:r.concat(a)}))}}}}function Ii(e,t,n,r,i,o,a,s){if(r.has(a,s,o))return;r.add(a,s,o);const l=e.getFragment(s);if(!l)return;const[u,c]=Bi(e,n,l);if(a!==u){Fi(e,t,n,r,i,o,a,u);for(const s of c)Ii(e,t,n,r,i,o,a,s)}}function Mi(e,t,n,r,i,o,a,s){if(a===s)return;if(i.has(a,s,o))return;i.add(a,s,o);const l=e.getFragment(a),u=e.getFragment(s);if(!l||!u)return;const[c,d]=Bi(e,n,l),[f,p]=Bi(e,n,u);Fi(e,t,n,r,i,o,c,f);for(const h of p)Mi(e,t,n,r,i,o,a,h);for(const h of d)Mi(e,t,n,r,i,o,h,s)}function Fi(e,t,n,r,i,o,a,s){for(const[l,u]of Object.entries(a)){const a=s[l];if(a)for(const s of u)for(const u of a){const a=Pi(e,n,r,i,o,l,s,u);a&&t.push(a)}}}function Pi(e,t,n,r,i,o,a,s){const[l,u,c]=a,[d,f,p]=s,h=i||l!==d&&tn(l)&&tn(d);if(!h){const e=u.name.value,t=f.name.value;if(e!==t)return[[o,`"${e}" and "${t}" are different fields`],[u],[f]];if(!function(e,t){const n=e.arguments,r=t.arguments;if(void 0===n||0===n.length)return void 0===r||0===r.length;if(void 0===r||0===r.length)return!1;if(n.length!==r.length)return!1;const i=new Map(r.map(({name:e,value:t})=>[e.value,t]));return n.every(e=>{const t=e.value,n=i.get(e.name.value);return void 0!==n&&Ri(t)===Ri(n)})}(u,f))return[[o,"they have differing arguments"],[u],[f]]}const m=null==c?void 0:c.type,g=null==p?void 0:p.type;if(m&&g&&ji(m,g))return[[o,`they return conflicting types "${Ue(m)}" and "${Ue(g)}"`],[u],[f]];const v=u.selectionSet,y=f.selectionSet;return v&&y?function(e,t,n,r){if(e.length>0)return[[t,e.map(([e])=>e)],[n,...e.map(([,e])=>e).flat()],[r,...e.map(([,,e])=>e).flat()]]}(function(e,t,n,r,i,o,a,s,l){const u=[],[c,d]=Vi(e,t,o,a),[f,p]=Vi(e,t,s,l);Fi(e,u,t,n,r,i,c,f);for(const h of p)Ii(e,u,t,n,r,i,c,h);for(const h of d)Ii(e,u,t,n,r,i,f,h);for(const h of d)for(const o of p)Mi(e,u,t,n,r,i,h,o);return u}(e,t,n,r,h,yn(m),v,yn(g),y),o,u,f):void 0}function Ri(e){return It(_i(e))}function ji(e,t){return sn(e)?!sn(t)||ji(e.ofType,t.ofType):!!sn(t)||(ln(e)?!ln(t)||ji(e.ofType,t.ofType):!!ln(t)||!(!dn(e)&&!dn(t))&&e!==t)}function Vi(e,t,n,r){const i=t.get(r);if(i)return i;const o=Object.create(null),a=Object.create(null);zi(e,n,r,o,a);const s=[o,Object.keys(a)];return t.set(r,s),s}function Bi(e,t,n){return t.get(n.selectionSet)||Vi(e,t,Br(e.getSchema(),n.typeCondition),n.selectionSet)}function zi(e,t,n,r,i){for(const o of n.selections)switch(o.kind){case ae.FIELD:{const e=o.name.value;let n;(tn(t)||nn(t))&&(n=t.getFields()[e]);const i=o.alias?o.alias.value:e;r[i]||(r[i]=[]),r[i].push([t,o,n]);break}case ae.FRAGMENT_SPREAD:i[o.name.value]=!0;break;case ae.INLINE_FRAGMENT:{const n=o.typeCondition;zi(e,n?Br(e.getSchema(),n):t,o.selectionSet,r,i);break}}}var $i=a(()=>{Ye(),Q(),ue(),Vt(),In(),Di(),$r(),Ni=class{constructor(){this._data=new Map}has(e,t,n){var r;const i=null===(r=this._data.get(e))||void 0===r?void 0:r.get(t);return void 0!==i&&(!!n||n===i)}add(e,t,n){const r=this._data.get(e);void 0===r?this._data.set(e,new Map([[t,n]])):r.set(t,n)}},Ai=class{constructor(){this._orderedPairSet=new Ni}has(e,t,n){return e<t?this._orderedPairSet.has(e,t,n):this._orderedPairSet.has(t,e,n)}add(e,t,n){e<t?this._orderedPairSet.add(e,t,n):this._orderedPairSet.add(t,e,n)}}});function Ui(e){return{InlineFragment(t){const n=e.getType(),r=e.getParentType();if(fn(n)&&fn(r)&&!Pn(e.getSchema(),n,r)){const i=Ue(r),o=Ue(n);e.reportError(new G(`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=function(e,t){const n=e.getFragment(t);if(n){const t=Br(e.getSchema(),n.typeCondition);if(fn(t))return t}}(e,n),i=e.getParentType();if(r&&i&&!Pn(e.getSchema(),r,i)){const o=Ue(i),a=Ue(r);e.reportError(new G(`Fragment "${n}" cannot be spread here as objects of type "${o}" can never be of type "${a}".`,{nodes:t}))}}}}var Hi,Wi=a(()=>{Ye(),Q(),In(),Un(),$r()});function qi(e){const t=e.getSchema(),n=Object.create(null);for(const i of e.getDocument().definitions)Gr(i)&&(n[i.name.value]=i);return{ScalarTypeExtension:r,ObjectTypeExtension:r,InterfaceTypeExtension:r,UnionTypeExtension:r,EnumTypeExtension:r,InputObjectTypeExtension:r};function r(r){const i=r.name.value,o=n[i],a=null==t?void 0:t.getType(i);let s;if(o?s=Hi[o.kind]:a&&(s=en(l=a)?ae.SCALAR_TYPE_EXTENSION:tn(l)?ae.OBJECT_TYPE_EXTENSION:nn(l)?ae.INTERFACE_TYPE_EXTENSION:rn(l)?ae.UNION_TYPE_EXTENSION:on(l)?ae.ENUM_TYPE_EXTENSION:an(l)?ae.INPUT_OBJECT_TYPE_EXTENSION:void V(!1,"Unexpected type: "+Ue(l))),s){if(s!==r.kind){const t=function(e){switch(e){case ae.SCALAR_TYPE_EXTENSION:return"scalar";case ae.OBJECT_TYPE_EXTENSION:return"object";case ae.INTERFACE_TYPE_EXTENSION:return"interface";case ae.UNION_TYPE_EXTENSION:return"union";case ae.ENUM_TYPE_EXTENSION:return"enum";case ae.INPUT_OBJECT_TYPE_EXTENSION:return"input object";default:V(!1,"Unexpected kind: "+Ue(e))}}(r.kind);e.reportError(new G(`Cannot extend non-${t} type "${i}".`,{nodes:o?[o,r]:r}))}}else{const o=bt(i,Object.keys({...n,...null==t?void 0:t.getTypeMap()}));e.reportError(new G(`Cannot extend type "${i}" because it is not defined.`+rt(o),{nodes:r.name}))}var l}}var Gi=a(()=>{it(),Ye(),z(),xt(),Q(),ue(),Yr(),In(),Hi={[ae.SCALAR_TYPE_DEFINITION]:ae.SCALAR_TYPE_EXTENSION,[ae.OBJECT_TYPE_DEFINITION]:ae.OBJECT_TYPE_EXTENSION,[ae.INTERFACE_TYPE_DEFINITION]:ae.INTERFACE_TYPE_EXTENSION,[ae.UNION_TYPE_DEFINITION]:ae.UNION_TYPE_EXTENSION,[ae.ENUM_TYPE_DEFINITION]:ae.ENUM_TYPE_EXTENSION,[ae.INPUT_OBJECT_TYPE_DEFINITION]:ae.INPUT_OBJECT_TYPE_EXTENSION}});function Ki(e){return{...Yi(e),Field:{leave(t){var n;const r=e.getFieldDef();if(!r)return!1;const i=new Set(null===(n=t.arguments)||void 0===n?void 0:n.map(e=>e.name.value));for(const o of r.args)if(!i.has(o.name)&&_n(o)){const n=Ue(o.type);e.reportError(new G(`Field "${r.name}" argument "${o.name}" of type "${n}" is required, but it was not provided.`,{nodes:t}))}}}}}function Yi(e){var t;const n=Object.create(null),r=e.getSchema(),i=null!==(t=null==r?void 0:r.getDirectives())&&void 0!==t?t:Xn;for(const s of i)n[s.name]=st(s.args.filter(_n),e=>e.name);const o=e.getDocument().definitions;for(const s of o)if(s.kind===ae.DIRECTIVE_DEFINITION){var a;const e=null!==(a=s.arguments)&&void 0!==a?a:[];n[s.name.value]=st(e.filter(Qi),e=>e.name.value)}return{Directive:{leave(t){const r=t.name.value,i=n[r];if(i){var o;const n=null!==(o=t.arguments)&&void 0!==o?o:[],a=new Set(n.map(e=>e.name.value));for(const[o,s]of Object.entries(i))if(!a.has(o)){const n=Jt(s.type)?Ue(s.type):It(s.type);e.reportError(new G(`Directive "@${r}" argument "${o}" of type "${n}" is required, but it was not provided.`,{nodes:t}))}}}}}}function Qi(e){return e.type.kind===ae.NON_NULL_TYPE&&null==e.defaultValue}var Xi=a(()=>{Ye(),lt(),Q(),ue(),Vt(),In(),tr()});function Zi(e){return{Field(t){const n=e.getType(),r=t.selectionSet;if(n)if(dn(yn(n))){if(r){const i=t.name.value,o=Ue(n);e.reportError(new G(`Field "${i}" must not have a selection since type "${o}" has no subfields.`,{nodes:r}))}}else if(r){if(0===r.selections.length){const r=t.name.value,i=Ue(n);e.reportError(new G(`Field "${r}" of type "${i}" must have at least one field selected.`,{nodes:t}))}}else{const r=t.name.value,i=Ue(n);e.reportError(new G(`Field "${r}" of type "${i}" must have a selection of subfields. Did you mean "${r} { ... }"?`,{nodes:t}))}}}}var Ji=a(()=>{Ye(),Q(),In()});function eo(e,t,n){if(e){if(e.kind===ae.VARIABLE){const r=e.name.value;if(null==n||void 0===n[r])return;const i=n[r];if(null===i&&ln(t))return;return i}if(ln(t)){if(e.kind===ae.NULL)return;return eo(e,t.ofType,n)}if(e.kind===ae.NULL)return null;if(sn(t)){const r=t.ofType;if(e.kind===ae.LIST){const t=[];for(const i of e.values)if(to(i,n)){if(ln(r))return;t.push(null)}else{const e=eo(i,r,n);if(void 0===e)return;t.push(e)}return t}const i=eo(e,r,n);if(void 0===i)return;return[i]}if(an(t)){if(e.kind!==ae.OBJECT)return;const r=Object.create(null),i=st(e.fields,e=>e.name.value);for(const e of Object.values(t.getFields())){const t=i[e.name];if(!t||to(t.value,n)){if(void 0!==e.defaultValue)r[e.name]=e.defaultValue;else if(ln(e.type))return;continue}const o=eo(t.value,e.type,n);if(void 0===o)return;r[e.name]=o}if(t.isOneOf){const e=Object.keys(r);if(1!==e.length)return;if(null===r[e[0]])return}return r}if(dn(t)){let i;try{i=t.parseLiteral(e,n)}catch(r){return}if(void 0===i)return;return i}V(!1,"Unexpected input type: "+Ue(t))}}function to(e,t){return e.kind===ae.VARIABLE&&(null==t||void 0===t[e.name.value])}var no=a(()=>{Ye(),z(),lt(),ue(),In()});function ro(e,t,n){var r;const i=null===(r=t.directives)||void 0===r?void 0:r.find(t=>t.name.value===e.name);if(i)return function(e,t,n){var r;const i=Object.create(null),o=st(null!==(r=t.arguments)&&void 0!==r?r:[],e=>e.name.value);for(const a of e.args){const e=a.name,r=a.type,s=o[e];if(!s){if(void 0!==a.defaultValue)i[e]=a.defaultValue;else if(ln(r))throw new G(`Argument "${e}" of required type "${Ue(r)}" was not provided.`,{nodes:t});continue}const l=s.value;let u=l.kind===ae.NULL;if(l.kind===ae.VARIABLE){const t=l.name.value;if(null==n||!io(n,t)){if(void 0!==a.defaultValue)i[e]=a.defaultValue;else if(ln(r))throw new G(`Argument "${e}" of required type "${Ue(r)}" was provided the variable "$${t}" which was not provided a runtime value.`,{nodes:l});continue}u=null==n[t]}if(u&&ln(r))throw new G(`Argument "${e}" of non-null type "${Ue(r)}" must not be null.`,{nodes:l});const c=eo(l,r,n);if(void 0===c)throw new G(`Argument "${e}" has invalid value ${It(l)}.`,{nodes:l});i[e]=c}return{...i}}(e,i,n)}function io(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var oo=a(()=>{Ye(),lt(),Q(),ue(),Vt(),In(),no()});function ao(e,t,n,r,i){const o=new Map;return so(e,t,n,r,i,o,new Set),o}function so(e,t,n,r,i,o,a){for(const s of i.selections)switch(s.kind){case ae.FIELD:{if(!lo(n,s))continue;const e=co(s),t=o.get(e);void 0!==t?t.push(s):o.set(e,[s]);break}case ae.INLINE_FRAGMENT:if(!lo(n,s)||!uo(e,s,r))continue;so(e,t,n,r,s.selectionSet,o,a);break;case ae.FRAGMENT_SPREAD:{const i=s.name.value;if(a.has(i)||!lo(n,s))continue;a.add(i);const l=t[i];if(!l||!uo(e,l,r))continue;so(e,t,n,r,l.selectionSet,o,a);break}}}function lo(e,t){const n=ro(Gn,t,e);if(!0===(null==n?void 0:n.if))return!1;const r=ro(qn,t,e);return!1!==(null==r?void 0:r.if)}function uo(e,t,n){const r=t.typeCondition;if(!r)return!0;const i=Br(e,r);return i===n||!!pn(i)&&e.isSubType(i,n)}function co(e){return e.alias?e.alias.value:e.name.value}var fo=a(()=>{ue(),In(),tr(),$r(),oo()});function po(e){return{OperationDefinition(t){if("subscription"===t.operation){const n=e.getSchema(),r=n.getSubscriptionType();if(r){const i=t.name?t.name.value:null,o=Object.create(null),a=e.getDocument(),s=Object.create(null);for(const e of a.definitions)e.kind===ae.FRAGMENT_DEFINITION&&(s[e.name.value]=e);const l=ao(n,s,o,r,t.selectionSet);if(l.size>1){const t=[...l.values()].slice(1).flat();e.reportError(new G(null!=i?`Subscription "${i}" must select only one top level field.`:"Anonymous Subscription must select only one top level field.",{nodes:t}))}for(const t of l.values())t[0].name.value.startsWith("__")&&e.reportError(new G(null!=i?`Subscription "${i}" must not select an introspection top level field.`:"Anonymous Subscription must not select an introspection top level field.",{nodes:t}))}}}}}var ho=a(()=>{Q(),ue(),fo()});function mo(e,t){const n=new Map;for(const r of e){const e=t(r),i=n.get(e);void 0===i?n.set(e,[r]):i.push(r)}return n}var go=a(()=>{});function vo(e){return{DirectiveDefinition(e){var t;const r=null!==(t=e.arguments)&&void 0!==t?t:[];return n(`@${e.name.value}`,r)},InterfaceTypeDefinition:t,InterfaceTypeExtension:t,ObjectTypeDefinition:t,ObjectTypeExtension:t};function t(e){var t;const r=e.name.value,i=null!==(t=e.fields)&&void 0!==t?t:[];for(const a of i){var o;n(`${r}.${a.name.value}`,null!==(o=a.arguments)&&void 0!==o?o:[])}return!1}function n(t,n){const r=mo(n,e=>e.name.value);for(const[i,o]of r)o.length>1&&e.reportError(new G(`Argument "${t}(${i}:)" can only be defined once.`,{nodes:o.map(e=>e.name)}));return!1}}var yo=a(()=>{go(),Q()});function bo(e){return{Field:t,Directive:t};function t(t){var n;const r=mo(null!==(n=t.arguments)&&void 0!==n?n:[],e=>e.name.value);for(const[i,o]of r)o.length>1&&e.reportError(new G(`There can be only one argument named "${i}".`,{nodes:o.map(e=>e.name)}))}}var wo=a(()=>{go(),Q()});function xo(e){const t=Object.create(null),n=e.getSchema();return{DirectiveDefinition(r){const i=r.name.value;if(null==n||!n.getDirective(i))return t[i]?e.reportError(new G(`There can be only one directive named "@${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1;e.reportError(new G(`Directive "@${i}" already exists in the schema. It cannot be redefined.`,{nodes:r.name}))}}}var Eo=a(()=>{Q()});function ko(e){const t=Object.create(null),n=e.getSchema(),r=n?n.getDirectives():Xn;for(const s of r)t[s.name]=!s.isRepeatable;const i=e.getDocument().definitions;for(const s of i)s.kind===ae.DIRECTIVE_DEFINITION&&(t[s.name.value]=!s.repeatable);const o=Object.create(null),a=Object.create(null);return{enter(n){if(!("directives"in n)||!n.directives)return;let r;if(n.kind===ae.SCHEMA_DEFINITION||n.kind===ae.SCHEMA_EXTENSION)r=o;else if(Gr(n)||Kr(n)){const e=n.name.value;r=a[e],void 0===r&&(a[e]=r=Object.create(null))}else r=Object.create(null);for(const i of n.directives){const n=i.name.value;t[n]&&(r[n]?e.reportError(new G(`The directive "@${n}" can only be used once at this location.`,{nodes:[r[n],i]})):r[n]=i)}}}}var Co=a(()=>{Q(),ue(),Yr(),tr()});function So(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{EnumTypeDefinition:i,EnumTypeExtension:i};function i(t){var i;const o=t.name.value;r[o]||(r[o]=Object.create(null));const a=null!==(i=t.values)&&void 0!==i?i:[],s=r[o];for(const r of a){const t=r.name.value,i=n[o];on(i)&&i.getValue(t)?e.reportError(new G(`Enum value "${o}.${t}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:r.name})):s[t]?e.reportError(new G(`Enum value "${o}.${t}" can only be defined once.`,{nodes:[s[t],r.name]})):s[t]=r.name}return!1}}var To=a(()=>{Q(),In()});function _o(e){const t=e.getSchema(),n=t?t.getTypeMap():Object.create(null),r=Object.create(null);return{InputObjectTypeDefinition:i,InputObjectTypeExtension:i,InterfaceTypeDefinition:i,InterfaceTypeExtension:i,ObjectTypeDefinition:i,ObjectTypeExtension:i};function i(t){var i;const o=t.name.value;r[o]||(r[o]=Object.create(null));const a=null!==(i=t.fields)&&void 0!==i?i:[],s=r[o];for(const r of a){const t=r.name.value;No(n[o],t)?e.reportError(new G(`Field "${o}.${t}" already exists in the schema. It cannot also be defined in this type extension.`,{nodes:r.name})):s[t]?e.reportError(new G(`Field "${o}.${t}" can only be defined once.`,{nodes:[s[t],r.name]})):s[t]=r.name}return!1}}function No(e,t){return!!(tn(e)||nn(e)||an(e))&&null!=e.getFields()[t]}var Ao=a(()=>{Q(),In()});function Do(e){const t=Object.create(null);return{OperationDefinition:()=>!1,FragmentDefinition(n){const r=n.name.value;return t[r]?e.reportError(new G(`There can be only one fragment named "${r}".`,{nodes:[t[r],n.name]})):t[r]=n.name,!1}}}var Oo=a(()=>{Q()});function Lo(e){const t=[];let n=Object.create(null);return{ObjectValue:{enter(){t.push(n),n=Object.create(null)},leave(){const e=t.pop();e||V(!1),n=e}},ObjectField(t){const r=t.name.value;n[r]?e.reportError(new G(`There can be only one input field named "${r}".`,{nodes:[n[r],t.name]})):n[r]=t.name}}}var Io=a(()=>{z(),Q()});function Mo(e){const t=Object.create(null);return{OperationDefinition(n){const r=n.name;return r&&(t[r.value]?e.reportError(new G(`There can be only one operation named "${r.value}".`,{nodes:[t[r.value],r]})):t[r.value]=r),!1},FragmentDefinition:()=>!1}}var Fo=a(()=>{Q()});function Po(e){const t=e.getSchema(),n=Object.create(null),r=t?{query:t.getQueryType(),mutation:t.getMutationType(),subscription:t.getSubscriptionType()}:{};return{SchemaDefinition:i,SchemaExtension:i};function i(t){var i;const o=null!==(i=t.operationTypes)&&void 0!==i?i:[];for(const a of o){const t=a.operation,i=n[t];r[t]?e.reportError(new G(`Type for ${t} already defined in the schema. It cannot be redefined.`,{nodes:a})):i?e.reportError(new G(`There can be only one ${t} type in schema.`,{nodes:[i,a]})):n[t]=a}return!1}}var Ro=a(()=>{Q()});function jo(e){const t=Object.create(null),n=e.getSchema();return{ScalarTypeDefinition:r,ObjectTypeDefinition:r,InterfaceTypeDefinition:r,UnionTypeDefinition:r,EnumTypeDefinition:r,InputObjectTypeDefinition:r};function r(r){const i=r.name.value;if(null==n||!n.getType(i))return t[i]?e.reportError(new G(`There can be only one type named "${i}".`,{nodes:[t[i],r.name]})):t[i]=r.name,!1;e.reportError(new G(`Type "${i}" already exists in the schema. It cannot also be defined in this type definition.`,{nodes:r.name}))}}var Vo=a(()=>{Q()});function Bo(e){return{OperationDefinition(t){var n;const r=mo(null!==(n=t.variableDefinitions)&&void 0!==n?n:[],e=>e.variable.name.value);for(const[i,o]of r)o.length>1&&e.reportError(new G(`There can be only one variable named "$${i}".`,{nodes:o.map(e=>e.variable.name)}))}}}var zo=a(()=>{go(),Q()});function $o(e){return{ListValue(t){if(!sn(gn(e.getParentInputType())))return Uo(e,t),!1},ObjectValue(t){const n=yn(e.getInputType());if(!an(n))return Uo(e,t),!1;const r=st(t.fields,e=>e.name.value);for(const i of Object.values(n.getFields()))if(!r[i.name]&&Ln(i)){const r=Ue(i.type);e.reportError(new G(`Field "${n.name}.${i.name}" of required type "${r}" was not provided.`,{nodes:t}))}n.isOneOf&&function(e,t,n,r){var i;const o=Object.keys(r);if(1!==o.length)return void e.reportError(new G(`OneOf Input Object "${n.name}" must specify exactly one key.`,{nodes:[t]}));const a=null===(i=r[o[0]])||void 0===i?void 0:i.value;a&&a.kind!==ae.NULL||e.reportError(new G(`Field "${n.name}.${o[0]}" must be non-null.`,{nodes:[t]}))}(e,t,n,r)},ObjectField(t){const n=yn(e.getParentInputType());if(!e.getInputType()&&an(n)){const r=bt(t.name.value,Object.keys(n.getFields()));e.reportError(new G(`Field "${t.name.value}" is not defined by type "${n.name}".`+rt(r),{nodes:t}))}},NullValue(t){const n=e.getInputType();ln(n)&&e.reportError(new G(`Expected value of type "${Ue(n)}", found ${It(t)}.`,{nodes:t}))},EnumValue:t=>Uo(e,t),IntValue:t=>Uo(e,t),FloatValue:t=>Uo(e,t),StringValue:t=>Uo(e,t),BooleanValue:t=>Uo(e,t)}}function Uo(e,t){const n=e.getInputType();if(!n)return;const r=yn(n);if(!dn(r)){const r=Ue(n);return void e.reportError(new G(`Expected value of type "${r}", found ${It(t)}.`,{nodes:t}))}try{if(void 0===r.parseLiteral(t,void 0)){const r=Ue(n);e.reportError(new G(`Expected value of type "${r}", found ${It(t)}.`,{nodes:t}))}}catch(tp){const i=Ue(n);tp instanceof G?e.reportError(tp):e.reportError(new G(`Expected value of type "${i}", found ${It(t)}; `+tp.message,{nodes:t,originalError:tp}))}}var Ho=a(()=>{it(),Ye(),lt(),xt(),Q(),ue(),Vt(),In()});function Wo(e){return{VariableDefinition(t){const n=Br(e.getSchema(),t.type);if(void 0!==n&&!un(n)){const n=t.variable.name.value,r=It(t.type);e.reportError(new G(`Variable "$${n}" cannot be non-input type "${r}".`,{nodes:t.type}))}}}}var qo=a(()=>{Q(),Vt(),In(),$r()});function Go(e){let t=Object.create(null);return{OperationDefinition:{enter(){t=Object.create(null)},leave(n){const r=e.getRecursiveVariableUsages(n);for(const{node:i,type:o,defaultValue:a,parentType:s}of r){const n=i.name.value,r=t[n];if(r&&o){const t=e.getSchema(),l=Br(t,r.type);if(l&&!Ko(t,l,r.defaultValue,o,a)){const t=Ue(l),a=Ue(o);e.reportError(new G(`Variable "$${n}" of type "${t}" used in position expecting type "${a}".`,{nodes:[r,i]}))}an(s)&&s.isOneOf&&mn(l)&&e.reportError(new G(`Variable "$${n}" is of type "${l}" but must be non-nullable to be used for OneOf Input Object "${s}".`,{nodes:[r,i]}))}}}},VariableDefinition(e){t[e.variable.name.value]=e}}}function Ko(e,t,n,r,i){return ln(r)&&!ln(t)?(null!=n&&n.kind!==ae.NULL||void 0!==i)&&Fn(e,t,r.ofType):Fn(e,t,r)}var Yo,Qo,Xo,Zo,Jo,ea=a(()=>{Ye(),Q(),ue(),In(),Un(),$r()}),ta=a(()=>{Xr(),Jr(),ti(),ii(),ai(),ui(),di(),pi(),gi(),yi(),wi(),Ei(),Ci(),Ti(),$i(),Wi(),Gi(),Xi(),Ji(),ho(),yo(),wo(),Eo(),Co(),To(),Ao(),Oo(),Io(),Fo(),Ro(),Vo(),zo(),Ho(),qo(),ea(),Yo=Object.freeze([vi]),Qo=Object.freeze([Qr,Mo,fi,po,ci,ei,Wo,Zi,Zr,Do,si,ki,Ui,bi,Bo,xi,Si,oi,ko,ni,bo,$o,Ki,Go,Li,Lo,...Yo]),Object.freeze([hi,Po,jo,So,_o,vo,xo,ci,oi,ko,qi,ri,bo,Lo,Yi])}),na=a(()=>{ue(),Lt(),Wr(),Xo=class{constructor(e,t){this._ast=e,this._fragments=void 0,this._fragmentSpreads=new Map,this._recursivelyReferencedFragments=new Map,this._onError=t}get[Symbol.toStringTag](){return"ASTValidationContext"}reportError(e){this._onError(e)}getDocument(){return this._ast}getFragment(e){let t;if(this._fragments)t=this._fragments;else{t=Object.create(null);for(const e of this.getDocument().definitions)e.kind===ae.FRAGMENT_DEFINITION&&(t[e.name.value]=e);this._fragments=t}return t[e]}getFragmentSpreads(e){let t=this._fragmentSpreads.get(e);if(!t){t=[];const n=[e];let r;for(;r=n.pop();)for(const e of r.selections)e.kind===ae.FRAGMENT_SPREAD?t.push(e):e.selectionSet&&n.push(e.selectionSet);this._fragmentSpreads.set(e,t)}return t}getRecursivelyReferencedFragments(e){let t=this._recursivelyReferencedFragments.get(e);if(!t){t=[];const n=Object.create(null),r=[e.selectionSet];let i;for(;i=r.pop();)for(const e of this.getFragmentSpreads(i)){const i=e.name.value;if(!0!==n[i]){n[i]=!0;const e=this.getFragment(i);e&&(t.push(e),r.push(e.selectionSet))}}this._recursivelyReferencedFragments.set(e,t)}return t}},Zo=class extends Xo{constructor(e,t,n,r){super(t,r),this._schema=e,this._typeInfo=n,this._variableUsages=new Map,this._recursiveVariableUsages=new Map}get[Symbol.toStringTag](){return"ValidationContext"}getSchema(){return this._schema}getVariableUsages(e){let t=this._variableUsages.get(e);if(!t){const n=[],r=new zr(this._schema);At(e,Hr(r,{VariableDefinition:()=>!1,Variable(e){n.push({node:e,type:r.getInputType(),defaultValue:r.getDefaultValue(),parentType:r.getParentInputType()})}})),t=n,this._variableUsages.set(e,t)}return t}getRecursiveVariableUsages(e){let t=this._recursiveVariableUsages.get(e);if(!t){t=this.getVariableUsages(e);for(const n of this.getRecursivelyReferencedFragments(e))t=t.concat(this.getVariableUsages(n));this._recursiveVariableUsages.set(e,t)}return t}getType(){return this._typeInfo.getType()}getParentType(){return this._typeInfo.getParentType()}getInputType(){return this._typeInfo.getInputType()}getParentInputType(){return this._typeInfo.getParentInputType()}getFieldDef(){return this._typeInfo.getFieldDef()}getDirective(){return this._typeInfo.getDirective()}getArgument(){return this._typeInfo.getArgument()}getEnumValue(){return this._typeInfo.getEnumValue()}}});function ra(e,t,n=Qo,r,i=new zr(e)){var o;const a=null!==(o=null==r?void 0:r.maxErrors)&&void 0!==o?o:100;t||F(!1,"Must provide document."),function(e){const t=Sr(e);if(0!==t.length)throw new Error(t.map(e=>e.message).join("\n\n"))}(e);const s=Object.freeze({}),l=[],u=new Zo(e,t,i,e=>{if(l.length>=a)throw l.push(new G("Too many validation errors, error limit reached. Validation aborted.")),s;l.push(e)}),c=function(e){const t=new Array(e.length).fill(null),n=Object.create(null);for(const r of Object.values(ae)){let i=!1;const o=new Array(e.length).fill(void 0),a=new Array(e.length).fill(void 0);for(let t=0;t<e.length;++t){const{enter:n,leave:s}=Dt(e[t],r);i||(i=null!=n||null!=s),o[t]=n,a[t]=s}i&&(n[r]={enter(...n){const r=n[0];for(let a=0;a<e.length;a++)if(null===t[a]){var i;const s=null===(i=o[a])||void 0===i?void 0:i.apply(e[a],n);if(!1===s)t[a]=r;else if(s===_t)t[a]=_t;else if(void 0!==s)return s}},leave(...n){const r=n[0];for(let o=0;o<e.length;o++)if(null===t[o]){var i;const r=null===(i=a[o])||void 0===i?void 0:i.apply(e[o],n);if(r===_t)t[o]=_t;else if(void 0!==r&&!1!==r)return r}else t[o]===r&&(t[o]=null)}})}return n}(n.map(e=>e(u)));try{At(t,Hr(i,c),Jo)}catch(RR){if(RR!==s)throw RR}return l}var ia=a(()=>{P(),ht(),Q(),se(),Lt(),Vr(),Wr(),ta(),na(),Jo=dt(ee,e=>e.filter(e=>"description"!==e))}),oa=a(()=>{Cr(),In(),Zn(),wr(),Vr()}),aa=a(()=>{ue(),nt(),Vt(),Lt(),le()});function sa(e){return{Field(t){const n=e.getFieldDef(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){const i=e.getParentType();null!=i||V(!1),e.reportError(new G(`The field ${i.name}.${n.name} is deprecated. ${r}`,{nodes:t}))}},Argument(t){const n=e.getArgument(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){const i=e.getDirective();if(null!=i)e.reportError(new G(`Directive "@${i.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}));else{const i=e.getParentType(),o=e.getFieldDef();null!=i&&null!=o||V(!1),e.reportError(new G(`Field "${i.name}.${o.name}" argument "${n.name}" is deprecated. ${r}`,{nodes:t}))}}},ObjectField(t){const n=yn(e.getParentInputType());if(an(n)){const r=n.getFields()[t.name.value],i=null==r?void 0:r.deprecationReason;null!=i&&e.reportError(new G(`The input field ${n.name}.${r.name} is deprecated. ${i}`,{nodes:t}))}},EnumValue(t){const n=e.getEnumValue(),r=null==n?void 0:n.deprecationReason;if(n&&null!=r){const i=yn(e.getInputType());null!=i||V(!1),e.reportError(new G(`The enum value "${i.name}.${n.name}" is deprecated. ${r}`,{nodes:t}))}}}}var la=a(()=>{z(),Q(),In()}),ua=a(()=>{ia(),ta(),Xr(),ti(),ai(),ui(),di(),Ci(),Xi(),wo(),Co(),Io(),zo(),gi(),Ro(),Vo(),To(),Ao(),Eo(),Gi(),la()}),ca=a(()=>{Q()}),da=a(()=>{}),fa=a(()=>{P(),Ye(),j(),ct(),nt(),In(),tr(),wr(),Zn(),Cr(),no()}),pa=a(()=>{da(),fa(),$r(),vr(),Wr(),Un()}),ha=a(()=>{oa(),aa(),ua(),ca(),pa()}),ma={},ga=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){const e=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),a=(null==o?void 0:o.nonce)||(null==o?void 0:o.getAttribute("nonce"));i=t.map(t=>{if(t=function(e,t){return new URL(e,t).href}(t,n),t in ma)return;ma[t]=!0;const r=t.endsWith(".css"),i=r?'[rel="stylesheet"]':"";if(n)for(let n=e.length-1;n>=0;n--){const i=e[n];if(i.href===t&&(!r||"stylesheet"===i.rel))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;const o=document.createElement("link");return o.rel=r?"stylesheet":"modulepreload",r||(o.as="script"),o.crossOrigin="",o.href=t,a&&o.setAttribute("nonce",a),document.head.appendChild(o),r?new Promise((e,n)=>{o.addEventListener("load",e),o.addEventListener("error",()=>n(new Error(`Unable to preload CSS for ${t}`)))}):void 0}),r=Promise.all(i.map(e=>Promise.resolve(e).then(e=>({status:"fulfilled",value:e}),e=>({status:"rejected",reason:e}))))}var i;function o(e){const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(const e of t||[])"rejected"===e.status&&o(e.reason);return e().catch(o)})};function va(e){return JSON.stringify(e,null,2)}function ya(e){return e instanceof Error?function(e){return D(A({},e),{message:e.message,stack:e.stack})}(e):e}function ba(e){return Array.isArray(e)?va({errors:e.map(e=>ya(e))}):va({errors:[ya(e)]})}function wa(e){return va(e)}function xa(e,t,n){const r=[];if(!e||!t)return{insertions:r,result:t};let i;try{i=Ze(t)}catch(RR){return{insertions:r,result:t}}const o=n||Ea,a=new zr(e);return At(i,{leave(e){a.leave(e)},enter(e){if(a.enter(e),"Field"===e.kind&&!e.selectionSet){const n=ka(function(e){if(e)return e}(a.getType()),o);if(n&&e.loc){const i=function(e,t){let n=t,r=t;for(;n;){const t=e.charCodeAt(n-1);if(10===t||13===t||8232===t||8233===t)break;n--,9!==t&&11!==t&&12!==t&&32!==t&&160!==t&&(r=n)}return e.slice(n,r)}(t,e.loc.start);r.push({index:e.loc.end,string:" "+It(n).replaceAll("\n","\n"+i)})}}}}),{insertions:r,result:Ca(t,r)}}function Ea(e){if(!("getFields"in e))return[];const t=e.getFields();if(t.id)return["id"];if(t.edges)return["edges"];if(t.node)return["node"];const n=[];for(const r of Object.keys(t))dn(t[r].type)&&n.push(r);return n}function ka(e,t){const n=yn(e);if(!e||dn(e))return;const r=t(n);return Array.isArray(r)&&0!==r.length&&"getFields"in n?{kind:ae.SELECTION_SET,selections:r.map(e=>{const r=n.getFields()[e],i=r?r.type:null;return{kind:ae.FIELD,name:{kind:ae.NAME,value:e},selectionSet:ka(i,t)}})}:void 0}function Ca(e,t){if(0===t.length)return e;let n="",r=0;for(const{index:i,string:o}of t)n+=e.slice(r,i)+o,r=i;return n+=e.slice(r),n}function Sa(e,t,n){var r;const i=n?yn(n).name:null,o=[],a=[];for(let s of t){if("FragmentSpread"===s.kind){const t=s.name.value;if(!s.directives||0===s.directives.length){if(a.includes(t))continue;a.push(t)}const n=e[s.name.value];if(n){const{typeCondition:e,directives:t,selectionSet:r}=n;s={kind:ae.INLINE_FRAGMENT,typeCondition:e,directives:t,selectionSet:r}}}if(s.kind===ae.INLINE_FRAGMENT&&(!s.directives||0===(null==(r=s.directives)?void 0:r.length))){const t=s.typeCondition?s.typeCondition.name.value:null;if(!t||t===i){o.push(...Sa(e,s.selectionSet.selections,n));continue}}o.push(s)}return o}function Ta(e,t){const n=t?new zr(t):null,r=Object.create(null);for(const o of e.definitions)o.kind===ae.FRAGMENT_DEFINITION&&(r[o.name.value]=o);const i={SelectionSet(e){const t=n?n.getParentType():null;let{selections:i}=e;return i=Sa(r,i,t),D(A({},e),{selections:i})},FragmentDefinition:()=>null};return At(At(e,n?Hr(n,i):i),{SelectionSet(e){let{selections:t}=e;return t=function(e,t){var n;const r=new Map,i=[];for(const o of e)if("Field"===o.kind){const e=t(o),a=r.get(e);if(null!=(n=o.directives)&&n.length){const e=A({},o);i.push(e)}else if(null!=a&&a.selectionSet&&o.selectionSet)a.selectionSet.selections=[...a.selectionSet.selections,...o.selectionSet.selections];else if(!a){const t=A({},o);r.set(e,t),i.push(t)}}else i.push(o);return i}(t,e=>e.alias?e.alias.value:e.name.value),D(A({},e),{selections:t})},FragmentDefinition:()=>null})}ha(),ha();var _a=class{constructor(e){e?this.storage=e:null===e||"undefined"==typeof window?this.storage=null:this.storage={getItem:localStorage.getItem.bind(localStorage),setItem:localStorage.setItem.bind(localStorage),removeItem:localStorage.removeItem.bind(localStorage),get length(){let e=0;for(const t in localStorage)0===t.indexOf(`${Na}:`)&&(e+=1);return e},clear(){for(const e in localStorage)0===e.indexOf(`${Na}:`)&&localStorage.removeItem(e)}}}get(e){if(!this.storage)return null;const t=`${Na}:${e}`,n=this.storage.getItem(t);return"null"===n||"undefined"===n?(this.storage.removeItem(t),null):n||null}set(e,t){let n=!1,r=null;if(this.storage){const i=`${Na}:${e}`;if(t)try{this.storage.setItem(i,t)}catch(RR){r=RR instanceof Error?RR:new Error(`${RR}`),n=function(e,t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&0!==e.length}(this.storage,RR)}else this.storage.removeItem(i)}return{isQuotaError:n,error:r}}clear(){this.storage&&this.storage.clear()}},Na="graphiql",Aa=class{constructor(e,t,n=null){this.key=e,this.storage=t,this.maxSize=n,this.items=this.fetchAll()}get length(){return this.items.length}contains(e){return this.items.some(t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName)}edit(e,t){if("number"==typeof t&&this.items[t]){const n=this.items[t];if(n.query===e.query&&n.variables===e.variables&&n.headers===e.headers&&n.operationName===e.operationName)return this.items.splice(t,1,e),void this.save()}const n=this.items.findIndex(t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName);-1!==n&&(this.items.splice(n,1,e),this.save())}delete(e){const t=this.items.findIndex(t=>t.query===e.query&&t.variables===e.variables&&t.headers===e.headers&&t.operationName===e.operationName);-1!==t&&(this.items.splice(t,1),this.save())}fetchRecent(){return this.items.at(-1)}fetchAll(){const e=this.storage.get(this.key);return e?JSON.parse(e)[this.key]:[]}push(e){const t=[...this.items,e];this.maxSize&&t.length>this.maxSize&&t.shift();for(let n=0;n<5;n++){const e=this.storage.set(this.key,JSON.stringify({[this.key]:t}));if(null!=e&&e.error){if(!e.isQuotaError||!this.maxSize)return;t.shift()}else this.items=t}}save(){this.storage.set(this.key,JSON.stringify({[this.key]:this.items}))}};ha();var Da,Oa,La,Ia,Ma=class{constructor(e,t){this.storage=e,this.maxHistoryLength=t,this.updateHistory=({query:e,variables:t,headers:n,operationName:r})=>{if(!this.shouldSaveQuery(e,t,n,this.history.fetchRecent()))return;this.history.push({query:e,variables:t,headers:n,operationName:r});const i=this.history.items,o=this.favorite.items;this.queries=i.concat(o)},this.deleteHistory=({query:e,variables:t,headers:n,operationName:r,favorite:i},o=!1)=>{function a(i){const o=i.items.find(i=>i.query===e&&i.variables===t&&i.headers===n&&i.operationName===r);o&&i.delete(o)}(i||o)&&a(this.favorite),(!i||o)&&a(this.history),this.queries=[...this.history.items,...this.favorite.items]},this.history=new Aa("queries",this.storage,this.maxHistoryLength),this.favorite=new Aa("favorites",this.storage,null),this.queries=[...this.history.fetchAll(),...this.favorite.fetchAll()]}shouldSaveQuery(e,t,n,r){if(!e)return!1;try{Ze(e)}catch(RR){return!1}return!(e.length>1e5||r&&JSON.stringify(e)===JSON.stringify(r.query)&&(JSON.stringify(t)===JSON.stringify(r.variables)&&(JSON.stringify(n)===JSON.stringify(r.headers)||n&&!r.headers)||t&&!r.variables))}toggleFavorite({query:e,variables:t,headers:n,operationName:r,label:i,favorite:o}){const a={query:e,variables:t,headers:n,operationName:r,label:i};o?(a.favorite=!1,this.favorite.delete(a),this.history.push(a)):(a.favorite=!0,this.favorite.push(a),this.history.delete(a)),this.queries=[...this.history.items,...this.favorite.items]}editLabel({query:e,variables:t,headers:n,operationName:r,label:i,favorite:o},a){const s={query:e,variables:t,headers:n,operationName:r,label:i};o?this.favorite.edit(D(A({},s),{favorite:o}),a):this.history.edit(s,a),this.queries=[...this.history.items,...this.favorite.items]}};function Fa(e){const t=Object.keys(e),n=t.length,r=new Array(n);for(let i=0;i<n;++i)r[i]=e[t[i]];return r}function Pa(e,t){return function(e,t){return t&&""!==t.trim()&&":"!==t.trim()&&"{"!==t.trim()?Ra(Ra(e.map(e=>({proximity:Va(ja(e.label),t),entry:e})),e=>e.proximity<=2),e=>!e.entry.isDeprecated).sort((e,t)=>(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.label.length-t.entry.label.length).map(e=>e.entry):Ra(e,e=>!e.isDeprecated)}(t,ja(e.string))}function Ra(e,t){const n=e.filter(t);return 0===n.length?e:n}function ja(e){return e.toLowerCase().replaceAll(/\W/g,"")}function Va(e,t){let n=function(e,t){let n,r;const i=[],o=e.length,a=t.length;for(n=0;n<=o;n++)i[n]=[n];for(r=1;r<=a;r++)i[0][r]=r;for(n=1;n<=o;n++)for(r=1;r<=a;r++){const o=e[n-1]===t[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+o),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+o))}return i[o][a]}(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}var Ba,za,$a,Ua,Ha,Wa,qa,Ga,Ka,Ya,Qa,Xa,Za,Ja,es,ts,ns,rs,is,os,as,ss,ls,us,cs,ds,fs,ps,hs,ms,gs,vs,ys,bs,ws,xs,Es,ks,Cs,Ss,Ts,_s,Ns,As,Ds,Os,Ls,Is,Ms,Fs,Ps,Rs,js,Vs,Bs,zs,$s,Us,Hs,Ws,qs,Gs,Ks,Ys,Qs,Xs,Zs,Js,el,tl,nl,rl,il,ol,al,sl,ll,ul,cl,dl,fl,pl,hl=a(()=>{ha(),Da=e=>` {\n $${null!=e?e:1}\n}`,Oa=(e,t,n)=>{if(!t)return null!=n?n:e;const r=yn(t);return tn(r)||an(r)||sn(r)||pn(r)?e+Da():null!=n?n:e},La=(e,t,n)=>sn(t)?e+`[${Oa("",yn(t.ofType),"$1")}]`:Oa(e,t,n),Ia=e=>{const t=e.args.filter(e=>e.type.toString().endsWith("!"));if(t.length)return e.name+`(${t.map((e,t)=>`${e.name}: $${t+1}`)}) ${Oa("",e.type,"\n")}`}}),ml=a(()=>{!function(e){e.is=function(e){return"string"==typeof e}}(Ba||(Ba={})),function(e){e.is=function(e){return"string"==typeof e}}(za||(za={})),function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}($a||($a={})),function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647,e.is=function(t){return"number"==typeof t&&e.MIN_VALUE<=t&&t<=e.MAX_VALUE}}(Ua||(Ua={})),function(e){e.create=function(e,t){return e===Number.MAX_VALUE&&(e=Ua.MAX_VALUE),t===Number.MAX_VALUE&&(t=Ua.MAX_VALUE),{line:e,character:t}},e.is=function(e){let t=e;return fl.objectLiteral(t)&&fl.uinteger(t.line)&&fl.uinteger(t.character)}}(Ha||(Ha={})),function(e){e.create=function(e,t,n,r){if(fl.uinteger(e)&&fl.uinteger(t)&&fl.uinteger(n)&&fl.uinteger(r))return{start:Ha.create(e,t),end:Ha.create(n,r)};if(Ha.is(e)&&Ha.is(t))return{start:e,end:t};throw new Error(`Range#create called with invalid arguments[${e}, ${t}, ${n}, ${r}]`)},e.is=function(e){let t=e;return fl.objectLiteral(t)&&Ha.is(t.start)&&Ha.is(t.end)}}(Wa||(Wa={})),function(e){e.create=function(e,t){return{uri:e,range:t}},e.is=function(e){let t=e;return fl.objectLiteral(t)&&Wa.is(t.range)&&(fl.string(t.uri)||fl.undefined(t.uri))}}(qa||(qa={})),function(e){e.create=function(e,t,n,r){return{targetUri:e,targetRange:t,targetSelectionRange:n,originSelectionRange:r}},e.is=function(e){let t=e;return fl.objectLiteral(t)&&Wa.is(t.targetRange)&&fl.string(t.targetUri)&&Wa.is(t.targetSelectionRange)&&(Wa.is(t.originSelectionRange)||fl.undefined(t.originSelectionRange))}}(Ga||(Ga={})),function(e){e.create=function(e,t,n,r){return{red:e,green:t,blue:n,alpha:r}},e.is=function(e){const t=e;return fl.objectLiteral(t)&&fl.numberRange(t.red,0,1)&&fl.numberRange(t.green,0,1)&&fl.numberRange(t.blue,0,1)&&fl.numberRange(t.alpha,0,1)}}(Ka||(Ka={})),function(e){e.create=function(e,t){return{range:e,color:t}},e.is=function(e){const t=e;return fl.objectLiteral(t)&&Wa.is(t.range)&&Ka.is(t.color)}}(Ya||(Ya={})),function(e){e.create=function(e,t,n){return{label:e,textEdit:t,additionalTextEdits:n}},e.is=function(e){const t=e;return fl.objectLiteral(t)&&fl.string(t.label)&&(fl.undefined(t.textEdit)||os.is(t))&&(fl.undefined(t.additionalTextEdits)||fl.typedArray(t.additionalTextEdits,os.is))}}(Qa||(Qa={})),function(e){e.Comment="comment",e.Imports="imports",e.Region="region"}(Xa||(Xa={})),function(e){e.create=function(e,t,n,r,i,o){const a={startLine:e,endLine:t};return fl.defined(n)&&(a.startCharacter=n),fl.defined(r)&&(a.endCharacter=r),fl.defined(i)&&(a.kind=i),fl.defined(o)&&(a.collapsedText=o),a},e.is=function(e){const t=e;return fl.objectLiteral(t)&&fl.uinteger(t.startLine)&&fl.uinteger(t.startLine)&&(fl.undefined(t.startCharacter)||fl.uinteger(t.startCharacter))&&(fl.undefined(t.endCharacter)||fl.uinteger(t.endCharacter))&&(fl.undefined(t.kind)||fl.string(t.kind))}}(Za||(Za={})),function(e){e.create=function(e,t){return{location:e,message:t}},e.is=function(e){let t=e;return fl.defined(t)&&qa.is(t.location)&&fl.string(t.message)}}(Ja||(Ja={})),function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4}(es||(es={})),function(e){e.Unnecessary=1,e.Deprecated=2}(ts||(ts={})),function(e){e.is=function(e){const t=e;return fl.objectLiteral(t)&&fl.string(t.href)}}(ns||(ns={})),function(e){e.create=function(e,t,n,r,i,o){let a={range:e,message:t};return fl.defined(n)&&(a.severity=n),fl.defined(r)&&(a.code=r),fl.defined(i)&&(a.source=i),fl.defined(o)&&(a.relatedInformation=o),a},e.is=function(e){var t;let n=e;return fl.defined(n)&&Wa.is(n.range)&&fl.string(n.message)&&(fl.number(n.severity)||fl.undefined(n.severity))&&(fl.integer(n.code)||fl.string(n.code)||fl.undefined(n.code))&&(fl.undefined(n.codeDescription)||fl.string(null===(t=n.codeDescription)||void 0===t?void 0:t.href))&&(fl.string(n.source)||fl.undefined(n.source))&&(fl.undefined(n.relatedInformation)||fl.typedArray(n.relatedInformation,Ja.is))}}(rs||(rs={})),function(e){e.create=function(e,t,...n){let r={title:e,command:t};return fl.defined(n)&&n.length>0&&(r.arguments=n),r},e.is=function(e){let t=e;return fl.defined(t)&&fl.string(t.title)&&fl.string(t.command)}}(is||(is={})),function(e){e.replace=function(e,t){return{range:e,newText:t}},e.insert=function(e,t){return{range:{start:e,end:e},newText:t}},e.del=function(e){return{range:e,newText:""}},e.is=function(e){const t=e;return fl.objectLiteral(t)&&fl.string(t.newText)&&Wa.is(t.range)}}(os||(os={})),function(e){e.create=function(e,t,n){const r={label:e};return void 0!==t&&(r.needsConfirmation=t),void 0!==n&&(r.description=n),r},e.is=function(e){const t=e;return fl.objectLiteral(t)&&fl.string(t.label)&&(fl.boolean(t.needsConfirmation)||void 0===t.needsConfirmation)&&(fl.string(t.description)||void 0===t.description)}}(as||(as={})),function(e){e.is=function(e){const t=e;return fl.string(t)}}(ss||(ss={})),function(e){e.replace=function(e,t,n){return{range:e,newText:t,annotationId:n}},e.insert=function(e,t,n){return{range:{start:e,end:e},newText:t,annotationId:n}},e.del=function(e,t){return{range:e,newText:"",annotationId:t}},e.is=function(e){const t=e;return os.is(t)&&(as.is(t.annotationId)||ss.is(t.annotationId))}}(ls||(ls={})),function(e){e.create=function(e,t){return{textDocument:e,edits:t}},e.is=function(e){let t=e;return fl.defined(t)&&gs.is(t.textDocument)&&Array.isArray(t.edits)}}(us||(us={})),function(e){e.create=function(e,t,n){let r={kind:"create",uri:e};return void 0===t||void 0===t.overwrite&&void 0===t.ignoreIfExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){let t=e;return t&&"create"===t.kind&&fl.string(t.uri)&&(void 0===t.options||(void 0===t.options.overwrite||fl.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||fl.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||ss.is(t.annotationId))}}(cs||(cs={})),function(e){e.create=function(e,t,n,r){let i={kind:"rename",oldUri:e,newUri:t};return void 0===n||void 0===n.overwrite&&void 0===n.ignoreIfExists||(i.options=n),void 0!==r&&(i.annotationId=r),i},e.is=function(e){let t=e;return t&&"rename"===t.kind&&fl.string(t.oldUri)&&fl.string(t.newUri)&&(void 0===t.options||(void 0===t.options.overwrite||fl.boolean(t.options.overwrite))&&(void 0===t.options.ignoreIfExists||fl.boolean(t.options.ignoreIfExists)))&&(void 0===t.annotationId||ss.is(t.annotationId))}}(ds||(ds={})),function(e){e.create=function(e,t,n){let r={kind:"delete",uri:e};return void 0===t||void 0===t.recursive&&void 0===t.ignoreIfNotExists||(r.options=t),void 0!==n&&(r.annotationId=n),r},e.is=function(e){let t=e;return t&&"delete"===t.kind&&fl.string(t.uri)&&(void 0===t.options||(void 0===t.options.recursive||fl.boolean(t.options.recursive))&&(void 0===t.options.ignoreIfNotExists||fl.boolean(t.options.ignoreIfNotExists)))&&(void 0===t.annotationId||ss.is(t.annotationId))}}(fs||(fs={})),function(e){e.is=function(e){let t=e;return t&&(void 0!==t.changes||void 0!==t.documentChanges)&&(void 0===t.documentChanges||t.documentChanges.every(e=>fl.string(e.kind)?cs.is(e)||ds.is(e)||fs.is(e):us.is(e)))}}(ps||(ps={})),function(e){e.create=function(e){return{uri:e}},e.is=function(e){let t=e;return fl.defined(t)&&fl.string(t.uri)}}(hs||(hs={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){let t=e;return fl.defined(t)&&fl.string(t.uri)&&fl.integer(t.version)}}(ms||(ms={})),function(e){e.create=function(e,t){return{uri:e,version:t}},e.is=function(e){let t=e;return fl.defined(t)&&fl.string(t.uri)&&(null===t.version||fl.integer(t.version))}}(gs||(gs={})),function(e){e.create=function(e,t,n,r){return{uri:e,languageId:t,version:n,text:r}},e.is=function(e){let t=e;return fl.defined(t)&&fl.string(t.uri)&&fl.string(t.languageId)&&fl.integer(t.version)&&fl.string(t.text)}}(vs||(vs={})),function(e){e.PlainText="plaintext",e.Markdown="markdown",e.is=function(t){const n=t;return n===e.PlainText||n===e.Markdown}}(ys||(ys={})),function(e){e.is=function(e){const t=e;return fl.objectLiteral(e)&&ys.is(t.kind)&&fl.string(t.value)}}(bs||(bs={})),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(ws||(ws={})),function(e){e.PlainText=1,e.Snippet=2}(xs||(xs={})),function(e){e.Deprecated=1}(Es||(Es={})),function(e){e.create=function(e,t,n){return{newText:e,insert:t,replace:n}},e.is=function(e){const t=e;return t&&fl.string(t.newText)&&Wa.is(t.insert)&&Wa.is(t.replace)}}(ks||(ks={})),function(e){e.asIs=1,e.adjustIndentation=2}(Cs||(Cs={})),function(e){e.is=function(e){const t=e;return t&&(fl.string(t.detail)||void 0===t.detail)&&(fl.string(t.description)||void 0===t.description)}}(Ss||(Ss={})),function(e){e.create=function(e){return{label:e}}}(Ts||(Ts={})),function(e){e.create=function(e,t){return{items:e||[],isIncomplete:!!t}}}(_s||(_s={})),function(e){e.fromPlainText=function(e){return e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")},e.is=function(e){const t=e;return fl.string(t)||fl.objectLiteral(t)&&fl.string(t.language)&&fl.string(t.value)}}(Ns||(Ns={})),function(e){e.is=function(e){let t=e;return!!t&&fl.objectLiteral(t)&&(bs.is(t.contents)||Ns.is(t.contents)||fl.typedArray(t.contents,Ns.is))&&(void 0===e.range||Wa.is(e.range))}}(As||(As={})),function(e){e.create=function(e,t){return t?{label:e,documentation:t}:{label:e}}}(Ds||(Ds={})),function(e){e.create=function(e,t,...n){let r={label:e};return fl.defined(t)&&(r.documentation=t),fl.defined(n)?r.parameters=n:r.parameters=[],r}}(Os||(Os={})),function(e){e.Text=1,e.Read=2,e.Write=3}(Ls||(Ls={})),function(e){e.create=function(e,t){let n={range:e};return fl.number(t)&&(n.kind=t),n}}(Is||(Is={})),function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26}(Ms||(Ms={})),function(e){e.Deprecated=1}(Fs||(Fs={})),function(e){e.create=function(e,t,n,r,i){let o={name:e,kind:t,location:{uri:r,range:n}};return i&&(o.containerName=i),o}}(Ps||(Ps={})),function(e){e.create=function(e,t,n,r){return void 0!==r?{name:e,kind:t,location:{uri:n,range:r}}:{name:e,kind:t,location:{uri:n}}}}(Rs||(Rs={})),function(e){e.create=function(e,t,n,r,i,o){let a={name:e,detail:t,kind:n,range:r,selectionRange:i};return void 0!==o&&(a.children=o),a},e.is=function(e){let t=e;return t&&fl.string(t.name)&&fl.number(t.kind)&&Wa.is(t.range)&&Wa.is(t.selectionRange)&&(void 0===t.detail||fl.string(t.detail))&&(void 0===t.deprecated||fl.boolean(t.deprecated))&&(void 0===t.children||Array.isArray(t.children))&&(void 0===t.tags||Array.isArray(t.tags))}}(js||(js={})),function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"}(Vs||(Vs={})),function(e){e.Invoked=1,e.Automatic=2}(Bs||(Bs={})),function(e){e.create=function(e,t,n){let r={diagnostics:e};return null!=t&&(r.only=t),null!=n&&(r.triggerKind=n),r},e.is=function(e){let t=e;return fl.defined(t)&&fl.typedArray(t.diagnostics,rs.is)&&(void 0===t.only||fl.typedArray(t.only,fl.string))&&(void 0===t.triggerKind||t.triggerKind===Bs.Invoked||t.triggerKind===Bs.Automatic)}}(zs||(zs={})),function(e){e.create=function(e,t,n){let r={title:e},i=!0;return"string"==typeof t?(i=!1,r.kind=t):is.is(t)?r.command=t:r.edit=t,i&&void 0!==n&&(r.kind=n),r},e.is=function(e){let t=e;return t&&fl.string(t.title)&&(void 0===t.diagnostics||fl.typedArray(t.diagnostics,rs.is))&&(void 0===t.kind||fl.string(t.kind))&&(void 0!==t.edit||void 0!==t.command)&&(void 0===t.command||is.is(t.command))&&(void 0===t.isPreferred||fl.boolean(t.isPreferred))&&(void 0===t.edit||ps.is(t.edit))}}($s||($s={})),function(e){e.create=function(e,t){let n={range:e};return fl.defined(t)&&(n.data=t),n},e.is=function(e){let t=e;return fl.defined(t)&&Wa.is(t.range)&&(fl.undefined(t.command)||is.is(t.command))}}(Us||(Us={})),function(e){e.create=function(e,t){return{tabSize:e,insertSpaces:t}},e.is=function(e){let t=e;return fl.defined(t)&&fl.uinteger(t.tabSize)&&fl.boolean(t.insertSpaces)}}(Hs||(Hs={})),function(e){e.create=function(e,t,n){return{range:e,target:t,data:n}},e.is=function(e){let t=e;return fl.defined(t)&&Wa.is(t.range)&&(fl.undefined(t.target)||fl.string(t.target))}}(Ws||(Ws={})),function(e){e.create=function(e,t){return{range:e,parent:t}},e.is=function(t){let n=t;return fl.objectLiteral(n)&&Wa.is(n.range)&&(void 0===n.parent||e.is(n.parent))}}(qs||(qs={})),function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"}(Gs||(Gs={})),function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"}(Ks||(Ks={})),function(e){e.is=function(e){const t=e;return fl.objectLiteral(t)&&(void 0===t.resultId||"string"==typeof t.resultId)&&Array.isArray(t.data)&&(0===t.data.length||"number"==typeof t.data[0])}}(Ys||(Ys={})),function(e){e.create=function(e,t){return{range:e,text:t}},e.is=function(e){const t=e;return null!=t&&Wa.is(t.range)&&fl.string(t.text)}}(Qs||(Qs={})),function(e){e.create=function(e,t,n){return{range:e,variableName:t,caseSensitiveLookup:n}},e.is=function(e){const t=e;return null!=t&&Wa.is(t.range)&&fl.boolean(t.caseSensitiveLookup)&&(fl.string(t.variableName)||void 0===t.variableName)}}(Xs||(Xs={})),function(e){e.create=function(e,t){return{range:e,expression:t}},e.is=function(e){const t=e;return null!=t&&Wa.is(t.range)&&(fl.string(t.expression)||void 0===t.expression)}}(Zs||(Zs={})),function(e){e.create=function(e,t){return{frameId:e,stoppedLocation:t}},e.is=function(e){const t=e;return fl.defined(t)&&Wa.is(e.stoppedLocation)}}(Js||(Js={})),function(e){e.Type=1,e.Parameter=2,e.is=function(e){return 1===e||2===e}}(el||(el={})),function(e){e.create=function(e){return{value:e}},e.is=function(e){const t=e;return fl.objectLiteral(t)&&(void 0===t.tooltip||fl.string(t.tooltip)||bs.is(t.tooltip))&&(void 0===t.location||qa.is(t.location))&&(void 0===t.command||is.is(t.command))}}(tl||(tl={})),function(e){e.create=function(e,t,n){const r={position:e,label:t};return void 0!==n&&(r.kind=n),r},e.is=function(e){const t=e;return fl.objectLiteral(t)&&Ha.is(t.position)&&(fl.string(t.label)||fl.typedArray(t.label,tl.is))&&(void 0===t.kind||el.is(t.kind))&&void 0===t.textEdits||fl.typedArray(t.textEdits,os.is)&&(void 0===t.tooltip||fl.string(t.tooltip)||bs.is(t.tooltip))&&(void 0===t.paddingLeft||fl.boolean(t.paddingLeft))&&(void 0===t.paddingRight||fl.boolean(t.paddingRight))}}(nl||(nl={})),function(e){e.createSnippet=function(e){return{kind:"snippet",value:e}}}(rl||(rl={})),function(e){e.create=function(e,t,n,r){return{insertText:e,filterText:t,range:n,command:r}}}(il||(il={})),function(e){e.create=function(e){return{items:e}}}(ol||(ol={})),function(e){e.Invoked=0,e.Automatic=1}(al||(al={})),function(e){e.create=function(e,t){return{range:e,text:t}}}(sl||(sl={})),function(e){e.create=function(e,t){return{triggerKind:e,selectedCompletionInfo:t}}}(ll||(ll={})),function(e){e.is=function(e){const t=e;return fl.objectLiteral(t)&&za.is(t.uri)&&fl.string(t.name)}}(ul||(ul={})),function(e){function t(e,n){if(e.length<=1)return e;const r=e.length/2|0,i=e.slice(0,r),o=e.slice(r);t(i,n),t(o,n);let a=0,s=0,l=0;for(;a<i.length&&s<o.length;)n(i[a],o[s])<=0?e[l++]=i[a++]:e[l++]=o[s++];for(;a<i.length;)e[l++]=i[a++];for(;s<o.length;)e[l++]=o[s++];return e}e.create=function(e,t,n,r){return new dl(e,t,n,r)},e.is=function(e){let t=e;return!!(fl.defined(t)&&fl.string(t.uri)&&(fl.undefined(t.languageId)||fl.string(t.languageId))&&fl.uinteger(t.lineCount)&&fl.func(t.getText)&&fl.func(t.positionAt)&&fl.func(t.offsetAt))},e.applyEdits=function(e,n){let r=e.getText(),i=t(n,(e,t)=>{let n=e.range.start.line-t.range.start.line;return 0===n?e.range.start.character-t.range.start.character:n}),o=r.length;for(let t=i.length-1;t>=0;t--){let n=i[t],a=e.offsetAt(n.range.start),s=e.offsetAt(n.range.end);if(!(s<=o))throw new Error("Overlapping edit");r=r.substring(0,a)+n.newText+r.substring(s,r.length),o=a}return r}}(cl||(cl={})),dl=class{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(void 0===this._lineOffsets){let e=[],t=this._content,n=!0;for(let r=0;r<t.length;r++){n&&(e.push(r),n=!1);let i=t.charAt(r);n="\r"===i||"\n"===i,"\r"===i&&r+1<t.length&&"\n"===t.charAt(r+1)&&r++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(0===r)return Ha.create(0,e);for(;n<r;){let i=Math.floor((n+r)/2);t[i]>e?r=i:n=i+1}let i=n-1;return Ha.create(i,e-t[i])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)}get lineCount(){return this.getLineOffsets().length}},function(e){const t=Object.prototype.toString;e.defined=function(e){return void 0!==e},e.undefined=function(e){return void 0===e},e.boolean=function(e){return!0===e||!1===e},e.string=function(e){return"[object String]"===t.call(e)},e.number=function(e){return"[object Number]"===t.call(e)},e.numberRange=function(e,n,r){return"[object Number]"===t.call(e)&&n<=e&&e<=r},e.integer=function(e){return"[object Number]"===t.call(e)&&-2147483648<=e&&e<=2147483647},e.uinteger=function(e){return"[object Number]"===t.call(e)&&0<=e&&e<=2147483647},e.func=function(e){return"[object Function]"===t.call(e)},e.objectLiteral=function(e){return null!==e&&"object"==typeof e},e.typedArray=function(e,t){return Array.isArray(e)&&e.every(t)}}(fl||(fl={}))}),gl=a(()=>{pl=class{constructor(e){this._start=0,this._pos=0,this.getStartOfToken=()=>this._start,this.getCurrentPosition=()=>this._pos,this.eol=()=>this._sourceText.length===this._pos,this.sol=()=>0===this._pos,this.peek=()=>this._sourceText.charAt(this._pos)||null,this.next=()=>{const e=this._sourceText.charAt(this._pos);return this._pos++,e},this.eat=e=>{if(this._testNextCharacter(e))return this._start=this._pos,this._pos++,this._sourceText.charAt(this._pos-1)},this.eatWhile=e=>{let t=this._testNextCharacter(e),n=!1;for(t&&(n=t,this._start=this._pos);t;)this._pos++,t=this._testNextCharacter(e),n=!0;return n},this.eatSpace=()=>this.eatWhile(/[\s\u00a0]/),this.skipToEnd=()=>{this._pos=this._sourceText.length},this.skipTo=e=>{this._pos=e},this.match=(e,t=!0,n=!1)=>{let r=null,i=null;return"string"==typeof e?(i=new RegExp(e,n?"i":"g").test(this._sourceText.slice(this._pos,this._pos+e.length)),r=e):e instanceof RegExp&&(i=this._sourceText.slice(this._pos).match(e),r=null==i?void 0:i[0]),!(null==i||!("string"==typeof e||i instanceof Array&&this._sourceText.startsWith(i[0],this._pos)))&&(t&&(this._start=this._pos,r&&r.length&&(this._pos+=r.length)),i)},this.backUp=e=>{this._pos-=e},this.column=()=>this._pos,this.indentation=()=>{const e=this._sourceText.match(/\s*/);let t=0;if(e&&0!==e.length){const n=e[0];let r=0;for(;n.length>r;)9===n.charCodeAt(r)?t+=2:t++,r++}return t},this.current=()=>this._sourceText.slice(this._start,this._pos),this._sourceText=e}_testNextCharacter(e){const t=this._sourceText.charAt(this._pos);let n=!1;return n="string"==typeof e?t===e:e instanceof RegExp?e.test(t):e(t),n}}});function vl(e){return{ofRule:e}}function yl(e,t){return{ofRule:e,isList:!0,separator:t}}function bl(e,t){const n=e.match;return e.match=e=>{let r=!1;return n&&(r=n(e)),r&&t.every(t=>t.match&&!t.match(e))},e}function wl(e,t){return{style:t,match:t=>t.kind===e}}function xl(e,t){return{style:t||"punctuation",match:t=>"Punctuation"===t.kind&&t.value===e}}var El,kl,Cl,Sl=a(()=>{});function Tl(e){return{style:"keyword",match:t=>"Name"===t.kind&&t.value===e}}function _l(e){return{style:e,match:e=>"Name"===e.kind,update(e,t){e.name=t.value}}}var Nl,Al=a(()=>{Sl(),ha(),El=e=>" "===e||"\t"===e||","===e||"\n"===e||"\r"===e||"\ufeff"===e||" "===e,kl={Name:/^[_A-Za-z][_0-9A-Za-z]*/,Punctuation:/^(?:!|\$|\(|\)|\.\.\.|:|=|&|@|\[|]|\{|\||\})/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^(?:"""(?:\\"""|[^"]|"[^"]|""[^"])*(?:""")?|"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?)/,Comment:/^#.*/},Cl={Document:[yl("Definition")],Definition(e){switch(e.value){case"{":return"ShortQuery";case"query":return"Query";case"mutation":return"Mutation";case"subscription":return"Subscription";case"fragment":return ae.FRAGMENT_DEFINITION;case"schema":return"SchemaDef";case"scalar":return"ScalarDef";case"type":return"ObjectTypeDef";case"interface":return"InterfaceDef";case"union":return"UnionDef";case"enum":return"EnumDef";case"input":return"InputDef";case"extend":return"ExtendDef";case"directive":return"DirectiveDef"}},ShortQuery:["SelectionSet"],Query:[Tl("query"),vl(_l("def")),vl("VariableDefinitions"),yl("Directive"),"SelectionSet"],Mutation:[Tl("mutation"),vl(_l("def")),vl("VariableDefinitions"),yl("Directive"),"SelectionSet"],Subscription:[Tl("subscription"),vl(_l("def")),vl("VariableDefinitions"),yl("Directive"),"SelectionSet"],VariableDefinitions:[xl("("),yl("VariableDefinition"),xl(")")],VariableDefinition:["Variable",xl(":"),"Type",vl("DefaultValue")],Variable:[xl("$","variable"),_l("variable")],DefaultValue:[xl("="),"Value"],SelectionSet:[xl("{"),yl("Selection"),xl("}")],Selection:(e,t)=>"..."===e.value?t.match(/[\s\u00a0,]*(on\b|@|{)/,!1)?"InlineFragment":"FragmentSpread":t.match(/[\s\u00a0,]*:/,!1)?"AliasedField":"Field",AliasedField:[_l("property"),xl(":"),_l("qualifier"),vl("Arguments"),yl("Directive"),vl("SelectionSet")],Field:[_l("property"),vl("Arguments"),yl("Directive"),vl("SelectionSet")],Arguments:[xl("("),yl("Argument"),xl(")")],Argument:[_l("attribute"),xl(":"),"Value"],FragmentSpread:[xl("..."),_l("def"),yl("Directive")],InlineFragment:[xl("..."),vl("TypeCondition"),yl("Directive"),"SelectionSet"],FragmentDefinition:[Tl("fragment"),vl(bl(_l("def"),[Tl("on")])),"TypeCondition",yl("Directive"),"SelectionSet"],TypeCondition:[Tl("on"),"NamedType"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue";case"$":return"Variable";case"&":return"NamedType"}return null;case"Name":switch(e.value){case"true":case"false":return"BooleanValue"}return"null"===e.value?"NullValue":"EnumValue"}},NumberValue:[wl("Number","number")],StringValue:[{style:"string",match:e=>"String"===e.kind,update(e,t){t.value.startsWith('"""')&&(e.inBlockstring=!t.value.slice(3).endsWith('"""'))}}],BooleanValue:[wl("Name","builtin")],NullValue:[wl("Name","keyword")],EnumValue:[_l("string-2")],ListValue:[xl("["),yl("Value"),xl("]")],ObjectValue:[xl("{"),yl("ObjectField"),xl("}")],ObjectField:[_l("attribute"),xl(":"),"Value"],Type:e=>"["===e.value?"ListType":"NonNullType",ListType:[xl("["),"Type",xl("]"),vl(xl("!"))],NonNullType:["NamedType",vl(xl("!"))],NamedType:[{style:"atom",match:e=>"Name"===e.kind,update(e,t){var n;(null===(n=e.prevState)||void 0===n?void 0:n.prevState)&&(e.name=t.value,e.prevState.prevState.type=t.value)}}],Directive:[xl("@","meta"),_l("meta"),vl("Arguments")],DirectiveDef:[Tl("directive"),xl("@","meta"),_l("meta"),vl("ArgumentsDef"),Tl("on"),yl("DirectiveLocation",xl("|"))],InterfaceDef:[Tl("interface"),_l("atom"),vl("Implements"),yl("Directive"),xl("{"),yl("FieldDef"),xl("}")],Implements:[Tl("implements"),yl("NamedType",xl("&"))],DirectiveLocation:[_l("string-2")],SchemaDef:[Tl("schema"),yl("Directive"),xl("{"),yl("OperationTypeDef"),xl("}")],OperationTypeDef:[_l("keyword"),xl(":"),_l("atom")],ScalarDef:[Tl("scalar"),_l("atom"),yl("Directive")],ObjectTypeDef:[Tl("type"),_l("atom"),vl("Implements"),yl("Directive"),xl("{"),yl("FieldDef"),xl("}")],FieldDef:[_l("property"),vl("ArgumentsDef"),xl(":"),"Type",yl("Directive")],ArgumentsDef:[xl("("),yl("InputValueDef"),xl(")")],InputValueDef:[_l("attribute"),xl(":"),"Type",vl("DefaultValue"),yl("Directive")],UnionDef:[Tl("union"),_l("atom"),yl("Directive"),xl("="),yl("UnionMember",xl("|"))],UnionMember:["NamedType"],EnumDef:[Tl("enum"),_l("atom"),yl("Directive"),xl("{"),yl("EnumValueDef"),xl("}")],EnumValueDef:[_l("string-2"),yl("Directive")],InputDef:[Tl("input"),_l("atom"),yl("Directive"),xl("{"),yl("InputValueDef"),xl("}")],ExtendDef:[Tl("extend"),"ExtensionDefinition"],ExtensionDefinition(e){switch(e.value){case"schema":return ae.SCHEMA_EXTENSION;case"scalar":return ae.SCALAR_TYPE_EXTENSION;case"type":return ae.OBJECT_TYPE_EXTENSION;case"interface":return ae.INTERFACE_TYPE_EXTENSION;case"union":return ae.UNION_TYPE_EXTENSION;case"enum":return ae.ENUM_TYPE_EXTENSION;case"input":return ae.INPUT_OBJECT_TYPE_EXTENSION}},[ae.SCHEMA_EXTENSION]:["SchemaDef"],[ae.SCALAR_TYPE_EXTENSION]:["ScalarDef"],[ae.OBJECT_TYPE_EXTENSION]:["ObjectTypeDef"],[ae.INTERFACE_TYPE_EXTENSION]:["InterfaceDef"],[ae.UNION_TYPE_EXTENSION]:["UnionDef"],[ae.ENUM_TYPE_EXTENSION]:["EnumDef"],[ae.INPUT_OBJECT_TYPE_EXTENSION]:["InputDef"]}});function Dl(e={eatWhitespace:e=>e.eatWhile(El),lexRules:kl,parseRules:Cl,editorConfig:{}}){return{startState(){const t={level:0,step:0,name:null,kind:null,type:null,rule:null,needsSeparator:!1,prevState:null};return Ll(e.parseRules,t,ae.DOCUMENT),t},token:(t,n)=>function(e,t,n){var r;if(t.inBlockstring)return e.match(/.*"""/)?(t.inBlockstring=!1,"string"):(e.skipToEnd(),"string");const{lexRules:i,parseRules:o,eatWhitespace:a,editorConfig:s}=n;if(t.rule&&0===t.rule.length?Il(t):t.needsAdvance&&(t.needsAdvance=!1,Ml(t,!0)),e.sol()){const n=(null==s?void 0:s.tabSize)||2;t.indentLevel=Math.floor(e.indentation()/n)}if(a(e))return"ws";const l=function(e,t){const n=Object.keys(e);for(let r=0;r<n.length;r++){const i=t.match(e[n[r]]);if(i&&i instanceof Array)return{kind:n[r],value:i[0]}}}(i,e);if(!l)return e.match(/\S+/)||e.match(/\s/),Ll(Nl,t,"Invalid"),"invalidchar";if("Comment"===l.kind)return Ll(Nl,t,"Comment"),"comment";const u=Ol({},t);if("Punctuation"===l.kind)if(/^[{([]/.test(l.value))void 0!==t.indentLevel&&(t.levels=(t.levels||[]).concat(t.indentLevel+1));else if(/^[})\]]/.test(l.value)){const e=t.levels=(t.levels||[]).slice(0,-1);t.indentLevel&&e.length>0&&e.at(-1)<t.indentLevel&&(t.indentLevel=e.at(-1))}for(;t.rule;){let n="function"==typeof t.rule?0===t.step?t.rule(l,e):null:t.rule[t.step];if(t.needsSeparator&&(n=null==n?void 0:n.separator),n){if(n.ofRule&&(n=n.ofRule),"string"==typeof n){Ll(o,t,n);continue}if(null===(r=n.match)||void 0===r?void 0:r.call(n,l))return n.update&&n.update(t,l),"Punctuation"===l.kind?Ml(t,!0):t.needsAdvance=!0,n.style}Pl(t)}return Ol(t,u),Ll(Nl,t,"Invalid"),"invalidchar"}(t,n,e)}}function Ol(e,t){const n=Object.keys(t);for(let r=0;r<n.length;r++)e[n[r]]=t[n[r]];return e}function Ll(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 Il(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 Ml(e,t){var n;if(Fl(e)&&e.rule){const n=e.rule[e.step];if(n.separator){const{separator:t}=n;if(e.needsSeparator=!e.needsSeparator,!e.needsSeparator&&t.ofRule)return}if(t)return}for(e.needsSeparator=!1,e.step++;e.rule&&!(Array.isArray(e.rule)&&e.step<e.rule.length);)Il(e),e.rule&&(Fl(e)?(null===(n=e.rule)||void 0===n?void 0:n[e.step].separator)&&(e.needsSeparator=!e.needsSeparator):(e.needsSeparator=!1,e.step++))}function Fl(e){const t=Array.isArray(e.rule)&&"string"!=typeof e.rule[e.step]&&e.rule[e.step];return t&&t.isList}function Pl(e){for(;e.rule&&(!Array.isArray(e.rule)||!e.rule[e.step].ofRule);)Il(e);e.rule&&Ml(e,!1)}var Rl,jl,Vl,Bl=a(()=>{Al(),ha(),Nl={Invalid:[],Comment:[]}});function zl(e,t){const n=e.split("\n"),r=Dl();let i=r.startState(),o="",a=new pl("");for(let s=0;s<n.length;s++){for(a=new pl(n[s]);!a.eol()&&(o=r.token(a,i),"BREAK"!==t(a,i,o,s)););t(a,i,o,s),i.kind||(i=r.startState())}return{start:a.getStartOfToken(),end:a.getCurrentPosition(),string:a.current(),state:i,style:o}}var $l=a(()=>{nu(),ha(),function(e){e.TYPE_SYSTEM="TYPE_SYSTEM",e.EXECUTABLE="EXECUTABLE",e.UNKNOWN="UNKNOWN"}(Rl||(Rl={})),jl=[ae.SCHEMA_DEFINITION,ae.OPERATION_TYPE_DEFINITION,ae.SCALAR_TYPE_DEFINITION,ae.OBJECT_TYPE_DEFINITION,ae.INTERFACE_TYPE_DEFINITION,ae.UNION_TYPE_DEFINITION,ae.ENUM_TYPE_DEFINITION,ae.INPUT_OBJECT_TYPE_DEFINITION,ae.DIRECTIVE_DEFINITION,ae.SCHEMA_EXTENSION,ae.SCALAR_TYPE_EXTENSION,ae.OBJECT_TYPE_EXTENSION,ae.INTERFACE_TYPE_EXTENSION,ae.UNION_TYPE_EXTENSION,ae.ENUM_TYPE_EXTENSION,ae.INPUT_OBJECT_TYPE_EXTENSION],Vl=e=>{let t=Rl.UNKNOWN;if(e)try{At(Ze(e),{enter(e){if("Document"!==e.kind)return!!jl.includes(e.kind)&&(t=Rl.TYPE_SYSTEM,_t);t=Rl.EXECUTABLE}})}catch(Vc){return t}return t}});function Ul(e,t,n){return n===pr.name&&e.getQueryType()===t?pr:n===hr.name&&e.getQueryType()===t?hr:n===mr.name&&fn(t)?mr:"getFields"in t?t.getFields()[n]:null}function Hl(e,t){const n=[];let r=e;for(;null==r?void 0:r.kind;)n.push(r),r=r.prevState;for(let i=n.length-1;i>=0;i--)t(n[i])}function Wl(e,t){let n,r,i,o,a,s,l,u,c,d,f;return Hl(t,t=>{var p;switch(t.kind){case Gl.QUERY:case"ShortQuery":d=e.getQueryType();break;case Gl.MUTATION:d=e.getMutationType();break;case Gl.SUBSCRIPTION:d=e.getSubscriptionType();break;case Gl.INLINE_FRAGMENT:case Gl.FRAGMENT_DEFINITION:t.type&&(d=e.getType(t.type));break;case Gl.FIELD:case Gl.ALIASED_FIELD:d&&t.name?(a=c?Ul(e,c,t.name):null,d=a?a.type:null):a=null;break;case Gl.SELECTION_SET:c=yn(d);break;case Gl.DIRECTIVE:i=t.name?e.getDirective(t.name):null;break;case Gl.INTERFACE_DEF:t.name&&(l=null,f=new Kt({name:t.name,interfaces:[],fields:{}}));break;case Gl.OBJECT_TYPE_DEF:t.name&&(f=null,l=new Gt({name:t.name,interfaces:[],fields:{}}));break;case Gl.ARGUMENTS:if(t.prevState)switch(t.prevState.kind){case Gl.FIELD:r=a&&a.args;break;case Gl.DIRECTIVE:r=i&&i.args;break;case Gl.ALIASED_FIELD:{const n=null===(p=t.prevState)||void 0===p?void 0:p.name;if(!n){r=null;break}const i=c?Ul(e,c,n):null;if(!i){r=null;break}r=i.args;break}default:r=null}else r=null;break;case Gl.ARGUMENT:if(r)for(let e=0;e<r.length;e++)if(r[e].name===t.name){n=r[e];break}s=null==n?void 0:n.type;break;case Gl.VARIABLE_DEFINITION:case Gl.VARIABLE:d=s;break;case Gl.ENUM_VALUE:const h=yn(s);o=h instanceof Qt?h.getValues().find(e=>e.value===t.name):null;break;case Gl.LIST_VALUE:const m=gn(s);s=m instanceof Ht?m.ofType:null;break;case Gl.OBJECT_VALUE:const g=yn(s);u=g instanceof Xt?g.getFields():null;break;case Gl.OBJECT_FIELD:const v=t.name&&u?u[t.name]:null;s=null==v?void 0:v.type,a=v,d=a?a.type:null;break;case Gl.NAMED_TYPE:t.name&&(d=e.getType(t.name))}}),{argDef:n,argDefs:r,directiveDef:i,enumValue:o,fieldDef:a,inputType:s,objectFieldDefs:u,parentType:c,type:d,interfaceDef:f,objectTypeDef:l}}var ql,Gl,Kl,Yl,Ql,Xl,Zl,Jl,eu=a(()=>{ha(),nu()}),tu=a(()=>{ha(),ql={ALIASED_FIELD:"AliasedField",ARGUMENTS:"Arguments",SHORT_QUERY:"ShortQuery",QUERY:"Query",MUTATION:"Mutation",SUBSCRIPTION:"Subscription",TYPE_CONDITION:"TypeCondition",INVALID:"Invalid",COMMENT:"Comment",SCHEMA_DEF:"SchemaDef",SCALAR_DEF:"ScalarDef",OBJECT_TYPE_DEF:"ObjectTypeDef",OBJECT_VALUE:"ObjectValue",LIST_VALUE:"ListValue",INTERFACE_DEF:"InterfaceDef",UNION_DEF:"UnionDef",ENUM_DEF:"EnumDef",ENUM_VALUE:"EnumValue",FIELD_DEF:"FieldDef",INPUT_DEF:"InputDef",INPUT_VALUE_DEF:"InputValueDef",ARGUMENTS_DEF:"ArgumentsDef",EXTEND_DEF:"ExtendDef",EXTENSION_DEFINITION:"ExtensionDefinition",DIRECTIVE_DEF:"DirectiveDef",IMPLEMENTS:"Implements",VARIABLE_DEFINITIONS:"VariableDefinitions",TYPE:"Type",VARIABLE:"Variable"},Gl=Object.assign(Object.assign({},ae),ql)}),nu=a(()=>{gl(),Al(),Sl(),Bl(),$l(),eu(),tu()}),ru=a(()=>{ml(),nu(),function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25}(Kl||(Kl={}))});function iu(e,t,n,r,i,o){var a;const s=Object.assign(Object.assign({},o),{schema:e}),l=function(e,t,n,r,i){const o=r||function(e,t,n=0){let r=null,i=null,o=null;const a=zl(e,(e,a,s,l)=>{if(!(l!==t.line||e.getCurrentPosition()+n<t.character+1))return r=s,i=Object.assign({},a),o=e.current(),"BREAK"});return{start:a.start,end:a.end,string:o||a.string,state:i||a.state,style:r||a.style}}(e,t,1);if(!o)return null;const a="Invalid"===o.state.kind?o.state.prevState:o.state;return a?{token:o,state:a,typeInfo:Wl(n,o.state),mode:(null==i?void 0:i.mode)||(s=e,l=null==i?void 0:i.uri,(null==l?void 0:l.endsWith(".graphqls"))?Rl.TYPE_SYSTEM:Vl(s))}:null;var s,l}(t,n,e,r,o);if(!l)return[];const{state:u,typeInfo:c,mode:d,token:f}=l,{kind:p,step:h,prevState:m}=u;if(p===Gl.DOCUMENT)return d===Rl.TYPE_SYSTEM?function(e){return Pa(e,[{label:"extend",kind:Kl.Function},...Xl])}(f):d===Rl.EXECUTABLE?function(e){return Pa(e,Zl)}(f):function(e){return Pa(e,[{label:"extend",kind:Kl.Function},...Zl,...Xl])}(f);if(p===Gl.EXTEND_DEF)return function(e){return Pa(e,Xl)}(f);if((null===(a=null==m?void 0:m.prevState)||void 0===a?void 0:a.kind)===Gl.EXTENSION_DEFINITION&&u.name)return Pa(f,[]);if((null==m?void 0:m.kind)===ae.SCALAR_TYPE_EXTENSION)return Pa(f,Object.values(e.getTypeMap()).filter(en).map(e=>({label:e.name,kind:Kl.Function})));if((null==m?void 0:m.kind)===ae.OBJECT_TYPE_EXTENSION)return Pa(f,Object.values(e.getTypeMap()).filter(e=>tn(e)&&!e.name.startsWith("__")).map(e=>({label:e.name,kind:Kl.Function})));if((null==m?void 0:m.kind)===ae.INTERFACE_TYPE_EXTENSION)return Pa(f,Object.values(e.getTypeMap()).filter(nn).map(e=>({label:e.name,kind:Kl.Function})));if((null==m?void 0:m.kind)===ae.UNION_TYPE_EXTENSION)return Pa(f,Object.values(e.getTypeMap()).filter(rn).map(e=>({label:e.name,kind:Kl.Function})));if((null==m?void 0:m.kind)===ae.ENUM_TYPE_EXTENSION)return Pa(f,Object.values(e.getTypeMap()).filter(e=>on(e)&&!e.name.startsWith("__")).map(e=>({label:e.name,kind:Kl.Function})));if((null==m?void 0:m.kind)===ae.INPUT_OBJECT_TYPE_EXTENSION)return Pa(f,Object.values(e.getTypeMap()).filter(an).map(e=>({label:e.name,kind:Kl.Function})));if(p===Gl.IMPLEMENTS||p===Gl.NAMED_TYPE&&(null==m?void 0:m.kind)===Gl.IMPLEMENTS)return function(e,t,n,r,i){if(t.needsSeparator)return[];const o=Fa(n.getTypeMap()).filter(nn),a=o.map(({name:e})=>e),s=new Set;zl(r,(e,t)=>{var r,o,l,u,c;if(t.name&&(t.kind!==Gl.INTERFACE_DEF||a.includes(t.name)||s.add(t.name),t.kind===Gl.NAMED_TYPE&&(null===(r=t.prevState)||void 0===r?void 0:r.kind)===Gl.IMPLEMENTS))if(i.interfaceDef){if(null===(o=i.interfaceDef)||void 0===o?void 0:o.getInterfaces().find(({name:e})=>e===t.name))return;const e=n.getType(t.name),r=null===(l=i.interfaceDef)||void 0===l?void 0:l.toConfig();i.interfaceDef=new Kt(Object.assign(Object.assign({},r),{interfaces:[...r.interfaces,e||new Kt({name:t.name,fields:{}})]}))}else if(i.objectTypeDef){if(null===(u=i.objectTypeDef)||void 0===u?void 0:u.getInterfaces().find(({name:e})=>e===t.name))return;const e=n.getType(t.name),r=null===(c=i.objectTypeDef)||void 0===c?void 0:c.toConfig();i.objectTypeDef=new Gt(Object.assign(Object.assign({},r),{interfaces:[...r.interfaces,e||new Kt({name:t.name,fields:{}})]}))}});const l=i.interfaceDef||i.objectTypeDef,u=((null==l?void 0:l.getInterfaces())||[]).map(({name:e})=>e);return Pa(e,o.concat([...s].map(e=>({name:e}))).filter(({name:e})=>e!==(null==l?void 0:l.name)&&!u.includes(e)).map(e=>{const t={label:e.name,kind:Kl.Interface,type:e};return(null==e?void 0:e.description)&&(t.documentation=e.description),t}))}(f,u,e,t,c);if(p===Gl.SELECTION_SET||p===Gl.FIELD||p===Gl.ALIASED_FIELD)return function(e,t,n){var r;if(t.parentType){const{parentType:i}=t;let o=[];return"getFields"in i&&(o=Fa(i.getFields())),fn(i)&&o.push(mr),i===(null===(r=null==n?void 0:n.schema)||void 0===r?void 0:r.getQueryType())&&o.push(pr,hr),Pa(e,o.map((t,r)=>{var i;const o={sortText:String(r)+t.name,label:t.name,detail:String(t.type),documentation:null!==(i=t.description)&&void 0!==i?i:void 0,deprecated:Boolean(t.deprecationReason),isDeprecated:Boolean(t.deprecationReason),deprecationReason:t.deprecationReason,kind:Kl.Field,labelDetails:{detail:" "+t.type.toString()},type:t.type};return(null==n?void 0:n.fillLeafsOnComplete)&&(o.insertText=Ia(t),o.insertText||(o.insertText=Oa(t.name,t.type,t.name+(e.state.needsAdvance?"":"\n"))),o.insertText&&(o.insertTextFormat=xs.Snippet,o.insertTextMode=Cs.adjustIndentation,o.command=Yl)),o}))}return[]}(f,c,s);if(p===Gl.ARGUMENTS||p===Gl.ARGUMENT&&0===h){const{argDefs:e}=c;if(e)return Pa(f,e.map(e=>{var t;return{label:e.name,insertText:La(e.name+": ",e.type),insertTextMode:Cs.adjustIndentation,insertTextFormat:xs.Snippet,command:Yl,labelDetails:{detail:" "+String(e.type)},documentation:null!==(t=e.description)&&void 0!==t?t:void 0,kind:Kl.Variable,type:e.type}}))}if((p===Gl.OBJECT_VALUE||p===Gl.OBJECT_FIELD&&0===h)&&c.objectFieldDefs){const e=Fa(c.objectFieldDefs),t=p===Gl.OBJECT_VALUE?Kl.Value:Kl.Field;return Pa(f,e.map(e=>{var n;return{label:e.name,detail:String(e.type),documentation:null!==(n=null==e?void 0:e.description)&&void 0!==n?n:void 0,kind:t,type:e.type,insertText:La(e.name+": ",e.type),insertTextMode:Cs.adjustIndentation,insertTextFormat:xs.Snippet,command:Yl}}))}if(p===Gl.ENUM_VALUE||p===Gl.LIST_VALUE&&1===h||p===Gl.OBJECT_FIELD&&2===h||p===Gl.ARGUMENT&&2===h)return function(e,t,n,r){const i=yn(t.inputType),o=ou(n,r,e).filter(e=>e.detail===(null==i?void 0:i.name));return i instanceof Qt?Pa(e,i.getValues().map(e=>{var t;return{label:e.name,detail:String(i),documentation:null!==(t=e.description)&&void 0!==t?t:void 0,deprecated:Boolean(e.deprecationReason),isDeprecated:Boolean(e.deprecationReason),deprecationReason:e.deprecationReason,kind:Kl.EnumMember,type:i}}).concat(o)):i===Bn?Pa(e,o.concat([{label:"true",detail:String(Bn),documentation:"Not false.",kind:Kl.Variable,type:Bn},{label:"false",detail:String(Bn),documentation:"Not true.",kind:Kl.Variable,type:Bn}])):o}(f,c,t,e);if(p===Gl.VARIABLE&&1===h){const n=yn(c.inputType);return Pa(f,ou(t,e,f).filter(e=>e.detail===(null==n?void 0:n.name)))}if(p===Gl.TYPE_CONDITION&&1===h||p===Gl.NAMED_TYPE&&null!=m&&m.kind===Gl.TYPE_CONDITION)return function(e,t,n){let r;if(t.parentType)if(pn(t.parentType)){const e=function(e){if(!pn(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL abstract type.`);return e}(t.parentType),i=n.getPossibleTypes(e),o=Object.create(null);for(const t of i)for(const e of t.getInterfaces())o[e.name]=e;r=i.concat(Fa(o))}else r=[t.parentType];else r=Fa(n.getTypeMap()).filter(e=>fn(e)&&!e.name.startsWith("__"));return Pa(e,r.map(e=>{const t=yn(e);return{label:String(e),documentation:(null==t?void 0:t.description)||"",kind:Kl.Field}}))}(f,c,e);if(p===Gl.FRAGMENT_SPREAD&&1===h)return function(e,t,n,r,i){if(!r)return[];const o=n.getTypeMap(),a=function(e){let t;return Hl(e,e=>{switch(e.kind){case"Query":case"ShortQuery":case"Mutation":case"Subscription":case"FragmentDefinition":t=e}}),t}(e.state),s=function(e){const t=[];return zl(e,(e,n)=>{n.kind===Gl.FRAGMENT_DEFINITION&&n.name&&n.type&&t.push({kind:Gl.FRAGMENT_DEFINITION,name:{kind:ae.NAME,value:n.name},selectionSet:{kind:Gl.SELECTION_SET,selections:[]},typeCondition:{kind:Gl.NAMED_TYPE,name:{kind:ae.NAME,value:n.type}}})}),t}(r);return i&&i.length>0&&s.push(...i),Pa(e,s.filter(e=>o[e.typeCondition.name.value]&&!(a&&a.kind===Gl.FRAGMENT_DEFINITION&&a.name===e.name.value)&&fn(t.parentType)&&fn(o[e.typeCondition.name.value])&&Pn(n,t.parentType,o[e.typeCondition.name.value])).map(e=>({label:e.name.value,detail:String(o[e.typeCondition.name.value]),documentation:`fragment ${e.name.value} on ${e.typeCondition.name.value}`,labelDetails:{detail:`fragment ${e.name.value} on ${e.typeCondition.name.value}`},kind:Kl.Field,type:o[e.typeCondition.name.value]})))}(f,c,e,t,Array.isArray(i)?i:Ql(i));const g=au(u);return g.kind===Gl.FIELD_DEF?Pa(f,Object.values(e.getTypeMap()).filter(e=>cn(e)&&!e.name.startsWith("__")).map(e=>({label:e.name,kind:Kl.Function,insertText:(null==o?void 0:o.fillLeafsOnComplete)?e.name+"\n":e.name,insertTextMode:Cs.adjustIndentation}))):g.kind===Gl.INPUT_VALUE_DEF&&2===h?Pa(f,Object.values(e.getTypeMap()).filter(e=>un(e)&&!e.name.startsWith("__")).map(e=>({label:e.name,kind:Kl.Function,insertText:(null==o?void 0:o.fillLeafsOnComplete)?e.name+"\n$1":e.name,insertTextMode:Cs.adjustIndentation,insertTextFormat:xs.Snippet}))):p===Gl.VARIABLE_DEFINITION&&2===h||p===Gl.LIST_TYPE&&1===h||p===Gl.NAMED_TYPE&&m&&(m.kind===Gl.VARIABLE_DEFINITION||m.kind===Gl.LIST_TYPE||m.kind===Gl.NON_NULL_TYPE)?function(e,t){return Pa(e,Fa(t.getTypeMap()).filter(un).map(e=>({label:e.name,documentation:(null==e?void 0:e.description)||"",kind:Kl.Variable})))}(f,e):p===Gl.DIRECTIVE?function(e,t,n){var r;return(null===(r=t.prevState)||void 0===r?void 0:r.kind)?Pa(e,n.getDirectives().filter(e=>function(e,t){if(!(null==e?void 0:e.kind))return!1;const{kind:n,prevState:r}=e,{locations:i}=t;switch(n){case Gl.QUERY:return i.includes(oe.QUERY);case Gl.MUTATION:return i.includes(oe.MUTATION);case Gl.SUBSCRIPTION:return i.includes(oe.SUBSCRIPTION);case Gl.FIELD:case Gl.ALIASED_FIELD:return i.includes(oe.FIELD);case Gl.FRAGMENT_DEFINITION:return i.includes(oe.FRAGMENT_DEFINITION);case Gl.FRAGMENT_SPREAD:return i.includes(oe.FRAGMENT_SPREAD);case Gl.INLINE_FRAGMENT:return i.includes(oe.INLINE_FRAGMENT);case Gl.SCHEMA_DEF:return i.includes(oe.SCHEMA);case Gl.SCALAR_DEF:return i.includes(oe.SCALAR);case Gl.OBJECT_TYPE_DEF:return i.includes(oe.OBJECT);case Gl.FIELD_DEF:return i.includes(oe.FIELD_DEFINITION);case Gl.INTERFACE_DEF:return i.includes(oe.INTERFACE);case Gl.UNION_DEF:return i.includes(oe.UNION);case Gl.ENUM_DEF:return i.includes(oe.ENUM);case Gl.ENUM_VALUE:return i.includes(oe.ENUM_VALUE);case Gl.INPUT_DEF:return i.includes(oe.INPUT_OBJECT);case Gl.INPUT_VALUE_DEF:switch(null==r?void 0:r.kind){case Gl.ARGUMENTS_DEF:return i.includes(oe.ARGUMENT_DEFINITION);case Gl.INPUT_DEF:return i.includes(oe.INPUT_FIELD_DEFINITION)}}return!1}(t.prevState,e)).map(e=>({label:e.name,documentation:(null==e?void 0:e.description)||"",kind:Kl.Function}))):[]}(f,u,e):p===Gl.DIRECTIVE_DEF?function(e,t,n){const r=n.getDirectives().find(e=>e.name===t.name);return Pa(e,(null==r?void 0:r.args.map(e=>({label:e.name,documentation:e.description||"",kind:Kl.Field})))||[])}(f,u,e):[]}function ou(e,t,n){let r,i=null;const o=Object.create({});return zl(e,(e,a)=>{var s;if((null==a?void 0:a.kind)===Gl.VARIABLE&&a.name&&(i=a.name),(null==a?void 0:a.kind)===Gl.NAMED_TYPE&&i){const e=Jl(a,Gl.TYPE);(null==e?void 0:e.type)&&(r=t.getType(null==e?void 0:e.type))}if(i&&r&&!o[i]){const e="$"===n.string||"Variable"===(null===(s=null==n?void 0:n.state)||void 0===s?void 0:s.kind)?i:"$"+i;o[i]={detail:r.toString(),insertText:e,label:"$"+i,rawInsert:e,type:r,kind:Kl.Variable},i=null,r=null}}),Fa(o)}function au(e){return e.prevState&&e.kind&&[Gl.NAMED_TYPE,Gl.LIST_TYPE,Gl.TYPE,Gl.NON_NULL_TYPE].includes(e.kind)?au(e.prevState):e}var su,lu,uu,cu,du,fu,pu,hu=a(()=>{ha(),ru(),nu(),hl(),ml(),Yl={command:"editor.action.triggerSuggest",title:"Suggestions"},Ql=e=>{const t=[];if(e)try{At(Ze(e),{FragmentDefinition(e){t.push(e)}})}catch(Vc){return[]}return t},Xl=[{label:"type",kind:Kl.Function},{label:"interface",kind:Kl.Function},{label:"union",kind:Kl.Function},{label:"input",kind:Kl.Function},{label:"scalar",kind:Kl.Function},{label:"schema",kind:Kl.Function}],Zl=[{label:"query",kind:Kl.Function},{label:"mutation",kind:Kl.Function},{label:"subscription",kind:Kl.Function},{label:"fragment",kind:Kl.Function},{label:"{",kind:Kl.Constructor}],Jl=(e,t)=>{var n,r,i,o,a,s,l,u,c,d;return(null===(n=e.prevState)||void 0===n?void 0:n.kind)===t?e.prevState:(null===(i=null===(r=e.prevState)||void 0===r?void 0:r.prevState)||void 0===i?void 0:i.kind)===t?e.prevState.prevState:(null===(s=null===(a=null===(o=e.prevState)||void 0===o?void 0:o.prevState)||void 0===a?void 0:a.prevState)||void 0===s?void 0:s.kind)===t?e.prevState.prevState.prevState:(null===(d=null===(c=null===(u=null===(l=e.prevState)||void 0===l?void 0:l.prevState)||void 0===u?void 0:u.prevState)||void 0===c?void 0:c.prevState)||void 0===d?void 0:d.kind)===t?e.prevState.prevState.prevState.prevState:void 0}}),mu=s((e,t)=>{function n(e,t){if(null!=e)return e;var n=new Error(void 0!==t?t:"Got unexpected "+e);throw n.framesToPop=1,n}t.exports=n,t.exports.default=n,Object.defineProperty(t.exports,"__esModule",{value:!0})}),gu=a(()=>{ha(),su=c(mu()),lu=(e,t)=>{if(!t)return[];const n=new Map,r=new Set;At(e,{FragmentDefinition(e){n.set(e.name.value,!0)},FragmentSpread(e){r.has(e.name.value)||r.add(e.name.value)}});const i=new Set;for(const a of r)!n.has(a)&&t.has(a)&&i.add((0,su.default)(t.get(a)));const o=[];for(const a of i)At(a,{FragmentSpread(e){!r.has(e.name.value)&&t.get(e.name.value)&&(i.add((0,su.default)(t.get(e.name.value))),r.add(e.name.value))}}),n.has(a.name.value)||o.push(a);return o}}),vu=a(()=>{uu=class{constructor(e,t){this.containsPosition=e=>this.start.line===e.line?this.start.character<=e.character:this.end.line===e.line?this.end.character>=e.character:this.start.line<=e.line&&this.end.line>=e.line,this.start=e,this.end=t}setStart(e,t){this.start=new cu(e,t)}setEnd(e,t){this.end=new cu(e,t)}},cu=class{constructor(e,t){this.lessThanOrEqualTo=e=>this.line<e.line||this.line===e.line&&this.character<=e.character,this.line=e,this.character=t}setLine(e){this.line=e}setCharacter(e){this.character=e}}}),yu=a(()=>{ha()}),bu=a(()=>{ha()}),wu=a(()=>{ha(),bu()}),xu=a(()=>{gu(),vu(),yu(),wu()}),Eu=a(()=>{xu()});function ku(e,t,n){if(!e.nodes)return[];const r=[];for(const[i,o]of e.nodes.entries()){const a="Variable"!==o.kind&&"name"in o&&void 0!==o.name?o.name:"variable"in o&&void 0!==o.variable?o.variable:o;if(a){pu(e.locations,"GraphQL validation error requires locations.");const o=e.locations[i],s=Cu(a),l=o.column+(s.end-s.start);r.push({source:`GraphQL: ${n}`,message:e.message,severity:t,range:new uu(new cu(o.line-1,o.column-1),new cu(o.line-1,l))})}}return r}function Cu(e){const t=e.loc;return pu(t,"Expected ASTNode to have a location."),t}var Su=a(()=>{ha(),nu(),xu(),du={Error:"Error",Warning:"Warning",Information:"Information",Hint:"Hint"},fu={[du.Error]:1,[du.Warning]:2,[du.Information]:3,[du.Hint]:4},pu=(e,t)=>{if(!e)throw new Error(t)}}),Tu=a(()=>{xu()}),_u=a(()=>{nu()}),Nu=a(()=>{hl(),hu(),Eu(),Su(),Tu(),_u()}),Au=a(()=>{Nu(),nu(),ru(),xu()}),Du=s((e,t)=>{t.exports=function(e){return"object"==typeof e?null===e:"function"!=typeof e}}),Ou=s((e,t)=>{t.exports=function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}}),Lu=s((e,t)=>{var n=Ou();function r(e){return!0===n(e)&&"[object Object]"===Object.prototype.toString.call(e)}t.exports=function(e){var t,n;return!1!==r(e)&&"function"==typeof(t=e.constructor)&&!1!==r(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")}}),Iu=s((e,t)=>{var{deleteProperty:n}=Reflect,r=Du(),i=Lu(),o=e=>"object"==typeof e&&null!==e||"function"==typeof e,a=e=>{if(!r(e))throw new TypeError("Object keys must be strings or symbols");if((e=>"__proto__"===e||"constructor"===e||"prototype"===e)(e))throw new Error(`Cannot set unsafe key: "${e}"`)},s=(e,t)=>t&&"function"==typeof t.split?t.split(e):"symbol"==typeof e?[e]:Array.isArray(e)?e:((e,t,n)=>{const r=(e=>Array.isArray(e)?e.flat().map(String).join(","):e)(t?((e,t)=>{if("string"!=typeof e||!t)return e;let n=e+";";return void 0!==t.arrays&&(n+=`arrays=${t.arrays};`),void 0!==t.separator&&(n+=`separator=${t.separator};`),void 0!==t.split&&(n+=`split=${t.split};`),void 0!==t.merge&&(n+=`merge=${t.merge};`),void 0!==t.preservePaths&&(n+=`preservePaths=${t.preservePaths};`),n})(e,t):e);a(r);const i=u.cache.get(r)||n();return u.cache.set(r,i),i})(e,t,()=>((e,t={})=>{const n=t.separator||".",r="/"!==n&&t.preservePaths;if("string"==typeof e&&!1!==r&&/\//.test(e))return[e];const i=[];let o="";const a=e=>{let t;""!==e.trim()&&Number.isInteger(t=Number(e))?i.push(t):i.push(e)};for(let s=0;s<e.length;s++){const t=e[s];"\\"!==t?t!==n?o+=t:(a(o),o=""):o+=e[++s]}return o&&a(o),i})(e,t)),l=(e,t,r,o)=>{if(a(t),void 0===r)n(e,t);else if(o&&o.merge){const n="function"===o.merge?o.merge:Object.assign;n&&i(e[t])&&i(r)?e[t]=n(e[t],r):e[t]=r}else e[t]=r;return e},u=(e,t,n,r)=>{if(!t||!o(e))return e;const i=s(t,r);let u=e;for(let s=0;s<i.length;s++){const e=i[s],t=i[s+1];if(a(e),void 0===t){l(u,e,n,r);break}"number"!=typeof t||Array.isArray(u[e])?(o(u[e])||(u[e]={}),u=u[e]):u=u[e]=[]}return e};u.split=s,u.cache=new Map,u.clear=()=>{u.cache=new Map},t.exports=u}),Mu=s((e,t)=>{var n=Ou();function r(e,t,n){return"function"==typeof n.join?n.join(e):e[0]+t+e[1]}function i(e,t,n){return"function"!=typeof n.isValid||n.isValid(e,t)}function o(e){return n(e)||Array.isArray(e)||"function"==typeof e}t.exports=function(e,t,a){if(n(a)||(a={default:a}),!o(e))return void 0!==a.default?a.default:e;"number"==typeof t&&(t=String(t));const s=Array.isArray(t),l="string"==typeof t,u=a.separator||".",c=a.joinChar||("string"==typeof u?u:".");if(!l&&!s)return e;if(l&&t in e)return i(t,e,a)?e[t]:a.default;let d=s?t:function(e,t,n){return"function"==typeof n.split?n.split(e):e.split(t)}(t,u,a),f=d.length,p=0;do{let t=d[p];for("number"==typeof t&&(t=String(t));t&&"\\"===t.slice(-1);)t=r([t.slice(0,-1),d[++p]||""],c,a);if(t in e){if(!i(t,e,a))return a.default;e=e[t]}else{let n=!1,o=p+1;for(;o<f;)if(t=r([t,d[o++]],c,a),n=t in e){if(!i(t,e,a))return a.default;e=e[t],p=o-1;break}if(!n)return a.default}}while(++p<f&&o(e));return p===f?e:a.default}}),Fu=c(f());function Pu(e){const t=(0,Fu.createContext)(null);return t.displayName=e,t}function Ru(e){function t(t){var n;const r=(0,Fu.useContext)(e);if(null===r&&(null==t?void 0:t.nonNull))throw new Error(`Tried to use \`${(null==(n=t.caller)?void 0:n.name)||"a component"}\` without the necessary context. Make sure to render the \`${e.displayName}Provider\` component higher up the tree.`);return r}return Object.defineProperty(t,"name",{value:`use${e.displayName}`}),t}var ju=e=>{let t;const n=new Set,r=(e,r)=>{const i="function"==typeof e?e(t):e;if(!Object.is(i,t)){const e=t;t=(null!=r?r:"object"!=typeof i||null===i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,o={setState:r,getState:i,getInitialState:()=>a,subscribe:e=>(n.add(e),()=>n.delete(e))},a=t=e(r,i,o);return o},Vu=e=>e?ju(e):ju,Bu=e=>e,zu=e=>t=>function(e,t=Bu){const n=Fu.useSyncExternalStore(e.subscribe,Fu.useCallback(()=>t(e.getState()),[e,t]),Fu.useCallback(()=>t(e.getInitialState()),[e,t]));return Fu.useDebugValue(n),n}(e,t),$u=x(),Uu=Vu(()=>({storage:null})),Hu=e=>{const t=(0,$u.c)(3),{storage:n,children:r}=e,i=Wu(Gu);let o,a;return t[0]!==n?(o=()=>{Uu.setState({storage:new _a(n)})},a=[n],t[0]=n,t[1]=o,t[2]=a):(o=t[1],a=t[2]),(0,Fu.useEffect)(o,a),i?r:null},Wu=zu(Uu),qu=()=>Wu(Ku);function Gu(e){return Boolean(e.storage)}function Ku(e){return e.storage}var Yu="undefined"!=typeof navigator&&navigator.userAgent.includes("Mac"),Qu=s((e,t)=>{var n,r;n=e,r=function(){var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),l=!o&&/WebKit\//.test(e),u=l&&/Qt\/\d+\.\d+/.test(e),c=!o&&/Chrome\/(\d+)/.exec(e),d=c&&+c[1],f=/Opera\//.test(e),p=/Apple Computer/.test(navigator.vendor),h=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),m=/PhantomJS/.test(e),g=p&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),v=/Android/.test(e),y=g||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),b=g||/Mac/.test(t),w=/\bCrOS\b/.test(e),x=/win/i.test(t),E=f&&e.match(/Version\/(\d*\.\d*)/);E&&(E=Number(E[1])),E&&E>=15&&(f=!1,l=!0);var k=b&&(u||f&&(null==E||E<12.11)),C=n||a&&s>=9;function S(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var T,_=function(e,t){var n=e.className,r=S(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function N(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function A(e,t){return N(e).appendChild(t)}function D(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function O(e,t,n,r){var i=D(e,t,n,r);return i.setAttribute("role","presentation"),i}function L(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function I(e){var t,n=e.ownerDocument||e;try{t=e.activeElement}catch(RR){t=n.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function M(e,t){var n=e.className;S(t).test(n)||(e.className+=(n?" ":"")+t)}function F(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!S(n[r]).test(t)&&(t+=" "+n[r]);return t}T=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(RR){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var P=function(e){e.select()};function R(e){return e.display.wrapper.ownerDocument}function j(e){return V(e.display.wrapper)}function V(e){return e.getRootNode?e.getRootNode():e.ownerDocument}function B(e){return R(e).defaultView}function z(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function $(e,t,n){for(var r in t||(t={}),e)!Object.prototype.hasOwnProperty.call(e,r)||!1===n&&Object.prototype.hasOwnProperty.call(t,r)||(t[r]=e[r]);return t}function U(e,t,n,r,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=r||0,a=i||0;;){var s=e.indexOf("\t",o);if(s<0||s>=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}g?P=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(P=function(e){try{e.select()}catch(t){}});var H=function(){this.id=null,this.f=null,this.time=0,this.handler=z(this.onTimeout,this)};function W(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}H.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},H.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};var q={toString:function(){return"CodeMirror.Pass"}},G={scroll:!1},K={origin:"*mouse"},Y={origin:"+move"};function Q(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);-1==o&&(o=e.length);var a=o-r;if(o==e.length||i+a>=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var X=[""];function Z(e){for(;X.length<=e;)X.push(J(X)+" ");return X[e]}function J(e){return e[e.length-1]}function ee(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function te(){}function ne(e,t){var n;return Object.create?n=Object.create(e):(te.prototype=e,n=new te),t&&$(t,n),n}var re=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ie(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||re.test(e))}function oe(e,t){return t?!!(t.source.indexOf("\\w")>-1&&ie(e))||t.test(e):ie(e)}function ae(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var se=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function le(e){return e.charCodeAt(0)>=768&&se.test(e)}function ue(e,t,n){for(;(n<0?t>0:t<e.length)&&le(e.charAt(t));)t+=n;return t}function ce(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}var de=null;function fe(e,t,n){var r;de=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:de=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:de=i)}return null!=r?r:de}var pe=function(){function e(e){return e<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(e):1424<=e&&e<=1524?"R":1536<=e&&e<=1785?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(e-1536):1774<=e&&e<=2220?"r":8192<=e&&e<=8203?"w":8204==e?"b":"L"}var t=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,n=/[stwN]/,r=/[LRr]/,i=/[Lb1n]/,o=/[1n]/;function a(e,t,n){this.level=e,this.from=t,this.to=n}return function(s,l){var u="ltr"==l?"L":"R";if(0==s.length||"ltr"==l&&!t.test(s))return!1;for(var c=s.length,d=[],f=0;f<c;++f)d.push(e(s.charCodeAt(f)));for(var p=0,h=u;p<c;++p){var m=d[p];"m"==m?d[p]=h:h=m}for(var g=0,v=u;g<c;++g){var y=d[g];"1"==y&&"r"==v?d[g]="n":r.test(y)&&(v=y,"r"==y&&(d[g]="R"))}for(var b=1,w=d[0];b<c-1;++b){var x=d[b];"+"==x&&"1"==w&&"1"==d[b+1]?d[b]="1":","!=x||w!=d[b+1]||"1"!=w&&"n"!=w||(d[b]=w),w=x}for(var E=0;E<c;++E){var k=d[E];if(","==k)d[E]="N";else if("%"==k){var C=void 0;for(C=E+1;C<c&&"%"==d[C];++C);for(var S=E&&"!"==d[E-1]||C<c&&"1"==d[C]?"1":"N",T=E;T<C;++T)d[T]=S;E=C-1}}for(var _=0,N=u;_<c;++_){var A=d[_];"L"==N&&"1"==A?d[_]="L":r.test(A)&&(N=A)}for(var D=0;D<c;++D)if(n.test(d[D])){var O=void 0;for(O=D+1;O<c&&n.test(d[O]);++O);for(var L="L"==(D?d[D-1]:u),I=L==("L"==(O<c?d[O]:u))?L?"L":"R":u,M=D;M<O;++M)d[M]=I;D=O-1}for(var F,P=[],R=0;R<c;)if(i.test(d[R])){var j=R;for(++R;R<c&&i.test(d[R]);++R);P.push(new a(0,j,R))}else{var V=R,B=P.length,z="rtl"==l?1:0;for(++R;R<c&&"L"!=d[R];++R);for(var $=V;$<R;)if(o.test(d[$])){V<$&&(P.splice(B,0,new a(1,V,$)),B+=z);var U=$;for(++$;$<R&&o.test(d[$]);++$);P.splice(B,0,new a(2,U,$)),B+=z,V=$}else++$;V<R&&P.splice(B,0,new a(1,V,R))}return"ltr"==l&&(1==P[0].level&&(F=s.match(/^\s+/))&&(P[0].from=F[0].length,P.unshift(new a(0,0,F[0].length))),1==J(P).level&&(F=s.match(/\s+$/))&&(J(P).to-=F[0].length,P.push(new a(0,c-F[0].length,c)))),"rtl"==l?P.reverse():P}}();function he(e,t){var n=e.order;return null==n&&(n=e.order=pe(e.text,t)),n}var me=[],ge=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||me).concat(n)}};function ve(e,t){return e._handlers&&e._handlers[t]||me}function ye(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=W(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function be(e,t){var n=ve(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function we(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),be(e,n||t.type,e,t),Te(t)||t.codemirrorIgnore}function xe(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==W(n,t[r])&&n.push(t[r])}function Ee(e,t){return ve(e,t).length>0}function ke(e){e.prototype.on=function(e,t){ge(this,e,t)},e.prototype.off=function(e,t){ye(this,e,t)}}function Ce(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Se(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Te(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function _e(e){Ce(e),Se(e)}function Ne(e){return e.target||e.srcElement}function Ae(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),b&&e.ctrlKey&&1==t&&(t=3),t}var De,Oe,Le=function(){if(a&&s<9)return!1;var e=D("div");return"draggable"in e||"dragDrop"in e}();function Ie(e){if(null==De){var t=D("span","");A(e,D("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(De=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=De?D("span",""):D("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Me(e){if(null!=Oe)return Oe;var t=A(e,document.createTextNode("AخA")),n=T(t,0,1).getBoundingClientRect(),r=T(t,1,2).getBoundingClientRect();return N(e),!(!n||n.left==n.right)&&(Oe=r.right-n.right<3)}var Fe=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Pe=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(RR){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(RR){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Re=function(){var e=D("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),je=null,Ve={},Be={};function ze(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ve[e]=t}function $e(e){if("string"==typeof e&&Be.hasOwnProperty(e))e=Be[e];else if(e&&"string"==typeof e.name&&Be.hasOwnProperty(e.name)){var t=Be[e.name];"string"==typeof t&&(t={name:t}),(e=ne(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return $e("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return $e("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ue(e,t){t=$e(t);var n=Ve[t.name];if(!n)return Ue(e,"text/plain");var r=n(e,t);if(He.hasOwnProperty(t.name)){var i=He[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var He={};function We(e,t){$(t,He.hasOwnProperty(e)?He[e]:He[e]={})}function qe(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Ge(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Ke(e,t,n){return!e.startState||e.startState(t,n)}var Ye=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Qe(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function Xe(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,function(e){var o=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i}),r}function Ze(e,t,n){var r=[];return e.iter(t,n,function(e){r.push(e.text)}),r}function Je(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function et(e){if(null==e.parent)return null;for(var t=e.parent,n=W(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function tt(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var s=e.lines[a].height;if(t<s)break;t-=s}return n+a}function nt(e,t){return t>=e.first&&t<e.first+e.size}function rt(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function it(e,t,n){if(void 0===n&&(n=null),!(this instanceof it))return new it(e,t,n);this.line=e,this.ch=t,this.sticky=n}function ot(e,t){return e.line-t.line||e.ch-t.ch}function at(e,t){return e.sticky==t.sticky&&0==ot(e,t)}function st(e){return it(e.line,e.ch)}function lt(e,t){return ot(e,t)<0?t:e}function ut(e,t){return ot(e,t)<0?e:t}function ct(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function dt(e,t){if(t.line<e.first)return it(e.first,0);var n=e.first+e.size-1;return t.line>n?it(n,Qe(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?it(e.line,t):n<0?it(e.line,0):e}(t,Qe(e,t.line).text.length)}function ft(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=dt(e,t[r]);return n}Ye.prototype.eol=function(){return this.pos>=this.string.length},Ye.prototype.sol=function(){return this.pos==this.lineStart},Ye.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ye.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ye.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},Ye.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Ye.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ye.prototype.skipToEnd=function(){this.pos=this.string.length},Ye.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ye.prototype.backUp=function(e){this.pos-=e},Ye.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=U(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?U(this.string,this.lineStart,this.tabSize):0)},Ye.prototype.indentation=function(){return U(this.string,null,this.tabSize)-(this.lineStart?U(this.string,this.lineStart,this.tabSize):0)},Ye.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},Ye.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ye.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ye.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ye.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var pt=function(e,t){this.state=e,this.lookAhead=t},ht=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function mt(e,t,n,r){var i=[e.state.modeGen],o={};Ct(e,t.text,e.doc.mode,n,function(e,t){return i.push(e,t)},o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],l=1,u=0;n.state=!0,Ct(e,t.text,s.mode,n,function(e,t){for(var n=l;u<e;){var r=i[l];r>e&&i.splice(l,1,e,i[l+1],r),l+=2,u=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;n<l;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+t}},o),n.state=a,n.baseTokens=null,n.baseTokenPos=1},l=0;l<e.state.overlays.length;++l)s(l);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function gt(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=vt(e,et(t)),i=t.text.length>e.options.maxHighlightLength&&qe(e.doc.mode,r.state),o=mt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function vt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new ht(r,!0,t);var o=function(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var l=Qe(o,s-1),u=l.stateAfter;if(u&&(!n||s+(u instanceof pt?u.lookAhead:0)<=o.modeFrontier))return s;var c=U(l.text,null,e.options.tabSize);(null==i||r>c)&&(i=s-1,r=c)}return i}(e,t,n),a=o>r.first&&Qe(r,o-1).stateAfter,s=a?ht.fromSaved(r,a,o):new ht(r,Ke(r.mode),o);return r.iter(o,t,function(n){yt(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()}),n&&(r.modeFrontier=s.line),s}function yt(e,t,n,r){var i=e.doc.mode,o=new Ye(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&&bt(i,n.state);!o.eol();)wt(i,o,n.state),o.start=o.pos}function bt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Ge(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function wt(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=Ge(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}ht.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},ht.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},ht.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ht.fromSaved=function(e,t,n){return t instanceof pt?new ht(e,qe(e.mode,t.state),n,t.lookAhead):new ht(e,qe(e.mode,t),n)},ht.prototype.save=function(e){var t=!1!==e?qe(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new pt(t,this.maxLookAhead):t};var xt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function Et(e,t,n,r){var i,o,a=e.doc,s=a.mode,l=Qe(a,(t=dt(a,t)).line),u=vt(e,t.line,n),c=new Ye(l.text,e.options.tabSize,u);for(r&&(o=[]);(r||c.pos<t.ch)&&!c.eol();)c.start=c.pos,i=wt(s,c,u.state),r&&o.push(new xt(c,i,qe(a.mode,u.state)));return r?o:new xt(c,i,u.state)}function kt(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+n[2])}return e}function Ct(e,t,n,r,i,o,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var l,u=0,c=null,d=new Ye(t,e.options.tabSize,r),f=e.options.addModeClass&&[null];for(""==t&&kt(bt(n,r.state),o);!d.eol();){if(d.pos>e.options.maxHighlightLength?(s=!1,a&&yt(e,t,r,d.pos),d.pos=t.length,l=null):l=kt(wt(n,d,r.state,f),o),f){var p=f[0].name;p&&(l="m-"+(l?p+" "+l:p))}if(!s||c!=l){for(;u<d.start;)i(u=Math.min(d.start,u+5e3),c);c=l}d.start=d.pos}for(;u<d.pos;){var h=Math.min(d.pos,u+5e3);i(h,c),u=h}}var St=!1,Tt=!1;function _t(e,t,n){this.marker=e,this.from=t,this.to=n}function Nt(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function At(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function Dt(e,t){if(t.full)return null;var n=nt(e,t.from.line)&&Qe(e,t.from.line).markedSpans,r=nt(e,t.to.line)&&Qe(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=0==ot(t.from,t.to),s=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t)||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var s=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new _t(a,o.from,s?null:o.to))}}return r}(n,i,a),l=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.to||(a.inclusiveRight?o.to>=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new _t(a,s?null:o.from-t,null==o.to?null:o.to-t))}}return r}(r,o,a),u=1==t.text.length,c=J(t.text).length+(u?i:0);if(s)for(var d=0;d<s.length;++d){var f=s[d];if(null==f.to){var p=Nt(l,f.marker);p?u&&(f.to=null==p.to?null:p.to+c):f.to=i}}if(l)for(var h=0;h<l.length;++h){var m=l[h];null!=m.to&&(m.to+=c),null==m.from?Nt(s,m.marker)||(m.from=c,u&&(s||(s=[])).push(m)):(m.from+=c,u&&(s||(s=[])).push(m))}s&&(s=Ot(s)),l&&l!=s&&(l=Ot(l));var g=[s];if(!u){var v,y=t.text.length-2;if(y>0&&s)for(var b=0;b<s.length;++b)null==s[b].to&&(v||(v=[])).push(new _t(s[b].marker,null,null));for(var w=0;w<y;++w)g.push(v);g.push(l)}return g}function Ot(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function Lt(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function It(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Mt(e){return e.inclusiveLeft?-1:0}function Ft(e){return e.inclusiveRight?1:0}function Pt(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=ot(r.from,i.from)||Mt(e)-Mt(t);return o?-o:ot(r.to,i.to)||Ft(e)-Ft(t)||t.id-e.id}function Rt(e,t){var n,r=Tt&&e.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)(i=r[o]).marker.collapsed&&null==(t?i.from:i.to)&&(!n||Pt(n,i.marker)<0)&&(n=i.marker);return n}function jt(e){return Rt(e,!0)}function Vt(e){return Rt(e,!1)}function Bt(e,t){var n,r=Tt&&e.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||Pt(n,o.marker)<0)&&(n=o.marker)}return n}function zt(e,t,n,r,i){var o=Qe(e,t),a=Tt&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var l=a[s];if(l.marker.collapsed){var u=l.marker.find(0),c=ot(u.from,n)||Mt(l.marker)-Mt(i),d=ot(u.to,r)||Ft(l.marker)-Ft(i);if(!(c>=0&&d<=0||c<=0&&d>=0)&&(c<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ot(u.to,n)>=0:ot(u.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ot(u.from,r)<=0:ot(u.from,r)<0)))return!0}}}function $t(e){for(var t;t=jt(e);)e=t.find(-1,!0).line;return e}function Ut(e,t){var n=Qe(e,t),r=$t(n);return n==r?t:et(r)}function Ht(e,t){if(t>e.lastLine())return t;var n,r=Qe(e,t);if(!Wt(e,r))return t;for(;n=Vt(r);)r=n.find(1,!0).line;return et(r)+1}function Wt(e,t){var n=Tt&&t.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&qt(e,t,r))return!0}}function qt(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return qt(e,r.line,Nt(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if((i=t.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&qt(e,t,i))return!0}function Gt(e){for(var t=0,n=(e=$t(e)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(var a=0;a<o.children.length;++a){var s=o.children[a];if(s==n)break;t+=s.height}return t}function Kt(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=jt(r);){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=e;t=Vt(r);){var o=t.find(0,!0);n-=r.text.length-o.from.ch,n+=(r=o.to.line).text.length-o.to.ch}return n}function Yt(e){var t=e.display,n=e.doc;t.maxLine=Qe(n,n.first),t.maxLineLength=Kt(t.maxLine),t.maxLineChanged=!0,n.iter(function(e){var n=Kt(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}var Qt=function(e,t,n){this.text=e,It(this,t),this.height=n?n(this):1};function Xt(e){e.parent=null,Lt(e)}Qt.prototype.lineNo=function(){return et(this)},ke(Qt);var Zt={},Jt={};function en(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Jt:Zt;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function tn(e,t){var n=O("span",null,null,l?"padding-right: .1px":null),r={pre:O("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=rn,Me(e.display.measure)&&(a=he(o,e.doc.direction))&&(r.addToken=on(r.addToken,a)),r.map=[],sn(o,r,gt(e,o,t!=e.display.externalMeasured&&et(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=F(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=F(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Ie(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return be(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=F(r.pre.className,r.textClass||"")),r}function nn(e){var t=D("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function rn(e,t,n,r,i,o,l){if(t){var u,c=e.splitSpaces?function(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}(t,e.trailingSpace):t,d=e.cm.state.specialChars,f=!1;if(d.test(t)){u=document.createDocumentFragment();for(var p=0;;){d.lastIndex=p;var h=d.exec(t),m=h?h.index-p:t.length-p;if(m){var g=document.createTextNode(c.slice(p,p+m));a&&s<9?u.appendChild(D("span",[g])):u.appendChild(g),e.map.push(e.pos,e.pos+m,g),e.col+=m,e.pos+=m}if(!h)break;p+=m+1;var v=void 0;if("\t"==h[0]){var y=e.cm.options.tabSize,b=y-e.col%y;(v=u.appendChild(D("span",Z(b),"cm-tab"))).setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=b}else"\r"==h[0]||"\n"==h[0]?((v=u.appendChild(D("span","\r"==h[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",h[0]),e.col+=1):((v=e.cm.options.specialCharPlaceholder(h[0])).setAttribute("cm-text",h[0]),a&&s<9?u.appendChild(D("span",[v])):u.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,u=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,u),a&&s<9&&(f=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),n||r||i||f||o||l){var w=n||"";r&&(w+=r),i&&(w+=i);var x=D("span",[u],w,o);if(l)for(var E in l)l.hasOwnProperty(E)&&"style"!=E&&"class"!=E&&x.setAttribute(E,l[E]);return e.content.appendChild(x)}e.content.appendChild(u)}}function on(e,t){return function(n,r,i,o,a,s,l){i=i?i+" cm-force-border":"cm-force-border";for(var u=n.pos,c=u+r.length;;){for(var d=void 0,f=0;f<t.length&&!((d=t[f]).to>u&&d.from<=u);f++);if(d.to>=c)return e(n,r,i,o,a,s,l);e(n,r.slice(0,d.to-u),i,o,null,s,l),o=null,r=r.slice(d.to-u),u=d.to}}}function an(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function sn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,u,c,d,f,p=i.length,h=0,m=1,g="",v=0;;){if(v==h){l=u=c=s="",f=null,d=null,v=1/0;for(var y=[],b=void 0,w=0;w<r.length;++w){var x=r[w],E=x.marker;if("bookmark"==E.type&&x.from==h&&E.widgetNode)y.push(E);else if(x.from<=h&&(null==x.to||x.to>h||E.collapsed&&x.to==h&&x.from==h)){if(null!=x.to&&x.to!=h&&v>x.to&&(v=x.to,u=""),E.className&&(l+=" "+E.className),E.css&&(s=(s?s+";":"")+E.css),E.startStyle&&x.from==h&&(c+=" "+E.startStyle),E.endStyle&&x.to==v&&(b||(b=[])).push(E.endStyle,x.to),E.title&&((f||(f={})).title=E.title),E.attributes)for(var k in E.attributes)(f||(f={}))[k]=E.attributes[k];E.collapsed&&(!d||Pt(d.marker,E)<0)&&(d=x)}else x.from>h&&v>x.from&&(v=x.from)}if(b)for(var C=0;C<b.length;C+=2)b[C+1]==v&&(u+=" "+b[C]);if(!d||d.from==h)for(var S=0;S<y.length;++S)an(t,0,y[S]);if(d&&(d.from||0)==h){if(an(t,(null==d.to?p+1:d.to)-h,d.marker,null==d.from),null==d.to)return;d.to==h&&(d=!1)}}if(h>=p)break;for(var T=Math.min(p,v);;){if(g){var _=h+g.length;if(!d){var N=_>T?g.slice(0,T-h):g;t.addToken(t,N,a?a+l:l,c,h+N.length==v?u:"",s,f)}if(_>=T){g=g.slice(T-h),h=T;break}h=_,c=""}g=i.slice(o,o=n[m++]),a=en(n[m++],t.cm.options)}}else for(var A=1;A<n.length;A+=2)t.addToken(t,i.slice(o,o=n[A]),en(n[A+1],t.cm.options))}function ln(e,t,n){this.line=t,this.rest=function(e){for(var t,n;t=Vt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}(t),this.size=this.rest?et(J(this.rest))-n+1:1,this.node=this.text=null,this.hidden=Wt(e,t)}function un(e,t,n){for(var r,i=[],o=t;o<n;o=r){var a=new ln(e.doc,Qe(e.doc,o),o);r=o+a.size,i.push(a)}return i}var cn=null,dn=null;function fn(e,t){var n=ve(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);cn?r=cn.delayedCallbacks:dn?r=dn:(r=dn=[],setTimeout(pn,0));for(var o=function(e){r.push(function(){return n[e].apply(null,i)})},a=0;a<n.length;++a)o(a)}}function pn(){var e=dn;dn=null;for(var t=0;t<e.length;++t)e[t]()}function hn(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?vn(e,t):"gutter"==o?bn(e,t,n,r):"class"==o?yn(e,t):"widget"==o&&wn(e,t,r)}t.changes=null}function mn(e){return e.node==e.text&&(e.node=D("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),a&&s<8&&(e.node.style.zIndex=2)),e.node}function gn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):tn(e,t)}function vn(e,t){var n=t.text.className,r=gn(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,yn(e,t)):n&&(t.text.className=n)}function yn(e,t){!function(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=mn(t);t.background=r.insertBefore(D("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}(e,t),t.line.wrapClass?mn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function bn(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=mn(t);t.gutterBackground=D("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var a=mn(t),s=t.gutter=D("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(s.setAttribute("aria-hidden","true"),e.display.input.setUneditable(s),a.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(D("div",rt(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var l=0;l<e.display.gutterSpecs.length;++l){var u=e.display.gutterSpecs[l].className,c=o.hasOwnProperty(u)&&o[u];c&&s.appendChild(D("div",[c],"CodeMirror-gutter-elt","left: "+r.gutterLeft[u]+"px; width: "+r.gutterWidth[u]+"px"))}}}function wn(e,t,n){t.alignable&&(t.alignable=null);for(var r=S("CodeMirror-linewidget"),i=t.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,r.test(i.className)&&t.node.removeChild(i);En(e,t,n)}function xn(e,t,n,r){var i=gn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),yn(e,t),bn(e,t,n,r),En(e,t,r),t.node}function En(e,t,n){if(kn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)kn(e,t.rest[r],t,n,!1)}function kn(e,t,n,r,i){if(t.widgets)for(var o=mn(n),a=0,s=t.widgets;a<s.length;++a){var l=s[a],u=D("div",[l.node],"CodeMirror-linewidget"+(l.className?" "+l.className:""));l.handleMouseEvents||u.setAttribute("cm-ignore-events","true"),Cn(l,u,n,r),e.display.input.setUneditable(u),i&&l.above?o.insertBefore(u,n.gutter||n.text):o.appendChild(u),fn(l,"redraw")}}function Cn(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function Sn(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!L(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),A(t.display.measure,D("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function Tn(e,t){for(var n=Ne(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function _n(e){return e.lineSpace.offsetTop}function Nn(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function An(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=A(e.measure,D("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function Dn(e){return 50-e.display.nativeBarWidth}function On(e){return e.display.scroller.clientWidth-Dn(e)-e.display.barWidth}function Ln(e){return e.display.scroller.clientHeight-Dn(e)-e.display.barHeight}function In(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(et(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function Mn(e,t,n,r){return Rn(e,Pn(e,t),n,r)}function Fn(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[hr(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function Pn(e,t){var n=et(t),r=Fn(e,n);r&&!r.text?r=null:r&&r.changes&&(hn(e,r,n,ur(e)),e.curOp.forceUpdate=!0),r||(r=function(e,t){var n=et(t=$t(t)),r=e.display.externalMeasured=new ln(e.doc,t,n);r.lineN=n;var i=r.built=tn(e,r);return r.text=i.pre,A(e.display.lineMeasure,i.pre),r}(e,t));var i=In(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function Rn(e,t,n,r,i){t.before&&(n=-1);var o,l=n+(r||"");return t.cache.hasOwnProperty(l)?o=t.cache[l]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(function(e,t,n){var r=e.options.lineWrapping,i=r&&On(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var l=a[s],u=a[s+1];Math.abs(l.bottom-u.bottom)>2&&o.push((l.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),o=function(e,t,n,r){var i,o=Bn(t.map,n,r),l=o.node,u=o.start,c=o.end,d=o.collapse;if(3==l.nodeType){for(var f=0;f<4;f++){for(;u&&le(t.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+c<o.coverEnd&&le(t.line.text.charAt(o.coverStart+c));)++c;if((i=a&&s<9&&0==u&&c==o.coverEnd-o.coverStart?l.parentNode.getBoundingClientRect():zn(T(l,u,c).getClientRects(),r)).left||i.right||0==u)break;c=u,u-=1,d="right"}a&&s<11&&(i=function(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(e){if(null!=je)return je;var t=A(e,D("span","x")),n=t.getBoundingClientRect(),r=T(t,0,1).getBoundingClientRect();return je=Math.abs(n.left-r.left)>1}(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}(e.display.measure,i))}else{var p;u>0&&(d=r="right"),i=e.options.lineWrapping&&(p=l.getClientRects()).length>1?p["right"==r?p.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!u&&(!i||!i.left&&!i.right)){var h=l.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+lr(e.display),top:h.top,bottom:h.bottom}:Vn}for(var m=i.top-t.rect.top,g=i.bottom-t.rect.top,v=(m+g)/2,y=t.view.measure.heights,b=0;b<y.length-1&&!(v<y[b]);b++);var w=b?y[b-1]:0,x=y[b],E={left:("right"==d?i.right:i.left)-t.rect.left,right:("left"==d?i.left:i.right)-t.rect.left,top:w,bottom:x};return i.left||i.right||(E.bogus=!0),e.options.singleCursorHeightPerLine||(E.rtop=m,E.rbottom=g),E}(e,t,n,r),o.bogus||(t.cache[l]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var jn,Vn={left:0,right:0,top:0,bottom:0};function Bn(e,t,n){for(var r,i,o,a,s,l,u=0;u<e.length;u+=3)if(s=e[u],l=e[u+1],t<s?(i=0,o=1,a="left"):t<l?o=1+(i=t-s):(u==e.length-3||t==l&&e[u+3]>t)&&(i=(o=l-s)-1,t>=l&&(a="right")),null!=i){if(r=e[u+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[2+(u-=3)],a="left";if("right"==n&&i==l-s)for(;u<e.length-3&&e[u+3]==e[u+4]&&!e[u+5].insertLeft;)r=e[(u+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:s,coverEnd:l}}function zn(e,t){var n=Vn;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;i>=0&&(n=e[i]).left==n.right;i--);return n}function $n(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function Un(e){e.display.externalMeasure=null,N(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)$n(e.display.view[t])}function Hn(e){Un(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Wn(e){return c&&v?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function qn(e){return c&&v?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function Gn(e){var t=$t(e).widgets,n=0;if(t)for(var r=0;r<t.length;++r)t[r].above&&(n+=Sn(t[r]));return n}function Kn(e,t,n,r,i){if(!i){var o=Gn(t);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=Gt(t);if("local"==r?a+=_n(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:qn(R(e)));var l=s.left+("window"==r?0:Wn(R(e)));n.left+=l,n.right+=l}return n.top+=a,n.bottom+=a,n}function Yn(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=Wn(R(e)),i-=qn(R(e));else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function Qn(e,t,n,r,i){return r||(r=Qe(e.doc,t.line)),Kn(e,r,Mn(e,r,t.ch,i),n)}function Xn(e,t,n,r,i,o){function a(t,a){var s=Rn(e,i,t,a?"right":"left",o);return a?s.left=s.right:s.right=s.left,Kn(e,r,s,n)}r=r||Qe(e.doc,t.line),i||(i=Pn(e,r));var s=he(r,e.doc.direction),l=t.ch,u=t.sticky;if(l>=r.text.length?(l=r.text.length,u="before"):l<=0&&(l=0,u="after"),!s)return a("before"==u?l-1:l,"before"==u);function c(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}var d=fe(s,l,u),f=de,p=c(l,d,"before"==u);return null!=f&&(p.other=c(l,f,"before"!=u)),p}function Zn(e,t){var n=0;t=dt(e.doc,t),e.options.lineWrapping||(n=lr(e.display)*t.ch);var r=Qe(e.doc,t.line),i=Gt(r)+_n(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Jn(e,t,n,r,i){var o=it(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function er(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Jn(r.first,0,null,-1,-1);var i=tt(r,n),o=r.first+r.size-1;if(i>o)return Jn(r.first+r.size-1,Qe(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=Qe(r,i);;){var s=ir(e,a,i,t,n),l=Bt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var u=l.find(1);if(u.line==i)return u;a=Qe(r,i=u.line)}}function tr(e,t,n,r){r-=Gn(t);var i=t.text.length,o=ce(function(t){return Rn(e,n,t-1).bottom<=r},i,0);return i=ce(function(t){return Rn(e,n,t).top>r},o,i),{begin:o,end:i}}function nr(e,t,n,r){return n||(n=Pn(e,t)),tr(e,t,n,Kn(e,t,Rn(e,n,r),"line").top)}function rr(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function ir(e,t,n,r,i){i-=Gt(t);var o=Pn(e,t),a=Gn(t),s=0,l=t.text.length,u=!0,c=he(t,e.doc.direction);if(c){var d=(e.options.lineWrapping?ar:or)(e,t,n,o,c,r,i);s=(u=1!=d.level)?d.from:d.to-1,l=u?d.to:d.from-1}var f,p,h=null,m=null,g=ce(function(t){var n=Rn(e,o,t);return n.top+=a,n.bottom+=a,!!rr(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(h=t,m=n),!0)},s,l),v=!1;if(m){var y=r-m.left<m.right-r,b=y==u;g=h+(b?0:1),p=b?"after":"before",f=y?m.left:m.right}else{u||g!=l&&g!=s||g++,p=0==g?"after":g==t.text.length?"before":Rn(e,o,g-(u?1:0)).bottom+a<=i==u?"after":"before";var w=Xn(e,it(n,g,p),"line",t,o);f=w.left,v=i<w.top?-1:i>=w.bottom?1:0}return Jn(n,g=ue(t.text,g,1),p,v,r-f)}function or(e,t,n,r,i,o,a){var s=ce(function(s){var l=i[s],u=1!=l.level;return rr(Xn(e,it(n,u?l.to:l.from,u?"before":"after"),"line",t,r),o,a,!0)},0,i.length-1),l=i[s];if(s>0){var u=1!=l.level,c=Xn(e,it(n,u?l.from:l.to,u?"after":"before"),"line",t,r);rr(c,o,a,!0)&&c.top>a&&(l=i[s-1])}return l}function ar(e,t,n,r,i,o,a){var s=tr(e,t,r,a),l=s.begin,u=s.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,d=null,f=0;f<i.length;f++){var p=i[f];if(!(p.from>=u||p.to<=l)){var h=Rn(e,r,1!=p.level?Math.min(u,p.to)-1:Math.max(l,p.from)).right,m=h<o?o-h+1e9:h-o;(!c||d>m)&&(c=p,d=m)}}return c||(c=i[i.length-1]),c.from<l&&(c={from:l,to:c.to,level:c.level}),c.to>u&&(c={from:c.from,to:u,level:c.level}),c}function sr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==jn){jn=D("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)jn.appendChild(document.createTextNode("x")),jn.appendChild(D("br"));jn.appendChild(document.createTextNode("x"))}A(e.measure,jn);var n=jn.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),N(e.measure),n||1}function lr(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=D("span","xxxxxxxxxx"),n=D("pre",[t],"CodeMirror-line-like");A(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function ur(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:cr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function cr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function dr(e){var t=sr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/lr(e.display)-3);return function(i){if(Wt(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function fr(e){var t=e.doc,n=dr(e);t.iter(function(e){var t=n(e);t!=e.height&&Je(e,t)})}function pr(e,t,n,r){var i=e.display;if(!n&&"true"==Ne(t).getAttribute("cm-not-content"))return null;var o,a,s=i.lineSpace.getBoundingClientRect();try{o=t.clientX-s.left,a=t.clientY-s.top}catch(d){return null}var l,u=er(e,o,a);if(r&&u.xRel>0&&(l=Qe(e.doc,u.line).text).length==u.ch){var c=U(l,l.length,e.options.tabSize)-l.length;u=it(u.line,Math.max(0,Math.round((o-An(e.display).left)/lr(e.display))-c))}return u}function hr(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if((t-=n[r].size)<0)return r}function mr(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Tt&&Ut(e.doc,t)<i.viewTo&&vr(e);else if(n<=i.viewFrom)Tt&&Ht(e.doc,n+r)>i.viewFrom?vr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)vr(e);else if(t<=i.viewFrom){var o=yr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):vr(e)}else if(n>=i.viewTo){var a=yr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):vr(e)}else{var s=yr(e,t,t,-1),l=yr(e,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(un(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):vr(e)}var u=i.externalMeasured;u&&(n<u.lineN?u.lineN+=r:t<u.lineN+u.size&&(i.externalMeasured=null))}function gr(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[hr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==W(a,n)&&a.push(n)}}}function vr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function yr(e,t,n,r){var i,o=hr(e,t),a=e.display.view;if(!Tt||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l<o;l++)s+=a[l].size;if(s!=t){if(r>0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;Ut(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function br(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function wr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function xr(e,t){void 0===t&&(t=!0);var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=e.options.$customCursor;a&&(t=!0);for(var s=0;s<n.sel.ranges.length;s++)if(t||s!=n.sel.primIndex){var l=n.sel.ranges[s];if(!(l.from().line>=e.display.viewTo||l.to().line<e.display.viewFrom)){var u=l.empty();if(a){var c=a(e,l);c&&Er(e,c,i)}else(u||e.options.showCursorWhenSelecting)&&Er(e,l.head,i);u||Cr(e,l,o)}}return r}function Er(e,t,n){var r=Xn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(D("div"," ","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var o=Qn(e,t,"div",null,null),a=o.right-o.left;i.style.width=(a>0?a:e.defaultCharWidth())+"px"}if(r.other){var s=n.appendChild(D("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=r.other.left+"px",s.style.top=r.other.top+"px",s.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function kr(e,t){return e.top-t.top||e.left-t.left}function Cr(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=An(e.display),s=a.left,l=Math.max(r.sizerWidth,On(e)-r.sizer.offsetLeft)-a.right,u="ltr"==i.direction;function c(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(D("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?l-e:n)+"px;\n height: "+(r-t)+"px"))}function d(t,n,r){var o,a,d=Qe(i,t),f=d.text.length;function p(n,r){return Qn(e,it(t,n),"div",d,r)}function h(t,n,r){var i=nr(e,d,null,t),o="ltr"==n==("after"==r)?"left":"right";return p("after"==r?i.begin:i.end-(/\s/.test(d.text.charAt(i.end-1))?2:1),o)[o]}var m=he(d,i.direction);return function(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}(m,n||0,null==r?f:r,function(e,t,i,d){var g="ltr"==i,v=p(e,g?"left":"right"),y=p(t-1,g?"right":"left"),b=null==n&&0==e,w=null==r&&t==f,x=0==d,E=!m||d==m.length-1;if(y.top-v.top<=3){var k=(u?w:b)&&E,C=(u?b:w)&&x?s:(g?v:y).left,S=k?l:(g?y:v).right;c(C,v.top,S-C,v.bottom)}else{var T,_,N,A;g?(T=u&&b&&x?s:v.left,_=u?l:h(e,i,"before"),N=u?s:h(t,i,"after"),A=u&&w&&E?l:y.right):(T=u?h(e,i,"before"):s,_=!u&&b&&x?l:v.right,N=!u&&w&&E?s:y.left,A=u?h(t,i,"after"):l),c(T,v.top,_-T,v.bottom),v.bottom<y.top&&c(s,v.bottom,null,y.top),c(N,y.top,A-N,y.bottom)}(!o||kr(v,o)<0)&&(o=v),kr(y,o)<0&&(o=y),(!a||kr(v,a)<0)&&(a=v),kr(y,a)<0&&(a=y)}),{start:o,end:a}}var f=t.from(),p=t.to();if(f.line==p.line)d(f.line,f.ch,p.ch);else{var h=Qe(i,f.line),m=Qe(i,p.line),g=$t(h)==$t(m),v=d(f.line,f.ch,g?h.text.length+1:null).end,y=d(p.line,g?0:null,p.ch).start;g&&(v.top<y.top-2?(c(v.right,v.top,null,v.bottom),c(s,y.top,y.left,y.bottom)):c(v.right,v.top,y.left-v.right,v.bottom)),v.bottom<y.top&&c(s,v.bottom,null,y.top)}n.appendChild(o)}function Sr(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){e.hasFocus()||Ar(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Tr(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Nr(e))}function _r(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Ar(e))},100)}function Nr(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(be(e,"focus",e,t),e.state.focused=!0,M(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Sr(e))}function Ar(e,t){e.state.delayingBlurEvent||(e.state.focused&&(be(e,"blur",e,t),e.state.focused=!1,_(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Dr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,l=0;l<t.view.length;l++){var u=t.view[l],c=e.options.lineWrapping,d=void 0,f=0;if(!u.hidden){if(i+=u.line.height,a&&s<8){var p=u.node.offsetTop+u.node.offsetHeight;d=p-n,n=p}else{var h=u.node.getBoundingClientRect();d=h.bottom-h.top,!c&&u.text.firstChild&&(f=u.text.firstChild.getBoundingClientRect().right-h.left-1)}var m=u.line.height-d;if((m>.005||m<-.005)&&(i<r&&(o-=m),Je(u.line,d),Or(u.line),u.rest))for(var g=0;g<u.rest.length;g++)Or(u.rest[g]);if(f>e.display.sizerWidth){var v=Math.ceil(f/lr(e.display));v>e.display.maxLineLength&&(e.display.maxLineLength=v,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function Or(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function Lr(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-_n(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=tt(t,r),a=tt(t,i);if(n&&n.ensure){var s=n.ensure.from.line,l=n.ensure.to.line;s<o?(o=s,a=tt(t,Gt(Qe(t,s))+e.wrapper.clientHeight)):Math.min(l,t.lastLine())>=a&&(o=tt(t,Gt(Qe(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function Ir(e,t){var n=e.display,r=sr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Ln(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+Nn(n),l=t.top<r,u=t.bottom>s-r;if(t.top<i)a.scrollTop=l?0:t.top;else if(t.bottom>i+o){var c=Math.min(t.top,(u?s:t.bottom)-o);c!=i&&(a.scrollTop=c)}var d=e.options.fixedGutter?0:n.gutters.offsetWidth,f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-d,p=On(e)-n.gutters.offsetWidth,h=t.right-t.left>p;return h&&(t.right=t.left+p),t.left<10?a.scrollLeft=0:t.left<f?a.scrollLeft=Math.max(0,t.left+d-(h?0:10)):t.right>p+f-3&&(a.scrollLeft=t.right+(h?0:10)-p),a}function Mr(e,t){null!=t&&(Rr(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Fr(e){Rr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Pr(e,t,n){null==t&&null==n||Rr(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Rr(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,jr(e,Zn(e,t.from),Zn(e,t.to),t.margin))}function jr(e,t,n,r){var i=Ir(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});Pr(e,i.scrollLeft,i.scrollTop)}function Vr(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||fi(e,{top:t}),Br(e,t,!0),n&&fi(e),si(e,100))}function Br(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function zr(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,mi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function $r(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Nn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Dn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Ur=function(e,t,n){this.cm=n;var r=this.vert=D("div",[D("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=D("div",[D("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),ge(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),ge(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ur.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Ur.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ur.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ur.prototype.zeroWidthHack=function(){var e=b&&!h?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new H,this.disableVert=new H},Ur.prototype.enableZeroWidthBar=function(e,t,n){e.style.visibility="",t.set(1e3,function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.visibility="hidden":t.set(1e3,r)})},Ur.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Hr=function(){};function Wr(e,t){t||(t=$r(e));var n=e.display.barWidth,r=e.display.barHeight;qr(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Dr(e),qr(e,$r(e)),n=e.display.barWidth,r=e.display.barHeight}function qr(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}Hr.prototype.update=function(){return{bottom:0,right:0}},Hr.prototype.setScrollLeft=function(){},Hr.prototype.setScrollTop=function(){},Hr.prototype.clear=function(){};var Gr={native:Ur,null:Hr};function Kr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&_(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Gr[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),ge(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){"horizontal"==n?zr(e,t):Vr(e,t)},e),e.display.scrollbars.addClass&&M(e.display.wrapper,e.display.scrollbars.addClass)}var Yr=0;function Qr(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Yr,markArrays:null},t=e.curOp,cn?cn.ops.push(t):t.ownsGroup=cn={ops:[t],delayedCallbacks:[]}}function Xr(e){var t=e.curOp;t&&function(e){var t=e.ownsGroup;if(t)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}(t)}finally{cn=null,function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;!function(e){for(var t=e.ops,n=0;n<t.length;n++)Zr(t[n]);for(var r=0;r<t.length;r++)Jr(t[r]);for(var i=0;i<t.length;i++)ei(t[i]);for(var o=0;o<t.length;o++)ti(t[o]);for(var a=0;a<t.length;a++)ni(t[a])}(e)}(t)}}(t)}function Zr(e){var t=e.cm,n=t.display;!function(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Dn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Dn(e)+"px",t.scrollbarsClipped=!0)}(t),e.updateMaxLine&&Yt(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ui(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Jr(e){e.updatedDisplay=e.mustUpdate&&ci(e.cm,e.update)}function ei(e){var t=e.cm,n=t.display;e.updatedDisplay&&Dr(t),e.barMeasure=$r(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Mn(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Dn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-On(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function ti(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&zr(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==I(j(t));e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Wr(t,e.barMeasure),e.updatedDisplay&&hi(t,e.barMeasure),e.selectionChanged&&Sr(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&Tr(e.cm)}function ni(e){var t=e.cm,n=t.display,r=t.doc;e.updatedDisplay&&di(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&Br(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&zr(t,e.scrollLeft,!0,!0),e.scrollToPos&&function(e,t){if(!we(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null,o=n.wrapper.ownerDocument;if(t.top+r.top<0?i=!0:t.bottom+r.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(i=!1),null!=i&&!m){var a=D("div","",null,"position: absolute;\n top: "+(t.top-n.viewOffset-_n(e.display))+"px;\n height: "+(t.bottom-t.top+Dn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(i),e.display.lineSpace.removeChild(a)}}}(t,function(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?it(t.line,t.ch+1,"before"):t,t=t.ch?it(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var a=!1,s=Xn(e,t),l=n&&n!=t?Xn(e,n):s,u=Ir(e,i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r}),c=e.doc.scrollTop,d=e.doc.scrollLeft;if(null!=u.scrollTop&&(Vr(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=u.scrollLeft&&(zr(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return i}(t,dt(r,e.scrollToPos.from),dt(r,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var a=0;a<i.length;++a)i[a].lines.length||be(i[a],"hide");if(o)for(var s=0;s<o.length;++s)o[s].lines.length&&be(o[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&be(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function ri(e,t){if(e.curOp)return t();Qr(e);try{return t()}finally{Xr(e)}}function ii(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Qr(e);try{return t.apply(e,arguments)}finally{Xr(e)}}}function oi(e){return function(){if(this.curOp)return e.apply(this,arguments);Qr(this);try{return e.apply(this,arguments)}finally{Xr(this)}}}function ai(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Qr(t);try{return e.apply(this,arguments)}finally{Xr(t)}}}function si(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,z(li,e))}function li(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=vt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?qe(t.mode,r.state):null,l=mt(e,o,r,!0);s&&(r.state=s),o.styles=l.styles;var u=o.styleClasses,c=l.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var d=!a||a.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),f=0;!d&&f<a.length;++f)d=a[f]!=o.styles[f];d&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&yt(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return si(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&ri(e,function(){for(var t=0;t<i.length;t++)gr(e,i[t],"text")})}}var ui=function(e,t,n){var r=e.display;this.viewport=t,this.visible=Lr(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=On(e),this.force=n,this.dims=ur(e),this.events=[]};function ci(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return vr(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==br(e))return!1;gi(e)&&(vr(e),t.dims=ur(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Tt&&(o=Ut(e.doc,o),a=Ht(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;!function(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=un(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=un(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(hr(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(un(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,hr(e,n)))),r.viewTo=n}(e,o,a),n.viewOffset=Gt(Qe(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var u=br(e);if(!s&&0==u&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=function(e){if(e.hasFocus())return null;var t=I(j(e));if(!t||!L(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=B(e).getSelection();r.anchorNode&&r.extend&&L(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}(e);return u>4&&(n.lineDiv.style.display="none"),function(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return l&&b&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var u=r.view,c=r.viewFrom,d=0;d<u.length;d++){var f=u[d];if(f.hidden);else if(f.node&&f.node.parentNode==o){for(;a!=f.node;)a=s(a);var p=i&&null!=t&&t<=c&&f.lineNumber;f.changes&&(W(f.changes,"gutter")>-1&&(p=!1),hn(e,f,c,n)),p&&(N(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(rt(e.options,c)))),a=f.node.nextSibling}else{var h=xn(e,f,c,n);o.insertBefore(h,a)}c+=f.size}for(;a;)a=s(a)}(e,n.updateLineNumbers,t.dims),u>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(e){if(e&&e.activeElt&&e.activeElt!=I(V(e.activeElt))&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&L(document.body,e.anchorNode)&&L(document.body,e.focusNode))){var t=e.activeElt.ownerDocument,n=t.defaultView.getSelection(),r=t.createRange();r.setEnd(e.anchorNode,e.anchorOffset),r.collapse(!1),n.removeAllRanges(),n.addRange(r),n.extend(e.focusNode,e.focusOffset)}}(c),N(n.cursorDiv),N(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,si(e,400)),n.updateLineNumbers=null,!0}function di(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=On(e))r&&(t.visible=Lr(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Nn(e.display)-Ln(e),n.top)}),t.visible=Lr(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!ci(e,t))break;Dr(e);var i=$r(e);wr(e),Wr(e,i),hi(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function fi(e,t){var n=new ui(e,t);if(ci(e,n)){Dr(e),di(e,n);var r=$r(e);wr(e),Wr(e,r),hi(e,r),n.finish()}}function pi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",fn(e,"gutterChanged",e)}function hi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Dn(e)+"px"}function mi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=cr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var s=n[a].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function gi(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=rt(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(D("div",[D("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",pi(e.display),!0}return!1}function vi(e,t){for(var n=[],r=!1,i=0;i<e.length;i++){var o=e[i],a=null;if("string"!=typeof o&&(a=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!t)continue;r=!0}n.push({className:o,style:a})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function yi(e){var t=e.gutters,n=e.gutterSpecs;N(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],o=i.className,a=i.style,s=t.appendChild(D("div",null,"CodeMirror-gutter "+o));a&&(s.style.cssText=a),"CodeMirror-linenumbers"==o&&(e.lineGutter=s,s.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",pi(e)}function bi(e){yi(e.display),mr(e),mi(e)}function wi(e,t,r,i){var o=this;this.input=r,o.scrollbarFiller=D("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=D("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=O("div",null,"CodeMirror-code"),o.selectionDiv=D("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=D("div",null,"CodeMirror-cursors"),o.measure=D("div",null,"CodeMirror-measure"),o.lineMeasure=D("div",null,"CodeMirror-measure"),o.lineSpace=O("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none"),o.mover=D("div",[O("div",[o.lineSpace],"CodeMirror-lines")],null,"position: relative"),o.sizer=D("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=D("div",null,null,"position: absolute; height: 50px; width: 1px;"),o.gutters=D("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=D("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=D("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),c&&105===d&&(o.wrapper.style.clipPath="inset(0px)"),o.wrapper.setAttribute("translate","no"),a&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),l||n&&y||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=vi(i.gutters,i.lineNumbers),yi(o),r.init(o)}ui.prototype.signal=function(e,t){Ee(e,t)&&this.events.push(arguments)},ui.prototype.finish=function(){for(var e=0;e<this.events.length;e++)be.apply(null,this.events[e])};var xi=0,Ei=null;function ki(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function Ci(e){var t=ki(e);return t.x*=Ei,t.y*=Ei,t}function Si(e,t){c&&102==d&&(null==e.display.chromeScrollHack?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var r=ki(t),i=r.x,o=r.y,a=Ei;0===t.deltaMode&&(i=t.deltaX,o=t.deltaY,a=1);var s=e.display,u=s.scroller,p=u.scrollWidth>u.clientWidth,h=u.scrollHeight>u.clientHeight;if(i&&p||o&&h){if(o&&b&&l)e:for(var m=t.target,g=s.view;m!=u;m=m.parentNode)for(var v=0;v<g.length;v++)if(g[v].node==m){e.display.currentWheelTarget=m;break e}if(i&&!n&&!f&&null!=a)return o&&h&&Vr(e,Math.max(0,u.scrollTop+o*a)),zr(e,Math.max(0,u.scrollLeft+i*a)),(!o||o&&h)&&Ce(t),void(s.wheelStartX=null);if(o&&null!=a){var y=o*a,w=e.doc.scrollTop,x=w+s.wrapper.clientHeight;y<0?w=Math.max(0,w+y-50):x=Math.min(e.doc.height,x+y+50),fi(e,{top:w,bottom:x})}xi<20&&0!==t.deltaMode&&(null==s.wheelStartX?(s.wheelStartX=u.scrollLeft,s.wheelStartY=u.scrollTop,s.wheelDX=i,s.wheelDY=o,setTimeout(function(){if(null!=s.wheelStartX){var e=u.scrollLeft-s.wheelStartX,t=u.scrollTop-s.wheelStartY,n=t&&s.wheelDY&&t/s.wheelDY||e&&s.wheelDX&&e/s.wheelDX;s.wheelStartX=s.wheelStartY=null,n&&(Ei=(Ei*xi+n)/(xi+1),++xi)}},200)):(s.wheelDX+=i,s.wheelDY+=o))}}a?Ei=-.53:n?Ei=15:c?Ei=-.7:p&&(Ei=-1/3);var Ti=function(e,t){this.ranges=e,this.primIndex=t};Ti.prototype.primary=function(){return this.ranges[this.primIndex]},Ti.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!at(n.anchor,r.anchor)||!at(n.head,r.head))return!1}return!0},Ti.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new _i(st(this.ranges[t].anchor),st(this.ranges[t].head));return new Ti(e,this.primIndex)},Ti.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},Ti.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(ot(t,r.from())>=0&&ot(e,r.to())<=0)return n}return-1};var _i=function(e,t){this.anchor=e,this.head=t};function Ni(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort(function(e,t){return ot(e.from(),t.from())}),n=W(t,i);for(var o=1;o<t.length;o++){var a=t[o],s=t[o-1],l=ot(s.to(),a.from());if(r&&!a.empty()?l>0:l>=0){var u=ut(s.from(),a.from()),c=lt(s.to(),a.to()),d=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new _i(d?c:u,d?u:c))}}return new Ti(t,n)}function Ai(e,t){return new Ti([new _i(e,t||e)],0)}function Di(e){return e.text?it(e.from.line+e.text.length-1,J(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Oi(e,t){if(ot(e,t.from)<0)return e;if(ot(e,t.to)<=0)return Di(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=Di(t).ch-t.to.ch),it(n,r)}function Li(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new _i(Oi(i.anchor,t),Oi(i.head,t)))}return Ni(e.cm,n,e.sel.primIndex)}function Ii(e,t,n){return e.line==t.line?it(n.line,e.ch-t.ch+n.ch):it(n.line+(e.line-t.line),e.ch)}function Mi(e){e.doc.mode=Ue(e.options,e.doc.modeOption),Fi(e)}function Fi(e){e.doc.iter(function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,si(e,100),e.state.modeGen++,e.curOp&&mr(e)}function Pi(e,t){return 0==t.from.ch&&0==t.to.ch&&""==J(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Ri(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){!function(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Lt(e),It(e,n);var i=r?r(e):1;i!=e.height&&Je(e,i)}(e,n,i,r),fn(e,"change",e,t)}function a(e,t){for(var n=[],o=e;o<t;++o)n.push(new Qt(u[o],i(o),r));return n}var s=t.from,l=t.to,u=t.text,c=Qe(e,s.line),d=Qe(e,l.line),f=J(u),p=i(u.length-1),h=l.line-s.line;if(t.full)e.insert(0,a(0,u.length)),e.remove(u.length,e.size-u.length);else if(Pi(e,t)){var m=a(0,u.length-1);o(d,d.text,p),h&&e.remove(s.line,h),m.length&&e.insert(s.line,m)}else if(c==d)if(1==u.length)o(c,c.text.slice(0,s.ch)+f+c.text.slice(l.ch),p);else{var g=a(1,u.length-1);g.push(new Qt(f+c.text.slice(l.ch),p,r)),o(c,c.text.slice(0,s.ch)+u[0],i(0)),e.insert(s.line+1,g)}else if(1==u.length)o(c,c.text.slice(0,s.ch)+u[0]+d.text.slice(l.ch),i(0)),e.remove(s.line+1,h);else{o(c,c.text.slice(0,s.ch)+u[0],i(0)),o(d,f+d.text.slice(l.ch),p);var v=a(1,u.length-1);h>1&&e.remove(s.line+1,h-1),e.insert(s.line+1,v)}fn(e,"change",e,t)}function ji(e,t,n){!function e(r,i,o){if(r.linked)for(var a=0;a<r.linked.length;++a){var s=r.linked[a];if(s.doc!=i){var l=o&&s.sharedHist;n&&!l||(t(s.doc,l),e(s.doc,r,l))}}}(e,null,!0)}function Vi(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,fr(e),Mi(e),Bi(e),e.options.direction=t.direction,e.options.lineWrapping||Yt(e),e.options.mode=t.modeOption,mr(e)}function Bi(e){("rtl"==e.doc.direction?M:_)(e.display.lineDiv,"CodeMirror-rtl")}function zi(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function $i(e,t){var n={from:st(t.from),to:Di(t),text:Xe(e,t.from,t.to)};return qi(e,n,t.from.line,t.to.line+1),ji(e,function(e){return qi(e,n,t.from.line,t.to.line+1)},!0),n}function Ui(e){for(;e.length&&J(e).ranges;)e.pop()}function Hi(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(Ui(e.done),J(e.done)):e.done.length&&!J(e.done).ranges?J(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),J(e.done)):void 0}(i,i.lastOp==r)))a=J(o.changes),0==ot(t.from,t.to)&&0==ot(t.from,a.to)?a.to=Di(t):o.changes.push($i(e,t));else{var l=J(i.done);for(l&&l.ranges||Wi(e.sel,i.done),o={changes:[$i(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||be(e,"historyAdded")}function Wi(e,t){var n=J(t);n&&n.ranges&&n.equals(e)||t.push(e)}function qi(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o})}function Gi(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function Ki(e,t){var n=function(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(Gi(n[i]));return r}(e,t),r=Dt(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)e:for(var s=0;s<a.length;++s){for(var l=a[s],u=0;u<o.length;++u)if(o[u].marker==l.marker)continue e;o.push(l)}else a&&(n[i]=a)}return n}function Yi(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?Ti.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];r.push({changes:s});for(var l=0;l<a.length;++l){var u=a[l],c=void 0;if(s.push({from:u.from,to:u.to,text:u.text}),t)for(var d in u)(c=d.match(/^spans_(\d+)$/))&&W(t,Number(c[1]))>-1&&(J(s)[d]=u[d],delete u[d])}}}return r}function Qi(e,t,n,r){if(r){var i=e.anchor;if(n){var o=ot(t,i)<0;o!=ot(n,i)<0?(i=t,t=n):o!=ot(t,n)<0&&(t=n)}return new _i(i,t)}return new _i(n||t,t)}function Xi(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),no(e,new Ti([Qi(e.sel.primary(),t,n,i)],0),r)}function Zi(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=Qi(e.sel.ranges[o],t[o],null,i);no(e,Ni(e.cm,r,e.sel.primIndex),n)}function Ji(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,no(e,Ni(e.cm,i,e.sel.primIndex),r)}function eo(e,t,n,r){no(e,Ai(t,n),r)}function to(e,t,n){var r=e.history.done,i=J(r);i&&i.ranges?(r[r.length-1]=t,ro(e,t,n)):no(e,t,n)}function no(e,t,n){ro(e,t,n),function(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||function(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}(e,o,J(i.done),t))?i.done[i.done.length-1]=t:Wi(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&Ui(i.undone)}(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function ro(e,t,n){(Ee(e,"beforeSelectionChange")||e.cm&&Ee(e.cm,"beforeSelectionChange"))&&(t=function(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new _i(dt(e,t[n].anchor),dt(e,t[n].head))},origin:n&&n.origin};return be(e,"beforeSelectionChange",e,r),e.cm&&be(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?Ni(e.cm,r.ranges,r.ranges.length-1):t}(e,t,n));var r=n&&n.bias||(ot(t.primary().head,e.sel.primary().head)<0?-1:1);io(e,ao(e,t,r,!0)),n&&!1===n.scroll||!e.cm||"nocursor"==e.cm.getOption("readOnly")||Fr(e.cm)}function io(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,xe(e.cm)),fn(e,"cursorActivity",e))}function oo(e){io(e,ao(e,e.sel,null,!1))}function ao(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],l=lo(e,a.anchor,s&&s.anchor,n,r),u=a.head==a.anchor?l:lo(e,a.head,s&&s.head,n,r);(i||l!=a.anchor||u!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new _i(l,u))}return i?Ni(e.cm,i,t.primIndex):t}function so(e,t,n,r,i){var o=Qe(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],l=s.marker,u="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,c="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==s.from||(u?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(c?s.to>=t.ch:s.to>t.ch))){if(i&&(be(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var d=l.find(r<0?1:-1),f=void 0;if((r<0?c:u)&&(d=uo(e,d,-r,d&&d.line==t.line?o:null)),d&&d.line==t.line&&(f=ot(d,n))&&(r<0?f<0:f>0))return so(e,d,t,r,i)}var p=l.find(r<0?-1:1);return(r<0?u:c)&&(p=uo(e,p,r,p.line==t.line?o:null)),p?so(e,p,t,r,i):null}}return t}function lo(e,t,n,r,i){var o=r||1;return so(e,t,n,o,i)||!i&&so(e,t,n,o,!0)||so(e,t,n,-o,i)||!i&&so(e,t,n,-o,!0)||(e.cantEdit=!0,it(e.first,0))}function uo(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?dt(e,it(t.line-1)):null:n>0&&t.ch==(r||Qe(e,t.line)).text.length?t.line<e.first+e.size-1?it(t.line+1,0):null:new it(t.line,t.ch+n)}function co(e){e.setSelection(it(e.firstLine(),0),it(e.lastLine()),G)}function fo(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,o){t&&(r.from=dt(e,t)),n&&(r.to=dt(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),be(e,"beforeChange",e,r),e.cm&&be(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function po(e,t,n){if(e.cm){if(!e.cm.curOp)return ii(e.cm,po)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(Ee(e,"beforeChange")||e.cm&&Ee(e.cm,"beforeChange"))||(t=fo(e,t,!0))){var r=St&&!n&&function(e,t,n){var r=null;if(e.iter(t.line,n.line+1,function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=W(r,n)||(r||(r=[])).push(n)}}),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],s=a.find(0),l=0;l<i.length;++l){var u=i[l];if(!(ot(u.to,s.from)<0||ot(u.from,s.to)>0)){var c=[l,1],d=ot(u.from,s.from),f=ot(u.to,s.to);(d<0||!a.inclusiveLeft&&!d)&&c.push({from:u.from,to:s.from}),(f>0||!a.inclusiveRight&&!f)&&c.push({from:s.to,to:u.to}),i.splice.apply(i,c),l+=c.length-3}}return i}(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)ho(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else ho(e,t)}}function ho(e,t){if(1!=t.text.length||""!=t.text[0]||0!=ot(t.from,t.to)){var n=Li(e,t);Hi(e,t,n,e.cm?e.cm.curOp.id:NaN),vo(e,t,n,Dt(e,t));var r=[];ji(e,function(e,n){n||-1!=W(r,e.history)||(xo(e.history,t),r.push(e.history)),vo(e,t,null,Dt(e,t))})}}function mo(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,l="undo"==t?o.undone:o.done,u=0;u<s.length&&(i=s[u],n?!i.ranges||i.equals(e.sel):i.ranges);u++);if(u!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(i=s.pop()).ranges){if(r)return void s.push(i);break}if(Wi(i,l),n&&!i.equals(e.sel))return void no(e,i,{clearRedo:!1});a=i}var c=[];Wi(a,l),l.push({changes:c,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var d=Ee(e,"beforeChange")||e.cm&&Ee(e.cm,"beforeChange"),f=function(n){var r=i.changes[n];if(r.origin=t,d&&!fo(e,r,!1))return s.length=0,{};c.push($i(e,r)),vo(e,r,n?Li(e,r):J(s),Ki(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:Di(r)});var o=[];ji(e,function(e,t){t||-1!=W(o,e.history)||(xo(e.history,r),o.push(e.history)),vo(e,r,null,Ki(e,r))})},p=i.changes.length-1;p>=0;--p){var h=f(p);if(h)return h.v}}}}function go(e,t){if(0!=t&&(e.first+=t,e.sel=new Ti(ee(e.sel.ranges,function(e){return new _i(it(e.anchor.line+t,e.anchor.ch),it(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){mr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)gr(e.cm,r,"gutter")}}function vo(e,t,n,r){if(e.cm&&!e.cm.curOp)return ii(e.cm,vo)(e,t,n,r);if(t.to.line<e.first)go(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);go(e,i),t={from:it(e.first,0),to:it(t.to.line+i,t.to.ch),text:[J(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:it(o,Qe(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Xe(e,t.from,t.to),n||(n=Li(e,t)),e.cm?function(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=et($t(Qe(r,o.line))),r.iter(l,a.line+1,function(e){if(e==i.maxLine)return s=!0,!0})),r.sel.contains(t.from,t.to)>-1&&xe(e),Ri(r,t,n,dr(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,function(e){var t=Kt(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0)),function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=Qe(e,r).stateAfter;if(i&&(!(i instanceof pt)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}(r,o.line),si(e,400);var u=t.text.length-(a.line-o.line)-1;t.full?mr(e):o.line!=a.line||1!=t.text.length||Pi(e.doc,t)?mr(e,o.line,a.line+1,u):gr(e,o.line,"text");var c=Ee(e,"changes"),d=Ee(e,"change");if(d||c){var f={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};d&&fn(e,"change",e,f),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(f)}e.display.selForContextMenu=null}(e.cm,t,r):Ri(e,t,r),ro(e,n,G),e.cantEdit&&lo(e,it(e.firstLine(),0))&&(e.cantEdit=!1)}}function yo(e,t,n,r,i){var o;r||(r=n),ot(r,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),po(e,{from:n,to:r,text:t,origin:i})}function bo(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function wo(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||((o=e[i]=o.deepCopy()).copied=!0);for(var s=0;s<o.ranges.length;s++)bo(o.ranges[s].anchor,t,n,r),bo(o.ranges[s].head,t,n,r)}else{for(var l=0;l<o.changes.length;++l){var u=o.changes[l];if(n<u.from.line)u.from=it(u.from.line+r,u.from.ch),u.to=it(u.to.line+r,u.to.ch);else if(t<=u.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function xo(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;wo(e.done,n,r,i),wo(e.undone,n,r,i)}function Eo(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=Qe(e,ct(e,t)):i=et(t),null==i?null:(r(o,i)&&e.cm&&gr(e.cm,i,n),o)}function ko(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function Co(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}_i.prototype.from=function(){return ut(this.anchor,this.head)},_i.prototype.to=function(){return lt(this.anchor,this.head)},_i.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},ko.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var i=this.lines[n];this.height-=i.height,Xt(i),fn(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},Co.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<i){var o=Math.min(t,i-e),a=r.height;if(r.removeInner(e,o),this.height-=a-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),0==(t-=o))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof ko))){var s=[];this.collapse(s),this.children=[new ko(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,s=a;s<i.lines.length;){var l=new ko(i.lines.slice(s,s+=25));i.height-=l.height,this.children.splice(++r,0,l),l.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new Co(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=W(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new Co(e.children);r.parent=e,e.children=[r,t],e=r}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e);if(i.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=o}}};var So=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};function To(e,t,n){Gt(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Mr(e,n)}So.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=et(n);if(null!=r&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=Sn(this);Je(n,Math.max(0,n.height-o)),e&&(ri(e,function(){To(e,n,-o),gr(e,r,"widget")}),fn(e,"lineWidgetCleared",e,this,r))}},So.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=Sn(this)-t;i&&(Wt(this.doc,r)||Je(r,r.height+i),n&&ri(n,function(){n.curOp.forceUpdate=!0,To(n,r,i),fn(n,"lineWidgetChanged",n,e,et(r))}))},ke(So);var _o=0,No=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++_o};function Ao(e,t,n,r,i){if(r&&r.shared)return function(e,t,n,r,i){(r=$(r)).shared=!1;var o=[Ao(e,t,n,r,i)],a=o[0],s=r.widgetNode;return ji(e,function(e){s&&(r.widgetNode=s.cloneNode(!0)),o.push(Ao(e,dt(e,t),dt(e,n),r,i));for(var l=0;l<e.linked.length;++l)if(e.linked[l].isParent)return;a=J(o)}),new Do(o,a)}(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return ii(e.cm,Ao)(e,t,n,r,i);var o=new No(e,i),a=ot(t,n);if(r&&$(r,o,!1),a>0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=O("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(zt(e,t.line,t,n,o)||t.line!=n.line&&zt(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Tt=!0}o.addToHistory&&Hi(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,u=e.cm;if(e.iter(l,n.line+1,function(r){u&&o.collapsed&&!u.options.lineWrapping&&$t(r)==u.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&Je(r,0),function(e,t,n){var r=n&&window.WeakSet&&(n.markedSpans||(n.markedSpans=new WeakSet));r&&e.markedSpans&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}(r,new _t(o,l==t.line?t.ch:null,l==n.line?n.ch:null),e.cm&&e.cm.curOp),++l}),o.collapsed&&e.iter(t.line,n.line+1,function(t){Wt(e,t)&&Je(t,0)}),o.clearOnEnter&&ge(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(St=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++_o,o.atomic=!0),u){if(s&&(u.curOp.updateMaxLine=!0),o.collapsed)mr(u,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=t.line;c<=n.line;c++)gr(u,c,"text");o.atomic&&oo(u.doc),fn(u,"markerAdded",u,o)}return o}No.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Qr(e),Ee(this,"clear")){var n=this.find();n&&fn(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],s=Nt(a.markedSpans,this);e&&!this.collapsed?gr(e,et(a),"text"):e&&(null!=s.to&&(i=et(a)),null!=s.from&&(r=et(a))),a.markedSpans=At(a.markedSpans,s),null==s.from&&this.collapsed&&!Wt(this.doc,a)&&e&&Je(a,sr(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var u=$t(this.lines[l]),c=Kt(u);c>e.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&mr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&oo(e.doc)),e&&fn(e,"markerCleared",e,this,r,i),t&&Xr(e),this.parent&&this.parent.clear()}},No.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],a=Nt(o.markedSpans,this);if(null!=a.from&&(n=it(t?o:et(o),a.from),-1==e))return n;if(null!=a.to&&(r=it(t?o:et(o),a.to),1==e))return r}return n&&{from:n,to:r}},No.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&ri(r,function(){var i=t.line,o=Fn(r,et(t.line));if(o&&($n(o),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!Wt(n.doc,i)&&null!=n.height){var a=n.height;n.height=null;var s=Sn(n)-a;s&&Je(i,i.height+s)}fn(r,"markerChanged",r,e)})},No.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=W(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},No.prototype.detachLine=function(e){if(this.lines.splice(W(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},ke(No);var Do=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function Oo(e){return e.findMarks(it(e.first,0),e.clipPos(it(e.lastLine())),function(e){return e.parent})}function Lo(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];ji(n.primary.doc,function(e){return r.push(e)});for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==W(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<e.length;n++)t(n)}Do.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();fn(this,"clear")}},Do.prototype.find=function(e,t){return this.primary.find(e,t)},ke(Do);var Io=0,Mo=function(e,t,n,r,i){if(!(this instanceof Mo))return new Mo(e,t,n,r,i);null==n&&(n=0),Co.call(this,[new ko([new Qt("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=it(n,0);this.sel=Ai(o),this.history=new zi(null),this.id=++Io,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),Ri(this,{from:o,to:o,text:e}),no(this,Ai(o),G)};Mo.prototype=ne(Co.prototype,{constructor:Mo,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Ze(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:ai(function(e){var t=it(this.first,0),n=this.first+this.size-1;po(this,{from:t,to:it(n,Qe(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Pr(this.cm,0,0),no(this,Ai(t),G)}),replaceRange:function(e,t,n,r){yo(this,e,t=dt(this,t),n=n?dt(this,n):t,r)},getRange:function(e,t,n){var r=Xe(this,dt(this,e),dt(this,t));return!1===n?r:""===n?r.join(""):r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(nt(this,e))return Qe(this,e)},getLineNumber:function(e){return et(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=Qe(this,e)),$t(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return dt(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ai(function(e,t,n){eo(this,dt(this,"number"==typeof e?it(e,t||0):e),null,n)}),setSelection:ai(function(e,t,n){eo(this,dt(this,e),dt(this,t||e),n)}),extendSelection:ai(function(e,t,n){Xi(this,dt(this,e),t&&dt(this,t),n)}),extendSelections:ai(function(e,t){Zi(this,ft(this,e),t)}),extendSelectionsBy:ai(function(e,t){Zi(this,ft(this,ee(this.sel.ranges,e)),t)}),setSelections:ai(function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new _i(dt(this,e[i].anchor),dt(this,e[i].head||e[i].anchor));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),no(this,Ni(this.cm,r,t),n)}}),addSelection:ai(function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new _i(dt(this,e),dt(this,t||e))),no(this,Ni(this.cm,r,r.length-1),n)}),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var i=Xe(this,n[r].from(),n[r].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=Xe(this,n[r].from(),n[r].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:ai(function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:n}}for(var s=t&&"end"!=t&&function(e,t,n){for(var r=[],i=it(e.first,0),o=i,a=0;a<t.length;a++){var s=t[a],l=Ii(s.from,i,o),u=Ii(Di(s),i,o);if(i=s.to,o=u,"around"==n){var c=e.sel.ranges[a],d=ot(c.head,c.anchor)<0;r[a]=new _i(d?u:l,d?l:u)}else r[a]=new _i(l,l)}return new Ti(r,e.sel.primIndex)}(this,r,t),l=r.length-1;l>=0;l--)po(this,r[l]);s?to(this,s):this.cm&&Fr(this.cm)}),undo:ai(function(){mo(this,"undo")}),redo:ai(function(){mo(this,"redo")}),undoSelection:ai(function(){mo(this,"undo",!0)}),redoSelection:ai(function(){mo(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new zi(this.history),ji(this,function(t){return t.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Yi(this.history.done),undone:Yi(this.history.undone)}},setHistory:function(e){var t=this.history=new zi(this.history);t.done=Yi(e.done.slice(0),null,!0),t.undone=Yi(e.undone.slice(0),null,!0)},setGutterMarker:ai(function(e,t,n){return Eo(this,e,"gutter",function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&ae(r)&&(e.gutterMarkers=null),!0})}),clearGutter:ai(function(e){var t=this;this.iter(function(n){n.gutterMarkers&&n.gutterMarkers[e]&&Eo(t,n,"gutter",function(){return n.gutterMarkers[e]=null,ae(n.gutterMarkers)&&(n.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if("number"==typeof e){if(!nt(this,e))return null;if(t=e,!(e=Qe(this,e)))return null}else if(null==(t=et(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:ai(function(e,t,n){return Eo(this,e,"gutter"==t?"gutter":"class",function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(S(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0})}),removeLineClass:ai(function(e,t,n){return Eo(this,e,"gutter"==t?"gutter":"class",function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[r];if(!i)return!1;if(null==n)e[r]=null;else{var o=i.match(S(n));if(!o)return!1;var a=o.index+o[0].length;e[r]=i.slice(0,o.index)+(o.index&&a!=i.length?" ":"")+i.slice(a)||null}return!0})}),addLineWidget:ai(function(e,t,n){return function(e,t,n,r){var i=new So(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),Eo(e,t,"widget",function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!Wt(e,t)){var r=Gt(t)<e.scrollTop;Je(t,t.height+Sn(i)),r&&Mr(o,i.height),o.curOp.forceUpdate=!0}return!0}),o&&fn(o,"lineWidgetAdded",o,i,"number"==typeof t?t:et(t)),i}(this,e,t,n)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return Ao(this,dt(this,e),dt(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return Ao(this,e=dt(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=Qe(this,(e=dt(this,e)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=dt(this,e),t=dt(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var a=o.markedSpans;if(a)for(var s=0;s<a.length;s++){var l=a[s];null!=l.to&&i==e.line&&e.ch>=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)}),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter(function(i){var o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n}),dt(this,it(n,t))},indexFromPos:function(e){var t=(e=dt(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,function(e){t+=e.text.length+n}),t},copy:function(e){var t=new Mo(Ze(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new Mo(Ze(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(ot(o,a)){var s=Ao(e,o,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}(r,Oo(this)),r},unlinkDoc:function(e){if(e instanceof Aa&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),Lo(Oo(this));break}if(e.history==this.history){var n=[e.id];ji(e,function(e){return n.push(e.id)},!0),e.history=new zi(null),e.history.done=Yi(this.history.done,n),e.history.undone=Yi(this.history.undone,n)}},iterLinkedDocs:function(e){ji(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Fe(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:ai(function(e){var t;"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(e){return e.order=null}),this.cm&&ri(t=this.cm,function(){Bi(t),mr(t)}))})}),Mo.prototype.eachLine=Mo.prototype.iter;var Fo=0;function Po(e){var t=this;if(Ro(t),!we(t,e)&&!Tn(t.display,e)){Ce(e),a&&(Fo=+new Date);var n=pr(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),s=0,l=function(){++s==i&&ii(t,function(){var e={from:n=dt(t.doc,n),to:n,text:t.doc.splitLines(o.filter(function(e){return null!=e}).join(t.doc.lineSeparator())),origin:"paste"};po(t.doc,e),to(t.doc,Ai(dt(t.doc,n),dt(t.doc,Di(e))))})()},u=function(e,n){if(t.options.allowDropFileTypes&&-1==W(t.options.allowDropFileTypes,e.type))l();else{var r=new FileReader;r.onerror=function(){return l()},r.onload=function(){var e=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(o[n]=e),l()},r.readAsText(e)}},c=0;c<r.length;c++)u(r[c],c);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var d=e.dataTransfer.getData("Text");if(d){var f;if(t.state.draggingText&&!t.state.draggingText.copy&&(f=t.listSelections()),ro(t.doc,Ai(n,n)),f)for(var p=0;p<f.length;++p)yo(t.doc,"",f[p].anchor,f[p].head,"drag");t.replaceSelection(d,"around","paste"),t.display.input.focus()}}catch(h){}}}}function Ro(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function jo(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation(function(){for(var t=0;t<n.length;t++)e(n[t])})}}var Vo=!1;function Bo(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var zo={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"},$o=0;$o<10;$o++)zo[$o+48]=zo[$o+96]=String($o);for(var Uo=65;Uo<=90;Uo++)zo[Uo]=String.fromCharCode(Uo);for(var Ho=1;Ho<=12;Ho++)zo[Ho+111]=zo[Ho+63235]="F"+Ho;var Wo={};function qo(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var a=0;a<o.length-1;a++){var s=o[a];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Go(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var i=ee(n.split(" "),qo),o=0;o<i.length;o++){var a=void 0,s=void 0;o==i.length-1?(s=i.join(" "),a=r):(s=i.slice(0,o+1).join(" "),a="...");var l=t[s];if(l){if(l!=a)throw new Error("Inconsistent bindings for "+s)}else t[s]=a}delete e[n]}for(var u in t)e[u]=t[u];return e}function Ko(e,t,n,r){var i=(t=Zo(t)).call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return Ko(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=Ko(e,t.fallthrough[o],n,r);if(a)return a}}}function Yo(e){var t="string"==typeof e?e:zo[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Qo(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(k?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(k?t.ctrlKey:t.metaKey)&&"Mod"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function Xo(e,t){if(f&&34==e.keyCode&&e.char)return!1;var n=zo[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),Qo(n,e,t))}function Zo(e){return"string"==typeof e?Wo[e]:e}function Jo(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&ot(o.from,J(r).to)<=0;){var a=r.pop();if(ot(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}ri(e,function(){for(var t=r.length-1;t>=0;t--)yo(e.doc,"",r[t].from,r[t].to,"+delete");Fr(e)})}function ea(e,t,n){var r=ue(e.text,t+n,n);return r<0||r>e.text.length?null:r}function ta(e,t,n){var r=ea(e,t.ch,n);return null==r?null:new it(t.line,r,n<0?"after":"before")}function na(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=he(n,t.doc.direction);if(o){var a,s=i<0?J(o):o[0],l=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var u=Pn(t,n);a=i<0?n.text.length-1:0;var c=Rn(t,u,a).top;a=ce(function(e){return Rn(t,u,e).top==c},i<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=ea(n,a,1))}else a=i<0?s.to:s.from;return new it(r,a,l)}}return new it(r,i<0?n.text.length:0,i<0?"before":"after")}Wo.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Wo.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Wo.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Wo.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Wo.default=b?Wo.macDefault:Wo.pcDefault;var ra={selectAll:co,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),G)},killLine:function(e){return Jo(e,function(t){if(t.empty()){var n=Qe(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:it(t.head.line+1,0)}:{from:t.head,to:it(t.head.line,n)}}return{from:t.from(),to:t.to()}})},deleteLine:function(e){return Jo(e,function(t){return{from:it(t.from().line,0),to:dt(e.doc,it(t.to().line+1,0))}})},delLineLeft:function(e){return Jo(e,function(e){return{from:it(e.from().line,0),to:e.from()}})},delWrappedLineLeft:function(e){return Jo(e,function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}})},delWrappedLineRight:function(e){return Jo(e,function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(it(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(it(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return ia(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return oa(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return function(e,t){var n=Qe(e.doc,t),r=function(e){for(var t;t=Vt(e);)e=t.find(1,!0).line;return e}(n);return r!=n&&(t=et(r)),na(!0,e,n,t,-1)}(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")},Y)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")},Y)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?oa(e,t.head):r},Y)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=U(e.getLine(o.line),o.ch,r);t.push(Z(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return ri(e,function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=Qe(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new it(i.line,i.ch-1)),i.ch>0)i=new it(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),it(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=Qe(e.doc,i.line-1).text;a&&(i=new it(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),it(i.line-1,a.length-1),i,"+transpose"))}n.push(new _i(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return ri(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);Fr(e)})},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function ia(e,t){var n=Qe(e.doc,t),r=$t(n);return r!=n&&(t=et(r)),na(!0,e,r,t,1)}function oa(e,t){var n=ia(e,t.line),r=Qe(e.doc,n.line),i=he(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(n.ch,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return it(n.line,a?0:o,n.sticky)}return n}function aa(e,t,n){if("string"==typeof t&&!(t=ra[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=q}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}var sa=new H;function la(e,t,n,r){var i=e.state.keySeq;if(i){if(Yo(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:sa.set(50,function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())}),ua(e,i+" "+t,n,r))return!0}return ua(e,t,n,r)}function ua(e,t,n,r){var i=function(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=Ko(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&Ko(t,e.options.extraKeys,n,e)||Ko(t,e.options.keyMap,n,e)}(e,t,r);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&fn(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(Ce(n),Sr(e)),!!i}function ca(e,t){var n=Xo(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?la(e,"Shift-"+n,t,function(t){return aa(e,t,!0)})||la(e,n,t,function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return aa(e,t)}):la(e,n,t,function(t){return aa(e,t)}))}var da=null;function fa(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||(t.curOp.focus=I(j(t)),we(t,e)))){a&&s<11&&27==e.keyCode&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=16==r||e.shiftKey;var i=ca(t,e);f&&(da=i?r:null,i||88!=r||Re||!(b?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),n&&!b&&!i&&46==r&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||function(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(_(t,"CodeMirror-crosshair"),ye(document,"keyup",n),ye(document,"mouseover",n))}M(t,"CodeMirror-crosshair"),ge(document,"keyup",n),ge(document,"mouseover",n)}(t)}}function pa(e){16==e.keyCode&&(this.doc.sel.shift=!1),we(this,e)}function ha(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||Tn(t.display,e)||we(t,e)||e.ctrlKey&&!e.altKey||b&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(f&&n==da)return da=null,void Ce(e);if(!f||e.which&&!(e.which<10)||!ca(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(function(e,t,n){return la(e,"'"+n+"'",t,function(t){return aa(e,t,!0)})}(t,e,i)||t.display.input.onKeyPress(e))}}}var ma,ga,va=function(e,t,n){this.time=e,this.pos=t,this.button=n};function ya(e){var t=this,n=t.display;if(!(we(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,Tn(n,e))l||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100));else if(!xa(t,e)){var r=pr(t,e),i=Ae(e),o=r?function(e,t){var n=+new Date;return ga&&ga.compare(n,e,t)?(ma=ga=null,"triple"):ma&&ma.compare(n,e,t)?(ga=new va(n,e,t),ma=null,"double"):(ma=new va(n,e,t),ga=null,"single")}(r,i):"single";B(t).focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),r&&function(e,t,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),la(e,Qo(o=(1==t?"Left":2==t?"Middle":"Right")+o,i),i,function(t){if("string"==typeof t&&(t=ra[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=q}finally{e.state.suppressEdits=!1}return r})}(t,i,r,o,e)||(1==i?r?function(e,t,n,r){a?setTimeout(z(Tr,e),0):e.curOp.focus=I(j(e));var i,o=function(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};return null==i.unit&&(i.unit=(w?n.shiftKey&&n.metaKey:n.altKey)?"rectangle":"single"==t?"char":"double"==t?"word":"line"),(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=b?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(b?n.altKey:n.ctrlKey)),i}(e,n,r),u=e.doc.sel;e.options.dragDrop&&Le&&!e.isReadOnly()&&"single"==n&&(i=u.contains(t))>-1&&(ot((i=u.ranges[i]).from(),t)<0||t.xRel>0)&&(ot(i.to(),t)>0||t.xRel<0)?function(e,t,n,r){var i=e.display,o=!1,u=ii(e,function(t){l&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:_r(e)),ye(i.wrapper.ownerDocument,"mouseup",u),ye(i.wrapper.ownerDocument,"mousemove",c),ye(i.scroller,"dragstart",d),ye(i.scroller,"drop",u),o||(Ce(t),r.addNew||Xi(e.doc,n,null,null,r.extend),l&&!p||a&&9==s?setTimeout(function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()},20):i.input.focus())}),c=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},d=function(){return o=!0};l&&(i.scroller.draggable=!0),e.state.draggingText=u,u.copy=!r.moveOnDrag,ge(i.wrapper.ownerDocument,"mouseup",u),ge(i.wrapper.ownerDocument,"mousemove",c),ge(i.scroller,"dragstart",d),ge(i.scroller,"drop",u),e.state.delayingBlurEvent=!0,setTimeout(function(){return i.input.focus()},20),i.scroller.dragDrop&&i.scroller.dragDrop()}(e,r,t,o):function(e,t,n,r){a&&_r(e);var i=e.display,o=e.doc;Ce(t);var s,l,u=o.sel,c=u.ranges;if(r.addNew&&!r.extend?(l=o.sel.contains(n),s=l>-1?c[l]:new _i(n,n)):(s=o.sel.primary(),l=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new _i(n,n)),n=pr(e,t,!0,!0),l=-1;else{var d=ba(e,n,r.unit);s=r.extend?Qi(s,d.anchor,d.head,r.extend):d}r.addNew?-1==l?(l=c.length,no(o,Ni(e,c.concat([s]),l),{scroll:!1,origin:"*mouse"})):c.length>1&&c[l].empty()&&"char"==r.unit&&!r.extend?(no(o,Ni(e,c.slice(0,l).concat(c.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),u=o.sel):Ji(o,l,s,K):(l=0,no(o,new Ti([s],0),K),u=o.sel);var f=n,p=i.wrapper.getBoundingClientRect(),h=0;function m(t){var a=++h,c=pr(e,t,!0,"rectangle"==r.unit);if(c)if(0!=ot(c,f)){e.curOp.focus=I(j(e)),function(t){if(0!=ot(f,t))if(f=t,"rectangle"==r.unit){for(var i=[],a=e.options.tabSize,c=U(Qe(o,n.line).text,n.ch,a),d=U(Qe(o,t.line).text,t.ch,a),p=Math.min(c,d),h=Math.max(c,d),m=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=g;m++){var v=Qe(o,m).text,y=Q(v,p,a);p==h?i.push(new _i(it(m,y),it(m,y))):v.length>y&&i.push(new _i(it(m,y),it(m,Q(v,h,a))))}i.length||i.push(new _i(n,n)),no(o,Ni(e,u.ranges.slice(0,l).concat(i),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,w=s,x=ba(e,t,r.unit),E=w.anchor;ot(x.anchor,E)>0?(b=x.head,E=ut(w.from(),x.anchor)):(b=x.anchor,E=lt(w.to(),x.head));var k=u.ranges.slice(0);k[l]=function(e,t){var n=t.anchor,r=t.head,i=Qe(e.doc,n.line);if(0==ot(n,r)&&n.sticky==r.sticky)return t;var o=he(i);if(!o)return t;var a=fe(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,u=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==u||u==o.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=fe(o,r.ch,r.sticky),d=c-a||(r.ch-n.ch)*(1==s.level?-1:1);l=c==u-1||c==u?d<0:d>0}var f=o[u+(l?-1:0)],p=l==(1==f.level),h=p?f.from:f.to,m=p?"after":"before";return n.ch==h&&n.sticky==m?t:new _i(new it(n.line,h,m),r)}(e,new _i(dt(o,E),b)),no(o,Ni(e,k,l),K)}}(c);var d=Lr(i,o);(c.line>=d.to||c.line<d.from)&&setTimeout(ii(e,function(){h==a&&m(t)}),150)}else{var g=t.clientY<p.top?-20:t.clientY>p.bottom?20:0;g&&setTimeout(ii(e,function(){h==a&&(i.scroller.scrollTop+=g,m(t))}),50)}}function g(t){e.state.selectingText=!1,h=1/0,t&&(Ce(t),i.input.focus()),ye(i.wrapper.ownerDocument,"mousemove",v),ye(i.wrapper.ownerDocument,"mouseup",y),o.history.lastSelOrigin=null}var v=ii(e,function(e){0!==e.buttons&&Ae(e)?m(e):g(e)}),y=ii(e,g);e.state.selectingText=y,ge(i.wrapper.ownerDocument,"mousemove",v),ge(i.wrapper.ownerDocument,"mouseup",y)}(e,r,t,o)}(t,r,o,e):Ne(e)==n.scroller&&Ce(e):2==i?(r&&Xi(t.doc,r),setTimeout(function(){return n.input.focus()},20)):3==i&&(C?t.display.input.onContextMenu(e):_r(t)))}}function ba(e,t,n){if("char"==n)return new _i(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new _i(it(t.line,0),dt(e.doc,it(t.line+1,0)));var r=n(e,t);return new _i(r.from,r.to)}function wa(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(c){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Ce(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!Ee(e,n))return Te(t);o-=s.top-a.viewOffset;for(var l=0;l<e.display.gutterSpecs.length;++l){var u=a.gutters.childNodes[l];if(u&&u.getBoundingClientRect().right>=i)return be(e,n,e,tt(e.doc,o),e.display.gutterSpecs[l].className,t),Te(t)}}function xa(e,t){return wa(e,t,"gutterClick",!0)}function Ea(e,t){Tn(e.display,t)||function(e,t){return!!Ee(e,"gutterContextMenu")&&wa(e,t,"gutterContextMenu",!1)}(e,t)||we(e,t,"contextmenu")||C||e.display.input.onContextMenu(t)}function ka(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Hn(e)}va.prototype.compare=function(e,t,n){return this.time+400>e&&0==ot(t,this.pos)&&n==this.button};var Ca={toString:function(){return"CodeMirror.Init"}},Sa={},Ta={};function _a(e,t,n){if(!t!=!(n&&n!=Ca)){var r=e.display.dragFunctions,i=t?ge:ye;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Na(e){e.options.lineWrapping?(M(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(_(e.display.wrapper,"CodeMirror-wrap"),Yt(e)),fr(e),mr(e),Hn(e),setTimeout(function(){return Wr(e)},100)}function Aa(e,t){var n=this;if(!(this instanceof Aa))return new Aa(e,t);this.options=t=t?$(t):{},$(Sa,t,!1);var r=t.value;"string"==typeof r?r=new Mo(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Aa.inputStyles[t.inputStyle](this),o=this.display=new wi(e,r,i,t);for(var u in o.wrapper.CodeMirror=this,ka(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Kr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new H,keySeq:null,specialChars:null},t.autofocus&&!y&&o.input.focus(),a&&s<11&&setTimeout(function(){return n.display.input.reset(!0)},20),function(e){var t=e.display;ge(t.scroller,"mousedown",ii(e,ya)),ge(t.scroller,"dblclick",a&&s<11?ii(e,function(t){if(!we(e,t)){var n=pr(e,t);if(n&&!xa(e,t)&&!Tn(e.display,t)){Ce(t);var r=e.findWordAt(n);Xi(e.doc,r.anchor,r.head)}}}):function(t){return we(e,t)||Ce(t)}),ge(t.scroller,"contextmenu",function(t){return Ea(e,t)}),ge(t.input.getField(),"contextmenu",function(n){t.scroller.contains(n.target)||Ea(e,n)});var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout(function(){return t.activeTouch=null},1e3),(r=t.activeTouch).end=+new Date)}function o(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}ge(t.scroller,"touchstart",function(i){if(!we(e,i)&&!function(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}(i)&&!xa(e,i)){t.input.ensurePolled(),clearTimeout(n);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}}),ge(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),ge(t.scroller,"touchend",function(n){var r=t.activeTouch;if(r&&!Tn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var a,s=e.coordsChar(t.activeTouch,"page");a=!r.prev||o(r,r.prev)?new _i(s,s):!r.prev.prev||o(r,r.prev.prev)?e.findWordAt(s):new _i(it(s.line,0),dt(e.doc,it(s.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),Ce(n)}i()}),ge(t.scroller,"touchcancel",i),ge(t.scroller,"scroll",function(){t.scroller.clientHeight&&(Vr(e,t.scroller.scrollTop),zr(e,t.scroller.scrollLeft,!0),be(e,"scroll",e))}),ge(t.scroller,"mousewheel",function(t){return Si(e,t)}),ge(t.scroller,"DOMMouseScroll",function(t){return Si(e,t)}),ge(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(t){we(e,t)||_e(t)},over:function(t){we(e,t)||(function(e,t){var n=pr(e,t);if(n){var r=document.createDocumentFragment();Er(e,n,r),e.display.dragCursor||(e.display.dragCursor=D("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),A(e.display.dragCursor,r)}}(e,t),_e(t))},start:function(t){return function(e,t){if(a&&(!e.state.draggingText||+new Date-Fo<100))_e(t);else if(!we(e,t)&&!Tn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!p)){var n=D("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",f&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),f&&n.parentNode.removeChild(n)}}(e,t)},drop:ii(e,Po),leave:function(t){we(e,t)||Ro(e)}};var l=t.input.getField();ge(l,"keyup",function(t){return pa.call(e,t)}),ge(l,"keydown",ii(e,fa)),ge(l,"keypress",ii(e,ha)),ge(l,"focus",function(t){return Nr(e,t)}),ge(l,"blur",function(t){return Ar(e,t)})}(this),function(){var e;Vo||(ge(window,"resize",function(){null==e&&(e=setTimeout(function(){e=null,jo(Bo)},100))}),ge(window,"blur",function(){return jo(Ar)}),Vo=!0)}(),Qr(this),this.curOp.forceUpdate=!0,Vi(this,r),t.autofocus&&!y||this.hasFocus()?setTimeout(function(){n.hasFocus()&&!n.state.focused&&Nr(n)},20):Ar(this),Ta)Ta.hasOwnProperty(u)&&Ta[u](this,t[u],Ca);gi(this),t.finishInit&&t.finishInit(this);for(var c=0;c<Da.length;++c)Da[c](this);Xr(this),l&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}Aa.defaults=Sa,Aa.optionHandlers=Ta;var Da=[];function Oa(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=vt(e,t).state:n="prev");var a=e.options.tabSize,s=Qe(o,t),l=U(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var u,c=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((u=o.mode.indent(i,s.text.slice(c.length),s.text))==q||u>150)){if(!r)return;n="prev"}}else u=0,n="not";"prev"==n?u=t>o.first?U(Qe(o,t-1).text,null,a):0:"add"==n?u=l+e.options.indentUnit:"subtract"==n?u=l-e.options.indentUnit:"number"==typeof n&&(u=l+n),u=Math.max(0,u);var d="",f=0;if(e.options.indentWithTabs)for(var p=Math.floor(u/a);p;--p)f+=a,d+="\t";if(f<u&&(d+=Z(u-f)),d!=c)return yo(o,d,it(t,0),it(t,c.length),"+input"),s.stateAfter=null,!0;for(var h=0;h<o.sel.ranges.length;h++){var m=o.sel.ranges[h];if(m.head.line==t&&m.head.ch<c.length){var g=it(t,c.length);Ji(o,h,new _i(g,g));break}}}Aa.defineInitHook=function(e){return Da.push(e)};var La=null;function Ia(e){La=e}function Ma(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a=+new Date-200,s="paste"==i||e.state.pasteIncoming>a,l=Fe(t),u=null;if(s&&r.ranges.length>1)if(La&&La.text.join("\n")==t){if(r.ranges.length%La.text.length==0){u=[];for(var c=0;c<La.text.length;c++)u.push(o.splitLines(La.text[c]))}}else l.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(u=ee(l,function(e){return[e]}));for(var d=e.curOp.updateInput,f=r.ranges.length-1;f>=0;f--){var p=r.ranges[f],h=p.from(),m=p.to();p.empty()&&(n&&n>0?h=it(h.line,h.ch-n):e.state.overwrite&&!s?m=it(m.line,Math.min(Qe(o,m.line).text.length,m.ch+J(l).length)):s&&La&&La.lineWise&&La.text.join("\n")==l.join("\n")&&(h=m=it(h.line,0)));var g={from:h,to:m,text:u?u[f%u.length]:l,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};po(e.doc,g),fn(e,"inputRead",e,g)}t&&!s&&Pa(e,t),Fr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=d),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Fa(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||!t.hasFocus()||ri(t,function(){return Ma(t,n,0,null,"paste")}),!0}function Pa(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(t.indexOf(o.electricChars.charAt(s))>-1){a=Oa(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Qe(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Oa(e,i.head.line,"smart"));a&&fn(e,"electricInput",e,i.head.line)}}}function Ra(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:it(i,0),head:it(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function ja(e,t,n,r){e.setAttribute("autocorrect",n?"on":"off"),e.setAttribute("autocapitalize",r?"on":"off"),e.setAttribute("spellcheck",!!t)}function Va(){var e=D("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=D("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?e.style.width="1000px":e.setAttribute("wrap","off"),g&&(e.style.border="1px solid black"),t}function Ba(e,t,n,r,i){var o=t,a=n,s=Qe(e,t.line),l=i&&"rtl"==e.direction?-n:n;function u(o){var a,u;if("codepoint"==r){var c=s.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(c))a=null;else{var d=n>0?c>=55296&&c<56320:c>=56320&&c<57343;a=new it(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(d?2:1))),-n)}}else a=i?function(e,t,n,r){var i=he(t,e.doc.direction);if(!i)return ta(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=fe(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from<n.ch))return ta(t,n,r);var s,l=function(e,n){return ea(t,e instanceof it?e.ch:e,n)},u=function(n){return e.options.lineWrapping?(s=s||Pn(e,t),nr(e,t,s,n)):{begin:0,end:t.text.length}},c=u("before"==n.sticky?l(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var d=1==a.level==r<0,f=l(n,d?1:-1);if(null!=f&&(d?f<=a.to&&f<=c.end:f>=a.from&&f>=c.begin)){var p=d?"before":"after";return new it(n.line,f,p)}}var h=function(e,t,r){for(var o=function(e,t){return t?new it(n.line,l(e,1),"before"):new it(n.line,e,"after")};e>=0&&e<i.length;e+=t){var a=i[e],s=t>0==(1!=a.level),u=s?r.begin:l(r.end,-1);if(a.from<=u&&u<a.to)return o(u,s);if(u=s?a.from:l(a.to,-1),r.begin<=u&&u<r.end)return o(u,s)}},m=h(o+r,r,c);if(m)return m;var g=r>0?c.end:l(c.begin,-1);return null==g||r>0&&g==t.text.length||!(m=h(r>0?0:i.length-1,r,u(g)))?null:m}(e.cm,s,t,n):ta(s,t,n);if(null==a){if(o||(u=t.line+l)<e.first||u>=e.first+e.size||(t=new it(u,t.ch,t.sticky),!(s=Qe(e,u))))return!1;t=na(i,e.cm,s,t.line,l)}else t=a;return!0}if("char"==r||"codepoint"==r)u();else if("column"==r)u(!0);else if("word"==r||"group"==r)for(var c=null,d="group"==r,f=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;!(n<0)||u(!p);p=!1){var h=s.text.charAt(t.ch)||"\n",m=oe(h,f)?"w":d&&"\n"==h?"n":!d||/\s/.test(h)?null:"p";if(!d||p||m||(m="s"),c&&c!=m){n<0&&(n=1,u(),t.sticky="after");break}if(m&&(c=m),n>0&&!u(!p))break}var g=lo(e,t,o,a,!0);return at(o,g)&&(g.hitSide=!0),g}function za(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,B(e).innerHeight||a(e).documentElement.clientHeight),u=Math.max(l-.5*sr(e.display),3);i=(n>0?t.bottom:t.top)+n*u}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=er(e,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var $a=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new H,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Ua(e,t){var n=Fn(e,t.line);if(!n||n.hidden)return null;var r=Qe(e.doc,t.line),i=In(n,r,t.line),o=he(r,e.doc.direction),a="left";o&&(a=fe(o,t.ch)%2?"right":"left");var s=Bn(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function Ha(e,t){return t&&(e.bad=!0),e}function Wa(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return Ha(e.clipPos(it(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return qa(o,t,n)}}function qa(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!L(r,t))return Ha(it(et(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var o=e.rest?J(e.rest):e.line;return Ha(it(et(o),o.text.length),i)}var a=3==t.nodeType?t:null,s=t;for(a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,n&&(n=a.nodeValue.length));s.parentNode!=r;)s=s.parentNode;var l=e.measure,u=l.maps;function c(t,n,r){for(var i=-1;i<(u?u.length:0);i++)for(var o=i<0?l.map:u[i],a=0;a<o.length;a+=3){var s=o[a+2];if(s==t||s==n){var c=et(i<0?e.line:e.rest[i]),d=o[a]+r;return(r<0||s!=t)&&(d=o[a+(r?1:0)]),it(c,d)}}}var d=c(a,s,n);if(d)return Ha(d,i);for(var f=s.nextSibling,p=a?a.nodeValue.length-n:0;f;f=f.nextSibling){if(d=c(f,f.firstChild,0))return Ha(it(d.line,d.ch-p),i);p+=f.textContent.length}for(var h=s.previousSibling,m=n;h;h=h.previousSibling){if(d=c(h,h.firstChild,-1))return Ha(it(d.line,d.ch+m),i);m+=h.textContent.length}}$a.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;function o(e){for(var t=e.target;t;t=t.parentNode){if(t==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}function a(e){if(o(e)&&!we(r,e)){if(r.somethingSelected())Ia({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=Ra(r);Ia({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation(function(){r.setSelections(t.ranges,0,G),r.replaceSelection("",null,"cut")})}if(e.clipboardData){e.clipboardData.clearData();var a=La.text.join("\n");if(e.clipboardData.setData("Text",a),e.clipboardData.getData("Text")==a)return void e.preventDefault()}var s=Va(),l=s.firstChild;ja(l),r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),l.value=La.text.join("\n");var u=I(V(i));P(l),setTimeout(function(){r.display.lineSpace.removeChild(s),u.focus(),u==i&&n.showPrimarySelection()},50)}}i.contentEditable=!0,ja(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),ge(i,"paste",function(e){!o(e)||we(r,e)||Fa(e,r)||s<=11&&setTimeout(ii(r,function(){return t.updateFromDOM()}),20)}),ge(i,"compositionstart",function(e){t.composing={data:e.data,done:!1}}),ge(i,"compositionupdate",function(e){t.composing||(t.composing={data:e.data,done:!1})}),ge(i,"compositionend",function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),ge(i,"touchstart",function(){return n.forceCompositionEnd()}),ge(i,"input",function(){t.composing||t.readFromDOMSoon()}),ge(i,"copy",a),ge(i,"cut",a)},$a.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},$a.prototype.prepareSelection=function(){var e=xr(this.cm,!1);return e.focus=I(V(this.div))==this.div,e},$a.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},$a.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},$a.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),i=r.from(),o=r.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||o.line<t.display.viewFrom)e.removeAllRanges();else{var a=Wa(t,e.anchorNode,e.anchorOffset),s=Wa(t,e.focusNode,e.focusOffset);if(!a||a.bad||!s||s.bad||0!=ot(ut(a,s),i)||0!=ot(lt(a,s),o)){var l=t.display.view,u=i.line>=t.display.viewFrom&&Ua(t,i)||{node:l[0].measure.map[2],offset:0},c=o.line<t.display.viewTo&&Ua(t,o);if(!c){var d=l[l.length-1].measure,f=d.maps?d.maps[d.maps.length-1]:d.map;c={node:f[f.length-1],offset:f[f.length-2]-f[f.length-3]}}if(u&&c){var p,h=e.rangeCount&&e.getRangeAt(0);try{p=T(u.node,u.offset,c.offset,c.node)}catch(RR){}p&&(!n&&t.state.focused?(e.collapse(u.node,u.offset),p.collapsed||(e.removeAllRanges(),e.addRange(p))):(e.removeAllRanges(),e.addRange(p)),h&&null==e.anchorNode?e.addRange(h):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},$a.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},$a.prototype.showMultipleSelections=function(e){A(this.cm.display.cursorDiv,e.cursors),A(this.cm.display.selectionDiv,e.selection)},$a.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},$a.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return L(this.div,t)},$a.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&I(V(this.div))==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},$a.prototype.blur=function(){this.div.blur()},$a.prototype.getField=function(){return this.div},$a.prototype.supportsTouch=function(){return!0},$a.prototype.receivedFocus=function(){var e=this,t=this;this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):ri(this.cm,function(){return t.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,function e(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,e))})},$a.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},$a.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(v&&c&&this.cm.display.gutterSpecs.length&&function(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=Wa(t,e.anchorNode,e.anchorOffset),r=Wa(t,e.focusNode,e.focusOffset);n&&r&&ri(t,function(){no(t.doc,Ai(n,r),G),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)})}}},$a.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),a=o.from(),s=o.to();if(0==a.ch&&a.line>r.firstLine()&&(a=it(a.line-1,Qe(r.doc,a.line-1).length)),s.ch==Qe(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=it(s.line+1,0)),a.line<i.viewFrom||s.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(e=hr(r,a.line))?(t=et(i.view[0].line),n=i.view[0].node):(t=et(i.view[e].line),n=i.view[e-1].node.nextSibling);var l,u,c=hr(r,s.line);if(c==i.view.length-1?(l=i.viewTo-1,u=i.lineDiv.lastChild):(l=et(i.view[c+1].line)-1,u=i.view[c+1].node.previousSibling),!n)return!1;for(var d=r.doc.splitLines(function(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator(),l=!1;function u(){a&&(o+=s,l&&(o+=s),a=l=!1)}function c(e){e&&(u(),o+=e)}function d(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void c(n);var o,f=t.getAttribute("cm-marker");if(f){var p=e.findMarks(it(r,0),it(i+1,0),function(e){return function(t){return t.id==e}}(+f));return void(p.length&&(o=p[0].find(0))&&c(Xe(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var h=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;h&&u();for(var m=0;m<t.childNodes.length;m++)d(t.childNodes[m]);/^(pre|p)$/i.test(t.nodeName)&&(l=!0),h&&(a=!0)}else 3==t.nodeType&&c(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;d(t),t!=n;)t=t.nextSibling,l=!1;return o}(r,n,u,t,l)),f=Xe(r.doc,it(t,0),it(l,Qe(r.doc,l).text.length));d.length>1&&f.length>1;)if(J(d)==J(f))d.pop(),f.pop(),l--;else{if(d[0]!=f[0])break;d.shift(),f.shift(),t++}for(var p=0,h=0,m=d[0],g=f[0],v=Math.min(m.length,g.length);p<v&&m.charCodeAt(p)==g.charCodeAt(p);)++p;for(var y=J(d),b=J(f),w=Math.min(y.length-(1==d.length?p:0),b.length-(1==f.length?p:0));h<w&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)++h;if(1==d.length&&1==f.length&&t==a.line)for(;p&&p>a.ch&&y.charCodeAt(y.length-h-1)==b.charCodeAt(b.length-h-1);)p--,h++;d[d.length-1]=y.slice(0,y.length-h).replace(/^\u200b+/,""),d[0]=d[0].slice(p).replace(/\u200b+$/,"");var x=it(t,p),E=it(l,f.length?J(f).length-h:0);return d.length>1||d[0]||ot(x,E)?(yo(r.doc,d,x,E,"+input"),!0):void 0},$a.prototype.ensurePolled=function(){this.forceCompositionEnd()},$a.prototype.reset=function(){this.forceCompositionEnd()},$a.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},$a.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},$a.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||ri(this.cm,function(){return mr(e.cm)})},$a.prototype.setUneditable=function(e){e.contentEditable="false"},$a.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||ii(this.cm,Ma)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},$a.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},$a.prototype.onContextMenu=function(){},$a.prototype.resetPosition=function(){},$a.prototype.needsContentAttribute=!0;var Ga=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new H,this.hasSelection=!1,this.composing=null,this.resetting=!1};Ga.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!we(r,e)){if(r.somethingSelected())Ia({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Ra(r);Ia({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,G):(n.prevInput="",i.value=t.text.join("\n"),P(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(i.style.width="0px"),ge(i,"input",function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),ge(i,"paste",function(e){we(r,e)||Fa(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())}),ge(i,"cut",o),ge(i,"copy",o),ge(e.scroller,"paste",function(t){if(!Tn(e,t)&&!we(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}}),ge(e.lineSpace,"selectstart",function(t){Tn(e,t)||Ce(t)}),ge(i,"compositionstart",function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}}),ge(i,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},Ga.prototype.createField=function(e){this.wrapper=Va(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;ja(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},Ga.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Ga.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=xr(e);if(e.options.moveInputWithCursor){var i=Xn(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},Ga.prototype.showSelection=function(e){var t=this.cm.display;A(t.cursorDiv,e.cursors),A(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Ga.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&P(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null));this.resetting=!1}},Ga.prototype.getField=function(){return this.textarea},Ga.prototype.supportsTouch=function(){return!1},Ga.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||I(V(this.textarea))!=this.textarea))try{this.textarea.focus()}catch(RR){}},Ga.prototype.blur=function(){this.textarea.blur()},Ga.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ga.prototype.receivedFocus=function(){this.slowPoll()},Ga.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Ga.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))})},Ga.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||Pe(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||b&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r=""),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,u=Math.min(r.length,i.length);l<u&&r.charCodeAt(l)==i.charCodeAt(l);)++l;return ri(t,function(){Ma(t,i.slice(l),r.length-l,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ga.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ga.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},Ga.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=pr(n,e),u=r.scroller.scrollTop;if(o&&!f){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&ii(n,no)(n.doc,Ai(o),G);var c,d=i.style.cssText,p=t.wrapper.style.cssText,h=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(c=i.ownerDocument.defaultView.scrollY),r.input.focus(),l&&i.ownerDocument.defaultView.scrollTo(null,c),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=v,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&g(),C){_e(e);var m=function(){ye(window,"mouseup",m),setTimeout(v,20)};ge(window,"mouseup",m)}else setTimeout(v,50)}function g(){if(null!=i.selectionStart){var e=n.somethingSelected(),o=""+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function v(){if(t.contextMenuPending==v&&(t.contextMenuPending=!1,t.wrapper.style.cssText=p,i.style.cssText=d,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=u),null!=i.selectionStart)){(!a||a&&s<9)&&g();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&""==t.prevInput?ii(n,co)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},Ga.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},Ga.prototype.setUneditable=function(){},Ga.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=Ca&&i(e,t,n)}:i)}e.defineOption=n,e.Init=Ca,n("value","",function(e,t){return e.setValue(t)},!0),n("mode",null,function(e,t){e.doc.modeOption=t,Mi(e)},!0),n("indentUnit",2,Mi,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(e){Fi(e),Hn(e),mr(e)},!0),n("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter(function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(it(r,o))}r++});for(var i=n.length-1;i>=0;i--)yo(e.doc,t,n[i],it(n[i].line,n[i].ch+t.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Ca&&e.refresh()}),n("specialCharPlaceholder",nn,function(e){return e.refresh()},!0),n("electricChars",!0),n("inputStyle",y?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),n("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),n("autocorrect",!1,function(e,t){return e.getInputField().autocorrect=t},!0),n("autocapitalize",!1,function(e,t){return e.getInputField().autocapitalize=t},!0),n("rtlMoveVisually",!x),n("wholeLineUpdateBefore",!0),n("theme","default",function(e){ka(e),bi(e)},!0),n("keyMap","default",function(e,t,n){var r=Zo(t),i=n!=Ca&&Zo(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Na,!0),n("gutters",[],function(e,t){e.display.gutterSpecs=vi(t,e.options.lineNumbers),bi(e)},!0),n("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?cr(e.display)+"px":"0",e.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(e){return Wr(e)},!0),n("scrollbarStyle","native",function(e){Kr(e),Wr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),n("lineNumbers",!1,function(e,t){e.display.gutterSpecs=vi(e.options.gutters,t),bi(e)},!0),n("firstLineNumber",1,bi,!0),n("lineNumberFormatter",function(e){return e},bi,!0),n("showCursorWhenSelecting",!1,wr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,function(e,t){"nocursor"==t&&(Ar(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),n("screenReaderLabel",null,function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)}),n("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),n("dragDrop",!0,_a),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,wr,!0),n("singleCursorHeightPerLine",!0,wr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Fi,!0),n("addModeClass",!1,Fi,!0),n("pollInterval",100),n("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),n("historyEventDelay",1250),n("viewportMargin",10,function(e){return e.refresh()},!0),n("maxHighlightLength",1e4,Fi,!0),n("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),n("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),n("autofocus",null),n("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0),n("phrases",null)}(Aa),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){B(this).focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&ii(this,t[e])(this,n,i),be(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Zo(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:oi(function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");!function(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},function(e){return e.priority}),this.state.modeGen++,mr(this)}),removeOverlay:oi(function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void mr(this)}}),indentLine:oi(function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),nt(this.doc,e)&&Oa(this,e,t,n)}),indentSelection:oi(function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var i=t[r];if(i.empty())i.head.line>n&&(Oa(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&Fr(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l<n;++l)Oa(this,l,e);var u=this.doc.sel.ranges;0==o.ch&&t.length==u.length&&u[r].from().ch>0&&Ji(this.doc,r,new _i(o,u[r].to()),G)}}}),getTokenAt:function(e,t){return Et(this,e,t)},getLineTokens:function(e,t){return Et(this,it(e),t,!0)},getTokenTypeAt:function(e){e=dt(this.doc,e);var t,n=gt(this,Qe(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]<o)){t=n[2*a+2];break}r=a+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=[];if(!n.hasOwnProperty(t))return r;var i=n[t],o=this.getModeAt(e);if("string"==typeof o[t])i[o[t]]&&r.push(i[o[t]]);else if(o[t])for(var a=0;a<o[t].length;a++){var s=i[o[t][a]];s&&r.push(s)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var l=0;l<i._global.length;l++){var u=i._global[l];u.pred(o,this)&&-1==W(r,u.val)&&r.push(u.val)}return r},getStateAfter:function(e,t){var n=this.doc;return vt(this,(e=ct(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return Xn(this,null==e?n.head:"object"==typeof e?dt(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return Qn(this,dt(this.doc,e),t||"page")},coordsChar:function(e,t){return er(this,(e=Yn(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=Yn(this,{top:e,left:0},t||"page").top,tt(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),r=Qe(this.doc,e)}else r=e;return Kn(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-Gt(r):0)},defaultTextHeight:function(){return sr(this.display)},defaultCharWidth:function(){return lr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o,a=this.display,s=(e=Xn(this,dt(this.doc,e))).bottom,l=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),a.sizer.appendChild(t),"over"==r)s=e.top;else if("above"==r||"near"==r){var u=Math.max(a.wrapper.clientHeight,this.doc.height),c=Math.max(a.sizer.clientWidth,a.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>u)&&e.top>t.offsetHeight?s=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=u&&(s=e.bottom),l+t.offsetWidth>c&&(l=c-t.offsetWidth)}t.style.top=s+"px",t.style.left=t.style.right="","right"==i?(l=a.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?l=0:"middle"==i&&(l=(a.sizer.clientWidth-t.offsetWidth)/2),t.style.left=l+"px"),n&&(null!=(o=Ir(this,{left:l,top:s,right:l+t.offsetWidth,bottom:s+t.offsetHeight})).scrollTop&&Vr(this,o.scrollTop),null!=o.scrollLeft&&zr(this,o.scrollLeft))},triggerOnKeyDown:oi(fa),triggerOnKeyPress:oi(ha),triggerOnKeyUp:pa,triggerOnMouseDown:oi(ya),execCommand:function(e){if(ra.hasOwnProperty(e))return ra[e].call(null,this)},triggerElectric:oi(function(e){Pa(this,e)}),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=dt(this.doc,e),a=0;a<t&&!(o=Ba(this.doc,o,i,n,r)).hitSide;++a);return o},moveH:oi(function(e,t){var n=this;this.extendSelectionsBy(function(r){return n.display.shift||n.doc.extend||r.empty()?Ba(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()},Y)}),deleteH:oi(function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):Jo(this,function(n){var i=Ba(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}})}),findPosV:function(e,t,n,r){var i=1,o=r;t<0&&(i=-1,t=-t);for(var a=dt(this.doc,e),s=0;s<t;++s){var l=Xn(this,a,"div");if(null==o?o=l.left:l.left=o,(a=za(this,l,i,n)).hitSide)break}return a},moveV:oi(function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy(function(a){if(o)return e<0?a.from():a.to();var s=Xn(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),i.push(s.left);var l=za(n,s,e,t);return"page"==t&&a==r.sel.primary()&&Mr(n,Qn(n,l,"div").top-s.top),l},Y),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]}),findWordAt:function(e){var t=Qe(this.doc,e.line).text,n=e.ch,r=e.ch;if(t){var i=this.getHelper(e,"wordChars");"before"!=e.sticky&&r!=t.length||!n?++r:--n;for(var o=t.charAt(n),a=oe(o,i)?function(e){return oe(e,i)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!oe(e)};n>0&&a(t.charAt(n-1));)--n;for(;r<t.length&&a(t.charAt(r));)++r}return new _i(it(e.line,n),it(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?M(this.display.cursorDiv,"CodeMirror-overwrite"):_(this.display.cursorDiv,"CodeMirror-overwrite"),be(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==I(j(this))},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:oi(function(e,t){Pr(this,e,t)}),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Dn(this)-this.display.barHeight,width:e.scrollWidth-Dn(this)-this.display.barWidth,clientHeight:Ln(this),clientWidth:On(this)}},scrollIntoView:oi(function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:it(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?function(e,t){Rr(e),e.curOp.scrollToPos=t}(this,e):jr(this,e.from,e.to,e.margin)}),setSize:oi(function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&Un(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){gr(n,i,"widget");break}++i}),this.curOp.forceUpdate=!0,be(this,"refresh",this)}),operation:function(e){return ri(this,e)},startOperation:function(){return Qr(this)},endOperation:function(){return Xr(this)},refresh:oi(function(){var e=this.display.cachedTextHeight;mr(this),this.curOp.forceUpdate=!0,Hn(this),Pr(this,this.doc.scrollLeft,this.doc.scrollTop),pi(this.display),(null==e||Math.abs(e-sr(this.display))>.5||this.options.lineWrapping)&&fr(this),be(this,"refresh",this)}),swapDoc:oi(function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Vi(this,e),Hn(this),this.display.input.reset(),Pr(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,fn(this,"swapDoc",this,t),t}),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},ke(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}(Aa);var Ka="iter insert remove copy getEditor constructor".split(" ");for(var Ya in Mo.prototype)Mo.prototype.hasOwnProperty(Ya)&&W(Ka,Ya)<0&&(Aa.prototype[Ya]=function(e){return function(){return e.apply(this.doc,arguments)}}(Mo.prototype[Ya]));return ke(Mo),Aa.inputStyles={textarea:Ga,contenteditable:$a},Aa.defineMode=function(e){Aa.defaults.mode||"null"==e||(Aa.defaults.mode=e),ze.apply(this,arguments)},Aa.defineMIME=function(e,t){Be[e]=t},Aa.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Aa.defineMIME("text/plain","null"),Aa.defineExtension=function(e,t){Aa.prototype[e]=t},Aa.defineDocExtension=function(e,t){Mo.prototype[e]=t},Aa.fromTextArea=function(e,t){if((t=t?$(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=I(V(e));t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(ge(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(RR){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(ye(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=Aa(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return s},function(e){e.off=ye,e.on=ge,e.wheelEventPixels=Ci,e.Doc=Mo,e.splitLines=Fe,e.countColumn=U,e.findColumn=Q,e.isWordChar=ie,e.Pass=q,e.signal=be,e.Line=Qt,e.changeEnd=Di,e.scrollbarModel=Gr,e.Pos=it,e.cmpPos=ot,e.modes=Ve,e.mimeModes=Be,e.resolveMode=$e,e.getMode=Ue,e.modeExtensions=He,e.extendMode=We,e.copyState=qe,e.startState=Ke,e.innerMode=Ge,e.commands=ra,e.keyMap=Wo,e.keyName=Xo,e.isModifierKey=Yo,e.lookupKey=Ko,e.normalizeKeyMap=Go,e.StringStream=Ye,e.SharedTextMarker=Do,e.TextMarker=No,e.LineWidget=So,e.e_preventDefault=Ce,e.e_stopPropagation=Se,e.e_stop=_e,e.addClass=M,e.contains=L,e.rmClass=_,e.keyNames=zo}(Aa),Aa.version="5.65.21",Aa},"object"==typeof e&&void 0!==t?t.exports=r():"function"==typeof define&&define.amd?define(r):(n=n||self).CodeMirror=r()}),Xu=s((e,t)=>{var n;n=function(e){var t="CodeMirror-hint-active";function n(e,t){if(this.cm=e,this.options=t,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var n=this;e.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}}e.showHint=function(e,t,n){if(!t)return e.showHint(n);n&&n.async&&(t.async=!0);var r={hint:t};if(n)for(var i in n)r[i]=n[i];return e.showHint(r)},e.defineExtension("showHint",function(t){t=function(e,t,n){var r=e.options.hintOptions,i={};for(var o in u)i[o]=u[o];if(r)for(var o in r)void 0!==r[o]&&(i[o]=r[o]);if(n)for(var o in n)void 0!==n[o]&&(i[o]=n[o]);return i.hint.resolve&&(i.hint=i.hint.resolve(e,t)),i}(this,this.getCursor("start"),t);var r=this.listSelections();if(!(r.length>1)){if(this.somethingSelected()){if(!t.hint.supportsSelection)return;for(var i=0;i<r.length;i++)if(r[i].head.line!=r[i].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var o=this.state.completionActive=new n(this,t);o.options.hint&&(e.signal(this,"startCompletion",this),o.update(!0))}}),e.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});var r=window.requestAnimationFrame||function(e){return setTimeout(e,1e3/60)},i=window.cancelAnimationFrame||clearTimeout;function o(e){return"string"==typeof e?e:e.text}function a(e,t){for(;t&&t!=e;){if("LI"===t.nodeName.toUpperCase()&&t.parentNode==e)return t;t=t.parentNode}}function s(n,r){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=n,this.data=r,this.picked=!1;var i=this,s=n.cm,l=s.getInputField().ownerDocument,u=l.defaultView||l.parentWindow,c=this.hints=l.createElement("ul");c.setAttribute("role","listbox"),c.setAttribute("aria-expanded","true"),c.id=this.id,c.className="CodeMirror-hints "+n.cm.options.theme,this.selectedHint=r.selectedHint||0;for(var d=r.list,f=0;f<d.length;++f){var p=c.appendChild(l.createElement("li")),h=d[f],m="CodeMirror-hint"+(f!=this.selectedHint?"":" "+t);null!=h.className&&(m=h.className+" "+m),p.className=m,f==this.selectedHint&&p.setAttribute("aria-selected","true"),p.id=this.id+"-"+f,p.setAttribute("role","option"),h.render?h.render(p,r,h):p.appendChild(l.createTextNode(h.displayText||o(h))),p.hintId=f}var g=n.options.container||l.body,v=s.cursorCoords(n.options.alignWithWord?r.from:null),y=v.left,b=v.bottom,w=!0,x=0,E=0;if(g!==l.body){var k=-1!==["absolute","relative","fixed"].indexOf(u.getComputedStyle(g).position)?g:g.offsetParent,C=k.getBoundingClientRect(),S=l.body.getBoundingClientRect();x=C.left-S.left-k.scrollLeft,E=C.top-S.top-k.scrollTop}c.style.left=y-x+"px",c.style.top=b-E+"px";var T=u.innerWidth||Math.max(l.body.offsetWidth,l.documentElement.offsetWidth),_=u.innerHeight||Math.max(l.body.offsetHeight,l.documentElement.offsetHeight);g.appendChild(c),s.getInputField().setAttribute("aria-autocomplete","list"),s.getInputField().setAttribute("aria-owns",this.id),s.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var N,A=n.options.moveOnOverlap?c.getBoundingClientRect():new DOMRect,D=!!n.options.paddingForScrollbar&&c.scrollHeight>c.clientHeight+1;if(setTimeout(function(){N=s.getScrollInfo()}),A.bottom-_>0){var O=A.bottom-A.top,L=A.top-(v.bottom-v.top)-2;_-A.top<L?(O>L&&(c.style.height=(O=L)+"px"),c.style.top=(b=v.top-O)-E+"px",w=!1):c.style.height=_-A.top-2+"px"}var I,M=A.right-T;if(D&&(M+=s.display.nativeBarWidth),M>0&&(A.right-A.left>T&&(c.style.width=T-5+"px",M-=A.right-A.left-T),c.style.left=(y=Math.max(v.left-M-x,0))+"px"),D)for(var F=c.firstChild;F;F=F.nextSibling)F.style.paddingRight=s.display.nativeBarWidth+"px";s.addKeyMap(this.keyMap=function(e,t){var n={Up:function(){t.moveFocus(-1)},Down:function(){t.moveFocus(1)},PageUp:function(){t.moveFocus(1-t.menuSize(),!0)},PageDown:function(){t.moveFocus(t.menuSize()-1,!0)},Home:function(){t.setFocus(0)},End:function(){t.setFocus(t.length-1)},Enter:t.pick,Tab:t.pick,Esc:t.close};/Mac/.test(navigator.platform)&&(n["Ctrl-P"]=function(){t.moveFocus(-1)},n["Ctrl-N"]=function(){t.moveFocus(1)});var r=e.options.customKeys,i=r?{}:n;function o(e,r){var o;o="string"!=typeof r?function(e){return r(e,t)}:n.hasOwnProperty(r)?n[r]:r,i[e]=o}if(r)for(var a in r)r.hasOwnProperty(a)&&o(a,r[a]);var s=e.options.extraKeys;if(s)for(var a in s)s.hasOwnProperty(a)&&o(a,s[a]);return i}(n,{moveFocus:function(e,t){i.changeActive(i.selectedHint+e,t)},setFocus:function(e){i.changeActive(e)},menuSize:function(){return i.screenAmount()},length:d.length,close:function(){n.close()},pick:function(){i.pick()},data:r})),n.options.closeOnUnfocus&&(s.on("blur",this.onBlur=function(){I=setTimeout(function(){n.close()},100)}),s.on("focus",this.onFocus=function(){clearTimeout(I)})),s.on("scroll",this.onScroll=function(){var e=s.getScrollInfo(),t=s.getWrapperElement().getBoundingClientRect();N||(N=s.getScrollInfo());var r=b+N.top-e.top,i=r-(u.pageYOffset||(l.documentElement||l.body).scrollTop);if(w||(i+=c.offsetHeight),i<=t.top||i>=t.bottom)return n.close();c.style.top=r+"px",c.style.left=y+N.left-e.left+"px"}),e.on(c,"dblclick",function(e){var t=a(c,e.target||e.srcElement);t&&null!=t.hintId&&(i.changeActive(t.hintId),i.pick())}),e.on(c,"click",function(e){var t=a(c,e.target||e.srcElement);t&&null!=t.hintId&&(i.changeActive(t.hintId),n.options.completeOnSingleClick&&i.pick())}),e.on(c,"mousedown",function(){setTimeout(function(){s.focus()},20)});var P=this.getSelectedHintRange();return 0===P.from&&0===P.to||this.scrollToActive(),e.signal(r,"select",d[this.selectedHint],c.childNodes[this.selectedHint]),!0}function l(e,t,n,r){if(e.async)e(t,r,n);else{var i=e(t,n);i&&i.then?i.then(r):r(i)}}n.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,n){var r=t.list[n],i=this;this.cm.operation(function(){r.hint?r.hint(i.cm,t,r):i.cm.replaceRange(o(r),r.from||t.from,r.to||t.to,"complete"),e.signal(t,"pick",r),i.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(i(this.debounce),this.debounce=0);var e=this.startPos;this.data&&(e=this.data.from);var t=this.cm.getCursor(),n=this.cm.getLine(t.line);if(t.line!=this.startPos.line||n.length-t.ch!=this.startLen-this.startPos.ch||t.ch<e.ch||this.cm.somethingSelected()||!t.ch||this.options.closeCharacters.test(n.charAt(t.ch-1)))this.close();else{var o=this;this.debounce=r(function(){o.update()}),this.widget&&this.widget.disable()}},update:function(e){if(null!=this.tick){var t=this,n=++this.tick;l(this.options.hint,this.cm,this.options,function(r){t.tick==n&&t.finishUpdate(r,e)})}},finishUpdate:function(t,n){this.data&&e.signal(this.data,"update");var r=this.widget&&this.widget.picked||n&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=t,t&&t.list.length&&(r&&1==t.list.length?this.pick(t,0):(this.widget=new s(this,t),e.signal(t,"shown")))}},s.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 e=this.completion.cm.getInputField();e.removeAttribute("aria-activedescendant"),e.removeAttribute("aria-owns");var t=this.completion.cm;this.completion.options.closeOnUnfocus&&(t.off("blur",this.onBlur),t.off("focus",this.onFocus)),t.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var e=this;this.keyMap={Enter:function(){e.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(n,r){if(n>=this.data.list.length?n=r?this.data.list.length-1:0:n<0&&(n=r?0:this.data.list.length-1),this.selectedHint!=n){var i=this.hints.childNodes[this.selectedHint];i&&(i.className=i.className.replace(" "+t,""),i.removeAttribute("aria-selected")),(i=this.hints.childNodes[this.selectedHint=n]).className+=" "+t,i.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",i.id),this.scrollToActive(),e.signal(this.data,"select",this.data.list[this.selectedHint],i)}},scrollToActive:function(){var e=this.getSelectedHintRange(),t=this.hints.childNodes[e.from],n=this.hints.childNodes[e.to],r=this.hints.firstChild;t.offsetTop<this.hints.scrollTop?this.hints.scrollTop=t.offsetTop-r.offsetTop:n.offsetTop+n.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=n.offsetTop+n.offsetHeight-this.hints.clientHeight+r.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var e=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-e),to:Math.min(this.data.list.length-1,this.selectedHint+e)}}},e.registerHelper("hint","auto",{resolve:function(t,n){var r,i=t.getHelpers(n,"hint");if(i.length){var o=function(e,t,n){var r=function(e,t){if(!e.somethingSelected())return t;for(var n=[],r=0;r<t.length;r++)t[r].supportsSelection&&n.push(t[r]);return n}(e,i);!function i(o){if(o==r.length)return t(null);l(r[o],e,n,function(e){e&&e.list.length>0?t(e):i(o+1)})}(0)};return o.async=!0,o.supportsSelection=!0,o}return(r=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:r})}:e.hint.anyword?function(t,n){return e.hint.anyword(t,n)}:function(){}}}),e.registerHelper("hint","fromList",function(t,n){var r,i=t.getCursor(),o=t.getTokenAt(i),a=e.Pos(i.line,o.start),s=i;o.start<i.ch&&/\w/.test(o.string.charAt(i.ch-o.start-1))?r=o.string.substr(0,i.ch-o.start):(r="",a=i);for(var l=[],u=0;u<n.words.length;u++){var c=n.words[u];c.slice(0,r.length)==r&&l.push(c)}if(l.length)return{list:l,from:a,to:s}}),e.commands.autocomplete=e.showHint;var u={hint:e.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};e.defineOption("hintOptions",null)},"object"==typeof e&&"object"==typeof t?n(Qu()):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}),Zu=s((e,t)=>{var n;n=function(e){var t=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),n=e.Pos,r={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function i(e){return e&&e.bracketRegex||/[(){}[\]]/}function o(e,t,o){var s=e.getLineHandle(t.line),l=t.ch-1,u=o&&o.afterCursor;null==u&&(u=/(^| )cm-fat-cursor($| )/.test(e.getWrapperElement().className));var c=i(o),d=!u&&l>=0&&c.test(s.text.charAt(l))&&r[s.text.charAt(l)]||c.test(s.text.charAt(l+1))&&r[s.text.charAt(++l)];if(!d)return null;var f=">"==d.charAt(1)?1:-1;if(o&&o.strict&&f>0!=(l==t.ch))return null;var p=e.getTokenTypeAt(n(t.line,l+1)),h=a(e,n(t.line,l+(f>0?1:0)),f,p,o);return null==h?null:{from:n(t.line,l),to:h&&h.pos,match:h&&h.ch==d.charAt(0),forward:f>0}}function a(e,t,o,a,s){for(var l=s&&s.maxScanLineLength||1e4,u=s&&s.maxScanLines||1e3,c=[],d=i(s),f=o>0?Math.min(t.line+u,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-u),p=t.line;p!=f;p+=o){var h=e.getLine(p);if(h){var m=o>0?0:h.length-1,g=o>0?h.length:-1;if(!(h.length>l))for(p==t.line&&(m=t.ch-(o<0?1:0));m!=g;m+=o){var v=h.charAt(m);if(d.test(v)&&(void 0===a||(e.getTokenTypeAt(n(p,m+1))||"")==(a||""))){var y=r[v];if(y&&">"==y.charAt(1)==o>0)c.push(v);else{if(!c.length)return{pos:n(p,m),ch:v};c.pop()}}}}}return p-o!=(o>0?e.lastLine():e.firstLine())&&null}function s(e,r,i){for(var a=e.state.matchBrackets.maxHighlightLineLength||1e3,s=i&&i.highlightNonMatching,l=[],u=e.listSelections(),c=0;c<u.length;c++){var d=u[c].empty()&&o(e,u[c].head,i);if(d&&(d.match||!1!==s)&&e.getLine(d.from.line).length<=a){var f=d.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";l.push(e.markText(d.from,n(d.from.line,d.from.ch+1),{className:f})),d.to&&e.getLine(d.to.line).length<=a&&l.push(e.markText(d.to,n(d.to.line,d.to.ch+1),{className:f}))}}if(l.length){t&&e.state.focused&&e.focus();var p=function(){e.operation(function(){for(var e=0;e<l.length;e++)l[e].clear()})};if(!r)return p;setTimeout(p,800)}}function l(e){e.operation(function(){e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null),e.state.matchBrackets.currentlyHighlighted=s(e,!1,e.state.matchBrackets)})}function u(e){e.state.matchBrackets&&e.state.matchBrackets.currentlyHighlighted&&(e.state.matchBrackets.currentlyHighlighted(),e.state.matchBrackets.currentlyHighlighted=null)}e.defineOption("matchBrackets",!1,function(t,n,r){r&&r!=e.Init&&(t.off("cursorActivity",l),t.off("focus",l),t.off("blur",u),u(t)),n&&(t.state.matchBrackets="object"==typeof n?n:{},t.on("cursorActivity",l),t.on("focus",l),t.on("blur",u))}),e.defineExtension("matchBrackets",function(){s(this,!0)}),e.defineExtension("findMatchingBracket",function(e,t,n){return(n||"boolean"==typeof t)&&(n?(n.strict=t,t=n):t=t?{strict:!0}:null),o(this,e,t)}),e.defineExtension("scanForBracket",function(e,t,n,r){return a(this,e,t,n,r)})},"object"==typeof e&&"object"==typeof t?n(Qu()):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}),Ju=s((e,t)=>{var n;n=function(e){var t={pairs:"()[]{}''\"\"",closeBefore:")]}'\":;>",triples:"",explode:"[]{}"},n=e.Pos;function r(e,n){return"pairs"==n&&"string"==typeof e?e:"object"==typeof e&&null!=e[n]?e[n]:t[n]}e.defineOption("autoCloseBrackets",!1,function(t,n,a){a&&a!=e.Init&&(t.removeKeyMap(i),t.state.closeBrackets=null),n&&(o(r(n,"pairs")),t.state.closeBrackets=n,t.addKeyMap(i))});var i={Backspace:function(t){var i=s(t);if(!i||t.getOption("disableInput"))return e.Pass;for(var o=r(i,"pairs"),a=t.listSelections(),l=0;l<a.length;l++){if(!a[l].empty())return e.Pass;var u=c(t,a[l].head);if(!u||o.indexOf(u)%2!=0)return e.Pass}for(l=a.length-1;l>=0;l--){var d=a[l].head;t.replaceRange("",n(d.line,d.ch-1),n(d.line,d.ch+1),"+delete")}},Enter:function(t){var n=s(t),i=n&&r(n,"explode");if(!i||t.getOption("disableInput"))return e.Pass;for(var o=t.listSelections(),a=0;a<o.length;a++){if(!o[a].empty())return e.Pass;var u=c(t,o[a].head);if(!u||i.indexOf(u)%2!=0)return e.Pass}t.operation(function(){var e=t.lineSeparator()||"\n";t.replaceSelection(e+e,null),l(t,-1),o=t.listSelections();for(var n=0;n<o.length;n++){var r=o[n].head.line;t.indentLine(r,null,!0),t.indentLine(r+1,null,!0)}})}};function o(e){for(var t=0;t<e.length;t++){var n=e.charAt(t),r="'"+n+"'";i[r]||(i[r]=a(n))}}function a(t){return function(i){return function(t,i){var o=s(t);if(!o||t.getOption("disableInput"))return e.Pass;var a=r(o,"pairs"),c=a.indexOf(i);if(-1==c)return e.Pass;for(var f,p=r(o,"closeBefore"),h=r(o,"triples"),m=a.charAt(c+1)==i,g=t.listSelections(),v=c%2==0,y=0;y<g.length;y++){var b,w=g[y],x=w.head,E=t.getRange(x,n(x.line,x.ch+1));if(v&&!w.empty())b="surround";else if(!m&&v||E!=i)if(m&&x.ch>1&&h.indexOf(i)>=0&&t.getRange(n(x.line,x.ch-2),x)==i+i){if(x.ch>2&&/\bstring/.test(t.getTokenTypeAt(n(x.line,x.ch-2))))return e.Pass;b="addFour"}else if(m){var k=0==x.ch?" ":t.getRange(n(x.line,x.ch-1),x);if(e.isWordChar(E)||k==i||e.isWordChar(k))return e.Pass;b="both"}else{if(!v||!(0===E.length||/\s/.test(E)||p.indexOf(E)>-1))return e.Pass;b="both"}else b=m&&d(t,x)?"both":h.indexOf(i)>=0&&t.getRange(x,n(x.line,x.ch+3))==i+i+i?"skipThree":"skip";if(f){if(f!=b)return e.Pass}else f=b}var C=c%2?a.charAt(c-1):i,S=c%2?i:a.charAt(c+1);t.operation(function(){if("skip"==f)l(t,1);else if("skipThree"==f)l(t,3);else if("surround"==f){for(var e=t.getSelections(),n=0;n<e.length;n++)e[n]=C+e[n]+S;for(t.replaceSelections(e,"around"),e=t.listSelections().slice(),n=0;n<e.length;n++)e[n]=u(e[n]);t.setSelections(e)}else"both"==f?(t.replaceSelection(C+S,null),t.triggerElectric(C+S),l(t,-1)):"addFour"==f&&(t.replaceSelection(C+C+C+C,"before"),l(t,1))})}(i,t)}}function s(e){var t=e.state.closeBrackets;return!t||t.override?t:e.getModeAt(e.getCursor()).closeBrackets||t}function l(e,t){for(var n=[],r=e.listSelections(),i=0,o=0;o<r.length;o++){var a=r[o];a.head==e.getCursor()&&(i=o);var s=a.head.ch||t>0?{line:a.head.line,ch:a.head.ch+t}:{line:a.head.line-1};n.push({anchor:s,head:s})}e.setSelections(n,i)}function u(t){var r=e.cmpPos(t.anchor,t.head)>0;return{anchor:new n(t.anchor.line,t.anchor.ch+(r?-1:1)),head:new n(t.head.line,t.head.ch+(r?1:-1))}}function c(e,t){var r=e.getRange(n(t.line,t.ch-1),n(t.line,t.ch+1));return 2==r.length?r:null}function d(e,t){var r=e.getTokenAt(n(t.line,t.ch+1));return/\bstring/.test(r.type)&&r.start==t.ch&&(0==t.ch||!/\bstring/.test(e.getTokenTypeAt(t)))}o(t.pairs+"`")},"object"==typeof e&&"object"==typeof t?n(Qu()):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}),ec=s((e,t)=>{var n;n=function(e){function t(t){return function(n,r){var i=r.line,o=n.getLine(i);function a(t){for(var a,s=r.ch,l=0;;){var u=s<=0?-1:o.lastIndexOf(t[0],s-1);if(-1!=u){if(1==l&&u<r.ch)break;if(a=n.getTokenTypeAt(e.Pos(i,u+1)),!/^(comment|string)/.test(a))return{ch:u+1,tokenType:a,pair:t};s=u-1}else{if(1==l)break;l=1,s=o.length}}}function s(t){var r,o,a=1,s=n.lastLine(),l=t.ch;e:for(var u=i;u<=s;++u)for(var c=n.getLine(u),d=u==i?l:0;;){var f=c.indexOf(t.pair[0],d),p=c.indexOf(t.pair[1],d);if(f<0&&(f=c.length),p<0&&(p=c.length),(d=Math.min(f,p))==c.length)break;if(n.getTokenTypeAt(e.Pos(u,d+1))==t.tokenType)if(d==f)++a;else if(! --a){r=u,o=d;break e}++d}return null==r||i==r?null:{from:e.Pos(i,l),to:e.Pos(r,o)}}for(var l=[],u=0;u<t.length;u++){var c=a(t[u]);c&&l.push(c)}for(l.sort(function(e,t){return e.ch-t.ch}),u=0;u<l.length;u++){var d=s(l[u]);if(d)return d}return null}}e.registerHelper("fold","brace",t([["{","}"],["[","]"]])),e.registerHelper("fold","brace-paren",t([["{","}"],["[","]"],["(",")"]])),e.registerHelper("fold","import",function(t,n){function r(n){if(n<t.firstLine()||n>t.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));if(/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"keyword"!=r.type||"import"!=r.string)return null;for(var i=n,o=Math.min(t.lastLine(),n+10);i<=o;++i){var a=t.getLine(i).indexOf(";");if(-1!=a)return{startCh:r.end,end:e.Pos(i,a)}}}var i,o=n.line,a=r(o);if(!a||r(o-1)||(i=r(o-2))&&i.end.line==o-1)return null;for(var s=a.end;;){var l=r(s.line+1);if(null==l)break;s=l.end}return{from:t.clipPos(e.Pos(o,a.startCh+1)),to:s}}),e.registerHelper("fold","include",function(t,n){function r(n){if(n<t.firstLine()||n>t.lastLine())return null;var r=t.getTokenAt(e.Pos(n,1));return/\S/.test(r.string)||(r=t.getTokenAt(e.Pos(n,r.end+1))),"meta"==r.type&&"#include"==r.string.slice(0,8)?r.start+8:void 0}var i=n.line,o=r(i);if(null==o||null!=r(i-1))return null;for(var a=i;null!=r(a+1);)++a;return{from:e.Pos(i,o+1),to:t.clipPos(e.Pos(a))}})},"object"==typeof e&&"object"==typeof t?n(Qu()):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}),tc=s((e,t)=>{var n;n=function(e){function t(t,n,i,o){if(i&&i.call){var a=i;i=null}else a=r(t,i,"rangeFinder");"number"==typeof n&&(n=e.Pos(n,0));var s=r(t,i,"minFoldSize");function l(e){var r=a(t,n);if(!r||r.to.line-r.from.line<s)return null;if("fold"===o)return r;for(var i=t.findMarksAt(r.from),l=0;l<i.length;++l)if(i[l].__isFold){if(!e)return null;r.cleared=!0,i[l].clear()}return r}var u=l(!0);if(r(t,i,"scanUp"))for(;!u&&n.line>t.firstLine();)n=e.Pos(n.line-1,0),u=l(!1);if(u&&!u.cleared&&"unfold"!==o){var c=function(e,t,n){var i=r(e,t,"widget");if("function"==typeof i&&(i=i(n.from,n.to)),"string"==typeof i){var o=document.createTextNode(i);(i=document.createElement("span")).appendChild(o),i.className="CodeMirror-foldmarker"}else i&&(i=i.cloneNode(!0));return i}(t,i,u);e.on(c,"mousedown",function(t){d.clear(),e.e_preventDefault(t)});var d=t.markText(u.from,u.to,{replacedWith:c,clearOnEnter:r(t,i,"clearOnEnter"),__isFold:!0});d.on("clear",function(n,r){e.signal(t,"unfold",t,n,r)}),e.signal(t,"fold",t,u.from,u.to)}}e.newFoldFunction=function(e,n){return function(r,i){t(r,i,{rangeFinder:e,widget:n})}},e.defineExtension("foldCode",function(e,n,r){t(this,e,n,r)}),e.defineExtension("isFolded",function(e){for(var t=this.findMarksAt(e),n=0;n<t.length;++n)if(t[n].__isFold)return!0}),e.commands.toggleFold=function(e){e.foldCode(e.getCursor())},e.commands.fold=function(e){e.foldCode(e.getCursor(),null,"fold")},e.commands.unfold=function(e){e.foldCode(e.getCursor(),{scanUp:!1},"unfold")},e.commands.foldAll=function(t){t.operation(function(){for(var n=t.firstLine(),r=t.lastLine();n<=r;n++)t.foldCode(e.Pos(n,0),{scanUp:!1},"fold")})},e.commands.unfoldAll=function(t){t.operation(function(){for(var n=t.firstLine(),r=t.lastLine();n<=r;n++)t.foldCode(e.Pos(n,0),{scanUp:!1},"unfold")})},e.registerHelper("fold","combine",function(){var e=Array.prototype.slice.call(arguments,0);return function(t,n){for(var r=0;r<e.length;++r){var i=e[r](t,n);if(i)return i}}}),e.registerHelper("fold","auto",function(e,t){for(var n=e.getHelpers(t,"fold"),r=0;r<n.length;r++){var i=n[r](e,t);if(i)return i}});var n={rangeFinder:e.fold.auto,widget:"↔",minFoldSize:0,scanUp:!1,clearOnEnter:!0};function r(e,t,r){if(t&&void 0!==t[r])return t[r];var i=e.options.foldOptions;return i&&void 0!==i[r]?i[r]:n[r]}e.defineOption("foldOptions",null),e.defineExtension("foldOption",function(e,t){return r(this,e,t)})},"object"==typeof e&&"object"==typeof t?n(Qu()):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}),nc=s((e,t)=>{var n;n=function(e){e.defineOption("foldGutter",!1,function(t,r,i){var o;i&&i!=e.Init&&(t.clearGutter(t.state.foldGutter.options.gutter),t.state.foldGutter=null,t.off("gutterClick",l),t.off("changes",c),t.off("viewportChange",d),t.off("fold",f),t.off("unfold",f),t.off("swapDoc",c),t.off("optionChange",u)),r&&(t.state.foldGutter=new n((!0===(o=r)&&(o={}),null==o.gutter&&(o.gutter="CodeMirror-foldgutter"),null==o.indicatorOpen&&(o.indicatorOpen="CodeMirror-foldgutter-open"),null==o.indicatorFolded&&(o.indicatorFolded="CodeMirror-foldgutter-folded"),o)),s(t),t.on("gutterClick",l),t.on("changes",c),t.on("viewportChange",d),t.on("fold",f),t.on("unfold",f),t.on("swapDoc",c),t.on("optionChange",u))});var t=e.Pos;function n(e){this.options=e,this.from=this.to=0}function r(e,n){for(var r=e.findMarks(t(n,0),t(n+1,0)),i=0;i<r.length;++i)if(r[i].__isFold){var o=r[i].find(-1);if(o&&o.line===n)return r[i]}}function i(e){if("string"==typeof e){var t=document.createElement("div");return t.className=e+" CodeMirror-guttermarker-subtle",t}return e.cloneNode(!0)}function o(e,n,o){var s=e.state.foldGutter.options,l=n-1,u=e.foldOption(s,"minFoldSize"),c=e.foldOption(s,"rangeFinder"),d="string"==typeof s.indicatorFolded&&a(s.indicatorFolded),f="string"==typeof s.indicatorOpen&&a(s.indicatorOpen);e.eachLine(n,o,function(n){++l;var o=null,a=n.gutterMarkers;if(a&&(a=a[s.gutter]),r(e,l)){if(d&&a&&d.test(a.className))return;o=i(s.indicatorFolded)}else{var p=t(l,0),h=c&&c(e,p);if(h&&h.to.line-h.from.line>=u){if(f&&a&&f.test(a.className))return;o=i(s.indicatorOpen)}}(o||a)&&e.setGutterMarker(n,s.gutter,o)})}function a(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function s(e){var t=e.getViewport(),n=e.state.foldGutter;n&&(e.operation(function(){o(e,t.from,t.to)}),n.from=t.from,n.to=t.to)}function l(e,n,i){var o=e.state.foldGutter;if(o){var a=o.options;if(i==a.gutter){var s=r(e,n);s?s.clear():e.foldCode(t(n,0),a)}}}function u(e,t){"mode"==t&&c(e)}function c(e){var t=e.state.foldGutter;if(t){var n=t.options;t.from=t.to=0,clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){s(e)},n.foldOnChangeTimeSpan||600)}}function d(e){var t=e.state.foldGutter;if(t){var n=t.options;clearTimeout(t.changeUpdate),t.changeUpdate=setTimeout(function(){var n=e.getViewport();t.from==t.to||n.from-t.to>20||t.from-n.to>20?s(e):e.operation(function(){n.from<t.from&&(o(e,n.from,t.from),t.from=n.from),n.to>t.to&&(o(e,t.to,n.to),t.to=n.to)})},n.updateViewportTimeSpan||400)}}function f(e,t){var n=e.state.foldGutter;if(n){var r=t.line;r>=n.from&&r<n.to&&o(e,r,r+1)}}},"object"==typeof e&&"object"==typeof t?n(Qu(),tc()):"function"==typeof define&&define.amd?define(["../../lib/codemirror","./foldcode"],n):n(CodeMirror)}),rc=s((e,t)=>{var n;n=function(e){var t="CodeMirror-lint-markers";function n(e){e.parentNode&&e.parentNode.removeChild(e)}function r(t,r,i,o){var a=function(t,n,r){var i=document.createElement("div");function o(t){if(!i.parentNode)return e.off(document,"mousemove",o);var n=Math.max(0,t.clientY-i.offsetHeight-5),r=Math.max(0,Math.min(t.clientX+5,i.ownerDocument.defaultView.innerWidth-i.offsetWidth));i.style.top=n+"px",i.style.left=r+"px"}return i.className="CodeMirror-lint-tooltip cm-s-"+t.options.theme,i.appendChild(r.cloneNode(!0)),t.state.lint.options.selfContain?t.getWrapperElement().appendChild(i):document.body.appendChild(i),e.on(document,"mousemove",o),o(n),null!=i.style.opacity&&(i.style.opacity=1),i}(t,r,i);function s(){var t;e.off(o,"mouseout",s),a&&((t=a).parentNode&&(null==t.style.opacity&&n(t),t.style.opacity=0,setTimeout(function(){n(t)},600)),a=null)}var l=setInterval(function(){if(a)for(var e=o;;e=e.parentNode){if(e&&11==e.nodeType&&(e=e.host),e==document.body)return;if(!e){s();break}}if(!a)return clearInterval(l)},400);e.on(o,"mouseout",s)}function i(e,t,n){for(var i in this.marked=[],t instanceof Function&&(t={getAnnotations:t}),t&&!0!==t||(t={}),this.options={},this.linterOptions=t.options||{},o)this.options[i]=o[i];for(var i in t)o.hasOwnProperty(i)?null!=t[i]&&(this.options[i]=t[i]):t.options||(this.linterOptions[i]=t[i]);this.timeout=null,this.hasGutter=n,this.onMouseOver=function(t){!function(e,t){var n=t.target||t.srcElement;if(/\bCodeMirror-lint-mark-/.test(n.className)){for(var i=n.getBoundingClientRect(),o=(i.left+i.right)/2,a=(i.top+i.bottom)/2,s=e.findMarksAt(e.coordsChar({left:o,top:a},"client")),l=[],c=0;c<s.length;++c){var d=s[c].__annotation;d&&l.push(d)}l.length&&function(e,t,n){for(var i=n.target||n.srcElement,o=document.createDocumentFragment(),a=0;a<t.length;a++){var s=t[a];o.appendChild(u(s))}r(e,n,o,i)}(e,l,t)}}(e,t)},this.waitingFor=0}var o={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function a(e){var n=e.state.lint;n.hasGutter&&e.clearGutter(t),n.options.highlightLines&&function(e){e.eachLine(function(t){var n=t.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(t.wrapClass);n&&e.removeLineClass(t,"wrap",n[0])})}(e);for(var r=0;r<n.marked.length;++r)n.marked[r].clear();n.marked.length=0}function s(t,n,i,o,a){var s=document.createElement("div"),l=s;return s.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+i,o&&((l=s.appendChild(document.createElement("div"))).className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),0!=a&&e.on(l,"mouseover",function(e){r(t,e,n,l)}),s}function l(e,t){return"error"==e?e:t}function u(e){var t=e.severity;t||(t="error");var n=document.createElement("div");return n.className="CodeMirror-lint-message CodeMirror-lint-message-"+t,void 0!==e.messageHTML?n.innerHTML=e.messageHTML:n.appendChild(document.createTextNode(e.message)),n}function c(t){var n=t.state.lint;if(n){var r=n.options,i=r.getAnnotations||t.getHelper(e.Pos(0,0),"lint");if(i)if(r.async||i.async)!function(t,n){var r=t.state.lint,i=++r.waitingFor;function o(){i=-1,t.off("change",o)}t.on("change",o),n(t.getValue(),function(n,a){t.off("change",o),r.waitingFor==i&&(a&&n instanceof e&&(n=a),t.operation(function(){d(t,n)}))},r.linterOptions,t)}(t,i);else{var o=i(t.getValue(),n.linterOptions,t);if(!o)return;o.then?o.then(function(e){t.operation(function(){d(t,e)})}):t.operation(function(){d(t,o)})}}}function d(e,n){var r=e.state.lint;if(r){var i=r.options;a(e);for(var o=function(e){for(var t=[],n=0;n<e.length;++n){var r=e[n],i=r.from.line;(t[i]||(t[i]=[])).push(r)}return t}(n),c=0;c<o.length;++c){var d=o[c];if(d){for(var f=null,p=r.hasGutter&&document.createDocumentFragment(),h=0;h<d.length;++h){var m=d[h],g=m.severity;g||(g="error"),f=l(f,g),i.formatAnnotation&&(m=i.formatAnnotation(m)),r.hasGutter&&p.appendChild(u(m)),m.to&&r.marked.push(e.markText(m.from,m.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+g,__annotation:m}))}r.hasGutter&&e.setGutterMarker(c,t,s(e,p,f,d.length>1,i.tooltips)),i.highlightLines&&e.addLineClass(c,"wrap","CodeMirror-lint-line-"+f)}}i.onUpdateLinting&&i.onUpdateLinting(n,o,e)}}function f(e){var t=e.state.lint;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(function(){c(e)},t.options.delay))}e.defineOption("lint",!1,function(n,r,o){if(o&&o!=e.Init&&(a(n),!1!==n.state.lint.options.lintOnChange&&n.off("change",f),e.off(n.getWrapperElement(),"mouseover",n.state.lint.onMouseOver),clearTimeout(n.state.lint.timeout),delete n.state.lint),r){for(var s=n.getOption("gutters"),l=!1,u=0;u<s.length;++u)s[u]==t&&(l=!0);var d=n.state.lint=new i(n,r,l);d.options.lintOnChange&&n.on("change",f),0!=d.options.tooltips&&"gutter"!=d.options.tooltips&&e.on(n.getWrapperElement(),"mouseover",d.onMouseOver),c(n)}}),e.defineExtension("performLint",function(){c(this)})},"object"==typeof e&&"object"==typeof t?n(Qu()):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}),ic=s((e,t)=>{var n;n=function(e){var t,n,r=e.Pos;function i(e,t){for(var n=function(e){var t=e.flags;return null!=t?t:(e.ignoreCase?"i":"")+(e.global?"g":"")+(e.multiline?"m":"")}(e),r=n,i=0;i<t.length;i++)-1==r.indexOf(t.charAt(i))&&(r+=t.charAt(i));return n==r?e:new RegExp(e.source,r)}function o(e){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(e.source)}function a(e,t,n){t=i(t,"g");for(var o=n.line,a=n.ch,s=e.lastLine();o<=s;o++,a=0){t.lastIndex=a;var l=e.getLine(o),u=t.exec(l);if(u)return{from:r(o,u.index),to:r(o,u.index+u[0].length),match:u}}}function s(e,t,n){if(!o(t))return a(e,t,n);t=i(t,"gm");for(var s,l=1,u=n.line,c=e.lastLine();u<=c;){for(var d=0;d<l&&!(u>c);d++){var f=e.getLine(u++);s=null==s?f:s+"\n"+f}l*=2,t.lastIndex=n.ch;var p=t.exec(s);if(p){var h=s.slice(0,p.index).split("\n"),m=p[0].split("\n"),g=n.line+h.length-1,v=h[h.length-1].length;return{from:r(g,v),to:r(g+m.length-1,1==m.length?v+m[0].length:m[m.length-1].length),match:p}}}}function l(e,t,n){for(var r,i=0;i<=e.length;){t.lastIndex=i;var o=t.exec(e);if(!o)break;var a=o.index+o[0].length;if(a>e.length-n)break;(!r||a>r.index+r[0].length)&&(r=o),i=o.index+1}return r}function u(e,t,n){t=i(t,"g");for(var o=n.line,a=n.ch,s=e.firstLine();o>=s;o--,a=-1){var u=e.getLine(o),c=l(u,t,a<0?0:u.length-a);if(c)return{from:r(o,c.index),to:r(o,c.index+c[0].length),match:c}}}function c(e,t,n){if(!o(t))return u(e,t,n);t=i(t,"gm");for(var a,s=1,c=e.getLine(n.line).length-n.ch,d=n.line,f=e.firstLine();d>=f;){for(var p=0;p<s&&d>=f;p++){var h=e.getLine(d--);a=null==a?h:h+"\n"+a}s*=2;var m=l(a,t,c);if(m){var g=a.slice(0,m.index).split("\n"),v=m[0].split("\n"),y=d+g.length,b=g[g.length-1].length;return{from:r(y,b),to:r(y+v.length-1,1==v.length?b+v[0].length:v[v.length-1].length),match:m}}}}function d(e,t,n,r){if(e.length==t.length)return n;for(var i=0,o=n+Math.max(0,e.length-t.length);;){if(i==o)return i;var a=i+o>>1,s=r(e.slice(0,a)).length;if(s==n)return a;s>n?o=a:i=a+1}}function f(e,i,o,a){if(!i.length)return null;var s=a?t:n,l=s(i).split(/\r|\n\r?/);e:for(var u=o.line,c=o.ch,f=e.lastLine()+1-l.length;u<=f;u++,c=0){var p=e.getLine(u).slice(c),h=s(p);if(1==l.length){var m=h.indexOf(l[0]);if(-1==m)continue e;return o=d(p,h,m,s)+c,{from:r(u,d(p,h,m,s)+c),to:r(u,d(p,h,m+l[0].length,s)+c)}}var g=h.length-l[0].length;if(h.slice(g)==l[0]){for(var v=1;v<l.length-1;v++)if(s(e.getLine(u+v))!=l[v])continue e;var y=e.getLine(u+l.length-1),b=s(y),w=l[l.length-1];if(b.slice(0,w.length)==w)return{from:r(u,d(p,h,g,s)+c),to:r(u+l.length-1,d(y,b,w.length,s))}}}}function p(e,i,o,a){if(!i.length)return null;var s=a?t:n,l=s(i).split(/\r|\n\r?/);e:for(var u=o.line,c=o.ch,f=e.firstLine()-1+l.length;u>=f;u--,c=-1){var p=e.getLine(u);c>-1&&(p=p.slice(0,c));var h=s(p);if(1==l.length){var m=h.lastIndexOf(l[0]);if(-1==m)continue e;return{from:r(u,d(p,h,m,s)),to:r(u,d(p,h,m+l[0].length,s))}}var g=l[l.length-1];if(h.slice(0,g.length)==g){var v=1;for(o=u-l.length+1;v<l.length-1;v++)if(s(e.getLine(o+v))!=l[v])continue e;var y=e.getLine(u+1-l.length),b=s(y);if(b.slice(b.length-l[0].length)==l[0])return{from:r(u+1-l.length,d(y,b,y.length-l[0].length,s)),to:r(u,d(p,h,g.length,s))}}}}function h(e,t,n,o){var l;this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=e,n=n?e.clipPos(n):r(0,0),this.pos={from:n,to:n},"object"==typeof o?l=o.caseFold:(l=o,o=null),"string"==typeof t?(null==l&&(l=!1),this.matches=function(n,r){return(n?p:f)(e,t,r,l)}):(t=i(t,"gm"),o&&!1===o.multiline?this.matches=function(n,r){return(n?u:a)(e,t,r)}:this.matches=function(n,r){return(n?c:s)(e,t,r)})}String.prototype.normalize?(t=function(e){return e.normalize("NFD").toLowerCase()},n=function(e){return e.normalize("NFD")}):(t=function(e){return e.toLowerCase()},n=function(e){return e}),h.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(t){var n=this.doc.clipPos(t?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(n=r(n.line,n.ch),t?(n.ch--,n.ch<0&&(n.line--,n.ch=(this.doc.getLine(n.line)||"").length)):(n.ch++,n.ch>(this.doc.getLine(n.line)||"").length&&(n.ch=0,n.line++)),0!=e.cmpPos(n,this.doc.clipPos(n))))return this.atOccurrence=!1;var i=this.matches(t,n);if(this.afterEmptyMatch=i&&0==e.cmpPos(i.from,i.to),i)return this.pos=i,this.atOccurrence=!0,this.pos.match||!0;var o=r(t?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:o,to:o},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(t,n){if(this.atOccurrence){var i=e.splitLines(t);this.doc.replaceRange(i,this.pos.from,this.pos.to,n),this.pos.to=r(this.pos.from.line+i.length-1,i[i.length-1].length+(1==i.length?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",function(e,t,n){return new h(this.doc,e,t,n)}),e.defineDocExtension("getSearchCursor",function(e,t,n){return new h(this,e,t,n)}),e.defineExtension("selectMatches",function(t,n){for(var r=[],i=this.getSearchCursor(t,this.getCursor("from"),n);i.findNext()&&!(e.cmpPos(i.to(),this.getCursor("to"))>0);)r.push({anchor:i.from(),head:i.to()});r.length&&this.setSelections(r,0)})},"object"==typeof e&&"object"==typeof t?n(Qu()):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}),oc=s((e,t)=>{var n;n=function(e){function t(t,n,r){var i=t.getWrapperElement(),o=i.appendChild(document.createElement("div"));return o.className=r?"CodeMirror-dialog CodeMirror-dialog-bottom":"CodeMirror-dialog CodeMirror-dialog-top","string"==typeof n?o.innerHTML=n:o.appendChild(n),e.addClass(i,"dialog-opened"),o}function n(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}e.defineExtension("openDialog",function(r,i,o){o||(o={}),n(this,null);var a=t(this,r,o.bottom),s=!1,l=this;function u(t){if("string"==typeof t)d.value=t;else{if(s)return;s=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),l.focus(),o.onClose&&o.onClose(a)}}var c,d=a.getElementsByTagName("input")[0];return d?(d.focus(),o.value&&(d.value=o.value,!1!==o.selectValueOnOpen&&d.select()),o.onInput&&e.on(d,"input",function(e){o.onInput(e,d.value,u)}),o.onKeyUp&&e.on(d,"keyup",function(e){o.onKeyUp(e,d.value,u)}),e.on(d,"keydown",function(t){o&&o.onKeyDown&&o.onKeyDown(t,d.value,u)||((27==t.keyCode||!1!==o.closeOnEnter&&13==t.keyCode)&&(d.blur(),e.e_stop(t),u()),13==t.keyCode&&i(d.value,t))}),!1!==o.closeOnBlur&&e.on(a,"focusout",function(e){null!==e.relatedTarget&&u()})):(c=a.getElementsByTagName("button")[0])&&(e.on(c,"click",function(){u(),l.focus()}),!1!==o.closeOnBlur&&e.on(c,"blur",u),c.focus()),u}),e.defineExtension("openConfirm",function(r,i,o){n(this,null);var a=t(this,r,o&&o.bottom),s=a.getElementsByTagName("button"),l=!1,u=this,c=1;function d(){l||(l=!0,e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a),u.focus())}s[0].focus();for(var f=0;f<s.length;++f){var p=s[f];(function(t){e.on(p,"click",function(n){e.e_preventDefault(n),d(),t&&t(u)})})(i[f]),e.on(p,"blur",function(){--c,setTimeout(function(){c<=0&&d()},200)}),e.on(p,"focus",function(){++c})}}),e.defineExtension("openNotification",function(r,i){n(this,u);var o,a=t(this,r,i&&i.bottom),s=!1,l=i&&void 0!==i.duration?i.duration:5e3;function u(){s||(s=!0,clearTimeout(o),e.rmClass(a.parentNode,"dialog-opened"),a.parentNode.removeChild(a))}return e.on(a,"click",function(t){e.e_preventDefault(t),u()}),l&&(o=setTimeout(u,l)),u})},"object"==typeof e&&"object"==typeof t?n(Qu()):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}),ac=s((e,t)=>{var n;n=function(e){function t(e,t){var n=Number(t);return/^[-+]/.test(t)?e.getCursor().line+n:n-1}e.defineOption("search",{bottom:!1}),e.commands.jumpToLine=function(e){var n=e.getCursor();!function(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0,bottom:e.options.search.bottom}):i(prompt(n,r))}(e,function(e){return e.phrase("Jump to line:")+' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+e.phrase("(Use line:column or scroll% syntax)")+"</span>"}(e),e.phrase("Jump to line:"),n.line+1+":"+n.ch,function(r){var i;if(r)if(i=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(r))e.setCursor(t(e,i[1]),Number(i[2]));else if(i=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(r)){var o=Math.round(e.lineCount()*Number(i[1])/100);/^[-+]/.test(i[1])&&(o=n.line+o+1),e.setCursor(o-1,n.ch)}else(i=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(r))&&e.setCursor(t(e,i[1]),n.ch)})},e.keyMap.default["Alt-G"]="jumpToLine"},"object"==typeof e&&"object"==typeof t?n(Qu(),oc()):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../dialog/dialog"],n):n(CodeMirror)}),sc=s((e,t)=>{var n;n=function(e){var t=e.commands,n=e.Pos;function r(t,r){t.extendSelectionsBy(function(i){return t.display.shift||t.doc.extend||i.empty()?function(t,r,i){if(i<0&&0==r.ch)return t.clipPos(n(r.line-1));var o=t.getLine(r.line);if(i>0&&r.ch>=o.length)return t.clipPos(n(r.line+1,0));for(var a,s="start",l=r.ch,u=l,c=i<0?0:o.length,d=0;u!=c;u+=i,d++){var f=o.charAt(i<0?u-1:u),p="_"!=f&&e.isWordChar(f)?"w":"o";if("w"==p&&f.toUpperCase()==f&&(p="W"),"start"==s)"o"!=p?(s="in",a=p):l=u+i;else if("in"==s&&a!=p){if("w"==a&&"W"==p&&i<0&&u--,"W"==a&&"w"==p&&i>0){if(u==l+1){a="w";continue}u--}break}}return n(r.line,u)}(t.doc,i.head,r):r<0?i.from():i.to()})}function i(t,r){if(t.isReadOnly())return e.Pass;t.operation(function(){for(var e=t.listSelections().length,i=[],o=-1,a=0;a<e;a++){var s=t.listSelections()[a].head;if(!(s.line<=o)){var l=n(s.line+(r?0:1),0);t.replaceRange("\n",l,null,"+insertLine"),t.indentLine(l.line,null,!0),i.push({head:l,anchor:l}),o=s.line+1}}t.setSelections(i)}),t.execCommand("indentAuto")}function o(t,r){for(var i=r.ch,o=i,a=t.getLine(r.line);i&&e.isWordChar(a.charAt(i-1));)--i;for(;o<a.length&&e.isWordChar(a.charAt(o));)++o;return{from:n(r.line,i),to:n(r.line,o),word:a.slice(i,o)}}function a(e,t){for(var n=e.listSelections(),r=[],i=0;i<n.length;i++){var o=n[i],a=e.findPosV(o.anchor,t,"line",o.anchor.goalColumn),s=e.findPosV(o.head,t,"line",o.head.goalColumn);a.goalColumn=null!=o.anchor.goalColumn?o.anchor.goalColumn:e.cursorCoords(o.anchor,"div").left,s.goalColumn=null!=o.head.goalColumn?o.head.goalColumn:e.cursorCoords(o.head,"div").left;var l={anchor:a,head:s};r.push(o),r.push(l)}e.setSelections(r)}t.goSubwordLeft=function(e){r(e,-1)},t.goSubwordRight=function(e){r(e,1)},t.scrollLineUp=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top+t.clientHeight,"local");e.getCursor().line>=n&&e.execCommand("goLineUp")}e.scrollTo(null,t.top-e.defaultTextHeight())},t.scrollLineDown=function(e){var t=e.getScrollInfo();if(!e.somethingSelected()){var n=e.lineAtHeight(t.top,"local")+1;e.getCursor().line<=n&&e.execCommand("goLineDown")}e.scrollTo(null,t.top+e.defaultTextHeight())},t.splitSelectionByLine=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++)for(var o=t[i].from(),a=t[i].to(),s=o.line;s<=a.line;++s)a.line>o.line&&s==a.line&&0==a.ch||r.push({anchor:s==o.line?o:n(s,0),head:s==a.line?a:n(s)});e.setSelections(r,0)},t.singleSelectionTop=function(e){var t=e.listSelections()[0];e.setSelection(t.anchor,t.head,{scroll:!1})},t.selectLine=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++){var o=t[i];r.push({anchor:n(o.from().line,0),head:n(o.to().line+1,0)})}e.setSelections(r)},t.insertLineAfter=function(e){return i(e,!1)},t.insertLineBefore=function(e){return i(e,!0)},t.selectNextOccurrence=function(t){var r=t.getCursor("from"),i=t.getCursor("to"),a=t.state.sublimeFindFullWord==t.doc.sel;if(0==e.cmpPos(r,i)){var s=o(t,r);if(!s.word)return;t.setSelection(s.from,s.to),a=!0}else{var l=t.getRange(r,i),u=a?new RegExp("\\b"+l+"\\b"):l,c=t.getSearchCursor(u,i),d=c.findNext();if(d||(d=(c=t.getSearchCursor(u,n(t.firstLine(),0))).findNext()),!d||function(t,n,r){for(var i=0;i<t.length;i++)if(0==e.cmpPos(t[i].from(),n)&&0==e.cmpPos(t[i].to(),r))return!0;return!1}(t.listSelections(),c.from(),c.to()))return;t.addSelection(c.from(),c.to())}a&&(t.state.sublimeFindFullWord=t.doc.sel)},t.skipAndSelectNextOccurrence=function(n){var r=n.getCursor("anchor"),i=n.getCursor("head");t.selectNextOccurrence(n),0!=e.cmpPos(r,i)&&n.doc.setSelections(n.doc.listSelections().filter(function(e){return e.anchor!=r||e.head!=i}))},t.addCursorToPrevLine=function(e){a(e,-1)},t.addCursorToNextLine=function(e){a(e,1)};var s="(){}[]";function l(t){for(var r=t.listSelections(),i=[],o=0;o<r.length;o++){var a=r[o],l=a.head,u=t.scanForBracket(l,-1);if(!u)return!1;for(;;){var c=t.scanForBracket(l,1);if(!c)return!1;if(c.ch==s.charAt(s.indexOf(u.ch)+1)){var d=n(u.pos.line,u.pos.ch+1);if(0!=e.cmpPos(d,a.from())||0!=e.cmpPos(c.pos,a.to())){i.push({anchor:d,head:c.pos});break}if(!(u=t.scanForBracket(u.pos,-1)))return!1}l=n(c.pos.line,c.pos.ch+1)}}return t.setSelections(i),!0}function u(e){return e?/\bpunctuation\b/.test(e)?e:void 0:null}function c(t,r,i){if(t.isReadOnly())return e.Pass;for(var o,a=t.listSelections(),s=[],l=0;l<a.length;l++){var u=a[l];if(!u.empty()){for(var c=u.from().line,d=u.to().line;l<a.length-1&&a[l+1].from().line==d;)d=a[++l].to().line;a[l].to().ch||d--,s.push(c,d)}}s.length?o=!0:s.push(t.firstLine(),t.lastLine()),t.operation(function(){for(var e=[],a=0;a<s.length;a+=2){var l=s[a],u=s[a+1],c=n(l,0),d=n(u),f=t.getRange(c,d,!1);r?f.sort(function(e,t){return e<t?-i:e==t?0:i}):f.sort(function(e,t){var n=e.toUpperCase(),r=t.toUpperCase();return n!=r&&(e=n,t=r),e<t?-i:e==t?0:i}),t.replaceRange(f,c,d),o&&e.push({anchor:c,head:n(u+1,0)})}o&&t.setSelections(e,0)})}function d(t,n){t.operation(function(){for(var r=t.listSelections(),i=[],a=[],s=0;s<r.length;s++)(u=r[s]).empty()?(i.push(s),a.push("")):a.push(n(t.getRange(u.from(),u.to())));var l;for(t.replaceSelections(a,"around","case"),s=i.length-1;s>=0;s--){var u=r[i[s]];if(!(l&&e.cmpPos(u.head,l)>0)){var c=o(t,u.head);l=c.from,t.replaceRange(n(c.word),c.from,c.to)}}})}function f(t){var n=t.getCursor("from"),r=t.getCursor("to");if(0==e.cmpPos(n,r)){var i=o(t,n);if(!i.word)return;n=i.from,r=i.to}return{from:n,to:r,query:t.getRange(n,r),word:i}}function p(e,t){var r=f(e);if(r){var i=r.query,o=e.getSearchCursor(i,t?r.to:r.from);(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):(o=e.getSearchCursor(i,t?n(e.firstLine(),0):e.clipPos(n(e.lastLine()))),(t?o.findNext():o.findPrevious())?e.setSelection(o.from(),o.to()):r.word&&e.setSelection(r.from,r.to))}}t.selectScope=function(e){l(e)||e.execCommand("selectAll")},t.selectBetweenBrackets=function(t){if(!l(t))return e.Pass},t.goToBracket=function(t){t.extendSelectionsBy(function(r){var i=t.scanForBracket(r.head,1,u(t.getTokenTypeAt(r.head)));if(i&&0!=e.cmpPos(i.pos,r.head))return i.pos;var o=t.scanForBracket(r.head,-1,u(t.getTokenTypeAt(n(r.head.line,r.head.ch+1))));return o&&n(o.pos.line,o.pos.ch+1)||r.head})},t.swapLineUp=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.firstLine()-1,a=[],s=0;s<r.length;s++){var l=r[s],u=l.from().line-1,c=l.to().line;a.push({anchor:n(l.anchor.line-1,l.anchor.ch),head:n(l.head.line-1,l.head.ch)}),0!=l.to().ch||l.empty()||--c,u>o?i.push(u,c):i.length&&(i[i.length-1]=c),o=c}t.operation(function(){for(var e=0;e<i.length;e+=2){var r=i[e],o=i[e+1],s=t.getLine(r);t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),o>t.lastLine()?t.replaceRange("\n"+s,n(t.lastLine()),null,"+swapLine"):t.replaceRange(s+"\n",n(o,0),null,"+swapLine")}t.setSelections(a),t.scrollIntoView()})},t.swapLineDown=function(t){if(t.isReadOnly())return e.Pass;for(var r=t.listSelections(),i=[],o=t.lastLine()+1,a=r.length-1;a>=0;a--){var s=r[a],l=s.to().line+1,u=s.from().line;0!=s.to().ch||s.empty()||l--,l<o?i.push(l,u):i.length&&(i[i.length-1]=u),o=u}t.operation(function(){for(var e=i.length-2;e>=0;e-=2){var r=i[e],o=i[e+1],a=t.getLine(r);r==t.lastLine()?t.replaceRange("",n(r-1),n(r),"+swapLine"):t.replaceRange("",n(r,0),n(r+1,0),"+swapLine"),t.replaceRange(a+"\n",n(o,0),null,"+swapLine")}t.scrollIntoView()})},t.toggleCommentIndented=function(e){e.toggleComment({indent:!0})},t.joinLines=function(e){for(var t=e.listSelections(),r=[],i=0;i<t.length;i++){for(var o=t[i],a=o.from(),s=a.line,l=o.to().line;i<t.length-1&&t[i+1].from().line==l;)l=t[++i].to().line;r.push({start:s,end:l,anchor:!o.empty()&&a})}e.operation(function(){for(var t=0,i=[],o=0;o<r.length;o++){for(var a,s=r[o],l=s.anchor&&n(s.anchor.line-t,s.anchor.ch),u=s.start;u<=s.end;u++){var c=u-t;u==s.end&&(a=n(c,e.getLine(c).length+1)),c<e.lastLine()&&(e.replaceRange(" ",n(c),n(c+1,/^\s*/.exec(e.getLine(c+1))[0].length)),++t)}i.push({anchor:l||a,head:a})}e.setSelections(i,0)})},t.duplicateLine=function(e){e.operation(function(){for(var t=e.listSelections().length,r=0;r<t;r++){var i=e.listSelections()[r];i.empty()?e.replaceRange(e.getLine(i.head.line)+"\n",n(i.head.line,0)):e.replaceRange(e.getRange(i.from(),i.to()),i.from())}e.scrollIntoView()})},t.sortLines=function(e){c(e,!0,1)},t.reverseSortLines=function(e){c(e,!0,-1)},t.sortLinesInsensitive=function(e){c(e,!1,1)},t.reverseSortLinesInsensitive=function(e){c(e,!1,-1)},t.nextBookmark=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){var n=t.shift(),r=n.find();if(r)return t.push(n),e.setSelection(r.from,r.to)}},t.prevBookmark=function(e){var t=e.state.sublimeBookmarks;if(t)for(;t.length;){t.unshift(t.pop());var n=t[t.length-1].find();if(n)return e.setSelection(n.from,n.to);t.pop()}},t.toggleBookmark=function(e){for(var t=e.listSelections(),n=e.state.sublimeBookmarks||(e.state.sublimeBookmarks=[]),r=0;r<t.length;r++){for(var i=t[r].from(),o=t[r].to(),a=t[r].empty()?e.findMarksAt(i):e.findMarks(i,o),s=0;s<a.length;s++)if(a[s].sublimeBookmark){a[s].clear();for(var l=0;l<n.length;l++)n[l]==a[s]&&n.splice(l--,1);break}s==a.length&&n.push(e.markText(i,o,{sublimeBookmark:!0,clearWhenEmpty:!1}))}},t.clearBookmarks=function(e){var t=e.state.sublimeBookmarks;if(t)for(var n=0;n<t.length;n++)t[n].clear();t.length=0},t.selectBookmarks=function(e){var t=e.state.sublimeBookmarks,n=[];if(t)for(var r=0;r<t.length;r++){var i=t[r].find();i?n.push({anchor:i.from,head:i.to}):t.splice(r--,0)}n.length&&e.setSelections(n,0)},t.smartBackspace=function(t){if(t.somethingSelected())return e.Pass;t.operation(function(){for(var r=t.listSelections(),i=t.getOption("indentUnit"),o=r.length-1;o>=0;o--){var a=r[o].head,s=t.getRange({line:a.line,ch:0},a),l=e.countColumn(s,null,t.getOption("tabSize")),u=t.findPosH(a,-1,"char",!1);if(s&&!/\S/.test(s)&&l%i==0){var c=new n(a.line,e.findColumn(s,l-i,i));c.ch!=a.ch&&(u=c)}t.replaceRange("",u,a,"+delete")}})},t.delLineRight=function(e){e.operation(function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange("",t[r].anchor,n(t[r].to().line),"+delete");e.scrollIntoView()})},t.upcaseAtCursor=function(e){d(e,function(e){return e.toUpperCase()})},t.downcaseAtCursor=function(e){d(e,function(e){return e.toLowerCase()})},t.setSublimeMark=function(e){e.state.sublimeMark&&e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor())},t.selectToSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&e.setSelection(e.getCursor(),t)},t.deleteToSublimeMark=function(t){var n=t.state.sublimeMark&&t.state.sublimeMark.find();if(n){var r=t.getCursor(),i=n;if(e.cmpPos(r,i)>0){var o=i;i=r,r=o}t.state.sublimeKilled=t.getRange(r,i),t.replaceRange("",r,i)}},t.swapWithSublimeMark=function(e){var t=e.state.sublimeMark&&e.state.sublimeMark.find();t&&(e.state.sublimeMark.clear(),e.state.sublimeMark=e.setBookmark(e.getCursor()),e.setCursor(t))},t.sublimeYank=function(e){null!=e.state.sublimeKilled&&e.replaceSelection(e.state.sublimeKilled,null,"paste")},t.showInCenter=function(e){var t=e.cursorCoords(null,"local");e.scrollTo(null,(t.top+t.bottom)/2-e.getScrollInfo().clientHeight/2)},t.findUnder=function(e){p(e,!0)},t.findUnderPrevious=function(e){p(e,!1)},t.findAllUnder=function(e){var t=f(e);if(t){for(var n=e.getSearchCursor(t.query),r=[],i=-1;n.findNext();)r.push({anchor:n.from(),head:n.to()}),n.from().line<=t.from.line&&n.from().ch<=t.from.ch&&i++;e.setSelections(r,i)}};var h=e.keyMap;h.macSublime={"Cmd-Left":"goLineStartSmart","Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Ctrl-Alt-Up":"scrollLineUp","Ctrl-Alt-Down":"scrollLineDown","Cmd-L":"selectLine","Shift-Cmd-L":"splitSelectionByLine",Esc:"singleSelectionTop","Cmd-Enter":"insertLineAfter","Shift-Cmd-Enter":"insertLineBefore","Cmd-D":"selectNextOccurrence","Shift-Cmd-Space":"selectScope","Shift-Cmd-M":"selectBetweenBrackets","Cmd-M":"goToBracket","Cmd-Ctrl-Up":"swapLineUp","Cmd-Ctrl-Down":"swapLineDown","Cmd-/":"toggleCommentIndented","Cmd-J":"joinLines","Shift-Cmd-D":"duplicateLine",F5:"sortLines","Shift-F5":"reverseSortLines","Cmd-F5":"sortLinesInsensitive","Shift-Cmd-F5":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Cmd-F2":"toggleBookmark","Shift-Cmd-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Cmd-K Cmd-D":"skipAndSelectNextOccurrence","Cmd-K Cmd-K":"delLineRight","Cmd-K Cmd-U":"upcaseAtCursor","Cmd-K Cmd-L":"downcaseAtCursor","Cmd-K Cmd-Space":"setSublimeMark","Cmd-K Cmd-A":"selectToSublimeMark","Cmd-K Cmd-W":"deleteToSublimeMark","Cmd-K Cmd-X":"swapWithSublimeMark","Cmd-K Cmd-Y":"sublimeYank","Cmd-K Cmd-C":"showInCenter","Cmd-K Cmd-G":"clearBookmarks","Cmd-K Cmd-Backspace":"delLineLeft","Cmd-K Cmd-1":"foldAll","Cmd-K Cmd-0":"unfoldAll","Cmd-K Cmd-J":"unfoldAll","Ctrl-Shift-Up":"addCursorToPrevLine","Ctrl-Shift-Down":"addCursorToNextLine","Cmd-F3":"findUnder","Shift-Cmd-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Cmd-[":"fold","Shift-Cmd-]":"unfold","Cmd-I":"findIncremental","Shift-Cmd-I":"findIncrementalReverse","Cmd-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"macDefault"},e.normalizeKeyMap(h.macSublime),h.pcSublime={"Shift-Tab":"indentLess","Shift-Ctrl-K":"deleteLine","Alt-Q":"wrapLines","Ctrl-T":"transposeChars","Alt-Left":"goSubwordLeft","Alt-Right":"goSubwordRight","Ctrl-Up":"scrollLineUp","Ctrl-Down":"scrollLineDown","Ctrl-L":"selectLine","Shift-Ctrl-L":"splitSelectionByLine",Esc:"singleSelectionTop","Ctrl-Enter":"insertLineAfter","Shift-Ctrl-Enter":"insertLineBefore","Ctrl-D":"selectNextOccurrence","Shift-Ctrl-Space":"selectScope","Shift-Ctrl-M":"selectBetweenBrackets","Ctrl-M":"goToBracket","Shift-Ctrl-Up":"swapLineUp","Shift-Ctrl-Down":"swapLineDown","Ctrl-/":"toggleCommentIndented","Ctrl-J":"joinLines","Shift-Ctrl-D":"duplicateLine",F9:"sortLines","Shift-F9":"reverseSortLines","Ctrl-F9":"sortLinesInsensitive","Shift-Ctrl-F9":"reverseSortLinesInsensitive",F2:"nextBookmark","Shift-F2":"prevBookmark","Ctrl-F2":"toggleBookmark","Shift-Ctrl-F2":"clearBookmarks","Alt-F2":"selectBookmarks",Backspace:"smartBackspace","Ctrl-K Ctrl-D":"skipAndSelectNextOccurrence","Ctrl-K Ctrl-K":"delLineRight","Ctrl-K Ctrl-U":"upcaseAtCursor","Ctrl-K Ctrl-L":"downcaseAtCursor","Ctrl-K Ctrl-Space":"setSublimeMark","Ctrl-K Ctrl-A":"selectToSublimeMark","Ctrl-K Ctrl-W":"deleteToSublimeMark","Ctrl-K Ctrl-X":"swapWithSublimeMark","Ctrl-K Ctrl-Y":"sublimeYank","Ctrl-K Ctrl-C":"showInCenter","Ctrl-K Ctrl-G":"clearBookmarks","Ctrl-K Ctrl-Backspace":"delLineLeft","Ctrl-K Ctrl-1":"foldAll","Ctrl-K Ctrl-0":"unfoldAll","Ctrl-K Ctrl-J":"unfoldAll","Ctrl-Alt-Up":"addCursorToPrevLine","Ctrl-Alt-Down":"addCursorToNextLine","Ctrl-F3":"findUnder","Shift-Ctrl-F3":"findUnderPrevious","Alt-F3":"findAllUnder","Shift-Ctrl-[":"fold","Shift-Ctrl-]":"unfold","Ctrl-I":"findIncremental","Shift-Ctrl-I":"findIncrementalReverse","Ctrl-H":"replace",F3:"findNext","Shift-F3":"findPrev",fallthrough:"pcDefault"},e.normalizeKeyMap(h.pcSublime),h.sublime=h.default==h.macDefault?h.macSublime:h.pcSublime},"object"==typeof e&&"object"==typeof t?n(Qu(),ic(),Zu()):"function"==typeof define&&define.amd?define(["../lib/codemirror","../addon/search/searchcursor","../addon/edit/matchbrackets"],n):n(CodeMirror)}),lc="graphiql",uc="sublime",cc={[Yu?"Cmd-F":"Ctrl-F"]:"findPersistent","Cmd-G":"findPersistent","Ctrl-G":"findPersistent","Ctrl-Left":"goSubwordLeft","Ctrl-Right":"goSubwordRight","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight"};async function dc(e,t){const n=await ga(()=>Promise.resolve().then(()=>c(Qu())).then(e=>"function"==typeof e?e:e.default),void 0,import.meta.url);return await Promise.all(!1===(null==t?void 0:t.useCommonAddons)?e:[ga(()=>Promise.resolve().then(()=>c(Xu())),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>c(Zu())),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>c(Ju())),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>c(ec())),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>c(nc())),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>c(rc())),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>c(ic())),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>c(ac())),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>c(oc())),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>c(sc())),void 0,import.meta.url),...e]),n}var fc=s((e,t)=>{t.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}}),pc=s((e,t)=>{var n=fc(),r={"text/plain":"Text","text/html":"Url",default:"Text"};t.exports=function(e,t){var i,o,a,s,l,u=!1;t||(t={}),t.debug;try{if(o=n(),a=document.createRange(),s=document.getSelection(),(l=document.createElement("span")).textContent=e,l.ariaHidden="true",l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",function(n){if(n.stopPropagation(),t.format)if(n.preventDefault(),void 0===n.clipboardData){window.clipboardData.clearData();var i=r[t.format]||r.default;window.clipboardData.setData(i,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e);t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(l),a.selectNodeContents(l),s.addRange(a),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(c){try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(c){i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{s&&("function"==typeof s.removeRange?s.removeRange(a):s.removeAllRanges()),l&&document.body.removeChild(l),o()}return u}}),hc=Vu((e,t)=>({plugins:[],visiblePlugin:null,referencePlugin:void 0,setVisiblePlugin(n){const{plugins:r,onTogglePluginVisibility:i}=t(),o="string"==typeof n,a=n&&r.find(e=>(o?e.title:e)===n)||null;e(({visiblePlugin:e})=>a===e?{visiblePlugin:e}:(null==i||i(a),{visiblePlugin:a}))}})),mc=e=>{const t=(0,$u.c)(8),{onTogglePluginVisibility:n,children:r,visiblePlugin:i,plugins:o,referencePlugin:a}=e;let s;t[0]!==o?(s=void 0===o?[]:o,t[0]=o,t[1]=s):s=t[1];const l=s;let u,c;return t[2]!==n||t[3]!==l||t[4]!==a||t[5]!==i?(u=()=>{const e=new Set;for(const{title:t}of l){if("string"!=typeof t||!t)throw new Error("All GraphiQL plugins must have a unique title");if(e.has(t))throw new Error(`All GraphiQL plugins must have a unique title, found two plugins with the title '${t}'`);e.add(t)}hc.setState({plugins:l,onTogglePluginVisibility:n,referencePlugin:a}),hc.getState().setVisiblePlugin(null!=i?i:null)},c=[l,n,a,i],t[2]=n,t[3]=l,t[4]=a,t[5]=i,t[6]=u,t[7]=c):(u=t[6],c=t[7]),(0,Fu.useEffect)(u,c),r},gc=zu(hc);ha();var vc=Vu((e,t)=>({inputValueDeprecation:null,introspectionQueryName:null,schemaDescription:null,fetcher:null,onSchemaChange:void 0,fetchError:null,isFetching:!1,schema:null,validationErrors:[],schemaReference:null,setSchemaReference(t){e({schemaReference:t})},requestCounter:0,shouldIntrospect:!0,async introspect(){const{requestCounter:n,fetcher:r,onSchemaChange:i,shouldIntrospect:o,headerEditor:a,...s}=t();if(!o)return;const l=n+1;e({requestCounter:l});try{const n=function(e){let t=null,n=!0;try{e&&(t=JSON.parse(e))}catch(r){n=!1}return{headers:t,isValidJSON:n}}(null==a?void 0:a.getValue());if(!n.isValidJSON)return void e({fetchError:"Introspection failed as headers are invalid."});const o=n.headers?{headers:n.headers}:{},{introspectionQuery:u,introspectionQueryName:c,introspectionQuerySansSubscriptions:d}=function({inputValueDeprecation:e,introspectionQueryName:t,schemaDescription:n}){const r=function(e){const t={descriptions:!0,specifiedByUrl:!1,directiveIsRepeatable:!1,schemaDescription:!1,inputValueDeprecation:!1,oneOf:!1,...e},n=t.descriptions?"description":"",r=t.specifiedByUrl?"specifiedByURL":"";function i(e){return t.inputValueDeprecation?e:""}const o=t.oneOf?"isOneOf":"";return`\n query IntrospectionQuery {\n __schema {\n ${t.schemaDescription?n:""}\n queryType { name kind }\n mutationType { name kind }\n subscriptionType { name kind }\n types {\n ...FullType\n }\n directives {\n name\n ${n}\n ${t.directiveIsRepeatable?"isRepeatable":""}\n locations\n args${i("(includeDeprecated: true)")} {\n ...InputValue\n }\n }\n }\n }\n\n fragment FullType on __Type {\n kind\n name\n ${n}\n ${r}\n ${o}\n fields(includeDeprecated: true) {\n name\n ${n}\n args${i("(includeDeprecated: true)")} {\n ...InputValue\n }\n type {\n ...TypeRef\n }\n isDeprecated\n deprecationReason\n }\n inputFields${i("(includeDeprecated: true)")} {\n ...InputValue\n }\n interfaces {\n ...TypeRef\n }\n enumValues(includeDeprecated: true) {\n name\n ${n}\n isDeprecated\n deprecationReason\n }\n possibleTypes {\n ...TypeRef\n }\n }\n\n fragment InputValue on __InputValue {\n name\n ${n}\n type { ...TypeRef }\n defaultValue\n ${i("isDeprecated")}\n ${i("deprecationReason")}\n }\n\n fragment TypeRef on __Type {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n ofType {\n kind\n name\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n `}({inputValueDeprecation:e,schemaDescription:n});return{introspectionQueryName:t,introspectionQuery:"IntrospectionQuery"===t?r:r.replace("query IntrospectionQuery",`query ${t}`),introspectionQuerySansSubscriptions:r.replace("subscriptionType { name }","")}}(s),f=M(r({query:u,operationName:c},o));if(!O(f))return void e({fetchError:"Fetcher did not return a Promise for introspection."});e({isFetching:!0,fetchError:null});let p,h=await f;if("object"!=typeof h||null===h||!("data"in h)){const e=M(r({query:d,operationName:c},o));if(!O(e))throw new Error("Fetcher did not return a Promise for introspection.");h=await e}if(e({isFetching:!1}),(null==h?void 0:h.data)&&"__schema"in h.data?p=h.data:e({fetchError:"string"==typeof h?h:wa(h)}),l!==t().requestCounter||!p)return;const m=function(e){R(e)&&R(e.__schema)||F(!1,`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${Ue(e)}.`);const t=e.__schema,n=ut(t.types,e=>e.name,e=>function(e){if(null!=e&&null!=e.name&&null!=e.kind)switch(e.kind){case dr.SCALAR:return new qt({name:(r=e).name,description:r.description,specifiedByURL:r.specifiedByURL});case dr.OBJECT:return new Gt({name:(n=e).name,description:n.description,interfaces:()=>d(n),fields:()=>f(n)});case dr.INTERFACE:return new Kt({name:(t=e).name,description:t.description,interfaces:()=>d(t),fields:()=>f(t)});case dr.UNION:return function(e){if(!e.possibleTypes){const t=Ue(e);throw new Error(`Introspection result missing possibleTypes: ${t}.`)}return new Yt({name:e.name,description:e.description,types:()=>e.possibleTypes.map(u)})}(e);case dr.ENUM:return function(e){if(!e.enumValues){const t=Ue(e);throw new Error(`Introspection result missing enumValues: ${t}.`)}return new Qt({name:e.name,description:e.description,values:ut(e.enumValues,e=>e.name,e=>({description:e.description,deprecationReason:e.deprecationReason}))})}(e);case dr.INPUT_OBJECT:return function(e){if(!e.inputFields){const t=Ue(e);throw new Error(`Introspection result missing inputFields: ${t}.`)}return new Xt({name:e.name,description:e.description,fields:()=>h(e.inputFields),isOneOf:e.isOneOf})}(e)}var t,n,r;const i=Ue(e);throw new Error(`Invalid or incomplete introspection result. Ensure that a full introspection query is used in order to build a client schema: ${i}.`)}(e));for(const g of[...$n,...gr])n[g.name]&&(n[g.name]=g);const r=t.queryType?u(t.queryType):null,i=t.mutationType?u(t.mutationType):null,o=t.subscriptionType?u(t.subscriptionType):null,a=t.directives?t.directives.map(function(e){if(!e.args){const t=Ue(e);throw new Error(`Introspection result missing directive args: ${t}.`)}if(!e.locations){const t=Ue(e);throw new Error(`Introspection result missing directive locations: ${t}.`)}return new Wn({name:e.name,description:e.description,isRepeatable:e.isRepeatable,locations:e.locations.slice(),args:h(e.args)})}):[];return new br({description:t.description,query:r,mutation:i,subscription:o,types:Object.values(n),directives:a,assumeValid:void 0});function s(e){if(e.kind===dr.LIST){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");return new Ht(s(t))}if(e.kind===dr.NON_NULL){const t=e.ofType;if(!t)throw new Error("Decorated type deeper than introspection query.");return new Wt(function(e){if(!mn(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL nullable type.`);return e}(s(t)))}return l(e)}function l(e){const t=e.name;if(!t)throw new Error(`Unknown type reference: ${Ue(e)}.`);const r=n[t];if(!r)throw new Error(`Invalid or incomplete schema, unknown type: ${t}. Ensure that a full introspection query is used in order to build a client schema.`);return r}function u(e){return function(e){if(!tn(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL Object type.`);return e}(l(e))}function c(e){return function(e){if(!nn(e))throw new Error(`Expected ${Ue(e)} to be a GraphQL Interface type.`);return e}(l(e))}function d(e){if(null===e.interfaces&&e.kind===dr.INTERFACE)return[];if(!e.interfaces){const t=Ue(e);throw new Error(`Introspection result missing interfaces: ${t}.`)}return e.interfaces.map(c)}function f(e){if(!e.fields)throw new Error(`Introspection result missing fields: ${Ue(e)}.`);return ut(e.fields,e=>e.name,p)}function p(e){const t=s(e.type);if(!cn(t)){const e=Ue(t);throw new Error(`Introspection must provide output type for fields, but received: ${e}.`)}if(!e.args){const t=Ue(e);throw new Error(`Introspection result missing field args: ${t}.`)}return{description:e.description,deprecationReason:e.deprecationReason,type:t,args:h(e.args)}}function h(e){return ut(e,e=>e.name,m)}function m(e){const t=s(e.type);if(!un(t)){const e=Ue(t);throw new Error(`Introspection must provide input type for arguments, but received: ${e}.`)}const n=null!=e.defaultValue?eo(function(e){const t=new Ke(e,void 0);t.expectToken(ye.SOF);const n=t.parseValueLiteral(!1);return t.expectToken(ye.EOF),n}(e.defaultValue),t):void 0;return{description:e.description,type:t,defaultValue:n,deprecationReason:e.deprecationReason}}}(p);e({schema:m}),null==i||i(m)}catch(tp){if(l!==t().requestCounter)return;e({fetchError:ba(tp),isFetching:!1})}}})),yc=e=>{const t=(0,$u.c)(14),{fetcher:n,onSchemaChange:r,dangerouslyAssumeSchemaIsValid:i,children:o,schema:a,inputValueDeprecation:s,introspectionQueryName:l,schemaDescription:u}=e,c=void 0!==i&&i,d=void 0!==s&&s,f=void 0===l?"IntrospectionQuery":l,p=void 0!==u&&u;if(!n)throw new TypeError("The `SchemaContextProvider` component requires a `fetcher` function to be passed as prop.");let h;t[0]===Symbol.for("react.memo_cache_sentinel")?(h={nonNull:!0,caller:yc},t[0]=h):h=t[0];const{headerEditor:m}=Qm(h);let g,v,y,b,w;return t[1]!==m?(g=()=>{m&&vc.setState({headerEditor:m})},v=[m],t[1]=m,t[2]=g,t[3]=v):(g=t[2],v=t[3]),(0,Fu.useEffect)(g,v),t[4]!==c||t[5]!==n||t[6]!==d||t[7]!==f||t[8]!==r||t[9]!==a||t[10]!==p?(y=()=>{const e=xr(a)||null==a?a:void 0,t=!e||c?[]:Sr(e);vc.setState(i=>{const{requestCounter:o}=i;return{fetcher:n,onSchemaChange:r,schema:e,shouldIntrospect:!xr(a)&&null!==a,inputValueDeprecation:d,introspectionQueryName:f,schemaDescription:p,validationErrors:t,requestCounter:o+1}}),vc.getState().introspect()},b=[a,c,r,n,d,f,p],t[4]=c,t[5]=n,t[6]=d,t[7]=f,t[8]=r,t[9]=a,t[10]=p,t[11]=y,t[12]=b):(y=t[11],b=t[12]),(0,Fu.useEffect)(y,b),t[13]===Symbol.for("react.memo_cache_sentinel")?(w=[],t[13]=w):w=t[13],(0,Fu.useEffect)(wc,w),o},bc=zu(vc);function wc(){const e=function(e){e.ctrlKey&&"R"===e.key&&vc.getState().introspect()};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}}var xc={};function Ec(e,t){"string"!=typeof t&&(t=Ec.defaultChars);const n=function(e){let t=xc[e];if(t)return t;t=xc[e]=[];for(let n=0;n<128;n++){const e=String.fromCharCode(n);t.push(e)}for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2)}return t}(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(e){let t="";for(let r=0,i=e.length;r<i;r+=3){const o=parseInt(e.slice(r+1,r+3),16);if(o<128)t+=n[o];else{if(192==(224&o)&&r+3<i){const n=parseInt(e.slice(r+4,r+6),16);if(128==(192&n)){const e=o<<6&1984|63&n;t+=e<128?"<22><>":String.fromCharCode(e),r+=3;continue}}if(224==(240&o)&&r+6<i){const n=parseInt(e.slice(r+4,r+6),16),i=parseInt(e.slice(r+7,r+9),16);if(128==(192&n)&&128==(192&i)){const e=o<<12&61440|n<<6&4032|63&i;t+=e<2048||e>=55296&&e<=57343?"<22><><EFBFBD>":String.fromCharCode(e),r+=6;continue}}if(240==(248&o)&&r+9<i){const n=parseInt(e.slice(r+4,r+6),16),i=parseInt(e.slice(r+7,r+9),16),a=parseInt(e.slice(r+10,r+12),16);if(128==(192&n)&&128==(192&i)&&128==(192&a)){let e=o<<18&1835008|n<<12&258048|i<<6&4032|63&a;e<65536||e>1114111?t+="<22><><EFBFBD><EFBFBD>":(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(1023&e))),r+=9;continue}}t+="<22>"}}return t})}Ec.defaultChars=";/?:@&=+$,#",Ec.componentChars="";var kc={};function Cc(e,t,n){"string"!=typeof t&&(n=t,t=Cc.defaultChars),void 0===n&&(n=!0);const r=function(e){let t=kc[e];if(t)return t;t=kc[e]=[];for(let n=0;n<128;n++){const e=String.fromCharCode(n);/^[0-9a-z]$/i.test(e)?t.push(e):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}(t);let i="";for(let o=0,a=e.length;o<a;o++){const t=e.charCodeAt(o);if(n&&37===t&&o+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3)))i+=e.slice(o,o+3),o+=2;else if(t<128)i+=r[t];else if(t>=55296&&t<=57343){if(t>=55296&&t<=56319&&o+1<a){const t=e.charCodeAt(o+1);if(t>=56320&&t<=57343){i+=encodeURIComponent(e[o]+e[o+1]),o++;continue}}i+="%EF%BF%BD"}else i+=encodeURIComponent(e[o])}return i}function Sc(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function Tc(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}Cc.defaultChars=";/?:@&=+$,-_.!~*'()#",Cc.componentChars="-_.!~*'()";var _c=/^([a-z0-9.+-]+:)/i,Nc=/:[0-9]*$/,Ac=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Dc=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),Oc=["'"].concat(Dc),Lc=["%","/","?",";","#"].concat(Oc),Ic=["/","?","#"],Mc=/^[+a-z0-9A-Z_-]{0,63}$/,Fc=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Pc={javascript:!0,"javascript:":!0},Rc={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function jc(e,t){if(e&&e instanceof Tc)return e;const n=new Tc;return n.parse(e,t),n}Tc.prototype.parse=function(e,t){let n,r,i,o=e;if(o=o.trim(),!t&&1===e.split("#").length){const e=Ac.exec(o);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let a=_c.exec(o);if(a&&(a=a[0],n=a.toLowerCase(),this.protocol=a,o=o.substr(a.length)),(t||a||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i="//"===o.substr(0,2),!i||a&&Pc[a]||(o=o.substr(2),this.slashes=!0)),!Pc[a]&&(i||a&&!Rc[a])){let e,t,n=-1;for(let s=0;s<Ic.length;s++)r=o.indexOf(Ic[s]),-1!==r&&(-1===n||r<n)&&(n=r);t=-1===n?o.lastIndexOf("@"):o.lastIndexOf("@",n),-1!==t&&(e=o.slice(0,t),o=o.slice(t+1),this.auth=e),n=-1;for(let s=0;s<Lc.length;s++)r=o.indexOf(Lc[s]),-1!==r&&(-1===n||r<n)&&(n=r);-1===n&&(n=o.length),":"===o[n-1]&&n--;const i=o.slice(0,n);o=o.slice(n),this.parseHost(i),this.hostname=this.hostname||"";const a="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!a){const e=this.hostname.split(/\./);for(let t=0,n=e.length;t<n;t++){const n=e[t];if(n&&!n.match(Mc)){let r="";for(let e=0,t=n.length;e<t;e++)n.charCodeAt(e)>127?r+="x":r+=n[e];if(!r.match(Mc)){const r=e.slice(0,t),i=e.slice(t+1),a=n.match(Fc);a&&(r.push(a[1]),i.unshift(a[2])),i.length&&(o=i.join(".")+o),this.hostname=r.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),a&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const s=o.indexOf("#");-1!==s&&(this.hash=o.substr(s),o=o.slice(0,s));const l=o.indexOf("?");return-1!==l&&(this.search=o.substr(l),o=o.slice(0,l)),o&&(this.pathname=o),Rc[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},Tc.prototype.parseHost=function(e){let t=Nc.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var Vc,Bc,zc,$c,Uc,Hc=l({decode:()=>Ec,encode:()=>Cc,format:()=>Sc,parse:()=>jc}),Wc=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,qc=/[\0-\x1F\x7F-\x9F]/,Gc=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,Kc=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,Yc=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,Qc=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Xc=l({Any:()=>Wc,Cc:()=>qc,Cf:()=>Gc,P:()=>Kc,S:()=>Yc,Z:()=>Qc}),Zc=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎸᏄϨrrowƀ;BDᅐᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ\0ᚕ᚛ᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsuᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0g;耀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檈Ā;qim;拧pf;쀀𝕘Āci⅃r;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❶❼➅➇ròࢨorneòarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;efभ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛òðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬Āet;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ëĀ;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓pĀ;sᆴ㑵;쀀⊔uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;h㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊;쀀⫋setneqĀ;q㦏㦒쀀⊋;쀀⫌Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Jc=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0))),ed=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),td=null!==(Vc=String.fromCodePoint)&&void 0!==Vc?Vc:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t};function nd(e){return e>=Bc.ZERO&&e<=Bc.NINE}function rd(e){return e>=Bc.UPPER_A&&e<=Bc.UPPER_F||e>=Bc.LOWER_A&&e<=Bc.LOWER_F}function id(e){return e===Bc.EQUALS||function(e){return e>=Bc.UPPER_A&&e<=Bc.UPPER_Z||e>=Bc.LOWER_A&&e<=Bc.LOWER_Z||nd(e)}(e)}!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(Bc||(Bc={})),function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(zc||(zc={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}($c||($c={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(Uc||(Uc={}));var od=class{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=$c.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Uc.Strict}startEntity(e){this.decodeMode=e,this.state=$c.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case $c.EntityStart:return e.charCodeAt(t)===Bc.NUM?(this.state=$c.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=$c.NamedEntity,this.stateNamedEntity(e,t));case $c.NumericStart:return this.stateNumericStart(e,t);case $c.NumericDecimal:return this.stateNumericDecimal(e,t);case $c.NumericHex:return this.stateNumericHex(e,t);case $c.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===Bc.LOWER_X?(this.state=$c.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=$c.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){const i=n-t;this.result=this.result*Math.pow(r,i)+parseInt(e.substr(t,i),r),this.consumed+=i}}stateNumericHex(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(!nd(r)&&!rd(r))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(r,3);t+=1}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(!nd(r))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2);t+=1}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return null===(n=this.errors)||void 0===n||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===Bc.SEMI)this.consumed+=1;else if(this.decodeMode===Uc.Strict)return 0;return this.emitCodePoint(function(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=ed.get(e))&&void 0!==t?t:e}(this.result),this.consumed),this.errors&&(e!==Bc.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:n}=this;let r=n[this.treeIndex],i=(r&zc.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const o=e.charCodeAt(t);if(this.treeIndex=sd(n,r,this.treeIndex+Math.max(1,i),o),this.treeIndex<0)return 0===this.result||this.decodeMode===Uc.Attribute&&(0===i||id(o))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],i=(r&zc.VALUE_LENGTH)>>14,0!==i){if(o===Bc.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Uc.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,r=(n[t]&zc.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~zc.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case $c.NamedEntity:return 0===this.result||this.decodeMode===Uc.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case $c.NumericDecimal:return this.emitNumericEntity(0,2);case $c.NumericHex:return this.emitNumericEntity(0,3);case $c.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case $c.EntityStart:return 0}}};function ad(e){let t="";const n=new od(e,e=>t+=td(e));return function(e,r){let i=0,o=0;for(;(o=e.indexOf("&",o))>=0;){t+=e.slice(i,o),n.startEntity(r);const a=n.write(e,o+1);if(a<0){i=o+n.end();break}i=o+a,o=0===a?i+1:i}const a=t+e.slice(i);return t="",a}}function sd(e,t,n,r){const i=(t&zc.BRANCH_LENGTH)>>7,o=t&zc.JUMP_TABLE;if(0===i)return 0!==o&&r===o?n:-1;if(o){const t=r-o;return t<0||t>=i?-1:e[n+t]-1}let a=n,s=a+i-1;for(;a<=s;){const t=a+s>>>1,n=e[t];if(n<r)a=t+1;else{if(!(n>r))return e[t+i];s=t-1}}return-1}var ld=ad(Zc);function ud(e,t=Uc.Legacy){return ld(e,t)}ad(Jc);var cd=l({arrayReplaceAt:()=>md,assign:()=>hd,escapeHtml:()=>_d,escapeRE:()=>Ad,fromCodePoint:()=>vd,has:()=>pd,isMdAsciiPunct:()=>Id,isPunctChar:()=>Ld,isSpace:()=>Dd,isString:()=>dd,isValidEntityCode:()=>gd,isWhiteSpace:()=>Od,lib:()=>Fd,normalizeReference:()=>Md,unescapeAll:()=>Ed,unescapeMd:()=>xd});function dd(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)}var fd=Object.prototype.hasOwnProperty;function pd(e,t){return fd.call(e,t)}function hd(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e}function md(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function gd(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||!(65535&~e&&65534!=(65535&e))||e>=0&&e<=8||11===e||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function vd(e){if(e>65535){const t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var yd=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,bd=new RegExp(yd.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),wd=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function xd(e){return e.indexOf("\\")<0?e:e.replace(yd,"$1")}function Ed(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(bd,function(e,t,n){return t||function(e,t){if(35===t.charCodeAt(0)&&wd.test(t)){const n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return gd(n)?vd(n):e}const n=ud(e);return n!==e?n:e}(e,n)})}var kd=/[&<>"]/,Cd=/[&<>"]/g,Sd={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function Td(e){return Sd[e]}function _d(e){return kd.test(e)?e.replace(Cd,Td):e}var Nd=/[.?*+^$[\]\\(){}|-]/g;function Ad(e){return e.replace(Nd,"\\$&")}function Dd(e){switch(e){case 9:case 32:return!0}return!1}function Od(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Ld(e){return Kc.test(e)||Yc.test(e)}function Id(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Md(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}var Fd={mdurl:Hc,ucmicro:Xc};function Pd(e,t,n){let r,i,o,a;const s=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos<s;){if(o=e.src.charCodeAt(e.pos),93===o&&(r--,0===r)){i=!0;break}if(a=e.pos,e.md.inline.skipToken(e),91===o)if(a===e.pos-1)r++;else if(n)return e.pos=l,-1}let u=-1;return i&&(u=e.pos),e.pos=l,u}function Rd(e,t,n){let r,i=t;const o={ok:!1,pos:0,str:""};if(60===e.charCodeAt(i)){for(i++;i<n;){if(r=e.charCodeAt(i),10===r)return o;if(60===r)return o;if(62===r)return o.pos=i+1,o.str=Ed(e.slice(t+1,i)),o.ok=!0,o;92===r&&i+1<n?i+=2:i++}return o}let a=0;for(;i<n&&(r=e.charCodeAt(i),32!==r)&&!(r<32||127===r);)if(92===r&&i+1<n){if(32===e.charCodeAt(i+1))break;i+=2}else{if(40===r&&(a++,a>32))return o;if(41===r){if(0===a)break;a--}i++}return t===i||0!==a||(o.str=Ed(e.slice(t,i)),o.pos=i,o.ok=!0),o}function jd(e,t,n,r){let i,o=t;const a={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)a.str=r.str,a.marker=r.marker;else{if(o>=n)return a;let r=e.charCodeAt(o);if(34!==r&&39!==r&&40!==r)return a;t++,o++,40===r&&(r=41),a.marker=r}for(;o<n;){if(i=e.charCodeAt(o),i===a.marker)return a.pos=o+1,a.str+=Ed(e.slice(t,o)),a.ok=!0,a;if(40===i&&41===a.marker)return a;92===i&&o+1<n&&o++,o++}return a.can_continue=!0,a.str+=Ed(e.slice(t,o)),a}var Vd=l({parseLinkDestination:()=>Rd,parseLinkLabel:()=>Pd,parseLinkTitle:()=>jd}),Bd={};function zd(){this.rules=hd({},Bd)}function $d(){this.__rules__=[],this.__cache__=null}function Ud(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}function Hd(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}Bd.code_inline=function(e,t,n,r,i){const o=e[t];return"<code"+i.renderAttrs(o)+">"+_d(o.content)+"</code>"},Bd.code_block=function(e,t,n,r,i){const o=e[t];return"<pre"+i.renderAttrs(o)+"><code>"+_d(e[t].content)+"</code></pre>\n"},Bd.fence=function(e,t,n,r,i){const o=e[t],a=o.info?Ed(o.info).trim():"";let s,l="",u="";if(a){const e=a.split(/(\s+)/g);l=e[0],u=e.slice(2).join("")}if(s=n.highlight&&n.highlight(o.content,l,u)||_d(o.content),0===s.indexOf("<pre"))return s+"\n";if(a){const e=o.attrIndex("class"),t=o.attrs?o.attrs.slice():[];e<0?t.push(["class",n.langPrefix+l]):(t[e]=t[e].slice(),t[e][1]+=" "+n.langPrefix+l);const r={attrs:t};return`<pre><code${i.renderAttrs(r)}>${s}</code></pre>\n`}return`<pre><code${i.renderAttrs(o)}>${s}</code></pre>\n`},Bd.image=function(e,t,n,r,i){const o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)},Bd.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},Bd.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},Bd.text=function(e,t){return _d(e[t].content)},Bd.html_block=function(e,t){return e[t].content},Bd.html_inline=function(e,t){return e[t].content},zd.prototype.renderAttrs=function(e){let t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+_d(e.attrs[t][0])+'="'+_d(e.attrs[t][1])+'"';return r},zd.prototype.renderToken=function(e,t,n){const r=e[t];let i="";if(r.hidden)return"";r.block&&-1!==r.nesting&&t&&e[t-1].hidden&&(i+="\n"),i+=(-1===r.nesting?"</":"<")+r.tag,i+=this.renderAttrs(r),0===r.nesting&&n.xhtmlOut&&(i+=" /");let o=!1;if(r.block&&(o=!0,1===r.nesting&&t+1<e.length)){const n=e[t+1];("inline"===n.type||n.hidden||-1===n.nesting&&n.tag===r.tag)&&(o=!1)}return i+=o?">\n":">",i},zd.prototype.renderInline=function(e,t,n){let r="";const i=this.rules;for(let o=0,a=e.length;o<a;o++){const a=e[o].type;void 0!==i[a]?r+=i[a](e,o,t,n,this):r+=this.renderToken(e,o,t)}return r},zd.prototype.renderInlineAsText=function(e,t,n){let r="";for(let i=0,o=e.length;i<o;i++)switch(e[i].type){case"text":case"html_inline":case"html_block":r+=e[i].content;break;case"image":r+=this.renderInlineAsText(e[i].children,t,n);break;case"softbreak":case"hardbreak":r+="\n"}return r},zd.prototype.render=function(e,t,n){let r="";const i=this.rules;for(let o=0,a=e.length;o<a;o++){const a=e[o].type;"inline"===a?r+=this.renderInline(e[o].children,t,n):void 0!==i[a]?r+=i[a](e,o,t,n,this):r+=this.renderToken(e,o,t,n)}return r},$d.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},$d.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(e){t.indexOf(e)<0&&t.push(e)})}),e.__cache__={},t.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))})})},$d.prototype.at=function(e,t,n){const r=this.__find__(e),i=n||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null},$d.prototype.before=function(e,t,n,r){const i=this.__find__(e),o=r||{};if(-1===i)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},$d.prototype.after=function(e,t,n,r){const i=this.__find__(e),o=r||{};if(-1===i)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},$d.prototype.push=function(e,t,n){const r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},$d.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(e){const r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)},this),this.__cache__=null,n},$d.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(e){e.enabled=!1}),this.enable(e,t)},$d.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(e){const r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)},this),this.__cache__=null,n},$d.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},Ud.prototype.attrIndex=function(e){if(!this.attrs)return-1;const t=this.attrs;for(let n=0,r=t.length;n<r;n++)if(t[n][0]===e)return n;return-1},Ud.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},Ud.prototype.attrSet=function(e,t){const n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},Ud.prototype.attrGet=function(e){const t=this.attrIndex(e);let n=null;return t>=0&&(n=this.attrs[t][1]),n},Ud.prototype.attrJoin=function(e,t){const n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},Hd.prototype.Token=Ud;var Wd=/\r\n?|\n/g,qd=/\0/g;function Gd(e){return/^<a[>\s]/i.test(e)}function Kd(e){return/^<\/a\s*>/i.test(e)}var Yd=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Qd=/\((c|tm|r)\)/i,Xd=/\((c|tm|r)\)/gi,Zd={c:"©",r:"®",tm:"™"};function Jd(e,t){return Zd[t.toLowerCase()]}function ef(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];"text"!==r.type||t||(r.content=r.content.replace(Xd,Jd)),"link_open"===r.type&&"auto"===r.info&&t--,"link_close"===r.type&&"auto"===r.info&&t++}}function tf(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];"text"!==r.type||t||Yd.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1")),"link_open"===r.type&&"auto"===r.info&&t--,"link_close"===r.type&&"auto"===r.info&&t++}}var nf=/['"]/,rf=/['"]/g;function of(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function af(e,t){let n;const r=[];for(let i=0;i<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,"text"!==o.type)continue;let s=o.content,l=0,u=s.length;e:for(;l<u;){rf.lastIndex=l;const c=rf.exec(s);if(!c)break;let d=!0,f=!0;l=c.index+1;const p="'"===c[0];let h=32;if(c.index-1>=0)h=s.charCodeAt(c.index-1);else for(n=i-1;n>=0&&"softbreak"!==e[n].type&&"hardbreak"!==e[n].type;n--)if(e[n].content){h=e[n].content.charCodeAt(e[n].content.length-1);break}let m=32;if(l<u)m=s.charCodeAt(l);else for(n=i+1;n<e.length&&"softbreak"!==e[n].type&&"hardbreak"!==e[n].type;n++)if(e[n].content){m=e[n].content.charCodeAt(0);break}const g=Id(h)||Ld(String.fromCharCode(h)),v=Id(m)||Ld(String.fromCharCode(m)),y=Od(h),b=Od(m);if(b?d=!1:v&&(y||g||(d=!1)),y?f=!1:g&&(b||v||(f=!1)),34===m&&'"'===c[0]&&h>=48&&h<=57&&(f=d=!1),d&&f&&(d=g,f=v),d||f){if(f)for(n=r.length-1;n>=0;n--){let d=r[n];if(r[n].level<a)break;if(d.single===p&&r[n].level===a){let a,f;d=r[n],p?(a=t.md.options.quotes[2],f=t.md.options.quotes[3]):(a=t.md.options.quotes[0],f=t.md.options.quotes[1]),o.content=of(o.content,c.index,f),e[d.token].content=of(e[d.token].content,d.pos,a),l+=f.length-1,d.token===i&&(l+=a.length-1),s=o.content,u=s.length,r.length=n;continue e}}d?r.push({token:i,pos:c.index,single:p,level:a}):f&&p&&(o.content=of(o.content,c.index,""))}else p&&(o.content=of(o.content,c.index,""))}}}var sf=[["normalize",function(e){let t;t=e.src.replace(Wd,"\n"),t=t.replace(qd,"<22>"),e.src=t}],["block",function(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)}],["inline",function(e){const t=e.tokens;for(let n=0,r=t.length;n<r;n++){const r=t[n];"inline"===r.type&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}],["linkify",function(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,r=t.length;n<r;n++){if("inline"!==t[n].type||!e.md.linkify.pretest(t[n].content))continue;let r=t[n].children,i=0;for(let o=r.length-1;o>=0;o--){const a=r[o];if("link_close"!==a.type){if("html_inline"===a.type&&(Gd(a.content)&&i>0&&i--,Kd(a.content)&&i++),!(i>0)&&"text"===a.type&&e.md.linkify.test(a.content)){const i=a.content;let s=e.md.linkify.match(i);const l=[];let u=a.level,c=0;s.length>0&&0===s[0].index&&o>0&&"text_special"===r[o-1].type&&(s=s.slice(1));for(let t=0;t<s.length;t++){const n=s[t].url,r=e.md.normalizeLink(n);if(!e.md.validateLink(r))continue;let o=s[t].text;o=s[t].schema?"mailto:"!==s[t].schema||/^mailto:/i.test(o)?e.md.normalizeLinkText(o):e.md.normalizeLinkText("mailto:"+o).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+o).replace(/^http:\/\//,"");const a=s[t].index;if(a>c){const t=new e.Token("text","",0);t.content=i.slice(c,a),t.level=u,l.push(t)}const d=new e.Token("link_open","a",1);d.attrs=[["href",r]],d.level=u++,d.markup="linkify",d.info="auto",l.push(d);const f=new e.Token("text","",0);f.content=o,f.level=u,l.push(f);const p=new e.Token("link_close","a",-1);p.level=--u,p.markup="linkify",p.info="auto",l.push(p),c=s[t].lastIndex}if(c<i.length){const t=new e.Token("text","",0);t.content=i.slice(c),t.level=u,l.push(t)}t[n].children=r=md(r,o,l)}}else for(o--;r[o].level!==a.level&&"link_open"!==r[o].type;)o--}}}],["replacements",function(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(Qd.test(e.tokens[t].content)&&ef(e.tokens[t].children),Yd.test(e.tokens[t].content)&&tf(e.tokens[t].children))}],["smartquotes",function(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&nf.test(e.tokens[t].content)&&af(e.tokens[t].children,e)}],["text_join",function(e){let t,n;const r=e.tokens,i=r.length;for(let o=0;o<i;o++){if("inline"!==r[o].type)continue;const e=r[o].children,i=e.length;for(t=0;t<i;t++)"text_special"===e[t].type&&(e[t].type="text");for(t=n=0;t<i;t++)"text"===e[t].type&&t+1<i&&"text"===e[t+1].type?e[t+1].content=e[t].content+e[t+1].content:(t!==n&&(e[n]=e[t]),n++);t!==n&&(e.length=n)}}]];function lf(){this.ruler=new $d;for(let e=0;e<sf.length;e++)this.ruler.push(sf[e][0],sf[e][1])}function uf(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,s=0,l=0,u=i.length,c=!1;a<u;a++){const e=i.charCodeAt(a);if(!c){if(Dd(e)){s++,9===e?l+=4-l%4:l++;continue}c=!0}10!==e&&a!==u-1||(10!==e&&a++,this.bMarks.push(o),this.eMarks.push(a),this.tShift.push(s),this.sCount.push(l),this.bsCount.push(0),c=!1,s=0,l=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}function cf(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function df(e){const t=[],n=e.length;let r=0,i=e.charCodeAt(r),o=!1,a=0,s="";for(;r<n;)124===i&&(o?(s+=e.substring(a,r-1),a=r):(t.push(s+e.substring(a,r)),s="",a=r+1)),o=92===i,r++,i=e.charCodeAt(r);return t.push(s+e.substring(a)),t}function ff(e,t){const n=e.eMarks[t];let r=e.bMarks[t]+e.tShift[t];const i=e.src.charCodeAt(r++);return 42!==i&&45!==i&&43!==i||r<n&&!Dd(e.src.charCodeAt(r))?-1:r}function pf(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(41===o||46===o)break;return-1}if(i-n>=10)return-1}return i<r&&(o=e.src.charCodeAt(i),!Dd(o))?-1:i}lf.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)},lf.prototype.State=Hd,uf.prototype.push=function(e,t,n){const r=new Ud(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},uf.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},uf.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},uf.prototype.skipSpaces=function(e){for(let t=this.src.length;e<t&&Dd(this.src.charCodeAt(e));e++);return e},uf.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!Dd(this.src.charCodeAt(--e)))return e+1;return e},uf.prototype.skipChars=function(e,t){for(let n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},uf.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},uf.prototype.getLines=function(e,t,n,r){if(e>=t)return"";const i=new Array(t-e);for(let o=0,a=e;a<t;a++,o++){let e=0;const s=this.bMarks[a];let l,u=s;for(l=a+1<t||r?this.eMarks[a]+1:this.eMarks[a];u<l&&e<n;){const t=this.src.charCodeAt(u);if(Dd(t))9===t?e+=4-(e+this.bsCount[a])%4:e++;else{if(!(u-s<this.tShift[a]))break;e++}u++}i[o]=e>n?new Array(e-n+1).join(" ")+this.src.slice(u,l):this.src.slice(u,l)}return i.join("")},uf.prototype.Token=Ud;var hf="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",mf=new RegExp("^(?:"+hf+"|<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>|\x3c!---?>|\x3c!--(?:[^-]|-[^-]|--[^>])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),gf=new RegExp("^(?:"+hf+"|<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>)"),vf=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+["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"].join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(gf.source+"\\s*$"),/^$/,!1]],yf=[["table",function(e,t,n,r){if(t+2>n)return!1;let i=t+1;if(e.sCount[i]<e.blkIndent)return!1;if(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(124!==a&&45!==a&&58!==a)return!1;if(o>=e.eMarks[i])return!1;const s=e.src.charCodeAt(o++);if(124!==s&&45!==s&&58!==s&&!Dd(s))return!1;if(45===a&&Dd(s))return!1;for(;o<e.eMarks[i];){const t=e.src.charCodeAt(o);if(124!==t&&45!==t&&58!==t&&!Dd(t))return!1;o++}let l=cf(e,t+1),u=l.split("|");const c=[];for(let v=0;v<u.length;v++){const e=u[v].trim();if(!e){if(0===v||v===u.length-1)continue;return!1}if(!/^:?-+:?$/.test(e))return!1;58===e.charCodeAt(e.length-1)?c.push(58===e.charCodeAt(0)?"center":"right"):58===e.charCodeAt(0)?c.push("left"):c.push("")}if(l=cf(e,t).trim(),-1===l.indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;u=df(l),u.length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop();const d=u.length;if(0===d||d!==c.length)return!1;if(r)return!0;const f=e.parentType;e.parentType="table";const p=e.md.block.ruler.getRules("blockquote"),h=[t,0];e.push("table_open","table",1).map=h,e.push("thead_open","thead",1).map=[t,t+1],e.push("tr_open","tr",1).map=[t,t+1];for(let v=0;v<u.length;v++){const t=e.push("th_open","th",1);c[v]&&(t.attrs=[["style","text-align:"+c[v]]]);const n=e.push("inline","",0);n.content=u[v].trim(),n.children=[],e.push("th_close","th",-1)}let m;e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let g=0;for(i=t+2;i<n&&!(e.sCount[i]<e.blkIndent);i++){let r=!1;for(let t=0,o=p.length;t<o;t++)if(p[t](e,i,n,!0)){r=!0;break}if(r)break;if(l=cf(e,i).trim(),!l)break;if(e.sCount[i]-e.blkIndent>=4)break;if(u=df(l),u.length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop(),g+=d-u.length,g>65536)break;i===t+2&&(e.push("tbody_open","tbody",1).map=m=[t+2,0]),e.push("tr_open","tr",1).map=[i,i+1];for(let t=0;t<d;t++){const n=e.push("td_open","td",1);c[t]&&(n.attrs=[["style","text-align:"+c[t]]]);const r=e.push("inline","",0);r.content=u[t]?u[t].trim():"",r.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return m&&(e.push("tbody_close","tbody",-1),m[1]=i),e.push("table_close","table",-1),h[1]=i,e.parentType=f,e.line=i,!0},["paragraph","reference"]],["code",function(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++;else{if(!(e.sCount[r]-e.blkIndent>=4))break;r++,i=r}e.line=i;const o=e.push("code_block","code",0);return o.content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",o.map=[t,e.line],!0}],["fence",function(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(i+3>o)return!1;const a=e.src.charCodeAt(i);if(126!==a&&96!==a)return!1;let s=i;i=e.skipChars(i,a);let l=i-s;if(l<3)return!1;const u=e.src.slice(s,i),c=e.src.slice(i,o);if(96===a&&c.indexOf(String.fromCharCode(a))>=0)return!1;if(r)return!0;let d=t,f=!1;for(;d++,!(d>=n||(i=s=e.bMarks[d]+e.tShift[d],o=e.eMarks[d],i<o&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(i)===a&&!(e.sCount[d]-e.blkIndent>=4||(i=e.skipChars(i,a),i-s<l||(i=e.skipSpaces(i),i<o)))){f=!0;break}l=e.sCount[t],e.line=d+(f?1:0);const p=e.push("fence","code",0);return p.info=c,p.content=e.getLines(t+1,d,l,!0),p.markup=u,p.map=[t,e.line],!0},["paragraph","reference","blockquote","list"]],["blockquote",function(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)return!1;if(62!==e.src.charCodeAt(i))return!1;if(r)return!0;const s=[],l=[],u=[],c=[],d=e.md.block.ruler.getRules("blockquote"),f=e.parentType;e.parentType="blockquote";let p,h=!1;for(p=t;p<n;p++){const t=e.sCount[p]<e.blkIndent;if(i=e.bMarks[p]+e.tShift[p],o=e.eMarks[p],i>=o)break;if(62===e.src.charCodeAt(i++)&&!t){let t,n,r=e.sCount[p]+1;32===e.src.charCodeAt(i)?(i++,r++,n=!1,t=!0):9===e.src.charCodeAt(i)?(t=!0,(e.bsCount[p]+r)%4==3?(i++,r++,n=!1):n=!0):t=!1;let a=r;for(s.push(e.bMarks[p]),e.bMarks[p]=i;i<o;){const t=e.src.charCodeAt(i);if(!Dd(t))break;9===t?a+=4-(a+e.bsCount[p]+(n?1:0))%4:a++,i++}h=i>=o,l.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(t?1:0),u.push(e.sCount[p]),e.sCount[p]=a-r,c.push(e.tShift[p]),e.tShift[p]=i-e.bMarks[p];continue}if(h)break;let r=!1;for(let i=0,o=d.length;i<o;i++)if(d[i](e,p,n,!0)){r=!0;break}if(r){e.lineMax=p,0!==e.blkIndent&&(s.push(e.bMarks[p]),l.push(e.bsCount[p]),c.push(e.tShift[p]),u.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}s.push(e.bMarks[p]),l.push(e.bsCount[p]),c.push(e.tShift[p]),u.push(e.sCount[p]),e.sCount[p]=-1}const m=e.blkIndent;e.blkIndent=0;const g=e.push("blockquote_open","blockquote",1);g.markup=">";const v=[t,0];g.map=v,e.md.block.tokenize(e,t,p),e.push("blockquote_close","blockquote",-1).markup=">",e.lineMax=a,e.parentType=f,v[1]=e.line;for(let y=0;y<c.length;y++)e.bMarks[y+t]=s[y],e.tShift[y+t]=c[y],e.sCount[y+t]=u[y],e.bsCount[y+t]=l[y];return e.blkIndent=m,!0},["paragraph","reference","blockquote","list"]],["hr",function(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(42!==a&&45!==a&&95!==a)return!1;let s=1;for(;o<i;){const t=e.src.charCodeAt(o++);if(t!==a&&!Dd(t))return!1;t===a&&s++}if(s<3)return!1;if(r)return!0;e.line=t+1;const l=e.push("hr","hr",0);return l.map=[t,e.line],l.markup=Array(s+1).join(String.fromCharCode(a)),!0},["paragraph","reference","blockquote","list"]],["list",function(e,t,n,r){let i,o,a,s,l=t,u=!0;if(e.sCount[l]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]<e.blkIndent)return!1;let c,d,f,p=!1;if(r&&"paragraph"===e.parentType&&e.sCount[l]>=e.blkIndent&&(p=!0),(f=pf(e,l))>=0){if(c=!0,a=e.bMarks[l]+e.tShift[l],d=Number(e.src.slice(a,f-1)),p&&1!==d)return!1}else{if(!((f=ff(e,l))>=0))return!1;c=!1}if(p&&e.skipSpaces(f)>=e.eMarks[l])return!1;if(r)return!0;const h=e.src.charCodeAt(f-1),m=e.tokens.length;c?(s=e.push("ordered_list_open","ol",1),1!==d&&(s.attrs=[["start",d]])):s=e.push("bullet_list_open","ul",1);const g=[l,0];s.map=g,s.markup=String.fromCharCode(h);let v=!1;const y=e.md.block.ruler.getRules("list"),b=e.parentType;for(e.parentType="list";l<n;){o=f,i=e.eMarks[l];const t=e.sCount[l]+f-(e.bMarks[l]+e.tShift[l]);let r=t;for(;o<i;){const t=e.src.charCodeAt(o);if(9===t)r+=4-(r+e.bsCount[l])%4;else{if(32!==t)break;r++}o++}const d=o;let p;p=d>=i?1:r-t,p>4&&(p=1);const m=t+p;s=e.push("list_item_open","li",1),s.markup=String.fromCharCode(h);const g=[l,0];s.map=g,c&&(s.info=e.src.slice(a,f-1));const b=e.tight,w=e.tShift[l],x=e.sCount[l],E=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=m,e.tight=!0,e.tShift[l]=d-e.bMarks[l],e.sCount[l]=r,d>=i&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),e.tight&&!v||(u=!1),v=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=E,e.tShift[l]=w,e.sCount[l]=x,e.tight=b,s=e.push("list_item_close","li",-1),s.markup=String.fromCharCode(h),l=e.line,g[1]=l,l>=n)break;if(e.sCount[l]<e.blkIndent)break;if(e.sCount[l]-e.blkIndent>=4)break;let k=!1;for(let i=0,o=y.length;i<o;i++)if(y[i](e,l,n,!0)){k=!0;break}if(k)break;if(c){if(f=pf(e,l),f<0)break;a=e.bMarks[l]+e.tShift[l]}else if(f=ff(e,l),f<0)break;if(h!==e.src.charCodeAt(f-1))break}return s=c?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1),s.markup=String.fromCharCode(h),g[1]=l,e.line=l,e.parentType=b,u&&function(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&&"paragraph_open"===e.tokens[r].type&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}(e,m),!0},["paragraph","reference","blockquote"]],["reference",function(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)return!1;if(91!==e.src.charCodeAt(i))return!1;function s(t){const n=e.lineMax;if(t>=n||e.isEmpty(t))return null;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){const r=e.md.block.ruler.getRules("reference"),i=e.parentType;e.parentType="reference";let o=!1;for(let a=0,s=r.length;a<s;a++)if(r[a](e,t,n,!0)){o=!0;break}if(e.parentType=i,o)return null}const i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];return e.src.slice(i,o+1)}let l=e.src.slice(i,o+1);o=l.length;let u=-1;for(i=1;i<o;i++){const e=l.charCodeAt(i);if(91===e)return!1;if(93===e){u=i;break}if(10===e){const e=s(a);null!==e&&(l+=e,o=l.length,a++)}else if(92===e&&(i++,i<o&&10===l.charCodeAt(i))){const e=s(a);null!==e&&(l+=e,o=l.length,a++)}}if(u<0||58!==l.charCodeAt(u+1))return!1;for(i=u+2;i<o;i++){const e=l.charCodeAt(i);if(10===e){const e=s(a);null!==e&&(l+=e,o=l.length,a++)}else if(!Dd(e))break}const c=e.md.helpers.parseLinkDestination(l,i,o);if(!c.ok)return!1;const d=e.md.normalizeLink(c.str);if(!e.md.validateLink(d))return!1;i=c.pos;const f=i,p=a,h=i;for(;i<o;i++){const e=l.charCodeAt(i);if(10===e){const e=s(a);null!==e&&(l+=e,o=l.length,a++)}else if(!Dd(e))break}let m,g=e.md.helpers.parseLinkTitle(l,i,o);for(;g.can_continue;){const t=s(a);if(null===t)break;l+=t,i=o,o=l.length,a++,g=e.md.helpers.parseLinkTitle(l,i,o,g)}for(i<o&&h!==i&&g.ok?(m=g.str,i=g.pos):(m="",i=f,a=p);i<o&&Dd(l.charCodeAt(i));)i++;if(i<o&&10!==l.charCodeAt(i)&&m)for(m="",i=f,a=p;i<o&&Dd(l.charCodeAt(i));)i++;if(i<o&&10!==l.charCodeAt(i))return!1;const v=Md(l.slice(1,u));return!!v&&(r||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[v]&&(e.env.references[v]={title:m,href:d}),e.line=a),!0)}],["html_block",function(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(i))return!1;let a=e.src.slice(i,o),s=0;for(;s<vf.length&&!vf[s][0].test(a);s++);if(s===vf.length)return!1;if(r)return vf[s][2];let l=t+1;if(!vf[s][1].test(a))for(;l<n&&!(e.sCount[l]<e.blkIndent);l++)if(i=e.bMarks[l]+e.tShift[l],o=e.eMarks[l],a=e.src.slice(i,o),vf[s][1].test(a)){0!==a.length&&l++;break}e.line=l;const u=e.push("html_block","",0);return u.map=[t,l],u.content=e.getLines(t,l,e.blkIndent,!0),!0},["paragraph","reference","blockquote"]],["heading",function(e,t,n,r){let i=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.src.charCodeAt(i);if(35!==a||i>=o)return!1;let s=1;for(a=e.src.charCodeAt(++i);35===a&&i<o&&s<=6;)s++,a=e.src.charCodeAt(++i);if(s>6||i<o&&!Dd(a))return!1;if(r)return!0;o=e.skipSpacesBack(o,i);const l=e.skipCharsBack(o,35,i);l>i&&Dd(e.src.charCodeAt(l-1))&&(o=l),e.line=t+1;const u=e.push("heading_open","h"+String(s),1);u.markup="########".slice(0,s),u.map=[t,e.line];const c=e.push("inline","",0);return c.content=e.src.slice(i,o).trim(),c.map=[t,e.line],c.children=[],e.push("heading_close","h"+String(s),-1).markup="########".slice(0,s),!0},["paragraph","reference","blockquote"]],["lheading",function(e,t,n){const r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const i=e.parentType;e.parentType="paragraph";let o,a=0,s=t+1;for(;s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let t=e.bMarks[s]+e.tShift[s];const n=e.eMarks[s];if(t<n&&(o=e.src.charCodeAt(t),(45===o||61===o)&&(t=e.skipChars(t,o),t=e.skipSpaces(t),t>=n))){a=61===o?1:2;break}}if(e.sCount[s]<0)continue;let t=!1;for(let i=0,o=r.length;i<o;i++)if(r[i](e,s,n,!0)){t=!0;break}if(t)break}if(!a)return!1;const l=e.getLines(t,s,e.blkIndent,!1).trim();e.line=s+1;const u=e.push("heading_open","h"+String(a),1);u.markup=String.fromCharCode(o),u.map=[t,e.line];const c=e.push("inline","",0);return c.content=l,c.map=[t,e.line-1],c.children=[],e.push("heading_close","h"+String(a),-1).markup=String.fromCharCode(o),e.parentType=i,!0}],["paragraph",function(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)continue;if(e.sCount[o]<0)continue;let t=!1;for(let i=0,a=r.length;i<a;i++)if(r[i](e,o,n,!0)){t=!0;break}if(t)break}const a=e.getLines(t,o,e.blkIndent,!1).trim();e.line=o,e.push("paragraph_open","p",1).map=[t,e.line];const s=e.push("inline","",0);return s.content=a,s.map=[t,e.line],s.children=[],e.push("paragraph_close","p",-1),e.parentType=i,!0}]];function bf(){this.ruler=new $d;for(let e=0;e<yf.length;e++)this.ruler.push(yf[e][0],yf[e][1],{alt:(yf[e][2]||[]).slice()})}function wf(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}function xf(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}}bf.prototype.tokenize=function(e,t,n){const r=this.ruler.getRules(""),i=r.length,o=e.md.options.maxNesting;let a=t,s=!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 t=e.line;let l=!1;for(let o=0;o<i;o++)if(l=r[o](e,a,n,!1),l){if(t>=e.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),a=e.line,a<n&&e.isEmpty(a)&&(s=!0,a++,e.line=a)}},bf.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)},bf.prototype.State=uf,wf.prototype.pushPending=function(){const e=new Ud("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},wf.prototype.push=function(e,t,n){this.pending&&this.pushPending();const r=new Ud(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},wf.prototype.scanDelims=function(e,t){const n=this.posMax,r=this.src.charCodeAt(e),i=e>0?this.src.charCodeAt(e-1):32;let o=e;for(;o<n&&this.src.charCodeAt(o)===r;)o++;const a=o-e,s=o<n?this.src.charCodeAt(o):32,l=Id(i)||Ld(String.fromCharCode(i)),u=Id(s)||Ld(String.fromCharCode(s)),c=Od(i),d=Od(s),f=!d&&(!u||c||l),p=!c&&(!l||d||u);return{can_open:f&&(t||!p||l),can_close:p&&(t||!f||u),length:a}},wf.prototype.Token=Ud;var Ef=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,kf=[];for(let aV=0;aV<256;aV++)kf.push(0);function Cf(e,t){let n;const r=[],i=t.length;for(let o=0;o<i;o++){const i=t[o];if(126!==i.marker)continue;if(-1===i.end)continue;const a=t[i.end];n=e.tokens[i.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[a.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="","text"===e.tokens[a.token-1].type&&"~"===e.tokens[a.token-1].content&&r.push(a.token-1)}for(;r.length;){const t=r.pop();let i=t+1;for(;i<e.tokens.length&&"s_close"===e.tokens[i].type;)i++;i--,t!==i&&(n=e.tokens[i],e.tokens[i]=e.tokens[t],e.tokens[t]=n)}}"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){kf[e.charCodeAt(0)]=1});var Sf={tokenize:function(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t)return!1;if(126!==r)return!1;const i=e.scanDelims(e.pos,!0);let o=i.length;const a=String.fromCharCode(r);if(o<2)return!1;let s;o%2&&(s=e.push("text","",0),s.content=a,o--);for(let l=0;l<o;l+=2)s=e.push("text","",0),s.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},postProcess:function(e){const t=e.tokens_meta,n=e.tokens_meta.length;Cf(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Cf(e,t[r].delimiters)}};function Tf(e,t){for(let n=t.length-1;n>=0;n--){const r=t[n];if(95!==r.marker&&42!==r.marker)continue;if(-1===r.end)continue;const i=t[r.end],o=n>0&&t[n-1].end===r.end+1&&t[n-1].marker===r.marker&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1,a=String.fromCharCode(r.marker),s=e.tokens[r.token];s.type=o?"strong_open":"em_open",s.tag=o?"strong":"em",s.nesting=1,s.markup=o?a+a:a,s.content="";const l=e.tokens[i.token];l.type=o?"strong_close":"em_close",l.tag=o?"strong":"em",l.nesting=-1,l.markup=o?a+a:a,l.content="",o&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--)}}var _f={tokenize:function(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t)return!1;if(95!==r&&42!==r)return!1;const i=e.scanDelims(e.pos,42===r);for(let o=0;o<i.length;o++)e.push("text","",0).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},postProcess:function(e){const t=e.tokens_meta,n=e.tokens_meta.length;Tf(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Tf(e,t[r].delimiters)}},Nf=/^([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])?)*)$/,Af=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/,Df=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Of=/^&([a-z][a-z0-9]{1,31});/i;function Lf(e){const t={},n=e.length;if(!n)return;let r=0,i=-2;const o=[];for(let a=0;a<n;a++){const n=e[a];if(o.push(0),e[r].marker===n.marker&&i===n.token-1||(r=a),i=n.token,n.length=n.length||0,!n.close)continue;t.hasOwnProperty(n.marker)||(t[n.marker]=[-1,-1,-1,-1,-1,-1]);const s=t[n.marker][(n.open?3:0)+n.length%3];let l=r-o[r]-1,u=l;for(;l>s;l-=o[l]+1){const t=e[l];if(t.marker===n.marker&&t.open&&t.end<0){let r=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3==0&&n.length%3==0||(r=!0)),!r){const r=l>0&&!e[l-1].open?o[l-1]+1:0;o[a]=a-l+r,o[l]=r,n.open=!1,t.end=a,t.close=!1,u=-1,i=-2;break}}}-1!==u&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=u)}}var If=[["text",function(e,t){let n=e.pos;for(;n<e.posMax&&!xf(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}],["linkify",function(e,t){if(!e.md.options.linkify)return!1;if(e.linkLevel>0)return!1;const n=e.pos;if(n+3>e.posMax)return!1;if(58!==e.src.charCodeAt(n))return!1;if(47!==e.src.charCodeAt(n+1))return!1;if(47!==e.src.charCodeAt(n+2))return!1;const r=e.pending.match(Ef);if(!r)return!1;const i=r[1],o=e.md.linkify.matchAtStart(e.src.slice(n-i.length));if(!o)return!1;let a=o.url;if(a.length<=i.length)return!1;let s=a.length;for(;s>0&&42===a.charCodeAt(s-1);)s--;s!==a.length&&(a=a.slice(0,s));const l=e.md.normalizeLink(a);if(!e.md.validateLink(l))return!1;if(!t){e.pending=e.pending.slice(0,-i.length);const t=e.push("link_open","a",1);t.attrs=[["href",l]],t.markup="linkify",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(a);const n=e.push("link_close","a",-1);n.markup="linkify",n.info="auto"}return e.pos+=a.length-i.length,!0}],["newline",function(e,t){let n=e.pos;if(10!==e.src.charCodeAt(n))return!1;const r=e.pending.length-1,i=e.posMax;if(!t)if(r>=0&&32===e.pending.charCodeAt(r))if(r>=1&&32===e.pending.charCodeAt(r-1)){let t=r-1;for(;t>=1&&32===e.pending.charCodeAt(t-1);)t--;e.pending=e.pending.slice(0,t),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<i&&Dd(e.src.charCodeAt(n));)n++;return e.pos=n,!0}],["escape",function(e,t){let n=e.pos;const r=e.posMax;if(92!==e.src.charCodeAt(n))return!1;if(n++,n>=r)return!1;let i=e.src.charCodeAt(n);if(10===i){for(t||e.push("hardbreak","br",0),n++;n<r&&(i=e.src.charCodeAt(n),Dd(i));)n++;return e.pos=n,!0}let o=e.src[n];if(i>=55296&&i<=56319&&n+1<r){const t=e.src.charCodeAt(n+1);t>=56320&&t<=57343&&(o+=e.src[n+1],n++)}const a="\\"+o;if(!t){const t=e.push("text_special","",0);i<256&&0!==kf[i]?t.content=o:t.content=a,t.markup=a,t.info="escape"}return e.pos=n+1,!0}],["backticks",function(e,t){let n=e.pos;if(96!==e.src.charCodeAt(n))return!1;const r=n;n++;const i=e.posMax;for(;n<i&&96===e.src.charCodeAt(n);)n++;const o=e.src.slice(r,n),a=o.length;if(e.backticksScanned&&(e.backticks[a]||0)<=r)return t||(e.pending+=o),e.pos+=a,!0;let s,l=n;for(;-1!==(s=e.src.indexOf("`",l));){for(l=s+1;l<i&&96===e.src.charCodeAt(l);)l++;const r=l-s;if(r===a){if(!t){const t=e.push("code_inline","code",0);t.markup=o,t.content=e.src.slice(n,s).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=l,!0}e.backticks[r]=s}return e.backticksScanned=!0,t||(e.pending+=o),e.pos+=a,!0}],["strikethrough",Sf.tokenize],["emphasis",_f.tokenize],["link",function(e,t){let n,r,i,o,a="",s="",l=e.pos,u=!0;if(91!==e.src.charCodeAt(e.pos))return!1;const c=e.pos,d=e.posMax,f=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let h=p+1;if(h<d&&40===e.src.charCodeAt(h)){for(u=!1,h++;h<d&&(n=e.src.charCodeAt(h),Dd(n)||10===n);h++);if(h>=d)return!1;if(l=h,i=e.md.helpers.parseLinkDestination(e.src,h,e.posMax),i.ok){for(a=e.md.normalizeLink(i.str),e.md.validateLink(a)?h=i.pos:a="",l=h;h<d&&(n=e.src.charCodeAt(h),Dd(n)||10===n);h++);if(i=e.md.helpers.parseLinkTitle(e.src,h,e.posMax),h<d&&l!==h&&i.ok)for(s=i.str,h=i.pos;h<d&&(n=e.src.charCodeAt(h),Dd(n)||10===n);h++);}(h>=d||41!==e.src.charCodeAt(h))&&(u=!0),h++}if(u){if(void 0===e.env.references)return!1;if(h<d&&91===e.src.charCodeAt(h)?(l=h+1,h=e.md.helpers.parseLinkLabel(e,h),h>=0?r=e.src.slice(l,h++):h=p+1):h=p+1,r||(r=e.src.slice(f,p)),o=e.env.references[Md(r)],!o)return e.pos=c,!1;a=o.href,s=o.title}if(!t){e.pos=f,e.posMax=p;const t=[["href",a]];e.push("link_open","a",1).attrs=t,s&&t.push(["title",s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=h,e.posMax=d,!0}],["image",function(e,t){let n,r,i,o,a,s,l,u,c="";const d=e.pos,f=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;const p=e.pos+2,h=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(h<0)return!1;if(o=h+1,o<f&&40===e.src.charCodeAt(o)){for(o++;o<f&&(n=e.src.charCodeAt(o),Dd(n)||10===n);o++);if(o>=f)return!1;for(u=o,s=e.md.helpers.parseLinkDestination(e.src,o,e.posMax),s.ok&&(c=e.md.normalizeLink(s.str),e.md.validateLink(c)?o=s.pos:c=""),u=o;o<f&&(n=e.src.charCodeAt(o),Dd(n)||10===n);o++);if(s=e.md.helpers.parseLinkTitle(e.src,o,e.posMax),o<f&&u!==o&&s.ok)for(l=s.str,o=s.pos;o<f&&(n=e.src.charCodeAt(o),Dd(n)||10===n);o++);else l="";if(o>=f||41!==e.src.charCodeAt(o))return e.pos=d,!1;o++}else{if(void 0===e.env.references)return!1;if(o<f&&91===e.src.charCodeAt(o)?(u=o+1,o=e.md.helpers.parseLinkLabel(e,o),o>=0?i=e.src.slice(u,o++):o=h+1):o=h+1,i||(i=e.src.slice(p,h)),a=e.env.references[Md(i)],!a)return e.pos=d,!1;c=a.href,l=a.title}if(!t){r=e.src.slice(p,h);const t=[];e.md.inline.parse(r,e.md,e.env,t);const n=e.push("image","img",0),i=[["src",c],["alt",""]];n.attrs=i,n.children=t,n.content=r,l&&i.push(["title",l])}return e.pos=o,e.posMax=f,!0}],["autolink",function(e,t){let n=e.pos;if(60!==e.src.charCodeAt(n))return!1;const r=e.pos,i=e.posMax;for(;;){if(++n>=i)return!1;const t=e.src.charCodeAt(n);if(60===t)return!1;if(62===t)break}const o=e.src.slice(r+1,n);if(Af.test(o)){const n=e.md.normalizeLink(o);if(!e.md.validateLink(n))return!1;if(!t){const t=e.push("link_open","a",1);t.attrs=[["href",n]],t.markup="autolink",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(o);const r=e.push("link_close","a",-1);r.markup="autolink",r.info="auto"}return e.pos+=o.length+2,!0}if(Nf.test(o)){const n=e.md.normalizeLink("mailto:"+o);if(!e.md.validateLink(n))return!1;if(!t){const t=e.push("link_open","a",1);t.attrs=[["href",n]],t.markup="autolink",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(o);const r=e.push("link_close","a",-1);r.markup="autolink",r.info="auto"}return e.pos+=o.length+2,!0}return!1}],["html_inline",function(e,t){if(!e.md.options.html)return!1;const n=e.posMax,r=e.pos;if(60!==e.src.charCodeAt(r)||r+2>=n)return!1;const i=e.src.charCodeAt(r+1);if(33!==i&&63!==i&&47!==i&&!function(e){const t=32|e;return t>=97&&t<=122}(i))return!1;const o=e.src.slice(r).match(mf);if(!o)return!1;if(!t){const t=e.push("html_inline","",0);t.content=o[0],a=t.content,/^<a[>\s]/i.test(a)&&e.linkLevel++,function(e){return/^<\/a\s*>/i.test(e)}(t.content)&&e.linkLevel--}var a;return e.pos+=o[0].length,!0}],["entity",function(e,t){const n=e.pos,r=e.posMax;if(38!==e.src.charCodeAt(n))return!1;if(n+1>=r)return!1;if(35===e.src.charCodeAt(n+1)){const r=e.src.slice(n).match(Df);if(r){if(!t){const t="x"===r[1][0].toLowerCase()?parseInt(r[1].slice(1),16):parseInt(r[1],10),n=e.push("text_special","",0);n.content=gd(t)?vd(t):vd(65533),n.markup=r[0],n.info="entity"}return e.pos+=r[0].length,!0}}else{const r=e.src.slice(n).match(Of);if(r){const n=ud(r[0]);if(n!==r[0]){if(!t){const t=e.push("text_special","",0);t.content=n,t.markup=r[0],t.info="entity"}return e.pos+=r[0].length,!0}}}return!1}]],Mf=[["balance_pairs",function(e){const t=e.tokens_meta,n=e.tokens_meta.length;Lf(e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Lf(t[r].delimiters)}],["strikethrough",Sf.postProcess],["emphasis",_f.postProcess],["fragments_join",function(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++,"text"===i[t].type&&t+1<o&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}]];function Ff(){this.ruler=new $d;for(let e=0;e<If.length;e++)this.ruler.push(If[e][0],If[e][1]);this.ruler2=new $d;for(let e=0;e<Mf.length;e++)this.ruler2.push(Mf[e][0],Mf[e][1])}function Pf(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function Rf(e){return Object.prototype.toString.call(e)}function jf(e){return"[object Function]"===Rf(e)}function Vf(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}Ff.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),r=n.length,i=e.md.options.maxNesting,o=e.cache;if(void 0!==o[t])return void(e.pos=o[t]);let a=!1;if(e.level<i){for(let s=0;s<r;s++)if(e.level++,a=n[s](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},Ff.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 r=0;r<n;r++)if(a=t[r](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}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},Ff.prototype.parse=function(e,t,n,r){const i=new this.State(e,t,n,r);this.tokenize(i);const o=this.ruler2.getRules(""),a=o.length;for(let s=0;s<a;s++)o[s](i)},Ff.prototype.State=wf;var Bf={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},zf={"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}}},$f="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Uf(e){const t=e.re=function(e){const t={};return e=e||{},t.src_Any=Wc.source,t.src_Cc=qc.source,t.src_Z=Qc.source,t.src_P=Kc.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|"),t.src_pseudo_letter="(?:(?![><]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><]|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|]|"+t.src_ZPCc+"))((?![$+<=>^`|])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|]|"+t.src_ZPCc+"))((?![$+<=>^`|])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}(e.__opts__),n=e.__tlds__.slice();function r(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),n.push(t.src_xn),t.src_tlds=n.join("|"),t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");const i=[];function o(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){const n=e.__schemas__[t];if(null===n)return;const r={validate:null,link:null};if(e.__compiled__[t]=r,"[object Object]"===Rf(n))return"[object RegExp]"!==Rf(n.validate)?jf(n.validate)?r.validate=n.validate:o(t,n):r.validate=function(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate),void(jf(n.normalize)?r.normalize=n.normalize:n.normalize?o(t,n):r.normalize=function(e,t){t.normalize(e)});"[object String]"!==Rf(n)?o(t,n):i.push(t)}),i.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};const a=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(Vf).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><]|"+t.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><]|"+t.src_ZPCc+"))("+a+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function Hf(e,t){const n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function Wf(e,t){const n=new Hf(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function qf(e,t){if(!(this instanceof qf))return new qf(e,t);var n;t||(n=e,Object.keys(n||{}).reduce(function(e,t){return e||Bf.hasOwnProperty(t)},!1)&&(t=e,e={})),this.__opts__=Pf({},Bf,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Pf({},zf,e),this.__compiled__={},this.__tlds__=$f,this.__tlds_replaced__=!1,this.re={},Uf(this)}qf.prototype.add=function(e,t){return this.__schemas__[e]=t,Uf(this),this},qf.prototype.set=function(e){return this.__opts__=Pf(this.__opts__,e),this},qf.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let t,n,r,i,o,a,s,l,u;if(this.re.schema_test.test(e))for(s=this.re.schema_search,s.lastIndex=0;null!==(t=s.exec(e));)if(i=this.testSchemaAt(e,t[2],s.lastIndex),i){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(o=n.index+n[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(u=e.indexOf("@"),u>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a))),this.__index__>=0},qf.prototype.pretest=function(e){return this.re.pretest.test(e)},qf.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},qf.prototype.match=function(e){const t=[];let n=0;this.__index__>=0&&this.__text_cache__===e&&(t.push(Wf(this,n)),n=this.__last_index__);let r=n?e.slice(n):e;for(;this.test(r);)t.push(Wf(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return t.length?t:null},qf.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;const t=this.re.schema_at_start.exec(e);if(!t)return null;const n=this.testSchemaAt(e,t[2],t[0].length);return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,Wf(this,0)):null},qf.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),Uf(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Uf(this),this)},qf.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},qf.prototype.onCompile=function(){};var Gf=2147483647,Kf=36,Yf=/^xn--/,Qf=/[^\0-\x7F]/,Xf=/[\x2E\u3002\uFF0E\uFF61]/g,Zf={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Jf=Math.floor,ep=String.fromCharCode;function tp(e){throw new RangeError(Zf[e])}function np(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]);const i=function(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}((e=e.replace(Xf,".")).split("."),t).join(".");return r+i}var rp=function(e){return e>=48&&e<58?e-48+26:e>=65&&e<91?e-65:e>=97&&e<123?e-97:Kf},ip=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},op=function(e,t,n){let r=0;for(e=n?Jf(e/700):e>>1,e+=Jf(e/t);e>455;r+=Kf)e=Jf(e/35);return Jf(r+36*e/(e+38))},ap={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},sp=/^(vbscript|javascript|file|data):/,lp=/^data:image\/(gif|png|jpeg|webp);/;function up(e){const t=e.trim().toLowerCase();return!sp.test(t)||lp.test(t)}var cp=["http:","https:","mailto:"];function dp(e){const t=jc(e,!0);if(t.hostname&&(!t.protocol||cp.indexOf(t.protocol)>=0))try{t.hostname=np(t.hostname,function(e){return Qf.test(e)?"xn--"+function(e){const t=[],n=(e=function(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&i)<<10)+(1023&r)+65536):(t.push(i),n--)}else t.push(i)}return t}(e)).length;let r=128,i=0,o=72;for(const l of e)l<128&&t.push(ep(l));const a=t.length;let s=a;for(a&&t.push("-");s<n;){let n=Gf;for(const t of e)t>=r&&t<n&&(n=t);const l=s+1;n-r>Jf((Gf-i)/l)&&tp("overflow"),i+=(n-r)*l,r=n;for(const u of e)if(u<r&&++i>Gf&&tp("overflow"),u===r){let e=i;for(let n=Kf;;n+=Kf){const r=n<=o?1:n>=o+26?26:n-o;if(e<r)break;const i=e-r,a=Kf-r;t.push(ep(ip(r+i%a,0))),e=Jf(i/a)}t.push(ep(ip(e,0))),o=op(i,l,s===a),i=0,++s}++i,++r}return t.join("")}(e):e})}catch(n){}return Cc(Sc(t))}function fp(e){const t=jc(e,!0);if(t.hostname&&(!t.protocol||cp.indexOf(t.protocol)>=0))try{t.hostname=np(t.hostname,function(e){return Yf.test(e)?function(e){const t=[],n=e.length;let r=0,i=128,o=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let s=0;s<a;++s)e.charCodeAt(s)>=128&&tp("not-basic"),t.push(e.charCodeAt(s));for(let s=a>0?a+1:0;s<n;){const a=r;for(let t=1,i=Kf;;i+=Kf){s>=n&&tp("invalid-input");const a=rp(e.charCodeAt(s++));a>=Kf&&tp("invalid-input"),a>Jf((Gf-r)/t)&&tp("overflow"),r+=a*t;const l=i<=o?1:i>=o+26?26:i-o;if(a<l)break;const u=Kf-l;t>Jf(Gf/u)&&tp("overflow"),t*=u}const l=t.length+1;o=op(r-a,l,0==a),Jf(r/l)>Gf-i&&tp("overflow"),i+=Jf(r/l),r%=l,t.splice(r++,0,i)}return String.fromCodePoint(...t)}(e.slice(4).toLowerCase()):e})}catch(n){}return Ec(Sc(t),Ec.defaultChars+"%")}function pp(e,t){if(!(this instanceof pp))return new pp(e,t);t||dd(e)||(t=e||{},e="default"),this.inline=new Ff,this.block=new bf,this.core=new lf,this.renderer=new zd,this.linkify=new qf,this.validateLink=up,this.normalizeLink=dp,this.normalizeLinkText=fp,this.utils=cd,this.helpers=hd({},Vd),this.options={},this.configure(e),t&&this.set(t)}pp.prototype.set=function(e){return hd(this.options,e),this},pp.prototype.configure=function(e){const t=this;if(dd(e)){const t=e;if(!(e=ap[t]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this},pp.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},pp.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},pp.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},pp.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},pp.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},pp.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},pp.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var hp=new pp({breaks:!1,linkify:!0});function mp(e,t){let n;return function(...r){n&&clearTimeout(n),n=setTimeout(()=>{n=null,t(...r)},e)}}ha();var gp=c(pc());function vp(e,t){const n=(0,$u.c)(4);let r,i;n[0]!==e||n[1]!==t?(r=()=>{e&&"string"==typeof t&&t!==e.getValue()&&e.setValue(t)},i=[e,t],n[0]=e,n[1]=t,n[2]=r,n[3]=i):(r=n[2],i=n[3]),(0,Fu.useEffect)(r,i)}function yp(e,t,n){const r=(0,$u.c)(5);let i,o;r[0]!==e||r[1]!==t||r[2]!==n?(i=()=>{null==e||e.setOption(t,n)},o=[e,t,n],r[0]=e,r[1]=t,r[2]=n,r[3]=i,r[4]=o):(i=r[3],o=r[4]),(0,Fu.useEffect)(i,o)}function bp(e,t,n,r,i){const o=(0,$u.c)(9);let a;o[0]!==i?(a={nonNull:!0,caller:i},o[0]=i,o[1]=a):a=o[1];const{updateActiveTabValues:s}=Qm(a);let l,u;o[2]!==t||o[3]!==e||o[4]!==n||o[5]!==r||o[6]!==s?(l=()=>{if(!e)return;const{storage:i}=Uu.getState(),o=mp(500,e=>{null!==n&&i.set(n,e)}),a=mp(100,e=>{s({[r]:e})}),l=(e,n)=>{if(!n)return;const r=e.getValue();o(r),a(r),null==t||t(r)};return e.on("change",l),()=>e.off("change",l)},u=[t,e,n,r,s],o[2]=t,o[3]=e,o[4]=n,o[5]=r,o[6]=s,o[7]=l,o[8]=u):(l=o[7],u=o[8]),(0,Fu.useEffect)(l,u)}function wp(e,t){const n=(0,$u.c)(7),{schema:r,setSchemaReference:i}=bc(),o=gc();let a,s;n[0]!==t||n[1]!==e||n[2]!==o||n[3]!==r||n[4]!==i?(a=()=>{if(!e)return;const n=(e,n)=>{!function(e,t,{schema:n,setSchemaReference:r},i,o){function a(e){const t=null==i?void 0:i.referencePlugin;if(!(n&&t&&e.currentTarget instanceof HTMLElement))return;const a=e.currentTarget.textContent||"",s=n.getType(a);s&&(i.setVisiblePlugin(t),r({kind:"Type",type:s}),null==o||o(s))}dc([],{useCommonAddons:!1}).then(e=>{let n,r,i,o,s,l,u,c,d;e.on(t,"select",(e,t)=>{if(!n){const e=t.parentNode;n=document.createElement("div"),n.className="CodeMirror-hint-information",e.append(n);const f=document.createElement("header");f.className="CodeMirror-hint-information-header",n.append(f),r=document.createElement("span"),r.className="CodeMirror-hint-information-field-name",f.append(r),i=document.createElement("span"),i.className="CodeMirror-hint-information-type-name-pill",f.append(i),o=document.createElement("span"),i.append(o),s=document.createElement("a"),s.className="CodeMirror-hint-information-type-name",s.href="javascript:void 0",s.addEventListener("click",a),i.append(s),l=document.createElement("span"),i.append(l),u=document.createElement("div"),u.className="CodeMirror-hint-information-description",n.append(u),c=document.createElement("div"),c.className="CodeMirror-hint-information-deprecation",n.append(c);const p=document.createElement("span");p.className="CodeMirror-hint-information-deprecation-label",p.textContent="Deprecated",c.append(p),d=document.createElement("div"),d.className="CodeMirror-hint-information-deprecation-reason",c.append(d);const h=parseInt(window.getComputedStyle(n).paddingBottom.replace(/px$/,""),10)||0,m=parseInt(window.getComputedStyle(n).maxHeight.replace(/px$/,""),10)||0,g=()=>{n&&(n.style.paddingTop=e.scrollTop+h+"px",n.style.maxHeight=e.scrollTop+m+"px")};let v;e.addEventListener("scroll",g),e.addEventListener("DOMNodeRemoved",v=t=>{t.target===e&&(e.removeEventListener("scroll",g),e.removeEventListener("DOMNodeRemoved",v),null==n||n.removeEventListener("click",a),n=null,r=null,i=null,o=null,s=null,l=null,u=null,c=null,d=null,v=null)})}if(r&&(r.textContent=e.text),i&&o&&s&&l)if(e.type){i.style.display="inline";const t=e=>{ln(e)?(l.textContent="!"+l.textContent,t(e.ofType)):sn(e)?(o.textContent+="[",l.textContent="]"+l.textContent,t(e.ofType)):s.textContent=e.name};o.textContent="",l.textContent="",t(e.type)}else o.textContent="",s.textContent="",l.textContent="",i.style.display="none";u&&(e.description?(u.style.display="block",u.innerHTML=hp.render(e.description)):(u.style.display="none",u.innerHTML="")),c&&d&&(e.deprecationReason?(c.style.display="block",d.innerHTML=hp.render(e.deprecationReason)):(c.style.display="none",d.innerHTML=""))})})}(0,n,{schema:r,setSchemaReference:i},o,e=>{null==t||t({kind:"Type",type:e,schema:r||void 0})})};return e.on("hasCompletion",n),()=>e.off("hasCompletion",n)},s=[t,e,o,r,i],n[0]=t,n[1]=e,n[2]=o,n[3]=r,n[4]=i,n[5]=a,n[6]=s):(a=n[5],s=n[6]),(0,Fu.useEffect)(a,s)}function xp(e,t,n){const r=(0,$u.c)(5);let i,o;r[0]!==n||r[1]!==e||r[2]!==t?(i=()=>{if(e){for(const n of t)e.removeKeyMap(n);if(n){const r={};for(const e of t)r[e]=()=>n();e.addKeyMap(r)}}},o=[e,t,n],r[0]=n,r[1]=e,r[2]=t,r[3]=i,r[4]=o):(i=r[3],o=r[4]),(0,Fu.useEffect)(i,o)}ha();var Ep=Tp,kp=_p,Cp=Ap,Sp=Dp;function Tp(e){const t=(0,$u.c)(7);let n;t[0]!==e?(n=void 0===e?{}:e,t[0]=e,t[1]=n):n=t[1];const{caller:r,onCopyQuery:i}=n,o=r||Ep;let a;t[2]!==o?(a={nonNull:!0,caller:o},t[2]=o,t[3]=a):a=t[3];const{queryEditor:s}=Qm(a);let l;return t[4]!==i||t[5]!==s?(l=()=>{if(!s)return;const e=s.getValue();(0,gp.default)(e),null==i||i(e)},t[4]=i,t[5]=s,t[6]=l):l=t[6],l}function _p(e){const t=(0,$u.c)(7);let n;t[0]!==e?(n=void 0===e?{}:e,t[0]=e,t[1]=n):n=t[1];const{caller:r}=n,i=r||kp;let o;t[2]!==i?(o={nonNull:!0,caller:i},t[2]=i,t[3]=o):o=t[3];const{queryEditor:a}=Qm(o),{schema:s}=bc();let l;return t[4]!==a||t[5]!==s?(l=()=>{const e=null==a?void 0:a.documentAST,t=null==a?void 0:a.getValue();e&&t&&a.setValue(It(Ta(e,s)))},t[4]=a,t[5]=s,t[6]=l):l=t[6],l}function Np(e){return It(Ze(e))}function Ap(e){const t=(0,$u.c)(9);let n;t[0]!==e?(n=void 0===e?{}:e,t[0]=e,t[1]=n):n=t[1];const{caller:r,onPrettifyQuery:i}=n,o=void 0===i?Np:i,a=r||Cp;let s;t[2]!==a?(s={nonNull:!0,caller:a},t[2]=a,t[3]=s):s=t[3];const{queryEditor:l,headerEditor:u,variableEditor:c}=Qm(s);let d;return t[4]!==u||t[5]!==o||t[6]!==l||t[7]!==c?(d=async()=>{if(c){const t=c.getValue();try{const e=JSON.stringify(JSON.parse(t),null,2);e!==t&&c.setValue(e)}catch(e){}}if(u){const e=u.getValue();try{const t=JSON.stringify(JSON.parse(e),null,2);t!==e&&u.setValue(t)}catch(t){}}if(l){const e=l.getValue();try{const t=await o(e);t!==e&&l.setValue(t)}catch(n){}}},t[4]=u,t[5]=o,t[6]=l,t[7]=c,t[8]=d):d=t[8],d}function Dp(e){const t=(0,$u.c)(8);let n;t[0]!==e?(n=void 0===e?{}:e,t[0]=e,t[1]=n):n=t[1];const{getDefaultFieldNames:r,caller:i}=n,{schema:o}=bc(),a=i||Sp;let s;t[2]!==a?(s={nonNull:!0,caller:a},t[2]=a,t[3]=s):s=t[3];const{queryEditor:l}=Qm(s);let u;return t[4]!==r||t[5]!==l||t[6]!==o?(u=()=>{if(!l)return;const{insertions:e,result:t}=xa(o,l.getValue(),r);return e&&e.length>0&&l.operation(()=>{const n=l.getCursor(),r=l.indexFromPos(n);l.setValue(t||"");let i=0;const o=e.map(e=>{const{index:t,string:n}=e;return i+=n.length,l.markText(l.posFromIndex(t+i),l.posFromIndex(t+i),{className:"auto-inserted-leaf",clearOnEnter:!0,title:"Automatically added leaf fields"})});setTimeout(()=>{for(const e of o)e.clear()},7e3);let a=r;for(const{index:t,string:s}of e)t<r&&(a+=s.length);l.setCursor(l.posFromIndex(a))}),t},t[4]=r,t[5]=l,t[6]=o,t[7]=u):u=t[7],u}var Op=s((e,t)=>{var n;n=function(e){e.defineMode("javascript",function(t,n){var r,i,o=t.indentUnit,a=n.statementIndent,s=n.jsonld,l=n.json||s,u=!1!==n.trackScope,c=n.typescript,d=n.wordCharacters||/[\w$\xa1-\uffff]/,f=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("keyword d"),o=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:e("new"),delete:r,void:r,throw:r,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r}}(),p=/[+\-*&%=<>!?|~^@]/,h=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function m(e,t,n){return r=e,i=n,t}function g(e,t){var n,r=e.next();if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){var r,i=!1;if(s&&"@"==e.peek()&&e.match(h))return t.tokenize=g,m("jsonld-keyword","meta");for(;null!=(r=e.next())&&(r!=n||i);)i=!i&&"\\"==r;return i||(t.tokenize=g),m("string","string")}),t.tokenize(e,t);if("."==r&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return m("number","number");if("."==r&&e.match(".."))return m("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return m(r);if("="==r&&e.eat(">"))return m("=>","operator");if("0"==r&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return m("number","number");if(/\d/.test(r))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),m("number","number");if("/"==r)return e.eat("*")?(t.tokenize=v,v(e,t)):e.eat("/")?(e.skipToEnd(),m("comment","comment")):Je(e,t,1)?(function(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),m("regexp","string-2")):(e.eat("="),m("operator","operator",e.current()));if("`"==r)return t.tokenize=y,y(e,t);if("#"==r&&"!"==e.peek())return e.skipToEnd(),m("meta","meta");if("#"==r&&e.eatWhile(d))return m("variable","property");if("<"==r&&e.match("!--")||"-"==r&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),m("comment","comment");if(p.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-|&?]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),"?"==r&&e.eat(".")?m("."):m("operator","operator",e.current());if(d.test(r)){e.eatWhile(d);var i=e.current();if("."!=t.lastType){if(f.propertyIsEnumerable(i)){var o=f[i];return m(o.type,o.style,i)}if("async"==i&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return m("async","keyword",i)}return m("variable","variable",i)}}function v(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=g;break}r="*"==n}return m("comment","comment")}function y(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=g;break}r=!r&&"\\"==n}return m("quasi","string-2",e.current())}function b(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(c){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var i=0,o=!1,a=n-1;a>=0;--a){var s=e.string.charAt(a),l="([{}])".indexOf(s);if(l>=0&&l<3){if(!i){++a;break}if(0==--i){"("==s&&(o=!0);break}}else if(l>=3&&l<6)++i;else if(d.test(s))o=!0;else if(/["'\/`]/.test(s))for(;;--a){if(0==a)return;if(e.string.charAt(a-1)==s&&"\\"!=e.string.charAt(a-2)){a--;break}}else if(o&&!i){++a;break}}o&&!i&&(t.fatArrowAt=a)}}var w={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function x(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function E(e,t){if(!u)return!1;for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==t)return!0}function k(e,t,n,r,i){var o=e.cc;for(C.state=e,C.stream=i,C.marked=null,C.cc=o,C.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():l?$:B)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return C.marked?C.marked:"variable"==n&&E(e,r)?"variable-2":t}}var C={state:null,column:null,marked:null,cc:null};function S(){for(var e=arguments.length-1;e>=0;e--)C.cc.push(arguments[e])}function T(){return S.apply(null,arguments),!0}function _(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function N(e){var t=C.state;if(C.marked="def",u){if(t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var r=A(e,t.context);if(null!=r)return void(t.context=r)}else if(!_(e,t.localVars))return void(t.localVars=new L(e,t.localVars));n.globalVars&&!_(e,t.globalVars)&&(t.globalVars=new L(e,t.globalVars))}}function A(e,t){if(t){if(t.block){var n=A(e,t.prev);return n?n==t.prev?t:new O(n,t.vars,!0):null}return _(e,t.vars)?t:new O(t.prev,new L(e,t.vars),!1)}return null}function D(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function O(e,t,n){this.prev=e,this.vars=t,this.block=n}function L(e,t){this.name=e,this.next=t}var I=new L("this",new L("arguments",null));function M(){C.state.context=new O(C.state.context,C.state.localVars,!1),C.state.localVars=I}function F(){C.state.context=new O(C.state.context,C.state.localVars,!0),C.state.localVars=null}function P(){C.state.localVars=C.state.context.vars,C.state.context=C.state.context.prev}function R(e,t){var n=function(){var n=C.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new x(r,C.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function j(){var e=C.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function V(e){return function t(n){return n==e?T():";"==e||"}"==n||")"==n||"]"==n?S():T(t)}}function B(e,t){return"var"==e?T(R("vardef",t),Ce,V(";"),j):"keyword a"==e?T(R("form"),H,B,j):"keyword b"==e?T(R("form"),B,j):"keyword d"==e?C.stream.match(/^\s*$/,!1)?T():T(R("stat"),q,V(";"),j):"debugger"==e?T(V(";")):"{"==e?T(R("}"),F,le,j,P):";"==e?T():"if"==e?("else"==C.state.lexical.info&&C.state.cc[C.state.cc.length-1]==j&&C.state.cc.pop()(),T(R("form"),H,B,j,De)):"function"==e?T(Me):"for"==e?T(R("form"),F,Oe,B,P,j):"class"==e||c&&"interface"==t?(C.marked="keyword",T(R("form","class"==e?e:t),Ve,j)):"variable"==e?c&&"declare"==t?(C.marked="keyword",T(B)):c&&("module"==t||"enum"==t||"type"==t)&&C.stream.match(/^\s*\w/,!1)?(C.marked="keyword","enum"==t?T(Xe):"type"==t?T(Pe,V("operator"),pe,V(";")):T(R("form"),Se,V("{"),R("}"),le,j,j)):c&&"namespace"==t?(C.marked="keyword",T(R("form"),$,B,j)):c&&"abstract"==t?(C.marked="keyword",T(B)):T(R("stat"),te):"switch"==e?T(R("form"),H,V("{"),R("}","switch"),F,le,j,j,P):"case"==e?T($,V(":")):"default"==e?T(V(":")):"catch"==e?T(R("form"),M,z,B,j,P):"export"==e?T(R("stat"),Ue,j):"import"==e?T(R("stat"),We,j):"async"==e?T(B):"@"==t?T($,B):S(R("stat"),$,V(";"),j)}function z(e){if("("==e)return T(Re,V(")"))}function $(e,t){return W(e,t,!1)}function U(e,t){return W(e,t,!0)}function H(e){return"("!=e?S():T(R(")"),q,V(")"),j)}function W(e,t,n){if(C.state.fatArrowAt==C.stream.start){var r=n?Z:X;if("("==e)return T(M,R(")"),ae(Re,")"),j,V("=>"),r,P);if("variable"==e)return S(M,Se,V("=>"),r,P)}var i=n?K:G;return w.hasOwnProperty(e)?T(i):"function"==e?T(Me,i):"class"==e||c&&"interface"==t?(C.marked="keyword",T(R("form"),je,j)):"keyword c"==e||"async"==e?T(n?U:$):"("==e?T(R(")"),q,V(")"),j,i):"operator"==e||"spread"==e?T(n?U:$):"["==e?T(R("]"),Qe,j,i):"{"==e?se(re,"}",null,i):"quasi"==e?S(Y,i):"new"==e?T(function(e){return function(t){return"."==t?T(e?ee:J):"variable"==t&&c?T(xe,e?K:G):S(e?U:$)}}(n)):T()}function q(e){return e.match(/[;\}\)\],]/)?S():S($)}function G(e,t){return","==e?T(q):K(e,t,!1)}function K(e,t,n){var r=0==n?G:K,i=0==n?$:U;return"=>"==e?T(M,n?Z:X,P):"operator"==e?/\+\+|--/.test(t)||c&&"!"==t?T(r):c&&"<"==t&&C.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?T(R(">"),ae(pe,">"),j,r):"?"==t?T($,V(":"),i):T(i):"quasi"==e?S(Y,r):";"!=e?"("==e?se(U,")","call",r):"."==e?T(ne,r):"["==e?T(R("]"),q,V("]"),j,r):c&&"as"==t?(C.marked="keyword",T(pe,r)):"regexp"==e?(C.state.lastType=C.marked="operator",C.stream.backUp(C.stream.pos-C.stream.start-1),T(i)):void 0:void 0}function Y(e,t){return"quasi"!=e?S():"${"!=t.slice(t.length-2)?T(Y):T(q,Q)}function Q(e){if("}"==e)return C.marked="string-2",C.state.tokenize=y,T(Y)}function X(e){return b(C.stream,C.state),S("{"==e?B:$)}function Z(e){return b(C.stream,C.state),S("{"==e?B:U)}function J(e,t){if("target"==t)return C.marked="keyword",T(G)}function ee(e,t){if("target"==t)return C.marked="keyword",T(K)}function te(e){return":"==e?T(j,B):S(G,V(";"),j)}function ne(e){if("variable"==e)return C.marked="property",T()}function re(e,t){return"async"==e?(C.marked="property",T(re)):"variable"==e||"keyword"==C.style?(C.marked="property","get"==t||"set"==t?T(ie):(c&&C.state.fatArrowAt==C.stream.start&&(n=C.stream.match(/^\s*:\s*/,!1))&&(C.state.fatArrowAt=C.stream.pos+n[0].length),T(oe))):"number"==e||"string"==e?(C.marked=s?"property":C.style+" property",T(oe)):"jsonld-keyword"==e?T(oe):c&&D(t)?(C.marked="keyword",T(re)):"["==e?T($,ue,V("]"),oe):"spread"==e?T(U,oe):"*"==t?(C.marked="keyword",T(re)):":"==e?S(oe):void 0;var n}function ie(e){return"variable"!=e?S(oe):(C.marked="property",T(Me))}function oe(e){return":"==e?T(U):"("==e?S(Me):void 0}function ae(e,t,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=C.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),T(function(n,r){return n==t||r==t?S():S(e)},r)}return i==t||o==t?T():n&&n.indexOf(";")>-1?S(e):T(V(t))}return function(n,i){return n==t||i==t?T():S(e,r)}}function se(e,t,n){for(var r=3;r<arguments.length;r++)C.cc.push(arguments[r]);return T(R(t,n),ae(e,t),j)}function le(e){return"}"==e?T():S(B,le)}function ue(e,t){if(c){if(":"==e)return T(pe);if("?"==t)return T(ue)}}function ce(e,t){if(c&&(":"==e||"in"==t))return T(pe)}function de(e){if(c&&":"==e)return C.stream.match(/^\s*\w+\s+is\b/,!1)?T($,fe,pe):T(pe)}function fe(e,t){if("is"==t)return C.marked="keyword",T()}function pe(e,t){return"keyof"==t||"typeof"==t||"infer"==t||"readonly"==t?(C.marked="keyword",T("typeof"==t?U:pe)):"variable"==e||"void"==t?(C.marked="type",T(we)):"|"==t||"&"==t?T(pe):"string"==e||"number"==e||"atom"==e?T(we):"["==e?T(R("]"),ae(pe,"]",","),j,we):"{"==e?T(R("}"),me,j,we):"("==e?T(ae(be,")"),he,we):"<"==e?T(ae(pe,">"),pe):"quasi"==e?S(ve,we):void 0}function he(e){if("=>"==e)return T(pe)}function me(e){return e.match(/[\}\)\]]/)?T():","==e||";"==e?T(me):S(ge,me)}function ge(e,t){return"variable"==e||"keyword"==C.style?(C.marked="property",T(ge)):"?"==t||"number"==e||"string"==e?T(ge):":"==e?T(pe):"["==e?T(V("variable"),ce,V("]"),ge):"("==e?S(Fe,ge):e.match(/[;\}\)\],]/)?void 0:T()}function ve(e,t){return"quasi"!=e?S():"${"!=t.slice(t.length-2)?T(ve):T(pe,ye)}function ye(e){if("}"==e)return C.marked="string-2",C.state.tokenize=y,T(ve)}function be(e,t){return"variable"==e&&C.stream.match(/^\s*[?:]/,!1)||"?"==t?T(be):":"==e?T(pe):"spread"==e?T(be):S(pe)}function we(e,t){return"<"==t?T(R(">"),ae(pe,">"),j,we):"|"==t||"."==e||"&"==t?T(pe):"["==e?T(pe,V("]"),we):"extends"==t||"implements"==t?(C.marked="keyword",T(pe)):"?"==t?T(pe,V(":"),pe):void 0}function xe(e,t){if("<"==t)return T(R(">"),ae(pe,">"),j,we)}function Ee(){return S(pe,ke)}function ke(e,t){if("="==t)return T(pe)}function Ce(e,t){return"enum"==t?(C.marked="keyword",T(Xe)):S(Se,ue,Ne,Ae)}function Se(e,t){return c&&D(t)?(C.marked="keyword",T(Se)):"variable"==e?(N(t),T()):"spread"==e?T(Se):"["==e?se(_e,"]"):"{"==e?se(Te,"}"):void 0}function Te(e,t){return"variable"!=e||C.stream.match(/^\s*:/,!1)?("variable"==e&&(C.marked="property"),"spread"==e?T(Se):"}"==e?S():"["==e?T($,V("]"),V(":"),Te):T(V(":"),Se,Ne)):(N(t),T(Ne))}function _e(){return S(Se,Ne)}function Ne(e,t){if("="==t)return T(U)}function Ae(e){if(","==e)return T(Ce)}function De(e,t){if("keyword b"==e&&"else"==t)return T(R("form","else"),B,j)}function Oe(e,t){return"await"==t?T(Oe):"("==e?T(R(")"),Le,j):void 0}function Le(e){return"var"==e?T(Ce,Ie):"variable"==e?T(Ie):S(Ie)}function Ie(e,t){return")"==e?T():";"==e?T(Ie):"in"==t||"of"==t?(C.marked="keyword",T($,Ie)):S($,Ie)}function Me(e,t){return"*"==t?(C.marked="keyword",T(Me)):"variable"==e?(N(t),T(Me)):"("==e?T(M,R(")"),ae(Re,")"),j,de,B,P):c&&"<"==t?T(R(">"),ae(Ee,">"),j,Me):void 0}function Fe(e,t){return"*"==t?(C.marked="keyword",T(Fe)):"variable"==e?(N(t),T(Fe)):"("==e?T(M,R(")"),ae(Re,")"),j,de,P):c&&"<"==t?T(R(">"),ae(Ee,">"),j,Fe):void 0}function Pe(e,t){return"keyword"==e||"variable"==e?(C.marked="type",T(Pe)):"<"==t?T(R(">"),ae(Ee,">"),j):void 0}function Re(e,t){return"@"==t&&T($,Re),"spread"==e?T(Re):c&&D(t)?(C.marked="keyword",T(Re)):c&&"this"==e?T(ue,Ne):S(Se,ue,Ne)}function je(e,t){return"variable"==e?Ve(e,t):Be(e,t)}function Ve(e,t){if("variable"==e)return N(t),T(Be)}function Be(e,t){return"<"==t?T(R(">"),ae(Ee,">"),j,Be):"extends"==t||"implements"==t||c&&","==e?("implements"==t&&(C.marked="keyword"),T(c?pe:$,Be)):"{"==e?T(R("}"),ze,j):void 0}function ze(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||c&&D(t))&&C.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1)?(C.marked="keyword",T(ze)):"variable"==e||"keyword"==C.style?(C.marked="property",T($e,ze)):"number"==e||"string"==e?T($e,ze):"["==e?T($,ue,V("]"),$e,ze):"*"==t?(C.marked="keyword",T(ze)):c&&"("==e?S(Fe,ze):";"==e||","==e?T(ze):"}"==e?T():"@"==t?T($,ze):void 0}function $e(e,t){if("!"==t)return T($e);if("?"==t)return T($e);if(":"==e)return T(pe,Ne);if("="==t)return T(U);var n=C.state.lexical.prev;return S(n&&"interface"==n.info?Fe:Me)}function Ue(e,t){return"*"==t?(C.marked="keyword",T(Ye,V(";"))):"default"==t?(C.marked="keyword",T($,V(";"))):"{"==e?T(ae(He,"}"),Ye,V(";")):S(B)}function He(e,t){return"as"==t?(C.marked="keyword",T(V("variable"))):"variable"==e?S(U,He):void 0}function We(e){return"string"==e?T():"("==e?S($):"."==e?S(G):S(qe,Ge,Ye)}function qe(e,t){return"{"==e?se(qe,"}"):("variable"==e&&N(t),"*"==t&&(C.marked="keyword"),T(Ke))}function Ge(e){if(","==e)return T(qe,Ge)}function Ke(e,t){if("as"==t)return C.marked="keyword",T(qe)}function Ye(e,t){if("from"==t)return C.marked="keyword",T($)}function Qe(e){return"]"==e?T():S(ae(U,"]"))}function Xe(){return S(R("form"),Se,V("{"),R("}"),ae(Ze,"}"),j,j)}function Ze(){return S(Se,Ne)}function Je(e,t,n){return t.tokenize==g&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}return M.lex=F.lex=!0,P.lex=!0,j.lex=!0,{startState:function(e){var t={tokenize:g,lastType:"sof",cc:[],lexical:new x((e||0)-o,0,"block",!1),localVars:n.localVars,context:n.localVars&&new O(null,null,!1),indented:e||0};return n.globalVars&&"object"==typeof n.globalVars&&(t.globalVars=n.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),b(e,t)),t.tokenize!=v&&e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==r?n:(t.lastType="operator"!=r||"++"!=i&&"--"!=i?r:"incdec",k(t,n,r,i,e))},indent:function(t,r){if(t.tokenize==v||t.tokenize==y)return e.Pass;if(t.tokenize!=g)return 0;var i,s=r&&r.charAt(0),l=t.lexical;if(!/^\s*else\b/.test(r))for(var u=t.cc.length-1;u>=0;--u){var c=t.cc[u];if(c==j)l=l.prev;else if(c!=De&&c!=P)break}for(;("stat"==l.type||"form"==l.type)&&("}"==s||(i=t.cc[t.cc.length-1])&&(i==G||i==K)&&!/^[,\.=+\-*:?[\(]/.test(r));)l=l.prev;a&&")"==l.type&&"stat"==l.prev.type&&(l=l.prev);var d=l.type,f=s==d;return"vardef"==d?l.indented+("operator"==t.lastType||","==t.lastType?l.info.length+1:0):"form"==d&&"{"==s?l.indented:"form"==d?l.indented+o:"stat"==d?l.indented+(function(e,t){return"operator"==e.lastType||","==e.lastType||p.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}(t,r)?a||o:0):"switch"!=l.info||f||0==n.doubleIndentSwitch?l.align?l.column+(f?0:1):l.indented+(f?0:o):l.indented+(/^(?:case|default)\b/.test(r)?o:2*o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:l?null:"/*",blockCommentEnd:l?null:"*/",blockCommentContinue:l?null:" * ",lineComment:l?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:l?"json":"javascript",jsonldMode:s,jsonMode:l,expressionAllowed:Je,skipExpression:function(t){k(t,"atom","atom","true",new e.StringStream("",2,null))}}}),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/manifest+json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})},"object"==typeof e&&"object"==typeof t?n(Qu()):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}),Lp=Ip;function Ip(e,t){const n=(0,$u.c)(17);let r;n[0]!==e?(r=void 0===e?{}:e,n[0]=e,n[1]=r):r=n[1];const{editorTheme:i,keyMap:o,onEdit:a,readOnly:s}=r,l=void 0===i?lc:i,u=void 0===o?uc:o,d=void 0!==s&&s,f=t||Lp;let p;n[2]!==f?(p={nonNull:!0,caller:f},n[2]=f,n[3]=p):p=n[3];const{initialHeaders:h,headerEditor:m,setHeaderEditor:g,shouldPersistHeaders:v}=Qm(p),y=ng(),b=t||Lp;let w;n[4]!==b?(w={caller:b},n[4]=b,n[5]=w):w=n[5];const x=_p(w),E=t||Lp;let k;n[6]!==E?(k={caller:E},n[6]=E,n[7]=k):k=n[7];const C=Ap(k),S=(0,Fu.useRef)(null);let T,_,N,A,D;return n[8]!==l||n[9]!==h||n[10]!==d||n[11]!==g?(T=()=>{let e=!0;return dc([ga(()=>Promise.resolve().then(()=>c(Op())),void 0,import.meta.url)]).then(t=>{if(!e)return;const n=S.current;if(!n)return;const r=t(n,{value:h,lineNumbers:!0,tabSize:2,mode:{name:"javascript",json:!0},theme:l,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!d&&"nocursor",foldGutter:!0,gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:cc});r.addKeyMap({"Cmd-Space"(){r.showHint({completeSingle:!1,container:n})},"Ctrl-Space"(){r.showHint({completeSingle:!1,container:n})},"Alt-Space"(){r.showHint({completeSingle:!1,container:n})},"Shift-Space"(){r.showHint({completeSingle:!1,container:n})}}),r.on("keyup",Mp),g(r)}),()=>{e=!1}},_=[l,h,d,g],n[8]=l,n[9]=h,n[10]=d,n[11]=g,n[12]=T,n[13]=_):(T=n[12],_=n[13]),(0,Fu.useEffect)(T,_),yp(m,"keyMap",u),bp(m,a,v?Fp:null,"headers",Lp),n[14]===Symbol.for("react.memo_cache_sentinel")?(N=["Cmd-Enter","Ctrl-Enter"],n[14]=N):N=n[14],xp(m,N,null==y?void 0:y.run),n[15]===Symbol.for("react.memo_cache_sentinel")?(A=["Shift-Ctrl-P"],n[15]=A):A=n[15],xp(m,A,C),n[16]===Symbol.for("react.memo_cache_sentinel")?(D=["Shift-Ctrl-M"],n[16]=D):D=n[16],xp(m,D,x),S}function Mp(e,t){const{code:n,key:r,shiftKey:i}=t,o=n.startsWith("Key"),a=!i&&n.startsWith("Digit");(o||a||"_"===r||'"'===r)&&e.execCommand("autocomplete")}var Fp="headers",Pp=Array.from({length:11},(e,t)=>String.fromCharCode(8192+t)).concat(["\u2028","\u2029",""," "]),Rp=new RegExp("["+Pp.join("")+"]","g");function jp(e){return e.replace(Rp," ")}var Vp,Bp,zp,$p,Up=s((e,t)=>{var n;n=function(e){var t={},n=/[^\s\u00a0]/,r=e.Pos,i=e.cmpPos;function o(e){var t=e.search(n);return-1==t?0:t}function a(e,t){var n=e.getMode();return!1!==n.useInnerComments&&n.innerMode?e.getModeAt(t):n}e.commands.toggleComment=function(e){e.toggleComment()},e.defineExtension("toggleComment",function(e){e||(e=t);for(var n=this,i=1/0,o=this.listSelections(),a=null,s=o.length-1;s>=0;s--){var l=o[s].from(),u=o[s].to();l.line>=i||(u.line>=i&&(u=r(i,0)),i=l.line,null==a?n.uncomment(l,u,e)?a="un":(n.lineComment(l,u,e),a="line"):"un"==a?n.uncomment(l,u,e):n.lineComment(l,u,e))}}),e.defineExtension("lineComment",function(e,i,s){s||(s=t);var l=this,u=a(l,e),c=l.getLine(e.line);if(null!=c&&(d=e,f=c,!/\bstring\b/.test(l.getTokenTypeAt(r(d.line,0)))||/^[\'\"\`]/.test(f))){var d,f,p=s.lineComment||u.lineComment;if(p){var h=Math.min(0!=i.ch||i.line==e.line?i.line+1:i.line,l.lastLine()+1),m=null==s.padding?" ":s.padding,g=s.commentBlankLines||e.line==i.line;l.operation(function(){if(s.indent){for(var t=null,i=e.line;i<h;++i){var a=-1===(u=l.getLine(i)).search(n)?u:u.slice(0,o(u));(null==t||t.length>a.length)&&(t=a)}for(i=e.line;i<h;++i){var u=l.getLine(i),c=t.length;(g||n.test(u))&&(u.slice(0,c)!=t&&(c=o(u)),l.replaceRange(t+p+m,r(i,0),r(i,c)))}}else for(i=e.line;i<h;++i)(g||n.test(l.getLine(i)))&&l.replaceRange(p+m,r(i,0))})}else(s.blockCommentStart||u.blockCommentStart)&&(s.fullLines=!0,l.blockComment(e,i,s))}}),e.defineExtension("blockComment",function(e,o,s){s||(s=t);var l=this,u=a(l,e),c=s.blockCommentStart||u.blockCommentStart,d=s.blockCommentEnd||u.blockCommentEnd;if(c&&d){if(!/\bcomment\b/.test(l.getTokenTypeAt(r(e.line,0)))){var f=Math.min(o.line,l.lastLine());f!=e.line&&0==o.ch&&n.test(l.getLine(f))&&--f;var p=null==s.padding?" ":s.padding;e.line>f||l.operation(function(){if(0!=s.fullLines){var t=n.test(l.getLine(f));l.replaceRange(p+d,r(f)),l.replaceRange(c+p,r(e.line,0));var a=s.blockCommentLead||u.blockCommentLead;if(null!=a)for(var h=e.line+1;h<=f;++h)(h!=f||t)&&l.replaceRange(a+p,r(h,0))}else{var m=0==i(l.getCursor("to"),o),g=!l.somethingSelected();l.replaceRange(d,o),m&&l.setSelection(g?o:l.getCursor("from"),o),l.replaceRange(c,e)}})}}else(s.lineComment||u.lineComment)&&0!=s.fullLines&&l.lineComment(e,o,s)}),e.defineExtension("uncomment",function(e,i,o){o||(o=t);var s,l=this,u=a(l,e),c=Math.min(0!=i.ch||i.line==e.line?i.line:i.line-1,l.lastLine()),d=Math.min(e.line,c),f=o.lineComment||u.lineComment,p=[],h=null==o.padding?" ":o.padding;e:if(f){for(var m=d;m<=c;++m){var g=l.getLine(m),v=g.indexOf(f);if(v>-1&&!/comment/.test(l.getTokenTypeAt(r(m,v+1)))&&(v=-1),-1==v&&n.test(g))break e;if(v>-1&&n.test(g.slice(0,v)))break e;p.push(g)}if(l.operation(function(){for(var e=d;e<=c;++e){var t=p[e-d],n=t.indexOf(f),i=n+f.length;n<0||(t.slice(i,i+h.length)==h&&(i+=h.length),s=!0,l.replaceRange("",r(e,n),r(e,i)))}}),s)return!0}var y=o.blockCommentStart||u.blockCommentStart,b=o.blockCommentEnd||u.blockCommentEnd;if(!y||!b)return!1;var w=o.blockCommentLead||u.blockCommentLead,x=l.getLine(d),E=x.indexOf(y);if(-1==E)return!1;var k=c==d?x:l.getLine(c),C=k.indexOf(b,c==d?E+y.length:0),S=r(d,E+1),T=r(c,C+1);if(-1==C||!/comment/.test(l.getTokenTypeAt(S))||!/comment/.test(l.getTokenTypeAt(T))||l.getRange(S,T,"\n").indexOf(b)>-1)return!1;var _=x.lastIndexOf(y,e.ch),N=-1==_?-1:x.slice(0,e.ch).indexOf(b,_+y.length);if(-1!=_&&-1!=N&&N+b.length!=e.ch)return!1;N=k.indexOf(b,i.ch);var A=k.slice(i.ch).lastIndexOf(y,N-i.ch);return _=-1==N||-1==A?-1:i.ch+A,(-1==N||-1==_||_==i.ch)&&(l.operation(function(){l.replaceRange("",r(c,C-(h&&k.slice(C-h.length,C)==h?h.length:0)),r(c,C+b.length));var e=E+y.length;if(h&&x.slice(e,e+h.length)==h&&(e+=h.length),l.replaceRange("",r(d,E),r(d,e)),w)for(var t=d+1;t<=c;++t){var i=l.getLine(t),o=i.indexOf(w);if(-1!=o&&!n.test(i.slice(0,o))){var a=o+w.length;h&&i.slice(a,a+h.length)==h&&(a+=h.length),l.replaceRange("",r(t,o),r(t,a))}}}),!0)})},"object"==typeof e&&"object"==typeof t?n(Qu()):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)}),Hp=s((e,t)=>{var n;n=function(e){function t(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function n(e){return e.state.search||(e.state.search=new t)}function r(e){return"string"==typeof e&&e==e.toLowerCase()}function i(e,t,n){return e.getSearchCursor(t,n,{caseFold:r(t),multiline:!0})}function o(e,t,n,r,i){e.openDialog?e.openDialog(t,i,{value:r,selectValueOnOpen:!0,bottom:e.options.search.bottom}):i(prompt(n,r))}function a(e){return e.replace(/\\([nrt\\])/g,function(e,t){return"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"==t?"\\":e})}function s(e){var t=e.match(/^\/(.*)\/([a-z]*)$/);if(t)try{e=new RegExp(t[1],-1==t[2].indexOf("i")?"":"i")}catch(RR){}else e=a(e);return("string"==typeof e?""==e:e.test(""))&&(e=/x^/),e}function l(e,t,n){t.queryText=n,t.query=s(n),e.removeOverlay(t.overlay,r(t.query)),t.overlay=function(e,t){return"string"==typeof e?e=new RegExp(e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),t?"gi":"g"):e.global||(e=new RegExp(e.source,e.ignoreCase?"gi":"g")),{token:function(t){e.lastIndex=t.pos;var n=e.exec(t.string);if(n&&n.index==t.pos)return t.pos+=n[0].length||1,"searching";n?t.pos=n.index:t.skipToEnd()}}}(t.query,r(t.query)),e.addOverlay(t.overlay),e.showMatchesOnScrollbar&&(t.annotate&&(t.annotate.clear(),t.annotate=null),t.annotate=e.showMatchesOnScrollbar(t.query,r(t.query)))}function u(t,r,i,a){var s=n(t);if(s.query)return c(t,r);var u=t.getSelection()||s.lastQuery;if(u instanceof RegExp&&"x^"==u.source&&(u=null),i&&t.openDialog){var f=null,h=function(n,r){e.e_stop(r),n&&(n!=s.queryText&&(l(t,s,n),s.posFrom=s.posTo=t.getCursor()),f&&(f.style.opacity=1),c(t,r.shiftKey,function(e,n){var r;n.line<3&&document.querySelector&&(r=t.display.wrapper.querySelector(".CodeMirror-dialog"))&&r.getBoundingClientRect().bottom-4>t.cursorCoords(n,"window").top&&((f=r).style.opacity=.4)}))};!function(e,t,n,r,i){e.openDialog(t,r,{value:n,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){d(e)},onKeyDown:i,bottom:e.options.search.bottom})}(t,p(t),u,h,function(r,i){var o=e.keyName(r),a=t.getOption("extraKeys"),s=a&&a[o]||e.keyMap[t.getOption("keyMap")][o];"findNext"==s||"findPrev"==s||"findPersistentNext"==s||"findPersistentPrev"==s?(e.e_stop(r),l(t,n(t),i),t.execCommand(s)):"find"!=s&&"findPersistent"!=s||(e.e_stop(r),h(i,r))}),a&&u&&(l(t,s,u),c(t,r))}else o(t,p(t),"Search for:",u,function(e){e&&!s.query&&t.operation(function(){l(t,s,e),s.posFrom=s.posTo=t.getCursor(),c(t,r)})})}function c(t,r,o){t.operation(function(){var a=n(t),s=i(t,a.query,r?a.posFrom:a.posTo);(s.find(r)||(s=i(t,a.query,r?e.Pos(t.lastLine()):e.Pos(t.firstLine(),0))).find(r))&&(t.setSelection(s.from(),s.to()),t.scrollIntoView({from:s.from(),to:s.to()},20),a.posFrom=s.from(),a.posTo=s.to(),o&&o(s.from(),s.to()))})}function d(e){e.operation(function(){var t=n(e);t.lastQuery=t.query,t.query&&(t.query=t.queryText=null,e.removeOverlay(t.overlay),t.annotate&&(t.annotate.clear(),t.annotate=null))})}function f(e,t){var n=e?document.createElement(e):document.createDocumentFragment();for(var r in t)n[r]=t[r];for(var i=2;i<arguments.length;i++){var o=arguments[i];n.appendChild("string"==typeof o?document.createTextNode(o):o)}return n}function p(e){var t=f("label",{className:"CodeMirror-search-label"},e.phrase("Search:"),f("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field",id:"CodeMirror-search-field"}));return t.setAttribute("for","CodeMirror-search-field"),f("",null,t," ",f("span",{style:"color: #666",className:"CodeMirror-search-hint"},e.phrase("(Use /re/ syntax for regexp search)")))}function h(e,t,n){e.operation(function(){for(var r=i(e,t);r.findNext();)if("string"!=typeof t){var o=e.getRange(r.from(),r.to()).match(t);r.replace(n.replace(/\$(\d)/g,function(e,t){return o[t]}))}else r.replace(n)})}function m(e,t){if(!e.getOption("readOnly")){var r=e.getSelection()||n(e).lastQuery,l=t?e.phrase("Replace all:"):e.phrase("Replace:");o(e,f("",null,f("span",{className:"CodeMirror-search-label"},l),function(e){return f("",null," ",f("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"})," ",f("span",{style:"color: #666",className:"CodeMirror-search-hint"},e.phrase("(Use /re/ syntax for regexp search)")))}(e)),l,r,function(n){n&&(n=s(n),o(e,function(e){return f("",null,f("span",{className:"CodeMirror-search-label"},e.phrase("With:"))," ",f("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"}))}(e),e.phrase("Replace with:"),"",function(r){if(r=a(r),t)h(e,n,r);else{d(e);var o=i(e,n,e.getCursor("from")),s=function(){var t,a=o.from();!(t=o.findNext())&&(o=i(e,n),!(t=o.findNext())||a&&o.from().line==a.line&&o.from().ch==a.ch)||(e.setSelection(o.from(),o.to()),e.scrollIntoView({from:o.from(),to:o.to()}),function(e,t,n,r){e.openConfirm?e.openConfirm(t,r):confirm(n)&&r[0]()}(e,function(e){return f("",null,f("span",{className:"CodeMirror-search-label"},e.phrase("Replace?"))," ",f("button",{},e.phrase("Yes"))," ",f("button",{},e.phrase("No"))," ",f("button",{},e.phrase("All"))," ",f("button",{},e.phrase("Stop")))}(e),e.phrase("Replace?"),[function(){l(t)},s,function(){h(e,n,r)}]))},l=function(e){o.replace("string"==typeof n?r:r.replace(/\$(\d)/g,function(t,n){return e[n]})),s()};s()}}))})}}e.defineOption("search",{bottom:!1}),e.commands.find=function(e){d(e),u(e)},e.commands.findPersistent=function(e){d(e),u(e,!1,!0)},e.commands.findPersistentNext=function(e){u(e,!1,!0,!0)},e.commands.findPersistentPrev=function(e){u(e,!0,!0,!0)},e.commands.findNext=u,e.commands.findPrev=function(e){u(e,!0)},e.commands.clearSearch=d,e.commands.replace=m,e.commands.replaceAll=function(e){m(e,!0)}},"object"==typeof e&&"object"==typeof t?n(Qu(),ic(),oc()):"function"==typeof define&&define.amd?define(["../../lib/codemirror","./searchcursor","../dialog/dialog"],n):n(CodeMirror)}),Wp=l({}),qp=a(()=>{Vp=c(Qu()),Xu(),Au(),Vp.default.registerHelper("hint","graphql",(e,t)=>{const{schema:n,externalFragments:r,autocompleteOptions:i}=t;if(!n)return;const o=e.getCursor(),a=e.getTokenAt(o),s=null!==a.type&&/"|\w/.test(a.string[0])?a.start:a.end,l=new cu(o.line,s),u={list:iu(n,e.getValue(),l,a,r,i).map(e=>{var t;return{text:null!==(t=null==e?void 0:e.rawInsert)&&void 0!==t?t:e.label,type:e.type,description:e.documentation,isDeprecated:e.isDeprecated,deprecationReason:e.deprecationReason}}),from:{line:o.line,ch:s},to:{line:o.line,ch:a.end}};return(null==u?void 0:u.list)&&u.list.length>0&&(u.from=Vp.default.Pos(u.from.line,u.from.ch),u.to=Vp.default.Pos(u.to.line,u.to.ch),Vp.default.signal(e,"hasCompletion",e,u,a)),u})}),Gp=l({}),Kp=a(()=>{Bp=c(Qu()),Au(),zp=["error","warning","information","hint"],$p={"GraphQL: Validation":"validation","GraphQL: Deprecation":"deprecation","GraphQL: Syntax":"syntax"},Bp.default.registerHelper("lint","graphql",(e,t)=>{const{schema:n,validationRules:r,externalFragments:i}=t;return function(e,t=null,n,r,i){var o,a;let s=null,l="";i&&(l="string"==typeof i?i:i.reduce((e,t)=>e+It(t)+"\n\n",""));const u=l?`${e}\n\n${l}`:e;try{s=Ze(u)}catch(tp){if(tp instanceof G){const t=function(e,t){const n=Dl(),r=n.startState(),i=t.split("\n");pu(i.length>=e.line,"Query text must have more lines than where the error happened");let o=null;for(let u=0;u<e.line;u++)for(o=new pl(i[u]);!o.eol()&&"invalidchar"!==n.token(o,r););pu(o,"Expected Parser stream to be available.");const a=e.line-1,s=o.getStartOfToken(),l=o.getCurrentPosition();return new uu(new cu(a,s),new cu(a,l))}(null!==(a=null===(o=tp.locations)||void 0===o?void 0:o[0])&&void 0!==a?a:{line:0,column:0},u);return[{severity:fu.Error,message:tp.message,source:"GraphQL: Syntax",range:t}]}throw tp}return function(e,t=null,n,r){if(!t)return[];const i=function(e,t,n,r){const i=Qo.filter(e=>e!==ki&&e!==Qr&&(!r||e!==si));return n&&Array.prototype.push.apply(i,n),ra(e,t,i).filter(e=>{if(e.message.includes("Unknown directive")&&e.nodes){const t=e.nodes[0];if(t&&t.kind===ae.DIRECTIVE){const e=t.name.value;if("arguments"===e||"argumentDefinitions"===e)return!1}}return!0})}(t,e,n,r).flatMap(e=>ku(e,fu.Error,"Validation")),o=ra(t,e,[sa]).flatMap(e=>ku(e,fu.Warning,"Deprecation"));return i.concat(o)}(s,t,n,r)}(e,n,r,void 0,i).map(e=>({message:e.message,severity:e.severity?zp[e.severity-1]:zp[0],type:e.source?$p[e.source]:void 0,from:Bp.default.Pos(e.range.start.line,e.range.start.character),to:Bp.default.Pos(e.range.end.line,e.range.end.character)}))})});function Yp(e,t){const n=[];let r=e;for(;null==r?void 0:r.kind;)n.push(r),r=r.prevState;for(let i=n.length-1;i>=0;i--)t(n[i])}var Qp=a(()=>{});function Xp(e,t){const n={schema:e,type:null,parentType:null,inputType:null,directiveDef:null,fieldDef:null,argDef:null,argDefs:null,objectFieldDefs:null};return Yp(t,t=>{var r,i;switch(t.kind){case"Query":case"ShortQuery":n.type=e.getQueryType();break;case"Mutation":n.type=e.getMutationType();break;case"Subscription":n.type=e.getSubscriptionType();break;case"InlineFragment":case"FragmentDefinition":t.type&&(n.type=e.getType(t.type));break;case"Field":case"AliasedField":n.fieldDef=n.type&&t.name?Zp(e,n.parentType,t.name):null,n.type=null===(r=n.fieldDef)||void 0===r?void 0:r.type;break;case"SelectionSet":n.parentType=n.type?yn(n.type):null;break;case"Directive":n.directiveDef=t.name?e.getDirective(t.name):null;break;case"Arguments":const o=t.prevState?"Field"===t.prevState.kind?n.fieldDef:"Directive"===t.prevState.kind?n.directiveDef:"AliasedField"===t.prevState.kind?t.prevState.name&&Zp(e,n.parentType,t.prevState.name):null:null;n.argDefs=o?o.args:null;break;case"Argument":if(n.argDef=null,n.argDefs)for(let e=0;e<n.argDefs.length;e++)if(n.argDefs[e].name===t.name){n.argDef=n.argDefs[e];break}n.inputType=null===(i=n.argDef)||void 0===i?void 0:i.type;break;case"EnumValue":const a=n.inputType?yn(n.inputType):null;n.enumValue=a instanceof Qt?function(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return e[n]}(a.getValues(),e=>e.value===t.name):null;break;case"ListValue":const s=n.inputType?gn(n.inputType):null;n.inputType=s instanceof Ht?s.ofType:null;break;case"ObjectValue":const l=n.inputType?yn(n.inputType):null;n.objectFieldDefs=l instanceof Xt?l.getFields():null;break;case"ObjectField":const u=t.name&&n.objectFieldDefs?n.objectFieldDefs[t.name]:null;n.inputType=null==u?void 0:u.type,n.fieldDef=u;break;case"NamedType":n.type=t.name?e.getType(t.name):null}}),n}function Zp(e,t,n){return n===pr.name&&e.getQueryType()===t?pr:n===hr.name&&e.getQueryType()===t?hr:n===mr.name&&fn(t)?mr:t&&t.getFields?t.getFields()[n]:void 0}var Jp=a(()=>{ha(),Qp()});function eh(e){return{kind:"Field",schema:e.schema,field:e.fieldDef,type:oh(e.fieldDef)?null:e.parentType}}function th(e){return{kind:"Directive",schema:e.schema,directive:e.directiveDef}}function nh(e){return e.directiveDef?{kind:"Argument",schema:e.schema,argument:e.argDef,directive:e.directiveDef}:{kind:"Argument",schema:e.schema,argument:e.argDef,field:e.fieldDef,type:oh(e.fieldDef)?null:e.parentType}}function rh(e){return{kind:"EnumValue",value:e.enumValue||void 0,type:e.inputType?yn(e.inputType):void 0}}function ih(e,t){return{kind:"Type",schema:e.schema,type:t||e.type}}function oh(e){return"__"===e.name.slice(0,2)}var ah,sh=a(()=>{ha()}),lh=l({});function uh(e,t){const n=e.state.info,r=t.target||t.srcElement;if(!(r instanceof HTMLElement))return;if("SPAN"!==r.nodeName||void 0!==n.hoverTimeout)return;const i=r.getBoundingClientRect(),o=function(){clearTimeout(n.hoverTimeout),n.hoverTimeout=setTimeout(s,l)},a=function(){ah.default.off(document,"mousemove",o),ah.default.off(e.getWrapperElement(),"mouseout",a),clearTimeout(n.hoverTimeout),n.hoverTimeout=void 0},s=function(){ah.default.off(document,"mousemove",o),ah.default.off(e.getWrapperElement(),"mouseout",a),n.hoverTimeout=void 0,function(e,t){const n=e.coordsChar({left:(t.left+t.right)/2,top:(t.top+t.bottom)/2},"window"),{options:r}=e.state.info,i=r.render||e.getHelper(n,"info");if(i){const o=e.getTokenAt(n,!0);if(o){const a=i(o,r,e,n);a&&function(e,t,n){const r=document.createElement("div");r.className="CodeMirror-info",r.append(n),document.body.append(r);const i=r.getBoundingClientRect(),{marginLeft:o,marginRight:a,marginBottom:s,marginTop:l}=getComputedStyle(r),u=i.right-i.left+parseFloat(o)+parseFloat(a),c=i.bottom-i.top+parseFloat(l)+parseFloat(s);let d=t.bottom;c>window.innerHeight-t.bottom-15&&t.top>window.innerHeight-t.bottom&&(d=t.top-c),d<0&&(d=t.bottom);let f,p=Math.max(0,window.innerWidth-u-15);p>t.left&&(p=t.left),r.style.opacity="1",r.style.top=d+"px",r.style.left=p+"px";const h=function(){clearTimeout(f)},m=function(){clearTimeout(f),f=setTimeout(g,200)},g=function(){ah.default.off(r,"mouseover",h),ah.default.off(r,"mouseout",m),ah.default.off(e.getWrapperElement(),"mouseout",m),r.style.opacity?(r.style.opacity="0",setTimeout(()=>{r.parentNode&&r.remove()},600)):r.parentNode&&r.remove()};ah.default.on(r,"mouseover",h),ah.default.on(r,"mouseout",m),ah.default.on(e.getWrapperElement(),"mouseout",m)}(e,t,a)}}}(e,i)},l=function(e){const{options:t}=e.state.info;return(null==t?void 0:t.hoverTime)||500}(e);n.hoverTimeout=setTimeout(s,l),ah.default.on(document,"mousemove",o),ah.default.on(e.getWrapperElement(),"mouseout",a)}var ch,dh=a(()=>{(ah=c(Qu())).default.defineOption("info",!1,(e,t,n)=>{if(n&&n!==ah.default.Init){const t=e.state.info.onMouseOver;ah.default.off(e.getWrapperElement(),"mouseover",t),clearTimeout(e.state.info.hoverTimeout),delete e.state.info}if(t){const n=e.state.info=function(e){return{options:e instanceof Function?{render:e}:!0===e?{}:e}}(t);n.onMouseOver=uh.bind(null,e),ah.default.on(e.getWrapperElement(),"mouseover",n.onMouseOver)}})}),fh=l({});function ph(e,t,n,r){const i=document.createElement("span");i.className="type-name-pill",r instanceof Wt?(hh(i,t,n,r.ofType),gh(i,"!")):r instanceof Ht?(gh(i,"["),hh(i,t,n,r.ofType),gh(i,"]")):gh(i,(null==r?void 0:r.name)||"","type-name",n,ih(t,r)),e.append(i)}function hh(e,t,n,r){r instanceof Wt?(hh(e,t,n,r.ofType),gh(e,"!")):r instanceof Ht?(gh(e,"["),hh(e,t,n,r.ofType),gh(e,"]")):gh(e,(null==r?void 0:r.name)||"","type-name",n,ih(t,r))}function mh(e,t,n){const{description:r}=n;if(r){const n=document.createElement("div");n.className="info-description",t.renderDescription?n.innerHTML=t.renderDescription(r):n.append(document.createTextNode(r)),e.append(n)}!function(e,t,n){const r=n.deprecationReason;if(r){const n=document.createElement("div");n.className="info-deprecation",e.append(n);const i=document.createElement("span");i.className="info-deprecation-label",i.append(document.createTextNode("Deprecated")),n.append(i);const o=document.createElement("div");o.className="info-deprecation-reason",t.renderDescription?o.innerHTML=t.renderDescription(r):o.append(document.createTextNode(r)),n.append(o)}}(e,t,n)}function gh(e,t,n="",r={onClick:null},i=null){if(n){const{onClick:o}=r;let a;o?(a=document.createElement("a"),a.href="javascript:void 0",a.addEventListener("click",e=>{e.preventDefault(),o(i,e)})):a=document.createElement("span"),a.className=n,a.append(document.createTextNode(t)),e.append(a)}else e.append(document.createTextNode(t))}var vh,yh,bh=a(()=>{ha(),ch=c(Qu()),Jp(),sh(),dh(),ch.default.registerHelper("info","graphql",(e,t)=>{var n;if(!t.schema||!e.state)return;const{kind:r,step:i}=e.state,o=Xp(t.schema,e.state);if("Field"===r&&0===i&&o.fieldDef||"AliasedField"===r&&2===i&&o.fieldDef||"ObjectField"===r&&0===i&&o.fieldDef){const e=document.createElement("div");e.className="CodeMirror-info-header",function(e,t,n){!function(e,t,n){var r;gh(e,(null===(r=t.fieldDef)||void 0===r?void 0:r.name)||"","field-name",n,eh(t))}(e,t,n),ph(e,t,n,t.type)}(e,o,t);const n=document.createElement("div");return n.append(e),mh(n,t,o.fieldDef),n}if("Directive"===r&&1===i&&o.directiveDef){const e=document.createElement("div");e.className="CodeMirror-info-header",function(e,t,n){var r;gh(e,"@"+((null===(r=t.directiveDef)||void 0===r?void 0:r.name)||""),"directive-name",n,th(t))}(e,o,t);const n=document.createElement("div");return n.append(e),mh(n,t,o.directiveDef),n}if("Argument"===r&&0===i&&o.argDef){const e=document.createElement("div");e.className="CodeMirror-info-header",function(e,t,n){var r;gh(e,(null===(r=t.argDef)||void 0===r?void 0:r.name)||"","arg-name",n,nh(t)),ph(e,t,n,t.inputType)}(e,o,t);const n=document.createElement("div");return n.append(e),mh(n,t,o.argDef),n}if("EnumValue"===r&&(null===(n=o.enumValue)||void 0===n?void 0:n.description)){const e=document.createElement("div");e.className="CodeMirror-info-header",function(e,t,n){var r;const i=(null===(r=t.enumValue)||void 0===r?void 0:r.name)||"";hh(e,t,n,t.inputType),gh(e,"."),gh(e,i,"enum-value",n,rh(t))}(e,o,t);const n=document.createElement("div");return n.append(e),mh(n,t,o.enumValue),n}if("NamedType"===r&&o.type&&o.type.description){const e=document.createElement("div");e.className="CodeMirror-info-header",hh(e,o,t,o.type);const n=document.createElement("div");return n.append(e),mh(n,t,o.type),n}})});function wh(e,t){const n=t.target||t.srcElement;if(!(n instanceof HTMLElement))return;if("SPAN"!==(null==n?void 0:n.nodeName))return;const r=n.getBoundingClientRect(),i={left:(r.left+r.right)/2,top:(r.top+r.bottom)/2};e.state.jump.cursor=i,e.state.jump.isHoldingModifier&&kh(e)}function xh(e){e.state.jump.isHoldingModifier||!e.state.jump.cursor?e.state.jump.isHoldingModifier&&e.state.jump.marker&&Ch(e):e.state.jump.cursor=null}function Eh(e,t){if(e.state.jump.isHoldingModifier||t.key!==(yh?"Meta":"Control"))return;e.state.jump.isHoldingModifier=!0,e.state.jump.cursor&&kh(e);const n=o=>{o.code===t.code&&(e.state.jump.isHoldingModifier=!1,e.state.jump.marker&&Ch(e),vh.default.off(document,"keyup",n),vh.default.off(document,"click",r),e.off("mousedown",i))},r=t=>{const{destination:n,options:r}=e.state.jump;n&&r.onClick(n,t)},i=(t,n)=>{e.state.jump.destination&&(n.codemirrorIgnore=!0)};vh.default.on(document,"keyup",n),vh.default.on(document,"click",r),e.on("mousedown",i)}function kh(e){if(e.state.jump.marker)return;const{cursor:t,options:n}=e.state.jump,r=e.coordsChar(t),i=e.getTokenAt(r,!0),o=n.getDestination||e.getHelper(r,"jump");if(o){const t=o(i,n,e);if(t){const n=e.markText({line:r.line,ch:i.start},{line:r.line,ch:i.end},{className:"CodeMirror-jump-token"});e.state.jump.marker=n,e.state.jump.destination=t}}}function Ch(e){const{marker:t}=e.state.jump;e.state.jump.marker=null,e.state.jump.destination=null,t.clear()}var Sh,Th=a(()=>{(vh=c(Qu())).default.defineOption("jump",!1,(e,t,n)=>{if(n&&n!==vh.default.Init){const t=e.state.jump.onMouseOver;vh.default.off(e.getWrapperElement(),"mouseover",t);const n=e.state.jump.onMouseOut;vh.default.off(e.getWrapperElement(),"mouseout",n),vh.default.off(document,"keydown",e.state.jump.onKeyDown),delete e.state.jump}if(t){const n=e.state.jump={options:t,onMouseOver:wh.bind(null,e),onMouseOut:xh.bind(null,e),onKeyDown:Eh.bind(null,e)};vh.default.on(e.getWrapperElement(),"mouseover",n.onMouseOver),vh.default.on(e.getWrapperElement(),"mouseout",n.onMouseOut),vh.default.on(document,"keydown",n.onKeyDown)}}),yh="undefined"!=typeof navigator&&navigator.userAgent.includes("Mac")}),_h=l({}),Nh=a(()=>{Sh=c(Qu()),Jp(),sh(),Th(),Sh.default.registerHelper("jump","graphql",(e,t)=>{if(!t.schema||!t.onClick||!e.state)return;const{state:n}=e,{kind:r,step:i}=n,o=Xp(t.schema,n);return"Field"===r&&0===i&&o.fieldDef||"AliasedField"===r&&2===i&&o.fieldDef?eh(o):"Directive"===r&&1===i&&o.directiveDef?th(o):"Argument"===r&&0===i&&o.argDef?nh(o):"EnumValue"===r&&o.enumValue?rh(o):"NamedType"===r&&o.type?ih(o):void 0})});function Ah(e,t){var n,r;const{levels:i,indentLevel:o}=e;return((i&&0!==i.length?i.at(-1)-((null===(n=this.electricInput)||void 0===n?void 0:n.test(t))?1:0):o)||0)*((null===(r=this.config)||void 0===r?void 0:r.indentUnit)||0)}var Dh,Oh,Lh=a(()=>{}),Ih=a(()=>{Au(),Lh(),Dh=e=>{const t=Dl({eatWhitespace:e=>e.eatWhile(El),lexRules:kl,parseRules:Cl,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:Ah,electricInput:/^\s*[})\]]/,fold:"brace",lineComment:"#",closeBrackets:{pairs:'()[]{}""',explode:"()[]{}"}}}}),Mh=l({}),Fh=a(()=>{Oh=c(Qu()),Ih(),Oh.default.defineMode("graphql",Dh)});Au();var Ph=Rh;function Rh(e,t){const n=(0,$u.c)(40);let r;n[0]!==e?(r=void 0===e?{}:e,n[0]=e,n[1]=r):r=n[1];const{editorTheme:i,keyMap:o,onClickReference:a,onCopyQuery:s,onEdit:l,onPrettifyQuery:u,readOnly:d}=r,f=void 0===i?lc:i,p=void 0===o?uc:o,h=void 0!==d&&d,{schema:m,setSchemaReference:g}=bc(),v=t||Ph;let y;n[2]!==v?(y={nonNull:!0,caller:v},n[2]=v,n[3]=y):y=n[3];const{externalFragments:b,initialQuery:w,queryEditor:x,setOperationName:E,setQueryEditor:k,validationRules:C,variableEditor:S,updateActiveTabValues:T}=Qm(y),_=ng(),N=qu(),A=gc(),D=t||Ph;let O;n[4]!==s||n[5]!==D?(O={caller:D,onCopyQuery:s},n[4]=s,n[5]=D,n[6]=O):O=n[6];const L=Tp(O),I=t||Ph;let M;n[7]!==I?(M={caller:I},n[7]=I,n[8]=M):M=n[8];const F=_p(M),P=t||Ph;let R;n[9]!==u||n[10]!==P?(R={caller:P,onPrettifyQuery:u},n[9]=u,n[10]=P,n[11]=R):R=n[11];const j=Ap(R),V=(0,Fu.useRef)(null),B=(0,Fu.useRef)(void 0),z=(0,Fu.useRef)(zh);let $,U,H,W,q,G;n[12]!==a||n[13]!==A||n[14]!==g?($=()=>{z.current=e=>{const t=null==A?void 0:A.referencePlugin;t&&(A.setVisiblePlugin(t),g(e),null==a||a(e))}},U=[a,A,g],n[12]=a,n[13]=A,n[14]=g,n[15]=$,n[16]=U):($=n[15],U=n[16]),(0,Fu.useEffect)($,U),n[17]!==f||n[18]!==w||n[19]!==h||n[20]!==k?(H=()=>{let e=!0;return dc([ga(()=>Promise.resolve().then(()=>c(Up())),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>c(Hp())),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>(qp(),Wp)),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>(Kp(),Gp)),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>(bh(),fh)),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>(Nh(),_h)),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>(Fh(),Mh)),void 0,import.meta.url)]).then(t=>{if(!e)return;B.current=t;const n=V.current;if(!n)return;const r=t(n,{value:w,lineNumbers:!0,tabSize:2,foldGutter:!0,mode:"graphql",theme:f,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!h&&"nocursor",lint:{schema:void 0,validationRules:null,externalFragments:void 0},hintOptions:{schema:void 0,closeOnUnfocus:!1,completeSingle:!1,container:n,externalFragments:void 0,autocompleteOptions:{mode:Rl.EXECUTABLE}},info:{schema:void 0,renderDescription:Bh,onClick(e){z.current(e)}},jump:{schema:void 0,onClick(e){z.current(e)}},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:{...cc,"Cmd-S"(){},"Ctrl-S"(){}}}),i=function(){r.showHint({completeSingle:!0,container:n})};r.addKeyMap({"Cmd-Space":i,"Ctrl-Space":i,"Alt-Space":i,"Shift-Space":i,"Shift-Alt-Space":i}),r.on("keyup",Vh);let o=!1;r.on("startCompletion",()=>{o=!0}),r.on("endCompletion",()=>{o=!1}),r.on("keydown",(e,t)=>{"Escape"===t.key&&o&&t.stopPropagation()}),r.on("beforeChange",jh),r.documentAST=null,r.operationName=null,r.operations=null,r.variableToType=null,k(r)}),()=>{e=!1}},W=[f,w,h,k],n[17]=f,n[18]=w,n[19]=h,n[20]=k,n[21]=H,n[22]=W):(H=n[21],W=n[22]),(0,Fu.useEffect)(H,W),yp(x,"keyMap",p),n[23]!==l||n[24]!==x||n[25]!==m||n[26]!==E||n[27]!==N||n[28]!==T||n[29]!==S?(q=()=>{if(!x)return;const e=function(e){var t,n,r,i,o;const a=function(e,t){if(t)try{const n=Ze(t);return Object.assign(Object.assign({},function(e,t){const n=t?function(e,t){const n=Object.create(null);for(const r of t.definitions)if("OperationDefinition"===r.kind){const{variableDefinitions:t}=r;if(t)for(const{variable:r,type:i}of t){const t=Br(e,i);t?n[r.name.value]=t:i.kind===ae.NAMED_TYPE&&"Float"===i.name.value&&(n[r.name.value]=jn)}}return n}(t,e):void 0,r=[];return At(e,{OperationDefinition(e){r.push(e)}}),{variableToType:n,operations:r}}(n,e)),{documentAST:n})}catch(o){}}(m,e.getValue()),s=function(e,t,n){if(!n||n.length<1)return;const r=n.map(e=>{var t;return null==(t=e.name)?void 0:t.value});if(t&&r.includes(t))return t;if(t&&e){const n=e.map(e=>{var t;return null==(t=e.name)?void 0:t.value}).indexOf(t);if(-1!==n&&n<r.length)return r[n]}return r[0]}(null!==(t=e.operations)&&void 0!==t?t:void 0,null!==(n=e.operationName)&&void 0!==n?n:void 0,null==a?void 0:a.operations);return e.documentAST=null!==(r=null==a?void 0:a.documentAST)&&void 0!==r?r:null,e.operationName=null!=s?s:null,e.operations=null!==(i=null==a?void 0:a.operations)&&void 0!==i?i:null,S&&(function(e,t){e.state.lint.linterOptions.variableToType=null==t?void 0:t.variableToType,e.options.lint.variableToType=null==t?void 0:t.variableToType,e.options.hintOptions.variableToType=null==t?void 0:t.variableToType}(S,a),null==(o=B.current)||o.signal(S,"change",S)),a?{...a,operationName:s}:null},t=mp(100,t=>{var n;const r=t.getValue();N.set(Uh,r);const i=t.operationName,o=e(t);void 0!==(null==o?void 0:o.operationName)&&N.set(Hh,o.operationName),null==l||l(r,null==o?void 0:o.documentAST),(null==o?void 0:o.operationName)&&i!==o.operationName&&E(o.operationName),T({query:r,operationName:null!==(n=null==o?void 0:o.operationName)&&void 0!==n?n:null})});return e(x),x.on("change",t),()=>x.off("change",t)},G=[l,x,m,E,N,S,T],n[23]=l,n[24]=x,n[25]=m,n[26]=E,n[27]=N,n[28]=T,n[29]=S,n[30]=q,n[31]=G):(q=n[30],G=n[31]),(0,Fu.useEffect)(q,G),function(e,t,n){const r=(0,$u.c)(5);let i,o;r[0]!==n||r[1]!==e||r[2]!==t?(i=()=>{if(!e)return;const r=e.options.lint.schema!==t;!function(e,t){e.state.lint.linterOptions.schema=t,e.options.lint.schema=t,e.options.hintOptions.schema=t,e.options.info.schema=t,e.options.jump.schema=t}(e,t),r&&n.current&&n.current.signal(e,"change",e)},o=[e,t,n],r[0]=n,r[1]=e,r[2]=t,r[3]=i,r[4]=o):(i=r[3],o=r[4]),(0,Fu.useEffect)(i,o)}(x,null!=m?m:null,B),function(e,t,n){const r=(0,$u.c)(5);let i,o;r[0]!==n||r[1]!==e||r[2]!==t?(i=()=>{if(!e)return;const r=e.options.lint.validationRules!==t;!function(e,t){e.state.lint.linterOptions.validationRules=t,e.options.lint.validationRules=t}(e,t),r&&n.current&&n.current.signal(e,"change",e)},o=[e,t,n],r[0]=n,r[1]=e,r[2]=t,r[3]=i,r[4]=o):(i=r[3],o=r[4]),(0,Fu.useEffect)(i,o)}(x,null!=C?C:null,B),function(e,t,n){const r=(0,$u.c)(7);let i;r[0]!==t?(i=[...t.values()],r[0]=t,r[1]=i):i=r[1];const o=i;let a,s;r[2]!==n||r[3]!==e||r[4]!==o?(a=()=>{if(!e)return;const t=e.options.lint.externalFragments!==o;!function(e,t){e.state.lint.linterOptions.externalFragments=t,e.options.lint.externalFragments=t,e.options.hintOptions.externalFragments=t}(e,o),t&&n.current&&n.current.signal(e,"change",e)},s=[e,o,n],r[2]=n,r[3]=e,r[4]=o,r[5]=a,r[6]=s):(a=r[5],s=r[6]),(0,Fu.useEffect)(a,s)}(x,b,B),wp(x,a);const K=null==_?void 0:_.run;let Y;n[32]!==x||n[33]!==K||n[34]!==E?(Y=()=>{var e;if(!(K&&x&&x.operations&&x.hasFocus()))return void(null==K||K());const t=x.indexFromPos(x.getCursor());let n;for(const r of x.operations)r.loc&&r.loc.start<=t&&r.loc.end>=t&&(n=null==(e=r.name)?void 0:e.value);n&&n!==x.operationName&&E(n),K()},n[32]=x,n[33]=K,n[34]=E,n[35]=Y):Y=n[35];const Q=Y;let X,Z,J,ee;return n[36]===Symbol.for("react.memo_cache_sentinel")?(X=["Cmd-Enter","Ctrl-Enter"],n[36]=X):X=n[36],xp(x,X,Q),n[37]===Symbol.for("react.memo_cache_sentinel")?(Z=["Shift-Ctrl-C"],n[37]=Z):Z=n[37],xp(x,Z,L),n[38]===Symbol.for("react.memo_cache_sentinel")?(J=["Shift-Ctrl-P","Shift-Ctrl-F"],n[38]=J):J=n[38],xp(x,J,j),n[39]===Symbol.for("react.memo_cache_sentinel")?(ee=["Shift-Ctrl-M"],n[39]=ee):ee=n[39],xp(x,ee,F),V}function jh(e,t){var n;if("paste"===t.origin){const e=t.text.map(jp);null==(n=t.update)||n.call(t,t.from,t.to,e)}}function Vh(e,t){$h.test(t.key)&&e.execCommand("autocomplete")}function Bh(e){return hp.render(e)}function zh(){}var $h=/^[a-zA-Z0-9_@(]$/,Uh="query",Hh="operationName";function Wh(e){return e&&"object"==typeof e&&!Array.isArray(e)&&qh(e,"id")&&qh(e,"title")&&Gh(e,"query")&&Gh(e,"variables")&&Gh(e,"headers")&&Gh(e,"operationName")&&Gh(e,"response")}function qh(e,t){return t in e&&"string"==typeof e[t]}function Gh(e,t){return t in e&&("string"==typeof e[t]||null===e[t])}function Kh(e,t=!1){return JSON.stringify(e,(e,n)=>"hash"===e||"response"===e||!t&&"headers"===e?null:n)}function Yh({query:e=null,variables:t=null,headers:n=null}={}){const r=e?Jh(e):null;return{id:Xh(),hash:Zh({query:e,variables:t,headers:n}),title:r||em,query:e,variables:t,headers:n,operationName:r,response:null}}function Qh(e,t){return{...e,tabs:e.tabs.map((n,r)=>{if(r!==e.activeTabIndex)return n;const i={...n,...t};return{...i,hash:Zh(i),title:i.operationName||(i.query?Jh(i.query):void 0)||em}})}}function Xh(){const e=()=>Math.floor(65536*(1+Math.random())).toString(16).slice(1);return`${e()}${e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}function Zh(e){var t,n,r;return[null!==(t=e.query)&&void 0!==t?t:"",null!==(n=e.variables)&&void 0!==n?n:"",null!==(r=e.headers)&&void 0!==r?r:""].join("|")}function Jh(e){var t;const n=/^(?!#).*(query|subscription|mutation)\s+([a-zA-Z0-9_]+)/m.exec(e);return null!==(t=null==n?void 0:n[2])&&void 0!==t?t:null}var em="<untitled>",tm="tabState";function nm(e,t,n){const r=function(e,t){return t?rm(rm(e.map(e=>({proximity:om(im(e.text),t),entry:e})),e=>e.proximity<=2),e=>!e.entry.isDeprecated).sort((e,t)=>(e.entry.isDeprecated?1:0)-(t.entry.isDeprecated?1:0)||e.proximity-t.proximity||e.entry.text.length-t.entry.text.length).map(e=>e.entry):rm(e,e=>!e.isDeprecated)}(n,im(t.string));if(!r)return;const i=null!==t.type&&/"|\w/.test(t.string[0])?t.start:t.end;return{list:r,from:{line:e.line,ch:i},to:{line:e.line,ch:t.end}}}function rm(e,t){const n=e.filter(t);return 0===n.length?e:n}function im(e){return e.toLowerCase().replaceAll(/\W/g,"")}function om(e,t){let n=function(e,t){let n,r;const i=[],o=e.length,a=t.length;for(n=0;n<=o;n++)i[n]=[n];for(r=1;r<=a;r++)i[0][r]=r;for(n=1;n<=o;n++)for(r=1;r<=a;r++){const o=e[n-1]===t[r-1]?0:1;i[n][r]=Math.min(i[n-1][r]+1,i[n][r-1]+1,i[n-1][r-1]+o),n>1&&r>1&&e[n-1]===t[r-2]&&e[n-2]===t[r-1]&&(i[n][r]=Math.min(i[n][r],i[n-2][r-2]+o))}return i[o][a]}(t,e);return e.length>t.length&&(n-=e.length-t.length-1,n+=0===e.indexOf(t)?0:.5),n}var am,sm,lm,um,cm,dm,fm,pm,hm,mm=a(()=>{}),gm=l({}),vm=a(()=>{am=c(Qu()),ha(),Qp(),mm(),am.default.registerHelper("hint","graphql-variables",(e,t)=>{const n=e.getCursor(),r=e.getTokenAt(n),i=function(e,t,n){const{kind:r,step:i}="Invalid"===t.state.kind?t.state.prevState:t.state;if("Document"===r&&0===i)return nm(e,t,[{text:"{"}]);const{variableToType:o}=n;if(!o)return;const a=function(e,t){const n={type:null,fields:null};return Yp(t,t=>{switch(t.kind){case"Variable":n.type=e[t.name];break;case"ListValue":{const e=n.type?gn(n.type):void 0;n.type=e instanceof Ht?e.ofType:null;break}case"ObjectValue":{const e=n.type?yn(n.type):void 0;n.fields=e instanceof Xt?e.getFields():null;break}case"ObjectField":{const e=t.name&&n.fields?n.fields[t.name]:null;n.type=null==e?void 0:e.type;break}}}),n}(o,t.state);if("Document"===r||"Variable"===r&&0===i)return nm(e,t,Object.keys(o).map(e=>({text:`"${e}": `,type:o[e]})));if(("ObjectValue"===r||"ObjectField"===r&&0===i)&&a.fields)return nm(e,t,Object.keys(a.fields).map(e=>a.fields[e]).map(e=>({text:`"${e.name}": `,type:e.type,description:e.description})));if("StringValue"===r||"NumberValue"===r||"BooleanValue"===r||"NullValue"===r||"ListValue"===r&&1===i||"ObjectField"===r&&2===i||"Variable"===r&&2===i){const n=a.type?yn(a.type):void 0;if(n instanceof Xt)return nm(e,t,[{text:"{"}]);if(n instanceof Qt)return nm(e,t,n.getValues().map(e=>({text:`"${e.name}"`,type:n,description:e.description})));if(n===Bn)return nm(e,t,[{text:"true",type:Bn,description:"Not false."},{text:"false",type:Bn,description:"Not true."}])}}(n,r,t);return(null==i?void 0:i.list)&&i.list.length>0&&(i.from=am.default.Pos(i.from.line,i.from.ch),i.to=am.default.Pos(i.to.line,i.to.ch),am.default.signal(e,"hasCompletion",e,i,r)),i})});function ym(){const e=um,t=[];if(Em("{"),!Cm("}")){do{t.push(bm())}while(Cm(","));Em("}")}return{kind:"Object",start:e,end:dm,members:t}}function bm(){const e=um,t="String"===pm?xm():null;Em("String"),Em(":");const n=wm();return{kind:"Member",start:e,end:dm,key:t,value:n}}function wm(){switch(pm){case"[":return function(){const e=um,t=[];if(Em("["),!Cm("]")){do{t.push(wm())}while(Cm(","));Em("]")}return{kind:"Array",start:e,end:dm,values:t}}();case"{":return ym();case"String":case"Number":case"Boolean":case"Null":const e=xm();return Tm(),e}Em("Value")}function xm(){return{kind:pm,start:um,end:cm,value:JSON.parse(sm.slice(um,cm))}}function Em(e){if(pm===e)return void Tm();let t;if("EOF"===pm)t="[end of file]";else if(cm-um>1)t="`"+sm.slice(um,cm)+"`";else{const e=sm.slice(um).match(/^.+?\b/);t="`"+(e?e[0]:sm[um])+"`"}throw km(`Expected ${e} but found ${t}.`)}function km(e){return new hm(e,{start:um,end:cm})}function Cm(e){if(pm===e)return Tm(),!0}function Sm(){return cm<lm&&(cm++,fm=cm===lm?0:sm.charCodeAt(cm)),fm}function Tm(){for(dm=cm;9===fm||10===fm||13===fm||32===fm;)Sm();if(0!==fm){switch(um=cm,fm){case 34:return pm="String",function(){for(Sm();34!==fm&&fm>31;)if(92===fm)switch(fm=Sm()){case 34:case 47:case 92:case 98:case 102:case 110:case 114:case 116:Sm();break;case 117:Sm(),_m(),_m(),_m(),_m();break;default:throw km("Bad character escape sequence.")}else{if(cm===lm)throw km("Unterminated string.");Sm()}if(34!==fm)throw km("Unterminated string.");Sm()}();case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return pm="Number",45===fm&&Sm(),48===fm?Sm():Nm(),46===fm&&(Sm(),Nm()),void(69!==fm&&101!==fm||(43!==(fm=Sm())&&45!==fm||Sm(),Nm()));case 102:if("false"!==sm.slice(um,um+5))break;return cm+=4,Sm(),void(pm="Boolean");case 110:if("null"!==sm.slice(um,um+4))break;return cm+=3,Sm(),void(pm="Null");case 116:if("true"!==sm.slice(um,um+4))break;return cm+=3,Sm(),void(pm="Boolean")}pm=sm[um],Sm()}else pm="EOF"}function _m(){if(fm>=48&&fm<=57||fm>=65&&fm<=70||fm>=97&&fm<=102)return Sm();throw km("Expected hexadecimal digit.")}function Nm(){if(fm<48||fm>57)throw km("Expected decimal digit.");do{Sm()}while(fm>=48&&fm<=57)}var Am,Dm=a(()=>{hm=class extends Error{constructor(e,t){super(e),this.position=t}}}),Om=l({});function Lm(e,t){if(!e||!t)return[];if(e instanceof Wt)return"Null"===t.kind?[[t,`Type "${e}" is non-nullable and cannot be null.`]]:Lm(e.ofType,t);if("Null"===t.kind)return[];if(e instanceof Ht){const n=e.ofType;return"Array"===t.kind?Mm(t.values||[],e=>Lm(n,e)):Lm(n,t)}if(e instanceof Xt){if("Object"!==t.kind)return[[t,`Type "${e}" must be an Object.`]];const n=Object.create(null),r=Mm(t.members,t=>{var r;const i=null===(r=null==t?void 0:t.key)||void 0===r?void 0:r.value;n[i]=!0;const o=e.getFields()[i];return o?Lm(o?o.type:void 0,t.value):[[t.key,`Type "${e}" does not have a field "${i}".`]]});for(const i of Object.keys(e.getFields())){const o=e.getFields()[i];!n[i]&&o.type instanceof Wt&&!o.defaultValue&&r.push([t,`Object of type "${e}" is missing required field "${i}".`])}return r}return"Boolean"===e.name&&"Boolean"!==t.kind||"String"===e.name&&"String"!==t.kind||"ID"===e.name&&"Number"!==t.kind&&"String"!==t.kind||"Float"===e.name&&"Number"!==t.kind||"Int"===e.name&&("Number"!==t.kind||(0|t.value)!==t.value)||(e instanceof Qt||e instanceof qt)&&("String"!==t.kind&&"Number"!==t.kind&&"Boolean"!==t.kind&&"Null"!==t.kind||null==(n=e.parseValue(t.value))||n!=n)?[[t,`Expected value of type "${e}".`]]:[];var n}function Im(e,t,n){return{message:n,severity:"error",type:"validation",from:e.posFromIndex(t.start),to:e.posFromIndex(t.end)}}function Mm(e,t){return Array.prototype.concat.apply([],e.map(t))}var Fm,Pm,Rm,jm=a(()=>{Am=c(Qu()),ha(),Dm(),Am.default.registerHelper("lint","graphql-variables",(e,t,n)=>{if(!e)return[];let r;try{r=function(e){sm=e,lm=e.length,um=cm=dm=-1,Sm(),Tm();const t=ym();return Em("EOF"),t}(e)}catch(tp){if(tp instanceof hm)return[Im(n,tp.position,tp.message)];throw tp}const{variableToType:i}=t;return i?function(e,t,n){var r;const i=[];for(const o of n.members)if(o){const n=null===(r=o.key)||void 0===r?void 0:r.value,a=t[n];if(a)for(const[t,r]of Lm(a,o.value))i.push(Im(e,t,r));else i.push(Im(e,o.key,`Variable "$${n}" does not appear in any GraphQL query.`))}return i}(n,i,r):[]})}),Vm=l({});function Bm(e){return{style:e,match:e=>"String"===e.kind,update(e,t){e.name=t.value.slice(1,-1)}}}var zm=a(()=>{Fm=c(Qu()),Au(),Lh(),Fm.default.defineMode("graphql-variables",e=>{const t=Dl({eatWhitespace:e=>e.eatSpace(),lexRules:Pm,parseRules:Rm,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:Ah,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}}),Pm={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},Rm={Document:[xl("{"),yl("Variable",vl(xl(","))),xl("}")],Variable:[Bm("variable"),xl(":"),"Value"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[wl("Number","number")],StringValue:[wl("String","string")],BooleanValue:[wl("Keyword","builtin")],NullValue:[wl("Keyword","keyword")],ListValue:[xl("["),yl("Value",vl(xl(","))),xl("]")],ObjectValue:[xl("{"),yl("ObjectField",vl(xl(","))),xl("}")],ObjectField:[Bm("attribute"),xl(":"),"Value"]}}),$m=Um;function Um(e,t){const n=(0,$u.c)(17);let r;n[0]!==e?(r=void 0===e?{}:e,n[0]=e,n[1]=r):r=n[1];const{editorTheme:i,keyMap:o,onClickReference:a,onEdit:s,readOnly:l}=r,u=void 0===i?lc:i,c=void 0===o?uc:o,d=void 0!==l&&l,f=t||$m;let p;n[2]!==f?(p={nonNull:!0,caller:f},n[2]=f,n[3]=p):p=n[3];const{initialVariables:h,variableEditor:m,setVariableEditor:g}=Qm(p),v=ng(),y=t||$m;let b;n[4]!==y?(b={caller:y},n[4]=y,n[5]=b):b=n[5];const w=_p(b),x=t||$m;let E;n[6]!==x?(E={caller:x},n[6]=x,n[7]=E):E=n[7];const k=Ap(E),C=(0,Fu.useRef)(null);let S,T,_,N,A;return n[8]!==u||n[9]!==h||n[10]!==d||n[11]!==g?(S=()=>{let e=!0;return dc([ga(()=>Promise.resolve().then(()=>(vm(),gm)),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>(jm(),Om)),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>(zm(),Vm)),void 0,import.meta.url)]).then(t=>{if(!e)return;const n=C.current;if(!n)return;const r=t(n,{value:h,lineNumbers:!0,tabSize:2,mode:"graphql-variables",theme:u,autoCloseBrackets:!0,matchBrackets:!0,showCursorWhenSelecting:!0,readOnly:!!d&&"nocursor",foldGutter:!0,lint:{variableToType:void 0},hintOptions:{closeOnUnfocus:!1,completeSingle:!1,container:n,variableToType:void 0},gutters:["CodeMirror-linenumbers","CodeMirror-foldgutter"],extraKeys:cc});r.addKeyMap({"Cmd-Space"(){r.showHint({completeSingle:!1,container:n})},"Ctrl-Space"(){r.showHint({completeSingle:!1,container:n})},"Alt-Space"(){r.showHint({completeSingle:!1,container:n})},"Shift-Space"(){r.showHint({completeSingle:!1,container:n})}}),r.on("keyup",Hm),g(r)}),()=>{e=!1}},T=[u,h,d,g],n[8]=u,n[9]=h,n[10]=d,n[11]=g,n[12]=S,n[13]=T):(S=n[12],T=n[13]),(0,Fu.useEffect)(S,T),yp(m,"keyMap",c),bp(m,s,Wm,"variables",$m),wp(m,a),n[14]===Symbol.for("react.memo_cache_sentinel")?(_=["Cmd-Enter","Ctrl-Enter"],n[14]=_):_=n[14],xp(m,_,null==v?void 0:v.run),n[15]===Symbol.for("react.memo_cache_sentinel")?(N=["Shift-Ctrl-P"],n[15]=N):N=n[15],xp(m,N,k),n[16]===Symbol.for("react.memo_cache_sentinel")?(A=["Shift-Ctrl-M"],n[16]=A):A=n[16],xp(m,A,w),C}function Hm(e,t){const{code:n,key:r,shiftKey:i}=t,o=n.startsWith("Key"),a=!i&&n.startsWith("Digit");(o||a||"_"===r||'"'===r)&&e.execCommand("autocomplete")}var Wm="variables",qm='# Welcome to GraphiQL\n#\n# GraphiQL is an in-browser tool for writing, validating, and\n# testing GraphQL queries.\n#\n# Type queries into this side of the screen, and you will see intelligent\n# typeaheads aware of the current GraphQL type schema and live syntax and\n# validation errors highlighted within the text.\n#\n# GraphQL queries typically start with a "{" character. Lines that start\n# with a # are ignored.\n#\n# An example GraphQL query might look like:\n#\n# {\n# field(arg: "value") {\n# subField\n# }\n# }\n#\n# Keyboard shortcuts:\n#\n# Prettify query: Shift-Ctrl-P (or press the prettify button)\n#\n# Merge fragments: Shift-Ctrl-M (or press the merge button)\n#\n# Run Query: Ctrl-Enter (or press the play button)\n#\n# Auto Complete: Ctrl-Space (or just start typing)\n#\n\n',Gm=w();ha();var Km=Pu("EditorContext"),Ym=e=>{const t=(0,$u.c)(88),n=qu(),[r,i]=(0,Fu.useState)(null),[o,a]=(0,Fu.useState)(null),[s,l]=(0,Fu.useState)(null),[u,c]=(0,Fu.useState)(null);let d;t[0]!==e.shouldPersistHeaders||t[1]!==n?(d=()=>{const t=null!==n.get(Xm);return!1!==e.shouldPersistHeaders&&t?"true"===n.get(Xm):Boolean(e.shouldPersistHeaders)},t[0]=e.shouldPersistHeaders,t[1]=n,t[2]=d):d=t[2];const[f,p]=(0,Fu.useState)(d);let h;vp(r,e.headers),vp(o,e.query),vp(s,e.response),vp(u,e.variables),t[3]!==f?(h={shouldPersistHeaders:f},t[3]=f,t[4]=h):h=t[4];const m=function({shouldPersistHeaders:e}){return(0,Fu.useCallback)(t=>{const{storage:n}=Uu.getState();mp(500,e=>{n.set(tm,e)})(Kh(t,e))},[e])}(h);let g;t[5]!==e.defaultHeaders||t[6]!==e.defaultQuery||t[7]!==e.defaultTabs||t[8]!==e.headers||t[9]!==e.query||t[10]!==e.response||t[11]!==e.variables||t[12]!==f||t[13]!==n||t[14]!==m?(g=()=>{var t,r,i,o,a,s,l,u,c;const d=null!==(t=null!==(r=e.query)&&void 0!==r?r:n.get("query"))&&void 0!==t?t:null,p=null!==(i=null!==(o=e.variables)&&void 0!==o?o:n.get("variables"))&&void 0!==i?i:null,h=null!==(a=null!==(s=e.headers)&&void 0!==s?s:n.get("headers"))&&void 0!==a?a:null,g=null!==(l=e.response)&&void 0!==l?l:"",v=function({defaultQuery:e,defaultHeaders:t,headers:n,defaultTabs:r,query:i,variables:o,shouldPersistHeaders:a}){const{storage:s}=Uu.getState(),l=s.get(tm);try{if(!l)throw new Error("Storage for tabs is empty");const e=JSON.parse(l),t=a?n:void 0;if((u=e)&&"object"==typeof u&&!Array.isArray(u)&&function(e,t){return t in e&&"number"==typeof e[t]}(u,"activeTabIndex")&&"tabs"in u&&Array.isArray(u.tabs)&&u.tabs.every(Wh)){const r=Zh({query:i,variables:o,headers:t});let a=-1;for(let t=0;t<e.tabs.length;t++){const n=e.tabs[t];n.hash=Zh({query:n.query,variables:n.variables,headers:n.headers}),n.hash===r&&(a=t)}if(a>=0)e.activeTabIndex=a;else{const t=i?Jh(i):null;e.tabs.push({id:Xh(),hash:r,title:t||em,query:i,variables:o,headers:n,operationName:t,response:null}),e.activeTabIndex=e.tabs.length-1}return e}throw new Error("Storage for tabs is invalid")}catch(c){return{activeTabIndex:0,tabs:(r||[{query:null!=i?i:e,variables:o,headers:null!=n?n:t}]).map(Yh)}}var u}({query:d,variables:p,headers:h,defaultTabs:e.defaultTabs,defaultQuery:e.defaultQuery||qm,defaultHeaders:e.defaultHeaders,shouldPersistHeaders:f});return m(v),{query:null!==(u=null!=d?d:0===v.activeTabIndex?v.tabs[0].query:null)&&void 0!==u?u:"",variables:null!=p?p:"",headers:null!==(c=null!=h?h:e.defaultHeaders)&&void 0!==c?c:"",response:g,tabState:v}},t[5]=e.defaultHeaders,t[6]=e.defaultQuery,t[7]=e.defaultTabs,t[8]=e.headers,t[9]=e.query,t[10]=e.response,t[11]=e.variables,t[12]=f,t[13]=n,t[14]=m,t[15]=g):g=t[15];const[v]=(0,Fu.useState)(g),[y,b]=(0,Fu.useState)(v.tabState);let w;t[16]!==r||t[17]!==n||t[18]!==y?(w=e=>{if(e){var t;n.set(Fp,null!==(t=null==r?void 0:r.getValue())&&void 0!==t?t:"");const e=Kh(y,!0);n.set(tm,e)}else n.set(Fp,""),function(){const{storage:e}=Uu.getState(),t=e.get(tm);if(t){const n=JSON.parse(t);e.set(tm,JSON.stringify(n,(e,t)=>"headers"===e?null:t))}}();p(e),n.set(Xm,e.toString())},t[16]=r,t[17]=n,t[18]=y,t[19]=w):w=t[19];const x=w,E=(0,Fu.useRef)(void 0);let k,C,S;t[20]!==e.shouldPersistHeaders||t[21]!==x?(k=()=>{const t=Boolean(e.shouldPersistHeaders);(null==E?void 0:E.current)!==t&&(x(t),E.current=t)},C=[e.shouldPersistHeaders,x],t[20]=e.shouldPersistHeaders,t[21]=x,t[22]=k,t[23]=C):(k=t[22],C=t[23]),(0,Fu.useEffect)(k,C),t[24]!==r||t[25]!==o||t[26]!==s||t[27]!==u?(S={queryEditor:o,variableEditor:u,headerEditor:r,responseEditor:s},t[24]=r,t[25]=o,t[26]=s,t[27]=u,t[28]=S):S=t[28];const T=function({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r}){return(0,Fu.useCallback)(i=>{var o,a,s,l,u;const c=null!==(o=null==e?void 0:e.getValue())&&void 0!==o?o:null,d=null!==(a=null==t?void 0:t.getValue())&&void 0!==a?a:null,f=null!==(s=null==n?void 0:n.getValue())&&void 0!==s?s:null,p=null!==(l=null==e?void 0:e.operationName)&&void 0!==l?l:null;return Qh(i,{query:c,variables:d,headers:f,response:null!==(u=null==r?void 0:r.getValue())&&void 0!==u?u:null,operationName:p})},[e,t,n,r])}(S),{onTabChange:_,defaultHeaders:N,defaultQuery:A,children:D}=e;let O;t[29]!==N||t[30]!==r||t[31]!==o||t[32]!==s||t[33]!==u?(O={queryEditor:o,variableEditor:u,headerEditor:r,responseEditor:s,defaultHeaders:N},t[29]=N,t[30]=r,t[31]=o,t[32]=s,t[33]=u,t[34]=O):O=t[34];const L=function({queryEditor:e,variableEditor:t,headerEditor:n,responseEditor:r,defaultHeaders:i}){return(0,Fu.useCallback)(({query:o,variables:a,headers:s,response:l})=>{var u;null==e||e.setValue(null!=o?o:""),null==t||t.setValue(null!=a?a:""),null==n||n.setValue(null!==(u=null!=s?s:i)&&void 0!==u?u:""),null==r||r.setValue(null!=l?l:"")},[n,e,r,t,i])}(O);let I;t[35]!==N||t[36]!==A||t[37]!==_||t[38]!==L||t[39]!==m||t[40]!==T?(I=()=>{b(e=>{const t=T(e),n={tabs:[...t.tabs,Yh({headers:N,query:null!=A?A:qm})],activeTabIndex:t.tabs.length};return m(n),L(n.tabs[n.activeTabIndex]),null==_||_(n),n})},t[35]=N,t[36]=A,t[37]=_,t[38]=L,t[39]=m,t[40]=T,t[41]=I):I=t[41];const M=I;let F;t[42]!==_||t[43]!==L||t[44]!==m?(F=e=>{b(t=>{const n={...t,activeTabIndex:e};return m(n),L(n.tabs[n.activeTabIndex]),null==_||_(n),n})},t[42]=_,t[43]=L,t[44]=m,t[45]=F):F=t[45];const P=F;let R;t[46]!==_||t[47]!==L||t[48]!==m?(R=e=>{b(t=>{const n=t.tabs[t.activeTabIndex],r={tabs:e,activeTabIndex:e.indexOf(n)};return m(r),L(r.tabs[r.activeTabIndex]),null==_||_(r),r})},t[46]=_,t[47]=L,t[48]=m,t[49]=R):R=t[49];const j=R;let V;t[50]!==_||t[51]!==L||t[52]!==m?(V=e=>{b(t=>{const n={tabs:t.tabs.filter((t,n)=>e!==n),activeTabIndex:Math.max(t.activeTabIndex-1,0)};return m(n),L(n.tabs[n.activeTabIndex]),null==_||_(n),n})},t[50]=_,t[51]=L,t[52]=m,t[53]=V):V=t[53];const B=V;let z;t[54]!==_||t[55]!==m?(z=e=>{b(t=>{const n=Qh(t,e);return m(n),null==_||_(n),n})},t[54]=_,t[55]=m,t[56]=z):z=t[56];const $=z,{onEditOperationName:U}=e;let H;t[57]!==U||t[58]!==o||t[59]!==$?(H=e=>{o&&(function(e,t){e.operationName=t}(o,e),$({operationName:e}),null==U||U(e))},t[57]=U,t[58]=o,t[59]=$,t[60]=H):H=t[60];const W=H;let q,G;if(t[61]!==e.externalFragments){if(G=new Map,Array.isArray(e.externalFragments))for(const t of e.externalFragments)G.set(t.name.value,t);else if("string"==typeof e.externalFragments)At(Ze(e.externalFragments,{}),{FragmentDefinition(e){G.set(e.name.value,e)}});else if(e.externalFragments)throw new Error("The `externalFragments` prop must either be a string that contains the fragment definitions in SDL or a list of FragmentDefinitionNode objects.");t[61]=e.externalFragments,t[62]=G}else G=t[62];q=G;const K=q;let Y;t[63]!==e.validationRules?(Y=e.validationRules||[],t[63]=e.validationRules,t[64]=Y):Y=t[64];const Q=Y;let X;t[65]!==M||t[66]!==P||t[67]!==B||t[68]!==K||t[69]!==r||t[70]!==v.headers||t[71]!==v.query||t[72]!==v.response||t[73]!==v.variables||t[74]!==j||t[75]!==o||t[76]!==s||t[77]!==W||t[78]!==x||t[79]!==f||t[80]!==y||t[81]!==$||t[82]!==Q||t[83]!==u?(X={...y,addTab:M,changeTab:P,moveTab:j,closeTab:B,updateActiveTabValues:$,headerEditor:r,queryEditor:o,responseEditor:s,variableEditor:u,setHeaderEditor:i,setQueryEditor:a,setResponseEditor:l,setVariableEditor:c,setOperationName:W,initialQuery:v.query,initialVariables:v.variables,initialHeaders:v.headers,initialResponse:v.response,externalFragments:K,validationRules:Q,shouldPersistHeaders:f,setShouldPersistHeaders:x},t[65]=M,t[66]=P,t[67]=B,t[68]=K,t[69]=r,t[70]=v.headers,t[71]=v.query,t[72]=v.response,t[73]=v.variables,t[74]=j,t[75]=o,t[76]=s,t[77]=W,t[78]=x,t[79]=f,t[80]=y,t[81]=$,t[82]=Q,t[83]=u,t[84]=X):X=t[84];const Z=X;let J;return t[85]!==D||t[86]!==Z?(J=(0,Gm.jsx)(Km.Provider,{value:Z,children:D}),t[85]=D,t[86]=Z,t[87]=J):J=t[87],J},Qm=Ru(Km),Xm="shouldPersistHeaders";ha(),Au();var Zm=c(Iu()),Jm=c(Mu()),eg=Pu("ExecutionContext"),tg=e=>{const t=(0,$u.c)(26),{fetcher:n,getDefaultFieldNames:r,children:i,operationName:o}=e;if("function"!=typeof n)throw new TypeError("The `ExecutionContextProvider` component requires a `fetcher` function to be passed as prop.");let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a={nonNull:!0,caller:tg},t[0]=a):a=t[0];const{externalFragments:s,headerEditor:l,queryEditor:u,responseEditor:c,variableEditor:d,updateActiveTabValues:f}=Qm(a);let p;t[1]!==r?(p={getDefaultFieldNames:r,caller:tg},t[1]=r,t[2]=p):p=t[2];const h=Dp(p),[m,g]=(0,Fu.useState)(!1),[v,y]=(0,Fu.useState)(null),b=(0,Fu.useRef)(0);let w;t[3]!==v?(w=()=>{null==v||v.unsubscribe(),g(!1),y(null)},t[3]=v,t[4]=w):w=t[4];const x=w;let E;t[5]!==h||t[6]!==s||t[7]!==n||t[8]!==l||t[9]!==o||t[10]!==u||t[11]!==c||t[12]!==x||t[13]!==v||t[14]!==f||t[15]!==d?(E=async()=>{var e,t,r;if(!u||!c)return;if(v)return void x();const i=e=>{c.setValue(e),f({response:e})};b.current=b.current+1;const a=b.current;let p=h()||u.getValue();const m=null==d?void 0:d.getValue();let w;try{w=rg({json:m,errorMessageParse:"Variables are invalid JSON",errorMessageType:"Variables are not a JSON object."})}catch(_){const e=_;return void i(e instanceof Error?e.message:`${e}`)}const E=null==l?void 0:l.getValue();let k;try{k=rg({json:E,errorMessageParse:"Headers are invalid JSON",errorMessageType:"Headers are not a JSON object."})}catch(N){const e=N;return void i(e instanceof Error?e.message:`${e}`)}if(s){const e=u.documentAST?lu(u.documentAST,s):[];e.length>0&&(p=p+"\n"+e.map(ag).join("\n"))}i(""),g(!0);const C=null!==(e=null!=o?o:u.operationName)&&void 0!==e?e:void 0,S=null!==(t=k)&&void 0!==t?t:void 0,T=null!==(r=u.documentAST)&&void 0!==r?r:void 0;try{const e={},t=t=>{if(a!==b.current)return;let n=!!Array.isArray(t)&&t;if(!n&&"object"==typeof t&&null!==t&&"hasNext"in t&&(n=[t]),n){for(const t of n)og(e,t);g(!1),i(wa(e))}else{const e=wa(t);g(!1),i(e)}},r=await n({query:p,variables:w,operationName:C},{headers:S,documentAST:T});L(r)?y(r.subscribe({next(e){t(e)},error(e){g(!1),e&&i(ba(e)),y(null)},complete(){g(!1),y(null)}})):I(r)?(y({unsubscribe:()=>{var e,t;return null==(t=(e=r[Symbol.asyncIterator]()).return)?void 0:t.call(e)}}),await async function(e,t){for await(const n of t)e(n)}(t,r),g(!1),y(null)):t(r)}catch(A){const e=A;g(!1),i(ba(e)),y(null)}},t[5]=h,t[6]=s,t[7]=n,t[8]=l,t[9]=o,t[10]=u,t[11]=c,t[12]=x,t[13]=v,t[14]=f,t[15]=d,t[16]=E):E=t[16];const k=E,C=Boolean(v),S=null!=o?o:null;let T;t[17]!==m||t[18]!==k||t[19]!==x||t[20]!==C||t[21]!==S?(T={isFetching:m,isSubscribed:C,operationName:S,run:k,stop:x},t[17]=m,t[18]=k,t[19]=x,t[20]=C,t[21]=S,t[22]=T):T=t[22];const _=T;let N;return t[23]!==i||t[24]!==_?(N=(0,Gm.jsx)(eg.Provider,{value:_,children:i}),t[23]=i,t[24]=_,t[25]=N):N=t[25],N},ng=Ru(eg);function rg({json:e,errorMessageParse:t,errorMessageType:n}){let r;try{r=e&&""!==e.trim()?JSON.parse(e):void 0}catch(tp){throw new Error(`${t}: ${tp instanceof Error?tp.message:tp}.`)}if(void 0!==r&&("object"!=typeof r||null===r||Array.isArray(r)))throw new Error(n);return r}var ig=new WeakMap;function og(e,t){var n,r,i,o;let a=["data",...null!==(n=t.path)&&void 0!==n?n:[]];for(const c of[e,t])if(c.pending){let t=ig.get(e);void 0===t&&(t=new Map,ig.set(e,t));for(const{id:e,path:n}of c.pending)t.set(e,["data",...n])}const{items:s}=t;if(s){const{id:n}=t;if(n){if(a=null==(r=ig.get(e))?void 0:r.get(n),void 0===a)throw new Error("Invalid incremental delivery format.");(0,Jm.default)(e,a.join(".")).push(...s)}else{var l;a=["data",...null!==(l=t.path)&&void 0!==l?l:[]];for(const t of s)(0,Zm.default)(e,a.join("."),t),a[a.length-1]++}}const{data:u}=t;if(u){const{id:n}=t;if(n){if(a=null==(i=ig.get(e))?void 0:i.get(n),void 0===a)throw new Error("Invalid incremental delivery format.");const{subPath:r}=t;void 0!==r&&(a=[...a,...r])}(0,Zm.default)(e,a.join("."),u,{merge:!0})}if(t.errors&&(e.errors||(e.errors=[]),e.errors.push(...t.errors)),t.extensions&&(0,Zm.default)(e,"extensions",t.extensions,{merge:!0}),t.incremental)for(const c of t.incremental)og(e,c);if(t.completed)for(const{id:c,errors:d}of t.completed)null==(o=ig.get(e))||o.delete(c),d&&(e.errors||(e.errors=[]),e.errors.push(...d))}function ag(e){return It(e)}var sg=e=>{const t=(0,$u.c)(45),{children:n,dangerouslyAssumeSchemaIsValid:r,defaultQuery:i,defaultHeaders:o,defaultTabs:a,externalFragments:s,fetcher:l,getDefaultFieldNames:u,headers:c,inputValueDeprecation:d,introspectionQueryName:f,onEditOperationName:p,onSchemaChange:h,onTabChange:m,onTogglePluginVisibility:g,operationName:v,plugins:y,referencePlugin:b,query:w,response:x,schema:E,schemaDescription:k,shouldPersistHeaders:C,storage:S,validationRules:T,variables:_,visiblePlugin:N}=e;let A;t[0]!==o||t[1]!==i||t[2]!==a||t[3]!==s||t[4]!==c||t[5]!==p||t[6]!==m||t[7]!==w||t[8]!==x||t[9]!==C||t[10]!==T||t[11]!==_?(A={defaultQuery:i,defaultHeaders:o,defaultTabs:a,externalFragments:s,headers:c,onEditOperationName:p,onTabChange:m,query:w,response:x,shouldPersistHeaders:C,validationRules:T,variables:_},t[0]=o,t[1]=i,t[2]=a,t[3]=s,t[4]=c,t[5]=p,t[6]=m,t[7]=w,t[8]=x,t[9]=C,t[10]=T,t[11]=_,t[12]=A):A=t[12];const D=A;let O;t[13]!==r||t[14]!==l||t[15]!==d||t[16]!==f||t[17]!==h||t[18]!==E||t[19]!==k?(O={dangerouslyAssumeSchemaIsValid:r,fetcher:l,inputValueDeprecation:d,introspectionQueryName:f,onSchemaChange:h,schema:E,schemaDescription:k},t[13]=r,t[14]=l,t[15]=d,t[16]=f,t[17]=h,t[18]=E,t[19]=k,t[20]=O):O=t[20];const L=O;let I;t[21]!==l||t[22]!==u||t[23]!==v?(I={getDefaultFieldNames:u,fetcher:l,operationName:v},t[21]=l,t[22]=u,t[23]=v,t[24]=I):I=t[24];const M=I;let F;t[25]!==g||t[26]!==y||t[27]!==b||t[28]!==N?(F={onTogglePluginVisibility:g,plugins:y,visiblePlugin:N,referencePlugin:b},t[25]=g,t[26]=y,t[27]=b,t[28]=N,t[29]=F):F=t[29];const P=F;let R,j,V,B,z;return t[30]!==n||t[31]!==P?(R=(0,Gm.jsx)(mc,{...P,children:n}),t[30]=n,t[31]=P,t[32]=R):R=t[32],t[33]!==M||t[34]!==R?(j=(0,Gm.jsx)(tg,{...M,children:R}),t[33]=M,t[34]=R,t[35]=j):j=t[35],t[36]!==L||t[37]!==j?(V=(0,Gm.jsx)(yc,{...L,children:j}),t[36]=L,t[37]=j,t[38]=V):V=t[38],t[39]!==D||t[40]!==V?(B=(0,Gm.jsx)(Ym,{...D,children:V}),t[39]=D,t[40]=V,t[41]=B):B=t[41],t[42]!==S||t[43]!==B?(z=(0,Gm.jsx)(Hu,{storage:S,children:B}),t[42]=S,t[43]=B,t[44]=z):z=t[44],z},lg="theme",ug=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("path",{d:"M5.0484 1.40838C6.12624 0.33054 7.87376 0.330541 8.9516 1.40838L12.5916 5.0484C13.6695 6.12624 13.6695 7.87376 12.5916 8.9516L8.9516 12.5916C7.87376 13.6695 6.12624 13.6695 5.0484 12.5916L1.40838 8.9516C0.33054 7.87376 0.330541 6.12624 1.40838 5.0484L5.0484 1.40838Z",stroke:"currentColor",strokeWidth:1.2}),Fu.createElement("rect",{x:6,y:6,width:2,height:2,rx:1,fill:"currentColor"}))),cg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("path",{d:"M1 1L7 7L13 1",stroke:"currentColor",strokeWidth:1.5}))),dg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("path",{d:"M6 1.04819L2 5.04819L6 9.04819",stroke:"currentColor",strokeWidth:1.75}))),fg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 14 9",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("path",{d:"M13 8L7 2L1 8",stroke:"currentColor",strokeWidth:1.5}))),pg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 14 14",stroke:"currentColor",strokeWidth:3,xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("path",{d:"M1 1L12.9998 12.9997"}),Fu.createElement("path",{d:"M13 1L1.00079 13.0003"}))),hg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("path",{d:"M11.25 14.2105V15.235C11.25 16.3479 10.3479 17.25 9.23501 17.25H2.76499C1.65214 17.25 0.75 16.3479 0.75 15.235L0.75 8.76499C0.75 7.65214 1.65214 6.75 2.76499 6.75L3.78947 6.75",stroke:"currentColor",strokeWidth:1.5}),Fu.createElement("rect",{x:6.75,y:.75,width:10.5,height:10.5,rx:2.2069,stroke:"currentColor",strokeWidth:1.5}))),mg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("path",{d:"M5.0484 1.40838C6.12624 0.33054 7.87376 0.330541 8.9516 1.40838L12.5916 5.0484C13.6695 6.12624 13.6695 7.87376 12.5916 8.9516L8.9516 12.5916C7.87376 13.6695 6.12624 13.6695 5.0484 12.5916L1.40838 8.9516C0.33054 7.87376 0.330541 6.12624 1.40838 5.0484L5.0484 1.40838Z",stroke:"currentColor",strokeWidth:1.2}),Fu.createElement("path",{d:"M5 9L9 5",stroke:"currentColor",strokeWidth:1.2}),Fu.createElement("path",{d:"M5 5L9 9",stroke:"currentColor",strokeWidth:1.2}))),gg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),Fu.createElement("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2}),Fu.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 1.2H9C9.99411 1.2 10.8 2.00589 10.8 3V9C10.8 9.99411 9.99411 10.8 9 10.8H8.5V12H9C10.6569 12 12 10.6569 12 9V3C12 1.34315 10.6569 0 9 0H8.5V1.2ZM3.5 1.2V0H3C1.34315 0 0 1.34315 0 3V9C0 10.6569 1.34315 12 3 12H3.5V10.8H3C2.00589 10.8 1.2 9.99411 1.2 9V3C1.2 2.00589 2.00589 1.2 3 1.2H3.5Z",fill:"currentColor"}))),vg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("rect",{x:.6,y:.6,width:10.8,height:10.8,rx:3.4,stroke:"currentColor",strokeWidth:1.2}),Fu.createElement("path",{d:"M4 8L8 4",stroke:"currentColor",strokeWidth:1.2}),Fu.createElement("path",{d:"M4 4L8 8",stroke:"currentColor",strokeWidth:1.2}))),yg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0.5 12 12",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("rect",{x:7,y:5.5,width:2,height:2,rx:1,transform:"rotate(90 7 5.5)",fill:"currentColor"}),Fu.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8 9L10.8 9.5C10.8 10.4941 9.99411 11.3 9 11.3L3 11.3C2.00589 11.3 1.2 10.4941 1.2 9.5L1.2 9L-3.71547e-07 9L-3.93402e-07 9.5C-4.65826e-07 11.1569 1.34314 12.5 3 12.5L9 12.5C10.6569 12.5 12 11.1569 12 9.5L12 9L10.8 9ZM10.8 4L12 4L12 3.5C12 1.84315 10.6569 0.5 9 0.5L3 0.5C1.34315 0.5 -5.87117e-08 1.84315 -1.31135e-07 3.5L-1.5299e-07 4L1.2 4L1.2 3.5C1.2 2.50589 2.00589 1.7 3 1.7L9 1.7C9.99411 1.7 10.8 2.50589 10.8 3.5L10.8 4Z",fill:"currentColor"}))),bg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("path",{d:"M0.75 3C0.75 1.75736 1.75736 0.75 3 0.75H17.25C17.8023 0.75 18.25 1.19772 18.25 1.75V5.25",stroke:"currentColor",strokeWidth:1.5}),Fu.createElement("path",{d:"M0.75 3C0.75 4.24264 1.75736 5.25 3 5.25H18.25C18.8023 5.25 19.25 5.69771 19.25 6.25V22.25C19.25 22.8023 18.8023 23.25 18.25 23.25H3C1.75736 23.25 0.75 22.2426 0.75 21V3Z",stroke:"currentColor",strokeWidth:1.5}),Fu.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 5.25C1.75736 5.25 0.75 4.24264 0.75 3V21C0.75 22.2426 1.75736 23.25 3 23.25H18.25C18.8023 23.25 19.25 22.8023 19.25 22.25V6.25C19.25 5.69771 18.8023 5.25 18.25 5.25H3ZM13 11L6 11V12.5L13 12.5V11Z",fill:"currentColor"}))),wg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("path",{d:"M0.75 3C0.75 4.24264 1.75736 5.25 3 5.25H17.25M0.75 3C0.75 1.75736 1.75736 0.75 3 0.75H16.25C16.8023 0.75 17.25 1.19772 17.25 1.75V5.25M0.75 3V21C0.75 22.2426 1.75736 23.25 3 23.25H18.25C18.8023 23.25 19.25 22.8023 19.25 22.25V6.25C19.25 5.69771 18.8023 5.25 18.25 5.25H17.25",stroke:"currentColor",strokeWidth:1.5}),Fu.createElement("line",{x1:13,y1:11.75,x2:6,y2:11.75,stroke:"currentColor",strokeWidth:1.5}))),xg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("rect",{x:5,y:5,width:2,height:2,rx:1,fill:"currentColor"}),Fu.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 1.2H9C9.99411 1.2 10.8 2.00589 10.8 3V9C10.8 9.99411 9.99411 10.8 9 10.8H8.5V12H9C10.6569 12 12 10.6569 12 9V3C12 1.34315 10.6569 0 9 0H8.5V1.2ZM3.5 1.2V0H3C1.34315 0 0 1.34315 0 3V9C0 10.6569 1.34315 12 3 12H3.5V10.8H3C2.00589 10.8 1.2 9.99411 1.2 9V3C1.2 2.00589 2.00589 1.2 3 1.2H3.5Z",fill:"currentColor"}))),Eg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("rect",{x:.6,y:1.1,width:10.8,height:10.8,rx:2.4,stroke:"currentColor",strokeWidth:1.2}),Fu.createElement("rect",{x:5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"}))),kg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 24 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("path",{d:"M1.59375 9.52344L4.87259 12.9944L8.07872 9.41249",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),Fu.createElement("path",{d:"M13.75 5.25V10.75H18.75",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"square"}),Fu.createElement("path",{d:"M4.95427 11.9332C4.55457 10.0629 4.74441 8.11477 5.49765 6.35686C6.25089 4.59894 7.5305 3.11772 9.16034 2.11709C10.7902 1.11647 12.6901 0.645626 14.5986 0.769388C16.5071 0.893151 18.3303 1.60543 19.8172 2.80818C21.3042 4.01093 22.3818 5.64501 22.9017 7.48548C23.4216 9.32595 23.3582 11.2823 22.7203 13.0853C22.0824 14.8883 20.9013 16.4492 19.3396 17.5532C17.778 18.6572 15.9125 19.25 14 19.25",stroke:"currentColor",strokeWidth:1.5}))),Cg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("circle",{cx:6,cy:6,r:5.4,stroke:"currentColor",strokeWidth:1.2,strokeDasharray:"4.241025 4.241025",transform:"rotate(22.5 6 6)"}),Fu.createElement("circle",{cx:6,cy:6,r:1,fill:"currentColor"}))),Sg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("path",{d:"M1.5 14.5653C1.5 15.211 1.75652 15.8303 2.21314 16.2869C2.66975 16.7435 3.28905 17 3.9348 17C4.58054 17 5.19984 16.7435 5.65646 16.2869C6.11307 15.8303 6.36959 15.211 6.36959 14.5653V12.1305H3.9348C3.28905 12.1305 2.66975 12.387 2.21314 12.8437C1.75652 13.3003 1.5 13.9195 1.5 14.5653Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),Fu.createElement("path",{d:"M3.9348 1.00063C3.28905 1.00063 2.66975 1.25715 2.21314 1.71375C1.75652 2.17035 1.5 2.78964 1.5 3.43537C1.5 4.0811 1.75652 4.70038 2.21314 5.15698C2.66975 5.61358 3.28905 5.8701 3.9348 5.8701H6.36959V3.43537C6.36959 2.78964 6.11307 2.17035 5.65646 1.71375C5.19984 1.25715 4.58054 1.00063 3.9348 1.00063Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),Fu.createElement("path",{d:"M15.0652 12.1305H12.6304V14.5653C12.6304 15.0468 12.7732 15.5175 13.0407 15.9179C13.3083 16.3183 13.6885 16.6304 14.1334 16.8147C14.5783 16.9989 15.0679 17.0472 15.5402 16.9532C16.0125 16.8593 16.4464 16.6274 16.7869 16.2869C17.1274 15.9464 17.3593 15.5126 17.4532 15.0403C17.5472 14.568 17.4989 14.0784 17.3147 13.6335C17.1304 13.1886 16.8183 12.8084 16.4179 12.5409C16.0175 12.2733 15.5468 12.1305 15.0652 12.1305Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),Fu.createElement("path",{d:"M12.6318 5.86775H6.36955V12.1285H12.6318V5.86775Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}),Fu.createElement("path",{d:"M17.5 3.43473C17.5 2.789 17.2435 2.16972 16.7869 1.71312C16.3303 1.25652 15.711 1 15.0652 1C14.4195 1 13.8002 1.25652 13.3435 1.71312C12.8869 2.16972 12.6304 2.789 12.6304 3.43473V5.86946H15.0652C15.711 5.86946 16.3303 5.61295 16.7869 5.15635C17.2435 4.69975 17.5 4.08046 17.5 3.43473Z",stroke:"currentColor",strokeWidth:1.125,strokeLinecap:"round",strokeLinejoin:"round"}))),Tg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("circle",{cx:5,cy:5,r:4.35,stroke:"currentColor",strokeWidth:1.3}),Fu.createElement("line",{x1:8.45962,y1:8.54038,x2:11.7525,y2:11.8333,stroke:"currentColor",strokeWidth:1.3}))),_g=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"-2 -2 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("path",{d:"M17.2492 6V2.9569C17.2492 1.73806 16.2611 0.75 15.0423 0.75L2.9569 0.75C1.73806 0.75 0.75 1.73806 0.75 2.9569L0.75 6",stroke:"currentColor",strokeWidth:1.5}),Fu.createElement("path",{d:"M0.749873 12V15.0431C0.749873 16.2619 1.73794 17.25 2.95677 17.25H15.0421C16.261 17.25 17.249 16.2619 17.249 15.0431V12",stroke:"currentColor",strokeWidth:1.5}),Fu.createElement("path",{d:"M6 4.5L9 7.5L12 4.5",stroke:"currentColor",strokeWidth:1.5}),Fu.createElement("path",{d:"M12 13.5L9 10.5L6 13.5",stroke:"currentColor",strokeWidth:1.5}))),Ng=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("path",{d:"M0.75 13.25L0.0554307 12.967C-0.0593528 13.2488 0.00743073 13.5719 0.224488 13.7851C0.441545 13.9983 0.765869 14.0592 1.04549 13.9393L0.75 13.25ZM12.8214 1.83253L12.2911 2.36286L12.2911 2.36286L12.8214 1.83253ZM12.8214 3.90194L13.3517 4.43227L12.8214 3.90194ZM10.0981 1.17859L9.56773 0.648259L10.0981 1.17859ZM12.1675 1.17859L12.6978 0.648258L12.6978 0.648257L12.1675 1.17859ZM2.58049 8.75697L3.27506 9.03994L2.58049 8.75697ZM2.70066 8.57599L3.23099 9.10632L2.70066 8.57599ZM5.2479 11.4195L4.95355 10.7297L5.2479 11.4195ZM5.42036 11.303L4.89003 10.7727L5.42036 11.303ZM4.95355 10.7297C4.08882 11.0987 3.41842 11.362 2.73535 11.6308C2.05146 11.9 1.35588 12.1743 0.454511 12.5607L1.04549 13.9393C1.92476 13.5624 2.60256 13.2951 3.28469 13.0266C3.96762 12.7578 4.65585 12.4876 5.54225 12.1093L4.95355 10.7297ZM1.44457 13.533L3.27506 9.03994L1.88592 8.474L0.0554307 12.967L1.44457 13.533ZM3.23099 9.10632L10.6284 1.70892L9.56773 0.648259L2.17033 8.04566L3.23099 9.10632ZM11.6371 1.70892L12.2911 2.36286L13.3517 1.3022L12.6978 0.648258L11.6371 1.70892ZM12.2911 3.37161L4.89003 10.7727L5.95069 11.8333L13.3517 4.43227L12.2911 3.37161ZM12.2911 2.36286C12.5696 2.64142 12.5696 3.09305 12.2911 3.37161L13.3517 4.43227C14.2161 3.56792 14.2161 2.16654 13.3517 1.3022L12.2911 2.36286ZM10.6284 1.70892C10.9069 1.43036 11.3586 1.43036 11.6371 1.70892L12.6978 0.648257C11.8335 -0.216088 10.4321 -0.216084 9.56773 0.648259L10.6284 1.70892ZM3.27506 9.03994C3.26494 9.06479 3.24996 9.08735 3.23099 9.10632L2.17033 8.04566C2.04793 8.16806 1.95123 8.31369 1.88592 8.474L3.27506 9.03994ZM5.54225 12.1093C5.69431 12.0444 5.83339 11.9506 5.95069 11.8333L4.89003 10.7727C4.90863 10.7541 4.92988 10.7398 4.95355 10.7297L5.54225 12.1093Z",fill:"currentColor"}),Fu.createElement("path",{d:"M11.5 4.5L9.5 2.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"}),Fu.createElement("path",{d:"M5.5 10.5L3.5 8.5",stroke:"currentColor",strokeWidth:1.4026,strokeLinecap:"round",strokeLinejoin:"round"}))),Ag=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 16 18",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("path",{d:"M1.32226e-07 1.6609C7.22332e-08 0.907329 0.801887 0.424528 1.46789 0.777117L15.3306 8.11621C16.0401 8.49182 16.0401 9.50818 15.3306 9.88379L1.46789 17.2229C0.801886 17.5755 1.36076e-06 17.0927 1.30077e-06 16.3391L1.32226e-07 1.6609Z",fill:"currentColor"}))),Dg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 10 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.25 9.25V13.5H5.75V9.25L10 9.25V7.75L5.75 7.75V3.5H4.25V7.75L0 7.75V9.25L4.25 9.25Z"}))),Og=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{width:25,height:25,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("path",{d:"M10.2852 24.0745L13.7139 18.0742",stroke:"currentColor",strokeWidth:1.5625}),Fu.createElement("path",{d:"M14.5742 24.0749L17.1457 19.7891",stroke:"currentColor",strokeWidth:1.5625}),Fu.createElement("path",{d:"M19.4868 24.0735L20.7229 21.7523C21.3259 20.6143 21.5457 19.3122 21.3496 18.0394C21.1535 16.7666 20.5519 15.591 19.6342 14.6874L23.7984 6.87853C24.0123 6.47728 24.0581 6.00748 23.9256 5.57249C23.7932 5.1375 23.4933 4.77294 23.0921 4.55901C22.6908 4.34509 22.221 4.29932 21.7861 4.43178C21.3511 4.56424 20.9865 4.86408 20.7726 5.26533L16.6084 13.0742C15.3474 12.8142 14.0362 12.9683 12.8699 13.5135C11.7035 14.0586 10.7443 14.9658 10.135 16.1L6 24.0735",stroke:"currentColor",strokeWidth:1.5625}),Fu.createElement("path",{d:"M4 15L5 13L7 12L5 11L4 9L3 11L1 12L3 13L4 15Z",stroke:"currentColor",strokeWidth:1.5625,strokeLinejoin:"round"}),Fu.createElement("path",{d:"M11.5 8L12.6662 5.6662L15 4.5L12.6662 3.3338L11.5 1L10.3338 3.3338L8 4.5L10.3338 5.6662L11.5 8Z",stroke:"currentColor",strokeWidth:1.5625,strokeLinejoin:"round"}))),Lg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("path",{d:"M4.75 9.25H1.25V12.75",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),Fu.createElement("path",{d:"M11.25 6.75H14.75V3.25",stroke:"currentColor",strokeWidth:1,strokeLinecap:"square"}),Fu.createElement("path",{d:"M14.1036 6.65539C13.8 5.27698 13.0387 4.04193 11.9437 3.15131C10.8487 2.26069 9.48447 1.76694 8.0731 1.75043C6.66173 1.73392 5.28633 2.19563 4.17079 3.0604C3.05526 3.92516 2.26529 5.14206 1.92947 6.513",stroke:"currentColor",strokeWidth:1}),Fu.createElement("path",{d:"M1.89635 9.34461C2.20001 10.723 2.96131 11.9581 4.05631 12.8487C5.15131 13.7393 6.51553 14.2331 7.9269 14.2496C9.33827 14.2661 10.7137 13.8044 11.8292 12.9396C12.9447 12.0748 13.7347 10.8579 14.0705 9.487",stroke:"currentColor",strokeWidth:1}))),Ig=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),Fu.createElement("path",{d:"M4.25 7.5C4.25 6 5.75 5 6.5 6.5C7.25 8 8.75 7 8.75 5.5",stroke:"currentColor",strokeWidth:1.2}))),Mg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.29186 1.92702C9.06924 1.82745 8.87014 1.68202 8.70757 1.50024L7.86631 0.574931C7.62496 0.309957 7.30773 0.12592 6.95791 0.0479385C6.60809 -0.0300431 6.24274 0.00182978 5.91171 0.139208C5.58068 0.276585 5.3001 0.512774 5.10828 0.815537C4.91645 1.1183 4.82272 1.47288 4.83989 1.83089L4.90388 3.08019C4.91612 3.32348 4.87721 3.56662 4.78968 3.79394C4.70215 4.02126 4.56794 4.2277 4.39571 4.39994C4.22347 4.57219 4.01704 4.7064 3.78974 4.79394C3.56243 4.88147 3.3193 4.92038 3.07603 4.90814L1.8308 4.84414C1.47162 4.82563 1.11553 4.91881 0.811445 5.11086C0.507359 5.30292 0.270203 5.58443 0.132561 5.91671C-0.00508149 6.249 -0.0364554 6.61576 0.0427496 6.9666C0.121955 7.31744 0.307852 7.63514 0.5749 7.87606L1.50016 8.71204C1.68193 8.87461 1.82735 9.07373 1.92692 9.29636C2.02648 9.51898 2.07794 9.76012 2.07794 10.004C2.07794 10.2479 2.02648 10.489 1.92692 10.7116C1.82735 10.9343 1.68193 11.1334 1.50016 11.296L0.5749 12.1319C0.309856 12.3729 0.125575 12.6898 0.0471809 13.0393C-0.0312128 13.3888 9.64098e-05 13.754 0.13684 14.0851C0.273583 14.4162 0.509106 14.6971 0.811296 14.8894C1.11349 15.0817 1.46764 15.1762 1.82546 15.1599L3.0707 15.0959C3.31397 15.0836 3.5571 15.1225 3.7844 15.2101C4.01171 15.2976 4.21814 15.4318 4.39037 15.6041C4.56261 15.7763 4.69682 15.9827 4.78435 16.2101C4.87188 16.4374 4.91078 16.6805 4.89855 16.9238L4.83455 18.1691C4.81605 18.5283 4.90921 18.8844 5.10126 19.1885C5.2933 19.4926 5.5748 19.7298 5.90707 19.8674C6.23934 20.0051 6.60608 20.0365 6.9569 19.9572C7.30772 19.878 7.6254 19.6921 7.86631 19.4251L8.7129 18.4998C8.87547 18.318 9.07458 18.1725 9.29719 18.073C9.51981 17.9734 9.76093 17.9219 10.0048 17.9219C10.2487 17.9219 10.4898 17.9734 10.7124 18.073C10.935 18.1725 11.1341 18.318 11.2967 18.4998L12.1326 19.4251C12.3735 19.6921 12.6912 19.878 13.042 19.9572C13.3929 20.0365 13.7596 20.0051 14.0919 19.8674C14.4241 19.7298 14.7056 19.4926 14.8977 19.1885C15.0897 18.8844 15.1829 18.5283 15.1644 18.1691L15.1004 16.9238C15.0882 16.6805 15.1271 16.4374 15.2146 16.2101C15.3021 15.9827 15.4363 15.7763 15.6086 15.6041C15.7808 15.4318 15.9872 15.2976 16.2145 15.2101C16.4418 15.1225 16.685 15.0836 16.9282 15.0959L18.1735 15.1599C18.5326 15.1784 18.8887 15.0852 19.1928 14.8931C19.4969 14.7011 19.7341 14.4196 19.8717 14.0873C20.0093 13.755 20.0407 13.3882 19.9615 13.0374C19.8823 12.6866 19.6964 12.3689 19.4294 12.1279L18.5041 11.292C18.3223 11.1294 18.1769 10.9303 18.0774 10.7076C17.9778 10.485 17.9263 10.2439 17.9263 10C17.9263 9.75612 17.9778 9.51499 18.0774 9.29236C18.1769 9.06973 18.3223 8.87062 18.5041 8.70804L19.4294 7.87206C19.6964 7.63114 19.8823 7.31344 19.9615 6.9626C20.0407 6.61176 20.0093 6.245 19.8717 5.91271C19.7341 5.58043 19.4969 5.29892 19.1928 5.10686C18.8887 4.91481 18.5326 4.82163 18.1735 4.84014L16.9282 4.90414C16.685 4.91638 16.4418 4.87747 16.2145 4.78994C15.9872 4.7024 15.7808 4.56818 15.6086 4.39594C15.4363 4.2237 15.3021 4.01726 15.2146 3.78994C15.1271 3.56262 15.0882 3.31948 15.1004 3.07619L15.1644 1.83089C15.1829 1.4717 15.0897 1.11559 14.8977 0.811487C14.7056 0.507385 14.4241 0.270217 14.0919 0.132568C13.7596 -0.00508182 13.3929 -0.0364573 13.042 0.0427519C12.6912 0.121961 12.3735 0.307869 12.1326 0.574931L11.2914 1.50024C11.1288 1.68202 10.9297 1.82745 10.7071 1.92702C10.4845 2.02659 10.2433 2.07805 9.99947 2.07805C9.7556 2.07805 9.51448 2.02659 9.29186 1.92702ZM14.3745 10C14.3745 12.4162 12.4159 14.375 9.99977 14.375C7.58365 14.375 5.625 12.4162 5.625 10C5.625 7.58375 7.58365 5.625 9.99977 5.625C12.4159 5.625 14.3745 7.58375 14.3745 10Z",fill:"currentColor"}))),Fg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("path",{d:"M6.5782 1.07092C6.71096 0.643026 7.28904 0.643027 7.4218 1.07092L8.59318 4.84622C8.65255 5.03758 8.82284 5.16714 9.01498 5.16714L12.8056 5.16714C13.2353 5.16714 13.4139 5.74287 13.0663 6.00732L9.99962 8.34058C9.84418 8.45885 9.77913 8.66848 9.83851 8.85984L11.0099 12.6351C11.1426 13.063 10.675 13.4189 10.3274 13.1544L7.26069 10.8211C7.10524 10.7029 6.89476 10.7029 6.73931 10.8211L3.6726 13.1544C3.32502 13.4189 2.85735 13.063 2.99012 12.6351L4.16149 8.85984C4.22087 8.66848 4.15582 8.45885 4.00038 8.34058L0.933671 6.00732C0.586087 5.74287 0.764722 5.16714 1.19436 5.16714L4.98502 5.16714C5.17716 5.16714 5.34745 5.03758 5.40682 4.84622L6.5782 1.07092Z",fill:"currentColor",stroke:"currentColor"}))),Pg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("path",{d:"M6.5782 1.07092C6.71096 0.643026 7.28904 0.643027 7.4218 1.07092L8.59318 4.84622C8.65255 5.03758 8.82284 5.16714 9.01498 5.16714L12.8056 5.16714C13.2353 5.16714 13.4139 5.74287 13.0663 6.00732L9.99962 8.34058C9.84418 8.45885 9.77913 8.66848 9.83851 8.85984L11.0099 12.6351C11.1426 13.063 10.675 13.4189 10.3274 13.1544L7.26069 10.8211C7.10524 10.7029 6.89476 10.7029 6.73931 10.8211L3.6726 13.1544C3.32502 13.4189 2.85735 13.063 2.99012 12.6351L4.16149 8.85984C4.22087 8.66848 4.15582 8.45885 4.00038 8.34058L0.933671 6.00732C0.586087 5.74287 0.764722 5.16714 1.19436 5.16714L4.98502 5.16714C5.17716 5.16714 5.34745 5.03758 5.40682 4.84622L6.5782 1.07092Z",stroke:"currentColor",strokeWidth:1.5}))),Rg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("rect",{width:16,height:16,rx:2,fill:"currentColor"}))),jg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{width:"1em",height:"5em",xmlns:"http://www.w3.org/2000/svg",fillRule:"evenodd","aria-hidden":"true",viewBox:"0 0 23 23",style:{height:"1.5em"},clipRule:"evenodd","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("path",{d:"M19 24h-14c-1.104 0-2-.896-2-2v-17h-1v-2h6v-1.5c0-.827.673-1.5 1.5-1.5h5c.825 0 1.5.671 1.5 1.5v1.5h6v2h-1v17c0 1.104-.896 2-2 2zm0-19h-14v16.5c0 .276.224.5.5.5h13c.276 0 .5-.224.5-.5v-16.5zm-7 7.586l3.293-3.293 1.414 1.414-3.293 3.293 3.293 3.293-1.414 1.414-3.293-3.293-3.293 3.293-1.414-1.414 3.293-3.293-3.293-3.293 1.414-1.414 3.293 3.293zm2-10.586h-4v1h4v-1z",fill:"currentColor",strokeWidth:.25,stroke:"currentColor"}))),Vg=Bg(({title:e,titleId:t,...n})=>Fu.createElement("svg",{height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-labelledby":t,...n},e?Fu.createElement("title",{id:t},e):null,Fu.createElement("rect",{x:.6,y:.6,width:11.8,height:11.8,rx:5.9,stroke:"currentColor",strokeWidth:1.2}),Fu.createElement("rect",{x:5.5,y:5.5,width:2,height:2,rx:1,fill:"currentColor"})));function Bg(e){const t=e.name.replace("Svg","").replaceAll(/([A-Z])/g," $1").trimStart().toLowerCase()+" icon",n=n=>{const r=(0,$u.c)(2);let i;return r[0]!==n?(i=(0,Gm.jsx)(e,{title:t,...n}),r[0]=n,r[1]=i):i=r[1],i};return n.displayName=e.name,n}function zg(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=zg(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function $g(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=zg(e))&&(r&&(r+=" "),r+=t);return r}var Ug=e=>{const t=(0,$u.c)(13);let n,r,i;t[0]!==e?(({isHidden:r,...n}=e),t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]),t[3]===Symbol.for("react.memo_cache_sentinel")?(i={nonNull:!0,caller:Ug},t[3]=i):i=t[3];const{headerEditor:o}=Qm(i),a=Ip(n,Ug);let s,l;t[4]!==o||t[5]!==r?(s=()=>{r||null==o||o.refresh()},l=[o,r],t[4]=o,t[5]=r,t[6]=s,t[7]=l):(s=t[6],l=t[7]),(0,Fu.useEffect)(s,l);const u=r&&"hidden";let c,d;return t[8]!==u?(c=$g("graphiql-editor",u),t[8]=u,t[9]=c):c=t[9],t[10]!==a||t[11]!==c?(d=(0,Gm.jsx)("div",{className:c,ref:a}),t[10]=a,t[11]=c,t[12]=d):d=t[12],d},Hg=Object.assign(e=>{var t;const n=(0,$u.c)(14);let r;n[0]===Symbol.for("react.memo_cache_sentinel")?(r={width:null,height:null},n[0]=r):r=n[0];const[i,o]=(0,Fu.useState)(r),[a,s]=(0,Fu.useState)(null),l=(0,Fu.useRef)(null),u=null==(t=Wg(e.token))?void 0:t.href;let c,d,f;n[1]!==u?(c=()=>{if(l.current)return u?void fetch(u,{method:"HEAD"}).then(e=>{s(e.headers.get("Content-Type"))}).catch(()=>{s(null)}):(o({width:null,height:null}),void s(null))},d=[u],n[1]=u,n[2]=c,n[3]=d):(c=n[2],d=n[3]),(0,Fu.useEffect)(c,d),n[4]!==i.height||n[5]!==i.width||n[6]!==a?(f=null!==i.width&&null!==i.height?(0,Gm.jsxs)("div",{children:[i.width,"x",i.height,null===a?null:" "+a]}):null,n[4]=i.height,n[5]=i.width,n[6]=a,n[7]=f):f=n[7];const p=f;let h,m,g;return n[8]===Symbol.for("react.memo_cache_sentinel")?(h=()=>{var e,t,n,r;o({width:null!==(e=null==(n=l.current)?void 0:n.naturalWidth)&&void 0!==e?e:null,height:null!==(t=null==(r=l.current)?void 0:r.naturalHeight)&&void 0!==t?t:null})},n[8]=h):h=n[8],n[9]!==u?(m=(0,Gm.jsx)("img",{onLoad:h,ref:l,src:u}),n[9]=u,n[10]=m):m=n[10],n[11]!==p||n[12]!==m?(g=(0,Gm.jsxs)("div",{children:[m,p]}),n[11]=p,n[12]=m,n[13]=g):g=n[13],g},{shouldRender(e){const t=Wg(e);return!!t&&function(e){return/\.(bmp|gif|jpe?g|png|svg|webp)$/.test(e.pathname)}(t)}});function Wg(e){if("string"!==e.type)return;const t=e.string.slice(1).slice(0,-1).trim();try{return new URL(t,location.protocol+"//"+location.host)}catch(n){}}var qg,Gg,Kg,Yg=e=>{const t=(0,$u.c)(2),n=Rh(e,Yg);let r;return t[0]!==n?(r=(0,Gm.jsx)("div",{className:"graphiql-editor",ref:n}),t[0]=n,t[1]=r):r=t[1],r},Qg=l({}),Xg=a(()=>{qg=c(Qu()),Au(),Lh(),qg.default.defineMode("graphql-results",e=>{const t=Dl({eatWhitespace:e=>e.eatSpace(),lexRules:Gg,parseRules:Kg,editorConfig:{tabSize:e.tabSize}});return{config:e,startState:t.startState,token:t.token,indent:Ah,electricInput:/^\s*[}\]]/,fold:"brace",closeBrackets:{pairs:'[]{}""',explode:"[]{}"}}}),Gg={Punctuation:/^\[|]|\{|\}|:|,/,Number:/^-?(?:0|(?:[1-9][0-9]*))(?:\.[0-9]*)?(?:[eE][+-]?[0-9]+)?/,String:/^"(?:[^"\\]|\\(?:"|\/|\\|b|f|n|r|t|u[0-9a-fA-F]{4}))*"?/,Keyword:/^true|false|null/},Kg={Document:[xl("{"),yl("Entry",xl(",")),xl("}")],Entry:[wl("String","def"),xl(":"),"Value"],Value(e){switch(e.kind){case"Number":return"NumberValue";case"String":return"StringValue";case"Punctuation":switch(e.value){case"[":return"ListValue";case"{":return"ObjectValue"}return null;case"Keyword":switch(e.value){case"true":case"false":return"BooleanValue";case"null":return"NullValue"}return null}},NumberValue:[wl("Number","number")],StringValue:[wl("String","string")],BooleanValue:[wl("Keyword","builtin")],NullValue:[wl("Keyword","keyword")],ListValue:[xl("["),yl("Value",xl(",")),xl("]")],ObjectValue:[xl("{"),yl("ObjectField",xl(",")),xl("}")],ObjectField:[wl("String","property"),xl(":"),"Value"]}}),Zg=c(y()),Jg=ev;function ev(e,t){const n=(0,$u.c)(17);let r;n[0]!==e?(r=void 0===e?{}:e,n[0]=e,n[1]=r):r=n[1];const{responseTooltip:i,editorTheme:o,keyMap:a}=r,s=void 0===o?lc:o,l=void 0===a?uc:a,{fetchError:u,validationErrors:d}=bc(),f=t||Jg;let p;n[2]!==f?(p={nonNull:!0,caller:f},n[2]=f,n[3]=p):p=n[3];const{initialResponse:h,responseEditor:m,setResponseEditor:g}=Qm(p),v=(0,Fu.useRef)(null),y=(0,Fu.useRef)(i);let b,w,x,E,k,C;return n[4]!==i?(b=()=>{y.current=i},w=[i],n[4]=i,n[5]=b,n[6]=w):(b=n[5],w=n[6]),(0,Fu.useEffect)(b,w),n[7]!==s||n[8]!==h||n[9]!==g?(x=()=>{let e=!0;return dc([ga(()=>Promise.resolve().then(()=>c(nc())),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>c(ec())),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>c(oc())),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>c(Hp())),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>c(ic())),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>c(ac())),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>c(sc())),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>(Xg(),Qg)),void 0,import.meta.url),ga(()=>Promise.resolve().then(()=>(dh(),lh)),void 0,import.meta.url)],{useCommonAddons:!1}).then(t=>{if(!e)return;const n=document.createElement("div"),r=(0,Zg.createRoot)(n);t.registerHelper("info","graphql-results",(e,t,i,o)=>{const a=y.current,s=[a&&(0,Gm.jsx)(a,{pos:o,token:e}),Hg.shouldRender(e)&&(0,Gm.jsx)(Hg,{token:e},"image-preview")].filter(tv);if(s.length)return r.render(s),n;r.unmount()});const i=v.current;i&&g(t(i,{value:h,lineWrapping:!0,readOnly:!0,theme:s,mode:"graphql-results",foldGutter:!0,gutters:["CodeMirror-foldgutter"],info:!0,extraKeys:cc}))}),()=>{e=!1}},E=[s,h,g],n[7]=s,n[8]=h,n[9]=g,n[10]=x,n[11]=E):(x=n[10],E=n[11]),(0,Fu.useEffect)(x,E),yp(m,"keyMap",l),n[12]!==u||n[13]!==m||n[14]!==d?(k=()=>{u&&(null==m||m.setValue(u)),d.length&&(null==m||m.setValue(ba(d)))},C=[m,u,d],n[12]=u,n[13]=m,n[14]=d,n[15]=k,n[16]=C):(k=n[15],C=n[16]),(0,Fu.useEffect)(k,C),v}function tv(e){return Boolean(e)}var nv=e=>{const t=(0,$u.c)(2),n=ev(e,nv);let r;return t[0]!==n?(r=(0,Gm.jsx)("section",{className:"result-window","aria-label":"Result Window","aria-live":"polite","aria-atomic":"true",ref:n}),t[0]=n,t[1]=r):r=t[1],r},rv=e=>{const t=(0,$u.c)(13);let n,r,i;t[0]!==e?(({isHidden:r,...n}=e),t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]),t[3]===Symbol.for("react.memo_cache_sentinel")?(i={nonNull:!0,caller:rv},t[3]=i):i=t[3];const{variableEditor:o}=Qm(i),a=Um(n,rv);let s,l;t[4]!==r||t[5]!==o?(s=()=>{r||null==o||o.refresh()},l=[o,r],t[4]=r,t[5]=o,t[6]=s,t[7]=l):(s=t[6],l=t[7]),(0,Fu.useEffect)(s,l);const u=r&&"hidden";let c,d;return t[8]!==u?(c=$g("graphiql-editor",u),t[8]=u,t[9]=c):c=t[9],t[10]!==a||t[11]!==c?(d=(0,Gm.jsx)("div",{className:c,ref:a}),t[10]=a,t[11]=c,t[12]=d):d=t[12],d};function iv(e){const t=(0,$u.c)(31),{defaultSizeRelation:n,direction:r,initiallyHidden:i,onHiddenElementChange:o,sizeThresholdFirst:a,sizeThresholdSecond:s,storageKey:l}=e,u=void 0===n?1:n,c=void 0===a?100:a,d=void 0===s?100:s,f=qu();let p;t[0]!==f||t[1]!==l?(p=mp(500,e=>{l&&f.set(l,e)}),t[0]=f,t[1]=l,t[2]=p):p=t[2];const h=p;let m;t[3]!==i||t[4]!==f||t[5]!==l?(m=()=>{const e=l&&f.get(l);return e===ov||"first"===i?"first":e===av||"second"===i?"second":null},t[3]=i,t[4]=f,t[5]=l,t[6]=m):m=t[6];const[g,v]=(0,Fu.useState)(m);let y;t[7]!==g||t[8]!==o?(y=e=>{e!==g&&(v(e),null==o||o(e))},t[7]=g,t[8]=o,t[9]=y):y=t[9];const b=y,w=(0,Fu.useRef)(null),x=(0,Fu.useRef)(null),E=(0,Fu.useRef)(null),k=(0,Fu.useRef)(`${u}`);let C,S,T,_,N,A,D;return t[10]!==f||t[11]!==l?(C=()=>{const e=l&&f.get(l)||k.current;w.current&&(w.current.style.flex=e===ov||e===av?k.current:e),E.current&&(E.current.style.flex="1")},t[10]=f,t[11]=l,t[12]=C):C=t[12],t[13]!==r||t[14]!==f||t[15]!==l?(S=[r,f,l],t[13]=r,t[14]=f,t[15]=l,t[16]=S):S=t[16],(0,Fu.useEffect)(C,S),t[17]!==g||t[18]!==f||t[19]!==l?(_=()=>{const e=e=>{const t="first"===e?w.current:E.current;if(t&&(t.style.left="-1000px",t.style.position="absolute",t.style.opacity="0",t.style.height="500px",t.style.width="500px",w.current)){const e=parseFloat(w.current.style.flex);(!Number.isFinite(e)||e<1)&&(w.current.style.flex="1")}},t=e=>{const t="first"===e?w.current:E.current;if(t&&(t.style.width="",t.style.height="",t.style.opacity="",t.style.position="",t.style.left="",l)){const e=f.get(l);w.current&&e!==ov&&e!==av&&(w.current.style.flex=e||k.current)}};"first"===g?e("first"):t("first"),"second"===g?e("second"):t("second")},T=[g,f,l],t[17]=g,t[18]=f,t[19]=l,t[20]=T,t[21]=_):(T=t[20],_=t[21]),(0,Fu.useEffect)(_,T),t[22]!==r||t[23]!==b||t[24]!==c||t[25]!==d||t[26]!==h?(N=()=>{if(!x.current||!w.current||!E.current)return;const e=x.current,t=w.current,n=t.parentElement,i="horizontal"===r?"clientX":"clientY",o="horizontal"===r?"left":"top",a="horizontal"===r?"right":"bottom",s="horizontal"===r?"clientWidth":"clientHeight",l=function(r){if(r.target!==r.currentTarget)return;r.preventDefault();const l=r[i]-e.getBoundingClientRect()[o],u=function(r){if(0===r.buttons)return f();const u=r[i]-n.getBoundingClientRect()[o]-l,p=n.getBoundingClientRect()[a]-r[i]+l-e[s];if(u<c)b("first"),h(ov);else if(p<d)b("second"),h(av);else{b(null);const e=""+u/p;t.style.flex=e,h(e)}};function f(){document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",f)}document.addEventListener("mousemove",u),document.addEventListener("mouseup",f)};e.addEventListener("mousedown",l);const u=function(){w.current&&(w.current.style.flex=k.current),h(k.current),b(null)};return e.addEventListener("dblclick",u),()=>{e.removeEventListener("mousedown",l),e.removeEventListener("dblclick",u)}},A=[r,b,c,d,h],t[22]=r,t[23]=b,t[24]=c,t[25]=d,t[26]=h,t[27]=N,t[28]=A):(N=t[27],A=t[28]),(0,Fu.useEffect)(N,A),t[29]!==g?(D={dragBarRef:x,hiddenElement:g,firstRef:w,setHiddenElement:v,secondRef:E},t[29]=g,t[30]=D):D=t[30],D}var ov="hide-first",av="hide-second",sv=(0,Fu.forwardRef)((e,t)=>{const n=(0,$u.c)(6);let r,i;return n[0]!==e.className?(r=$g("graphiql-un-styled",e.className),n[0]=e.className,n[1]=r):r=n[1],n[2]!==e||n[3]!==t||n[4]!==r?(i=(0,Gm.jsx)("button",{...e,ref:t,className:r}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});sv.displayName="UnStyledButton";var lv=(0,Fu.forwardRef)((e,t)=>{const n=(0,$u.c)(7);let r,i;return n[0]!==e.className||n[1]!==e.state?(r=$g("graphiql-button",{success:"graphiql-button-success",error:"graphiql-button-error"}[e.state],e.className),n[0]=e.className,n[1]=e.state,n[2]=r):r=n[2],n[3]!==e||n[4]!==t||n[5]!==r?(i=(0,Gm.jsx)("button",{...e,ref:t,className:r}),n[3]=e,n[4]=t,n[5]=r,n[6]=i):i=n[6],i});lv.displayName="Button";var uv,cv=(0,Fu.forwardRef)((e,t)=>{const n=(0,$u.c)(6);let r,i;return n[0]!==e.className?(r=$g("graphiql-button-group",e.className),n[0]=e.className,n[1]=r):r=n[1],n[2]!==e||n[3]!==t||n[4]!==r?(i=(0,Gm.jsx)("div",{...e,ref:t,className:r}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});function dv(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}function fv(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function pv(...e){return t=>{let n=!1;const r=e.map(e=>{const r=fv(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():fv(e[t],null)}}}}function hv(...e){return Fu.useCallback(pv(...e),e)}function mv(e,t=[]){let n=[];const r=()=>{const t=n.map(e=>Fu.createContext(e));return function(n){const r=(null==n?void 0:n[e])||t;return Fu.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){const i=Fu.createContext(r),o=n.length;n=[...n,r];const a=t=>{var n;const{scope:r,children:a,...s}=t,l=(null==r||null===(n=r[e])||void 0===n?void 0:n[o])||i,u=Fu.useMemo(()=>s,Object.values(s));return(0,Gm.jsx)(l.Provider,{value:u,children:a})};return a.displayName=t+"Provider",[a,function(n,a){var s;const l=(null==a||null===(s=a[e])||void 0===s?void 0:s[o])||i,u=Fu.useContext(l);if(u)return u;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},gv(r,...t)]}function gv(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const r=n.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return Fu.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}cv.displayName="ButtonGroup","undefined"==typeof window||!window.document||window.document.createElement;var vv=(null===(uv=globalThis)||void 0===uv?void 0:uv.document)?Fu.useLayoutEffect:()=>{},yv=Fu[" useId ".trim().toString()]||(()=>{}),bv=0;function wv(e){const[t,n]=Fu.useState(yv());return vv(()=>{e||n(e=>null!=e?e:String(bv++))},[e]),e||(t?`radix-${t}`:"")}var xv=Fu[" useInsertionEffect ".trim().toString()]||vv;function Ev({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,o,a]=function({defaultProp:e,onChange:t}){const[n,r]=Fu.useState(e),i=Fu.useRef(n),o=Fu.useRef(t);return xv(()=>{o.current=t},[t]),Fu.useEffect(()=>{var e;i.current!==n&&(null===(e=o.current)||void 0===e||e.call(o,n),i.current=n)},[n,i]),[n,r,o]}({defaultProp:t,onChange:n}),s=void 0!==e,l=s?e:i;{const t=Fu.useRef(void 0!==e);Fu.useEffect(()=>{t.current,t.current=s},[s,r])}return[l,Fu.useCallback(t=>{if(s){const r=function(e){return"function"==typeof e}(t)?t(e):t;var n;r!==e&&(null===(n=a.current)||void 0===n||n.call(a,r))}else o(t)},[s,e,o,a])]}function kv(e){const t=Cv(e),n=Fu.forwardRef((e,n)=>{const{children:r,...i}=e,o=Fu.Children.toArray(r),a=o.find(Tv);if(a){const e=a.props.children,r=o.map(t=>t===a?Fu.Children.count(e)>1?Fu.Children.only(null):Fu.isValidElement(e)?e.props.children:null:t);return(0,Gm.jsx)(t,{...i,ref:n,children:Fu.isValidElement(e)?Fu.cloneElement(e,void 0,r):null})}return(0,Gm.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}function Cv(e){const t=Fu.forwardRef((e,t)=>{const{children:n,...r}=e;if(Fu.isValidElement(n)){const e=function(e){var t,n;let r=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?e.ref:(r=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get,i=r&&"isReactWarning"in r&&r.isReactWarning,i?e.props.ref:e.props.ref||e.ref)}(n),i=function(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{const t=o(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==Fu.Fragment&&(i.ref=t?pv(t,e):e),Fu.cloneElement(n,i)}return Fu.Children.count(n)>1?Fu.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Sv=Symbol("radix.slottable");function Tv(e){return Fu.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Sv}var _v=c(g(),1),Nv=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=kv(`Primitive.${t}`),r=Fu.forwardRef((e,r)=>{const{asChild:i,...o}=e,a=i?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,Gm.jsx)(a,{...o,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Av(e,t){e&&_v.flushSync(()=>e.dispatchEvent(t))}function Dv(e){const t=Fu.useRef(e);return Fu.useEffect(()=>{t.current=e}),Fu.useMemo(()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)},[])}var Ov,Lv="dismissableLayer.update",Iv=Fu.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Mv=Fu.forwardRef((e,t)=>{var n,r;const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:s,onInteractOutside:l,onDismiss:u,...c}=e,d=Fu.useContext(Iv),[f,p]=Fu.useState(null),h=null!==(n=null==f?void 0:f.ownerDocument)&&void 0!==n?n:null===(r=globalThis)||void 0===r?void 0:r.document,[,m]=Fu.useState({}),g=hv(t,e=>p(e)),v=Array.from(d.layers),[y]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),b=v.indexOf(y),w=f?v.indexOf(f):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,E=w>=b,k=function(e,t=(()=>{var e;return null===(e=globalThis)||void 0===e?void 0:e.document})()){const n=Dv(e),r=Fu.useRef(!1),i=Fu.useRef(()=>{});return Fu.useEffect(()=>{const e=e=>{if(e.target&&!r.current){let r=function(){Pv("dismissableLayer.pointerDownOutside",n,o,{discrete:!0})};const o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=r,t.addEventListener("click",i.current,{once:!0})):r()}else t.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{const t=e.target,n=[...d.branches].some(e=>e.contains(t));E&&!n&&(null==a||a(e),null==l||l(e),e.defaultPrevented||null==u||u())},h),C=function(e,t=(()=>{var e;return null===(e=globalThis)||void 0===e?void 0:e.document})()){const n=Dv(e),r=Fu.useRef(!1);return Fu.useEffect(()=>{const e=e=>{e.target&&!r.current&&Pv("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{const t=e.target;[...d.branches].some(e=>e.contains(t))||(null==s||s(e),null==l||l(e),e.defaultPrevented||null==u||u())},h);return function(e,t=(()=>{var e;return null===(e=globalThis)||void 0===e?void 0:e.document})()){const n=Dv(e);Fu.useEffect(()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{w===d.layers.size-1&&(null==o||o(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},h),Fu.useEffect(()=>{if(f)return i&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(Ov=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Fv(),()=>{i&&1===d.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=Ov)}},[f,h,i,d]),Fu.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Fv())},[f,d]),Fu.useEffect(()=>{const e=()=>m({});return document.addEventListener(Lv,e),()=>document.removeEventListener(Lv,e)},[]),(0,Gm.jsx)(Nv.div,{...c,ref:g,style:{pointerEvents:x?E?"auto":"none":void 0,...e.style},onFocusCapture:dv(e.onFocusCapture,C.onFocusCapture),onBlurCapture:dv(e.onBlurCapture,C.onBlurCapture),onPointerDownCapture:dv(e.onPointerDownCapture,k.onPointerDownCapture)})});function Fv(){const e=new CustomEvent(Lv);document.dispatchEvent(e)}function Pv(e,t,n,{discrete:r}){const i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Av(i,o):i.dispatchEvent(o)}Mv.displayName="DismissableLayer",Fu.forwardRef((e,t)=>{const n=Fu.useContext(Iv),r=Fu.useRef(null),i=hv(t,r);return Fu.useEffect(()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,Gm.jsx)(Nv.div,{...e,ref:i})}).displayName="DismissableLayerBranch";var Rv="focusScope.autoFocusOnMount",jv="focusScope.autoFocusOnUnmount",Vv={bubbles:!1,cancelable:!0},Bv=Fu.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...a}=e,[s,l]=Fu.useState(null),u=Dv(i),c=Dv(o),d=Fu.useRef(null),f=hv(t,e=>l(e)),p=Fu.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;Fu.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;const t=e.target;s.contains(t)?d.current=t:Hv(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;const t=e.relatedTarget;null!==t&&(s.contains(t)||Hv(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&Hv(s)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[r,s,p.paused]),Fu.useEffect(()=>{if(s){Wv.add(p);const e=document.activeElement;if(!s.contains(e)){const t=new CustomEvent(Rv,Vv);s.addEventListener(Rv,u),s.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Hv(r,{select:t}),document.activeElement!==n)return}(zv(s).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&Hv(s))}return()=>{s.removeEventListener(Rv,u),setTimeout(()=>{const t=new CustomEvent(jv,Vv);s.addEventListener(jv,c),s.dispatchEvent(t),t.defaultPrevented||Hv(null!=e?e:document.body,{select:!0}),s.removeEventListener(jv,c),Wv.remove(p)},0)}}},[s,u,c,p]);const h=Fu.useCallback(e=>{if(!n&&!r)return;if(p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){const t=e.currentTarget,[r,o]=function(e){const t=zv(e);return[$v(t,e),$v(t.reverse(),e)]}(t);r&&o?e.shiftKey||i!==o?e.shiftKey&&i===r&&(e.preventDefault(),n&&Hv(o,{select:!0})):(e.preventDefault(),n&&Hv(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,Gm.jsx)(Nv.div,{tabIndex:-1,...a,ref:f,onKeyDown:h})});function zv(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function $v(e,t){for(const n of e)if(!Uv(n,{upTo:t}))return n}function Uv(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Hv(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}Bv.displayName="FocusScope";var Wv=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=qv(e,t),e.unshift(t)},remove(t){var n;e=qv(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function qv(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var Gv=Fu.forwardRef((e,t)=>{var n;const{container:r,...i}=e,[o,a]=Fu.useState(!1);vv(()=>a(!0),[]);const s=r||o&&(null===(n=globalThis)||void 0===n||null===(n=n.document)||void 0===n?void 0:n.body);return s?_v.createPortal((0,Gm.jsx)(Nv.div,{...i,ref:t}),s):null});Gv.displayName="Portal";var Kv=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=Fu.useState(),r=Fu.useRef(null),i=Fu.useRef(e),o=Fu.useRef("none"),[a,s]=(l=e?"mounted":"unmounted",u={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},Fu.useReducer((e,t)=>{const n=u[e][t];return null!=n?n:e},l));var l,u;return Fu.useEffect(()=>{const e=Yv(r.current);o.current="mounted"===a?e:"none"},[a]),vv(()=>{const t=r.current,n=i.current;if(n!==e){const r=o.current,a=Yv(t);e?s("MOUNT"):"none"===a||"none"===(null==t?void 0:t.display)?s("UNMOUNT"):s(n&&r!==a?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,s]),vv(()=>{if(t){var e;let n;const a=null!==(e=t.ownerDocument.defaultView)&&void 0!==e?e:window,l=e=>{const o=Yv(r.current).includes(CSS.escape(e.animationName));if(e.target===t&&o&&(s("ANIMATION_END"),!i.current)){const e=t.style.animationFillMode;t.style.animationFillMode="forwards",n=a.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=e)})}},u=e=>{e.target===t&&(o.current=Yv(r.current))};return t.addEventListener("animationstart",u),t.addEventListener("animationcancel",l),t.addEventListener("animationend",l),()=>{a.clearTimeout(n),t.removeEventListener("animationstart",u),t.removeEventListener("animationcancel",l),t.removeEventListener("animationend",l)}}s("ANIMATION_END")},[t,s]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:Fu.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}(t),i="function"==typeof n?n({present:r.isPresent}):Fu.Children.only(n),o=hv(r.ref,function(e){var t,n;let r=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?e.ref:(r=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get,i=r&&"isReactWarning"in r&&r.isReactWarning,i?e.props.ref:e.props.ref||e.ref)}(i));return"function"==typeof n||r.isPresent?Fu.cloneElement(i,{ref:o}):null};function Yv(e){return(null==e?void 0:e.animationName)||"none"}Kv.displayName="Presence";var Qv=0;function Xv(){Fu.useEffect(()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:Zv()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:Zv()),Qv++,()=>{1===Qv&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Qv--}},[])}function Zv(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Jv=function(){return Jv=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Jv.apply(this,arguments)};function ey(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(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}var ty="right-scroll-bar-position",ny="width-before-scroll-bar";function ry(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var iy="undefined"!=typeof window?Fu.useLayoutEffect:Fu.useEffect,oy=new WeakMap;function ay(e){return e}var sy=function(e){var t=e.sideCar,n=ey(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 Fu.createElement(r,Jv({},n))};sy.isSideCarExport=!0;var ly=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=ay);var n=[],r=!1;return{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]:null},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var o=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(o)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}();return t.options=Jv({async:!0,ssr:!1},e),t}(),uy=function(){},cy=Fu.forwardRef(function(e,t){var n=Fu.useRef(null),r=Fu.useState({onScrollCapture:uy,onWheelCapture:uy,onTouchMoveCapture:uy}),i=r[0],o=r[1],a=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,h=e.noIsolation,m=e.inert,g=e.allowPinchZoom,v=e.as,y=void 0===v?"div":v,b=e.gapMode,w=ey(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),x=f,E=function(e){var t,n,r=(t=function(t){return e.forEach(function(e){return ry(e,t)})},(n=(0,Fu.useState)(function(){return{value:null,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0]).callback=t,n.facade);return iy(function(){var t=oy.get(r);if(t){var n=new Set(t),i=new Set(e),o=r.current;n.forEach(function(e){i.has(e)||ry(e,null)}),i.forEach(function(e){n.has(e)||ry(e,o)})}oy.set(r,e)},[e]),r}([n,t]),k=Jv(Jv({},w),i);return Fu.createElement(Fu.Fragment,null,c&&Fu.createElement(x,{sideCar:ly,removeScrollBar:u,shards:d,noRelative:p,noIsolation:h,inert:m,setCallbacks:o,allowPinchZoom:!!g,lockRef:n,gapMode:b}),a?Fu.cloneElement(Fu.Children.only(s),Jv(Jv({},k),{ref:E})):Fu.createElement(y,Jv({},k,{className:l,ref:E}),s))});cy.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},cy.classNames={fullWidth:ny,zeroRight:ty};var dy=function(){var e,t,n,r=(t=0,n=null,e={add:function(e){var r,i;0==t&&(n=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}())&&(i=e,(r=n).styleSheet?r.styleSheet.cssText=i:r.appendChild(document.createTextNode(i)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(n)),t++},remove:function(){! --t&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}},function(t,n){Fu.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])});return function(e){var t=e.styles,n=e.dynamic;return r(t,n),null}},fy={left:0,top:0,right:0,gap:0},py=function(e){return parseInt(e||"",10)||0},hy=dy(),my="data-scroll-locked",gy=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(my,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(a,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(ty," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(ny," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(ty," .").concat(ty," {\n right: 0 ").concat(r,";\n }\n \n .").concat(ny," .").concat(ny," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(my,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},vy=function(){var e=parseInt(document.body.getAttribute("data-scroll-locked")||"0",10);return isFinite(e)?e:0},yy=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;Fu.useEffect(function(){return document.body.setAttribute(my,(vy()+1).toString()),function(){var e=vy()-1;e<=0?document.body.removeAttribute(my):document.body.setAttribute(my,e.toString())}},[]);var o=Fu.useMemo(function(){return function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return fy;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[py(n),py(r),py(i)]}(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])}}(i)},[i]);return Fu.createElement(hy,{styles:gy(o,!t,i,n?"":"!important")})},by=!1;if("undefined"!=typeof window)try{var wy=Object.defineProperty({},"passive",{get:function(){return by=!0,!0}});window.addEventListener("test",wy,wy),window.removeEventListener("test",wy,wy)}catch(iV){by=!1}var xy=!!by&&{passive:!1},Ey=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},ky=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),Cy(e,r)){var i=Sy(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Cy=function(e,t){return"v"===e?function(e){return Ey(e,"overflowY")}(t):function(e){return Ey(e,"overflowX")}(t)},Sy=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},Ty=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},_y=function(e){return[e.deltaX,e.deltaY]},Ny=function(e){return e&&"current"in e?e.current:e},Ay=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Dy=0,Oy=[];function Ly(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Iy,My=(Iy=function(e){var t=Fu.useRef([]),n=Fu.useRef([0,0]),r=Fu.useRef(),i=Fu.useState(Dy++)[0],o=Fu.useState(dy)[0],a=Fu.useRef(e);Fu.useEffect(function(){a.current=e},[e]),Fu.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(Ny),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=Fu.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var i,o=Ty(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-o[0],u="deltaY"in e?e.deltaY:s[1]-o[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===c||p.contains(c)))return!1;var h=ky(d,c);if(!h)return!0;if(h?i=d:(i="v"===d?"h":"v",h=ky(d,c)),!h)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=i),!i)return!0;var m=r.current||i;return function(e,t,n,r){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),o=i*r,a=n.target,s=t.contains(a),l=!1,u=o>0,c=0,d=0;do{if(!a)break;var f=Sy(e,a),p=f[0],h=f[1]-f[2]-i*p;(p||h)&&Cy(e,a)&&(c+=h,d+=p);var m=a.parentNode;a=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!s&&a!==document.body||s&&(t.contains(a)||t===a));return(u&&(Math.abs(c)<1||!1)||!u&&(Math.abs(d)<1||!1))&&(l=!0),l}(m,t,e,"h"===m?l:u)},[]),l=Fu.useCallback(function(e){var n=e;if(Oy.length&&Oy[Oy.length-1]===o){var r="deltaY"in n?_y(n):Ty(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)})[0];if(i&&i.should)n.cancelable&&n.preventDefault();else if(!i){var l=(a.current.shards||[]).map(Ny).filter(Boolean).filter(function(e){return e.contains(n.target)});(l.length>0?s(n,l[0]):!a.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),u=Fu.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,should:i,shadowParent:Ly(r)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),c=Fu.useCallback(function(e){n.current=Ty(e),r.current=void 0},[]),d=Fu.useCallback(function(t){u(t.type,_y(t),t.target,s(t,e.lockRef.current))},[]),f=Fu.useCallback(function(t){u(t.type,Ty(t),t.target,s(t,e.lockRef.current))},[]);Fu.useEffect(function(){return Oy.push(o),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener("wheel",l,xy),document.addEventListener("touchmove",l,xy),document.addEventListener("touchstart",c,xy),function(){Oy=Oy.filter(function(e){return e!==o}),document.removeEventListener("wheel",l,xy),document.removeEventListener("touchmove",l,xy),document.removeEventListener("touchstart",c,xy)}},[]);var p=e.removeScrollBar,h=e.inert;return Fu.createElement(Fu.Fragment,null,h?Fu.createElement(o,{styles:Ay(i)}):null,p?Fu.createElement(yy,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},ly.useMedium(Iy),sy),Fy=Fu.forwardRef(function(e,t){return Fu.createElement(cy,Jv({},e,{ref:t,sideCar:My}))});Fy.classNames=cy.classNames;var Py=new WeakMap,Ry=new WeakMap,jy={},Vy=0,By=function(e){return e&&(e.host||By(e.parentNode))},zy=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),function(e,t,n,r){var i=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=By(t);return n&&e.contains(n)?n:null}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);jy[n]||(jy[n]=new WeakMap);var o=jy[n],a=[],s=new Set,l=new Set(i),u=function(e){e&&!s.has(e)&&(s.add(e),u(e.parentNode))};i.forEach(u);var c=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))c(e);else try{var t=e.getAttribute(r),i=null!==t&&"false"!==t,l=(Py.get(e)||0)+1,u=(o.get(e)||0)+1;Py.set(e,l),o.set(e,u),a.push(e),1===l&&i&&Ry.set(e,!0),1===u&&e.setAttribute(n,"true"),i||e.setAttribute(r,"true")}catch(RR){}})};return c(t),s.clear(),Vy++,function(){a.forEach(function(e){var t=Py.get(e)-1,i=o.get(e)-1;Py.set(e,t),o.set(e,i),t||(Ry.has(e)||e.removeAttribute(r),Ry.delete(e)),i||e.removeAttribute(n)}),--Vy||(Py=new WeakMap,Py=new WeakMap,Ry=new WeakMap,jy={})}}(r,i,n,"aria-hidden")):function(){return null}},$y="Dialog",[Uy,Hy]=mv($y),[Wy,qy]=Uy($y),Gy=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:a=!0}=e,s=Fu.useRef(null),l=Fu.useRef(null),[u,c]=Ev({prop:r,defaultProp:null!=i&&i,onChange:o,caller:$y});return(0,Gm.jsx)(Wy,{scope:t,triggerRef:s,contentRef:l,contentId:wv(),titleId:wv(),descriptionId:wv(),open:u,onOpenChange:c,onOpenToggle:Fu.useCallback(()=>c(e=>!e),[c]),modal:a,children:n})};Gy.displayName=$y;var Ky="DialogTrigger",Yy=Fu.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=qy(Ky,n),o=hv(t,i.triggerRef);return(0,Gm.jsx)(Nv.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":mb(i.open),...r,ref:o,onClick:dv(e.onClick,i.onOpenToggle)})});Yy.displayName=Ky;var Qy="DialogPortal",[Xy,Zy]=Uy(Qy,{forceMount:void 0}),Jy=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,o=qy(Qy,t);return(0,Gm.jsx)(Xy,{scope:t,forceMount:n,children:Fu.Children.map(r,e=>(0,Gm.jsx)(Kv,{present:n||o.open,children:(0,Gm.jsx)(Gv,{asChild:!0,container:i,children:e})}))})};Jy.displayName=Qy;var eb="DialogOverlay",tb=Fu.forwardRef((e,t)=>{const n=Zy(eb,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=qy(eb,e.__scopeDialog);return o.modal?(0,Gm.jsx)(Kv,{present:r||o.open,children:(0,Gm.jsx)(rb,{...i,ref:t})}):null});tb.displayName=eb;var nb=kv("DialogOverlay.RemoveScroll"),rb=Fu.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=qy(eb,n);return(0,Gm.jsx)(Fy,{as:nb,allowPinchZoom:!0,shards:[i.contentRef],children:(0,Gm.jsx)(Nv.div,{"data-state":mb(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),ib="DialogContent",ob=Fu.forwardRef((e,t)=>{const n=Zy(ib,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=qy(ib,e.__scopeDialog);return(0,Gm.jsx)(Kv,{present:r||o.open,children:o.modal?(0,Gm.jsx)(ab,{...i,ref:t}):(0,Gm.jsx)(sb,{...i,ref:t})})});ob.displayName=ib;var ab=Fu.forwardRef((e,t)=>{const n=qy(ib,e.__scopeDialog),r=Fu.useRef(null),i=hv(t,n.contentRef,r);return Fu.useEffect(()=>{const e=r.current;if(e)return zy(e)},[]),(0,Gm.jsx)(lb,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:dv(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:dv(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:dv(e.onFocusOutside,e=>e.preventDefault())})}),sb=Fu.forwardRef((e,t)=>{const n=qy(ib,e.__scopeDialog),r=Fu.useRef(!1),i=Fu.useRef(!1);return(0,Gm.jsx)(lb,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,a;null===(o=e.onCloseAutoFocus)||void 0===o||o.call(e,t),t.defaultPrevented||(r.current||null===(a=n.triggerRef.current)||void 0===a||a.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{var o,a;null===(o=e.onInteractOutside)||void 0===o||o.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));const s=t.target;(null===(a=n.triggerRef.current)||void 0===a?void 0:a.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),lb=Fu.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...a}=e,s=qy(ib,n),l=Fu.useRef(null),u=hv(t,l);return Xv(),(0,Gm.jsxs)(Gm.Fragment,{children:[(0,Gm.jsx)(Bv,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:(0,Gm.jsx)(Mv,{role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":mb(s.open),...a,ref:u,onDismiss:()=>s.onOpenChange(!1)})}),(0,Gm.jsxs)(Gm.Fragment,{children:[(0,Gm.jsx)(bb,{titleId:s.titleId}),(0,Gm.jsx)(wb,{contentRef:l,descriptionId:s.descriptionId})]})]})}),ub="DialogTitle",cb=Fu.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=qy(ub,n);return(0,Gm.jsx)(Nv.h2,{id:i.titleId,...r,ref:t})});cb.displayName=ub;var db="DialogDescription",fb=Fu.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=qy(db,n);return(0,Gm.jsx)(Nv.p,{id:i.descriptionId,...r,ref:t})});fb.displayName=db;var pb="DialogClose",hb=Fu.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=qy(pb,n);return(0,Gm.jsx)(Nv.button,{type:"button",...r,ref:t,onClick:dv(e.onClick,()=>i.onOpenChange(!1))})});function mb(e){return e?"open":"closed"}hb.displayName=pb;var gb="DialogTitleWarning",[vb,yb]=function(e,t){const n=Fu.createContext(t),r=e=>{const{children:t,...r}=e,i=Fu.useMemo(()=>r,Object.values(r));return(0,Gm.jsx)(n.Provider,{value:i,children:t})};return r.displayName=e+"Provider",[r,function(r){const i=Fu.useContext(n);if(i)return i;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}(gb,{contentName:ib,titleName:ub,docsSlug:"dialog"}),bb=({titleId:e})=>{const t=yb(gb),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return Fu.useEffect(()=>{e&&document.getElementById(e)},[n,e]),null},wb=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${yb("DialogDescriptionWarning").contentName}}.`;return Fu.useEffect(()=>{var n;const r=null===(n=e.current)||void 0===n?void 0:n.getAttribute("aria-describedby");t&&r&&document.getElementById(t)},[n,e,t]),null},xb=Gy,Eb=Yy,kb=Jy,Cb=tb,Sb=ob,Tb=cb,_b=fb,Nb=hb,Ab=Symbol.for("react.lazy"),Db=Fu[" use ".trim().toString()];function Ob(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===Ab&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t;var t}function Lb(e){const t=Fu.forwardRef((e,t)=>{let{children:n,...r}=e;if(Ob(n)&&"function"==typeof Db&&(n=Db(n._payload)),Fu.isValidElement(n)){const e=function(e){var t,n;let r=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?e.ref:(r=null===(n=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===n?void 0:n.get,i=r&&"isReactWarning"in r&&r.isReactWarning,i?e.props.ref:e.props.ref||e.ref)}(n),i=function(e,t){const n={...t};for(const r in t){const i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{const t=o(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==Fu.Fragment&&(i.ref=t?pv(t,e):e),Fu.cloneElement(n,i)}return Fu.Children.count(n)>1?Fu.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ib=Symbol("radix.slottable");function Mb(e){return Fu.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Ib}var Fb=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{const n=function(e){const t=Lb(e),n=Fu.forwardRef((e,n)=>{let{children:r,...i}=e;Ob(r)&&"function"==typeof Db&&(r=Db(r._payload));const o=Fu.Children.toArray(r),a=o.find(Mb);if(a){const e=a.props.children,r=o.map(t=>t===a?Fu.Children.count(e)>1?Fu.Children.only(null):Fu.isValidElement(e)?e.props.children:null:t);return(0,Gm.jsx)(t,{...i,ref:n,children:Fu.isValidElement(e)?Fu.cloneElement(e,void 0,r):null})}return(0,Gm.jsx)(t,{...i,ref:n,children:r})});return n.displayName=`${e}.Slot`,n}(`Primitive.${t}`),r=Fu.forwardRef((e,r)=>{const{asChild:i,...o}=e,a=i?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,Gm.jsx)(a,{...o,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Pb=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"}),Rb=Fu.forwardRef((e,t)=>(0,Gm.jsx)(Fb.span,{...e,ref:t,style:{...Pb,...e.style}}));Rb.displayName="VisuallyHidden";var jb=Rb,Vb=(0,Fu.forwardRef)((e,t)=>{const n=(0,$u.c)(8);let r,i,o,a;return n[0]!==e.className?(r=$g("graphiql-dialog-close",e.className),n[0]=e.className,n[1]=r):r=n[1],n[2]===Symbol.for("react.memo_cache_sentinel")?(i=(0,Gm.jsx)(jb,{children:"Close dialog"}),o=(0,Gm.jsx)(pg,{}),n[2]=i,n[3]=o):(i=n[2],o=n[3]),n[4]!==e||n[5]!==t||n[6]!==r?(a=(0,Gm.jsx)(Nb,{asChild:!0,children:(0,Gm.jsxs)(sv,{...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});Vb.displayName="Dialog.Close";var Bb=Object.assign(e=>{const t=(0,$u.c)(9);let n,r,i,o,a;return t[0]!==e?(({children:n,...r}=e),t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]),t[3]===Symbol.for("react.memo_cache_sentinel")?(i=(0,Gm.jsx)(Cb,{className:"graphiql-dialog-overlay"}),t[3]=i):i=t[3],t[4]!==n?(o=(0,Gm.jsxs)(kb,{children:[i,(0,Gm.jsx)(Sb,{className:"graphiql-dialog",children:n})]}),t[4]=n,t[5]=o):o=t[5],t[6]!==r||t[7]!==o?(a=(0,Gm.jsx)(xb,{...r,children:o}),t[6]=r,t[7]=o,t[8]=a):a=t[8],a},{Close:Vb,Title:Tb,Trigger:Eb,Description:_b});function zb(e){const t=e+"CollectionProvider",[n,r]=mv(t),[i,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e=>{const{scope:t,children:n}=e,r=Fu.useRef(null),o=Fu.useRef(new Map).current;return(0,Gm.jsx)(i,{scope:t,itemMap:o,collectionRef:r,children:n})};a.displayName=t;const s=e+"CollectionSlot",l=kv(s),u=Fu.forwardRef((e,t)=>{const{scope:n,children:r}=e;return(0,Gm.jsx)(l,{ref:hv(t,o(s,n).collectionRef),children:r})});u.displayName=s;const c=e+"CollectionItemSlot",d="data-radix-collection-item",f=kv(c),p=Fu.forwardRef((e,t)=>{const{scope:n,children:r,...i}=e,a=Fu.useRef(null),s=hv(t,a),l=o(c,n);return Fu.useEffect(()=>(l.itemMap.set(a,{ref:a,...i}),()=>{l.itemMap.delete(a)})),(0,Gm.jsx)(f,{[d]:"",ref:s,children:r})});return p.displayName=c,[{Provider:a,Slot:u,ItemSlot:p},function(t){const n=o(e+"CollectionConsumer",t);return Fu.useCallback(()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}Map;var $b=Fu.createContext(void 0);function Ub(e){const t=Fu.useContext($b);return e||t||"ltr"}var Hb=["top","right","bottom","left"],Wb=Math.min,qb=Math.max,Gb=Math.round,Kb=Math.floor,Yb=e=>({x:e,y:e}),Qb={left:"right",right:"left",bottom:"top",top:"bottom"};function Xb(e,t,n){return qb(e,Wb(t,n))}function Zb(e,t){return"function"==typeof e?e(t):e}function Jb(e){return e.split("-")[0]}function ew(e){return e.split("-")[1]}function tw(e){return"x"===e?"y":"x"}function nw(e){return"y"===e?"height":"width"}function rw(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function iw(e){return tw(rw(e))}function ow(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var aw=["left","right"],sw=["right","left"],lw=["top","bottom"],uw=["bottom","top"];function cw(e){const t=Jb(e);return Qb[t]+e.slice(t.length)}function dw(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function fw(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 pw(e,t,n){let{reference:r,floating:i}=e;const o=rw(t),a=iw(t),s=nw(a),l=Jb(t),u="y"===o,c=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2;let p;switch(l){case"top":p={x:c,y:r.y-i.height};break;case"bottom":p={x:c,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(ew(t)){case"start":p[a]-=f*(n&&u?-1:1);break;case"end":p[a]+=f*(n&&u?-1:1)}return p}async function hw(e,t){var n;void 0===t&&(t={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Zb(t,e),h=dw(p),m=s[f?"floating"===d?"reference":"floating":d],g=fw(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),v="floating"===d?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),b=await(null==o.isElement?void 0:o.isElement(y))&&await(null==o.getScale?void 0:o.getScale(y))||{x:1,y:1},w=fw(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:y,strategy:l}):v);return{top:(g.top-w.top+h.top)/b.y,bottom:(w.bottom-g.bottom+h.bottom)/b.y,left:(g.left-w.left+h.left)/b.x,right:(w.right-g.right+h.right)/b.x}}function mw(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function gw(e){return Hb.some(t=>e[t]>=0)}var vw=new Set(["left","top"]);function yw(){return"undefined"!=typeof window}function bw(e){return Ew(e)?(e.nodeName||"").toLowerCase():"#document"}function ww(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function xw(e){var t;return null==(t=(Ew(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Ew(e){return!!yw()&&(e instanceof Node||e instanceof ww(e).Node)}function kw(e){return!!yw()&&(e instanceof Element||e instanceof ww(e).Element)}function Cw(e){return!!yw()&&(e instanceof HTMLElement||e instanceof ww(e).HTMLElement)}function Sw(e){return!(!yw()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof ww(e).ShadowRoot)}function Tw(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Pw(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==i&&"contents"!==i}function _w(e){return/^(table|td|th)$/.test(bw(e))}function Nw(e){try{if(e.matches(":popover-open"))return!0}catch(t){}try{return e.matches(":modal")}catch(t){return!1}}var Aw,Dw=/transform|translate|scale|rotate|perspective|filter/,Ow=/paint|layout|strict|content/,Lw=e=>!!e&&"none"!==e;function Iw(e){const t=kw(e)?Pw(e):e;return Lw(t.transform)||Lw(t.translate)||Lw(t.scale)||Lw(t.rotate)||Lw(t.perspective)||!Mw()&&(Lw(t.backdropFilter)||Lw(t.filter))||Dw.test(t.willChange||"")||Ow.test(t.contain||"")}function Mw(){return null==Aw&&(Aw="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Aw}function Fw(e){return/^(html|body|#document)$/.test(bw(e))}function Pw(e){return ww(e).getComputedStyle(e)}function Rw(e){return kw(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function jw(e){if("html"===bw(e))return e;const t=e.assignedSlot||e.parentNode||Sw(e)&&e.host||xw(e);return Sw(t)?t.host:t}function Vw(e){const t=jw(e);return Fw(t)?e.ownerDocument?e.ownerDocument.body:e.body:Cw(t)&&Tw(t)?t:Vw(t)}function Bw(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=Vw(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=ww(i);if(o){const e=zw(a);return t.concat(a,a.visualViewport||[],Tw(i)?i:[],e&&n?Bw(e):[])}return t.concat(i,Bw(i,[],n))}function zw(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function $w(e){const t=Pw(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Cw(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=Gb(n)!==o||Gb(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function Uw(e){return kw(e)?e:e.contextElement}function Hw(e){const t=Uw(e);if(!Cw(t))return Yb(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=$w(t);let a=(o?Gb(n.width):n.width)/r,s=(o?Gb(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}var Ww=Yb(0);function qw(e){const t=ww(e);return Mw()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ww}function Gw(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=Uw(e);let a=Yb(1);t&&(r?kw(r)&&(a=Hw(r)):a=Hw(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==ww(e))&&t}(o,n,r)?qw(o):Yb(0);let l=(i.left+s.x)/a.x,u=(i.top+s.y)/a.y,c=i.width/a.x,d=i.height/a.y;if(o){const e=ww(o),t=r&&kw(r)?ww(r):r;let n=e,i=zw(n);for(;i&&r&&t!==n;){const e=Hw(i),t=i.getBoundingClientRect(),r=Pw(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,u*=e.y,c*=e.x,d*=e.y,l+=o,u+=a,n=ww(i),i=zw(n)}}return fw({width:c,height:d,x:l,y:u})}function Kw(e,t){const n=Rw(e).scrollLeft;return t?t.left+n:Gw(xw(e)).left+n}function Yw(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Kw(e,n),y:n.top+t.scrollTop}}function Qw(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=ww(e),r=xw(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;const e=Mw();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}const u=Kw(r);if(u<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,a=Math.abs(r.clientWidth-t.clientWidth-i);a<=25&&(o-=a)}else u<=25&&(o+=u);return{width:o,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=xw(e),n=Rw(e),r=e.ownerDocument.body,i=qb(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=qb(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Kw(e);const s=-n.scrollTop;return"rtl"===Pw(r).direction&&(a+=qb(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}(xw(e));else if(kw(t))r=function(e,t){const n=Gw(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Cw(e)?Hw(e):Yb(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n);else{const n=qw(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return fw(r)}function Xw(e,t){const n=jw(e);return!(n===t||!kw(n)||Fw(n))&&("fixed"===Pw(n).position||Xw(n,t))}function Zw(e,t){const n=t.get(e);if(n)return n;let r=Bw(e,[],!1).filter(e=>kw(e)&&"body"!==bw(e)),i=null;const o="fixed"===Pw(e).position;let a=o?jw(e):e;for(;kw(a)&&!Fw(a);){const t=Pw(a),n=Iw(a);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&i&&("absolute"===i.position||"fixed"===i.position)||Tw(a)&&!n&&Xw(e,a))?r=r.filter(e=>e!==a):i=t,a=jw(a)}return t.set(e,r),r}function Jw(e,t,n){const r=Cw(t),i=xw(t),o="fixed"===n,a=Gw(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=Yb(0);function u(){l.x=Kw(i)}if(r||!r&&!o)if(("body"!==bw(t)||Tw(i))&&(s=Rw(t)),r){const e=Gw(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&u();o&&!r&&i&&u();const c=!i||r||o?Yb(0):Yw(i,s);return{x:a.left+s.scrollLeft-l.x-c.x,y:a.top+s.scrollTop-l.y-c.y,width:a.width,height:a.height}}function ex(e){return"static"===Pw(e).position}function tx(e,t){if(!Cw(e)||"fixed"===Pw(e).position)return null;if(t)return t(e);let n=e.offsetParent;return xw(e)===n&&(n=n.ownerDocument.body),n}function nx(e,t){const n=ww(e);if(Nw(e))return n;if(!Cw(e)){let t=jw(e);for(;t&&!Fw(t);){if(kw(t)&&!ex(t))return t;t=jw(t)}return n}let r=tx(e,t);for(;r&&_w(r)&&ex(r);)r=tx(r,t);return r&&Fw(r)&&ex(r)&&!Iw(r)?n:r||function(e){let t=jw(e);for(;Cw(t)&&!Fw(t);){if(Iw(t))return t;if(Nw(t))return null;t=jw(t)}return null}(e)||n}var rx={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o="fixed"===i,a=xw(r),s=!!t&&Nw(t.floating);if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},u=Yb(1);const c=Yb(0),d=Cw(r);if((d||!d&&!o)&&(("body"!==bw(r)||Tw(a))&&(l=Rw(r)),d)){const e=Gw(r);u=Hw(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}const f=!a||d||o?Yb(0):Yw(a,l);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:n.y*u.y-l.scrollTop*u.y+c.y+f.y}},getDocumentElement:xw,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[..."clippingAncestors"===n?Nw(t)?[]:Zw(t,this._c):[].concat(n),r],a=Qw(t,o[0],i);let s=a.top,l=a.right,u=a.bottom,c=a.left;for(let d=1;d<o.length;d++){const e=Qw(t,o[d],i);s=qb(e.top,s),l=Wb(e.right,l),u=Wb(e.bottom,u),c=qb(e.left,c)}return{width:l-c,height:u-s,x:c,y:s}},getOffsetParent:nx,getElementRects:async function(e){const t=this.getOffsetParent||nx,n=this.getDimensions,r=await n(e.floating);return{reference:Jw(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=$w(e);return{width:t,height:n}},getScale:Hw,isElement:kw,isRTL:function(e){return"rtl"===Pw(e).direction}};function ix(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ox(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,u=Uw(e),c=i||o?[...u?Bw(u):[],...t?Bw(t):[]]:[];c.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)});const d=u&&s?function(e,t){let n,r=null;const i=xw(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();const u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:p}=u;if(s||t(),!f||!p)return;const h={rootMargin:-Kb(d)+"px "+-Kb(i.clientWidth-(c+f))+"px "+-Kb(i.clientHeight-(d+p))+"px "+-Kb(c)+"px",threshold:qb(0,Wb(1,l))||1};let m=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!m)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||ix(u,e.getBoundingClientRect())||a(),m=!1}try{r=new IntersectionObserver(g,{...h,root:i.ownerDocument})}catch(v){r=new IntersectionObserver(g,h)}r.observe(e)}(!0),o}(u,n):null;let f,p=-1,h=null;a&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===u&&h&&t&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),u&&!l&&h.observe(u),t&&h.observe(t));let m=l?Gw(e):null;return l&&function t(){const r=Gw(e);m&&!ix(m,r)&&n(),m=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;c.forEach(e=>{i&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(f)}}var ax=hw,sx=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=Zb(e,t)||{};if(null==u)return{};const d=dw(c),f={x:n,y:r},p=iw(i),h=nw(p),m=await a.getDimensions(u),g="y"===p,v=g?"top":"left",y=g?"bottom":"right",b=g?"clientHeight":"clientWidth",w=o.reference[h]+o.reference[p]-f[p]-o.floating[h],x=f[p]-o.reference[p],E=await(null==a.getOffsetParent?void 0:a.getOffsetParent(u));let k=E?E[b]:0;k&&await(null==a.isElement?void 0:a.isElement(E))||(k=s.floating[b]||o.floating[h]);const C=w/2-x/2,S=k/2-m[h]/2-1,T=Wb(d[v],S),_=Wb(d[y],S),N=T,A=k-m[h]-_,D=k/2-m[h]/2+C,O=Xb(N,D,A),L=!l.arrow&&null!=ew(i)&&D!==O&&o.reference[h]/2-(D<N?T:_)-m[h]/2<0,I=L?D<N?D-N:D-A:0;return{[p]:f[p]+I,data:{[p]:O,centerOffset:D-O-I,...L&&{alignmentOffset:I}},reset:L}}}),lx=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:o,middlewareData:a}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=Zb(e,t),c={x:n,y:r},d=rw(i),f=tw(d);let p=c[f],h=c[d];const m=Zb(s,t),g="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const e="y"===f?"height":"width",t=o.reference[f]-o.floating[e]+g.mainAxis,n=o.reference[f]+o.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(u){var v,y;const e="y"===f?"width":"height",t=vw.has(Jb(i)),n=o.reference[d]-o.floating[e]+(t&&(null==(v=a.offset)?void 0:v[d])||0)+(t?0:g.crossAxis),r=o.reference[d]+o.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[d])||0)-(t?g.crossAxis:0);h<n?h=n:h>r&&(h=r)}return{[f]:p,[d]:h}}}},ux=(e,t,n)=>{const r=new Map,i={platform:rx,...n},o={...i.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=a.detectOverflow?a:{...a,detectOverflow:hw},l=await(null==a.isRTL?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=pw(u,r,l),f=r,p=0;const h={};for(let m=0;m<o.length;m++){const n=o[m];if(!n)continue;const{name:g,fn:v}=n,{x:y,y:b,data:w,reset:x}=await v({x:c,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});c=null!=y?y:c,d=null!=b?b:d,h[g]={...h[g],...w},x&&p<50&&(p++,"object"==typeof x&&(x.placement&&(f=x.placement),x.rects&&(u=!0===x.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):x.rects),({x:c,y:d}=pw(u,f,l))),m=-1)}return{x:c,y:d,placement:f,strategy:i,middlewareData:h}})(e,t,{...i,platform:o})},cx="undefined"!=typeof document?Fu.useLayoutEffect:function(){};function dx(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!dx(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;0!==r--;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!==r--;){const n=i[r];if(!("_owner"===n&&e.$$typeof||dx(e[n],t[n])))return!1}return!0}return e!=e&&t!=t}function fx(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function px(e,t){const n=fx(e);return Math.round(t*n)/n}function hx(e){const t=Fu.useRef(e);return cx(()=>{t.current=e}),t}function mx(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[c,d]=Fu.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=Fu.useState(r);dx(f,r)||p(r);const[h,m]=Fu.useState(null),[g,v]=Fu.useState(null),y=Fu.useCallback(e=>{e!==E.current&&(E.current=e,m(e))},[]),b=Fu.useCallback(e=>{e!==k.current&&(k.current=e,v(e))},[]),w=o||h,x=a||g,E=Fu.useRef(null),k=Fu.useRef(null),C=Fu.useRef(c),S=null!=l,T=hx(l),_=hx(i),N=hx(u),A=Fu.useCallback(()=>{if(!E.current||!k.current)return;const e={placement:t,strategy:n,middleware:f};_.current&&(e.platform=_.current),ux(E.current,k.current,e).then(e=>{const t={...e,isPositioned:!1!==N.current};D.current&&!dx(C.current,t)&&(C.current=t,_v.flushSync(()=>{d(t)}))})},[f,t,n,_,N]);cx(()=>{!1===u&&C.current.isPositioned&&(C.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[u]);const D=Fu.useRef(!1);cx(()=>(D.current=!0,()=>{D.current=!1}),[]),cx(()=>{if(w&&(E.current=w),x&&(k.current=x),w&&x){if(T.current)return T.current(w,x,A);A()}},[w,x,A,T,S]);const O=Fu.useMemo(()=>({reference:E,floating:k,setReference:y,setFloating:b}),[y,b]),L=Fu.useMemo(()=>({reference:w,floating:x}),[w,x]),I=Fu.useMemo(()=>{const e={position:n,left:0,top:0};if(!L.floating)return e;const t=px(L.floating,c.x),r=px(L.floating,c.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...fx(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,L.floating,c.x,c.y]);return Fu.useMemo(()=>({...c,update:A,refs:O,elements:L,floatingStyles:I}),[c,A,O,L,I])}var gx=(e,t)=>{const n=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:i}=e,o=await(null==r.isRTL?void 0:r.isRTL(i.floating)),a=Jb(n),s=ew(n),l="y"===rw(n),u=vw.has(a)?-1:1,c=o&&l?-1:1,d=Zb(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),l?{x:p*c,y:f*u}:{x:f*u,y:p*c}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},vx=(e,t)=>{const n=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i,platform:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=Zb(e,t),c={x:n,y:r},d=await o.detectOverflow(t,u),f=rw(Jb(i)),p=tw(f);let h=c[p],m=c[f];if(a){const e="y"===p?"bottom":"right";h=Xb(h+d["y"===p?"top":"left"],h,h-d[e])}if(s){const e="y"===f?"bottom":"right";m=Xb(m+d["y"===f?"top":"left"],m,m-d[e])}const g=l.fn({...t,[p]:h,[f]:m});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:a,[f]:s}}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},yx=(e,t)=>({fn:lx(e).fn,options:[e,t]}),bx=(e,t)=>{const n=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=Zb(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const v=Jb(i),y=rw(s),b=Jb(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(u.floating)),x=f||(b||!m?[cw(s)]:function(e){const t=cw(e);return[ow(e),t,ow(t)]}(s)),E="none"!==h;!f&&E&&x.push(...function(e,t,n,r){const i=ew(e);let o=function(e,t,n){switch(e){case"top":case"bottom":return n?t?sw:aw:t?aw:sw;case"left":case"right":return t?lw:uw;default:return[]}}(Jb(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(ow)))),o}(s,m,h,w));const k=[s,...x],C=await l.detectOverflow(t,g),S=[];let T=(null==(r=o.flip)?void 0:r.overflows)||[];if(c&&S.push(C[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=ew(e),i=iw(e),o=nw(i);let a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=cw(a)),[a,cw(a)]}(i,a,w);S.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:i,overflows:S}],!S.every(e=>e<=0)){var _,N;const e=((null==(_=o.flip)?void 0:_.index)||0)+1,t=k[e];if(t&&("alignment"!==d||y===rw(t)||T.every(e=>rw(e.placement)!==y||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=null==(N=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:N.placement;if(!n)switch(p){case"bestFit":{var A;const e=null==(A=T.filter(e=>{if(E){const t=rw(e.placement);return t===y||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:A[0];e&&(n=e);break}case"initialPlacement":n=s}if(i!==n)return{reset:{placement:n}}}return{}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},wx=(e,t)=>{const n=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:a,elements:s}=t,{apply:l=()=>{},...u}=Zb(e,t),c=await a.detectOverflow(t,u),d=Jb(i),f=ew(i),p="y"===rw(i),{width:h,height:m}=o.floating;let g,v;"top"===d||"bottom"===d?(g=d,v=f===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(v=d,g="end"===f?"top":"bottom");const y=m-c.top-c.bottom,b=h-c.left-c.right,w=Wb(m-c[g],y),x=Wb(h-c[v],b),E=!t.middlewareData.shift;let k=w,C=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(C=b),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(k=y),E&&!f){const e=qb(c.left,0),t=qb(c.right,0),n=qb(c.top,0),r=qb(c.bottom,0);p?C=h-2*(0!==e||0!==t?e+t:qb(c.left,c.right)):k=m-2*(0!==n||0!==r?n+r:qb(c.top,c.bottom))}await l({...t,availableWidth:C,availableHeight:k});const S=await a.getDimensions(s.floating);return h!==S.width||m!==S.height?{reset:{rects:!0}}:{}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},xx=(e,t)=>{const n=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:i="referenceHidden",...o}=Zb(e,t);switch(i){case"referenceHidden":{const e=mw(await r.detectOverflow(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:gw(e)}}}case"escaped":{const e=mw(await r.detectOverflow(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:gw(e)}}}default:return{}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ex=(e,t)=>{const n=(e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(i=n,{}.hasOwnProperty.call(i,"current"))?null!=n.current?sx({element:n.current,padding:r}).fn(t):{}:n?sx({element:n,padding:r}).fn(t):{};var i}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}},kx=Fu.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...o}=e;return(0,Gm.jsx)(Nv.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,Gm.jsx)("polygon",{points:"0,0 30,0 15,10"})})});kx.displayName="Arrow";var Cx=kx,Sx="Popper",[Tx,_x]=mv(Sx),[Nx,Ax]=Tx(Sx),Dx=e=>{const{__scopePopper:t,children:n}=e,[r,i]=Fu.useState(null);return(0,Gm.jsx)(Nx,{scope:t,anchor:r,onAnchorChange:i,children:n})};Dx.displayName=Sx;var Ox="PopperAnchor",Lx=Fu.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,o=Ax(Ox,n),a=Fu.useRef(null),s=hv(t,a),l=Fu.useRef(null);return Fu.useEffect(()=>{const e=l.current;l.current=(null==r?void 0:r.current)||a.current,e!==l.current&&o.onAnchorChange(l.current)}),r?null:(0,Gm.jsx)(Nv.div,{...i,ref:s})});Lx.displayName=Ox;var Ix="PopperContent",[Mx,Fx]=Tx(Ix),Px=Fu.forwardRef((e,t)=>{var n,r,i,o,a,s,l,u;const{__scopePopper:c,side:d="bottom",sideOffset:f=0,align:p="center",alignOffset:h=0,arrowPadding:m=0,avoidCollisions:g=!0,collisionBoundary:v=[],collisionPadding:y=0,sticky:b="partial",hideWhenDetached:w=!1,updatePositionStrategy:x="optimized",onPlaced:E,...k}=e,C=Ax(Ix,c),[S,T]=Fu.useState(null),_=hv(t,e=>T(e)),[N,A]=Fu.useState(null),D=function(e){const[t,n]=Fu.useState(void 0);return vv(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver(t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let i,o;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,o=t.blockSize}else i=e.offsetWidth,o=e.offsetHeight;n({width:i,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(N),O=null!==(n=null==D?void 0:D.width)&&void 0!==n?n:0,L=null!==(r=null==D?void 0:D.height)&&void 0!==r?r:0,I=d+("center"!==p?"-"+p:""),M="number"==typeof y?y:{top:0,right:0,bottom:0,left:0,...y},F=Array.isArray(v)?v:[v],P=F.length>0,R={padding:M,boundary:F.filter(Bx),altBoundary:P},{refs:j,floatingStyles:V,placement:B,isPositioned:z,middlewareData:$}=mx({strategy:"fixed",placement:I,whileElementsMounted:(...e)=>ox(...e,{animationFrame:"always"===x}),elements:{reference:C.anchor},middleware:[gx({mainAxis:f+L,alignmentAxis:h}),g&&vx({mainAxis:!0,crossAxis:!1,limiter:"partial"===b?yx():void 0,...R}),g&&bx({...R}),wx({...R,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:i,height:o}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${i}px`),a.setProperty("--radix-popper-anchor-height",`${o}px`)}}),N&&Ex({element:N,padding:m}),zx({arrowWidth:O,arrowHeight:L}),w&&xx({strategy:"referenceHidden",...R})]}),[U,H]=$x(B),W=Dv(E);vv(()=>{z&&(null==W||W())},[z,W]);const q=null===(i=$.arrow)||void 0===i?void 0:i.x,G=null===(o=$.arrow)||void 0===o?void 0:o.y,K=0!==(null===(a=$.arrow)||void 0===a?void 0:a.centerOffset),[Y,Q]=Fu.useState();return vv(()=>{S&&Q(window.getComputedStyle(S).zIndex)},[S]),(0,Gm.jsx)("div",{ref:j.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:z?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Y,"--radix-popper-transform-origin":[null===(s=$.transformOrigin)||void 0===s?void 0:s.x,null===(l=$.transformOrigin)||void 0===l?void 0:l.y].join(" "),...(null===(u=$.hide)||void 0===u?void 0:u.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,Gm.jsx)(Mx,{scope:c,placedSide:U,onArrowChange:A,arrowX:q,arrowY:G,shouldHideArrow:K,children:(0,Gm.jsx)(Nv.div,{"data-side":U,"data-align":H,...k,ref:_,style:{...k.style,animation:z?void 0:"none"}})})})});Px.displayName=Ix;var Rx="PopperArrow",jx={top:"bottom",right:"left",bottom:"top",left:"right"},Vx=Fu.forwardRef(function(e,t){const{__scopePopper:n,...r}=e,i=Fx(Rx,n),o=jx[i.placedSide];return(0,Gm.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,Gm.jsx)(Cx,{...r,ref:t,style:{...r.style,display:"block"}})})});function Bx(e){return null!==e}Vx.displayName=Rx;var zx=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,o,a;const{placement:s,rects:l,middlewareData:u}=t,c=0!==(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset),d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,h]=$x(s),m={start:"0%",center:"50%",end:"100%"}[h],g=(null!==(r=null===(i=u.arrow)||void 0===i?void 0:i.x)&&void 0!==r?r:0)+d/2,v=(null!==(o=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==o?o:0)+f/2;let y="",b="";return"bottom"===p?(y=c?m:`${g}px`,b=-f+"px"):"top"===p?(y=c?m:`${g}px`,b=`${l.floating.height+f}px`):"right"===p?(y=-f+"px",b=c?m:`${v}px`):"left"===p&&(y=`${l.floating.width+f}px`,b=c?m:`${v}px`),{data:{x:y,y:b}}}});function $x(e){const[t,n="center"]=e.split("-");return[t,n]}var Ux=Dx,Hx=Lx,Wx=Px,qx=Vx,Gx="rovingFocusGroup.onEntryFocus",Kx={bubbles:!1,cancelable:!0},Yx="RovingFocusGroup",[Qx,Xx,Zx]=zb(Yx),[Jx,eE]=mv(Yx,[Zx]),[tE,nE]=Jx(Yx),rE=Fu.forwardRef((e,t)=>(0,Gm.jsx)(Qx.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,Gm.jsx)(Qx.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,Gm.jsx)(iE,{...e,ref:t})})}));rE.displayName=Yx;var iE=Fu.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:o,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:l,onEntryFocus:u,preventScrollOnEntryFocus:c=!1,...d}=e,f=Fu.useRef(null),p=hv(t,f),h=Ub(o),[m,g]=Ev({prop:a,defaultProp:null!=s?s:null,onChange:l,caller:Yx}),[v,y]=Fu.useState(!1),b=Dv(u),w=Xx(n),x=Fu.useRef(!1),[E,k]=Fu.useState(0);return Fu.useEffect(()=>{const e=f.current;if(e)return e.addEventListener(Gx,b),()=>e.removeEventListener(Gx,b)},[b]),(0,Gm.jsx)(tE,{scope:n,orientation:r,dir:h,loop:i,currentTabStopId:m,onItemFocus:Fu.useCallback(e=>g(e),[g]),onItemShiftTab:Fu.useCallback(()=>y(!0),[]),onFocusableItemAdd:Fu.useCallback(()=>k(e=>e+1),[]),onFocusableItemRemove:Fu.useCallback(()=>k(e=>e-1),[]),children:(0,Gm.jsx)(Nv.div,{tabIndex:v||0===E?-1:0,"data-orientation":r,...d,ref:p,style:{outline:"none",...e.style},onMouseDown:dv(e.onMouseDown,()=>{x.current=!0}),onFocus:dv(e.onFocus,e=>{const t=!x.current;if(e.target===e.currentTarget&&t&&!v){const t=new CustomEvent(Gx,Kx);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=w().filter(e=>e.focusable);lE([e.find(e=>e.active),e.find(e=>e.id===m),...e].filter(Boolean).map(e=>e.ref.current),c)}}x.current=!1}),onBlur:dv(e.onBlur,()=>y(!1))})})}),oE="RovingFocusGroupItem",aE=Fu.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:o,children:a,...s}=e,l=wv(),u=o||l,c=nE(oE,n),d=c.currentTabStopId===u,f=Xx(n),{onFocusableItemAdd:p,onFocusableItemRemove:h,currentTabStopId:m}=c;return Fu.useEffect(()=>{if(r)return p(),()=>h()},[r,p,h]),(0,Gm.jsx)(Qx.ItemSlot,{scope:n,id:u,focusable:r,active:i,children:(0,Gm.jsx)(Nv.span,{tabIndex:d?0:-1,"data-orientation":c.orientation,...s,ref:t,onMouseDown:dv(e.onMouseDown,e=>{r?c.onItemFocus(u):e.preventDefault()}),onFocus:dv(e.onFocus,()=>c.onItemFocus(u)),onKeyDown:dv(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void c.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:sE[r]}(e,c.orientation,c.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let i=f().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)i.reverse();else if("prev"===t||"next"===t){"prev"===t&&i.reverse();const o=i.indexOf(e.currentTarget);i=c.loop?(r=o+1,(n=i).map((e,t)=>n[(r+t)%n.length])):i.slice(o+1)}setTimeout(()=>lE(i))}var n,r}),children:"function"==typeof a?a({isCurrentTabStop:d,hasTabStop:null!=m}):a})})});aE.displayName=oE;var sE={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function lE(e,t=!1){const n=document.activeElement;for(const r of e){if(r===n)return;if(r.focus({preventScroll:t}),document.activeElement!==n)return}}var uE=rE,cE=aE,dE=["Enter"," "],fE=["ArrowUp","PageDown","End"],pE=["ArrowDown","PageUp","Home",...fE],hE={ltr:[...dE,"ArrowRight"],rtl:[...dE,"ArrowLeft"]},mE={ltr:["ArrowLeft"],rtl:["ArrowRight"]},gE="Menu",[vE,yE,bE]=zb(gE),[wE,xE]=mv(gE,[bE,_x,eE]),EE=_x(),kE=eE(),[CE,SE]=wE(gE),[TE,_E]=wE(gE),NE=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:o,modal:a=!0}=e,s=EE(t),[l,u]=Fu.useState(null),c=Fu.useRef(!1),d=Dv(o),f=Ub(i);return Fu.useEffect(()=>{const e=()=>{c.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>c.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,Gm.jsx)(Ux,{...s,children:(0,Gm.jsx)(CE,{scope:t,open:n,onOpenChange:d,content:l,onContentChange:u,children:(0,Gm.jsx)(TE,{scope:t,onClose:Fu.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:c,dir:f,modal:a,children:r})})})};NE.displayName=gE;var AE=Fu.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=EE(n);return(0,Gm.jsx)(Hx,{...i,...r,ref:t})});AE.displayName="MenuAnchor";var DE="MenuPortal",[OE,LE]=wE(DE,{forceMount:void 0}),IE=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:i}=e,o=SE(DE,t);return(0,Gm.jsx)(OE,{scope:t,forceMount:n,children:(0,Gm.jsx)(Kv,{present:n||o.open,children:(0,Gm.jsx)(Gv,{asChild:!0,container:i,children:r})})})};IE.displayName=DE;var ME="MenuContent",[FE,PE]=wE(ME),RE=Fu.forwardRef((e,t)=>{const n=LE(ME,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=SE(ME,e.__scopeMenu),a=_E(ME,e.__scopeMenu);return(0,Gm.jsx)(vE.Provider,{scope:e.__scopeMenu,children:(0,Gm.jsx)(Kv,{present:r||o.open,children:(0,Gm.jsx)(vE.Slot,{scope:e.__scopeMenu,children:a.modal?(0,Gm.jsx)(jE,{...i,ref:t}):(0,Gm.jsx)(VE,{...i,ref:t})})})})}),jE=Fu.forwardRef((e,t)=>{const n=SE(ME,e.__scopeMenu),r=Fu.useRef(null),i=hv(t,r);return Fu.useEffect(()=>{const e=r.current;if(e)return zy(e)},[]),(0,Gm.jsx)(zE,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:dv(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),VE=Fu.forwardRef((e,t)=>{const n=SE(ME,e.__scopeMenu);return(0,Gm.jsx)(zE,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),BE=kv("MenuContent.ScrollLock"),zE=Fu.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:s,onEntryFocus:l,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:h,...m}=e,g=SE(ME,n),v=_E(ME,n),y=EE(n),b=kE(n),w=yE(n),[x,E]=Fu.useState(null),k=Fu.useRef(null),C=hv(t,k,g.onContentChange),S=Fu.useRef(0),T=Fu.useRef(""),_=Fu.useRef(0),N=Fu.useRef(null),A=Fu.useRef("right"),D=Fu.useRef(0),O=h?Fy:Fu.Fragment,L=h?{as:BE,allowPinchZoom:!0}:void 0;Fu.useEffect(()=>()=>window.clearTimeout(S.current),[]),Xv();const I=Fu.useCallback(e=>{var t,n;return A.current===(null===(t=N.current)||void 0===t?void 0:t.side)&&function(e,t){return!!t&&function(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 e=t[o],s=t[a],l=e.x,u=e.y,c=s.x,d=s.y;u>r!=d>r&&n<(c-l)*(r-u)/(d-u)+l&&(i=!i)}return i}({x:e.clientX,y:e.clientY},t)}(e,null===(n=N.current)||void 0===n?void 0:n.area)},[]);return(0,Gm.jsx)(FE,{scope:n,searchRef:T,onItemEnter:Fu.useCallback(e=>{I(e)&&e.preventDefault()},[I]),onItemLeave:Fu.useCallback(e=>{var t;I(e)||(null===(t=k.current)||void 0===t||t.focus(),E(null))},[I]),onTriggerLeave:Fu.useCallback(e=>{I(e)&&e.preventDefault()},[I]),pointerGraceTimerRef:_,onPointerGraceIntentChange:Fu.useCallback(e=>{N.current=e},[]),children:(0,Gm.jsx)(O,{...L,children:(0,Gm.jsx)(Bv,{asChild:!0,trapped:i,onMountAutoFocus:dv(o,e=>{var t;e.preventDefault(),null===(t=k.current)||void 0===t||t.focus({preventScroll:!0})}),onUnmountAutoFocus:a,children:(0,Gm.jsx)(Mv,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:u,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:(0,Gm.jsx)(uE,{asChild:!0,...b,dir:v.dir,orientation:"vertical",loop:r,currentTabStopId:x,onCurrentTabStopIdChange:E,onEntryFocus:dv(l,e=>{v.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,Gm.jsx)(Wx,{role:"menu","aria-orientation":"vertical","data-state":pk(g.open),"data-radix-menu-content":"",dir:v.dir,...y,...m,ref:C,style:{outline:"none",...m.style},onKeyDown:dv(m.onKeyDown,e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&(e=>{var t,n;const r=T.current+e,i=w().filter(e=>!e.disabled),o=document.activeElement,a=null===(t=i.find(e=>e.ref.current===o))||void 0===t?void 0:t.textValue,s=function(e,t,n){const r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let o=(a=e,s=Math.max(i,0),a.map((e,t)=>a[(s+t)%a.length]));var a,s;1===r.length&&(o=o.filter(e=>e!==n));const l=o.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}(i.map(e=>e.textValue),r,a),l=null===(n=i.find(e=>e.textValue===s))||void 0===n?void 0:n.ref.current;!function e(t){T.current=t,window.clearTimeout(S.current),""!==t&&(S.current=window.setTimeout(()=>e(""),1e3))}(r),l&&setTimeout(()=>l.focus())})(e.key));const i=k.current;if(e.target!==i)return;if(!pE.includes(e.key))return;e.preventDefault();const o=w().filter(e=>!e.disabled).map(e=>e.ref.current);fE.includes(e.key)&&o.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(o)}),onBlur:dv(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(S.current),T.current="")}),onPointerMove:dv(e.onPointerMove,gk(e=>{const t=e.target,n=D.current!==e.clientX;e.currentTarget.contains(t)&&n&&(A.current=e.clientX>D.current?"right":"left",D.current=e.clientX)}))})})})})})})});RE.displayName=ME;var $E=Fu.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,Gm.jsx)(Nv.div,{role:"group",...r,ref:t})});$E.displayName="MenuGroup";var UE=Fu.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,Gm.jsx)(Nv.div,{...r,ref:t})});UE.displayName="MenuLabel";var HE="MenuItem",WE="menu.itemSelect",qE=Fu.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...i}=e,o=Fu.useRef(null),a=_E(HE,e.__scopeMenu),s=PE(HE,e.__scopeMenu),l=hv(t,o),u=Fu.useRef(!1);return(0,Gm.jsx)(GE,{...i,ref:l,disabled:n,onClick:dv(e.onClick,()=>{const e=o.current;if(!n&&e){const t=new CustomEvent(WE,{bubbles:!0,cancelable:!0});e.addEventListener(WE,e=>null==r?void 0:r(e),{once:!0}),Av(e,t),t.defaultPrevented?u.current=!1:a.onClose()}}),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),u.current=!0},onPointerUp:dv(e.onPointerUp,e=>{var t;u.current||null===(t=e.currentTarget)||void 0===t||t.click()}),onKeyDown:dv(e.onKeyDown,e=>{const t=""!==s.searchRef.current;n||t&&" "===e.key||dE.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});qE.displayName=HE;var GE=Fu.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:i,...o}=e,a=PE(HE,n),s=kE(n),l=Fu.useRef(null),u=hv(t,l),[c,d]=Fu.useState(!1),[f,p]=Fu.useState("");return Fu.useEffect(()=>{const e=l.current;var t;e&&p((null!==(t=e.textContent)&&void 0!==t?t:"").trim())},[o.children]),(0,Gm.jsx)(vE.ItemSlot,{scope:n,disabled:r,textValue:null!=i?i:f,children:(0,Gm.jsx)(cE,{asChild:!0,...s,focusable:!r,children:(0,Gm.jsx)(Nv.div,{role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...o,ref:u,onPointerMove:dv(e.onPointerMove,gk(e=>{r?a.onItemLeave(e):(a.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:dv(e.onPointerLeave,gk(e=>a.onItemLeave(e))),onFocus:dv(e.onFocus,()=>d(!0)),onBlur:dv(e.onBlur,()=>d(!1))})})})}),KE=Fu.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...i}=e;return(0,Gm.jsx)(nk,{scope:e.__scopeMenu,checked:n,children:(0,Gm.jsx)(qE,{role:"menuitemcheckbox","aria-checked":hk(n)?"mixed":n,...i,ref:t,"data-state":mk(n),onSelect:dv(i.onSelect,()=>null==r?void 0:r(!!hk(n)||!n),{checkForDefaultPrevented:!1})})})});KE.displayName="MenuCheckboxItem";var YE="MenuRadioGroup",[QE,XE]=wE(YE,{value:void 0,onValueChange:()=>{}}),ZE=Fu.forwardRef((e,t)=>{const{value:n,onValueChange:r,...i}=e,o=Dv(r);return(0,Gm.jsx)(QE,{scope:e.__scopeMenu,value:n,onValueChange:o,children:(0,Gm.jsx)($E,{...i,ref:t})})});ZE.displayName=YE;var JE="MenuRadioItem",ek=Fu.forwardRef((e,t)=>{const{value:n,...r}=e,i=XE(JE,e.__scopeMenu),o=n===i.value;return(0,Gm.jsx)(nk,{scope:e.__scopeMenu,checked:o,children:(0,Gm.jsx)(qE,{role:"menuitemradio","aria-checked":o,...r,ref:t,"data-state":mk(o),onSelect:dv(r.onSelect,()=>{var e;return null===(e=i.onValueChange)||void 0===e?void 0:e.call(i,n)},{checkForDefaultPrevented:!1})})})});ek.displayName=JE;var tk="MenuItemIndicator",[nk,rk]=wE(tk,{checked:!1}),ik=Fu.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...i}=e,o=rk(tk,n);return(0,Gm.jsx)(Kv,{present:r||hk(o.checked)||!0===o.checked,children:(0,Gm.jsx)(Nv.span,{...i,ref:t,"data-state":mk(o.checked)})})});ik.displayName=tk;var ok=Fu.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,Gm.jsx)(Nv.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});ok.displayName="MenuSeparator";var ak=Fu.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=EE(n);return(0,Gm.jsx)(qx,{...i,...r,ref:t})});ak.displayName="MenuArrow";var[sk,lk]=wE("MenuSub"),uk="MenuSubTrigger",ck=Fu.forwardRef((e,t)=>{const n=SE(uk,e.__scopeMenu),r=_E(uk,e.__scopeMenu),i=lk(uk,e.__scopeMenu),o=PE(uk,e.__scopeMenu),a=Fu.useRef(null),{pointerGraceTimerRef:s,onPointerGraceIntentChange:l}=o,u={__scopeMenu:e.__scopeMenu},c=Fu.useCallback(()=>{a.current&&window.clearTimeout(a.current),a.current=null},[]);return Fu.useEffect(()=>c,[c]),Fu.useEffect(()=>{const e=s.current;return()=>{window.clearTimeout(e),l(null)}},[s,l]),(0,Gm.jsx)(AE,{asChild:!0,...u,children:(0,Gm.jsx)(GE,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":pk(n.open),...e,ref:pv(t,i.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:dv(e.onPointerMove,gk(t=>{o.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||a.current||(o.onPointerGraceIntentChange(null),a.current=window.setTimeout(()=>{n.onOpenChange(!0),c()},100))})),onPointerLeave:dv(e.onPointerLeave,gk(e=>{var t;c();const r=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(r){var i;const t=null===(i=n.content)||void 0===i?void 0:i.dataset.side,a="right"===t,l=a?-5:5,u=r[a?"left":"right"],c=r[a?"right":"left"];o.onPointerGraceIntentChange({area:[{x:e.clientX+l,y:e.clientY},{x:u,y:r.top},{x:c,y:r.top},{x:c,y:r.bottom},{x:u,y:r.bottom}],side:t}),window.clearTimeout(s.current),s.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(e),e.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:dv(e.onKeyDown,t=>{const i=""!==o.searchRef.current;var a;e.disabled||i&&" "===t.key||hE[r.dir].includes(t.key)&&(n.onOpenChange(!0),null===(a=n.content)||void 0===a||a.focus(),t.preventDefault())})})})});ck.displayName=uk;var dk="MenuSubContent",fk=Fu.forwardRef((e,t)=>{const n=LE(ME,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,o=SE(ME,e.__scopeMenu),a=_E(ME,e.__scopeMenu),s=lk(dk,e.__scopeMenu),l=Fu.useRef(null),u=hv(t,l);return(0,Gm.jsx)(vE.Provider,{scope:e.__scopeMenu,children:(0,Gm.jsx)(Kv,{present:r||o.open,children:(0,Gm.jsx)(vE.Slot,{scope:e.__scopeMenu,children:(0,Gm.jsx)(zE,{id:s.contentId,"aria-labelledby":s.triggerId,...i,ref:u,align:"start",side:"rtl"===a.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;a.isUsingKeyboardRef.current&&(null===(t=l.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:dv(e.onFocusOutside,e=>{e.target!==s.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:dv(e.onEscapeKeyDown,e=>{a.onClose(),e.preventDefault()}),onKeyDown:dv(e.onKeyDown,e=>{const t=e.currentTarget.contains(e.target),n=mE[a.dir].includes(e.key);var r;t&&n&&(o.onOpenChange(!1),null===(r=s.trigger)||void 0===r||r.focus(),e.preventDefault())})})})})})});function pk(e){return e?"open":"closed"}function hk(e){return"indeterminate"===e}function mk(e){return hk(e)?"indeterminate":e?"checked":"unchecked"}function gk(e){return t=>"mouse"===t.pointerType?e(t):void 0}fk.displayName=dk;var vk=NE,yk=AE,bk=IE,wk=RE,xk=$E,Ek=UE,kk=qE,Ck=KE,Sk=ZE,Tk=ek,_k=ik,Nk=ok,Ak=ak,Dk=ck,Ok=fk,Lk="DropdownMenu",[Ik,Mk]=mv(Lk,[xE]),Fk=xE(),[Pk,Rk]=Ik(Lk),jk=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:o,onOpenChange:a,modal:s=!0}=e,l=Fk(t),u=Fu.useRef(null),[c,d]=Ev({prop:i,defaultProp:null!=o&&o,onChange:a,caller:Lk});return(0,Gm.jsx)(Pk,{scope:t,triggerId:wv(),triggerRef:u,contentId:wv(),open:c,onOpenChange:d,onOpenToggle:Fu.useCallback(()=>d(e=>!e),[d]),modal:s,children:(0,Gm.jsx)(vk,{...l,open:c,onOpenChange:d,dir:r,modal:s,children:n})})};jk.displayName=Lk;var Vk="DropdownMenuTrigger",Bk=Fu.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,o=Rk(Vk,n),a=Fk(n);return(0,Gm.jsx)(yk,{asChild:!0,...a,children:(0,Gm.jsx)(Nv.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:pv(t,o.triggerRef),onPointerDown:dv(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(o.onOpenToggle(),o.open||e.preventDefault())}),onKeyDown:dv(e.onKeyDown,e=>{r||(["Enter"," "].includes(e.key)&&o.onOpenToggle(),"ArrowDown"===e.key&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});Bk.displayName=Vk;var zk=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Fk(t);return(0,Gm.jsx)(bk,{...r,...n})};zk.displayName="DropdownMenuPortal";var $k="DropdownMenuContent",Uk=Fu.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Rk($k,n),o=Fk(n),a=Fu.useRef(!1);return(0,Gm.jsx)(wk,{id:i.contentId,"aria-labelledby":i.triggerId,...o,...r,ref:t,onCloseAutoFocus:dv(e.onCloseAutoFocus,e=>{var t;a.current||null===(t=i.triggerRef.current)||void 0===t||t.focus(),a.current=!1,e.preventDefault()}),onInteractOutside:dv(e.onInteractOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;i.modal&&!r||(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)"}})});Uk.displayName=$k,Fu.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Fk(n);return(0,Gm.jsx)(xk,{...i,...r,ref:t})}).displayName="DropdownMenuGroup",Fu.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Fk(n);return(0,Gm.jsx)(Ek,{...i,...r,ref:t})}).displayName="DropdownMenuLabel";var Hk=Fu.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Fk(n);return(0,Gm.jsx)(kk,{...i,...r,ref:t})});Hk.displayName="DropdownMenuItem",Fu.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Fk(n);return(0,Gm.jsx)(Ck,{...i,...r,ref:t})}).displayName="DropdownMenuCheckboxItem",Fu.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Fk(n);return(0,Gm.jsx)(Sk,{...i,...r,ref:t})}).displayName="DropdownMenuRadioGroup",Fu.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Fk(n);return(0,Gm.jsx)(Tk,{...i,...r,ref:t})}).displayName="DropdownMenuRadioItem",Fu.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Fk(n);return(0,Gm.jsx)(_k,{...i,...r,ref:t})}).displayName="DropdownMenuItemIndicator",Fu.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Fk(n);return(0,Gm.jsx)(Nk,{...i,...r,ref:t})}).displayName="DropdownMenuSeparator",Fu.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Fk(n);return(0,Gm.jsx)(Ak,{...i,...r,ref:t})}).displayName="DropdownMenuArrow",Fu.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Fk(n);return(0,Gm.jsx)(Dk,{...i,...r,ref:t})}).displayName="DropdownMenuSubTrigger",Fu.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Fk(n);return(0,Gm.jsx)(Ok,{...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)"}})}).displayName="DropdownMenuSubContent";var Wk=jk,qk=Bk,Gk=zk,Kk=Uk,Yk=Hk,Qk=(0,Fu.forwardRef)((e,t)=>{const n=(0,$u.c)(6);let r,i;return n[0]!==e.className?(r=$g("graphiql-un-styled",e.className),n[0]=e.className,n[1]=r):r=n[1],n[2]!==e||n[3]!==t||n[4]!==r?(i=(0,Gm.jsx)(qk,{asChild:!0,children:(0,Gm.jsx)("button",{...e,ref:t,className:r})}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});Qk.displayName="DropdownMenuButton";var Xk=Object.assign(Wk,{Button:Qk,Item:e=>{const t=(0,$u.c)(10);let n,r,i,o,a;return 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]),t[4]!==r?(o=$g("graphiql-dropdown-item",r),t[4]=r,t[5]=o):o=t[5],t[6]!==n||t[7]!==i||t[8]!==o?(a=(0,Gm.jsx)(Yk,{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=(0,$u.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 s=void 0===o?"start":o,l=void 0===a?5:a;let u,c;return t[6]!==r?(u=$g("graphiql-dropdown-content",r),t[6]=r,t[7]=u):u=t[7],t[8]!==s||t[9]!==n||t[10]!==i||t[11]!==l||t[12]!==u?(c=(0,Gm.jsx)(Gk,{children:(0,Gm.jsx)(Kk,{align:s,sideOffset:l,className:u,...i,children:n})}),t[8]=s,t[9]=n,t[10]=i,t[11]=l,t[12]=u,t[13]=c):c=t[13],c}}),Zk=(0,Fu.forwardRef)((e,t)=>{const n=(0,$u.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 s=`graphiql-markdown-${a}`,l=i&&"graphiql-markdown-preview";let u,c,d,f;return n[5]!==o.className||n[6]!==s||n[7]!==l?(u=$g(s,l,o.className),n[5]=o.className,n[6]=s,n[7]=l,n[8]=u):u=n[8],n[9]!==r?(c=hp.render(r),n[9]=r,n[10]=c):c=n[10],n[11]!==c?(d={__html:c},n[11]=c,n[12]=d):d=n[12],n[13]!==o||n[14]!==t||n[15]!==u||n[16]!==d?(f=(0,Gm.jsx)("div",{...o,ref:t,className:u,dangerouslySetInnerHTML:d}),n[13]=o,n[14]=t,n[15]=u,n[16]=d,n[17]=f):f=n[17],f});Zk.displayName="MarkdownContent";var Jk=(0,Fu.forwardRef)((e,t)=>{const n=(0,$u.c)(6);let r,i;return n[0]!==e.className?(r=$g("graphiql-spinner",e.className),n[0]=e.className,n[1]=r):r=n[1],n[2]!==e||n[3]!==t||n[4]!==r?(i=(0,Gm.jsx)("div",{...e,ref:t,className:r}),n[2]=e,n[3]=t,n[4]=r,n[5]=i):i=n[5],i});Jk.displayName="Spinner";var eC=(0,Fu.createContext)({});function tC(e){const t=(0,Fu.useRef)(null);return null===t.current&&(t.current=e()),t.current}var nC="undefined"!=typeof window?Fu.useLayoutEffect:Fu.useEffect,rC=(0,Fu.createContext)(null);function iC(e,t){-1===e.indexOf(t)&&e.push(t)}function oC(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}var aC=(e,t,n)=>n>t?t:n<e?e:n,sC={},lC=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function uC(e){return"object"==typeof e&&null!==e}var cC=e=>/^0[^.\s]+$/u.test(e);function dC(e){let t;return()=>(void 0===t&&(t=e()),t)}var fC=e=>e,pC=(e,t)=>n=>t(e(n)),hC=(...e)=>e.reduce(pC),mC=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},gC=class{constructor(){this.subscriptions=[]}add(e){return iC(this.subscriptions,e),()=>oC(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){const r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},vC=e=>1e3*e,yC=e=>e/1e3;function bC(e,t){return t?e*(1e3/t):0}var wC=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function xC(e,t,n,r){return e===t&&n===r?fC:i=>0===i||1===i?i:wC(function(e,t,n,r,i){let o,a,s=0;do{a=t+(n-t)/2,o=wC(a,r,i)-e,o>0?n=a:t=a}while(Math.abs(o)>1e-7&&++s<12);return a}(i,0,1,e,n),t,r)}var EC=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,kC=e=>t=>1-e(1-t),CC=xC(.33,1.53,.69,.99),SC=kC(CC),TC=EC(SC),_C=e=>e>=1?1:(e*=2)<1?.5*SC(e):.5*(2-Math.pow(2,-10*(e-1))),NC=e=>1-Math.sin(Math.acos(e)),AC=kC(NC),DC=EC(NC),OC=xC(.42,0,1,1),LC=xC(0,0,.58,1),IC=xC(.42,0,.58,1),MC=e=>Array.isArray(e)&&"number"==typeof e[0],FC={linear:fC,easeIn:OC,easeInOut:IC,easeOut:LC,circIn:NC,circInOut:DC,circOut:AC,backIn:SC,backInOut:TC,backOut:CC,anticipate:_C},PC=e=>{if(MC(e)){e.length;const[t,n,r,i]=e;return xC(t,n,r,i)}return"string"==typeof e?FC[e]:e},RC=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],jC={value:null,addProjectionMetrics:null};function VC(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=RC.reduce((e,n)=>(e[n]=function(e,t){let n=new Set,r=new Set,i=!1,o=!1;const a=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1},l=0;function u(t){a.has(t)&&(c.schedule(t),e()),l++,t(s)}const c={schedule:(e,t=!1,o=!1)=>{const s=o&&i?n:r;return t&&a.add(e),s.add(e),e},cancel:e=>{r.delete(e),a.delete(e)},process:e=>{if(s=e,i)return void(o=!0);i=!0;const a=n;n=r,r=a,n.forEach(u),t&&jC.value&&jC.value.frameloop[t].push(l),l=0,n.clear(),i=!1,o&&(o=!1,c.process(e))}};return c}(o,t?n:void 0),e),{}),{setup:s,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:f,render:p,postRender:h}=a,m=()=>{const o=sC.useManualTiming,a=o?i.timestamp:performance.now();n=!1,o||(i.delta=r?1e3/60:Math.max(Math.min(a-i.timestamp,40),1)),i.timestamp=a,i.isProcessing=!0,s.process(i),l.process(i),u.process(i),c.process(i),d.process(i),f.process(i),p.process(i),h.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(m))};return{schedule:RC.reduce((t,o)=>{const s=a[o];return t[o]=(t,o=!1,a=!1)=>(n||(n=!0,r=!0,i.isProcessing||e(m)),s.schedule(t,o,a)),t},{}),cancel:e=>{for(let t=0;t<RC.length;t++)a[RC[t]].cancel(e)},state:i,steps:a}}var BC,{schedule:zC,cancel:$C,state:UC,steps:HC}=VC("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:fC,!0);function WC(){BC=void 0}var qC={now:()=>(void 0===BC&&qC.set(UC.isProcessing||sC.useManualTiming?UC.timestamp:performance.now()),BC),set:e=>{BC=e,queueMicrotask(WC)}},GC={layout:0,mainThread:0,waapi:0},KC=e=>t=>"string"==typeof t&&t.startsWith(e),YC=KC("--"),QC=KC("var(--"),XC=e=>!!QC(e)&&ZC.test(e.split("/*")[0].trim()),ZC=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function JC(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}var eS={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},tS={...eS,transform:e=>aC(0,1,e)},nS={...eS,default:1},rS=e=>Math.round(1e5*e)/1e5,iS=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,oS=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,aS=(e,t)=>n=>Boolean("string"==typeof n&&oS.test(n)&&n.startsWith(e)||t&&!function(e){return null==e}(n)&&Object.prototype.hasOwnProperty.call(n,t)),sS=(e,t,n)=>r=>{if("string"!=typeof r)return r;const[i,o,a,s]=r.match(iS);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},lS={...eS,transform:e=>Math.round((e=>aC(0,255,e))(e))},uS={test:aS("rgb","red"),parse:sS("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+lS.transform(e)+", "+lS.transform(t)+", "+lS.transform(n)+", "+rS(tS.transform(r))+")"},cS={test:aS("#"),parse:function(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}},transform:uS.transform},dS=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),fS=dS("deg"),pS=dS("%"),hS=dS("px"),mS=dS("vh"),gS=dS("vw"),vS={...pS,parse:e=>pS.parse(e)/100,transform:e=>pS.transform(100*e)},yS={test:aS("hsl","hue"),parse:sS("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+pS.transform(rS(t))+", "+pS.transform(rS(n))+", "+rS(tS.transform(r))+")"},bS={test:e=>uS.test(e)||cS.test(e)||yS.test(e),parse:e=>uS.test(e)?uS.parse(e):yS.test(e)?yS.parse(e):cS.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?uS.transform(e):yS.transform(e),getAnimatableNone:e=>{const t=bS.parse(e);return t.alpha=0,bS.transform(t)}},wS=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,xS="number",ES="color",kS=/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 CS(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;return{values:n,split:t.replace(kS,e=>(bS.test(e)?(r.color.push(o),i.push(ES),n.push(bS.parse(e))):e.startsWith("var(")?(r.var.push(o),i.push("var"),n.push(e)):(r.number.push(o),i.push(xS),n.push(parseFloat(e))),++o,"${}")).split("${}"),indexes:r,types:i}}function SS({split:e,types:t}){const n=e.length;return r=>{let i="";for(let o=0;o<n;o++)if(i+=e[o],void 0!==r[o]){const e=t[o];i+=e===xS?rS(r[o]):e===ES?bS.transform(r[o]):r[o]}return i}}var TS={test:function(e){var t,n;return isNaN(e)&&"string"==typeof e&&((null===(t=e.match(iS))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(wS))||void 0===n?void 0:n.length)||0)>0},parse:function(e){return CS(e).values},createTransformer:function(e){return SS(CS(e))},getAnimatableNone:function(e){const t=CS(e);return SS(t)(t.values.map((e,n)=>((e,t)=>"number"==typeof e?(null==t?void 0:t.trim().endsWith("/"))?e:0:(e=>"number"==typeof e?0:bS.test(e)?bS.getAnimatableNone(e):e)(e))(e,t.split[n])))}};function _S(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function NS(e,t){return n=>n>0?t:e}var AS=(e,t,n)=>e+(t-e)*n,DS=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},OS=[cS,uS,yS];function LS(e){const t=(e=>OS.find(t=>t.test(e)))(e);if(Boolean(t),!Boolean(t))return!1;let n=t.parse(e);return t===yS&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,a=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=_S(s,r,e+1/3),o=_S(s,r,e),a=_S(s,r,e-1/3)}else i=o=a=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}(n)),n}var IS=(e,t)=>{const n=LS(e),r=LS(t);if(!n||!r)return NS(e,t);const i={...n};return e=>(i.red=DS(n.red,r.red,e),i.green=DS(n.green,r.green,e),i.blue=DS(n.blue,r.blue,e),i.alpha=AS(n.alpha,r.alpha,e),uS.transform(i))},MS=new Set(["none","hidden"]);function FS(e,t){return n=>AS(e,t,n)}function PS(e){return"number"==typeof e?FS:"string"==typeof e?XC(e)?NS:bS.test(e)?IS:VS:Array.isArray(e)?RS:"object"==typeof e?bS.test(e)?IS:jS:NS}function RS(e,t){const n=[...e],r=n.length,i=e.map((e,n)=>PS(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function jS(e,t){const n={...e,...t},r={};for(const i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=PS(e[i])(e[i],t[i]));return e=>{for(const t in r)n[t]=r[t](e);return n}}var VS=(e,t)=>{const n=TS.createTransformer(t),r=CS(e),i=CS(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?MS.has(e)&&!i.values.length||MS.has(t)&&!r.values.length?function(e,t){return MS.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):hC(RS(function(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){var i;const a=t.types[o],s=e.indexes[a][r[a]];n[o]=null!==(i=e.values[s])&&void 0!==i?i:0,r[a]++}return n}(r,i),i.values),n):NS(e,t)};function BS(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?AS(e,t,n):PS(e)(e,t)}var zS=e=>{const t=({timestamp:t})=>e(t);return{start:(e=!0)=>zC.update(t,e),stop:()=>$C(t),now:()=>UC.isProcessing?UC.timestamp:qC.now()}},$S=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=Math.round(1e4*e(o/(i-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`};function US(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function HS(e,t){return e*Math.sqrt(1-t*t)}var WS=["duration","bounce"],qS=["stiffness","damping","mass"];function GS(e,t){return t.some(t=>void 0!==e[t])}function KS(e=.3,t=.3){const n="object"!=typeof e?{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],s={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!GS(e,qS)&&GS(e,WS))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(1.2*n),i=r*r,o=2*aC(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:1,stiffness:i,damping:o}}else{const n=function({duration:e=800,bounce:t=.3,velocity:n=0,mass:r=1}){let i,o;vC(10);let a=1-t;a=aC(.05,1,a),e=aC(.01,10,yC(e)),a<1?(i=t=>{const r=t*a,i=r*e;return.001-(r-n)/HS(t,a)*Math.exp(-i)},o=t=>{const r=t*a*e,o=r*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-r),u=HS(Math.pow(t,2),a);return(.001-i(t)>0?-1:1)*((o-s)*l)/u}):(i=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,o=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let i=1;i<12;i++)r-=e(r)/t(r);return r}(i,o,5/e);if(e=vC(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}({...e,velocity:0});t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}({...n,velocity:-yC(n.velocity||0)}),h=f||0,m=u/(2*Math.sqrt(l*c)),g=a-o,v=yC(Math.sqrt(l/c)),y=Math.abs(g)<5;let b,w,x,E,k,C;if(r||(r=y?.01:2),i||(i=y?.005:.5),m<1)x=HS(v,m),E=(h+m*v*g)/x,b=e=>a-Math.exp(-m*v*e)*(E*Math.sin(x*e)+g*Math.cos(x*e)),k=m*v*E+g*x,C=m*v*g-E*x,w=e=>Math.exp(-m*v*e)*(k*Math.sin(x*e)+C*Math.cos(x*e));else if(1===m){b=e=>a-Math.exp(-v*e)*(g+(h+v*g)*e);const e=h+v*g;w=t=>Math.exp(-v*t)*(v*e*t-h)}else{const e=v*Math.sqrt(m*m-1);b=t=>{const n=Math.exp(-m*v*t),r=Math.min(e*t,300);return a-n*((h+m*v*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};const t=(h+m*v*g)/e,n=m*v*t-g*e,r=m*v*g-t*e;w=t=>{const i=Math.exp(-m*v*t),o=Math.min(e*t,300);return i*(n*Math.sinh(o)+r*Math.cosh(o))}}const S={calculatedDuration:p&&d||null,velocity:e=>vC(w(e)),next:e=>{if(!p&&m<1){const t=Math.exp(-m*v*e),n=Math.sin(x*e),o=Math.cos(x*e),l=a-t*(E*n+g*o),u=vC(t*(k*n+C*o));return s.done=Math.abs(u)<=r&&Math.abs(a-l)<=i,s.value=s.done?a:l,s}const t=b(e);if(p)s.done=e>=d;else{const n=vC(w(e));s.done=Math.abs(n)<=r&&Math.abs(a-t)<=i}return s.value=s.done?a:t,s},toString:()=>{const e=Math.min(US(S),2e4),t=$S(t=>S.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return S}function YS(e,t,n){const r=Math.max(t-5,0);return bC(n-e(r),t-r)}function QS({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},p=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let h=n*t;const m=d+h,g=void 0===a?m:a(m);g!==m&&(h=g-d);const v=e=>-h*Math.exp(-e/r),y=e=>g+v(e),b=e=>{const t=v(e),n=y(e);f.done=Math.abs(t)<=u,f.value=f.done?g:n};let w,x;const E=e=>{(e=>void 0!==s&&e<s||void 0!==l&&e>l)(f.value)&&(w=e,x=KS({keyframes:[f.value,p(f.value)],velocity:YS(y,e,f.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return E(0),{calculatedDuration:null,next:e=>{let t=!1;return x||void 0!==w||(t=!0,b(e),E(e)),void 0!==w&&e>=w?x.next(e-w):(!t&&b(e),f)}}}function XS(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(t.length,1===o)return()=>t[0];if(2===o&&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 s=function(e,t,n){const r=[],i=n||sC.mix||BS,o=e.length-1;for(let a=0;a<o;a++){let n=i(e[a],e[a+1]);t&&(n=hC(Array.isArray(t)?t[a]||fC:t,n)),r.push(n)}return r}(t,r,i),l=s.length,u=n=>{if(a&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);const i=mC(e[r],e[r+1],n);return s[r](i)};return n?t=>u(aC(e[0],e[o-1],t)):u}function ZS({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(PC):PC(r),o={done:!1,value:t[0]},a=XS(function(e,t){return e.map(e=>e*t)}(n&&n.length===t.length?n:function(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=mC(0,t,r);e.push(AS(n,1,i))}}(t,e.length-1),t}(t),e),t,{ease:Array.isArray(i)?i:(s=t,l=i,s.map(()=>l||IC).splice(0,s.length-1))});var s,l;return{calculatedDuration:e,next:t=>(o.value=a(t),o.done=t>=e,o)}}KS.applyToOptions=e=>{const t=function(e,t=100){const n=KS({...e,keyframes:[0,t]}),r=Math.min(US(n),2e4);return{type:"keyframes",ease:e=>n.next(r*e).value/t,duration:yC(r)}}(e,100);return e.ease=t.ease,e.duration=vC(t.duration),e.type="keyframes",e};var JS=e=>null!==e;function eT(e,{repeat:t,repeatType:n="loop"},r,i=1){const o=e.filter(JS),a=i<0||t&&"loop"!==n&&t%2==1?0:o.length-1;return a&&void 0!==r?r:o[a]}var tT={decay:QS,inertia:QS,tween:ZS,keyframes:ZS,spring:KS};function nT(e){"string"==typeof e.type&&(e.type=tT[e.type])}var rT=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},iT=e=>e/100,oT=class extends rT{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var e,t;const{motionValue:n}=this.options;n&&n.updatedAt!==qC.now()&&this.tick(qC.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),null===(e=(t=this.options).onStop)||void 0===e||e.call(t))},GC.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){const{options:e}=this;nT(e);const{type:t=ZS,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:o=0}=e;let{keyframes:a}=e;const s=t||ZS;s!==ZS&&"number"!=typeof a[0]&&(this.mixKeyframes=hC(iT,BS(a[0],a[1])),a=[0,100]);const l=s({...e,keyframes:a});"mirror"===i&&(this.mirroredGenerator=s({...e,keyframes:[...a].reverse(),velocity:-o})),null===l.calculatedDuration&&(l.calculatedDuration=US(l));const{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=l}updateTime(e){const t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){const{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:s}=this;if(null===this.startTime)return n.next(0);const{delay:l=0,keyframes:u,repeat:c,repeatType:d,repeatDelay:f,type:p,onUpdate:h,finalKeyframe:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);const g=this.currentTime-l*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let y,b=this.currentTime,w=n;if(c){const e=Math.min(this.currentTime,r)/a;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,c+1),Boolean(t%2)&&("reverse"===d?(n=1-n,f&&(n-=f/a)):"mirror"===d&&(w=o)),b=aC(0,1,n)*a}v?(this.delayState.value=u[0],y=this.delayState):y=w.next(b),i&&!v&&(y.value=i(y.value));let{done:x}=y;v||null===s||(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const E=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return E&&p!==QS&&(y.value=eT(u,this.options,m,this.speed)),h&&h(y.value),E&&this.finish(),y}then(e,t){return this.finished.then(e,t)}get duration(){return yC(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+yC(e)}get time(){return yC(this.currentTime)}set time(e){e=vC(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){const e=this.currentTime;return e<=0?this.options.velocity||0:this.generator.velocity?this.generator.velocity(e):YS(e=>this.generator.next(e).value,e,this.generator.next(e).value)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(qC.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=yC(this.currentTime))}play(){var e,t;if(this.isStopped)return;const{driver:n=zS,startTime:r}=this.options;this.driver||(this.driver=n(e=>this.tick(e))),null===(e=(t=this.options).onPlay)||void 0===e||e.call(t);const i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=null!=r?r:i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(qC.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,t;this.notifyFinished(),this.teardown(),this.state="finished",null===(e=(t=this.options).onComplete)||void 0===e||e.call(t)}cancel(){var e,t;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),null===(e=(t=this.options).onCancel)||void 0===e||e.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,GC.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var t;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),null===(t=this.driver)||void 0===t||t.stop(),e.observe(this)}},aT=e=>180*e/Math.PI,sT=e=>uT(aT(Math.atan2(e[1],e[0]))),lT={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:sT,rotateZ:sT,skewX:e=>aT(Math.atan(e[1])),skewY:e=>aT(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},uT=e=>((e%=360)<0&&(e+=360),e),cT=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),dT=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),fT={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:cT,scaleY:dT,scale:e=>(cT(e)+dT(e))/2,rotateX:e=>uT(aT(Math.atan2(e[6],e[5]))),rotateY:e=>uT(aT(Math.atan2(-e[2],e[0]))),rotateZ:sT,rotate:sT,skewX:e=>aT(Math.atan(e[4])),skewY:e=>aT(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function pT(e){return e.includes("scale")?1:0}function hT(e,t){if(!e||"none"===e)return pT(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=fT,i=n;else{const t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=lT,i=t}if(!i)return pT(t);const o=r[t],a=i[1].split(",").map(mT);return"function"==typeof o?o(a):a[o]}function mT(e){return parseFloat(e.trim())}var gT=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],vT=new Set(gT),yT=e=>e===eS||e===hS,bT=new Set(["x","y","z"]),wT=gT.filter(e=>!bT.has(e)),xT={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const i=e.max-e.min;return"border-box"===r?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const i=e.max-e.min;return"border-box"===r?i:i-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})=>hT(t,"x"),y:(e,{transform:t})=>hT(t,"y")};xT.translateX=xT.x,xT.translateY=xT.y;var ET=new Set,kT=!1,CT=!1,ST=!1;function TT(){if(CT){const e=Array.from(ET).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{const t=function(e){const t=[];return wT.forEach(n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();const t=n.get(e);t&&t.forEach(([t,n])=>{var r;null===(r=e.getValue(t))||void 0===r||r.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}CT=!1,kT=!1,ET.forEach(e=>e.complete(ST)),ET.clear()}function _T(){ET.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(CT=!0)})}var NT=class{constructor(e,t,n,r,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(ET.add(this),kT||(kT=!0,zC.read(_T),zC.resolveKeyframes(TT))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(null===e[0]){const i=null==r?void 0:r.get(),o=e[e.length-1];if(void 0!==i)e[0]=i;else if(n&&t){const r=n.readValue(t,o);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=o),r&&void 0===i&&r.set(e[0])}!function(e){for(let n=1;n<e.length;n++){var t;null!==(t=e[n])&&void 0!==t||(e[n]=e[n-1])}}(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),ET.delete(this)}cancel(){"scheduled"===this.state&&(ET.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}};function AT(e,t,n){(e=>e.startsWith("--"))(t)?e.style.setProperty(t,n):e.style[t]=n}var DT={};function OT(e,t){const n=dC(e);return()=>{var e;return null!==(e=DT[t])&&void 0!==e?e:n()}}var LT=OT(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),IT=OT(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(RR){return!1}return!0},"linearEasing"),MT=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,FT={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:MT([0,.65,.55,1]),circOut:MT([.55,0,1,.45]),backIn:MT([.31,.01,.66,-.59]),backOut:MT([.33,1.53,.69,.99])};function PT(e,t){return e?"function"==typeof e?IT()?$S(e,t):"ease-out":MC(e)?MT(e):Array.isArray(e)?e.map(e=>PT(e,t)||FT.easeOut):FT[e]:void 0}function RT(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:s="easeOut",times:l}={},u=void 0){const c={[t]:n};l&&(c.offset=l);const d=PT(s,i);Array.isArray(d)&&(c.easing=d),jC.value&&GC.waapi++;const f={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"};u&&(f.pseudoElement=u);const p=e.animate(c,f);return jC.value&&p.finished.finally(()=>{GC.waapi--}),p}function jT(e){return"function"==typeof e&&"applyToOptions"in e}var VT=class extends rT{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:a,onComplete:s}=e;this.isPseudoElement=Boolean(i),this.allowFlatten=o,this.options=e,e.type;const l=function({type:e,...t}){return jT(e)&&IT()?e.applyToOptions(t):(null!==(n=t.duration)&&void 0!==n||(t.duration=300),null!==(r=t.ease)&&void 0!==r||(t.ease="easeOut"),t);var n,r}(e);this.animation=RT(t,n,r,l,i),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const e=eT(r,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(e),AT(t,n,e),this.animation.cancel()}null==s||s(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,t;null===(e=(t=this.animation).finish)||void 0===e||e.call(t)}cancel(){try{this.animation.cancel()}catch(RR){}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var e;const t=null===(e=this.options)||void 0===e?void 0:e.element;var n,r;!this.isPseudoElement&&(null==t?void 0:t.isConnected)&&(null===(n=(r=this.animation).commitStyles)||void 0===n||n.call(r))}get duration(){var e,t;const n=(null===(e=this.animation.effect)||void 0===e||null===(t=e.getComputedTiming)||void 0===t?void 0:t.call(e).duration)||0;return yC(Number(n))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+yC(e)}get time(){return yC(Number(this.animation.currentTime)||0)}set time(e){const t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=vC(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){var e;return null!==(e=this.manualStartTime)&&void 0!==e?e:Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:n,observe:r}){var i;return this.allowFlatten&&(null===(i=this.animation.effect)||void 0===i||i.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&LT()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),fC):r(this)}},BT={anticipate:_C,backInOut:TC,circInOut:DC},zT=class extends VT{constructor(e){var t;"string"==typeof(t=e).ease&&t.ease in BT&&(t.ease=BT[t.ease]),nT(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:t,onUpdate:n,onComplete:r,element:i,...o}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);const a=new oT({...o,autoplay:!1}),s=Math.max(10,qC.now()-this.startTime),l=aC(0,10,s-10),u=a.sample(s).value,{name:c}=this.options;i&&c&&AT(i,c,u),t.setWithVelocity(a.sample(Math.max(0,s-l)).value,u,l),a.stop()}},$T=(e,t)=>!("zIndex"===t||"number"!=typeof e&&!Array.isArray(e)&&("string"!=typeof e||!TS.test(e)&&"0"!==e||e.startsWith("url(")));function UT(e){e.duration=0,e.type="keyframes"}var HT=new Set(["opacity","clipPath","filter","transform"]),WT=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,qT=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),GT=dC(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),KT=class extends rT{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o="loop",keyframes:a,name:s,motionValue:l,element:u,...c}){var d;super(),this.stop=()=>{var e,t;this._animation&&(this._animation.stop(),null===(t=this.stopTimeline)||void 0===t||t.call(this)),null===(e=this.keyframeResolver)||void 0===e||e.cancel()},this.createdAt=qC.now();const f={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:o,name:s,motionValue:l,element:u,...c};this.keyframeResolver=new((null==u?void 0:u.KeyframeResolver)||NT)(a,(e,t,n)=>this.onKeyframesResolved(e,t,f,!n),s,l,u),null===(d=this.keyframeResolver)||void 0===d||d.scheduleResolve()}onKeyframesResolved(e,t,n,r){var i;this.keyframeResolver=void 0;const{name:o,type:a,velocity:s,delay:l,isHandoff:u,onUpdate:c}=n;this.resolvedAt=qC.now();let d=!0;(function(e,t,n,r){const i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;const o=e[e.length-1],a=$T(i,t),s=$T(o,t);return!(!a||!s)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||jT(n))&&r)})(e,o,a,s)||(d=!1,!sC.instantAnimations&&l||null==c||c(eT(e,n,t)),e[0]=e[e.length-1],UT(n),n.repeat=0);const f={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},p=d&&!u&&function(e){var t;const{motionValue:n,name:r,repeatDelay:i,repeatType:o,damping:a,type:s,keyframes:l}=e;if(!((null==n||null===(t=n.owner)||void 0===t?void 0:t.current)instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:c}=n.owner.getProps();return GT()&&r&&(HT.has(r)||qT.has(r)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&WT.test(e[t]))return!0;return!1}(l))&&("transform"!==r||!c)&&!u&&!i&&"mirror"!==o&&0!==a&&"inertia"!==s}(f),h=null===(i=f.motionValue)||void 0===i||null===(i=i.owner)||void 0===i?void 0:i.current;let m;if(p)try{m=new zT({...f,element:h})}catch(g){m=new oT(f)}else m=new oT(f);m.finished.then(()=>{this.notifyFinished()}).catch(fC),this.pendingTimeline&&(this.stopTimeline=m.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=m}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||(null===(e=this.keyframeResolver)||void 0===e||e.resume(),ST=!0,_T(),TT(),ST=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),null===(e=this.keyframeResolver)||void 0===e||e.cancel()}};function YT(e,t,n,r=0,i=1){const o=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),a=e.size,s=(a-1)*r;return"function"==typeof n?n(o,a):1===i?o*r:s-o*r}var QT=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function XT(e,t,n=1){const[r,i]=function(e){const t=QT.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${null!=n?n:r}`,i]}(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const e=o.trim();return lC(e)?parseFloat(e):e}return XC(i)?XT(i,t,n+1):i}var ZT={type:"spring",stiffness:500,damping:25,restSpeed:10},JT={type:"keyframes",duration:.8},e_={type:"keyframes",ease:[.25,.1,.35,1],duration:.3};function t_(e,t){if((null==e?void 0:e.inherit)&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function n_(e,t){var n,r;const i=null!==(n=null!==(r=null==e?void 0:e[t])&&void 0!==r?r:null==e?void 0:e.default)&&void 0!==n?n:e;return i!==e?t_(i,e):i}var r_=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),i_=(e,t,n,r={},i,o)=>a=>{const s=n_(r,e)||{},l=s.delay||r.delay||0;let{elapsed:u=0}=r;u-=vC(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-u,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:o?void 0:i};(function(e){for(const t in e)if(!r_.has(t))return!0;return!1})(s)||Object.assign(c,((e,{keyframes:t})=>t.length>2?JT:vT.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:ZT:e_)(e,c)),c.duration&&(c.duration=vC(c.duration)),c.repeatDelay&&(c.repeatDelay=vC(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if((!1===c.type||0===c.duration&&!c.repeatDelay)&&(UT(c),0===c.delay&&(d=!0)),(sC.instantAnimations||sC.skipAnimations||(null==i?void 0:i.shouldSkipAnimations))&&(d=!0,UT(c),c.delay=0),c.allowFlatten=!s.type&&!s.ease,d&&!o&&void 0!==t.get()){const e=eT(c.keyframes,s);if(void 0!==e)return void zC.update(()=>{c.onUpdate(e),c.onComplete()})}return s.isSync?new oT(c):new KT(c)};function o_(e){const t=[{},{}];return null==e||e.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function a_(e,t,n,r){if("function"==typeof t){const[i,o]=o_(r);t=t(void 0!==n?n:e.custom,i,o)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[i,o]=o_(r);t=t(void 0!==n?n:e.custom,i,o)}return t}function s_(e,t,n){const r=e.getProps();return a_(r,t,void 0!==n?n:r.custom,e)}var l_=new Set(["width","height","top","left","right","bottom",...gT]),u_={current:void 0},c_=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{const t=qC.now();var n;if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(null===(n=this.events.change)||void 0===n||n.notify(this.current),this.dependents))for(const r of this.dependents)r.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){var t;this.current=e,this.updatedAt=qC.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new gC);const n=this.events[e].add(t);return"change"===e?()=>{n(),zC.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;null===(e=this.events.change)||void 0===e||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return u_.current&&u_.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=qC.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return bC(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),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 e,t;null===(e=this.dependents)||void 0===e||e.clear(),null===(t=this.events.destroy)||void 0===t||t.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function d_(e,t){return new c_(e,t)}var f_=e=>Array.isArray(e);function p_(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,d_(n))}function h_(e){return f_(e)?e[e.length-1]||0:e}var m_=e=>Boolean(e&&e.getVelocity);function g_(e,t){const n=e.getValue("willChange");if(r=n,Boolean(m_(r)&&r.add))return n.add(t);if(!n&&sC.WillChange){const n=new sC.WillChange("auto");e.addValue("willChange",n),n.add(t)}var r}function v_(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var y_="data-"+v_("framerAppearId");function b_(e){return e.props[y_]}function w_({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function x_(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o,transitionEnd:a,...s}=t;const l=e.getDefaultTransition();o=o?t_(o,l):l;const u=null==o?void 0:o.reduceMotion;r&&(o=r);const c=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const p in s){var f;const t=e.getValue(p,null!==(f=e.latestValues[p])&&void 0!==f?f:null),r=s[p];if(void 0===r||d&&w_(d,p))continue;const i={delay:n,...n_(o||{},p)},a=t.get();if(void 0!==a&&!t.isAnimating()&&!Array.isArray(r)&&r===a&&!i.velocity){zC.update(()=>t.set(r));continue}let l=!1;if(window.MotionHandoffAnimation){const t=b_(e);if(t){const e=window.MotionHandoffAnimation(t,p,zC);null!==e&&(i.startTime=e,l=!0)}}g_(e,p);const h=null!=u?u:e.shouldReduceMotion;t.start(i_(p,t,r,h&&l_.has(p)?{type:!1}:i,e,l));const m=t.animation;m&&c.push(m)}if(a){const t=()=>zC.update(()=>{a&&function(e,t){let{transitionEnd:n={},transition:r={},...i}=s_(e,t)||{};i={...i,...n};for(const o in i)p_(e,o,h_(i[o]))}(e,a)});c.length?Promise.all(c).then(t):t()}return c}function E_(e,t,n={}){var r;const i=s_(e,t,"exit"===n.type?null===(r=e.presenceContext)||void 0===r?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(x_(e,i,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:i=0,staggerChildren:a,staggerDirection:s}=o;return function(e,t,n=0,r=0,i=0,o=1,a){const s=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),s.push(E_(l,t,{...a,delay:n+("function"==typeof r?0:r)+YT(e.variantChildren,l,r,i,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}(e,t,r,i,a,s,n)}:()=>Promise.resolve(),{when:l}=o;if(l){const[e,t]="beforeChildren"===l?[a,s]:[s,a];return e().then(()=>t())}return Promise.all([a(),s(n.delay)])}var k_=e=>t=>t.test(e),C_=[eS,hS,pS,fS,gS,mS,{test:e=>"auto"===e,parse:e=>e}],S_=e=>C_.find(k_(e));function T_(e){return"number"==typeof e?0===e:null===e||"none"===e||"0"===e||cC(e)}var __=new Set(["brightness","contrast","saturate","opacity"]);function N_(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(iS)||[];if(!r)return e;const i=n.replace(r,"");let o=__.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}var A_=/\b([a-z-]*)\(.*?\)/gu,D_={...TS,getAnimatableNone:e=>{const t=e.match(A_);return t?t.map(N_).join(" "):e}},O_={...TS,getAnimatableNone:e=>{const t=TS.parse(e);return TS.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}},L_={...eS,transform:Math.round},I_={borderWidth:hS,borderTopWidth:hS,borderRightWidth:hS,borderBottomWidth:hS,borderLeftWidth:hS,borderRadius:hS,borderTopLeftRadius:hS,borderTopRightRadius:hS,borderBottomRightRadius:hS,borderBottomLeftRadius:hS,width:hS,maxWidth:hS,height:hS,maxHeight:hS,top:hS,right:hS,bottom:hS,left:hS,inset:hS,insetBlock:hS,insetBlockStart:hS,insetBlockEnd:hS,insetInline:hS,insetInlineStart:hS,insetInlineEnd:hS,padding:hS,paddingTop:hS,paddingRight:hS,paddingBottom:hS,paddingLeft:hS,paddingBlock:hS,paddingBlockStart:hS,paddingBlockEnd:hS,paddingInline:hS,paddingInlineStart:hS,paddingInlineEnd:hS,margin:hS,marginTop:hS,marginRight:hS,marginBottom:hS,marginLeft:hS,marginBlock:hS,marginBlockStart:hS,marginBlockEnd:hS,marginInline:hS,marginInlineStart:hS,marginInlineEnd:hS,fontSize:hS,backgroundPositionX:hS,backgroundPositionY:hS,rotate:fS,rotateX:fS,rotateY:fS,rotateZ:fS,scale:nS,scaleX:nS,scaleY:nS,scaleZ:nS,skew:fS,skewX:fS,skewY:fS,distance:hS,translateX:hS,translateY:hS,translateZ:hS,x:hS,y:hS,z:hS,perspective:hS,transformPerspective:hS,opacity:tS,originX:vS,originY:vS,originZ:hS,zIndex:L_,fillOpacity:tS,strokeOpacity:tS,numOctaves:L_},M_={...I_,color:bS,backgroundColor:bS,outlineColor:bS,fill:bS,stroke:bS,borderColor:bS,borderTopColor:bS,borderRightColor:bS,borderBottomColor:bS,borderLeftColor:bS,filter:D_,WebkitFilter:D_,mask:O_,WebkitMask:O_},F_=e=>M_[e],P_=new Set([D_,O_]);function R_(e,t){let n=F_(e);return P_.has(n)||(n=TS),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var j_=new Set(["auto","none","0"]),V_=class extends NT{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let s=0;s<e.length;s++){let n=e[s];if("string"==typeof n&&(n=n.trim(),XC(n))){const r=XT(n,t.current);void 0!==r&&(e[s]=r),s===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!l_.has(n)||2!==e.length)return;const[r,i]=e,o=S_(r),a=S_(i);if(JC(r)!==JC(i)&&xT[n])this.needsMeasurement=!0;else if(o!==a)if(yT(o)&&yT(a))for(let s=0;s<e.length;s++){const t=e[s];"string"==typeof t&&(e[s]=parseFloat(t))}else xT[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let r=0;r<e.length;r++)(null===e[r]||T_(e[r]))&&n.push(r);n.length&&function(e,t,n){let r,i=0;for(;i<e.length&&!r;){const t=e[i];"string"==typeof t&&!j_.has(t)&&CS(t).values.length&&(r=e[i]),i++}if(r&&n)for(const o of t)e[o]=R_(n,r)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=xT[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){var e;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]=xT[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEach(([e,n])=>{t.getValue(e).set(n)}),this.resolveNoneKeyframes()}};function B_(e,t,n){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){var r;let i=document;t&&(i=t.current);const o=null!==(r=null==n?void 0:n[e])&&void 0!==r?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e).filter(e=>null!=e)}var z_=(e,t)=>t&&"number"==typeof e?t.transform(e):e,{schedule:$_,cancel:U_}=VC(queueMicrotask,!1),H_={x:!1,y:!1};function W_(){return H_.x||H_.y}function q_(e,t){const n=B_(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}var G_=(e,t)=>!!t&&(e===t||G_(e,t.parentElement)),K_=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,Y_=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),Q_=new Set(["INPUT","SELECT","TEXTAREA"]),X_=new WeakSet;function Z_(e){return t=>{"Enter"===t.key&&e(t)}}function J_(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function eN(e){return K_(e)&&!W_()}var tN=new WeakSet;function nN(e){return uC(e)&&"ownerSVGElement"in e}var rN,iN=new WeakMap,oN=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+"Size"]:nN(r)&&"getBBox"in r?r.getBBox()[t]:r[n],aN=oN("inline","width","offsetWidth"),sN=oN("block","height","offsetHeight");function lN({target:e,borderBoxSize:t}){var n;null===(n=iN.get(e))||void 0===n||n.forEach(n=>{n(e,{get width(){return aN(e,t)},get height(){return sN(e,t)}})})}function uN(e){e.forEach(lN)}var cN,dN=new Set;function fN(e,t){return"function"==typeof e?(n=e,dN.add(n),cN||(cN=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};dN.forEach(t=>t(e))},window.addEventListener("resize",cN)),()=>{dN.delete(n),dN.size||"function"!=typeof cN||(window.removeEventListener("resize",cN),cN=void 0)}):function(e,t){rN||"undefined"!=typeof ResizeObserver&&(rN=new ResizeObserver(uN));const n=B_(e);return n.forEach(e=>{let n=iN.get(e);n||(n=new Set,iN.set(e,n)),n.add(t),null==rN||rN.observe(e)}),()=>{n.forEach(e=>{const n=iN.get(e);null==n||n.delete(t),(null==n?void 0:n.size)||null==rN||rN.unobserve(e)})}}(e,t);var n}var pN=[...C_,bS,TS],hN=()=>({x:{min:0,max:0},y:{min:0,max:0}}),mN=new WeakMap;function gN(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function vN(e){return"string"==typeof e||Array.isArray(e)}var yN=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],bN=["initial",...yN];function wN(e){return gN(e.animate)||bN.some(t=>vN(e[t]))}function xN(e){return Boolean(wN(e)||e.variants)}var EN={current:null},kN={current:!1},CN="undefined"!=typeof window,SN=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],TN={};function _N(e){TN=e}var NN=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:o,visualState:a},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=NT,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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 e=qC.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,zC.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=u,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=Boolean(o),this.isControllingVariants=wN(t),this.isVariantNode=xN(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(const f in d){const e=d[f];void 0!==l[f]&&m_(e)&&e.set(l[f])}}mount(e){var t,n;if(this.hasBeenMounted)for(const i in this.initialValues){var r;null===(r=this.values.get(i))||void 0===r||r.jump(this.initialValues[i]),this.latestValues[i]=this.initialValues[i]}this.current=e,mN.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(kN.current||function(){if(kN.current=!0,CN)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>EN.current=e.matches;e.addEventListener("change",t),t()}else EN.current=!1}(),this.shouldReduceMotion=EN.current),this.shouldSkipAnimations=null!==(t=this.skipAnimationsConfig)&&void 0!==t&&t,null===(n=this.parent)||void 0===n||n.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var e;this.projection&&this.projection.unmount(),$C(this.notifyUpdate),$C(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),null===(e=this.parent)||void 0===e||e.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(e){var t;this.children.add(e),null!==(t=this.enteringChildren)&&void 0!==t||(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&HT.has(e)&&this.current instanceof HTMLElement){const{factory:n,keyframes:r,times:i,ease:o,duration:a}=t.accelerate,s=new VT({element:this.current,name:e,keyframes:r,times:i,ease:o,duration:vC(a)}),l=n(s);return void this.valueSubscriptions.set(e,()=>{l(),s.cancel()})}const n=vT.has(e);n&&this.onBindTransform&&this.onBindTransform();const r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&zC.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;"undefined"!=typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in TN){const t=TN[e];if(!t)continue;const{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let n=0;n<SN.length;n++){const t=SN[n];this.propEventSubscriptions[t]&&(this.propEventSubscriptions[t](),delete this.propEventSubscriptions[t]);const r=e["on"+t];r&&(this.propEventSubscriptions[t]=this.on(t,r))}this.prevMotionValues=function(e,t,n){for(const r in t){const i=t[r],o=n[r];if(m_(i))e.addValue(r,i);else if(m_(o))e.addValue(r,d_(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const t=e.getValue(r);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{const t=e.getStaticValue(r);e.addValue(r,d_(void 0!==t?t:i,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]: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(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=d_(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let r=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=r&&("string"==typeof r&&(lC(r)||cC(r))?r=parseFloat(r):!(e=>pN.find(k_(e)))(r)&&TS.test(t)&&(r=R_(e,t)),this.setBaseTarget(e,m_(r)?r.get():r)),m_(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){const{initial:t}=this.props;let n;if("string"==typeof t||"object"==typeof t){var r;const i=a_(this.props,t,null===(r=this.presenceContext)||void 0===r?void 0:r.custom);i&&(n=i[e])}if(t&&void 0!==n)return n;const i=this.getBaseTargetFromProps(this.props,e);return void 0===i||m_(i)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new gC),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){$_.render(this.render)}},AN=class extends NN{constructor(){super(...arguments),this.KeyframeResolver=V_}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){const n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;m_(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}},DN=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function ON({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function LN(e){return void 0===e||1===e}function IN({scale:e,scaleX:t,scaleY:n}){return!LN(e)||!LN(t)||!LN(n)}function MN(e){return IN(e)||FN(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function FN(e){return PN(e.x)||PN(e.y)}function PN(e){return e&&"0%"!==e}function RN(e,t,n){return n+t*(e-n)}function jN(e,t,n,r,i){return void 0!==i&&(e=RN(e,i,r)),RN(e,n,r)+t}function VN(e,t=0,n=1,r,i){e.min=jN(e.min,t,n,r,i),e.max=jN(e.max,t,n,r,i)}function BN(e,{x:t,y:n}){VN(e.x,t.translate,t.scale,t.originPoint),VN(e.y,n.translate,n.scale,n.originPoint)}var zN=.999999999999,$N=1.0000000000001;function UN(e,t){e.min+=t,e.max+=t}function HN(e,t,n,r,i=.5){VN(e,t,n,AS(e.min,e.max,i),r)}function WN(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function qN(e,t,n){const r=null!=n?n:e;HN(e.x,WN(t.x,r.x),t.scaleX,t.scale,t.originX),HN(e.y,WN(t.y,r.y),t.scaleY,t.scale,t.originY)}function GN(e,t){return ON(function(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}}(e.getBoundingClientRect(),t))}var KN={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},YN=gT.length;function QN(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,s=!1;for(const l in t){const e=t[l];if(vT.has(l))a=!0;else if(YC(l))i[l]=e;else{const t=z_(e,I_[l]);l.startsWith("origin")?(s=!0,o[l]=t):r[l]=t}}if(t.transform||(a||n?r.transform=function(e,t,n){let r="",i=!0;for(let o=0;o<YN;o++){const a=gT[o],s=e[a];if(void 0===s)continue;let l=!0;if("number"==typeof s)l=s===(a.startsWith("scale")?1:0);else{const e=parseFloat(s);l=a.startsWith("scale")?1===e:0===e}if(!l||n){const e=z_(s,I_[a]);l||(i=!1,r+=`${KN[a]||a}(${e}) `),n&&(t[a]=e)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),s){const{originX:e="50%",originY:t="50%",originZ:n=0}=o;r.transformOrigin=`${e} ${t} ${n}`}}function XN(e,{style:t,vars:n},r,i){const o=e.style;let a;for(a in t)o[a]=t[a];for(a in null==i||i.applyProjectionStyles(o,r),n)o.setProperty(a,n[a])}function ZN(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var JN={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!hS.test(e))return e;e=parseFloat(e)}return`${ZN(e,t.target.x)}% ${ZN(e,t.target.y)}%`}},eA={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=TS.parse(e);if(i.length>5)return r;const o=TS.createTransformer(e),a="number"!=typeof i[0]?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;i[0+a]/=s,i[1+a]/=l;const u=AS(s,l,.5);return"number"==typeof i[2+a]&&(i[2+a]/=u),"number"==typeof i[3+a]&&(i[3+a]/=u),o(i)}},tA={borderRadius:{...JN,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:JN,borderTopRightRadius:JN,borderBottomLeftRadius:JN,borderBottomRightRadius:JN,boxShadow:eA};function nA(e,{layout:t,layoutId:n}){return vT.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!tA[e]||"opacity"===e)}function rA(e,t,n){const r=e.style,i=null==t?void 0:t.style,o={};if(!r)return o;for(const s in r){var a;(m_(r[s])||i&&m_(i[s])||nA(s,e)||void 0!==(null==n||null===(a=n.getValue(s))||void 0===a?void 0:a.liveStyle))&&(o[s]=r[s])}return o}var iA=class extends AN{constructor(){super(...arguments),this.type="html",this.renderInstance=XN}readValueFromInstance(e,t){var n,r;if(vT.has(t))return(null===(n=this.projection)||void 0===n?void 0:n.isProjecting)?pT(t):((e,t)=>{const{transform:n="none"}=getComputedStyle(e);return hT(n,t)})(e,t);{const n=(r=e,window.getComputedStyle(r)),i=(YC(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof i?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:t}){return GN(e,t)}build(e,t,n){QN(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return rA(e,t,n)}},oA={offset:"stroke-dashoffset",array:"stroke-dasharray"},aA={offset:"strokeDashoffset",array:"strokeDasharray"},sA=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function lA(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:a=0,...s},l,u,c){if(QN(e,s,u),l)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:d,style:f}=e;var p,h;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=null!==(p=d.transformOrigin)&&void 0!==p?p:"50% 50%",delete d.transformOrigin),f.transform&&(f.transformBox=null!==(h=null==c?void 0:c.transformBox)&&void 0!==h?h:"fill-box",delete d.transformBox);for(const m of sA)void 0!==d[m]&&(f[m]=d[m],delete d[m]);void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==r&&(d.scale=r),void 0!==i&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?oA:aA;e[o.offset]=""+-r,e[o.array]=`${t} ${n}`}(d,i,o,a,!1)}var uA=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"]),cA=e=>"string"==typeof e&&"svg"===e.toLowerCase();function dA(e,t,n){const r=rA(e,t,n);for(const i in e)(m_(e[i])||m_(t[i]))&&(r[-1!==gT.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=e[i]);return r}var fA=class extends AN{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=hN}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(vT.has(t)){const e=F_(t);return e&&e.default||0}return t=uA.has(t)?t:v_(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return dA(e,t,n)}build(e,t,n){lA(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){!function(e,t,n,r){XN(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(uA.has(i)?i:v_(i),t.attrs[i])}(e,t,0,r)}mount(e){this.isSVGTag=cA(e.tagName),super.mount(e)}},pA=bN.length;function hA(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&hA(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let n=0;n<pA;n++){const r=bN[n],i=e.props[r];(vN(i)||!1===i)&&(t[r]=i)}return t}function mA(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}var gA=[...yN].reverse(),vA=yN.length;function yA(e){let t=function(e){return t=>Promise.all(t.map(({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const i=t.map(t=>E_(e,t,n));r=Promise.all(i)}else if("string"==typeof t)r=E_(e,t,n);else{const i="function"==typeof t?s_(e,t,n.custom):t;r=Promise.all(x_(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}(e,t,n)))}(e),n=xA(),r=!0,i=!1;const o=t=>(n,r)=>{var i;const o=s_(e,r,"exit"===t?null===(i=e.presenceContext)||void 0===i?void 0:i.custom:void 0);if(o){const{transition:e,transitionEnd:t,...r}=o;n={...n,...r,...t}}return n};function a(a){const{props:s}=e,l=hA(e.parent)||{},u=[],c=new Set;let d={},f=1/0;for(let t=0;t<vA;t++){const p=gA[t],h=n[p],m=void 0!==s[p]?s[p]:l[p],g=vN(m),v=p===a?h.isActive:null;!1===v&&(f=t);let y=m===l[p]&&m!==s[p]&&g;if(y&&(r||i)&&e.manuallyAnimateOnMount&&(y=!1),h.protectedKeys={...d},!h.isActive&&null===v||!m&&!h.prevProp||gN(m)||"boolean"==typeof m)continue;if("exit"===p&&h.isActive&&!0!==v){h.prevResolvedValues&&(d={...d,...h.prevResolvedValues});continue}const b=bA(h.prevProp,m);let w=b||p===a&&h.isActive&&!y&&g||t>f&&g,x=!1;const E=Array.isArray(m)?m:[m];let k=E.reduce(o(p),{});!1===v&&(k={});const{prevResolvedValues:C={}}=h,S={...C,...k},T=t=>{w=!0,c.has(t)&&(x=!0,c.delete(t)),h.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in S){const t=k[e],n=C[e];if(d.hasOwnProperty(e))continue;let r=!1;r=f_(t)&&f_(n)?!mA(t,n):t!==n,r?null!=t?T(e):c.add(e):void 0!==t&&c.has(e)?T(e):h.protectedKeys[e]=!0}h.prevProp=m,h.prevResolvedValues=k,h.isActive&&(d={...d,...k}),(r||i)&&e.blockInitialAnimation&&(w=!1);const _=y&&b;!w||_&&!x||u.push(...E.map(t=>{const n={type:p};if("string"==typeof t&&(r||i)&&!_&&e.manuallyAnimateOnMount&&e.parent){const{parent:r}=e,i=s_(r,t);if(r.enteringChildren&&i){const{delayChildren:t}=i.transition||{};n.delay=YT(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(c.size){const t={};if("boolean"!=typeof s.initial){const n=s_(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}c.forEach(n=>{const r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=null!=r?r:null}),u.push({animation:t})}let p=Boolean(u.length);return!r||!1!==s.initial&&s.initial!==s.animate||e.manuallyAnimateOnMount||(p=!1),r=!1,i=!1,p?t(u):Promise.resolve()}return{animateChanges:a,setActive:function(t,r){var i;if(n[t].isActive===r)return Promise.resolve();null===(i=e.variantChildren)||void 0===i||i.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;const o=a(t);for(const e in n)n[e].protectedKeys={};return o},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=xA(),i=!0}}}function bA(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!mA(t,e)}function wA(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function xA(){return{animate:wA(!0),whileInView:wA(),whileHover:wA(),whileTap:wA(),whileDrag:wA(),whileFocus:wA(),exit:wA()}}function EA(e,t){e.min=t.min,e.max=t.max}function kA(e,t){EA(e.x,t.x),EA(e.y,t.y)}function CA(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function SA(e){return e.max-e.min}function TA(e,t,n,r=.5){e.origin=r,e.originPoint=AS(t.min,t.max,e.origin),e.scale=SA(n)/SA(t),e.translate=AS(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function _A(e,t,n,r){TA(e.x,t.x,n.x,r?r.originX:void 0),TA(e.y,t.y,n.y,r?r.originY:void 0)}function NA(e,t,n,r=0){e.min=(r?AS(n.min,n.max,r):n.min)+t.min,e.max=e.min+SA(t)}function AA(e,t,n,r=0){const i=r?AS(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+SA(t)}function DA(e,t,n,r){AA(e.x,t.x,n.x,null==r?void 0:r.x),AA(e.y,t.y,n.y,null==r?void 0:r.y)}function OA(e,t,n,r,i){return e=RN(e-=t,1/n,r),void 0!==i&&(e=RN(e,1/i,r)),e}function LA(e,t,[n,r,i],o,a){!function(e,t=0,n=1,r=.5,i,o=e,a=e){if(pS.test(t)&&(t=parseFloat(t),t=AS(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let s=AS(o.min,o.max,r);e===o&&(s-=t),e.min=OA(e.min,t,n,s,i),e.max=OA(e.max,t,n,s,i)}(e,t[n],t[r],t[i],t.scale,o,a)}var IA=["x","scaleX","originX"],MA=["y","scaleY","originY"];function FA(e,t,n,r){LA(e.x,t,IA,n?n.x:void 0,r?r.x:void 0),LA(e.y,t,MA,n?n.y:void 0,r?r.y:void 0)}function PA(e){return 0===e.translate&&1===e.scale}function RA(e){return PA(e.x)&&PA(e.y)}function jA(e,t){return e.min===t.min&&e.max===t.max}function VA(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function BA(e,t){return VA(e.x,t.x)&&VA(e.y,t.y)}function zA(e){return SA(e.x)/SA(e.y)}function $A(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function UA(e){return[e("x"),e("y")]}var HA=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],WA=HA.length,qA=e=>"string"==typeof e?parseFloat(e):e,GA=e=>"number"==typeof e||hS.test(e);function KA(e,t){return void 0!==e[t]?e[t]:e.borderRadius}var YA=XA(0,.5,AC),QA=XA(.5,.95,fC);function XA(e,t,n){return r=>r<e?0:r>t?1:n(mC(e,t,r))}function ZA(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var JA=(e,t)=>e.depth-t.depth,eD=class{constructor(){this.children=[],this.isDirty=!1}add(e){iC(this.children,e),this.isDirty=!0}remove(e){oC(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(JA),this.isDirty=!1,this.children.forEach(e)}};function tD(e){return m_(e)?e.get():e}var nD=class{constructor(){this.members=[]}add(e){iC(this.members,e);for(let t=this.members.length-1;t>=0;t--){const n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;const r=n.instance;r&&!1!==r.isConnected||n.snapshot||(oC(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(oC(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let n=this.members.indexOf(e)-1;n>=0;n--){var t;const e=this.members[n];if(!1!==e.isPresent&&!1!==(null===(t=e.instance)||void 0===t?void 0:t.isConnected))return this.promote(e),!0}return!1}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();const{layoutDependency:i}=n.options,{layoutDependency:o}=e.options;var r;void 0!==i&&i===o||(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),(null===(r=e.root)||void 0===r?void 0:r.isUpdating)&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{var t,n,r,i,o;null===(t=(n=e.options).onExitComplete)||void 0===t||t.call(n),null===(r=e.resumingFrom)||void 0===r||null===(o=(i=r.options).onExitComplete)||void 0===o||o.call(i)})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){var e;(null===(e=this.lead)||void 0===e?void 0:e.snapshot)&&(this.lead.snapshot=void 0)}},rD={hasAnimatedSinceResize:!0,hasEverUpdated:!1},iD={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},oD=["","X","Y","Z"],aD=0;function sD(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function lD(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=b_(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",zC,!(t||r))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&lD(r)}function uD({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=aD++,this.animationId=0,this.animationCommitId=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.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,jC.value&&(iD.nodes=iD.calculatedTargetDeltas=iD.calculatedProjections=0),this.nodes.forEach(fD),this.nodes.forEach(xD),this.nodes.forEach(ED),this.nodes.forEach(pD),jC.addProjectionMetrics&&jC.addProjectionMetrics(iD)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new eD)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new gC),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;var n;this.isSVG=nN(t)&&!(nN(n=t)&&"svg"===n.tagName),this.instance=t;const{layoutId:r,layout:i,visualElement:o}=this.options;if(o&&!o.current&&o.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(i||r)&&(this.isLayoutDirty=!0),e){let n,r=0;const i=()=>this.root.updateBlockedByResize=!1;zC.read(()=>{r=window.innerWidth}),e(t,()=>{const e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=function(e){const t=qC.now(),n=({timestamp:r})=>{const i=r-t;i>=250&&($C(n),e(i-250))};return zC.setup(n,!0),()=>$C(n)}(i),rD.hasAnimatedSinceResize&&(rD.hasAnimatedSinceResize=!1,this.nodes.forEach(wD)))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&o&&(r||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const i=this.options.transition||o.getDefaultTransition()||ND,{onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=o.getProps(),l=!this.targetLayout||!BA(this.targetLayout,r),u=!t&&n;if(this.options.layoutRoot||this.resumeFrom||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const t={...n_(i,"layout"),onPlay:a,onComplete:s};(o.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,u)}else t||wD(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),$C(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(kD),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&lD(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let i=0;i<this.path.length;i++){const e=this.path[i];e.shouldResetTransform=!0,"string"!=typeof e.latestValues.x&&"string"!=typeof e.latestValues.y||(e.isLayoutDirty=!0),e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const e=this.updateBlockedByResize;return this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(gD),void this.nodes.forEach(mD)}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(vD);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(yD),this.nodes.forEach(bD),this.nodes.forEach(cD),this.nodes.forEach(dD)):this.nodes.forEach(vD),this.clearAllSnapshots();const e=qC.now();UC.delta=aC(0,1e3/60,e-UC.timestamp),UC.timestamp=e,UC.isProcessing=!0,HC.update.process(UC),HC.preRender.process(UC),HC.render.process(UC),UC.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,$_.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(hD),this.sharedNodes.forEach(CD)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,zC.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){zC.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||SA(this.snapshot.measuredBox.x)||SA(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;n<this.path.length;n++)this.path[n].updateScroll();const e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}}),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){const t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!RA(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||MN(this.latestValues)||o)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),OD((r=n).x),OD(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var e;const{visualElement:t}=this.options;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};const n=t.measureViewportBox();if(!(null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)&&!this.path.some(ID)){const{scroll:e}=this.root;e&&(UN(n.x,e.offset.x),UN(n.y,e.offset.y))}return n}removeElementScroll(e){var t;const n={x:{min:0,max:0},y:{min:0,max:0}};if(kA(n,e),null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)return n;for(let r=0;r<this.path.length;r++){const t=this.path[r],{scroll:i,options:o}=t;t!==this.root&&i&&o.layoutScroll&&(i.wasRoot&&kA(n,e),UN(n.x,i.offset.x),UN(n.y,i.offset.y))}return n}applyTransform(e,t=!1,n){const r=n||{x:{min:0,max:0},y:{min:0,max:0}};kA(r,e);for(let a=0;a<this.path.length;a++){var i;const e=this.path[a];!t&&e.options.layoutScroll&&e.scroll&&e!==e.root&&(UN(r.x,-e.scroll.offset.x),UN(r.y,-e.scroll.offset.y)),MN(e.latestValues)&&qN(r,e.latestValues,null===(i=e.layout)||void 0===i?void 0:i.layoutBox)}var o;return MN(this.latestValues)&&qN(r,this.latestValues,null===(o=this.layout)||void 0===o?void 0:o.layoutBox),r}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};kA(t,e);for(let r=0;r<this.path.length;r++){var n;const e=this.path[r];if(!MN(e.latestValues))continue;let i;e.instance&&(IN(e.latestValues)&&e.updateSnapshot(),i=hN(),kA(i,e.measurePageBox())),FA(t,e.latestValues,null===(n=e.snapshot)||void 0===n?void 0:n.layoutBox,i)}return MN(this.latestValues)&&FA(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}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!==UC.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:i,layoutId:o}=this.options;if(!this.layout||!i&&!o)return;this.resolvedRelativeTargetAt=UC.timestamp;const a=this.getClosestProjectingParent();var s,l,u,c;a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),s=this.target,l=this.relativeTarget,u=this.relativeParent.target,c=this.options.layoutAnchor||void 0,NA(s.x,l.x,u.x,null==c?void 0:c.x),NA(s.y,l.y,u.y,null==c?void 0:c.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.applyTransform(this.layout.layoutBox,!1,this.target):kA(this.target,this.layout.layoutBox),BN(this.target,this.targetDelta)):kA(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&a&&Boolean(a.resumingFrom)===Boolean(this.resumingFrom)&&!a.options.layoutScroll&&a.target&&1!==this.animationProgress?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),jC.value&&iD.calculatedTargetDeltas++)}getClosestProjectingParent(){if(this.parent&&!IN(this.parent.latestValues)&&!FN(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},DA(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),kA(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===UC.timestamp&&(r=!1),r)return;const{layout:i,layoutId:o}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!i&&!o)return;kA(this.layoutCorrected,this.layout.layoutBox);const a=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,r=!1){const i=n.length;if(!i)return;let o,a;t.x=t.y=1;for(let l=0;l<i;l++){o=n[l],a=o.projectionDelta;const{visualElement:i}=o.options;var s;i&&i.props.style&&"contents"===i.props.style.display||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&(UN(e.x,-o.scroll.offset.x),UN(e.y,-o.scroll.offset.y)),a&&(t.x*=a.x.scale,t.y*=a.y.scale,BN(e,a)),r&&MN(o.latestValues)&&qN(e,o.latestValues,null===(s=o.layout)||void 0===s?void 0:s.layoutBox))}t.x<$N&&t.x>zN&&(t.x=1),t.y<$N&&t.y>zN&&(t.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:l}=t;l?(this.projectionDelta&&this.prevProjectionDelta?(CA(this.prevProjectionDelta.x,this.projectionDelta.x),CA(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),_A(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===a&&this.treeScale.y===s&&$A(this.projectionDelta.x,this.prevProjectionDelta.x)&&$A(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),jC.value&&iD.calculatedProjections++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},o={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const a={x:{min:0,max:0},y:{min:0,max:0}},s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,c=Boolean(s&&!u&&!0===this.options.crossfade&&!this.path.some(_D));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;SD(o.x,e.x,n),SD(o.y,e.y,n),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(DA(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),function(e,t,n,r){TD(e.x,t.x,n.x,r),TD(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,a,n),d&&function(e,t){return jA(e.x,t.x)&&jA(e.y,t.y)}(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),kA(d,this.relativeTarget)),s&&(this.animationValues=i,function(e,t,n,r,i,o){var a,s;if(i)e.opacity=AS(0,null!==(a=n.opacity)&&void 0!==a?a:1,YA(r)),e.opacityExit=AS(null!==(s=t.opacity)&&void 0!==s?s:1,0,QA(r));else if(o){var l,u;e.opacity=AS(null!==(l=t.opacity)&&void 0!==l?l:1,null!==(u=n.opacity)&&void 0!==u?u:1,r)}for(let c=0;c<WA;c++){const i=HA[c];let o=KA(t,i),a=KA(n,i);void 0===o&&void 0===a||(o||(o=0),a||(a=0),0===o||0===a||GA(o)===GA(a)?(e[i]=Math.max(AS(qA(o),qA(a),r),0),(pS.test(a)||pS.test(o))&&(e[i]+="%")):e[i]=a)}(t.rotate||n.rotate)&&(e.rotate=AS(t.rotate||0,n.rotate||0,r))}(i,r,this.latestValues,n,c,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){var t,n;this.notifyListeners("animationStart"),null===(t=this.currentAnimation)||void 0===t||t.stop(),null===(n=this.resumingFrom)||void 0===n||null===(n=n.currentAnimation)||void 0===n||n.stop(),this.pendingAnimation&&($C(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=zC.update(()=>{rD.hasAnimatedSinceResize=!0,GC.layout++,this.motionValue||(this.motionValue=d_(0)),this.motionValue.jump(0,!1),this.currentAnimation=function(e,t,n){const r=m_(e)?e:d_(e);return r.start(i_("",r,[0,1e3],n)),r.animation}(this.motionValue,0,{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{GC.layout--},onComplete:()=>{GC.layout--,e.onComplete&&e.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 e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&LD(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=SA(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=SA(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}kA(t,n),qN(t,i),_A(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new nD),this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const r={};n.z&&sD("z",e,r,this.animationValues);for(let i=0;i<oD.length;i++)sD(`rotate${oD[i]}`,e,r,this.animationValues),sD(`skew${oD[i]}`,e,r,this.animationValues);e.render();for(const i in r)e.setStaticValue(i,r[i]),this.animationValues&&(this.animationValues[i]=r[i]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible)return void(e.visibility="hidden");const n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=tD(null==t?void 0:t.pointerEvents)||"",void(e.transform=n?n(this.latestValues,""):"none");const r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target)return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=tD(null==t?void 0:t.pointerEvents)||""),void(this.hasProjected&&!MN(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1));e.visibility="";const i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let o=function(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(null==n?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:e,rotate:t,rotateX:i,rotateY:o,skewX:a,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),o&&(r+=`rotateY(${o}deg) `),a&&(r+=`skewX(${a}deg) `),s&&(r+=`skewY(${s}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return 1===s&&1===l||(r+=`scale(${s}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,i);n&&(o=n(i,o)),e.transform=o;const{x:a,y:s}=this.projectionDelta;var l,u;e.transformOrigin=`${100*a.origin}% ${100*s.origin}% 0`,r.animationValues?e.opacity=r===this?null!==(l=null!==(u=i.opacity)&&void 0!==u?u:this.latestValues.opacity)&&void 0!==l?l:1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0;for(const c in tA){if(void 0===i[c])continue;const{correct:t,applyTo:n,isCSSVariable:a}=tA[c],s="none"===o?i[c]:t(i[c],r);if(n){const t=n.length;for(let r=0;r<t;r++)e[n[r]]=s}else a?this.options.visualElement.renderState.vars[c]=s:e[c]=s}this.options.layoutId&&(e.pointerEvents=r===this?tD(null==t?void 0:t.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(mD),this.root.sharedNodes.clear()}}}function cD(e){e.updateLayout()}function dD(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:i}=e.options,o=n.source!==e.layout.source;if("size"===i)UA(e=>{const r=o?n.measuredBox[e]:n.layoutBox[e],i=SA(r);r.min=t[e].min,r.max=r.min+i});else if("x"===i||"y"===i){const e="x"===i?"y":"x";EA(o?n.measuredBox[e]:n.layoutBox[e],t[e])}else LD(i,n.layoutBox,t)&&UA(r=>{const i=o?n.measuredBox[r]:n.layoutBox[r],a=SA(t[r]);i.max=i.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)});const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};_A(a,t,n.layoutBox);const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};o?_A(s,e.applyTransform(r,!0),n.measuredBox):_A(s,t,n.layoutBox);const l=!RA(a);let u=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:i,layout:o}=r;if(i&&o){const a=e.options.layoutAnchor||void 0,s={x:{min:0,max:0},y:{min:0,max:0}};DA(s,n.layoutBox,i.layoutBox,a);const l={x:{min:0,max:0},y:{min:0,max:0}};DA(l,t,o.layoutBox,a),BA(s,l)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function fD(e){jC.value&&iD.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function pD(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function hD(e){e.clearSnapshot()}function mD(e){e.clearMeasurements()}function gD(e){e.isLayoutDirty=!0,e.updateLayout()}function vD(e){e.isLayoutDirty=!1}function yD(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function bD(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function wD(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function xD(e){e.resolveTargetDelta()}function ED(e){e.calcProjection()}function kD(e){e.resetSkewAndRotation()}function CD(e){e.removeLeadSnapshot()}function SD(e,t,n){e.translate=AS(t.translate,0,n),e.scale=AS(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function TD(e,t,n,r){e.min=AS(t.min,n.min,r),e.max=AS(t.max,n.max,r)}function _D(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var ND={duration:.45,ease:[.4,0,.1,1]},AD=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),DD=AD("applewebkit/")&&!AD("chrome/")?Math.round:fC;function OD(e){e.min=DD(e.min),e.max=DD(e.max)}function LD(e,t,n){return"position"===e||"preserve-aspect"===e&&(r=zA(t),i=zA(n),!(Math.abs(r-i)<=.2));var r,i}function ID(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}var MD=uD({attachResizeListener:(e,t)=>ZA(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||(null===(e=document.body)||void 0===e?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||(null===(t=document.body)||void 0===t?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),FD={current:void 0},PD=uD({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!FD.current){const e=new MD({});e.mount(window),e.setOptions({layoutScroll:!0}),FD.current=e}return FD.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),RD=(0,Fu.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),jD=(0,Fu.createContext)({strict:!1}),VD={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"]},BD=!1;function zD(){return function(){if(BD)return;const e={};for(const t in VD)e[t]={isEnabled:e=>VD[t].some(t=>!!e[t])};_N(e),BD=!0}(),TN}var $D=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","propagate","ignoreStrict","viewport"]);function UD(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||$D.has(e)}var HD,WD,qD,GD=l({default:()=>HD}),KD=a(()=>{throw HD={},new Error('Could not resolve "@emotion/is-prop-valid" imported by "framer-motion". Is it installed?')}),YD=e=>!UD(e);try{"function"==typeof(WD=(KD(),qD=GD,o.call(qD,"module.exports")?qD["module.exports"]:u(t({},"__esModule",{value:!0}),qD)).default)&&(YD=e=>e.startsWith("on")?!UD(e):WD(e))}catch(oV){}var QD=(0,Fu.createContext)({});function XD(e){return Array.isArray(e)?e.join(" "):e}function ZD(e,t,n){for(const r in t)m_(t[r])||nA(r,n)||(e[r]=t[r])}function JD(e,t){const n={},r=function(e,t){const n={};return ZD(n,e.style||{},e),Object.assign(n,function({transformTemplate:e},t){return(0,Fu.useMemo)(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{}};return QN(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),n}(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function eO(e,t,n,r){const i=(0,Fu.useMemo)(()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return lA(n,t,cA(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){const t={};ZD(t,e.style,e),i.style={...t,...i.style}}return i}var tO=["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 nO(e){return"string"==typeof e&&!e.includes("-")&&!!(tO.indexOf(e)>-1||/[A-Z]/u.test(e))}function rO(e,t,n,{latestValues:r},i,o=!1,a){const s=((null!=a?a:nO(e))?eO:JD)(t,r,i,e),l=function(e,t,n){const r={};for(const i in e)"values"===i&&"object"==typeof e.values||m_(e[i])||(YD(i)||!0===n&&UD(i)||!t&&!UD(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(t,"string"==typeof e,o),u=e!==Fu.Fragment?{...l,...s,ref:n}:{},{children:c}=t,d=(0,Fu.useMemo)(()=>m_(c)?c.get():c,[c]);return(0,Fu.createElement)(e,{...u,children:d})}function iO(e,t,n,r){const i={},o=r(e,{});for(const f in o)i[f]=tD(o[f]);let{initial:a,animate:s}=e;const l=wN(e),u=xN(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let c=!!n&&!1===n.initial;c=c||!1===a;const d=c?s:a;if(d&&"boolean"!=typeof d&&!gN(d)){const t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){const r=a_(e,t[n]);if(r){const{transitionEnd:e,transition:t,...n}=r;for(const r in n){let e=n[r];Array.isArray(e)&&(e=e[c?e.length-1:0]),null!==e&&(i[r]=e)}for(const r in e)i[r]=e[r]}}}return i}var oO=e=>(t,n)=>{const r=(0,Fu.useContext)(QD),i=(0,Fu.useContext)(rC),o=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:iO(n,r,i,e),renderState:t()}}(e,t,r,i);return n?o():tC(o)},aO=oO({scrapeMotionValuesFromProps:rA,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{}})}),sO=oO({scrapeMotionValuesFromProps:dA,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}})}),lO=Symbol.for("motionComponentSymbol");function uO(e,t,n){const r=(0,Fu.useRef)(n);(0,Fu.useInsertionEffect)(()=>{r.current=n});const i=(0,Fu.useRef)(null);return(0,Fu.useCallback)(n=>{var o;n&&(null===(o=e.onMount)||void 0===o||o.call(e,n));const a=r.current;if("function"==typeof a)if(n){const e=a(n);"function"==typeof e&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n);else a&&(a.current=n);t&&(n?t.mount(n):t.unmount())},[t])}var cO=(0,Fu.createContext)({});function dO(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function fO(e,t,n,r,i,o){var a,s,l,u;const{visualElement:c}=(0,Fu.useContext)(QD),d=(0,Fu.useContext)(jD),f=(0,Fu.useContext)(rC),p=(0,Fu.useContext)(RD),h=p.reducedMotion,m=p.skipAnimations,g=(0,Fu.useRef)(null),v=(0,Fu.useRef)(!1);r=r||d.renderer,!g.current&&r&&(g.current=r(e,{visualState:t,parent:c,props:n,presenceContext:f,blockInitialAnimation:!!f&&!1===f.initial,reducedMotionConfig:h,skipAnimations:m,isSVG:o}),v.current&&g.current&&(g.current.manuallyAnimateOnMount=!0));const y=g.current,b=(0,Fu.useContext)(cO);!y||y.projection||!i||"html"!==y.type&&"svg"!==y.type||function(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:u,layoutAnchor:c,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:pO(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:Boolean(a)||s&&dO(s),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:u,layoutAnchor:c})}(g.current,n,i,b);const w=(0,Fu.useRef)(!1);(0,Fu.useInsertionEffect)(()=>{y&&w.current&&y.update(n,f)});const x=n[y_],E=(0,Fu.useRef)(Boolean(x)&&"undefined"!=typeof window&&!(null===(a=(s=window).MotionHandoffIsComplete)||void 0===a?void 0:a.call(s,x))&&(null===(l=(u=window).MotionHasOptimisedAnimation)||void 0===l?void 0:l.call(u,x)));return nC(()=>{v.current=!0,y&&(w.current=!0,window.MotionIsMounted=!0,y.updateFeatures(),y.scheduleRenderMicrotask(),E.current&&y.animationState&&y.animationState.animateChanges())}),(0,Fu.useEffect)(()=>{y&&(!E.current&&y.animationState&&y.animationState.animateChanges(),E.current&&(queueMicrotask(()=>{var e,t;null===(e=(t=window).MotionHandoffMarkAsComplete)||void 0===e||e.call(t,x)}),E.current=!1),y.enteringChildren=void 0)}),y}function pO(e){if(e)return!1!==e.options.allowProjection?e.projection:pO(e.parent)}function hO(e,{forwardMotionProps:t=!1,type:n}={},r,i){var o,a;r&&function(e){const t=zD();for(const n in e)t[n]={...t[n],...e[n]};_N(t)}(r);const s=n?"svg"===n:nO(e),l=s?sO:aO;function u(n,r){let o;const a={...(0,Fu.useContext)(RD),...n,layoutId:mO(n)},{isStatic:u}=a,c=function(e){const{initial:t,animate:n}=function(e,t){if(wN(e)){const{initial:t,animate:n}=e;return{initial:!1===t||vN(t)?t:void 0,animate:vN(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,Fu.useContext)(QD));return(0,Fu.useMemo)(()=>({initial:t,animate:n}),[XD(t),XD(n)])}(n),d=l(n,u);if(!u&&"undefined"!=typeof window){(0,Fu.useContext)(jD).strict;const t=function(e){const{drag:t,layout:n}=zD();if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(a);o=t.MeasureLayout,c.visualElement=fO(e,d,a,i,t.ProjectionNode,s)}return(0,Gm.jsxs)(QD.Provider,{value:c,children:[o&&c.visualElement?(0,Gm.jsx)(o,{visualElement:c.visualElement,...a}):null,rO(e,n,uO(d,c.visualElement,r),d,u,t,s)]})}u.displayName=`motion.${"string"==typeof e?e:`create(${null!==(o=null!==(a=e.displayName)&&void 0!==a?a:e.name)&&void 0!==o?o:""})`}`;const c=(0,Fu.forwardRef)(u);return c[lO]=e,c}function mO({layoutId:e}){const t=(0,Fu.useContext)(eC).id;return t&&void 0!==e?t+"-"+e:e}function gO(e,t){if("undefined"==typeof Proxy)return hO;const n=new Map,r=(n,r)=>hO(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,o)=>"create"===o?r:(n.has(o)||n.set(o,hO(o,void 0,e,t)),n.get(o))})}var vO=(e,t)=>{var n;return(null!==(n=t.isSVG)&&void 0!==n?n:nO(e))?new fA(t):new iA(t,{allowProjection:e!==Fu.Fragment})},yO=0,bO={animation:{Feature:class extends DN{constructor(e){super(e),e.animationState||(e.animationState=yA(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();gN(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}}},exit:{Feature:class extends DN{constructor(){super(...arguments),this.id=yO++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&!1===n){if(this.isExitComplete){const{initial:e,custom:t}=this.node.getProps();if("string"==typeof e){const n=s_(this.node,e,t);if(n){const{transition:e,transitionEnd:t,...i}=n;for(const n in i){var r;null===(r=this.node.getValue(n))||void 0===r||r.jump(i[n])}}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);return void(this.isExitComplete=!1)}const i=this.node.animationState.setActive("exit",!e);t&&!e&&i.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){const{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function wO(e){return{point:{x:e.pageX,y:e.pageY}}}function xO(e,t,n,r){return ZA(e,t,(e=>t=>K_(t)&&e(t,wO(t)))(n),r)}var EO=({current:e})=>e?e.ownerDocument.defaultView:null,kO=(e,t)=>Math.abs(e-t),CO=new Set(["auto","scroll"]),SO=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:o=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=TO(this.lastRawMoveEventInfo,this.transformPagePoint));const e=NO(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=kO(e.x,t.x),r=kO(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;const{point:r}=e,{timestamp:i}=UC;this.history.push({...r,timestamp:i});const{onStart:o,onMove:a}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=TO(t,this.transformPagePoint),zC.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(!this.dragSnapToOrigin&&this.startEvent||i&&i(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const o=NO("pointercancel"===e.type?this.lastMoveEventInfo:TO(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!K_(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=r||window;const s=TO(wO(e),this.transformPagePoint),{point:l}=s,{timestamp:u}=UC;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=t;c&&c(e,NO(s,this.history)),this.removeListeners=hC(xO(this.contextWindow,"pointermove",this.handlePointerMove),xO(this.contextWindow,"pointerup",this.handlePointerUp),xO(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(e){let t=e.parentElement;for(;t;){const e=getComputedStyle(t);(CO.has(e.overflowX)||CO.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const t=this.scrollPositions.get(e);if(!t)return;const n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i=r.x-t.x,o=r.y-t.y;0===i&&0===o||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i,this.lastMoveEventInfo.point.y+=o):this.history.length>0&&(this.history[0].x-=i,this.history[0].y-=o),this.scrollPositions.set(e,r),zC.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),$C(this.updatePoint)}};function TO(e,t){return t?{point:t(e.point)}:e}function _O(e,t){return{x:e.x-t.x,y:e.y-t.y}}function NO({point:e},t){return{point:e,delta:_O(e,DO(t)),offset:_O(e,AO(t)),velocity:OO(t,.1)}}function AO(e){return e[0]}function DO(e){return e[e.length-1]}function OO(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=DO(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>vC(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>2*vC(t)&&(r=e[1]);const o=yC(i.timestamp-r.timestamp);if(0===o)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 LO(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function IO(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}}var MO=.35;function FO(e,t,n){return{min:PO(e,t),max:PO(e,n)}}function PO(e,t){return"number"==typeof e?e:e[t]||0}var RO=new WeakMap,jO=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){const{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;const{dragSnapToOrigin:i}=this.getProps();this.panSession=new SO(e,{onSessionStart:e=>{t&&this.snapToCursor(wO(e).point),this.stopAnimation()},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(o=n)||"y"===o?H_[o]?null:(H_[o]=!0,()=>{H_[o]=!1}):H_.x||H_.y?null:(H_.x=H_.y=!0,()=>{H_.x=H_.y=!1}),!this.openDragLock))return;var o;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),UA(e=>{let t=this.getAxisMotionValue(e).get()||0;if(pS.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];r&&(t=SA(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&zC.update(()=>i(e,t),!1,!0),g_(this.visualElement,"transform");const{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},onMove:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:a}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(a),void(null!==this.currentDirection&&i&&i(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),o&&zC.update(()=>o(e,t),!1,!0)},onSessionEnd:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>{const{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})}},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:i,distanceThreshold:n,contextWindow:EO(this.visualElement),element:this.visualElement.current})}stop(e,t){const n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;const{velocity:o}=r;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&zC.postRender(()=>a(n,r))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!BO(e,r,this.currentDirection))return;const i=this.getAxisMotionValue(e);let o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?AS(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?AS(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,i=this.constraints;t&&dO(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!r)&&function(e,{top:t,left:n,bottom:r,right:i}){return{x:LO(e.x,n,i),y:LO(e.y,t,r)}}(r.layoutBox,t),this.elastic=function(e=MO){return!1===e?e=0:!0===e&&(e=MO),{x:FO(e,"left","right"),y:FO(e,"top","bottom")}}(n),i!==this.constraints&&!dO(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&UA(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(r.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!dO(e))return!1;const n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const i=function(e,t,n){const r=GN(e,n),{scroll:i}=t;return i&&(UN(r.x,i.offset.x),UN(r.y,i.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let o=function(e,t){return{x:IO(e.x,t.x),y:IO(e.y,t.y)}}(r.layout.layoutBox,i);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(o));this.hasMutatedConstraints=!!e,e&&(o=ON(e))}return o}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=UA(a=>{if(!BO(a,t,this.currentDirection))return;let l=s&&s[a]||{};!0!==o&&o!==a||(l={min:0,max:0});const u=r?200:1e6,c=r?40:1e7,d={type:"inertia",velocity:n?e[a]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(a,d)});return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return g_(this.visualElement,e),n.start(i_(e,n,0,t,this.visualElement,!1))}stopAnimation(){UA(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){UA(t=>{const{drag:n}=this.getProps();if(!BO(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:o}=r.layout.layoutBox[t],a=i.get()||0;i.set(e[t]-AS(n,o,.5)+a)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!dO(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};UA(e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();r[e]=function(e,t){let n=.5;const r=SA(e),i=SA(t);return i>r?n=mC(t.min,t.max-r,e.min):r>i&&(n=mC(e.min,e.max-i,t.min)),aC(0,1,n)}({min:n,max:n},this.constraints[e])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),UA(t=>{if(!BO(t,e,null))return;const n=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];n.set(AS(i,o,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;RO.set(this.visualElement,this);const e=this.visualElement.current,t=xO(e,"pointerdown",t=>{const{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,o=i!==e&&function(e){return Q_.has(e.tagName)||!0===e.isContentEditable}(i);n&&r&&!o&&this.start(t)});let n;const r=()=>{const{dragConstraints:t}=this.getProps();dO(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||(n=function(e,t,n){const r=fN(e,VO(n)),i=fN(t,VO(n));return()=>{r(),i()}}(e,t.current,()=>this.scalePositionWithinConstraints())))},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),zC.read(r);const a=ZA(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(UA(t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{a(),t(),o(),s&&s(),n&&n()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=MO,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:a}}};function VO(e){let t=!0;return()=>{t?t=!1:e()}}function BO(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var zO=e=>(t,n)=>{e&&zC.update(()=>e(t,n),!1,!0)},$O=!1,UO=class extends Fu.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),$O&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),rD.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:o}=n;return o?(o.isPresent=i,e.layoutDependency!==t&&o.setOptions({...o.options,layoutDependency:t}),$O=!0,r||e.layoutDependency!==t||void 0===t||e.isPresent!==i?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||zC.postRender(()=>{const e=o.getStack();e&&e.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),$_.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;$O=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}};function HO(e){const[t,n]=function(e=!0){const t=(0,Fu.useContext)(rC);if(null===t)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=(0,Fu.useId)();(0,Fu.useEffect)(()=>{if(e)return i(o)},[e]);const a=(0,Fu.useCallback)(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}(),r=(0,Fu.useContext)(eC);return(0,Gm.jsx)(UO,{...e,layoutGroup:r,switchLayoutGroup:(0,Fu.useContext)(cO),isPresent:t,safeToRemove:n})}var WO={pan:{Feature:class extends DN{constructor(){super(...arguments),this.removePointerDownListener=fC}onPointerDown(e){this.session=new SO(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:EO(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:zO(e),onStart:zO(t),onMove:zO(n),onEnd:(e,t)=>{delete this.session,r&&zC.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=xO(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends DN{constructor(e){super(e),this.removeGroupControls=fC,this.removeListeners=fC,this.controls=new jO(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||fC}update(){const{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:PD,MeasureLayout:HO}};function qO(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);const i=r["onHover"+n];i&&zC.postRender(()=>i(t,wO(t)))}function GO(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);const i=r["onTap"+("End"===n?"":n)];i&&zC.postRender(()=>i(t,wO(t)))}var KO=new WeakMap,YO=new WeakMap,QO=e=>{const t=KO.get(e.target);t&&t(e)},XO=e=>{e.forEach(QO)},ZO={some:0,all:1},JO={inView:{Feature:class extends DN{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;null===(e=this.stopObserver)||void 0===e||e.call(this);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:"number"==typeof i?i:ZO[i]};this.stopObserver=function(e,t,n){const r=function({root:e,...t}){const n=e||document;YO.has(n)||YO.set(n,{});const r=YO.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(XO,{root:e,...t})),r[i]}(t);return KO.set(e,n),r.observe(e),()=>{KO.delete(e),r.unobserve(e)}}(this.node.current,a,e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){var e;null===(e=this.stopObserver)||void 0===e||e.call(this),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends DN{mount(){const{current:e}=this.node;if(!e)return;const{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=function(e,t,n={}){const[r,i,o]=q_(e,n),a=e=>{const r=e.currentTarget;if(!eN(e))return;if(tN.has(e))return;X_.add(r),n.stopPropagation&&tN.add(e);const o=t(r,e),a=(e,t)=>{window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",l),X_.has(r)&&X_.delete(r),eN(e)&&"function"==typeof o&&o(e,{success:t})},s=e=>{a(e,r===window||r===document||n.useGlobalTarget||G_(r,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",s,i),window.addEventListener("pointercancel",l,i)};return r.forEach(e=>{var t;(n.useGlobalTarget?window:e).addEventListener("pointerdown",a,i),uC(t=e)&&"offsetHeight"in t&&!("ownerSVGElement"in t)&&(e.addEventListener("focus",e=>((e,t)=>{const n=e.currentTarget;if(!n)return;const r=Z_(()=>{if(X_.has(n))return;J_(n,"down");const e=Z_(()=>{J_(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>J_(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)})(e,i)),function(e){return Y_.has(e.tagName)||!0===e.isContentEditable}(e)||e.hasAttribute("tabindex")||(e.tabIndex=0))}),o}(e,(e,t)=>(GO(this.node,t,"Start"),(e,{success:t})=>GO(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:!1===(null==n?void 0:n.tap)})}unmount(){}}},focus:{Feature:class extends DN{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(RR){e=!0}e&&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=hC(ZA(this.node.current,"focus",()=>this.onFocus()),ZA(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends DN{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){const[r,i,o]=q_(e,n);return r.forEach(e=>{let n,r=!1,o=!1;const a=t=>{n&&(n(t),n=void 0),e.removeEventListener("pointerleave",l)},s=e=>{r=!1,window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",s),o&&(o=!1,a(e))},l=e=>{"touch"!==e.pointerType&&(r?o=!0:a(e))};e.addEventListener("pointerenter",r=>{if("touch"===r.pointerType||W_())return;o=!1;const a=t(e,r);"function"==typeof a&&(n=a,e.addEventListener("pointerleave",l,i))},i),e.addEventListener("pointerdown",()=>{r=!0,window.addEventListener("pointerup",s,i),window.addEventListener("pointercancel",s,i)},i)}),o}(e,(e,t)=>(qO(this.node,t,"Start"),e=>qO(this.node,e,"End"))))}unmount(){}}}},eL=gO({...bO,...JO,...WO,layout:{ProjectionNode:PD,MeasureLayout:HO}},vO);function tL(e){const t=tC(()=>d_(e)),{isStatic:n}=(0,Fu.useContext)(RD);if(n){const[,n]=(0,Fu.useState)(e);(0,Fu.useEffect)(()=>t.on("change",n),[])}return t}function nL(e,t){const n=tL(t()),r=()=>n.set(t());return r(),nC(()=>{const t=()=>zC.preRender(r,!1,!0),n=e.map(e=>e.on("change",t));return()=>{n.forEach(e=>e()),$C(r)}}),n}function rL(e,t,n,r){if("function"==typeof e)return function(e){u_.current=[],e();const t=nL(u_.current,e);return u_.current=void 0,t}(e);if(void 0!==n&&!Array.isArray(n)&&"function"!=typeof t)return function(e,t,n,r){const i=tC(()=>Object.keys(n)),o=tC(()=>({}));for(const a of i)o[a]=rL(e,t,n[a],r);return o}(e,t,n,r);const i="function"==typeof t?t:function(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=XS(e[1+n],e[2+n],e[3+n]);return t?i(r):i}(t,n,r),o=Array.isArray(e)?iL(e,i):iL([e],([e])=>i(e)),a=Array.isArray(e)?void 0:e.accelerate;return a&&!a.isTransformed&&"function"!=typeof t&&Array.isArray(n)&&!1!==(null==r?void 0:r.clamp)&&(o.accelerate={...a,times:t,keyframes:n,isTransformed:!0,...(null==r?void 0:r.ease)?{ease:r.ease}:{}}),o}function iL(e,t){const n=tC(()=>[]);return nL(e,()=>{n.length=0;const r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}var oL=(0,Fu.createContext)(null);function aL({children:e,as:t="ul",axis:n="y",onReorder:r,values:i,...o},a){const s=tC(()=>eL[t]),l=[],u=(0,Fu.useRef)(!1),c=(0,Fu.useRef)(null);Boolean(i);const d={axis:n,groupRef:c,registerItem:(e,t)=>{const r=l.findIndex(t=>e===t.value);-1!==r?l[r].layout=t[n]:l.push({value:e,layout:t[n]}),l.sort(lL)},updateOrder:(e,t,n)=>{if(u.current)return;const o=function(e,t,n,r){if(!r)return e;const i=e.findIndex(e=>e.value===t);if(-1===i)return e;const o=r>0?1:-1,a=e[i+o];if(!a)return e;const s=e[i],l=a.layout,u=AS(l.min,l.max,.5);return 1===o&&s.layout.max+n>u||-1===o&&s.layout.min+n<u?function([...e],t,n){const r=t<0?e.length+t:t;if(r>=0&&r<e.length){const r=n<0?e.length+n:n,[i]=e.splice(t,1);e.splice(r,0,i)}return e}(e,i,i+o):e}(l,e,t,n);if(l!==o){u.current=!0;const e=[...i];for(let t=0;t<o.length;t++)if(l[t].value!==o[t].value){const n=i.indexOf(l[t].value),r=i.indexOf(o[t].value);-1!==n&&-1!==r&&([e[n],e[r]]=[e[r],e[n]]);break}r(e)}}};(0,Fu.useEffect)(()=>{u.current=!1});const f={overflowAnchor:"none",...o.style};return(0,Gm.jsx)(s,{...o,style:f,ref:e=>{c.current=e,"function"==typeof a?a(e):a&&(a.current=e)},ignoreStrict:!0,children:(0,Gm.jsx)(oL.Provider,{value:d,children:e})})}var sL=(0,Fu.forwardRef)(aL);function lL(e,t){return e.layout.min-t.layout.min}var uL=new Set(["auto","scroll"]),cL=new WeakMap,dL=new WeakMap,fL=null;function pL(e,t){const n=getComputedStyle(e),r="x"===t?n.overflowX:n.overflowY,i=e===document.body||e===document.documentElement;return uL.has(r)||i}function hL(e,t){let n=null==e?void 0:e.parentElement;for(;n;){if(pL(n,t))return n;n=n.parentElement}return null}function mL(e,t=0){return m_(e)?e:tL(t)}function gL({children:e,style:t={},value:n,as:r="li",onDrag:i,onDragEnd:o,layout:a=!0,...s},l){const u=tC(()=>eL[r]),c=(0,Fu.useContext)(oL),d={x:mL(t.x),y:mL(t.y)},f=rL([d.x,d.y],([e,t])=>e||t?1:"unset");Boolean(c);const{axis:p,registerItem:h,updateOrder:m,groupRef:g}=c;return(0,Gm.jsx)(u,{drag:p,...s,dragSnapToOrigin:!0,style:{...t,x:d.x,y:d.y,zIndex:f},layout:a,onDrag:(e,t)=>{const{velocity:r,point:o}=t;m(n,d[p].get(),r[p]),function(e,t,n,r){if(!e)return;fL=e;const i=hL(e,n);if(!i)return;const{amount:o,edge:a}=function(e,t,n){const r=t.getBoundingClientRect(),i=e-("x"===n?Math.max(0,r.left):Math.max(0,r.top)),o=("x"===n?Math.min(window.innerWidth,r.right):Math.min(window.innerHeight,r.bottom))-e;if(i<50){const e=1-i/50;return{amount:-25*e*e,edge:"start"}}if(o<50){const e=1-o/50;return{amount:25*e*e,edge:"end"}}return{amount:0,edge:null}}(t-("x"===n?window.scrollX:window.scrollY),i,n);if(null===a)return dL.delete(i),void cL.delete(i);const s=dL.get(i),l=i===document.body||i===document.documentElement;if(s!==a){if(!("start"===a&&r<0||"end"===a&&r>0))return;dL.set(i,a);const e="x"===n?i.scrollWidth-(l?window.innerWidth:i.clientWidth):i.scrollHeight-(l?window.innerHeight:i.clientHeight);cL.set(i,e)}if(o>0){const e=cL.get(i);if(("x"===n?l?window.scrollX:i.scrollLeft:l?window.scrollY:i.scrollTop)>=e)return}"x"===n?l?window.scrollBy({left:o}):i.scrollLeft+=o:l?window.scrollBy({top:o}):i.scrollTop+=o}(g.current,o[p],p,r[p]),i&&i(e,t)},onDragEnd:(e,t)=>{!function(){if(fL){const e=hL(fL,"y");e&&(dL.delete(e),cL.delete(e));const t=hL(fL,"x");t&&t!==e&&(dL.delete(t),cL.delete(t)),fL=null}}(),o&&o(e,t)},onLayoutMeasure:e=>{h(n,e)},ref:l,ignoreStrict:!0,children:e})}var vL=(0,Fu.forwardRef)(gL),yL=(0,Fu.forwardRef)((e,t)=>{const n=(0,$u.c)(16);let r,i,o,a,s;n[0]!==e?(({isActive:o,value:s,children:r,className:i,...a}=e),n[0]=e,n[1]=r,n[2]=i,n[3]=o,n[4]=a,n[5]=s):(r=n[1],i=n[2],o=n[3],a=n[4],s=n[5]);const l=o&&"graphiql-tab-active";let u,c;return n[6]!==i||n[7]!==l?(u=$g("graphiql-tab",l,i),n[6]=i,n[7]=l,n[8]=u):u=n[8],n[9]!==r||n[10]!==o||n[11]!==a||n[12]!==t||n[13]!==u||n[14]!==s?(c=(0,Gm.jsx)(vL,{...a,ref:t,value:s,"aria-selected":o,role:"tab",className:u,children:r}),n[9]=r,n[10]=o,n[11]=a,n[12]=t,n[13]=u,n[14]=s,n[15]=c):c=n[15],c});yL.displayName="Tab";var bL=(0,Fu.forwardRef)((e,t)=>{const n=(0,$u.c)(11);let r,i,o,a,s;return 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]),n[4]!==i?(a=$g("graphiql-tab-button",i),n[4]=i,n[5]=a):a=n[5],n[6]!==r||n[7]!==o||n[8]!==t||n[9]!==a?(s=(0,Gm.jsx)(sv,{...o,ref:t,type:"button",className:a,children:r}),n[6]=r,n[7]=o,n[8]=t,n[9]=a,n[10]=s):s=n[10],s});bL.displayName="Tab.Button";var wL=(0,Fu.forwardRef)((e,t)=>{const n=(0,$u.c)(7);let r,i,o;return n[0]!==e.className?(r=$g("graphiql-tab-close",e.className),n[0]=e.className,n[1]=r):r=n[1],n[2]===Symbol.for("react.memo_cache_sentinel")?(i=(0,Gm.jsx)(pg,{}),n[2]=i):i=n[2],n[3]!==e||n[4]!==t||n[5]!==r?(o=(0,Gm.jsx)(sv,{"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});wL.displayName="Tab.Close";var xL=Object.assign(yL,{Button:bL,Close:wL}),EL=(0,Fu.forwardRef)((e,t)=>{const n=(0,$u.c)(15);let r,i,o,a,s,l,u;return n[0]!==e?(({values:s,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]=s):(r=n[1],i=n[2],o=n[3],a=n[4],s=n[5]),n[6]!==i?(l=$g("graphiql-tabs",i),n[6]=i,n[7]=l):l=n[7],n[8]!==r||n[9]!==o||n[10]!==a||n[11]!==t||n[12]!==l||n[13]!==s?(u=(0,Gm.jsx)(sL,{...a,ref:t,values:s,onReorder:o,axis:"x",role:"tablist",className:l,children:r}),n[8]=r,n[9]=o,n[10]=a,n[11]=t,n[12]=l,n[13]=s,n[14]=u):u=n[14],u});EL.displayName="Tabs";var kL=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"}),CL=Fu.forwardRef((e,t)=>(0,Gm.jsx)(Nv.span,{...e,ref:t,style:{...kL,...e.style}}));CL.displayName="VisuallyHidden";var SL=CL,[TL,_L]=mv("Tooltip",[_x]),NL=_x(),AL="TooltipProvider",DL=700,OL="tooltip.open",[LL,IL]=TL(AL),ML=e=>{const{__scopeTooltip:t,delayDuration:n=DL,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:o}=e,a=Fu.useRef(!0),s=Fu.useRef(!1),l=Fu.useRef(0);return Fu.useEffect(()=>{const e=l.current;return()=>window.clearTimeout(e)},[]),(0,Gm.jsx)(LL,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:Fu.useCallback(()=>{window.clearTimeout(l.current),a.current=!1},[]),onClose:Fu.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a.current=!0,r)},[r]),isPointerInTransitRef:s,onPointerInTransitChange:Fu.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:o})};ML.displayName=AL;var FL="Tooltip",[PL,RL]=TL(FL),jL=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:o,disableHoverableContent:a,delayDuration:s}=e,l=IL(FL,e.__scopeTooltip),u=NL(t),[c,d]=Fu.useState(null),f=wv(),p=Fu.useRef(0),h=null!=a?a:l.disableHoverableContent,m=null!=s?s:l.delayDuration,g=Fu.useRef(!1),[v,y]=Ev({prop:r,defaultProp:null!=i&&i,onChange:e=>{e?(l.onOpen(),document.dispatchEvent(new CustomEvent(OL))):l.onClose(),null==o||o(e)},caller:FL}),b=Fu.useMemo(()=>v?g.current?"delayed-open":"instant-open":"closed",[v]),w=Fu.useCallback(()=>{window.clearTimeout(p.current),p.current=0,g.current=!1,y(!0)},[y]),x=Fu.useCallback(()=>{window.clearTimeout(p.current),p.current=0,y(!1)},[y]),E=Fu.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{g.current=!0,y(!0),p.current=0},m)},[m,y]);return Fu.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),(0,Gm.jsx)(Ux,{...u,children:(0,Gm.jsx)(PL,{scope:t,contentId:f,open:v,stateAttribute:b,trigger:c,onTriggerChange:d,onTriggerEnter:Fu.useCallback(()=>{l.isOpenDelayedRef.current?E():w()},[l.isOpenDelayedRef,E,w]),onTriggerLeave:Fu.useCallback(()=>{h?x():(window.clearTimeout(p.current),p.current=0)},[x,h]),onOpen:w,onClose:x,disableHoverableContent:h,children:n})})};jL.displayName=FL;var VL="TooltipTrigger",BL=Fu.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=RL(VL,n),o=IL(VL,n),a=NL(n),s=hv(t,Fu.useRef(null),i.onTriggerChange),l=Fu.useRef(!1),u=Fu.useRef(!1),c=Fu.useCallback(()=>l.current=!1,[]);return Fu.useEffect(()=>()=>document.removeEventListener("pointerup",c),[c]),(0,Gm.jsx)(Hx,{asChild:!0,...a,children:(0,Gm.jsx)(Nv.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:s,onPointerMove:dv(e.onPointerMove,e=>{"touch"!==e.pointerType&&(u.current||o.isPointerInTransitRef.current||(i.onTriggerEnter(),u.current=!0))}),onPointerLeave:dv(e.onPointerLeave,()=>{i.onTriggerLeave(),u.current=!1}),onPointerDown:dv(e.onPointerDown,()=>{i.open&&i.onClose(),l.current=!0,document.addEventListener("pointerup",c,{once:!0})}),onFocus:dv(e.onFocus,()=>{l.current||i.onOpen()}),onBlur:dv(e.onBlur,i.onClose),onClick:dv(e.onClick,i.onClose)})})});BL.displayName=VL;var zL="TooltipPortal",[$L,UL]=TL(zL,{forceMount:void 0}),HL=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,o=RL(zL,t);return(0,Gm.jsx)($L,{scope:t,forceMount:n,children:(0,Gm.jsx)(Kv,{present:n||o.open,children:(0,Gm.jsx)(Gv,{asChild:!0,container:i,children:r})})})};HL.displayName=zL;var WL="TooltipContent",qL=Fu.forwardRef((e,t)=>{const n=UL(WL,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...o}=e,a=RL(WL,e.__scopeTooltip);return(0,Gm.jsx)(Kv,{present:r||a.open,children:a.disableHoverableContent?(0,Gm.jsx)(XL,{side:i,...o,ref:t}):(0,Gm.jsx)(GL,{side:i,...o,ref:t})})}),GL=Fu.forwardRef((e,t)=>{const n=RL(WL,e.__scopeTooltip),r=IL(WL,e.__scopeTooltip),i=Fu.useRef(null),o=hv(t,i),[a,s]=Fu.useState(null),{trigger:l,onClose:u}=n,c=i.current,{onPointerInTransitChange:d}=r,f=Fu.useCallback(()=>{s(null),d(!1)},[d]),p=Fu.useCallback((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=function(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})}return r}(r,function(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")}}(r,n.getBoundingClientRect())),o=function(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}]}(t.getBoundingClientRect());s(function(e){const t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0),function(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const n=e[r];for(;t.length>=2;){const e=t[t.length-1],r=t[t.length-2];if(!((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x)))break;t.pop()}t.push(n)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const t=e[r];for(;n.length>=2;){const e=n[n.length-1],r=n[n.length-2];if(!((e.x-r.x)*(t.y-r.y)>=(e.y-r.y)*(t.x-r.x)))break;n.pop()}n.push(t)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...i,...o])),d(!0)},[d]);return Fu.useEffect(()=>()=>f(),[f]),Fu.useEffect(()=>{if(l&&c){const e=e=>p(e,c),t=e=>p(e,l);return l.addEventListener("pointerleave",e),c.addEventListener("pointerleave",t),()=>{l.removeEventListener("pointerleave",e),c.removeEventListener("pointerleave",t)}}},[l,c,p,f]),Fu.useEffect(()=>{if(a){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=(null==l?void 0:l.contains(t))||(null==c?void 0:c.contains(t)),i=!function(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 e=t[o],s=t[a],l=e.x,u=e.y,c=s.x,d=s.y;u>r!=d>r&&n<(c-l)*(r-u)/(d-u)+l&&(i=!i)}return i}(n,a);r?f():i&&(f(),u())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[l,c,a,u,f]),(0,Gm.jsx)(XL,{...e,ref:o})}),[KL,YL]=TL(FL,{isInside:!1}),QL=function(){const e=({children:e})=>(0,Gm.jsx)(Gm.Fragment,{children:e});return e.displayName="TooltipContent.Slottable",e.__radixId=Sv,e}(),XL=Fu.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:o,onPointerDownOutside:a,...s}=e,l=RL(WL,n),u=NL(n),{onClose:c}=l;return Fu.useEffect(()=>(document.addEventListener(OL,c),()=>document.removeEventListener(OL,c)),[c]),Fu.useEffect(()=>{if(l.trigger){const e=e=>{const t=e.target;(null==t?void 0:t.contains(l.trigger))&&c()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[l.trigger,c]),(0,Gm.jsx)(Mv,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:c,children:(0,Gm.jsxs)(Wx,{"data-state":l.stateAttribute,...u,...s,ref:t,style:{...s.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:[(0,Gm.jsx)(QL,{children:r}),(0,Gm.jsx)(KL,{scope:n,isInside:!0,children:(0,Gm.jsx)(SL,{id:l.contentId,role:"tooltip",children:i||r})})]})})});qL.displayName=WL;var ZL="TooltipArrow";Fu.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=NL(n);return YL(ZL,n).isInside?null:(0,Gm.jsx)(qx,{...i,...r,ref:t})}).displayName=ZL;var JL=ML,eI=jL,tI=BL,nI=HL,rI=qL,iI=Object.assign(e=>{const t=(0,$u.c)(10),{children:n,align:r,side:i,sideOffset:o,label:a}=e,s=void 0===r?"start":r,l=void 0===i?"bottom":i,u=void 0===o?5:o;let c,d,f;return t[0]!==n?(c=(0,Gm.jsx)(tI,{asChild:!0,children:n}),t[0]=n,t[1]=c):c=t[1],t[2]!==s||t[3]!==a||t[4]!==l||t[5]!==u?(d=(0,Gm.jsx)(nI,{children:(0,Gm.jsx)(rI,{className:"graphiql-tooltip",align:s,side:l,sideOffset:u,children:a})}),t[2]=s,t[3]=a,t[4]=l,t[5]=u,t[6]=d):d=t[6],t[7]!==c||t[8]!==d?(f=(0,Gm.jsxs)(eI,{children:[c,d]}),t[7]=c,t[8]=d,t[9]=f):f=t[9],f},{Provider:JL}),oI=(0,Fu.forwardRef)((e,t)=>{const n=(0,$u.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,s]=(0,Fu.useState)(null);let l;n[4]!==i?(l=e=>{try{i&&i(e),s(null)}catch(t){s(t instanceof Error?t:new Error(`Toolbar button click failed: ${t}`))}},n[4]=i,n[5]=l):l=n[5];const u=l,c=a&&"error";let d;n[6]!==o.className||n[7]!==c?(d=$g("graphiql-toolbar-button",c,o.className),n[6]=o.className,n[7]=c,n[8]=d):d=n[8];const f=a?a.message:r,p=a?"true":o["aria-invalid"];let h,m;return n[9]!==u||n[10]!==o||n[11]!==t||n[12]!==d||n[13]!==f||n[14]!==p?(h=(0,Gm.jsx)(sv,{...o,ref:t,type:"button",className:d,onClick:u,"aria-label":f,"aria-invalid":p}),n[9]=u,n[10]=o,n[11]=t,n[12]=d,n[13]=f,n[14]=p,n[15]=h):h=n[15],n[16]!==r||n[17]!==h?(m=(0,Gm.jsx)(iI,{label:r,children:h}),n[16]=r,n[17]=h,n[18]=m):m=n[18],m});oI.displayName="ToolbarButton";var aI=()=>{const e=(0,$u.c)(19);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={nonNull:!0,caller:aI},e[0]=t):t=e[0];const{queryEditor:n,setOperationName:r}=Qm(t);let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={nonNull:!0,caller:aI},e[1]=i):i=e[1];const{isFetching:o,isSubscribed:a,operationName:s,run:l,stop:u}=ng(i);let c;e[2]!==(null==n?void 0:n.operations)?(c=(null==n?void 0:n.operations)||[],e[2]=null==n?void 0:n.operations,e[3]=c):c=e[3];const d=c,f=d.length>1&&"string"!=typeof s,p=o||a,h=(p?"Stop":"Execute")+" query (Ctrl-Enter)";let m,g;e[4]!==p?(m=p?(0,Gm.jsx)(Rg,{}):(0,Gm.jsx)(Ag,{}),e[4]=p,e[5]=m):m=e[5],e[6]!==h||e[7]!==m?(g={type:"button",className:"graphiql-execute-button",children:m,"aria-label":h},e[6]=h,e[7]=m,e[8]=g):g=e[8];const v=g;let y;return e[9]!==v||e[10]!==f||e[11]!==p||e[12]!==h||e[13]!==d||e[14]!==n||e[15]!==l||e[16]!==r||e[17]!==u?(y=f&&!p?(0,Gm.jsxs)(Xk,{children:[(0,Gm.jsx)(iI,{label:h,children:(0,Gm.jsx)(Xk.Button,{...v})}),(0,Gm.jsx)(Xk.Content,{children:d.map((e,t)=>{const i=e.name?e.name.value:`<Unnamed ${e.operation}>`;return(0,Gm.jsx)(Xk.Item,{onSelect:()=>{var t;const i=null==(t=e.name)?void 0:t.value;n&&i&&i!==n.operationName&&r(i),l()},children:i},`${i}-${t}`)})})]}):(0,Gm.jsx)(iI,{label:h,children:(0,Gm.jsx)("button",{...v,onClick:()=>{p?u():l()}})}),e[9]=v,e[10]=f,e[11]=p,e[12]=h,e[13]=d,e[14]=n,e[15]=l,e[16]=r,e[17]=u,e[18]=y):y=e[18],y},sI=Vu((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:e=>e,deleteFromHistory(n,r){const{historyStorage:i}=t();i.deleteHistory(n,r),e({})}}})),lI=e=>{const t=(0,$u.c)(12),{maxHistoryLength:n,children:r}=e,i=void 0===n?20:n;let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={nonNull:!0},t[0]=o):o=t[0];const{isFetching:a}=ng(o);let s;t[1]===Symbol.for("react.memo_cache_sentinel")?(s={nonNull:!0},t[1]=s):s=t[1];const{tabs:l,activeTabIndex:u}=Qm(s),c=l[u],d=qu();let f;t[2]!==i||t[3]!==d?(f=new Ma(d,i),t[2]=i,t[3]=d,t[4]=f):f=t[4];const p=f;let h,m,g,v;return t[5]!==p?(h=()=>{sI.setState({historyStorage:p})},m=[p],t[5]=p,t[6]=h,t[7]=m):(h=t[6],m=t[7]),(0,Fu.useEffect)(h,m),t[8]!==c||t[9]!==a?(g=()=>{var e,t,n,r;if(!a)return;const{addToHistory:i}=sI.getState().actions;i({query:null!==(e=c.query)&&void 0!==e?e:void 0,variables:null!==(t=c.variables)&&void 0!==t?t:void 0,headers:null!==(n=c.headers)&&void 0!==n?n:void 0,operationName:null!==(r=c.operationName)&&void 0!==r?r:void 0})},v=[a,c],t[8]=c,t[9]=a,t[10]=g,t[11]=v):(g=t[10],v=t[11]),(0,Fu.useEffect)(g,v),r},uI=zu(sI),cI=()=>uI(fI);function dI(e){return e.historyStorage.queries}function fI(e){return e.actions}var pI=e=>{const t=(0,$u.c)(39),{editLabel:n,toggleFavorite:r,deleteFromHistory:i,setActive:o}=cI();let a;t[0]===Symbol.for("react.memo_cache_sentinel")?(a={nonNull:!0,caller:pI},t[0]=a):a=t[0];const{headerEditor:s,queryEditor:l,variableEditor:u}=Qm(a),c=(0,Fu.useRef)(null),d=(0,Fu.useRef)(null),[f,p]=(0,Fu.useState)(!1);let h,m,g;var v;t[1]!==f?(h=()=>{var e;f&&(null==(e=c.current)||e.focus())},m=[f],t[1]=f,t[2]=h,t[3]=m):(h=t[2],m=t[3]),(0,Fu.useEffect)(h,m),t[4]!==e.item.label||t[5]!==e.item.operationName||t[6]!==e.item.query?(g=e.item.label||e.item.operationName||(null==(v=e.item.query)?void 0:v.split("\n").map(e=>e.replace(/#(.*)/,"")).join(" ").replaceAll("{"," { ").replaceAll("}"," } ").replaceAll(/[\s]{2,}/g," ")),t[4]=e.item.label,t[5]=e.item.operationName,t[6]=e.item.query,t[7]=g):g=t[7];const y=g;let b;t[8]!==n||t[9]!==e.item?(b=()=>{var t;p(!1);const{index:r,...i}=e.item;n({...i,label:null==(t=c.current)?void 0:t.value},r)},t[8]=n,t[9]=e.item,t[10]=b):b=t[10];const w=b;let x;t[11]===Symbol.for("react.memo_cache_sentinel")?(x=()=>{p(!1)},t[11]=x):x=t[11];const E=x;let k;t[12]===Symbol.for("react.memo_cache_sentinel")?(k=e=>{e.stopPropagation(),p(!0)},t[12]=k):k=t[12];const C=k;let S;t[13]!==s||t[14]!==e.item||t[15]!==l||t[16]!==o||t[17]!==u?(S=()=>{const{query:t,variables:n,headers:r}=e.item;null==l||l.setValue(null!=t?t:""),null==u||u.setValue(null!=n?n:""),null==s||s.setValue(null!=r?r:""),o(e.item)},t[13]=s,t[14]=e.item,t[15]=l,t[16]=o,t[17]=u,t[18]=S):S=t[18];const T=S;let _;t[19]!==i||t[20]!==e.item?(_=t=>{t.stopPropagation(),i(e.item)},t[19]=i,t[20]=e.item,t[21]=_):_=t[21];const N=_;let A;t[22]!==e.item||t[23]!==r?(A=t=>{t.stopPropagation(),r(e.item)},t[22]=e.item,t[23]=r,t[24]=A):A=t[24];const D=A,O=f&&"editable";let L,I,M;return t[25]!==O?(L=$g("graphiql-history-item",O),t[25]=O,t[26]=L):L=t[26],t[27]!==y||t[28]!==n||t[29]!==N||t[30]!==T||t[31]!==w||t[32]!==D||t[33]!==f||t[34]!==e.item?(I=f?(0,Gm.jsxs)(Gm.Fragment,{children:[(0,Gm.jsx)("input",{type:"text",defaultValue:e.item.label,ref:c,onKeyDown:t=>{"Esc"===t.key?p(!1):"Enter"===t.key&&(p(!1),n({...e.item,label:t.currentTarget.value}))},placeholder:"Type a label"}),(0,Gm.jsx)(sv,{type:"button",ref:d,onClick:w,children:"Save"}),(0,Gm.jsx)(sv,{type:"button",ref:d,onClick:E,children:(0,Gm.jsx)(pg,{})})]}):(0,Gm.jsxs)(Gm.Fragment,{children:[(0,Gm.jsx)(iI,{label:"Set active",children:(0,Gm.jsx)(sv,{type:"button",className:"graphiql-history-item-label",onClick:T,"aria-label":"Set active",children:y})}),(0,Gm.jsx)(iI,{label:"Edit label",children:(0,Gm.jsx)(sv,{type:"button",className:"graphiql-history-item-action",onClick:C,"aria-label":"Edit label",children:(0,Gm.jsx)(Ng,{"aria-hidden":"true"})})}),(0,Gm.jsx)(iI,{label:e.item.favorite?"Remove favorite":"Add favorite",children:(0,Gm.jsx)(sv,{type:"button",className:"graphiql-history-item-action",onClick:D,"aria-label":e.item.favorite?"Remove favorite":"Add favorite",children:e.item.favorite?(0,Gm.jsx)(Fg,{"aria-hidden":"true"}):(0,Gm.jsx)(Pg,{"aria-hidden":"true"})})}),(0,Gm.jsx)(iI,{label:"Delete from history",children:(0,Gm.jsx)(sv,{type:"button",className:"graphiql-history-item-action",onClick:N,"aria-label":"Delete from history",children:(0,Gm.jsx)(jg,{"aria-hidden":"true"})})})]}),t[27]=y,t[28]=n,t[29]=N,t[30]=T,t[31]=w,t[32]=D,t[33]=f,t[34]=e.item,t[35]=I):I=t[35],t[36]!==L||t[37]!==I?(M=(0,Gm.jsx)("li",{className:L,children:I}),t[36]=L,t[37]=I,t[38]=M):M=t[38],M};function hI(e,t){return{...e,index:t}}function mI(e){return e.favorite}function gI(e){return!e.favorite}function vI(e){return(0,Gm.jsx)(pI,{item:e},e.index)}function yI(e){return(0,Gm.jsx)(pI,{item:e},e.index)}var bI={title:"History",icon:kg,content:()=>{const e=(0,$u.c)(13),t=uI(dI),{deleteFromHistory:n}=cI();let r;r=t.slice().map(hI).reverse();const i=r.filter(mI);i.length&&(r=r.filter(gI));const[o,a]=(0,Fu.useState)(null);let s,l;e[0]!==o?(s=()=>{o&&setTimeout(()=>{a(null)},2e3)},l=[o],e[0]=o,e[1]=s,e[2]=l):(s=e[1],l=e[2]),(0,Fu.useEffect)(s,l);const u=Boolean(i.length),c=Boolean(r.length),d=(o||c)&&(0,Gm.jsx)(lv,{type:"button",state:o||void 0,disabled:!r.length,onClick:()=>{try{!function(e,t){for(const n of e)t(n,!0)}(r,n),a("success")}catch(oV){a("error")}},children:{success:"Cleared",error:"Failed to Clear"}[o]||"Clear"});let f;e[3]!==d?(f=(0,Gm.jsxs)("div",{className:"graphiql-history-header",children:["History",d]}),e[3]=d,e[4]=f):f=e[4];const p=u&&(0,Gm.jsx)("ul",{className:"graphiql-history-items",children:i.map(vI)});let h;e[5]!==u||e[6]!==c?(h=u&&c&&(0,Gm.jsx)("div",{className:"graphiql-history-item-spacer"}),e[5]=u,e[6]=c,e[7]=h):h=e[7];const m=c&&(0,Gm.jsx)("ul",{className:"graphiql-history-items",children:r.map(yI)});let g;return e[8]!==f||e[9]!==p||e[10]!==h||e[11]!==m?(g=(0,Gm.jsxs)("section",{"aria-label":"History",className:"graphiql-history",children:[f,p,h,m]}),e[8]=f,e[9]=p,e[10]=h,e[11]=m,e[12]=g):g=e[12],g}};ha();var wI=[{name:"Docs"}],xI=Vu((e,t)=>({explorerNavStack:wI,actions:{push(t){e(e=>{const n=e.explorerNavStack;return{explorerNavStack:n.at(-1).def===t.def?n:[...n,t]}})},pop(){e(e=>{const t=e.explorerNavStack;return{explorerNavStack:t.length>1?t.slice(0,-1):t}})},reset(){e(e=>{const t=e.explorerNavStack;return{explorerNavStack:1===t.length?t:wI}})},resolveSchemaReferenceToNavItem(e){if(!e)return;const{push:n}=t().actions;switch(e.kind){case"Type":n({name:e.type.name,def:e.type});break;case"Field":n({name:e.field.name,def:e.field});break;case"Argument":e.field&&n({name:e.field.name,def:e.field});break;case"EnumValue":e.type&&n({name:e.type.name,def:e.type})}},rebuildNavStackWithSchema(t){e(e=>{const n=e.explorerNavStack;if(1===n.length)return e;const r=[...wI];let i=null;for(const o of n)if(o!==wI[0])if(o.def)if(vn(o.def)){const e=t.getType(o.def.name);if(!e)break;r.push({name:o.name,def:e}),i=e}else{if(null===i)break;if(tn(i)||an(i)){const e=i.getFields()[o.name];if(!e)break;r.push({name:o.name,def:e})}else{if(en(i)||on(i)||nn(i)||rn(i))break;{const e=i;if(!e.args.some(e=>e.name===o.name))break;r.push({name:o.name,def:e})}}}else i=null,r.push(o);return{explorerNavStack:r}})}}})),EI=e=>{const t=(0,$u.c)(7),{children:n}=e,{schema:r,validationErrors:i,schemaReference:o}=bc();let a,s,l,u;return t[0]!==o?(a=()=>{const{resolveSchemaReferenceToNavItem:e}=xI.getState().actions;e(o)},s=[o],t[0]=o,t[1]=a,t[2]=s):(a=t[1],s=t[2]),(0,Fu.useEffect)(a,s),t[3]!==r||t[4]!==i?(l=()=>{const{reset:e,rebuildNavStackWithSchema:t}=xI.getState().actions;null==r||i.length>0?e():t(r)},u=[r,i],t[3]=r,t[4]=i,t[5]=l,t[6]=u):(l=t[5],u=t[6]),(0,Fu.useEffect)(l,u),n},kI=zu(xI),CI=()=>kI(TI),SI=()=>kI(_I);function TI(e){return e.explorerNavStack}function _I(e){return e.actions}ha();var NI=e=>{const t=(0,$u.c)(12),{field:n}=e;if(!("defaultValue"in n)||void 0===n.defaultValue)return null;const r=n.defaultValue,i=n.type;let o,a,s,l,u,c;if(t[0]!==n.defaultValue||t[1]!==n.type){l=Symbol.for("react.early_return_sentinel");{const e=rr(r,i);e?(s=" = ",o="graphiql-doc-explorer-default-value",a=(e=>e?It(e):"")(e)):l=null}t[0]=n.defaultValue,t[1]=n.type,t[2]=o,t[3]=a,t[4]=s,t[5]=l}else o=t[2],a=t[3],s=t[4],l=t[5];return l!==Symbol.for("react.early_return_sentinel")?l:(t[6]!==o||t[7]!==a?(u=(0,Gm.jsx)("span",{className:o,children:a}),t[6]=o,t[7]=a,t[8]=u):u=t[8],t[9]!==s||t[10]!==u?(c=(0,Gm.jsxs)(Gm.Fragment,{children:[s,u]}),t[9]=s,t[10]=u,t[11]=c):c=t[11],c)};function AI(e,t){return ln(e)?(0,Gm.jsxs)(Gm.Fragment,{children:[AI(e.ofType,t),"!"]}):sn(e)?(0,Gm.jsxs)(Gm.Fragment,{children:["[",AI(e.ofType,t),"]"]}):t(e)}ha();var DI=e=>{const t=(0,$u.c)(5),{type:n}=e,{push:r}=SI();if(!n)return null;let i,o;return t[0]!==r?(i=e=>(0,Gm.jsx)("a",{className:"graphiql-doc-explorer-type-name",onClick:t=>{t.preventDefault(),r({name:e.name,def:e})},href:"#",children:e.name}),t[0]=r,t[1]=i):i=t[1],t[2]!==i||t[3]!==n?(o=AI(n,i),t[2]=i,t[3]=n,t[4]=o):o=t[4],o},OI=e=>{const t=(0,$u.c)(19),{arg:n,showDefaultValue:r,inline:i}=e;let o,a,s,l;t[0]!==n.name?(o=(0,Gm.jsx)("span",{className:"graphiql-doc-explorer-argument-name",children:n.name}),t[0]=n.name,t[1]=o):o=t[1],t[2]!==n.type?(a=(0,Gm.jsx)(DI,{type:n.type}),t[2]=n.type,t[3]=a):a=t[3],t[4]!==n||t[5]!==r?(s=!1!==r&&(0,Gm.jsx)(NI,{field:n}),t[4]=n,t[5]=r,t[6]=s):s=t[6],t[7]!==o||t[8]!==a||t[9]!==s?(l=(0,Gm.jsxs)("span",{children:[o,": ",a,s]}),t[7]=o,t[8]=a,t[9]=s,t[10]=l):l=t[10];const u=l;if(i)return u;let c,d,f;return t[11]!==n.description?(c=n.description?(0,Gm.jsx)(Zk,{type:"description",children:n.description}):null,t[11]=n.description,t[12]=c):c=t[12],t[13]!==n.deprecationReason?(d=n.deprecationReason?(0,Gm.jsxs)("div",{className:"graphiql-doc-explorer-argument-deprecation",children:[(0,Gm.jsx)("div",{className:"graphiql-doc-explorer-argument-deprecation-label",children:"Deprecated"}),(0,Gm.jsx)(Zk,{type:"deprecation",children:n.deprecationReason})]}):null,t[13]=n.deprecationReason,t[14]=d):d=t[14],t[15]!==u||t[16]!==c||t[17]!==d?(f=(0,Gm.jsxs)("div",{className:"graphiql-doc-explorer-argument",children:[u,c,d]}),t[15]=u,t[16]=c,t[17]=d,t[18]=f):f=t[18],f},LI=e=>{const t=(0,$u.c)(3);let n;var r;return t[0]!==e.children||t[1]!==e.preview?(n=e.children?(0,Gm.jsxs)("div",{className:"graphiql-doc-explorer-deprecation",children:[(0,Gm.jsx)("div",{className:"graphiql-doc-explorer-deprecation-label",children:"Deprecated"}),(0,Gm.jsx)(Zk,{type:"deprecation",onlyShowFirstChild:null===(r=e.preview)||void 0===r||r,children:e.children})]}):null,t[0]=e.children,t[1]=e.preview,t[2]=n):n=t[2],n},II=e=>{const t=(0,$u.c)(2),{directive:n}=e;let r;return t[0]!==n.name.value?(r=(0,Gm.jsxs)("span",{className:"graphiql-doc-explorer-directive",children:["@",n.name.value]}),t[0]=n.name.value,t[1]=r):r=t[1],r},MI=e=>{const t=(0,$u.c)(10),{title:n,children:r}=e,i=FI[n];let o,a,s,l;return t[0]!==i?(o=(0,Gm.jsx)(i,{}),t[0]=i,t[1]=o):o=t[1],t[2]!==o||t[3]!==n?(a=(0,Gm.jsxs)("div",{className:"graphiql-doc-explorer-section-title",children:[o,n]}),t[2]=o,t[3]=n,t[4]=a):a=t[4],t[5]!==r?(s=(0,Gm.jsx)("div",{className:"graphiql-doc-explorer-section-content",children:r}),t[5]=r,t[6]=s):s=t[6],t[7]!==a||t[8]!==s?(l=(0,Gm.jsxs)("div",{children:[a,s]}),t[7]=a,t[8]=s,t[9]=l):l=t[9],l},FI={Arguments:ug,"Deprecated Arguments":mg,"Deprecated Enum Values":gg,"Deprecated Fields":vg,Directives:yg,"Enum Values":xg,Fields:Eg,Implements:Cg,Implementations:Vg,"Possible Types":Vg,"Root Types":Ig,Type:Vg,"All Schema Types":Vg},PI=e=>{const t=(0,$u.c)(15),{field:n}=e;let r,i,o,a,s,l;return t[0]!==n.description?(r=n.description?(0,Gm.jsx)(Zk,{type:"description",children:n.description}):null,t[0]=n.description,t[1]=r):r=t[1],t[2]!==n.deprecationReason?(i=(0,Gm.jsx)(LI,{preview:!1,children:n.deprecationReason}),t[2]=n.deprecationReason,t[3]=i):i=t[3],t[4]!==n.type?(o=(0,Gm.jsx)(MI,{title:"Type",children:(0,Gm.jsx)(DI,{type:n.type})}),t[4]=n.type,t[5]=o):o=t[5],t[6]!==n?(a=(0,Gm.jsx)(RI,{field:n}),s=(0,Gm.jsx)(jI,{field:n}),t[6]=n,t[7]=a,t[8]=s):(a=t[7],s=t[8]),t[9]!==r||t[10]!==i||t[11]!==o||t[12]!==a||t[13]!==s?(l=(0,Gm.jsxs)(Gm.Fragment,{children:[r,i,o,a,s]}),t[9]=r,t[10]=i,t[11]=o,t[12]=a,t[13]=s,t[14]=l):l=t[14],l},RI=e=>{const t=(0,$u.c)(12),{field:n}=e,[r,i]=(0,Fu.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 s,l,u,c,d;if(t[1]!==n.args){s=[],l=[];for(const e of n.args)e.deprecationReason?l.push(e):s.push(e);u=s.length>0?(0,Gm.jsx)(MI,{title:"Arguments",children:s.map(VI)}):null,t[1]=n.args,t[2]=s,t[3]=l,t[4]=u}else s=t[2],l=t[3],u=t[4];return t[5]!==s.length||t[6]!==l||t[7]!==r?(c=l.length>0?r||0===s.length?(0,Gm.jsx)(MI,{title:"Deprecated Arguments",children:l.map(BI)}):(0,Gm.jsx)(lv,{type:"button",onClick:a,children:"Show Deprecated Arguments"}):null,t[5]=s.length,t[6]=l,t[7]=r,t[8]=c):c=t[8],t[9]!==u||t[10]!==c?(d=(0,Gm.jsxs)(Gm.Fragment,{children:[u,c]}),t[9]=u,t[10]=c,t[11]=d):d=t[11],d},jI=e=>{var t;const n=(0,$u.c)(4),{field:r}=e,i=null==(t=r.astNode)?void 0:t.directives;if(!(null==i?void 0:i.length))return null;let o,a;return n[0]!==i?(o=i.map(zI),n[0]=i,n[1]=o):o=n[1],n[2]!==o?(a=(0,Gm.jsx)(MI,{title:"Directives",children:o}),n[2]=o,n[3]=a):a=n[3],a};function VI(e){return(0,Gm.jsx)(OI,{arg:e},e.name)}function BI(e){return(0,Gm.jsx)(OI,{arg:e},e.name)}function zI(e){return(0,Gm.jsx)("div",{children:(0,Gm.jsx)(II,{directive:e})},e.name.value)}var $I=e=>{var t,n;const r=(0,$u.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 s;r[2]!==i?(s=null==(t=i.getMutationType)?void 0:t.call(i),r[2]=i,r[3]=s):s=r[3];const l=s;let u;r[4]!==i?(u=null==(n=i.getSubscriptionType)?void 0:n.call(i),r[4]=i,r[5]=u):u=r[5];const c=u;let d,f,p,h,m,g,v;if(r[6]!==l||r[7]!==a||r[8]!==i||r[9]!==c){const e=i.getTypeMap(),t=null==a?void 0:a.name,n=null==l?void 0:l.name,o=null==c?void 0:c.name;let s;r[15]!==o||r[16]!==t||r[17]!==n?(s=[t,n,o],r[15]=o,r[16]=t,r[17]=n,r[18]=s):s=r[18];const u=s,g=i.description||"A GraphQL schema provides a root type for each kind of operation.";let v,y,b;r[19]!==g?(h=(0,Gm.jsx)(Zk,{type:"description",children:g}),r[19]=g,r[20]=h):h=r[20],r[21]!==a?(v=a?(0,Gm.jsxs)("div",{children:[(0,Gm.jsx)("span",{className:"graphiql-doc-explorer-root-type",children:"query"}),": ",(0,Gm.jsx)(DI,{type:a})]}):null,r[21]=a,r[22]=v):v=r[22],r[23]!==l?(y=l&&(0,Gm.jsxs)("div",{children:[(0,Gm.jsx)("span",{className:"graphiql-doc-explorer-root-type",children:"mutation"}),": ",(0,Gm.jsx)(DI,{type:l})]}),r[23]=l,r[24]=y):y=r[24],r[25]!==c?(b=c&&(0,Gm.jsxs)("div",{children:[(0,Gm.jsx)("span",{className:"graphiql-doc-explorer-root-type",children:"subscription"}),": ",(0,Gm.jsx)(DI,{type:c})]}),r[25]=c,r[26]=b):b=r[26],r[27]!==v||r[28]!==y||r[29]!==b?(m=(0,Gm.jsxs)(MI,{title:"Root Types",children:[v,y,b]}),r[27]=v,r[28]=y,r[29]=b,r[30]=m):m=r[30],d=MI,f="All Schema Types",p=e&&(0,Gm.jsx)("div",{children:Object.values(e).map(e=>u.includes(e.name)||e.name.startsWith("__")?null:(0,Gm.jsx)("div",{children:(0,Gm.jsx)(DI,{type:e})},e.name))}),r[6]=l,r[7]=a,r[8]=i,r[9]=c,r[10]=d,r[11]=f,r[12]=p,r[13]=h,r[14]=m}else d=r[10],f=r[11],p=r[12],h=r[13],m=r[14];return r[31]!==d||r[32]!==f||r[33]!==p?(g=(0,Gm.jsx)(d,{title:f,children:p}),r[31]=d,r[32]=f,r[33]=p,r[34]=g):g=r[34],r[35]!==h||r[36]!==m||r[37]!==g?(v=(0,Gm.jsxs)(Gm.Fragment,{children:[h,m,g]}),r[35]=h,r[36]=m,r[37]=g,r[38]=v):v=r[38],v},UI="undefined"!=typeof document?Fu.useLayoutEffect:()=>{},HI=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},WI=e=>e&&"window"in e&&e.window===e?e:HI(e).defaultView||window;function qI(e,t){return!(!t||!e)&&e.contains(t)}var GI=(e=document)=>e.activeElement;function KI(e){return e.target}var YI=null;function QI(e){var t;if("undefined"==typeof window||null==window.navigator)return!1;let n=null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands;return Array.isArray(n)&&n.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function XI(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function ZI(e){let t=null;return()=>(null==t&&(t=e()),t)}var JI=ZI(function(){return XI(/^Mac/i)}),eM=ZI(function(){return XI(/^iPhone/i)}),tM=ZI(function(){return XI(/^iPad/i)||JI()&&navigator.maxTouchPoints>1}),nM=ZI(function(){return eM()||tM()}),rM=(ZI(function(){return JI()||nM()}),ZI(function(){return QI(/AppleWebKit/i)&&!iM()})),iM=ZI(function(){return QI(/Chrome/i)}),oM=ZI(function(){return QI(/Android/i)}),aM=ZI(function(){return QI(/Firefox/i)});function sM(e,t,n=!0){var r,i;let{metaKey:o,ctrlKey:a,altKey:s,shiftKey:l}=t;aM()&&(null===(i=window.event)||void 0===i||null===(r=i.type)||void 0===r?void 0:r.startsWith("key"))&&"_blank"===e.target&&(JI()?o=!0:a=!0);let u=rM()&&JI()&&!tM()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:a,altKey:s,shiftKey:l}):new MouseEvent("click",{metaKey:o,ctrlKey:a,altKey:s,shiftKey:l,detail:1,bubbles:!0,cancelable:!0});sM.isOpening=n,function(e){if(function(){if(null==YI){YI=!1;try{document.createElement("div").focus({get preventScroll(){return YI=!0,!0}})}catch(oV){}}return YI}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}(e);e.focus(),function(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}(t)}}(e),e.dispatchEvent(u),sM.isOpening=!1}function lM(){let e=(0,Fu.useRef)(new Map),t=(0,Fu.useCallback)((t,n,r,i)=>{let o=(null==i?void 0:i.once)?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:o,options:i}),t.addEventListener(n,o,i)},[]),n=(0,Fu.useCallback)((t,n,r,i)=>{var o;let a=(null===(o=e.current.get(r))||void 0===o?void 0:o.fn)||r;t.removeEventListener(n,a,i),e.current.delete(r)},[]),r=(0,Fu.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,Fu.useEffect)(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function uM(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function cM(e){let t=(0,Fu.useRef)({isFocused:!1,observer:null});return UI(()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]),(0,Fu.useCallback)(n=>{let r=KI(n);if(r instanceof HTMLButtonElement||r instanceof HTMLInputElement||r instanceof HTMLTextAreaElement||r instanceof HTMLSelectElement){t.current.isFocused=!0;let n=r,i=r=>{if(t.current.isFocused=!1,n.disabled){let t=uM(r);null==e||e(t)}t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};n.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&n.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let r=n===GI()?null:GI();n.dispatchEvent(new FocusEvent("blur",{relatedTarget:r})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:r}))}}),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[e])}sM.isOpening=!1;var dM=null,fM=new Set,pM=new Map,hM=!1,mM=!1,gM={Tab:!0,Escape:!0};function vM(e,t){for(let n of fM)n(e,t)}function yM(e){hM=!0,!sM.isOpening&&function(e){return!(e.metaKey||!JI()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(dM="keyboard",vM("keyboard",e))}function bM(e){dM="pointer","pointerType"in e&&e.pointerType,"mousedown"!==e.type&&"pointerdown"!==e.type||(hM=!0,vM("pointer",e))}function wM(e){var t;!sM.isOpening&&(""===(t=e).pointerType&&t.isTrusted||(oM()&&t.pointerType?"click"===t.type&&1===t.buttons:0===t.detail&&!t.pointerType))&&(hM=!0,dM="virtual")}function xM(e){KI(e)!==window&&KI(e)!==document&&e.isTrusted&&(hM||mM||(dM="virtual",vM("virtual",e)),hM=!1,mM=!1)}function EM(){hM=!1,mM=!0}function kM(e){if("undefined"==typeof window||"undefined"==typeof document||pM.get(WI(e)))return;const t=WI(e),n=HI(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){hM=!0,r.apply(this,arguments)},n.addEventListener("keydown",yM,!0),n.addEventListener("keyup",yM,!0),n.addEventListener("click",wM,!0),t.addEventListener("focus",xM,!0),t.addEventListener("blur",EM,!1),"undefined"!=typeof PointerEvent&&(n.addEventListener("pointerdown",bM,!0),n.addEventListener("pointermove",bM,!0),n.addEventListener("pointerup",bM,!0)),t.addEventListener("beforeunload",()=>{CM(e)},{once:!0}),pM.set(t,{focus:r})}var CM=(e,t)=>{const n=WI(e),r=HI(e);t&&r.removeEventListener("DOMContentLoaded",t),pM.has(n)&&(n.HTMLElement.prototype.focus=pM.get(n).focus,r.removeEventListener("keydown",yM,!0),r.removeEventListener("keyup",yM,!0),r.removeEventListener("click",wM,!0),n.removeEventListener("focus",xM,!0),n.removeEventListener("blur",EM,!1),"undefined"!=typeof PointerEvent&&(r.removeEventListener("pointerdown",bM,!0),r.removeEventListener("pointermove",bM,!0),r.removeEventListener("pointerup",bM,!0)),pM.delete(n))};function SM(){return"pointer"!==dM}"undefined"!=typeof document&&function(e){const t=HI(e);let n;"loading"!==t.readyState?kM(e):(n=()=>{kM(e)},t.addEventListener("DOMContentLoaded",n))}();var TM=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]),_M=!1,NM=0;function AM(e){"touch"===e.pointerType&&(_M=!0,setTimeout(()=>{_M=!1},50))}function DM(){if("undefined"!=typeof document)return 0===NM&&"undefined"!=typeof PointerEvent&&document.addEventListener("pointerup",AM),NM++,()=>{--NM>0||"undefined"!=typeof PointerEvent&&document.removeEventListener("pointerup",AM)}}function OM(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,a]=(0,Fu.useState)(!1),s=(0,Fu.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,Fu.useEffect)(DM,[]);let{addGlobalListener:l,removeAllGlobalListeners:u}=lM(),{hoverProps:c,triggerHoverEnd:d}=(0,Fu.useMemo)(()=>{let e=(e,t)=>{let i=s.target;s.pointerType="",s.target=null,"touch"!==t&&s.isHovered&&i&&(s.isHovered=!1,u(),r&&r({type:"hoverend",target:i,pointerType:t}),n&&n(!1),a(!1))},o={};return"undefined"!=typeof PointerEvent&&(o.onPointerEnter=r=>{_M&&"mouse"===r.pointerType||((r,o)=>{if(s.pointerType=o,i||"touch"===o||s.isHovered||!qI(r.currentTarget,KI(r)))return;s.isHovered=!0;let u=r.currentTarget;s.target=u,l(HI(KI(r)),"pointerover",t=>{s.isHovered&&s.target&&!qI(s.target,KI(t))&&e(0,t.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:u,pointerType:o}),n&&n(!0),a(!0)})(r,r.pointerType)},o.onPointerLeave=t=>{!i&&qI(t.currentTarget,KI(t))&&e(0,t.pointerType)}),{hoverProps:o,triggerHoverEnd:e}},[t,n,r,i,s,l,u]);return(0,Fu.useEffect)(()=>{i&&d({currentTarget:s.target},s.pointerType)},[i]),{hoverProps:c,isHovered:o}}function LM(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=(0,Fu.useRef)({isFocused:!1,isFocusVisible:t||SM()}),[o,a]=(0,Fu.useState)(!1),[s,l]=(0,Fu.useState)(()=>i.current.isFocused&&i.current.isFocusVisible),u=(0,Fu.useCallback)(()=>l(i.current.isFocused&&i.current.isFocusVisible),[]),c=(0,Fu.useCallback)(e=>{i.current.isFocused=e,i.current.isFocusVisible=SM(),a(e),u()},[u]);var d,f,p;d=e=>{i.current.isFocusVisible=e,u()},f=[n,o],p={enabled:o,isTextInput:n},kM(),(0,Fu.useEffect)(()=>{if(!1===(null==p?void 0:p.enabled))return;let e=(e,t)=>{(function(e,t,n){let r=HI(n?KI(n):void 0),i=n?KI(n):void 0;const o="undefined"!=typeof window?WI(i).HTMLInputElement:HTMLInputElement,a="undefined"!=typeof window?WI(i).HTMLTextAreaElement:HTMLTextAreaElement,s="undefined"!=typeof window?WI(i).HTMLElement:HTMLElement,l="undefined"!=typeof window?WI(i).KeyboardEvent:KeyboardEvent;let u=GI(r);return!((e=e||u instanceof o&&!TM.has(u.type)||u instanceof a||u instanceof s&&u.isContentEditable)&&"keyboard"===t&&n instanceof l&&!gM[n.key])})(!!(null==p?void 0:p.isTextInput),e,t)&&d(SM())};return fM.add(e),()=>{fM.delete(e)}},f);let{focusProps:h}=function(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=(0,Fu.useCallback)(e=>{if(KI(e)===e.currentTarget)return r&&r(e),i&&i(!1),!0},[r,i]),a=cM(o),s=(0,Fu.useCallback)(e=>{let t=KI(e);const r=HI(t),o=r?GI(r):GI();t===e.currentTarget&&t===o&&(n&&n(e),i&&i(!0),a(e))},[i,n,a]);return{focusProps:{onFocus:!t&&(n||i||r)?s:void 0,onBlur:t||!r&&!i?void 0:o}}}({isDisabled:r,onFocusChange:c}),{focusWithinProps:m}=function(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=(0,Fu.useRef)({isFocusWithin:!1}),{addGlobalListener:a,removeAllGlobalListeners:s}=lM(),l=(0,Fu.useCallback)(e=>{qI(e.currentTarget,KI(e))&&o.current.isFocusWithin&&!qI(e.currentTarget,e.relatedTarget)&&(o.current.isFocusWithin=!1,s(),n&&n(e),i&&i(!1))},[n,i,o,s]),u=cM(l),c=(0,Fu.useCallback)(e=>{if(!qI(e.currentTarget,KI(e)))return;let t=KI(e);const n=HI(t),s=GI(n);if(!o.current.isFocusWithin&&s===t){r&&r(e),i&&i(!0),o.current.isFocusWithin=!0,u(e);let t=e.currentTarget;a(n,"focus",e=>{let r=KI(e);if(o.current.isFocusWithin&&!qI(t,r)){let e=new n.defaultView.FocusEvent("blur",{relatedTarget:r});i=e,a=t,Object.defineProperty(i,"target",{value:a}),Object.defineProperty(i,"currentTarget",{value:a}),l(uM(e))}var i,a},{capture:!0})}},[r,i,u,a,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:l}}}({isDisabled:!r,onFocusWithinChange:c});return{isFocused:o,isFocusVisible:s,focusProps:r?m:h}}var IM=Object.defineProperty,MM=(e,t,n)=>(((e,t,n)=>{t in e?IM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),FM=new class{constructor(){MM(this,"current",this.detect()),MM(this,"handoffState","pending"),MM(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}};function PM(e){var t;return FM.isServer?null:null==e?document:null!=(t=null==e?void 0:e.ownerDocument)?t:document}function RM(e){return function(e){var t,n;return null!=(n=null==(t=function(e){var t,n;return FM.isServer?null:null==e?document:null!=(n=null==(t=null==e?void 0:e.getRootNode)?void 0:t.call(e))?n:document}(e))?void 0:t.activeElement)?n:null}(e)===e}function jM(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}function VM(){let e=[],t={addEventListener:(e,n,r,i)=>(e.addEventListener(n,r,i),t.add(()=>e.removeEventListener(n,r,i))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add(()=>cancelAnimationFrame(n))},nextFrame:(...e)=>t.requestAnimationFrame(()=>t.requestAnimationFrame(...e)),setTimeout(...e){let n=setTimeout(...e);return t.add(()=>clearTimeout(n))},microTask(...e){let n={current:!0};return jM(()=>{n.current&&e[0]()}),t.add(()=>{n.current=!1})},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:r})})},group(e){let t=VM();return e(t),this.add(()=>t.dispose())},add:t=>(e.includes(t)||e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function BM(){let[e]=(0,Fu.useState)(VM);return(0,Fu.useEffect)(()=>()=>e.dispose(),[e]),e}var zM=(e,t)=>{FM.isServer?(0,Fu.useEffect)(e,t):(0,Fu.useLayoutEffect)(e,t)};function $M(e){let t=(0,Fu.useRef)(e);return zM(()=>{t.current=e},[e]),t}var UM=function(e){let t=$M(e);return Fu.useCallback((...e)=>t.current(...e),[t])};function HM(e){return(0,Fu.useMemo)(()=>e,Object.values(e))}var WM=(0,Fu.createContext)(void 0);function qM(){return(0,Fu.useContext)(WM)}function GM(...e){return Array.from(new Set(e.flatMap(e=>"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}function KM(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(e=>`"${e}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,KM),r}var YM,QM=((YM=QM||{})[YM.None=0]="None",YM[YM.RenderStrategy=1]="RenderStrategy",YM[YM.Static=2]="Static",YM),XM=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(XM||{});function ZM(){let e=function(){let e=(0,Fu.useRef)([]),t=(0,Fu.useCallback)(t=>{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)},[]);return(...n)=>{if(!n.every(e=>null==e))return e.current=n,t}}();return(0,Fu.useCallback)(t=>function({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:a,mergeRefs:s}){s=null!=s?s:eF;let l=tF(t,e);if(o)return JM(l,n,r,a,s);let u=null!=i?i:0;if(2&u){let{static:e=!1,...t}=l;if(e)return JM(t,n,r,a,s)}if(1&u){let{unmount:e=!0,...t}=l;return KM(e?0:1,{0:()=>null,1:()=>JM({...t,hidden:!0,style:{display:"none"}},n,r,a,s)})}return JM(l,n,r,a,s)}({mergeRefs:e,...t}),[e])}function JM(e,t={},n,r,i){let{as:o=n,children:a,refName:s="ref",...l}=oF(e,["unmount","static"]),u=void 0!==e.ref?{[s]:e.ref}:{},c="function"==typeof a?a(t):a;"className"in l&&l.className&&"function"==typeof l.className&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let d={};if(t){let e=!1,n=[];for(let[r,i]of Object.entries(t))"boolean"==typeof i&&(e=!0),!0===i&&n.push(r.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`));if(e){d["data-headlessui-state"]=n.join(" ");for(let e of n)d[`data-${e}`]=""}}if(sF(o)&&(Object.keys(iF(l)).length>0||Object.keys(iF(d)).length>0)){if(!(!(0,Fu.isValidElement)(c)||Array.isArray(c)&&c.length>1||function(e){return sF(e.type)}(c))){let e=c.props,t=null==e?void 0:e.className,n="function"==typeof t?(...e)=>GM(t(...e),l.className):GM(t,l.className),r=n?{className:n}:{},o=tF(c.props,iF(oF(l,["ref"])));for(let i in d)i in o&&delete d[i];return(0,Fu.cloneElement)(c,Object.assign({},o,d,u,{ref:i(aF(c),u.ref)},r))}if(Object.keys(iF(l)).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(iF(l)).concat(Object.keys(iF(d))).map(e=>` - ${e}`).join("\n"),"","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(e=>` - ${e}`).join("\n")].join("\n"))}return(0,Fu.createElement)(o,Object.assign({},oF(l,["ref"]),!sF(o)&&u,!sF(o)&&d),c)}function eF(...e){return e.every(e=>null==e)?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}function tF(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let r in n)Object.assign(t,{[r](e,...t){let i=n[r];for(let n of i){if((e instanceof Event||(null==e?void 0:e.nativeEvent)instanceof Event)&&e.defaultPrevented)return;n(e,...t)}}});return t}function nF(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];for(let r in n)Object.assign(t,{[r](...e){let t=n[r];for(let n of t)null==n||n(...e)}});return t}function rF(e){var t;return Object.assign((0,Fu.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function iF(e){let t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}function oF(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function aF(e){return"19.2.4".split(".")[0]>="19"?e.props.ref:e.ref}function sF(e){return e===Fu.Fragment||e===Symbol.for("react.fragment")}function lF(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))cF(n,uF(t,r),i);return n}function uF(e,t){return e?e+"["+t+"]":t}function cF(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())cF(e,uF(t,r.toString()),i);else n instanceof Date?e.push([t,n.toISOString()]):"boolean"==typeof n?e.push([t,n?"1":"0"]):"string"==typeof n?e.push([t,n]):"number"==typeof n?e.push([t,`${n}`]):null==n?e.push([t,""]):function(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}(n)&&!(0,Fu.isValidElement)(n)&&lF(n,t,e)}var dF=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(dF||{}),fF=rF(function(e,t){var n;let{features:r=1,...i}=e,o={ref:t,"aria-hidden":!(2&~r)||(null!=(n=i["aria-hidden"])?n:void 0),hidden:!(4&~r)||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",...!(4&~r)&&!!(2&~r)&&{display:"none"}}};return ZM()({ourProps:o,theirProps:i,slot:{},defaultTag:"span",name:"Hidden"})}),pF=(0,Fu.createContext)(null);function hF({children:e}){let t=(0,Fu.useContext)(pF);if(!t)return Fu.createElement(Fu.Fragment,null,e);let{target:n}=t;return n?(0,_v.createPortal)(Fu.createElement(Fu.Fragment,null,e),n):null}function mF({data:e,form:t,disabled:n,onReset:r,overrides:i}){let[o,a]=(0,Fu.useState)(null),s=BM();return(0,Fu.useEffect)(()=>{if(r&&o)return s.addEventListener(o,"reset",r)},[o,t,r]),Fu.createElement(hF,null,Fu.createElement(gF,{setForm:a,formId:t}),lF(e).map(([e,r])=>Fu.createElement(fF,{features:dF.Hidden,...iF({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:e,value:r,...i})})))}function gF({setForm:e,formId:t}){return(0,Fu.useEffect)(()=>{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:Fu.createElement(fF,{features:dF.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:t=>{if(!t)return;let n=t.closest("form");n&&e(n)}})}var vF=(0,Fu.createContext)(void 0);function yF(){return(0,Fu.useContext)(vF)}function bF(e){return"object"==typeof e&&null!==e&&"nodeType"in e}function wF(e){return bF(e)&&"tagName"in e}function xF(e){return wF(e)&&"accessKey"in e}function EF(e){return wF(e)&&"tabIndex"in e}function kF(e){return xF(e)&&"INPUT"===e.nodeName}function CF(e){return xF(e)&&"LABEL"===e.nodeName}function SF(e){return xF(e)&&"FIELDSET"===e.nodeName}function TF(e){return xF(e)&&"LEGEND"===e.nodeName}function _F(e){let t=e.parentElement,n=null;for(;t&&!SF(t);)TF(t)&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(TF(t))return!1;t=t.previousElementSibling}return!0}(n))&&r}var NF=Symbol();function AF(...e){let t=(0,Fu.useRef)(e);(0,Fu.useEffect)(()=>{t.current=e},[e]);let n=UM(e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)});return e.every(e=>null==e||(null==e?void 0:e[NF]))?void 0:n}var DF=(0,Fu.createContext)(null);function OF(){let e=(0,Fu.useContext)(DF);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,OF),e}return e}DF.displayName="DescriptionContext";var LF,IF=rF(function(e,t){let n=(0,Fu.useId)(),r=qM(),{id:i=`headlessui-description-${n}`,...o}=e,a=OF(),s=AF(t);zM(()=>a.register(i),[i,a.register]);let l=HM({...a.slot,disabled:r||!1}),u={ref:s,...a.props,id:i};return ZM()({ourProps:u,theirProps:o,slot:l,defaultTag:"p",name:a.name||"Description"})}),MF=(Object.assign(IF,{}),(LF=MF||{}).Space=" ",LF.Enter="Enter",LF.Escape="Escape",LF.Backspace="Backspace",LF.Delete="Delete",LF.ArrowLeft="ArrowLeft",LF.ArrowUp="ArrowUp",LF.ArrowRight="ArrowRight",LF.ArrowDown="ArrowDown",LF.Home="Home",LF.End="End",LF.PageUp="PageUp",LF.PageDown="PageDown",LF.Tab="Tab",LF),FF=(0,Fu.createContext)(null);function PF(){let e=(0,Fu.useContext)(FF);if(null===e){let e=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,PF),e}return e}function RF(e){var t,n,r;let i=null!=(n=null==(t=(0,Fu.useContext)(FF))?void 0:t.value)?n:void 0;return(null!=(r=null==e?void 0:e.length)?r:0)>0?[i,...e].filter(Boolean).join(" "):i}FF.displayName="LabelContext";var jF=rF(function(e,t){var n;let r=(0,Fu.useId)(),i=PF(),o=yF(),a=qM(),{id:s=`headlessui-label-${r}`,htmlFor:l=(null!=o?o:null==(n=i.props)?void 0:n.htmlFor),passive:u=!1,...c}=e,d=AF(t);zM(()=>i.register(s),[s,i.register]);let f=UM(e=>{let t=e.currentTarget;if((e.target===e.currentTarget||!function(e){return!!wF(e)&&e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]')}(e.target))&&(CF(t)&&e.preventDefault(),i.props&&"onClick"in i.props&&"function"==typeof i.props.onClick&&i.props.onClick(e),CF(t))){let e=document.getElementById(t.htmlFor);if(e){let t=e.getAttribute("disabled");if("true"===t||""===t)return;let n=e.getAttribute("aria-disabled");if("true"===n||""===n)return;(kF(e)&&("file"===e.type||"radio"===e.type||"checkbox"===e.type)||"radio"===e.role||"checkbox"===e.role||"switch"===e.role)&&e.click(),e.focus({preventScroll:!0})}}}),p=HM({...i.slot,disabled:a||!1}),h={ref:d,...i.props,id:s,htmlFor:l,onClick:f};return u&&("onClick"in h&&(delete h.htmlFor,delete h.onClick),"onClick"in c&&delete c.onClick),ZM()({ourProps:h,theirProps:c,slot:p,defaultTag:l?"label":"div",name:i.name||"Label"})}),VF=Object.assign(jF,{});function BF(e,t,n){var r;let i,o=null!==(r=n.initialDeps)&&void 0!==r?r:[],a=!0;function s(){var r,s,l;let u;n.key&&(null==(r=n.debug)?void 0:r.call(n))&&(u=Date.now());const c=e();if(c.length===o.length&&!c.some((e,t)=>o[t]!==e))return i;let d;return o=c,n.key&&(null==(s=n.debug)?void 0:s.call(n))&&(d=Date.now()),i=t(...c),n.key&&(null==(l=n.debug)?void 0:l.call(n))&&(Math.round(100*(Date.now()-u)),Math.round(100*(Date.now()-d))),!(null==n?void 0:n.onChange)||a&&n.skipInitialOnChange||n.onChange(i),a=!1,i}return s.updateDeps=e=>{o=e},s}function zF(e,t){if(void 0===e)throw new Error("Unexpected undefined"+(t?`: ${t}`:""));return e}var $F=(e,t,n)=>{let r;return function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)}},UF=e=>{const{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},HF=e=>e,WF=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},qF=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const i=e=>{const{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(i(UF(n)),!r.ResizeObserver)return()=>{};const o=new r.ResizeObserver(t=>{const r=()=>{const e=t[0];if(null==e?void 0:e.borderBoxSize){const t=e.borderBoxSize[0];if(t)return void i({width:t.inlineSize,height:t.blockSize})}i(UF(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()});return o.observe(n,{box:"border-box"}),()=>{o.unobserve(n)}},GF={passive:!0},KF="undefined"==typeof window||"onscrollend"in window,YF=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let i=0;const o=e.options.useScrollendEvent&&KF?()=>{}:$F(r,()=>{t(i,!1)},e.options.isScrollingResetDelay),a=r=>()=>{const{horizontal:a,isRtl:s}=e.options;i=a?n.scrollLeft*(s?-1:1):n.scrollTop,o(),t(i,r)},s=a(!0),l=a(!1);n.addEventListener("scroll",s,GF);const u=e.options.useScrollendEvent&&KF;return u&&n.addEventListener("scrollend",l,GF),()=>{n.removeEventListener("scroll",s),u&&n.removeEventListener("scrollend",l)}},QF=(e,t,n)=>{if(null==t?void 0:t.borderBoxSize){const e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?"inlineSize":"blockSize"])}return e[n.options.horizontal?"offsetWidth":"offsetHeight"]},XF=(e,{adjustments:t=0,behavior:n},r)=>{var i,o;const a=e+t;null==(o=null==(i=r.scrollElement)?void 0:i.scrollTo)||o.call(i,{[r.options.horizontal?"left":"top"]:a,behavior:n})},ZF=class{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.now=()=>{var e,t,n,r;return null!==(e=null==(r=null==(n=null==(t=this.targetWindow)?void 0:t.performance)?void 0:n.now)?void 0:r.call(n))&&void 0!==e?e:Date.now()},this.observer=(()=>{let e=null;const t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver(e=>{e.forEach(e=>{const t=()=>{const t=e.target,n=this.indexFromElement(t);t.isConnected?this.shouldMeasureDuringScroll(n)&&this.resizeItem(n,this.options.measureElement(t,e,this)):this.observer.unobserve(t)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}):null);return{disconnect:()=>{var n;null==(n=t())||n.disconnect(),e=null},observe:e=>{var n;return null==(n=t())?void 0:n.observe(e,{box:"border-box"})},unobserve:e=>{var n;return null==(n=t())?void 0:n.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach(([t,n])=>{void 0===n&&delete e[t]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:HF,rangeExtractor:WF,onChange:()=>{},measureElement:QF,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,...e}},this.notify=e=>{var t,n;null==(n=(t=this.options).onChange)||n.call(t,this,e)},this.maybeNotify=BF(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{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(e=>e()),this.unsubs=[],this.observer.disconnect(),null!=this.rafId&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;const t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.maybeNotify();var n;this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=null!==(n=null==(e=this.scrollElement)?void 0:e.window)&&void 0!==n?n:null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.rafId=null,this.getSize=()=>{var e;return this.options.enabled?(this.scrollRect=null!==(e=this.scrollRect)&&void 0!==e?e:this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0)},this.getScrollOffset=()=>{var e;return this.options.enabled?(this.scrollOffset=null!==(e=this.scrollOffset)&&void 0!==e?e:"function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset,this.scrollOffset):(this.scrollOffset=null,0)},this.getFurthestMeasurement=(e,t)=>{const n=new Map,r=new Map;for(let i=t-1;i>=0;i--){const t=e[i];if(n.has(t.lane))continue;const o=r.get(t.lane);if(null==o||t.end>o.end?r.set(t.lane,t):t.end<o.end&&n.set(t.lane,!0),n.size===this.options.lanes)break}return r.size===this.options.lanes?Array.from(r.values()).sort((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end)[0]:void 0},this.getMeasurementOptions=BF(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(e,t,n,r,i,o)=>(void 0!==this.prevLanes&&this.prevLanes!==o&&(this.lanesChangedFlag=!0),this.prevLanes=o,this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i,lanes:o}),{key:!1}),this.getMeasurements=BF(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i,lanes:o},a)=>{if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(const c of this.laneAssignments.keys())c>=e&&this.laneAssignments.delete(c);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),0!==this.measurementsCache.length||this.lanesSettling||(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));const s=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1);const l=this.measurementsCache.slice(0,s),u=new Array(o).fill(void 0);for(let c=0;c<s;c++){const e=l[c];e&&(u[e.lane]=c)}for(let c=s;c<e;c++){const e=r(c),i=this.laneAssignments.get(c);let o,s;if(void 0!==i&&this.options.lanes>1){o=i;const e=u[o],r=void 0!==e?l[e]:void 0;s=r?r.end+this.options.gap:t+n}else{const e=1===this.options.lanes?l[c-1]:this.getFurthestMeasurement(l,c);s=e?e.end+this.options.gap:t+n,o=e?e.lane:c%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(c,o)}const d=a.get(e),f="number"==typeof d?d:this.options.estimateSize(c),p=s+f;l[c]={index:c,start:s,size:f,end:p,key:e,lane:o},u[o]=c}return this.measurementsCache=l,l},{key:!1,debug:()=>this.options.debug}),this.calculateRange=BF(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,r)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:n,lanes:r}){const i=e.length-1;if(e.length<=r)return{startIndex:0,endIndex:i};let o=JF(0,i,t=>e[t].start,n),a=o;if(1===r)for(;a<i&&e[a].end<n+t;)a++;else if(r>1){const s=Array(r).fill(0);for(;a<i&&s.some(e=>e<n+t);){const t=e[a];s[t.lane]=t.end,a++}const l=Array(r).fill(n+t);for(;o>=0&&l.some(e=>e>=n);){const t=e[o];l[t.lane]=t.start,o--}o=Math.max(0,o-o%r),a=Math.min(i,a+(r-1-a%r))}return{startIndex:o,endIndex:a}}({measurements:e,outerSize:t,scrollOffset:n,lanes:r}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=BF(()=>{let e=null,t=null;const n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,n,r,i)=>null===r||null===i?[]:e({startIndex:r,endIndex:i,overscan:t,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{const t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):-1},this.shouldMeasureDuringScroll=e=>{var t,n;if(!this.scrollState||"smooth"!==this.scrollState.behavior)return!0;const r=null!==(t=this.scrollState.index)&&void 0!==t?t:null==(n=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))?void 0:n.index;if(void 0!==r&&this.range){const t=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),n=Math.max(0,r-t),i=Math.min(this.options.count-1,r+t);return e>=n&&e<=i}return!0},this.measureElement=e=>{if(!e)return void this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});const t=this.indexFromElement(e),n=this.options.getItemKey(t),r=this.elementsCache.get(n);r!==e&&(r&&this.observer.unobserve(r),this.observer.observe(e),this.elementsCache.set(n,e)),this.isScrolling&&!this.scrollState||!this.shouldMeasureDuringScroll(t)||this.resizeItem(t,this.options.measureElement(e,void 0,this))},this.resizeItem=(e,t)=>{var n,r;const i=this.measurementsCache[e];if(!i)return;const o=t-(null!==(n=this.itemSizeCache.get(i.key))&&void 0!==n?n:i.size);0!==o&&("smooth"!==(null==(r=this.scrollState)?void 0:r.behavior)&&(void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(i,o,this):i.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=o,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(i.index),this.itemSizeCache=new Map(this.itemSizeCache.set(i.key,t)),this.notify(!1))},this.getVirtualItems=BF(()=>[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{const n=[];for(let r=0,i=e.length;r<i;r++){const i=t[e[r]];n.push(i)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{const t=this.getMeasurements();if(0!==t.length)return zF(t[JF(0,t.length-1,e=>zF(t[e]).start,e)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(e,t,n=0)=>{if(!this.scrollElement)return 0;const r=this.getSize(),i=this.getScrollOffset();"auto"===t&&(t=e>=i+r?"end":"start"),"center"===t?e+=(n-r)/2:"end"===t&&(e-=r);const o=this.getMaxScrollOffset();return Math.max(Math.min(o,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const n=this.getSize(),r=this.getScrollOffset(),i=this.measurementsCache[e];if(!i)return;if("auto"===t)if(i.end>=r+n-this.options.scrollPaddingEnd)t="end";else{if(!(i.start<=r+this.options.scrollPaddingStart))return[r,t];t="start"}if("end"===t&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];const o="end"===t?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(o,t,i.size),t]},this.scrollToOffset=(e,{align:t="start",behavior:n="auto"}={})=>{const r=this.getOffsetForAlignment(e,t);this.scrollState={index:null,align:t,behavior:n,startedAt:this.now(),lastTargetOffset:r,stableFrames:0},this._scrollToOffset(r,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollToIndex=(e,{align:t="auto",behavior:n="auto"}={})=>{e=Math.max(0,Math.min(e,this.options.count-1));const r=this.getOffsetForIndex(e,t);if(!r)return;const[i,o]=r,a=this.now();this.scrollState={index:e,align:o,behavior:n,startedAt:a,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollBy=(e,{behavior:t="auto"}={})=>{const n=this.getScrollOffset()+e;this.scrollState={index:null,align:"start",behavior:t,startedAt:this.now(),lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:t}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{var e;const t=this.getMeasurements();let n;if(0===t.length)n=this.options.paddingStart;else if(1===this.options.lanes){var r;n=null!==(r=null==(e=t[t.length-1])?void 0:e.end)&&void 0!==r?r:0}else{const e=Array(this.options.lanes).fill(null);let r=t.length-1;for(;r>=0&&e.some(e=>null===e);){const n=t[r];null===e[n.lane]&&(e[n.lane]=n.end),r--}n=Math.max(...e.filter(e=>null!==e))}return Math.max(n-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(e)}scheduleScrollReconcile(){this.targetWindow?null==this.rafId&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()})):this.scrollState=null}reconcileScroll(){if(!this.scrollState)return;if(!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3)return void(this.scrollState=null);const e=null!=this.scrollState.index?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,t=e?e[0]:this.scrollState.lastTargetOffset,n=t!==this.scrollState.lastTargetOffset;if(!n&&((e,t)=>Math.abs(e-t)<1.01)(t,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=1)return void(this.scrollState=null)}else this.scrollState.stableFrames=0,n&&(this.scrollState.lastTargetOffset=t,this.scrollState.behavior="auto",this._scrollToOffset(t,{adjustments:void 0,behavior:"auto"}));this.scheduleScrollReconcile()}},JF=(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))return i;t=i-1}}return e>0?e-1:0},eP="undefined"!=typeof document?Fu.useLayoutEffect:Fu.useEffect;function tP(e,t){return null!==e&&null!==t&&"object"==typeof e&&"object"==typeof t&&"id"in e&&"id"in t?e.id===t.id:e===t}function nP(e){if(null===e)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function rP(e,t,n=!1){let[r,i]=(0,Fu.useState)(()=>nP(t));return zM(()=>{if(!t||!e)return;let n=VM();return n.requestAnimationFrame(function e(){n.requestAnimationFrame(e),i(e=>{let n=nP(t);return n.width===e.width&&n.height===e.height?e:n})}),()=>{n.dispose()}},[t,e]),n?{width:`${r.width}px`,height:`${r.height}px`}:r}var iP,oP,aP,sP=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(sP||{}),lP=class extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return void 0===t&&(t=this.factory(e),this.set(e,t)),t}},uP=Object.defineProperty,cP=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},dP=(e,t,n)=>(cP(e,t,"read from private field"),n?n.call(e):t.get(e)),fP=(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)},pP=(e,t,n,r)=>(cP(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),hP=class{constructor(e){fP(this,iP,{}),fP(this,oP,new lP(()=>new Set)),fP(this,aP,new Set),((e,t)=>{((e,t,n)=>{t in e?uP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(this,t+"",VM())})(0,"disposables"),pP(this,iP,e),FM.isServer&&this.disposables.microTask(()=>{this.dispose()})}dispose(){this.disposables.dispose()}get state(){return dP(this,iP)}subscribe(e,t){if(FM.isServer)return()=>{};let n={selector:e,callback:t,current:e(dP(this,iP))};return dP(this,aP).add(n),this.disposables.add(()=>{dP(this,aP).delete(n)})}on(e,t){return FM.isServer?()=>{}:(dP(this,oP).get(e).add(t),this.disposables.add(()=>{dP(this,oP).get(e).delete(t)}))}send(e){let t=this.reduce(dP(this,iP),e);if(t!==dP(this,iP)){pP(this,iP,t);for(let e of dP(this,aP)){let t=e.selector(dP(this,iP));mP(e.current,t)||(e.current=t,e.callback(t))}for(let t of dP(this,oP).get(e.type))t(dP(this,iP),e)}}};function mP(e,t){return!!Object.is(e,t)||"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&(Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&gP(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size===t.size&&gP(e.entries(),t.entries()):!(!vP(e)||!vP(t))&&gP(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()))}function gP(e,t){for(;;){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}}function vP(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}iP=new WeakMap,oP=new WeakMap,aP=new WeakMap;var yP,bP=Object.defineProperty,wP=(e,t,n)=>(((e,t,n)=>{t in e?bP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),xP=((yP=xP||{})[yP.Push=0]="Push",yP[yP.Pop=1]="Pop",yP),EP={0(e,t){let n=t.id,r=e.stack,i=e.stack.indexOf(n);if(-1!==i){let t=e.stack.slice();return t.splice(i,1),t.push(n),r=t,{...e,stack:r}}return{...e,stack:[...e.stack,n]}},1(e,t){let n=t.id,r=e.stack.indexOf(n);if(-1===r)return e;let i=e.stack.slice();return i.splice(r,1),{...e,stack:i}}},kP=class e extends hP{constructor(){super(...arguments),wP(this,"actions",{push:e=>this.send({type:0,id:e}),pop:e=>this.send({type:1,id:e})}),wP(this,"selectors",{isTop:(e,t)=>e.stack[e.stack.length-1]===t,inStack:(e,t)=>e.stack.includes(t)})}static new(){return new e({stack:[]})}reduce(e,t){return KM(t.type,EP,e,t)}},CP=new lP(()=>kP.new()),SP=s(e=>{var t=f(),n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=t.useSyncExternalStore,i=t.useRef,o=t.useEffect,a=t.useMemo,s=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,l,u,c){var d=i(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=a(function(){function e(e){if(!o){if(o=!0,r=e,e=u(e),void 0!==c&&f.hasValue){var t=f.value;if(c(t,e))return i=t}return i=e}if(t=i,n(r,e))return t;var a=u(e);return void 0!==c&&c(t,a)?(r=e,t):(r=e,i=a)}var r,i,o=!1,a=void 0===l?null:l;return[function(){return e(t())},null===a?void 0:function(){return e(a())}]},[t,l,u,c]);var p=r(e,d[0],d[1]);return o(function(){f.hasValue=!0,f.value=p},[p]),s(p),p}}),TP=s((e,t)=>{t.exports=SP()})();function _P(e,t,n=mP){return(0,TP.useSyncExternalStoreWithSelector)(UM(t=>e.subscribe(NP,t)),UM(()=>e.state),UM(()=>e.state),UM(t),n)}function NP(e){return e}function AP(e,t){let n=(0,Fu.useId)(),r=CP.get(t),[i,o]=_P(r,(0,Fu.useCallback)(e=>[r.selectors.isTop(e,n),r.selectors.inStack(e,n)],[r,n]));return zM(()=>{if(e)return r.actions.push(n),()=>r.actions.pop(n)},[r,e,n]),!!e&&(!o||i)}var DP=new Map,OP=new Map;function LP(e){var t;let n=null!=(t=OP.get(e))?t:0;return OP.set(e,n+1),0!==n||(DP.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>function(e){var t;let n=null!=(t=OP.get(e))?t:1;if(1===n?OP.delete(e):OP.set(e,n-1),1!==n)return;let r=DP.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,DP.delete(e))}(e)}var IP,MP,FP=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","details>summary","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),PP=(["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(","),(MP=PP||{})[MP.First=1]="First",MP[MP.Previous=2]="Previous",MP[MP.Next=4]="Next",MP[MP.Last=8]="Last",MP[MP.WrapAround=16]="WrapAround",MP[MP.NoScroll=32]="NoScroll",MP[MP.AutoFocus=64]="AutoFocus",MP),RP=((IP=RP||{})[IP.Error=0]="Error",IP[IP.Overflow=1]="Overflow",IP[IP.Success=2]="Success",IP[IP.Underflow=3]="Underflow",IP),jP=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(jP||{}),VP=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(VP||{}),BP=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(BP||{});function zP(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function $P(){return zP()||/Android/gi.test(window.navigator.userAgent)}function UP(e,t,n,r){let i=$M(n);(0,Fu.useEffect)(()=>{if(e)return document.addEventListener(t,n,r),()=>document.removeEventListener(t,n,r);function n(e){i.current(e)}},[e,t,r])}function HP(...e){return(0,Fu.useMemo)(()=>PM(...e),[...e])}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0)),["textarea","input"].join(",");var WP=(e=>(e[e.Ignore=0]="Ignore",e[e.Select=1]="Select",e[e.Close=2]="Close",e))(WP||{}),qP={Ignore:{kind:0},Select:e=>({kind:1,target:e}),Close:{kind:2}};function GP(e){let t=(0,Fu.useRef)({value:"",selectionStart:null,selectionEnd:null});return function(e,n,r,i){let o=$M(e=>{let n=e.target;kF(n)&&(t.current={value:n.value,selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})});(0,Fu.useEffect)(()=>{function t(e){o.current(e)}return(e=null!=e?e:window).addEventListener(n,t,i),()=>e.removeEventListener(n,t,i)},[e,n,i])}(e,"blur"),UM(()=>{if(!RM(e)&&kF(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;null!==n&&null!==r&&e.setSelectionRange(n,r)}t.current={value:"",selectionStart:null,selectionEnd:null}}})}function KP(e,t){return(0,Fu.useMemo)(()=>{var n;if(e.type)return e.type;let r=null!=(n=e.as)?n:"button";return"string"==typeof r&&"button"===r.toLowerCase()||"BUTTON"===(null==t?void 0:t.tagName)&&!t.hasAttribute("type")?"button":void 0},[e.type,e.as,t])}function YP(){let e;return{before({doc:t}){var n;let r=t.documentElement,i=null!=(n=t.defaultView)?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 QP(e){let t={};for(let n of e)Object.assign(t,n(t));return t}var XP,ZP,JP=function(e,t){let n=new Map,r=new Set;return{getSnapshot:()=>n,subscribe:e=>(r.add(e),()=>r.delete(e)),dispatch(e,...i){let o=t[e].call(n,...i);o&&(n=o,r.forEach(e=>e()))}}}(0,{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:VM(),meta:new Set,computedMeta:{}};return r.count++,r.meta.add(t),r.computedMeta=QP(r.meta),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t),n.computedMeta=QP(n.meta)),this},SCROLL_PREVENT(e){let t={doc:e.doc,d:e.d,meta:()=>e.computedMeta},n=[zP()?{before({doc:e,d:t,meta:n}){function r(e){for(let t of n().containers)for(let n of t())if(n.contains(e))return!0;return!1}t.microTask(()=>{var n;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let n=VM();n.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>n.dispose()))}let i=null!=(n=window.scrollY)?n:window.pageYOffset,o=null;t.addEventListener(e,"click",t=>{if(EF(t.target))try{let n=t.target.closest("a");if(!n)return;let{hash:i}=new URL(n.href),a=e.querySelector(i);EF(a)&&!r(a)&&(o=a)}catch(oV){}},!0),t.group(n=>{t.addEventListener(e,"touchstart",e=>{if(n.dispose(),EF(e.target)&&function(e){return wF(e)&&"style"in e}(e.target))if(r(e.target)){let t=e.target;for(;t.parentElement&&r(t.parentElement);)t=t.parentElement;n.style(t,"overscrollBehavior","contain")}else n.style(e.target,"touchAction","none")})}),t.addEventListener(e,"touchmove",e=>{if(EF(e.target)){if(kF(e.target))return;if(r(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}},{passive:!1}),t.add(()=>{var e;i!==(null!=(e=window.scrollY)?e:window.pageYOffset)&&window.scrollTo(0,i),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)})})}}:{},YP(),{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];n.forEach(({before:e})=>null==e?void 0:e(t)),n.forEach(({after:e})=>null==e?void 0:e(t))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});function eR(e){return[e.screenX,e.screenY]}JP.subscribe(()=>{let e=JP.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&JP.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&JP.dispatch("TEARDOWN",n)}}),"undefined"!=typeof process&&"undefined"!=typeof globalThis&&"undefined"!=typeof Element&&"test"===(null==(XP=null==process?void 0:{})?void 0:XP.NODE_ENV)&&void 0===(null==(ZP=null==Element?void 0:Element.prototype)?void 0:ZP.getAnimations)&&(Element.prototype.getAnimations=function(){return[]});var tR,nR=((tR=nR||{})[tR.None=0]="None",tR[tR.Closed=1]="Closed",tR[tR.Enter=2]="Enter",tR[tR.Leave=4]="Leave",tR);function rR(e){let t={};for(let n in e)!0===e[n]&&(t[`data-${n}`]="");return t}function iR(e,t){let n=(0,Fu.useRef)([]),r=UM(e);(0,Fu.useEffect)(()=>{let e=[...n.current];for(let[i,o]of t.entries())if(n.current[i]!==o){let i=r(t,e);return n.current=t,i}},[r,...t])}var oR={...Fu},aR=oR.useInsertionEffect||(e=>e());function sR(e){const t=Fu.useRef(()=>{});return aR(()=>{t.current=e}),Fu.useCallback(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)},[])}var lR="undefined"!=typeof document?Fu.useLayoutEffect:Fu.useEffect,uR=!1,cR=0,dR=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+cR++,fR=oR.useId||function(){const[e,t]=Fu.useState(()=>uR?dR():void 0);return lR(()=>{null==e&&t(dR())},[]),Fu.useEffect(()=>{uR=!0},[]),e},pR=Fu.createContext(null),hR=Fu.createContext(null),mR="data-floating-ui-focusable";var gR="active",vR="selected";function yR(e,t,n){const r=new Map,i="item"===n;let o=e;if(i&&e){const{[gR]:t,[vR]:n,...r}=e;o=r}return{..."floating"===n&&{tabIndex:-1,[mR]:""},...o,...t.map(t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r}).concat(e).reduce((e,t)=>t?(Object.entries(t).forEach(t=>{let[n,o]=t;var a;i&&[gR,vR].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof o&&(null==(a=r.get(n))||a.push(o),e[n]=function(){for(var e,t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return null==(e=r.get(n))?void 0:e.map(e=>e(...i)).find(e=>void 0!==e)})):e[n]=o)}),e):e,{})}}function bR(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}function wR(e,t){const{open:n,elements:r}=e,{enabled:i=!0,overflowRef:o,scrollRef:a,onChange:s}=t,l=sR(s),u=Fu.useRef(!1),c=Fu.useRef(null),d=Fu.useRef(null);Fu.useEffect(()=>{if(!i)return;function e(e){if(e.ctrlKey||!t||null==o.current)return;const n=e.deltaY,r=o.current.top>=-.5,i=o.current.bottom>=-.5,a=t.scrollHeight-t.clientHeight,s=n<0?-1:1,u=n<0?"max":"min";t.scrollHeight<=t.clientHeight||(!r&&n>0||!i&&n<0?(e.preventDefault(),_v.flushSync(()=>{l(e=>e+Math[u](n,a*s))})):/firefox/i.test(function(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}())&&(t.scrollTop+=n))}const t=(null==a?void 0:a.current)||r.floating;return n&&t?(t.addEventListener("wheel",e),requestAnimationFrame(()=>{c.current=t.scrollTop,null!=o.current&&(d.current={...o.current})}),()=>{c.current=null,d.current=null,t.removeEventListener("wheel",e)}):void 0},[i,n,r.floating,o,a,l]);const f=Fu.useMemo(()=>({onKeyDown(){u.current=!0},onWheel(){u.current=!1},onPointerMove(){u.current=!1},onScroll(){const e=(null==a?void 0:a.current)||r.floating;if(o.current&&e&&u.current){if(null!==c.current){const t=e.scrollTop-c.current;(o.current.bottom<-.5&&t<-1||o.current.top<-.5&&t>1)&&_v.flushSync(()=>l(e=>e+t))}requestAnimationFrame(()=>{c.current=e.scrollTop})}}}),[r.floating,l,o,a]);return Fu.useMemo(()=>i?{floating:f}:{},[i,f])}var xR=(0,Fu.createContext)({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});xR.displayName="FloatingContext";var ER=(0,Fu.createContext)(null);function kR(e=null){!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=(0,Fu.useContext)(ER),n=(0,Fu.useMemo)(()=>e,[JSON.stringify(e,(e,t)=>{var n;return null!=(n=null==t?void 0:t.outerHTML)?n:t})]);zM(()=>{null==t||t(null!=n?n:null)},[t,n]);let r=(0,Fu.useContext)(xR);return(0,Fu.useMemo)(()=>[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}function CR({children:e,enabled:t=!0}){let[n,r]=(0,Fu.useState)(null),[i,o]=(0,Fu.useState)(0),a=(0,Fu.useRef)(null),[s,l]=(0,Fu.useState)(null);!function(e){zM(()=>{if(!e)return;let t=new MutationObserver(()=>{let t=window.getComputedStyle(e).maxHeight,n=parseFloat(t);if(isNaN(n))return;let r=parseInt(t);isNaN(r)||n!==r&&(e.style.maxHeight=`${Math.ceil(n)}px`)});return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}},[e])}(s);let u=t&&null!==n&&null!==s,{to:c="bottom",gap:d=0,offset:f=0,padding:p=0,inner:h}=function(e,t){var n,r,i;let o=SR(null!=(n=null==e?void 0:e.gap)?n:"var(--anchor-gap, 0)",t),a=SR(null!=(r=null==e?void 0:e.offset)?r:"var(--anchor-offset, 0)",t),s=SR(null!=(i=null==e?void 0:e.padding)?i:"var(--anchor-padding, 0)",t);return{...e,gap:o,offset:a,padding:s}}(n,s),[m,g="center"]=c.split(" ");zM(()=>{u&&o(0)},[u]);let{refs:v,floatingStyles:y,context:b}=function(e){void 0===e&&(e={});const{nodeId:t}=e,n=function(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=fR(),o=Fu.useRef({}),[a]=Fu.useState(()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach(e=>e(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter(e=>e!==n))||[])}}}()),s=null!=((null==(l=Fu.useContext(pR))?void 0:l.id)||null);var l;const[u,c]=Fu.useState(r.reference),d=sR((e,t,r)=>{o.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:s}),null==n||n(e,t,r)}),f=Fu.useMemo(()=>({setPositionReference:c}),[]),p=Fu.useMemo(()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference}),[u,r.reference,r.floating]);return Fu.useMemo(()=>({dataRef:o,open:t,onOpenChange:d,elements:p,events:a,floatingId:i,refs:f}),[t,d,p,a,i,f])}({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=Fu.useState(null),[s,l]=Fu.useState(null),u=(null==i?void 0:i.domReference)||o,c=Fu.useRef(null),d=Fu.useContext(hR);lR(()=>{u&&(c.current=u)},[u]);const f=mx({...e,elements:{...i,...s&&{reference:s}}}),p=Fu.useCallback(e=>{const t=kw(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l(t),f.refs.setReference(t)},[f.refs]),h=Fu.useCallback(e=>{(kw(e)||null===e)&&(c.current=e,a(e)),(kw(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!kw(e))&&f.refs.setReference(e)},[f.refs]),m=Fu.useMemo(()=>({...f.refs,setReference:h,setPositionReference:p,domReference:c}),[f.refs,h,p]),g=Fu.useMemo(()=>({...f.elements,domReference:u}),[f.elements,u]),v=Fu.useMemo(()=>({...f,...r,refs:m,elements:g,nodeId:t}),[f,m,g,t,r]);return lR(()=>{r.dataRef.current.floatingContext=v;const e=null==d?void 0:d.nodesRef.current.find(e=>e.id===t);e&&(e.context=v)}),Fu.useMemo(()=>({...f,context:v,refs:m,elements:g}),[f,m,g,v])}({open:u,placement:"selection"===m?"center"===g?"bottom":`bottom-${g}`:"center"===g?`${m}`:`${m}-${g}`,strategy:"absolute",transform:!1,middleware:[gx({mainAxis:"selection"===m?0:d,crossAxis:f}),vx({padding:p}),"selection"!==m&&bx({padding:p}),"selection"===m&&h?(E={...h,padding:p,overflowRef:a,offset:i,minItemsVisible:4,referenceOverflowThreshold:p,onFallbackChange(e){var t,n;if(!e)return;let r=b.elements.floating;if(!r)return;let i=parseFloat(getComputedStyle(r).scrollPaddingBottom)||0,a=Math.min(4,r.childElementCount),s=0,l=0;for(let o of null!=(n=null==(t=b.elements.floating)?void 0:t.childNodes)?n:[])if(xF(o)){let e=o.offsetTop,t=e+o.clientHeight+i,n=r.scrollTop,u=n+r.clientHeight;if(!(e>=n&&t<=u)){l=Math.max(0,Math.min(t,u)-Math.max(e,n)),s=o.clientHeight;break}a--}a>=1&&o(e=>{let t=s*a-l+i;return e>=t?e:t})}},{name:"inner",options:E,async fn(e){const{listRef:t,overflowRef:n,onFallbackChange:r,offset:i=0,index:o=0,minItemsVisible:a=4,referenceOverflowThreshold:s=0,scrollRef:l,...u}=Zb(E,e),{rects:c,elements:{floating:d}}=e,f=t.current[o],p=(null==l?void 0:l.current)||d,h=d.clientTop||p.clientTop,m=0!==d.clientTop,g=0!==p.clientTop,v=d===p;if(!f)return{};const y={...e,...await gx(-f.offsetTop-d.clientTop-c.reference.height/2-f.offsetHeight/2-i).fn(e)},b=await ax(bR(y,p.scrollHeight+h+d.clientTop),u),w=await ax(y,{...u,elementContext:"reference"}),x=qb(0,b.top),k=y.y+x,C=(p.scrollHeight>p.clientHeight?e=>e:Gb)(qb(0,p.scrollHeight+(m&&v||g?2*h:0)-x-qb(0,b.bottom)));if(p.style.maxHeight=C+"px",p.scrollTop=x,r){const e=p.offsetHeight<f.offsetHeight*Wb(a,t.current.length)-1||w.top>=-s||w.bottom>=-s;_v.flushSync(()=>r(e))}return n&&(n.current=await ax(bR({...y,y:k},p.offsetHeight+h+d.clientTop),u)),{y:k}}}):null,wx({padding:p,apply({availableWidth:e,availableHeight:t,elements:n}){Object.assign(n.floating.style,{overflow:"auto",maxWidth:`${e}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${t}px)`})}})].filter(Boolean),whileElementsMounted:ox}),[w=m,x=g]=b.placement.split("-");var E;"selection"===m&&(w="selection");let k=(0,Fu.useMemo)(()=>({anchor:[w,x].filter(Boolean).join(" ")}),[w,x]),{getReferenceProps:C,getFloatingProps:S}=function(e){void 0===e&&(e=[]);const t=e.map(e=>null==e?void 0:e.reference),n=e.map(e=>null==e?void 0:e.floating),r=e.map(e=>null==e?void 0:e.item),i=Fu.useCallback(t=>yR(t,e,"reference"),t),o=Fu.useCallback(t=>yR(t,e,"floating"),n),a=Fu.useCallback(t=>yR(t,e,"item"),r);return Fu.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a}),[i,o,a])}([wR(b,{overflowRef:a,onChange:o})]),T=UM(e=>{l(e),v.setFloating(e)});return Fu.createElement(ER.Provider,{value:r},Fu.createElement(xR.Provider,{value:{setFloating:T,setReference:v.setReference,styles:y,getReferenceProps:C,getFloatingProps:S,slot:k}},e))}function SR(e,t,n=void 0){let r=BM(),i=UM((e,t)=>{if(null==e)return[n,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[n,null];let i=_R(e,t);return[i,n=>{let o=TR(e);{let a=o.map(e=>window.getComputedStyle(t).getPropertyValue(e));r.requestAnimationFrame(function s(){r.nextFrame(s);let l=!1;for(let[e,n]of o.entries()){let r=window.getComputedStyle(t).getPropertyValue(n);if(a[e]!==r){a[e]=r,l=!0;break}}if(!l)return;let u=_R(e,t);i!==u&&(n(u),i=u)})}return r.dispose}]}return[n,null]}),o=(0,Fu.useMemo)(()=>i(e,t)[0],[e,t]),[a=o,s]=(0,Fu.useState)();return zM(()=>{let[n,r]=i(e,t);if(s(n),r)return r(s)},[e,t]),a}function TR(e){let t=/var\((.*)\)/.exec(e);if(t){let e=t[1].indexOf(",");if(-1===e)return[t[1]];let n=t[1].slice(0,e).trim(),r=t[1].slice(e+1).trim();return r?[n,...TR(r)]:[n]}return[]}function _R(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}ER.displayName="PlacementContext";var NR=Fu.forwardRef(function({children:e,freeze:t},n){let r=AR(t,e);return(0,Fu.isValidElement)(r)?(0,Fu.cloneElement)(r,{ref:n}):Fu.createElement(Fu.Fragment,null,r)});function AR(e,t){let[n,r]=(0,Fu.useState)(t);return!e&&n!==t&&r(t),e?n:t}var DR=(0,Fu.createContext)(null);DR.displayName="OpenClosedContext";var OR=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(OR||{});function LR({value:e,children:t}){return Fu.createElement(DR.Provider,{value:e},t)}var IR=[];!function(){function e(){"loading"!==document.readyState&&((()=>{function e(e){if(!EF(e.target)||e.target===document.body||IR[0]===e.target)return;let t=e.target;t=t.closest(FP),IR.unshift(null!=t?t:e.target),IR=IR.filter(e=>null!=e&&e.isConnected),IR.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})})(),document.removeEventListener("DOMContentLoaded",e))}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",e),e())}();var MR=(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))(MR||{});function FR(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=null!=r?r:-1;switch(e.focus){case 0:for(let e=0;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 1:-1===i&&(i=n.length);for(let e=i-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=i+1;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 3:for(let e=n.length-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;r<n.length;++r)if(t.resolveId(n[r],r,n)===e.id)return r;return r;case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}}function PR(e){let t=UM(e),n=(0,Fu.useRef)(!1);(0,Fu.useEffect)(()=>(n.current=!1,()=>{n.current=!0,jM(()=>{n.current&&t()})}),[t])}var RR=(0,Fu.createContext)(!1);function jR(){return(0,Fu.useContext)(RR)}var VR=Fu.Fragment,BR=rF(function(e,t){let{ownerDocument:n=null,...r}=e,i=(0,Fu.useRef)(null),o=AF(function(e,t=!0){return Object.assign(e,{[NF]:t})}(e=>{i.current=e}),t),a=HP(i.current),s=function(e){let t=jR(),n=(0,Fu.useContext)($R),[r,i]=(0,Fu.useState)(()=>{var r;if(!t&&null!==n)return null!=(r=n.current)?r:null;if(FM.isServer)return null;let i=null==e?void 0:e.getElementById("headlessui-portal-root");if(i)return i;if(null===e)return null;let o=e.createElement("div");return o.setAttribute("id","headlessui-portal-root"),e.body.appendChild(o)});return(0,Fu.useEffect)(()=>{null!==r&&(null!=e&&e.body.contains(r)||null==e||e.body.appendChild(r))},[r,e]),(0,Fu.useEffect)(()=>{t||null!==n&&i(n.current)},[n,i,t]),r}(null!=n?n:a),l=(0,Fu.useContext)(UR),u=BM(),c=ZM();return PR(()=>{var e;s&&s.childNodes.length<=0&&(null==(e=s.parentElement)||e.removeChild(s))}),s?(0,_v.createPortal)(Fu.createElement("div",{"data-headlessui-portal":"",ref:e=>{u.dispose(),l&&e&&u.add(l.register(e))}},c({ourProps:{ref:o},theirProps:r,slot:{},defaultTag:VR,name:"Portal"})),s):null}),zR=Fu.Fragment,$R=(0,Fu.createContext)(null),UR=(0,Fu.createContext)(null),HR=rF(function(e,t){let n=AF(t),{enabled:r=!0,ownerDocument:i,...o}=e,a=ZM();return r?Fu.createElement(BR,{...o,ownerDocument:i,ref:n}):a({ourProps:{ref:n},theirProps:o,slot:{},defaultTag:VR,name:"Portal"})}),WR=rF(function(e,t){let{target:n,...r}=e,i={ref:AF(t)},o=ZM();return Fu.createElement($R.Provider,{value:n},o({ourProps:i,theirProps:r,defaultTag:zR,name:"Popover.Group"}))}),qR=Object.assign(HR,{Group:WR}),GR={Idle:{kind:"Idle"},Tracked:e=>({kind:"Tracked",position:e}),Moved:{kind:"Moved"}};function KR(e){let t=e.getBoundingClientRect();return`${t.x},${t.y}`}var YR,QR=Object.defineProperty,XR=(e,t,n)=>(((e,t,n)=>{t in e?QR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),ZR=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ZR||{}),JR=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(JR||{}),ej=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(ej||{}),tj=((YR=tj||{})[YR.OpenCombobox=0]="OpenCombobox",YR[YR.CloseCombobox=1]="CloseCombobox",YR[YR.GoToOption=2]="GoToOption",YR[YR.SetTyping=3]="SetTyping",YR[YR.RegisterOption=4]="RegisterOption",YR[YR.UnregisterOption=5]="UnregisterOption",YR[YR.DefaultToFirstOption=6]="DefaultToFirstOption",YR[YR.SetActivationTrigger=7]="SetActivationTrigger",YR[YR.UpdateVirtualConfiguration=8]="UpdateVirtualConfiguration",YR[YR.SetInputElement=9]="SetInputElement",YR[YR.SetButtonElement=10]="SetButtonElement",YR[YR.SetOptionsElement=11]="SetOptionsElement",YR[YR.MarkInputAsMoved=12]="MarkInputAsMoved",YR);function nj(e,t=e=>e){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=t(e.options.slice()),i=r.length>0&&null!==r[0].dataRef.current.order?r.sort((e,t)=>e.dataRef.current.order-t.dataRef.current.order):function(e,t=e=>e){return e.slice().sort((e,n)=>{let r=t(e),i=t(n);if(null===r||null===i)return 0;let o=r.compareDocumentPosition(i);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}(r,e=>e.dataRef.current.domRef.current),o=n?i.indexOf(n):null;return-1===o&&(o=null),{options:i,activeOptionIndex:o}}var rj={1(e){var t;if(null!=(t=e.dataRef.current)&&t.disabled||1===e.comboboxState)return e;let n=e.inputElement?GR.Tracked(KR(e.inputElement)):e.inputPositionState;return{...e,activeOptionIndex:null,comboboxState:1,isTyping:!1,activationTrigger:2,inputPositionState:n,__demoMode:!1}},0(e){var t,n;if(null!=(t=e.dataRef.current)&&t.disabled||0===e.comboboxState)return e;if(null!=(n=e.dataRef.current)&&n.value){let t=e.dataRef.current.calculateIndex(e.dataRef.current.value);if(-1!==t)return{...e,activeOptionIndex:t,comboboxState:0,__demoMode:!1,inputPositionState:GR.Idle}}return{...e,comboboxState:0,inputPositionState:GR.Idle,__demoMode:!1}},3:(e,t)=>e.isTyping===t.isTyping?e:{...e,isTyping:t.isTyping},2(e,t){var n,r,i,o;if(null!=(n=e.dataRef.current)&&n.disabled||e.optionsElement&&(null==(r=e.dataRef.current)||!r.optionsPropsRef.current.static)&&1===e.comboboxState)return e;if(e.virtual){let{options:n,disabled:r}=e.virtual,o=t.focus===MR.Specific?t.idx:FR(t,{resolveItems:()=>n,resolveActiveIndex:()=>{var t,i;return null!=(i=null!=(t=e.activeOptionIndex)?t:n.findIndex(e=>!r(e)))?i:null},resolveDisabled:r,resolveId(){throw new Error("Function not implemented.")}}),a=null!=(i=t.trigger)?i:2;return e.activeOptionIndex===o&&e.activationTrigger===a?e:{...e,activeOptionIndex:o,activationTrigger:a,isTyping:!1,__demoMode:!1}}let a=nj(e);if(null===a.activeOptionIndex){let e=a.options.findIndex(e=>!e.dataRef.current.disabled);-1!==e&&(a.activeOptionIndex=e)}let s=t.focus===MR.Specific?t.idx:FR(t,{resolveItems:()=>a.options,resolveActiveIndex:()=>a.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled}),l=null!=(o=t.trigger)?o:2;return e.activeOptionIndex===s&&e.activationTrigger===l?e:{...e,...a,isTyping:!1,activeOptionIndex:s,activationTrigger:l,__demoMode:!1}},4:(e,t)=>{var n,r,i,o;if(null!=(n=e.dataRef.current)&&n.virtual)return{...e,options:[...e.options,t.payload]};let a=t.payload,s=nj(e,e=>(e.push(a),e));null===e.activeOptionIndex&&null!=(i=(r=e.dataRef.current).isSelected)&&i.call(r,t.payload.dataRef.current.value)&&(s.activeOptionIndex=s.options.indexOf(a));let l={...e,...s,activationTrigger:2};return null!=(o=e.dataRef.current)&&o.__demoMode&&void 0===e.dataRef.current.value&&(l.activeOptionIndex=0),l},5:(e,t)=>{var n;if(null!=(n=e.dataRef.current)&&n.virtual)return{...e,options:e.options.filter(e=>e.id!==t.id)};let r=nj(e,e=>{let n=e.findIndex(e=>e.id===t.id);return-1!==n&&e.splice(n,1),e});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(null===e.virtual)return{...e,virtual:{options:t.options,disabled:null!=(n=t.disabled)?n:()=>!1}};if(e.virtual.options===t.options&&e.virtual.disabled===t.disabled)return e;let i=e.activeOptionIndex;if(null!==e.activeOptionIndex){let n=t.options.indexOf(e.virtual.options[e.activeOptionIndex]);i=-1!==n?n:null}return{...e,activeOptionIndex:i,virtual:{options:t.options,disabled:null!=(r=t.disabled)?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},12:e=>"Tracked"!==e.inputPositionState.kind?e:{...e,inputPositionState:GR.Moved}},ij=class e extends hP{constructor(e){super(e),XR(this,"actions",{onChange:e=>{let{onChange:t,compare:n,mode:r,value:i}=this.state.dataRef.current;return KM(r,{0:()=>null==t?void 0:t(e),1:()=>{let r=i.slice(),o=r.findIndex(t=>n(t,e));return-1===o?r.push(e):r.splice(o,1),null==t?void 0:t(r)}})},registerOption:(e,t)=>(this.send({type:4,payload:{id:e,dataRef:t}}),()=>{this.state.activeOptionIndex===this.state.dataRef.current.calculateIndex(t.current.value)&&this.send({type:6,value:!0}),this.send({type:5,id:e})}),goToOption:(e,t)=>(this.send({type:6,value:!1}),this.send({type:2,...e,trigger:t})),setIsTyping:e=>{this.send({type:3,isTyping:e})},closeCombobox:()=>{var e,t;this.send({type:1}),this.send({type:6,value:!1}),null==(t=(e=this.state.dataRef.current).onClose)||t.call(e)},openCombobox:()=>{this.send({type:0}),this.send({type:6,value:!0})},setActivationTrigger:e=>{this.send({type:7,trigger:e})},selectActiveOption:()=>{let e=this.selectors.activeOptionIndex(this.state);if(null!==e){if(this.actions.setIsTyping(!1),this.state.virtual)this.actions.onChange(this.state.virtual.options[e]);else{let{dataRef:t}=this.state.options[e];this.actions.onChange(t.current.value)}this.actions.goToOption({focus:MR.Specific,idx:e})}},setInputElement:e=>{this.send({type:9,element:e})},setButtonElement:e=>{this.send({type:10,element:e})},setOptionsElement:e=>{this.send({type:11,element:e})}}),XR(this,"selectors",{activeDescendantId:e=>{var t,n;let r=this.selectors.activeOptionIndex(e);if(null!==r)return e.virtual?null==(n=e.options.find(t=>!t.dataRef.current.disabled&&e.dataRef.current.compare(t.dataRef.current.value,e.virtual.options[r])))?void 0:n.id:null==(t=e.options[r])?void 0:t.id},activeOptionIndex:e=>{if(e.defaultToFirstOption&&null===e.activeOptionIndex&&(e.virtual?e.virtual.options.length>0:e.options.length>0)){if(e.virtual){let{options:t,disabled:n}=e.virtual,r=t.findIndex(e=>{var t;return!(null!=(t=null==n?void 0:n(e))&&t)});if(-1!==r)return r}let t=e.options.findIndex(e=>!e.dataRef.current.disabled);if(-1!==t)return t}return e.activeOptionIndex},activeOption:e=>{var t,n;let r=this.selectors.activeOptionIndex(e);return null===r?null:e.virtual?e.virtual.options[null!=r?r:0]:null!=(n=null==(t=e.options[r])?void 0:t.dataRef.current.value)?n:null},isActive:(e,t,n)=>{var r;let i=this.selectors.activeOptionIndex(e);return null!==i&&(e.virtual?i===e.dataRef.current.calculateIndex(t):(null==(r=e.options[i])?void 0:r.id)===n)},shouldScrollIntoView:(e,t,n)=>!(e.virtual||e.__demoMode||0!==e.comboboxState||0===e.activationTrigger||!this.selectors.isActive(e,t,n)),didInputMove:e=>"Moved"===e.inputPositionState.kind});{let e=this.state.id,t=CP.get(null);this.disposables.add(t.on(xP.Push,n=>{!t.selectors.isTop(n,e)&&0===this.state.comboboxState&&this.actions.closeCombobox()})),this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}this.disposables.group(e=>{this.on(1,t=>{t.inputElement&&(e.dispose(),e.add(function(e,t,n){let r=VM();if("Tracked"===t.kind){let i=function(){o!==KR(e)&&(r.dispose(),n())},{position:o}=t,a=new ResizeObserver(i);a.observe(e),r.add(()=>a.disconnect()),r.addEventListener(window,"scroll",i,{passive:!0}),r.addEventListener(window,"resize",i)}return()=>r.dispose()}(t.inputElement,t.inputPositionState,()=>{this.send({type:12})})))})})}static new({id:t,virtual:n=null,__demoMode:r=!1}){var i;return new e({id:t,dataRef:{current:{}},comboboxState:r?0:1,isTyping:!1,options:[],virtual:n?{options:n.options,disabled:null!=(i=n.disabled)?i:()=>!1}:null,activeOptionIndex:null,activationTrigger:2,inputElement:null,buttonElement:null,optionsElement:null,__demoMode:r,inputPositionState:GR.Idle})}reduce(e,t){return KM(t.type,rj,e,t)}},oj=(0,Fu.createContext)(null);function aj(e){let t=(0,Fu.useContext)(oj);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,sj),t}return t}function sj({id:e,virtual:t=null,__demoMode:n=!1}){let r=(0,Fu.useMemo)(()=>ij.new({id:e,virtual:t,__demoMode:n}),[]);return PR(()=>r.dispose()),r}var lj=(0,Fu.createContext)(null);function uj(e){let t=(0,Fu.useContext)(lj);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,uj),t}return t}lj.displayName="ComboboxDataContext";var cj=(0,Fu.createContext)(null);function dj(e){let t=aj("VirtualProvider"),{options:n}=uj("VirtualProvider").virtual,r=_P(t,e=>e.optionsElement),[i,o]=(0,Fu.useMemo)(()=>{let e=r;if(!e)return[0,0];let t=window.getComputedStyle(e);return[parseFloat(t.paddingBlockStart||t.paddingTop),parseFloat(t.paddingBlockEnd||t.paddingBottom)]},[r]),a=function(e){return function({useFlushSync:e=!0,...t}){const n=Fu.useReducer(()=>({}),{})[1],r={...t,onChange:(r,i)=>{var o;e&&i?(0,_v.flushSync)(n):n(),null==(o=t.onChange)||o.call(t,r,i)}},[i]=Fu.useState(()=>new ZF(r));return i.setOptions(r),eP(()=>i._didMount(),[]),eP(()=>i._willUpdate()),i}({observeElementRect:qF,observeElementOffset:YF,scrollToFn:XF,...e})}({enabled:0!==n.length,scrollPaddingStart:i,scrollPaddingEnd:o,count:n.length,estimateSize:()=>40,getScrollElement:()=>t.state.optionsElement,overscan:12}),[s,l]=(0,Fu.useState)(0);zM(()=>{l(e=>e+1)},[n]);let u=a.getVirtualItems(),c=_P(t,e=>e.activationTrigger===ej.Pointer),d=_P(t,t.selectors.activeOptionIndex);return 0===u.length?null:Fu.createElement(cj.Provider,{value:a},Fu.createElement("div",{style:{position:"relative",width:"100%",height:`${a.getTotalSize()}px`},ref:e=>{e&&(c||null!==d&&n.length>d&&a.scrollToIndex(d))}},u.map(t=>{var r;return Fu.createElement(Fu.Fragment,{key:t.key},Fu.cloneElement(null==(r=e.children)?void 0:r.call(e,{...e.slot,option:n[t.index]}),{key:`${s}-${t.key}`,"data-index":t.index,"aria-setsize":n.length,"aria-posinset":t.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${t.start}px)`,overflowAnchor:"none"}}))})))}var fj=Fu.Fragment,pj=QM.RenderStrategy|QM.Static,hj=rF(function(e,t){let n=(0,Fu.useId)(),r=qM(),{value:i,defaultValue:o,onChange:a,form:s,name:l,by:u,invalid:c=!1,disabled:d=r||!1,onClose:f,__demoMode:p=!1,multiple:h=!1,immediate:m=!1,virtual:g=null,nullable:v,...y}=e,b=function(e){let[t]=(0,Fu.useState)(e);return t}(o),[w=(h?[]:void 0),x]=function(e,t,n){let[r,i]=(0,Fu.useState)(n),o=void 0!==e,a=(0,Fu.useRef)(o),s=(0,Fu.useRef)(!1),l=(0,Fu.useRef)(!1);return!o||a.current||s.current?!o&&a.current&&!l.current&&(l.current=!0,a.current=o):(s.current=!0,a.current=o),[o?e:r,UM(e=>(o||(0,_v.flushSync)(()=>i(e)),null==t?void 0:t(e)))]}(i,a,b),E=sj({id:n,virtual:g,__demoMode:p}),k=(0,Fu.useRef)({static:!1,hold:!1}),C=function(e=tP){return(0,Fu.useCallback)((t,n)=>{if("string"==typeof e){let r=e;return(null==t?void 0:t[r])===(null==n?void 0:n[r])}return e(t,n)},[e])}(u),S=UM(e=>g?null===u?g.options.indexOf(e):g.options.findIndex(t=>C(t,e)):E.state.options.findIndex(t=>C(t.dataRef.current.value,e))),T=(0,Fu.useCallback)(e=>KM(A.mode,{[JR.Multi]:()=>w.some(t=>C(t,e)),[JR.Single]:()=>C(w,e)}),[w]),_=_P(E,e=>e.virtual),N=UM(()=>null==f?void 0:f()),A=(0,Fu.useMemo)(()=>({__demoMode:p,immediate:m,optionsPropsRef:k,value:w,defaultValue:b,disabled:d,invalid:c,mode:h?JR.Multi:JR.Single,virtual:g?_:null,onChange:x,isSelected:T,calculateIndex:S,compare:C,onClose:N}),[p,m,k,w,b,d,c,h,g,_,x,T,S,C,N]);zM(()=>{var e;g&&E.send({type:tj.UpdateVirtualConfiguration,options:g.options,disabled:null!=(e=g.disabled)?e:null})},[g,null==g?void 0:g.options,null==g?void 0:g.disabled]),zM(()=>{E.state.dataRef.current=A},[A]);let[D,O,L,I]=_P(E,e=>[e.comboboxState,e.buttonElement,e.inputElement,e.optionsElement]),M=CP.get(null);!function(e,t,n){let r=$M(n),i=(0,Fu.useCallback)(function(e,n){if(e.defaultPrevented)return;let i=n(e);if(null===i||!i.getRootNode().contains(i)||!i.isConnected)return;let o=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(t);for(let t of o)if(null!==t&&(t.contains(i)||e.composed&&e.composedPath().includes(t)))return;return!function(e,t=0){var n;return e!==(null==(n=PM(e))?void 0:n.body)&&KM(t,{0:()=>e.matches(FP),1(){let t=e;for(;null!==t;){if(t.matches(FP))return!0;t=t.parentElement}return!1}})}(i,VP.Loose)&&-1!==i.tabIndex&&e.preventDefault(),r.current(e,i)},[r,t]),o=(0,Fu.useRef)(null);UP(e,"pointerdown",e=>{var t,n;$P()||(o.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),UP(e,"pointerup",e=>{if($P()||!o.current)return;let t=o.current;return o.current=null,i(e,()=>t)},!0);let a=(0,Fu.useRef)({x:0,y:0});UP(e,"touchstart",e=>{a.current.x=e.touches[0].clientX,a.current.y=e.touches[0].clientY},!0),UP(e,"touchend",e=>{let t=e.changedTouches[0].clientX,n=e.changedTouches[0].clientY;if(!(Math.abs(t-a.current.x)>=30||Math.abs(n-a.current.y)>=30))return i(e,()=>EF(e.target)?e.target:null)},!0),function(e,t,n,r){let o=$M(e=>i(e,()=>function(e){return xF(e)&&"IFRAME"===e.nodeName}(window.document.activeElement)?window.document.activeElement:null));(0,Fu.useEffect)(()=>{if(e)return window.addEventListener(t,n,r),()=>window.removeEventListener(t,n,r);function n(e){o.current(e)}},[e,t,r])}(e,"blur",0,!0)}(_P(M,(0,Fu.useCallback)(e=>M.selectors.isTop(e,n),[M,n])),[O,L,I],()=>E.actions.closeCombobox());let F=_P(E,E.selectors.activeOptionIndex),P=_P(E,E.selectors.activeOption),R=HM({open:D===ZR.Open,disabled:d,invalid:c,activeIndex:F,activeOption:P,value:w}),[j,V]=function({inherit:e=!1}={}){let t=RF(),[n,r]=(0,Fu.useState)([]),i=e?[t,...n].filter(Boolean):n;return[i.length>0?i.join(" "):void 0,(0,Fu.useMemo)(()=>function(e){let t=UM(e=>(r(t=>[...t,e]),()=>r(t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))),n=(0,Fu.useMemo)(()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value}),[t,e.slot,e.name,e.props,e.value]);return Fu.createElement(FF.Provider,{value:n},e.children)},[r])]}(),B=null===t?{}:{ref:t},z=(0,Fu.useCallback)(()=>{if(void 0!==b)return null==x?void 0:x(b)},[x,b]),$=ZM();return Fu.createElement(V,{value:j,props:{htmlFor:null==L?void 0:L.id},slot:{open:D===ZR.Open,disabled:d}},Fu.createElement(CR,null,Fu.createElement(lj.Provider,{value:A},Fu.createElement(oj.Provider,{value:E},Fu.createElement(LR,{value:KM(D,{[ZR.Open]:OR.Open,[ZR.Closed]:OR.Closed})},null!=l&&Fu.createElement(mF,{disabled:d,data:null!=w?{[l]:w}:{},form:s,onReset:z}),$({ourProps:B,theirProps:y,slot:R,defaultTag:fj,name:"Combobox"}))))))}),mj=rF(function(e,t){let n=aj("Combobox.Button"),r=uj("Combobox.Button"),[i,o]=(0,Fu.useState)(null),a=AF(t,o,n.actions.setButtonElement),s=(0,Fu.useId)(),{id:l=`headlessui-combobox-button-${s}`,disabled:u=r.disabled||!1,autoFocus:c=!1,...d}=e,[f,p,h]=_P(n,e=>[e.comboboxState,e.inputElement,e.optionsElement]),m=GP(p);!function(e,{trigger:t,action:n,close:r,select:i}){let o=(0,Fu.useRef)(null),a=(0,Fu.useRef)(null),s=(0,Fu.useRef)(null);UP(e&&null!==t,"pointerdown",e=>{bF(null==e?void 0:e.target)&&null!=t&&t.contains(e.target)&&(a.current=e.x,s.current=e.y,o.current=e.timeStamp)}),UP(e&&null!==t,"pointerup",e=>{var t,l;let u=o.current;if(null===u||(o.current=null,!EF(e.target))||Math.abs(e.x-(null!=(t=a.current)?t:e.x))<5&&Math.abs(e.y-(null!=(l=s.current)?l:e.y))<5)return;let c=n(e);switch(c.kind){case 0:return;case 1:e.timeStamp-u>200&&(i(c.target),r());break;case 2:r()}},{capture:!0})}(f===ZR.Open,{trigger:i,action:(0,Fu.useCallback)(e=>{if(null!=i&&i.contains(e.target))return qP.Ignore;if(null!=p&&p.contains(e.target))return qP.Ignore;let t=e.target.closest('[role="option"]:not([data-disabled])');return xF(t)?qP.Select(t):null!=h&&h.contains(e.target)?qP.Ignore:qP.Close},[i,p,h]),close:n.actions.closeCombobox,select:n.actions.selectActiveOption});let g=UM(e=>{switch(e.key){case MF.Space:case MF.Enter:return e.preventDefault(),e.stopPropagation(),n.state.comboboxState===ZR.Closed&&(0,_v.flushSync)(()=>n.actions.openCombobox()),void m();case MF.ArrowDown:return e.preventDefault(),e.stopPropagation(),n.state.comboboxState===ZR.Closed&&((0,_v.flushSync)(()=>n.actions.openCombobox()),n.state.dataRef.current.value||n.actions.goToOption({focus:MR.First})),void m();case MF.ArrowUp:return e.preventDefault(),e.stopPropagation(),n.state.comboboxState===ZR.Closed&&((0,_v.flushSync)(()=>n.actions.openCombobox()),n.state.dataRef.current.value||n.actions.goToOption({focus:MR.Last})),void m();case MF.Escape:if(n.state.comboboxState!==ZR.Open)return;return e.preventDefault(),n.state.optionsElement&&!r.optionsPropsRef.current.static&&e.stopPropagation(),(0,_v.flushSync)(()=>n.actions.closeCombobox()),void m();default:return}}),v=function(e){let t=(0,Fu.useRef)(null);return{onPointerDown:UM(n=>{t.current=n.pointerType,!_F(n.currentTarget)&&"mouse"===n.pointerType&&n.button===sP.Left&&(n.preventDefault(),e())}),onClick:UM(n=>{"mouse"!==t.current&&(_F(n.currentTarget)||e())})}}(()=>{n.state.comboboxState===ZR.Open?n.actions.closeCombobox():n.actions.openCombobox(),m()}),y=RF([l]),{isFocusVisible:b,focusProps:w}=LM({autoFocus:c}),{isHovered:x,hoverProps:E}=OM({isDisabled:u}),{pressed:k,pressProps:C}=function({disabled:e=!1}={}){let t=(0,Fu.useRef)(null),[n,r]=(0,Fu.useState)(!1),i=BM(),o=UM(()=>{t.current=null,r(!1),i.dispose()}),a=UM(e=>{if(i.dispose(),null===t.current){t.current=e.currentTarget,r(!0);{let n=PM(e.currentTarget);i.addEventListener(n,"pointerup",o,!1),i.addEventListener(n,"pointermove",e=>{t.current&&r(function(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}(function(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}}(e),t.current.getBoundingClientRect()))},!1),i.addEventListener(n,"pointercancel",o,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:a,onPointerUp:o,onClick:o}}}({disabled:u}),S=HM({open:f===ZR.Open,active:k||f===ZR.Open,disabled:u,invalid:r.invalid,value:r.value,hover:x,focus:b}),T=nF({ref:a,id:l,type:KP(e,i),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==h?void 0:h.id,"aria-expanded":f===ZR.Open,"aria-labelledby":y,disabled:u||void 0,autoFocus:c,onKeyDown:g},v,w,E,C);return ZM()({ourProps:T,theirProps:d,slot:S,defaultTag:"button",name:"Combobox.Button"})}),gj=rF(function(e,t){var n,r;let i=aj("Combobox.Input"),o=uj("Combobox.Input"),a=(0,Fu.useId)(),s=yF(),{id:l=s||`headlessui-combobox-input-${a}`,onChange:u,displayValue:c,disabled:d=o.disabled||!1,autoFocus:f=!1,type:p="text",...h}=e,m=(0,Fu.useRef)(null),g=AF(m,t,(0,Fu.useContext)(xR).setReference,i.actions.setInputElement),[v,y]=_P(i,e=>[e.comboboxState,e.isTyping]),b=BM(),w=UM(()=>{i.actions.onChange(null),i.state.optionsElement&&(i.state.optionsElement.scrollTop=0),i.actions.goToOption({focus:MR.Nothing})});iR(([e,t],[n,r])=>{if(i.state.isTyping)return;let o=m.current;o&&((r===ZR.Open&&t===ZR.Closed||e!==n)&&(o.value=e),requestAnimationFrame(()=>{if(i.state.isTyping||!o||RM(o))return;let{selectionStart:e,selectionEnd:t}=o;0===Math.abs((null!=t?t:0)-(null!=e?e:0))&&0===e&&o.setSelectionRange(o.value.length,o.value.length)}))},[(0,Fu.useMemo)(()=>{var e;return"function"==typeof c&&void 0!==o.value?null!=(e=c(o.value))?e:"":"string"==typeof o.value?o.value:""},[o.value,c]),v,y]),iR(([e],[t])=>{if(e===ZR.Open&&t===ZR.Closed){if(i.state.isTyping)return;let e=m.current;if(!e)return;let t=e.value,{selectionStart:n,selectionEnd:r,selectionDirection:o}=e;e.value="",e.value=t,null!==o?e.setSelectionRange(n,r,o):e.setSelectionRange(n,r)}},[v]);let x=(0,Fu.useRef)(!1),E=UM(()=>{x.current=!0}),k=UM(()=>{b.nextFrame(()=>{x.current=!1})}),C=UM(e=>{switch(i.actions.setIsTyping(!0),e.key){case MF.Enter:if(i.state.comboboxState!==ZR.Open||x.current)return;if(e.preventDefault(),e.stopPropagation(),null===i.selectors.activeOptionIndex(i.state))return void i.actions.closeCombobox();i.actions.selectActiveOption(),o.mode===JR.Single&&i.actions.closeCombobox();break;case MF.ArrowDown:return e.preventDefault(),e.stopPropagation(),KM(i.state.comboboxState,{[ZR.Open]:()=>i.actions.goToOption({focus:MR.Next}),[ZR.Closed]:()=>i.actions.openCombobox()});case MF.ArrowUp:return e.preventDefault(),e.stopPropagation(),KM(i.state.comboboxState,{[ZR.Open]:()=>i.actions.goToOption({focus:MR.Previous}),[ZR.Closed]:()=>{(0,_v.flushSync)(()=>i.actions.openCombobox()),o.value||i.actions.goToOption({focus:MR.Last})}});case MF.Home:if(i.state.comboboxState===ZR.Closed||e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),i.actions.goToOption({focus:MR.First});case MF.PageUp:return e.preventDefault(),e.stopPropagation(),i.actions.goToOption({focus:MR.First});case MF.End:if(i.state.comboboxState===ZR.Closed||e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),i.actions.goToOption({focus:MR.Last});case MF.PageDown:return e.preventDefault(),e.stopPropagation(),i.actions.goToOption({focus:MR.Last});case MF.Escape:return i.state.comboboxState!==ZR.Open?void 0:(e.preventDefault(),i.state.optionsElement&&!o.optionsPropsRef.current.static&&e.stopPropagation(),o.mode===JR.Single&&null===o.value&&w(),i.actions.closeCombobox());case MF.Tab:if(i.actions.setIsTyping(!1),i.state.comboboxState!==ZR.Open)return;o.mode===JR.Single&&i.state.activationTrigger!==ej.Focus&&i.actions.selectActiveOption(),i.actions.closeCombobox()}}),S=UM(e=>{null==u||u(e),o.mode===JR.Single&&""===e.target.value&&w(),i.actions.openCombobox()}),T=UM(e=>{var t,n,r;let a=null!=(t=e.relatedTarget)?t:IR.find(t=>t!==e.currentTarget);if(!(null!=(n=i.state.optionsElement)&&n.contains(a)||null!=(r=i.state.buttonElement)&&r.contains(a)||i.state.comboboxState!==ZR.Open))return e.preventDefault(),o.mode===JR.Single&&null===o.value&&w(),i.actions.closeCombobox()}),_=UM(e=>{var t,n,r;let a=null!=(t=e.relatedTarget)?t:IR.find(t=>t!==e.currentTarget);null!=(n=i.state.buttonElement)&&n.contains(a)||null!=(r=i.state.optionsElement)&&r.contains(a)||o.disabled||o.immediate&&i.state.comboboxState!==ZR.Open&&b.microTask(()=>{(0,_v.flushSync)(()=>i.actions.openCombobox()),i.actions.setActivationTrigger(ej.Focus)})}),N=RF(),A=function(){var e,t;return null!=(t=null==(e=(0,Fu.useContext)(DF))?void 0:e.value)?t:void 0}(),{isFocused:D,focusProps:O}=LM({autoFocus:f}),{isHovered:L,hoverProps:I}=OM({isDisabled:d}),M=_P(i,e=>e.optionsElement),F=HM({open:v===ZR.Open,disabled:d,invalid:o.invalid,hover:L,focus:D,autofocus:f}),P=nF({ref:g,id:l,role:"combobox",type:p,"aria-controls":null==M?void 0:M.id,"aria-expanded":v===ZR.Open,"aria-activedescendant":_P(i,i.selectors.activeDescendantId),"aria-labelledby":N,"aria-describedby":A,"aria-autocomplete":"list",defaultValue:null!=(r=null!=(n=e.defaultValue)?n:void 0!==o.defaultValue?null==c?void 0:c(o.defaultValue):null)?r:o.defaultValue,disabled:d||void 0,autoFocus:f,onCompositionStart:E,onCompositionEnd:k,onKeyDown:C,onChange:S,onFocus:_,onBlur:T},O,I);return ZM()({ourProps:P,theirProps:h,slot:F,defaultTag:"input",name:"Combobox.Input"})}),vj=VF,yj=rF(function(e,t){var n,r,i;let o=(0,Fu.useId)(),{id:a=`headlessui-combobox-options-${o}`,hold:s=!1,anchor:l,portal:u=!1,modal:c=!0,transition:d=!1,...f}=e,p=aj("Combobox.Options"),h=uj("Combobox.Options"),m=function(e){return(0,Fu.useMemo)(()=>e?"string"==typeof e?{to:e}:e:null,[e])}(l);m&&(u=!0);let[g,v]=kR(m),[y,b]=(0,Fu.useState)(null),w=function(){let{getFloatingProps:e,slot:t}=(0,Fu.useContext)(xR);return(0,Fu.useCallback)((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}(),x=AF(t,m?g:null,p.actions.setOptionsElement,b),[E,k,C,S,T]=_P(p,e=>[e.comboboxState,e.inputElement,e.buttonElement,e.optionsElement,e.activationTrigger]),_=HP(k||C),N=HP(S),A=(0,Fu.useContext)(DR),[D,O]=function(e,t,n,r){let[i,o]=(0,Fu.useState)(n),{hasFlag:a,addFlag:s,removeFlag:l}=function(e=0){let[t,n]=(0,Fu.useState)(e);return{flags:t,setFlag:(0,Fu.useCallback)(e=>n(e),[]),addFlag:(0,Fu.useCallback)(e=>n(t=>t|e),[]),hasFlag:(0,Fu.useCallback)(e=>(t&e)===e,[t]),removeFlag:(0,Fu.useCallback)(e=>n(t=>t&~e),[]),toggleFlag:(0,Fu.useCallback)(e=>n(t=>t^e),[])}}(e&&i?3:0),u=(0,Fu.useRef)(!1),c=(0,Fu.useRef)(!1);return zM(()=>{var i;if(e)return n&&o(!0),t?(null==(i=void 0)||i.call(r,n),function(e,{prepare:t,run:n,done:r,inFlight:i}){let o=VM();return function(e,{inFlight:t,prepare:n}){if(null!=t&&t.current)return void n();let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}(e,{prepare:t,inFlight:i}),o.nextFrame(()=>{n(),o.requestAnimationFrame(()=>{o.add(function(e,t){var n,r;let i=VM();if(!e)return i.dispose;let o=!1;i.add(()=>{o=!0});let a=null!=(r=null==(n=e.getAnimations)?void 0:n.call(e).filter(e=>e instanceof CSSTransition))?r:[];return 0===a.length?(t(),i.dispose):(Promise.allSettled(a.map(e=>e.finished)).then(()=>{o||t()}),i.dispose)}(e,r))})}),o.dispose}(t,{inFlight:u,prepare(){c.current?c.current=!1:c.current=u.current,u.current=!0,!c.current&&(n?(s(3),l(4)):(s(4),l(2)))},run(){c.current?n?(l(3),s(4)):(l(4),s(3)):n?l(1):s(1)},done(){var e;c.current&&function(e){var t,n;return(null!=(n=null==(t=e.getAnimations)?void 0:t.call(e))?n:[]).some(e=>e instanceof CSSTransition&&"finished"!==e.playState)}(t)||(u.current=!1,l(7),n||o(!1),null==(e=void 0)||e.call(r,n))}})):void(n&&s(3))},[e,n,t,BM()]),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}]}(d,y,null!==A?(A&OR.Open)===OR.Open:E===ZR.Open);!function(e,t,n){let r=$M(e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&n()});(0,Fu.useEffect)(()=>{if(!e)return;let n=null===t?null:xF(t)?t:t.current;if(!n)return;let i=VM();if("undefined"!=typeof ResizeObserver){let e=new ResizeObserver(()=>r.current(n));e.observe(n),i.add(()=>e.disconnect())}if("undefined"!=typeof IntersectionObserver){let e=new IntersectionObserver(()=>r.current(n));e.observe(n),i.add(()=>e.disconnect())}return()=>i.dispose()},[t,r,e])}(D,k,p.actions.closeCombobox),function(e,t,n=()=>[document.body]){!function(e,t,n=()=>({containers:[]})){let r=function(e){return(0,Fu.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot)}(JP),i=t?r.get(t):void 0;!!i&&i.count;zM(()=>{if(t&&e)return JP.dispatch("PUSH",t,n),()=>JP.dispatch("POP",t,n)},[e,t])}(AP(e,"scroll-lock"),t,e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}})}(!h.__demoMode&&c&&E===ZR.Open,N),function(e,{allowed:t,disallowed:n}={}){let r=AP(e,"inert-others");zM(()=>{var e,i;if(!r)return;let o=VM();for(let t of null!=(e=null==n?void 0:n())?e:[])t&&o.add(LP(t));let a=null!=(i=null==t?void 0:t())?i:[];for(let t of a){if(!t)continue;let e=PM(t);if(!e)continue;let n=t.parentElement;for(;n&&n!==e.body;){for(let e of n.children)a.some(t=>e.contains(t))||o.add(LP(e));n=n.parentElement}}return o.dispose},[r,t,n])}(!h.__demoMode&&c&&E===ZR.Open,{allowed:(0,Fu.useCallback)(()=>[k,C,S],[k,C,S])});let L=!_P(p,p.selectors.didInputMove)&&D;zM(()=>{var t;h.optionsPropsRef.current.static=null!=(t=e.static)&&t},[h.optionsPropsRef,e.static]),zM(()=>{h.optionsPropsRef.current.hold=s},[h.optionsPropsRef,s]),function(e,{container:t,accept:n,walk:r}){let i=(0,Fu.useRef)(n),o=(0,Fu.useRef)(r);(0,Fu.useEffect)(()=>{i.current=n,o.current=r},[n,r]),zM(()=>{if(!t||!e)return;let n=PM(t);if(!n)return;let r=i.current,a=o.current,s=Object.assign(e=>r(e),{acceptNode:r}),l=n.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,s,!1);for(;l.nextNode();)a(l.currentNode)},[t,e,i,o])}(E===ZR.Open,{container:S,accept:e=>"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let I=RF([null==C?void 0:C.id]),M=HM({open:E===ZR.Open,option:void 0}),F=UM(()=>{p.actions.setActivationTrigger(ej.Pointer)}),P=UM(e=>{e.preventDefault(),p.actions.setActivationTrigger(ej.Pointer)}),R=nF(m?w():{},{"aria-labelledby":I,role:"listbox","aria-multiselectable":h.mode===JR.Multi||void 0,id:a,ref:x,style:{...f.style,...v,"--input-width":rP(D,k,!0).width,"--button-width":rP(D,C,!0).width},onWheel:T===ej.Pointer?void 0:F,onMouseDown:P,...rR(O)}),j=D&&E===ZR.Closed&&!e.static,V=AR(j,null==(n=h.virtual)?void 0:n.options),B=AR(j,h.value),z=(0,Fu.useCallback)(e=>h.compare(B,e),[h.compare,B]),$=(0,Fu.useMemo)(()=>{if(!h.virtual)return h;if(void 0===V)throw new Error("Missing `options` in virtual mode");return V!==h.virtual.options?{...h,virtual:{...h.virtual,options:V}}:h},[h,V,null==(r=h.virtual)?void 0:r.options]);h.virtual&&Object.assign(f,{children:Fu.createElement(lj.Provider,{value:$},Fu.createElement(dj,{slot:M},f.children))});let U=ZM(),H=(0,Fu.useMemo)(()=>h.mode===JR.Multi?h:{...h,isSelected:z},[h,z]);return Fu.createElement(qR,{enabled:!!u&&(e.static||D),ownerDocument:_},Fu.createElement(lj.Provider,{value:H},U({ourProps:R,theirProps:{...f,children:Fu.createElement(NR,{freeze:j},"function"==typeof f.children?null==(i=f.children)?void 0:i.call(f,M):f.children)},slot:M,defaultTag:"div",features:pj,visible:L,name:"Combobox.Options"})))}),bj=rF(function(e,t){var n,r,i;let o=uj("Combobox.Option"),a=aj("Combobox.Option"),s=(0,Fu.useId)(),{id:l=`headlessui-combobox-option-${s}`,value:u,disabled:c=null!=(i=null==(r=null==(n=o.virtual)?void 0:n.disabled)?void 0:r.call(n,u))&&i,order:d=null,...f}=e,[p]=_P(a,e=>[e.inputElement]),h=GP(p),m=_P(a,(0,Fu.useCallback)(e=>a.selectors.isActive(e,u,l),[u,l])),g=o.isSelected(u),v=(0,Fu.useRef)(null),y=$M({disabled:c,value:u,domRef:v,order:d}),b=(0,Fu.useContext)(cj),w=AF(t,v,b?b.measureElement:null),x=UM(()=>{a.actions.setIsTyping(!1),a.actions.onChange(u)});zM(()=>a.actions.registerOption(l,y),[y,l]);let E=_P(a,(0,Fu.useCallback)(e=>a.selectors.shouldScrollIntoView(e,u,l),[u,l]));zM(()=>{if(E)return VM().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=v.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[E,v]);let k=UM(e=>{e.preventDefault(),e.button===sP.Left&&(c||(x(),$P()||requestAnimationFrame(()=>h()),o.mode===JR.Single&&a.actions.closeCombobox()))}),C=UM(()=>{if(c)return a.actions.goToOption({focus:MR.Nothing});let e=o.calculateIndex(u);a.actions.goToOption({focus:MR.Specific,idx:e})}),S=function(){let e=(0,Fu.useRef)([-1,-1]);return{wasMoved(t){let n=eR(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=eR(t)}}}(),T=UM(e=>S.update(e)),_=UM(e=>{if(!S.wasMoved(e)||c||m&&a.state.activationTrigger===ej.Pointer)return;let t=o.calculateIndex(u);a.actions.goToOption({focus:MR.Specific,idx:t},ej.Pointer)}),N=UM(e=>{S.wasMoved(e)&&(c||m&&(o.optionsPropsRef.current.hold||a.state.activationTrigger===ej.Pointer&&a.actions.goToOption({focus:MR.Nothing})))}),A=HM({active:m,focus:m,selected:g,disabled:c}),D={id:l,ref:w,role:"option",tabIndex:!0===c?void 0:-1,"aria-disabled":!0===c||void 0,"aria-selected":g,disabled:void 0,onMouseDown:k,onFocus:C,onPointerEnter:T,onMouseEnter:T,onPointerMove:_,onMouseMove:_,onPointerLeave:N,onMouseLeave:N};return ZM()({ourProps:D,theirProps:f,slot:A,defaultTag:"div",name:"Combobox.Option"})}),wj=Object.assign(hj,{Input:gj,Button:mj,Label:vj,Options:yj,Option:bj});ha();var xj=()=>{const e=(0,$u.c)(32),t=CI(),{push:n}=SI(),r=(0,Fu.useRef)(null),i=function(){const e=(0,$u.c)(5),t=CI(),{schema:n}=bc();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=e=>{const t={within:[],types:[],fields:[]};if(!n)return t;const r=i.def,o=n.getTypeMap();let a=Object.keys(o);r&&(a=a.filter(e=>e!==r.name),a.unshift(r.name));for(const n of a){if(t.within.length+t.types.length+t.fields.length>=100)break;const i=o[n];if(r!==i&&Ej(n,e)&&t.types.push({type:i}),!tn(i)&&!nn(i)&&!an(i))continue;const a=i.getFields();for(const n in a){const o=a[n];let s;if(!Ej(n,e)){if(!("args"in o))continue;if(s=o.args.filter(t=>Ej(t.name,e)),0===s.length)continue}t[r===i?"within":"fields"].push(...s?s.map(e=>({type:i,field:o,argument:e})):[{type:i,field:o}])}}return t},e[2]=i,e[3]=n,e[4]=o):o=e[4],o}(),[o,a]=(0,Fu.useState)("");let s;e[0]!==i||e[1]!==o?(s=()=>i(o),e[0]=i,e[1]=o,e[2]=s):s=e[2];const[l,u]=(0,Fu.useState)(s);let c;e[3]!==i?(c=mp(200,e=>{u(i(e))}),e[3]=i,e[4]=c):c=e[4];const d=c,[f]=(0,Fu.useState)(r),p=f.current===document.activeElement;let h,m,g,v,y,b,w;if(e[5]!==d||e[6]!==o?(h=()=>{d(o)},m=[d,o],e[5]=d,e[6]=o,e[7]=h,e[8]=m):(h=e[7],m=e[8]),(0,Fu.useEffect)(h,m),e[9]===Symbol.for("react.memo_cache_sentinel")?(g=()=>{const e=function(e){e.metaKey&&"k"===e.key&&r.current.focus()};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},v=[],e[9]=g,e[10]=v):(g=e[9],v=e[10]),(0,Fu.useEffect)(g,v),e[11]!==t||e[12]!==n){let r;y=t.at(-1),e[16]!==n?(r=e=>{n("field"in e?{name:e.field.name,def:e.field}:{name:e.type.name,def:e.type})},e[16]=n,e[17]=r):r=e[17],b=r,w=1===t.length||tn(y.def)||nn(y.def)||an(y.def),e[11]=t,e[12]=n,e[13]=y,e[14]=b,e[15]=w}else y=e[13],b=e[14],w=e[15];if(!w)return null;const x=p?void 0:"idle",E=`Search ${y.name}...`;let k,C,S,T,_,N;return e[18]===Symbol.for("react.memo_cache_sentinel")?(C=()=>{r.current.focus()},k=(0,Gm.jsx)(Tg,{}),e[18]=k,e[19]=C):(k=e[18],C=e[19]),e[20]===Symbol.for("react.memo_cache_sentinel")?(S=e=>a(e.target.value),e[20]=S):S=e[20],e[21]!==o?(T=(0,Gm.jsxs)("div",{className:"graphiql-doc-explorer-search-input",onClick:C,children:[k,(0,Gm.jsx)(gj,{autoComplete:"off",onChange:S,placeholder:(Yu?"⌘":"Ctrl")+" K",ref:r,value:o,"data-cy":"doc-explorer-input"})]}),e[21]=o,e[22]=T):T=e[22],e[23]!==p||e[24]!==l?(_=p&&(0,Gm.jsxs)(yj,{"data-cy":"doc-explorer-list",children:[l.within.length+l.types.length+l.fields.length===0?(0,Gm.jsx)("li",{className:"graphiql-doc-explorer-search-empty",children:"No results found"}):l.within.map(Sj),l.within.length>0&&l.types.length+l.fields.length>0?(0,Gm.jsx)("div",{className:"graphiql-doc-explorer-search-divider",children:"Other results"}):null,l.types.map(Tj),l.fields.map(_j)]}),e[23]=p,e[24]=l,e[25]=_):_=e[25],e[26]!==b||e[27]!==T||e[28]!==_||e[29]!==x||e[30]!==E?(N=(0,Gm.jsxs)(wj,{as:"div",className:"graphiql-doc-explorer-search",onChange:b,"data-state":x,"aria-label":E,children:[T,_]}),e[26]=b,e[27]=T,e[28]=_,e[29]=x,e[30]=E,e[31]=N):N=e[31],N};function Ej(e,t){try{const n=t.replaceAll(/[^_0-9A-Za-z]/g,e=>"\\"+e);return new RegExp(n,"i").test(e)}catch(oV){return e.toLowerCase().includes(t.toLowerCase())}}var kj=e=>{const t=(0,$u.c)(2),{type:n}=e;let r;return t[0]!==n.name?(r=(0,Gm.jsx)("span",{className:"graphiql-doc-explorer-search-type",children:n.name}),t[0]=n.name,t[1]=r):r=t[1],r},Cj=e=>{const t=(0,$u.c)(7),{field:n,argument:r}=e;let i,o,a;return t[0]!==n.name?(i=(0,Gm.jsx)("span",{className:"graphiql-doc-explorer-search-field",children:n.name}),t[0]=n.name,t[1]=i):i=t[1],t[2]!==r?(o=r?(0,Gm.jsxs)(Gm.Fragment,{children:["(",(0,Gm.jsx)("span",{className:"graphiql-doc-explorer-search-argument",children:r.name}),":"," ",AI(r.type,Nj),")"]}):null,t[2]=r,t[3]=o):o=t[3],t[4]!==i||t[5]!==o?(a=(0,Gm.jsxs)(Gm.Fragment,{children:[i,o]}),t[4]=i,t[5]=o,t[6]=a):a=t[6],a};function Sj(e,t){return(0,Gm.jsx)(bj,{value:e,"data-cy":"doc-explorer-option",children:(0,Gm.jsx)(Cj,{field:e.field,argument:e.argument})},`within-${t}`)}function Tj(e,t){return(0,Gm.jsx)(bj,{value:e,"data-cy":"doc-explorer-option",children:(0,Gm.jsx)(kj,{type:e.type})},`type-${t}`)}function _j(e,t){return(0,Gm.jsxs)(bj,{value:e,"data-cy":"doc-explorer-option",children:[(0,Gm.jsx)(kj,{type:e.type}),".",(0,Gm.jsx)(Cj,{field:e.field,argument:e.argument})]},`field-${t}`)}function Nj(e){return(0,Gm.jsx)(kj,{type:e})}var Aj=e=>{const t=(0,$u.c)(6),{field:n}=e,{push:r}=SI();let i,o;return t[0]!==n||t[1]!==r?(i=e=>{e.preventDefault(),r({name:n.name,def:n})},t[0]=n,t[1]=r,t[2]=i):i=t[2],t[3]!==n.name||t[4]!==i?(o=(0,Gm.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};ha();var Dj=e=>{const t=(0,$u.c)(2),{type:n}=e;let r;return t[0]!==n?(r=vn(n)?(0,Gm.jsxs)(Gm.Fragment,{children:[n.description?(0,Gm.jsx)(Zk,{type:"description",children:n.description}):null,(0,Gm.jsx)(Oj,{type:n}),(0,Gm.jsx)(Lj,{type:n}),(0,Gm.jsx)(Mj,{type:n}),(0,Gm.jsx)(Pj,{type:n})]}):null,t[0]=n,t[1]=r):r=t[1],r},Oj=e=>{const t=(0,$u.c)(5),{type:n}=e;if(!tn(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?(0,Gm.jsx)(MI,{title:"Implements",children:n.getInterfaces().map(Rj)}):null,t[2]=i.length,t[3]=n,t[4]=o):o=t[4],o},Lj=e=>{const t=(0,$u.c)(12),{type:n}=e,[r,i]=(0,Fu.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(!tn(n)&&!nn(n)&&!an(n))return null;let s,l,u,c,d;if(t[1]!==n){const e=n.getFields();l=[],s=[];for(const t of Object.keys(e).map(t=>e[t]))t.deprecationReason?s.push(t):l.push(t);u=l.length>0?(0,Gm.jsx)(MI,{title:"Fields",children:l.map(jj)}):null,t[1]=n,t[2]=s,t[3]=l,t[4]=u}else s=t[2],l=t[3],u=t[4];return t[5]!==s||t[6]!==l.length||t[7]!==r?(c=s.length>0?r||0===l.length?(0,Gm.jsx)(MI,{title:"Deprecated Fields",children:s.map(Vj)}):(0,Gm.jsx)(lv,{type:"button",onClick:a,children:"Show Deprecated Fields"}):null,t[5]=s,t[6]=l.length,t[7]=r,t[8]=c):c=t[8],t[9]!==u||t[10]!==c?(d=(0,Gm.jsxs)(Gm.Fragment,{children:[u,c]}),t[9]=u,t[10]=c,t[11]=d):d=t[11],d},Ij=e=>{const t=(0,$u.c)(22),{field:n}=e;let r,i,o,a,s,l,u,c,d;if(t[0]!==n){const e="args"in n?n.args.filter(Bj):[];o="graphiql-doc-explorer-item",r=(0,Gm.jsx)(Aj,{field:n}),i=e.length>0?(0,Gm.jsxs)(Gm.Fragment,{children:["(",(0,Gm.jsx)("span",{children:e.map(t=>1===e.length?(0,Gm.jsx)(OI,{arg:t,inline:!0},t.name):(0,Gm.jsx)("div",{className:"graphiql-doc-explorer-argument-multiple",children:(0,Gm.jsx)(OI,{arg:t,inline:!0})},t.name))}),")"]}):null,t[0]=n,t[1]=r,t[2]=i,t[3]=o}else r=t[1],i=t[2],o=t[3];return t[4]!==n.type?(a=(0,Gm.jsx)(DI,{type:n.type}),t[4]=n.type,t[5]=a):a=t[5],t[6]!==n?(s=(0,Gm.jsx)(NI,{field:n}),t[6]=n,t[7]=s):s=t[7],t[8]!==r||t[9]!==i||t[10]!==a||t[11]!==s?(l=(0,Gm.jsxs)("div",{children:[r,i,": ",a,s]}),t[8]=r,t[9]=i,t[10]=a,t[11]=s,t[12]=l):l=t[12],t[13]!==n.description?(u=n.description?(0,Gm.jsx)(Zk,{type:"description",onlyShowFirstChild:!0,children:n.description}):null,t[13]=n.description,t[14]=u):u=t[14],t[15]!==n.deprecationReason?(c=(0,Gm.jsx)(LI,{children:n.deprecationReason}),t[15]=n.deprecationReason,t[16]=c):c=t[16],t[17]!==o||t[18]!==l||t[19]!==u||t[20]!==c?(d=(0,Gm.jsxs)("div",{className:o,children:[l,u,c]}),t[17]=o,t[18]=l,t[19]=u,t[20]=c,t[21]=d):d=t[21],d},Mj=e=>{const t=(0,$u.c)(12),{type:n}=e,[r,i]=(0,Fu.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(!on(n))return null;let s,l,u,c,d;if(t[1]!==n){u=[],s=[];for(const e of n.getValues())e.deprecationReason?s.push(e):u.push(e);l=u.length>0?(0,Gm.jsx)(MI,{title:"Enum Values",children:u.map(zj)}):null,t[1]=n,t[2]=s,t[3]=l,t[4]=u}else s=t[2],l=t[3],u=t[4];return t[5]!==s||t[6]!==r||t[7]!==u.length?(c=s.length>0?r||0===u.length?(0,Gm.jsx)(MI,{title:"Deprecated Enum Values",children:s.map($j)}):(0,Gm.jsx)(lv,{type:"button",onClick:a,children:"Show Deprecated Values"}):null,t[5]=s,t[6]=r,t[7]=u.length,t[8]=c):c=t[8],t[9]!==l||t[10]!==c?(d=(0,Gm.jsxs)(Gm.Fragment,{children:[l,c]}),t[9]=l,t[10]=c,t[11]=d):d=t[11],d},Fj=e=>{const t=(0,$u.c)(10),{value:n}=e;let r,i,o,a;return t[0]!==n.name?(r=(0,Gm.jsx)("div",{className:"graphiql-doc-explorer-enum-value",children:n.name}),t[0]=n.name,t[1]=r):r=t[1],t[2]!==n.description?(i=n.description&&(0,Gm.jsx)(Zk,{type:"description",children:n.description}),t[2]=n.description,t[3]=i):i=t[3],t[4]!==n.deprecationReason?(o=n.deprecationReason&&(0,Gm.jsx)(Zk,{type:"deprecation",children:n.deprecationReason}),t[4]=n.deprecationReason,t[5]=o):o=t[5],t[6]!==r||t[7]!==i||t[8]!==o?(a=(0,Gm.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},Pj=e=>{const t=(0,$u.c)(6),{type:n}=e,{schema:r}=bc();if(!r||!pn(n))return null;const i=nn(n)?"Implementations":"Possible Types";let o,a;return t[0]!==r||t[1]!==n?(o=r.getPossibleTypes(n).map(Uj),t[0]=r,t[1]=n,t[2]=o):o=t[2],t[3]!==i||t[4]!==o?(a=(0,Gm.jsx)(MI,{title:i,children:o}),t[3]=i,t[4]=o,t[5]=a):a=t[5],a};function Rj(e){return(0,Gm.jsx)("div",{children:(0,Gm.jsx)(DI,{type:e})},e.name)}function jj(e){return(0,Gm.jsx)(Ij,{field:e},e.name)}function Vj(e){return(0,Gm.jsx)(Ij,{field:e},e.name)}function Bj(e){return!e.deprecationReason}function zj(e){return(0,Gm.jsx)(Fj,{value:e},e.name)}function $j(e){return(0,Gm.jsx)(Fj,{value:e},e.name)}function Uj(e){return(0,Gm.jsx)("div",{children:(0,Gm.jsx)(DI,{type:e})},e.name)}ha();var Hj={title:"Documentation Explorer",icon:function(){const{visiblePlugin:e}=gc();return e===Hj?(0,Gm.jsx)(bg,{}):(0,Gm.jsx)(wg,{})},content:()=>{const e=(0,$u.c)(38),{fetchError:t,isFetching:n,schema:r,validationErrors:i}=bc(),o=CI(),{pop:a}=SI();let s,l,u,c,d,f,p,h,m,g;if(e[0]!==o||e[1]!==t||e[2]!==n||e[3]!==r||e[4]!==i){if(l=o.at(-1),s=null,t){let t;e[7]===Symbol.for("react.memo_cache_sentinel")?(t=(0,Gm.jsx)("div",{className:"graphiql-doc-explorer-error",children:"Error fetching schema"}),e[7]=t):t=e[7],s=t}else if(i.length>0){let t;e[8]!==i[0].message?(t=(0,Gm.jsxs)("div",{className:"graphiql-doc-explorer-error",children:["Schema is invalid: ",i[0].message]}),e[8]=i[0].message,e[9]=t):t=e[9],s=t}else if(n){let t;e[10]===Symbol.for("react.memo_cache_sentinel")?(t=(0,Gm.jsx)(Jk,{}),e[10]=t):t=e[10],s=t}else if(r){if(1===o.length){let t;e[12]!==r?(t=(0,Gm.jsx)($I,{schema:r}),e[12]=r,e[13]=t):t=e[13],s=t}else if(Jt(l.def)){let t;e[14]!==l.def?(t=(0,Gm.jsx)(Dj,{type:l.def}),e[14]=l.def,e[15]=t):t=e[15],s=t}else if(l.def){let t;e[16]!==l.def?(t=(0,Gm.jsx)(PI,{field:l.def}),e[16]=l.def,e[17]=t):t=e[17],s=t}}else{let t;e[11]===Symbol.for("react.memo_cache_sentinel")?(t=(0,Gm.jsx)("div",{className:"graphiql-doc-explorer-error",children:"No GraphQL schema available"}),e[11]=t):t=e[11],s=t}e[0]=o,e[1]=t,e[2]=n,e[3]=r,e[4]=i,e[5]=s,e[6]=l}else s=e[5],l=e[6];if(o.length>1){let t;e[18]!==o?(t=o.at(-2),e[18]=o,e[19]=t):t=e[19],u=t.name}return e[20]!==a||e[21]!==u?(c=u&&(0,Gm.jsxs)("a",{href:"#",className:"graphiql-doc-explorer-back",onClick:e=>{e.preventDefault(),a()},"aria-label":`Go back to ${u}`,children:[(0,Gm.jsx)(dg,{}),u]}),e[20]=a,e[21]=u,e[22]=c):c=e[22],e[23]!==l.name?(d=(0,Gm.jsx)("div",{className:"graphiql-doc-explorer-title",children:l.name}),e[23]=l.name,e[24]=d):d=e[24],e[25]!==c||e[26]!==d?(f=(0,Gm.jsxs)("div",{className:"graphiql-doc-explorer-header-content",children:[c,d]}),e[25]=c,e[26]=d,e[27]=f):f=e[27],e[28]!==l.name?(p=(0,Gm.jsx)(xj,{},l.name),e[28]=l.name,e[29]=p):p=e[29],e[30]!==f||e[31]!==p?(h=(0,Gm.jsxs)("div",{className:"graphiql-doc-explorer-header",children:[f,p]}),e[30]=f,e[31]=p,e[32]=h):h=e[32],e[33]!==s?(m=(0,Gm.jsx)("div",{className:"graphiql-doc-explorer-content",children:s}),e[33]=s,e[34]=m):m=e[34],e[35]!==h||e[36]!==m?(g=(0,Gm.jsxs)("section",{className:"graphiql-doc-explorer","aria-label":"Documentation Explorer",children:[h,m]}),e[35]=h,e[36]=m,e[37]=g):g=e[37],g}},Wj=["light","dark","system"],qj="graphiql-session-tab-",Gj=e=>{var t;const n=(0,$u.c)(234),r=null===(t=e.isHeadersEditorEnabled)||void 0===t||t;let i;n[0]===Symbol.for("react.memo_cache_sentinel")?(i={nonNull:!0},n[0]=i):i=n[0];const{initialVariables:o,initialHeaders:a,setShouldPersistHeaders:s,addTab:l,moveTab:u,closeTab:c,changeTab:d,shouldPersistHeaders:f,tabs:p,activeTabIndex:h}=Qm(i);let m;n[1]===Symbol.for("react.memo_cache_sentinel")?(m={nonNull:!0},n[1]=m):m=n[1];const g=ng(m),{isFetching:v,introspect:y}=bc(),b=qu(),{visiblePlugin:w,setVisiblePlugin:x,plugins:E}=gc(),k=e.forcedTheme&&Wj.includes(e.forcedTheme)?e.forcedTheme:void 0,{theme:C,setTheme:S}=function(e){const t=(0,$u.c)(11),n=void 0===e?null:e,r=qu();let i;t[0]!==n||t[1]!==r?(i=()=>{const e=r.get(lg);switch(e){case"light":return"light";case"dark":return"dark";default:return"string"==typeof e&&r.set(lg,""),n}},t[0]=n,t[1]=r,t[2]=i):i=t[2];const[o,a]=(0,Fu.useState)(i);let s,l,u;t[3]!==o?(s=()=>{document.body.classList.remove("graphiql-light","graphiql-dark"),o&&document.body.classList.add(`graphiql-${o}`)},l=[o],t[3]=o,t[4]=s,t[5]=l):(s=t[4],l=t[5]),(0,Fu.useEffect)(s,l),t[6]!==r?(u=e=>{r.set(lg,e||""),a(e)},t[6]=r,t[7]=u):u=t[7];const c=u;let d;return t[8]!==c||t[9]!==o?(d={theme:o,setTheme:c},t[8]=c,t[9]=o,t[10]=d):d=t[10],d}(e.defaultTheme);let T,_;n[2]!==k||n[3]!==S?(T=()=>{"system"===k?S(null):"light"!==k&&"dark"!==k||S(k)},_=[k,S],n[2]=k,n[3]=S,n[4]=T,n[5]=_):(T=n[4],_=n[5]),(0,Fu.useEffect)(T,_);const N=null==w?void 0:w.content,A=w?void 0:"first";let D;n[6]!==x||n[7]!==A?(D={defaultSizeRelation:.3333333333333333,direction:"horizontal",initiallyHidden:A,onHiddenElementChange(e){"first"===e&&x(null)},sizeThresholdSecond:200,storageKey:"docExplorerFlex"},n[6]=x,n[7]=A,n[8]=D):D=n[8];const O=iv(D);let L;n[9]===Symbol.for("react.memo_cache_sentinel")?(L={direction:"horizontal",storageKey:"editorFlex"},n[9]=L):L=n[9];const I=iv(L);let M,F;M="variables"!==e.defaultEditorToolsVisibility&&"headers"!==e.defaultEditorToolsVisibility?"boolean"!=typeof e.defaultEditorToolsVisibility?o||a?void 0:"second":e.defaultEditorToolsVisibility?void 0:"second":void 0,n[10]!==M?(F={defaultSizeRelation:3,direction:"vertical",initiallyHidden:M,sizeThresholdSecond:60,storageKey:"secondaryEditorFlex"},n[10]=M,n[11]=F):F=n[11];const P=iv(F);let R;n[12]!==a||n[13]!==o||n[14]!==r||n[15]!==e.defaultEditorToolsVisibility?(R=()=>"variables"===e.defaultEditorToolsVisibility||"headers"===e.defaultEditorToolsVisibility?e.defaultEditorToolsVisibility:!o&&a&&r?"headers":"variables",n[12]=a,n[13]=o,n[14]=r,n[15]=e.defaultEditorToolsVisibility,n[16]=R):R=n[16];const[j,V]=(0,Fu.useState)(R),[B,z]=(0,Fu.useState)(null),[$,U]=(0,Fu.useState)(null);let H;if(n[17]!==e.children||n[18]!==e.onCopyQuery||n[19]!==e.onPrettifyQuery){let t,r,i;n[21]!==e.onCopyQuery||n[22]!==e.onPrettifyQuery?(t=(t,n)=>{e:switch(function(e){if(e&&"object"==typeof e&&"type"in e&&"function"==typeof e.type)return e.type}(n)){case Jj.Logo:t.logo=n;break e;case Jj.Toolbar:t.toolbar=(0,Fu.cloneElement)(n,{onCopyQuery:e.onCopyQuery,onPrettifyQuery:e.onPrettifyQuery});break e;case Jj.Footer:t.footer=n;break e;default:t.children.push(n)}return t},n[21]=e.onCopyQuery,n[22]=e.onPrettifyQuery,n[23]=t):t=n[23],n[24]===Symbol.for("react.memo_cache_sentinel")?(r=(0,Gm.jsx)(Jj.Logo,{}),n[24]=r):r=n[24],n[25]!==e.onCopyQuery||n[26]!==e.onPrettifyQuery?(i=(0,Gm.jsx)(Jj.Toolbar,{onCopyQuery:e.onCopyQuery,onPrettifyQuery:e.onPrettifyQuery}),n[25]=e.onCopyQuery,n[26]=e.onPrettifyQuery,n[27]=i):i=n[27],H=Fu.Children.toArray(e.children).reduce(t,{logo:r,toolbar:i,children:[]}),n[17]=e.children,n[18]=e.onCopyQuery,n[19]=e.onPrettifyQuery,n[20]=H}else H=n[20];const{logo:W,toolbar:q,footer:G,children:K}=H;let Y;n[28]!==O?(Y=()=>{"first"===O.hiddenElement&&O.setHiddenElement(null)},n[28]=O,n[29]=Y):Y=n[29];const Q=Y;let X;n[30]!==b?(X=()=>{try{b.clear(),U("success")}catch(oV){U("error")}},n[30]=b,n[31]=X):X=n[31];const Z=X;let J;n[32]!==s?(J=e=>{s("true"===e.currentTarget.dataset.value)},n[32]=s,n[33]=J):J=n[33];const ee=J;let te;n[34]!==S?(te=e=>{const t=e.currentTarget.dataset.theme;S(t||null)},n[34]=S,n[35]=te):te=n[35];const ne=te;let re;n[36]===Symbol.for("react.memo_cache_sentinel")?(re=e=>{z(e.currentTarget.dataset.value)},n[36]=re):re=n[36];const ie=re;let oe;n[37]!==O||n[38]!==E||n[39]!==x||n[40]!==w?(oe=e=>{const t=Number(e.currentTarget.dataset.index),n=E.find((e,n)=>t===n);n===w?(x(null),O.setHiddenElement("first")):(x(n),O.setHiddenElement(null))},n[37]=O,n[38]=E,n[39]=x,n[40]=w,n[41]=oe):oe=n[41];const ae=oe;let se;n[42]!==P?(se=e=>{"second"===P.hiddenElement&&P.setHiddenElement(null),V(e.currentTarget.dataset.name)},n[42]=P,n[43]=se):se=n[43];const le=se;let ue;n[44]!==P?(ue=()=>{P.setHiddenElement("second"===P.hiddenElement?null:"second")},n[44]=P,n[45]=ue):ue=n[45];const ce=ue;let de;n[46]===Symbol.for("react.memo_cache_sentinel")?(de=e=>{e||z(null)},n[46]=de):de=n[46];const fe=de;let pe;n[47]===Symbol.for("react.memo_cache_sentinel")?(pe=e=>{e||(z(null),U(null))},n[47]=pe):pe=n[47];const he=pe,me=e.confirmCloseTab;let ge;n[48]!==h||n[49]!==c||n[50]!==me||n[51]!==g?(ge=async e=>{const t=e.currentTarget.previousSibling,n=Number(t.id.replace(qj,""));me&&!(await me(n))||(h===n&&g.stop(),c(n))},n[48]=h,n[49]=c,n[50]=me,n[51]=g,n[52]=ge):ge=n[52];const ve=ge;let ye;n[53]!==d||n[54]!==g?(ye=e=>{const t=Number(e.currentTarget.id.replace(qj,""));g.stop(),d(t)},n[53]=d,n[54]=g,n[55]=ye):ye=n[55];const be=ye;let we,xe,Ee;if(n[56]!==e.className?(we=$g("graphiql-container",e.className),n[56]=e.className,n[57]=we):we=n[57],n[58]!==ae||n[59]!==E||n[60]!==w){let e;n[62]!==ae||n[63]!==w?(e=(e,t)=>{const n=e===w,r=`${n?"Hide":"Show"} ${e.title}`;return(0,Gm.jsx)(iI,{label:r,children:(0,Gm.jsx)(sv,{type:"button",className:$g(n&&"active"),onClick:ae,"data-index":t,"aria-label":r,children:(0,Gm.jsx)(e.icon,{"aria-hidden":"true"})})},e.title)},n[62]=ae,n[63]=w,n[64]=e):e=n[64],xe=E.map(e),n[58]=ae,n[59]=E,n[60]=w,n[61]=xe}else xe=n[61];n[65]===Symbol.for("react.memo_cache_sentinel")?(Ee={marginTop:"auto"},n[65]=Ee):Ee=n[65];const ke=v&&"graphiql-spin";let Ce,Se,Te,_e,Ne,Ae,De,Oe,Le,Ie;n[66]!==ke?(Ce=$g(ke),n[66]=ke,n[67]=Ce):Ce=n[67],n[68]!==Ce?(Se=(0,Gm.jsx)(Lg,{className:Ce,"aria-hidden":"true"}),n[68]=Ce,n[69]=Se):Se=n[69],n[70]!==y||n[71]!==v||n[72]!==Se?(Te=(0,Gm.jsx)(iI,{label:"Re-fetch GraphQL schema",children:(0,Gm.jsx)(sv,{type:"button",disabled:v,onClick:y,"aria-label":"Re-fetch GraphQL schema",style:Ee,children:Se})}),n[70]=y,n[71]=v,n[72]=Se,n[73]=Te):Te=n[73],n[74]===Symbol.for("react.memo_cache_sentinel")?(_e=(0,Gm.jsx)(iI,{label:"Open short keys dialog",children:(0,Gm.jsx)(sv,{type:"button","data-value":"short-keys",onClick:ie,"aria-label":"Open short keys dialog",children:(0,Gm.jsx)(Sg,{"aria-hidden":"true"})})}),n[74]=_e):_e=n[74],n[75]===Symbol.for("react.memo_cache_sentinel")?(Ne=(0,Gm.jsx)(iI,{label:"Open settings dialog",children:(0,Gm.jsx)(sv,{type:"button","data-value":"settings",onClick:ie,"aria-label":"Open settings dialog",children:(0,Gm.jsx)(Mg,{"aria-hidden":"true"})})}),n[75]=Ne):Ne=n[75],n[76]!==xe||n[77]!==Te?(Ae=(0,Gm.jsxs)("div",{className:"graphiql-sidebar",children:[xe,Te,_e,Ne]}),n[76]=xe,n[77]=Te,n[78]=Ae):Ae=n[78],n[79]===Symbol.for("react.memo_cache_sentinel")?(De={minWidth:"200px"},n[79]=De):De=n[79],n[80]!==N?(Oe=N?(0,Gm.jsx)(N,{}):null,n[80]=N,n[81]=Oe):Oe=n[81],n[82]!==O.firstRef||n[83]!==Oe?(Le=(0,Gm.jsx)("div",{ref:O.firstRef,className:"graphiql-plugin",style:De,children:Oe}),n[82]=O.firstRef,n[83]=Oe,n[84]=Le):Le=n[84],n[85]!==O.dragBarRef||n[86]!==w?(Ie=w&&(0,Gm.jsx)("div",{className:"graphiql-horizontal-drag-bar",ref:O.dragBarRef}),n[85]=O.dragBarRef,n[86]=w,n[87]=Ie):Ie=n[87];const Me=O.secondRef;let Fe,Pe,Re,je,Ve;if(n[88]!==h||n[89]!==be||n[90]!==ve||n[91]!==p){let e;n[93]!==h||n[94]!==be||n[95]!==ve?(e=(e,t,n)=>(0,Gm.jsxs)(xL,{value:e,isActive:t===h,children:[(0,Gm.jsx)(xL.Button,{"aria-controls":"graphiql-session",id:`graphiql-session-tab-${t}`,title:e.title,onClick:be,children:e.title}),n.length>1&&(0,Gm.jsx)(xL.Close,{onClick:ve})]},e.id),n[93]=h,n[94]=be,n[95]=ve,n[96]=e):e=n[96],Fe=p.map(e),n[88]=h,n[89]=be,n[90]=ve,n[91]=p,n[92]=Fe}else Fe=n[92];n[97]!==u||n[98]!==Fe||n[99]!==p?(Pe=(0,Gm.jsx)(EL,{values:p,onReorder:u,"aria-label":"Select active operation",className:"no-scrollbar",children:Fe}),n[97]=u,n[98]=Fe,n[99]=p,n[100]=Pe):Pe=n[100],n[101]===Symbol.for("react.memo_cache_sentinel")?(Re=(0,Gm.jsx)(Dg,{"aria-hidden":"true"}),n[101]=Re):Re=n[101],n[102]!==l?(je=(0,Gm.jsx)(iI,{label:"New tab",children:(0,Gm.jsx)(sv,{type:"button",className:"graphiql-tab-add",onClick:l,"aria-label":"New tab",children:Re})}),n[102]=l,n[103]=je):je=n[103],n[104]!==W||n[105]!==Pe||n[106]!==je?(Ve=(0,Gm.jsxs)("div",{className:"graphiql-session-header",children:[Pe,je,W]}),n[104]=W,n[105]=Pe,n[106]=je,n[107]=Ve):Ve=n[107];const Be=`${qj}${h}`,ze=I.firstRef;let $e,Ue,He,We;n[108]!==Q||n[109]!==e.editorTheme||n[110]!==e.keyMap||n[111]!==e.onCopyQuery||n[112]!==e.onEditQuery||n[113]!==e.onPrettifyQuery||n[114]!==e.readOnly?($e=(0,Gm.jsx)(Yg,{editorTheme:e.editorTheme,keyMap:e.keyMap,onClickReference:Q,onCopyQuery:e.onCopyQuery,onPrettifyQuery:e.onPrettifyQuery,onEdit:e.onEditQuery,readOnly:e.readOnly}),n[108]=Q,n[109]=e.editorTheme,n[110]=e.keyMap,n[111]=e.onCopyQuery,n[112]=e.onEditQuery,n[113]=e.onPrettifyQuery,n[114]=e.readOnly,n[115]=$e):$e=n[115],n[116]===Symbol.for("react.memo_cache_sentinel")?(Ue=(0,Gm.jsx)(aI,{}),n[116]=Ue):Ue=n[116],n[117]!==q?(He=(0,Gm.jsxs)("div",{className:"graphiql-toolbar",role:"toolbar","aria-label":"Editor Commands",children:[Ue,q]}),n[117]=q,n[118]=He):He=n[118],n[119]!==P.firstRef||n[120]!==$e||n[121]!==He?(We=(0,Gm.jsxs)("section",{className:"graphiql-query-editor","aria-label":"Query Editor",ref:P.firstRef,children:[$e,He]}),n[119]=P.firstRef,n[120]=$e,n[121]=He,n[122]=We):We=n[122];const qe=P.dragBarRef,Ge="variables"===j&&"second"!==P.hiddenElement&&"active";let Ke,Ye,Qe;n[123]!==Ge?(Ke=$g(Ge),n[123]=Ge,n[124]=Ke):Ke=n[124],n[125]!==le||n[126]!==Ke?(Ye=(0,Gm.jsx)(sv,{type:"button",className:Ke,onClick:le,"data-name":"variables",children:"Variables"}),n[125]=le,n[126]=Ke,n[127]=Ye):Ye=n[127],n[128]!==j||n[129]!==P.hiddenElement||n[130]!==le||n[131]!==r?(Qe=r&&(0,Gm.jsx)(sv,{type:"button",className:$g("headers"===j&&"second"!==P.hiddenElement&&"active"),onClick:le,"data-name":"headers",children:"Headers"}),n[128]=j,n[129]=P.hiddenElement,n[130]=le,n[131]=r,n[132]=Qe):Qe=n[132];const Xe="second"===P.hiddenElement?"Show editor tools":"Hide editor tools",Ze="second"===P.hiddenElement?"Show editor tools":"Hide editor tools";let Je,et,tt,nt;n[133]!==P.hiddenElement?(Je="second"===P.hiddenElement?(0,Gm.jsx)(fg,{className:"graphiql-chevron-icon","aria-hidden":"true"}):(0,Gm.jsx)(cg,{className:"graphiql-chevron-icon","aria-hidden":"true"}),n[133]=P.hiddenElement,n[134]=Je):Je=n[134],n[135]!==Ze||n[136]!==Je||n[137]!==ce?(et=(0,Gm.jsx)(sv,{type:"button",onClick:ce,"aria-label":Ze,className:"graphiql-toggle-editor-tools",children:Je}),n[135]=Ze,n[136]=Je,n[137]=ce,n[138]=et):et=n[138],n[139]!==Xe||n[140]!==et?(tt=(0,Gm.jsx)(iI,{label:Xe,children:et}),n[139]=Xe,n[140]=et,n[141]=tt):tt=n[141],n[142]!==P.dragBarRef||n[143]!==Ye||n[144]!==Qe||n[145]!==tt?(nt=(0,Gm.jsxs)("div",{ref:qe,className:"graphiql-editor-tools",children:[Ye,Qe,tt]}),n[142]=P.dragBarRef,n[143]=Ye,n[144]=Qe,n[145]=tt,n[146]=nt):nt=n[146];const rt="variables"===j?"Variables":"Headers",it="variables"!==j;let ot,at,st,lt,ut,ct,dt,ft,pt,ht,mt;n[147]!==Q||n[148]!==e.editorTheme||n[149]!==e.keyMap||n[150]!==e.onEditVariables||n[151]!==e.readOnly||n[152]!==it?(ot=(0,Gm.jsx)(rv,{editorTheme:e.editorTheme,isHidden:it,keyMap:e.keyMap,onEdit:e.onEditVariables,onClickReference:Q,readOnly:e.readOnly}),n[147]=Q,n[148]=e.editorTheme,n[149]=e.keyMap,n[150]=e.onEditVariables,n[151]=e.readOnly,n[152]=it,n[153]=ot):ot=n[153],n[154]!==j||n[155]!==r||n[156]!==e.editorTheme||n[157]!==e.keyMap||n[158]!==e.onEditHeaders||n[159]!==e.readOnly?(at=r&&(0,Gm.jsx)(Ug,{editorTheme:e.editorTheme,isHidden:"headers"!==j,keyMap:e.keyMap,onEdit:e.onEditHeaders,readOnly:e.readOnly}),n[154]=j,n[155]=r,n[156]=e.editorTheme,n[157]=e.keyMap,n[158]=e.onEditHeaders,n[159]=e.readOnly,n[160]=at):at=n[160],n[161]!==P.secondRef||n[162]!==rt||n[163]!==ot||n[164]!==at?(st=(0,Gm.jsxs)("section",{className:"graphiql-editor-tool","aria-label":rt,ref:P.secondRef,children:[ot,at]}),n[161]=P.secondRef,n[162]=rt,n[163]=ot,n[164]=at,n[165]=st):st=n[165],n[166]!==I.firstRef||n[167]!==We||n[168]!==nt||n[169]!==st?(lt=(0,Gm.jsxs)("div",{className:"graphiql-editors",ref:ze,children:[We,nt,st]}),n[166]=I.firstRef,n[167]=We,n[168]=nt,n[169]=st,n[170]=lt):lt=n[170],n[171]!==I.dragBarRef?(ut=(0,Gm.jsx)("div",{className:"graphiql-horizontal-drag-bar",ref:I.dragBarRef}),n[171]=I.dragBarRef,n[172]=ut):ut=n[172],n[173]!==g.isFetching?(ct=g.isFetching?(0,Gm.jsx)(Jk,{}):null,n[173]=g.isFetching,n[174]=ct):ct=n[174],n[175]!==e.editorTheme||n[176]!==e.keyMap||n[177]!==e.responseTooltip?(dt=(0,Gm.jsx)(nv,{editorTheme:e.editorTheme,responseTooltip:e.responseTooltip,keyMap:e.keyMap}),n[175]=e.editorTheme,n[176]=e.keyMap,n[177]=e.responseTooltip,n[178]=dt):dt=n[178],n[179]!==I.secondRef||n[180]!==G||n[181]!==ct||n[182]!==dt?(ft=(0,Gm.jsxs)("div",{className:"graphiql-response",ref:I.secondRef,children:[ct,dt,G]}),n[179]=I.secondRef,n[180]=G,n[181]=ct,n[182]=dt,n[183]=ft):ft=n[183],n[184]!==Be||n[185]!==lt||n[186]!==ut||n[187]!==ft?(pt=(0,Gm.jsxs)("div",{role:"tabpanel",id:"graphiql-session","aria-labelledby":Be,children:[lt,ut,ft]}),n[184]=Be,n[185]=lt,n[186]=ut,n[187]=ft,n[188]=pt):pt=n[188],n[189]!==O.secondRef||n[190]!==Ve||n[191]!==pt?(ht=(0,Gm.jsxs)("div",{ref:Me,className:"graphiql-sessions",children:[Ve,pt]}),n[189]=O.secondRef,n[190]=Ve,n[191]=pt,n[192]=ht):ht=n[192],n[193]!==Le||n[194]!==Ie||n[195]!==ht?(mt=(0,Gm.jsxs)("div",{className:"graphiql-main",children:[Le,Ie,ht]}),n[193]=Le,n[194]=Ie,n[195]=ht,n[196]=mt):mt=n[196];const gt="short-keys"===B;let vt,yt,bt;n[197]===Symbol.for("react.memo_cache_sentinel")?(vt=(0,Gm.jsxs)("div",{className:"graphiql-dialog-header",children:[(0,Gm.jsx)(Bb.Title,{className:"graphiql-dialog-title",children:"Short Keys"}),(0,Gm.jsx)(Bb.Close,{})]}),n[197]=vt):vt=n[197],n[198]!==e.keyMap?(yt=(0,Gm.jsx)("div",{className:"graphiql-dialog-section",children:(0,Gm.jsx)(Qj,{keyMap:e.keyMap})}),n[198]=e.keyMap,n[199]=yt):yt=n[199],n[200]!==gt||n[201]!==yt?(bt=(0,Gm.jsxs)(Bb,{open:gt,onOpenChange:fe,children:[vt,yt]}),n[200]=gt,n[201]=yt,n[202]=bt):bt=n[202];const wt="settings"===B;let xt,Et,kt,Ct;n[203]===Symbol.for("react.memo_cache_sentinel")?(xt=(0,Gm.jsxs)("div",{className:"graphiql-dialog-header",children:[(0,Gm.jsx)(Bb.Title,{className:"graphiql-dialog-title",children:"Settings"}),(0,Gm.jsx)(Bb.Close,{})]}),n[203]=xt):xt=n[203],n[204]!==ee||n[205]!==e.showPersistHeadersSettings||n[206]!==f?(Et=e.showPersistHeadersSettings?(0,Gm.jsxs)("div",{className:"graphiql-dialog-section",children:[(0,Gm.jsxs)("div",{children:[(0,Gm.jsx)("div",{className:"graphiql-dialog-section-title",children:"Persist headers"}),(0,Gm.jsxs)("div",{className:"graphiql-dialog-section-caption",children:["Save headers upon reloading."," ",(0,Gm.jsx)("span",{className:"graphiql-warning-text",children:"Only enable if you trust this device."})]})]}),(0,Gm.jsxs)(cv,{children:[(0,Gm.jsx)(lv,{type:"button",id:"enable-persist-headers",className:$g(f&&"active"),"data-value":"true",onClick:ee,children:"On"}),(0,Gm.jsx)(lv,{type:"button",id:"disable-persist-headers",className:$g(!f&&"active"),onClick:ee,children:"Off"})]})]}):null,n[204]=ee,n[205]=e.showPersistHeadersSettings,n[206]=f,n[207]=Et):Et=n[207],n[208]!==k||n[209]!==ne||n[210]!==C?(kt=!k&&(0,Gm.jsxs)("div",{className:"graphiql-dialog-section",children:[(0,Gm.jsxs)("div",{children:[(0,Gm.jsx)("div",{className:"graphiql-dialog-section-title",children:"Theme"}),(0,Gm.jsx)("div",{className:"graphiql-dialog-section-caption",children:"Adjust how the interface appears."})]}),(0,Gm.jsxs)(cv,{children:[(0,Gm.jsx)(lv,{type:"button",className:$g(null===C&&"active"),onClick:ne,children:"System"}),(0,Gm.jsx)(lv,{type:"button",className:$g("light"===C&&"active"),"data-theme":"light",onClick:ne,children:"Light"}),(0,Gm.jsx)(lv,{type:"button",className:$g("dark"===C&&"active"),"data-theme":"dark",onClick:ne,children:"Dark"})]})]}),n[208]=k,n[209]=ne,n[210]=C,n[211]=kt):kt=n[211],n[212]===Symbol.for("react.memo_cache_sentinel")?(Ct=(0,Gm.jsxs)("div",{children:[(0,Gm.jsx)("div",{className:"graphiql-dialog-section-title",children:"Clear storage"}),(0,Gm.jsx)("div",{className:"graphiql-dialog-section-caption",children:"Remove all locally stored data and start fresh."})]}),n[212]=Ct):Ct=n[212];const St=$||void 0,Tt="success"===$;let _t,Nt,At,Dt,Ot;return n[213]!==$?(_t={success:"Cleared data",error:"Failed"}[$]||"Clear data",n[213]=$,n[214]=_t):_t=n[214],n[215]!==Z||n[216]!==St||n[217]!==Tt||n[218]!==_t?(Nt=(0,Gm.jsxs)("div",{className:"graphiql-dialog-section",children:[Ct,(0,Gm.jsx)(lv,{type:"button",state:St,disabled:Tt,onClick:Z,children:_t})]}),n[215]=Z,n[216]=St,n[217]=Tt,n[218]=_t,n[219]=Nt):Nt=n[219],n[220]!==wt||n[221]!==Et||n[222]!==kt||n[223]!==Nt?(At=(0,Gm.jsxs)(Bb,{open:wt,onOpenChange:he,children:[xt,Et,kt,Nt]}),n[220]=wt,n[221]=Et,n[222]=kt,n[223]=Nt,n[224]=At):At=n[224],n[225]!==we||n[226]!==Ae||n[227]!==mt||n[228]!==bt||n[229]!==At?(Dt=(0,Gm.jsxs)("div",{className:we,children:[Ae,mt,bt,At]}),n[225]=we,n[226]=Ae,n[227]=mt,n[228]=bt,n[229]=At,n[230]=Dt):Dt=n[230],n[231]!==K||n[232]!==Dt?(Ot=(0,Gm.jsxs)(iI.Provider,{children:[Dt,K]}),n[231]=K,n[232]=Dt,n[233]=Ot):Ot=n[233],Ot},Kj=Yu?"⌘":"Ctrl",Yj=Object.entries({"Search in editor":[Kj,"F"],"Search in documentation":[Kj,"K"],"Execute query":[Kj,"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"]}),Qj=e=>{const t=(0,$u.c)(5),{keyMap:n}=e,r=void 0===n?"sublime":n;let i,o,a,s;return t[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,Gm.jsxs)("table",{className:"graphiql-table",children:[(0,Gm.jsx)("thead",{children:(0,Gm.jsxs)("tr",{children:[(0,Gm.jsx)("th",{children:"Short Key"}),(0,Gm.jsx)("th",{children:"Function"})]})}),(0,Gm.jsx)("tbody",{children:Yj.map(tV)})]}),t[0]=i):i=t[0],t[1]===Symbol.for("react.memo_cache_sentinel")?(o=(0,Gm.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],t[2]===Symbol.for("react.memo_cache_sentinel")?(a=(0,Gm.jsx)("em",{children:"i"}),t[2]=a):a=t[2],t[3]!==r?(s=(0,Gm.jsxs)("div",{children:[i,(0,Gm.jsxs)("p",{children:["The editors use"," ",o," ","that add more short keys. This instance of Graph",a,"QL uses"," ",(0,Gm.jsx)("code",{children:r}),"."]})]}),t[3]=r,t[4]=s):s=t[4],s},Xj=(0,Gm.jsxs)("a",{className:"graphiql-logo-link",href:"https://github.com/graphql/graphiql",target:"_blank",rel:"noreferrer",children:["Graph",(0,Gm.jsx)("em",{children:"i"}),"QL"]}),Zj=e=>{const t=(0,$u.c)(4),{prettify:n,copy:r,merge:i}=e;let o;return t[0]!==r||t[1]!==i||t[2]!==n?(o=(0,Gm.jsxs)(Gm.Fragment,{children:[n,i,r]}),t[0]=r,t[1]=i,t[2]=n,t[3]=o):o=t[3],o},Jj=Object.assign(e=>{var t,n;const r=(0,$u.c)(72);let i,o,a,s,l,u,c,d,f,p,h,m,g,v,y,b,w,x,E,k,C,S,T,_,N,A,D,O,L,I;r[0]!==e?(({dangerouslyAssumeSchemaIsValid:o,confirmCloseTab:i,defaultQuery:s,defaultTabs:l,externalFragments:u,fetcher:c,getDefaultFieldNames:d,headers:f,inputValueDeprecation:p,introspectionQueryName:h,maxHistoryLength:m,onEditOperationName:g,onSchemaChange:v,onTabChange:y,onTogglePluginVisibility:b,operationName:w,plugins:N,referencePlugin:A,query:E,response:k,schema:C,schemaDescription:S,shouldPersistHeaders:T,storage:_,validationRules:D,variables:O,visiblePlugin:L,defaultHeaders:a,...x}=e),r[0]=e,r[1]=i,r[2]=o,r[3]=a,r[4]=s,r[5]=l,r[6]=u,r[7]=c,r[8]=d,r[9]=f,r[10]=p,r[11]=h,r[12]=m,r[13]=g,r[14]=v,r[15]=y,r[16]=b,r[17]=w,r[18]=x,r[19]=E,r[20]=k,r[21]=C,r[22]=S,r[23]=T,r[24]=_,r[25]=N,r[26]=A,r[27]=D,r[28]=O,r[29]=L):(i=r[1],o=r[2],a=r[3],s=r[4],l=r[5],u=r[6],c=r[7],d=r[8],f=r[9],p=r[10],h=r[11],m=r[12],g=r[13],v=r[14],y=r[15],b=r[16],w=r[17],x=r[18],E=r[19],k=r[20],C=r[21],S=r[22],T=r[23],_=r[24],N=r[25],A=r[26],D=r[27],O=r[28],L=r[29]),r[30]!==N?(I=void 0===N?[]:N,r[30]=N,r[31]=I):I=r[31];const M=I,F=void 0===A?Hj:A;if(null==(t=x.toolbar)?void 0:t.additionalContent)throw new TypeError("`toolbar.additionalContent` was removed. Use render props on `GraphiQL.Toolbar` component instead.");if(null==(n=x.toolbar)?void 0:n.additionalComponent)throw new TypeError("`toolbar.additionalComponent` was removed. Use render props on `GraphiQL.Toolbar` component instead.");let P,R;r[32]!==M||r[33]!==F?(P=[F,bI,...M],r[32]=M,r[33]=F,r[34]=P):P=r[34],r[35]!==o||r[36]!==a||r[37]!==s||r[38]!==l||r[39]!==u||r[40]!==c||r[41]!==d||r[42]!==f||r[43]!==p||r[44]!==h||r[45]!==g||r[46]!==v||r[47]!==y||r[48]!==b||r[49]!==w||r[50]!==E||r[51]!==F||r[52]!==k||r[53]!==C||r[54]!==S||r[55]!==T||r[56]!==_||r[57]!==P||r[58]!==D||r[59]!==O||r[60]!==L?(R={getDefaultFieldNames:d,dangerouslyAssumeSchemaIsValid:o,defaultQuery:s,defaultHeaders:a,defaultTabs:l,externalFragments:u,fetcher:c,headers:f,inputValueDeprecation:p,introspectionQueryName:h,onEditOperationName:g,onSchemaChange:v,onTabChange:y,onTogglePluginVisibility:b,plugins:P,referencePlugin:F,visiblePlugin:L,operationName:w,query:E,response:k,schema:C,schemaDescription:S,shouldPersistHeaders:T,storage:_,validationRules:D,variables:O},r[35]=o,r[36]=a,r[37]=s,r[38]=l,r[39]=u,r[40]=c,r[41]=d,r[42]=f,r[43]=p,r[44]=h,r[45]=g,r[46]=v,r[47]=y,r[48]=b,r[49]=w,r[50]=E,r[51]=F,r[52]=k,r[53]=C,r[54]=S,r[55]=T,r[56]=_,r[57]=P,r[58]=D,r[59]=O,r[60]=L,r[61]=R):R=r[61];const j=R,V=!1!==T;let B,z,$;return r[62]!==i||r[63]!==x||r[64]!==V?(B=(0,Gm.jsx)(EI,{children:(0,Gm.jsx)(Gj,{confirmCloseTab:i,showPersistHeadersSettings:V,forcedTheme:x.forcedTheme,...x})}),r[62]=i,r[63]=x,r[64]=V,r[65]=B):B=r[65],r[66]!==m||r[67]!==B?(z=(0,Gm.jsx)(lI,{maxHistoryLength:m,children:B}),r[66]=m,r[67]=B,r[68]=z):z=r[68],r[69]!==j||r[70]!==z?($=(0,Gm.jsx)(sg,{...j,children:z}),r[69]=j,r[70]=z,r[71]=$):$=r[71],$},{Logo:e=>{const t=(0,$u.c)(2),{children:n}=e,r=void 0===n?Xj:n;let i;return t[0]!==r?(i=(0,Gm.jsx)("div",{className:"graphiql-logo",children:r}),t[0]=r,t[1]=i):i=t[1],i},Toolbar:({children:e=Zj,onCopyQuery:t,onPrettifyQuery:n})=>{if("function"!=typeof e)throw new TypeError("The `GraphiQL.Toolbar` component requires a render prop function as its child.");const r=Tp({onCopyQuery:t}),i=_p(),o=(0,Gm.jsx)(oI,{onClick:Ap({onPrettifyQuery:n}),label:"Prettify query (Shift-Ctrl-P)",children:(0,Gm.jsx)(Og,{className:"graphiql-toolbar-icon","aria-hidden":"true"})}),a=(0,Gm.jsx)(oI,{onClick:i,label:"Merge fragments into query (Shift-Ctrl-M)",children:(0,Gm.jsx)(_g,{className:"graphiql-toolbar-icon","aria-hidden":"true"})});return e({prettify:o,copy:(0,Gm.jsx)(oI,{onClick:r,label:"Copy query (Shift-Ctrl-C)",children:(0,Gm.jsx)(hg,{className:"graphiql-toolbar-icon","aria-hidden":"true"})}),merge:a})},Footer:e=>{const t=(0,$u.c)(2);let n;return t[0]!==e.children?(n=(0,Gm.jsx)("div",{className:"graphiql-footer",children:e.children}),t[0]=e.children,t[1]=n):n=t[1],n}});function eV(e,t,n){return(0,Gm.jsxs)(Fu.Fragment,{children:[(0,Gm.jsx)("code",{className:"graphiql-key",children:e}),t!==n.length-1&&" + "]},e)}function tV(e){const[t,n]=e;return(0,Gm.jsxs)("tr",{children:[(0,Gm.jsx)("td",{children:n.map(eV)}),(0,Gm.jsx)("td",{children:t})]},t)}var nV=async e=>(await fetch("http://localhost:8080/query",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json();function rV(){return(0,Gm.jsx)(Jj,{fetcher:nV,defaultEditorToolsVisibility:!0})}Zg.createRoot(document.getElementById("root")).render((0,Gm.jsx)(rV,{}));